From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: iterate return values
Date: Sun, 23 Jan 2005 21:26:49 +0100 [thread overview]
Message-ID: <200501232126.49553.okuji@enbug.org> (raw)
In-Reply-To: <80E32375-6D78-11D9-A7B9-000A95A0560C@penguinppc.org>
On Sunday 23 January 2005 20:53, Hollis Blanchard wrote:
> I think "is this partition type present" is a very reasonable API to
> support...
Then, the filesystem also must have a function for "if this file is
present". This is overkill.
> What is the alternative? How would you distinguish between an iterate
> error (like "wrong partition map type") and a hook returning 1?
So I said that iterate functions should not return non-zero on errors.
They should return zero instead. Then, you can check if it was because
of an error or not.
Okuji
next prev parent reply other threads:[~2005-01-23 21:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-23 18:23 iterate return values Hollis Blanchard
2005-01-23 19:19 ` Yoshinori K. Okuji
2005-01-23 19:53 ` Hollis Blanchard
2005-01-23 20:18 ` Marco Gerards
2005-01-23 20:26 ` Yoshinori K. Okuji [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-04 6:11 Hollis Blanchard
2005-02-04 8:55 ` Yoshinori K. Okuji
2005-02-04 20:04 ` Marco Gerards
2005-02-04 20:43 ` Yoshinori K. Okuji
2005-02-04 21:21 ` Marco Gerards
2005-02-04 22:24 ` Yoshinori K. Okuji
2005-01-22 6:57 Hollis Blanchard
2005-01-22 11:26 ` Yoshinori K. Okuji
2005-01-22 13:01 ` Marco Gerards
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=200501232126.49553.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.