Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Csorm-0005ET-An for mharc-grub-devel@gnu.org; Sun, 23 Jan 2005 16:01:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Csom6-0004Ax-L7 for grub-devel@gnu.org; Sun, 23 Jan 2005 15:55:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Csolt-00045t-8u for grub-devel@gnu.org; Sun, 23 Jan 2005 15:55:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Csols-0003zY-Ud for grub-devel@gnu.org; Sun, 23 Jan 2005 15:55:45 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CsoHv-0002JO-CC for grub-devel@gnu.org; Sun, 23 Jan 2005 15:24:47 -0500 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 8C5178AFC for ; Sun, 23 Jan 2005 21:18:36 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 21767-10 for ; Sun, 23 Jan 2005 21:18:34 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id ACC89857B for ; Sun, 23 Jan 2005 21:18:34 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 68A82C045 for ; Sun, 23 Jan 2005 21:18:34 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <20050123182336.GA31323@miracle> <200501232019.58638.okuji@enbug.org> <80E32375-6D78-11D9-A7B9-000A95A0560C@penguinppc.org> From: Marco Gerards Date: Sun, 23 Jan 2005 20:18:25 +0000 In-Reply-To: <80E32375-6D78-11D9-A7B9-000A95A0560C@penguinppc.org> (Hollis Blanchard's message of "Sun, 23 Jan 2005 13:53:51 -0600") Message-ID: <87wtu3527i.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: iterate return values X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 21:01:48 -0000 Hollis Blanchard writes: > On Jan 23, 2005, at 1:19 PM, Yoshinori K. Okuji wrote: > >> On Sunday 23 January 2005 19:23, Hollis Blanchard wrote: >>> This patch fixed it for me, tested on Apple and DOS partition maps. >> >> I vote for not adding an additional function. I think it is simpler to >> check an error rather than calling "present" functions. I don't want to >> bloat the API. > > I think "is this partition type present" is a very reasonable API to > support... > > What is the alternative? How would you distinguish between an iterate > error (like "wrong partition map type") and a hook returning 1? You could check for the specific error (GRUB_ERR_INCORRECT_PART or so). -- Marco