From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Preboot support
Date: Tue, 14 Apr 2009 23:42:52 +0900 [thread overview]
Message-ID: <200904142342.52968.okuji@enbug.org> (raw)
In-Reply-To: <49E2228B.7040600@gmail.com>
On Monday 13 April 2009 02:19:07 phcoder wrote:
> What about this one?
- ChangeLog, loader.h and loader.c are not consistent. For example, loader.h
declares grub_loader_unregister_preboot_hook, but loader.c defines
grub_loader_remove_preboot.
- I don't understand how preboot_func and preboot_rest_func are different. At
least, not obvious. Can you elaborate on them?
- This part:
+
+ for (cur = preboots_head; cur; cur = cur->next)
+ if (err = cur->preboot_func (grub_loader_noreturn))
+ {
+ for (cur = cur->prev; cur; cur = cur->prev)
+ cur->preboot_rest_func ();
+ return err;
+ }
You should not set ERR inside the "if" clause. This is against the GNU Coding
Standards. The main reason is that it is not friendly to debuggers (as you
may not "step" between the assignment and the conditional jump).
Regards,
Okuji
next prev parent reply other threads:[~2009-04-14 14:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-10 23:48 [PATCH] Preboot support phcoder
2009-04-11 10:16 ` Yoshinori K. Okuji
2009-04-11 15:44 ` phcoder
2009-04-12 17:19 ` phcoder
2009-04-14 14:42 ` Yoshinori K. Okuji [this message]
2009-04-15 8:23 ` phcoder
2009-04-15 8:40 ` John Stanley
2009-04-26 14:38 ` Vladimir 'phcoder' Serbinenko
2009-04-27 16:49 ` Vladimir 'phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200904142342.52968.okuji@enbug.org \
--to=okuji@enbug.org \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.