Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KZ5XE-0006Yg-0k for mharc-grub-devel@gnu.org; Fri, 29 Aug 2008 11:05:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZ5XD-0006YQ-Cs for grub-devel@gnu.org; Fri, 29 Aug 2008 11:05:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZ5XA-0006Wk-4R for grub-devel@gnu.org; Fri, 29 Aug 2008 11:05:10 -0400 Received: from [199.232.76.173] (port=44712 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ5X9-0006WS-Vi for grub-devel@gnu.org; Fri, 29 Aug 2008 11:05:08 -0400 Received: from smtp-vbr10.xs4all.nl ([194.109.24.30]:1031) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZ5X9-0008PH-TN for grub-devel@gnu.org; Fri, 29 Aug 2008 11:05:08 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr10.xs4all.nl (8.13.8/8.13.8) with ESMTP id m7TF54rw025377 for ; Fri, 29 Aug 2008 17:05:05 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <87d4jsgfpz.fsf@xs4all.nl> <48B80E7E.1070300@nic.fi> Mail-Copies-To: mgerards@xs4all.nl Date: Fri, 29 Aug 2008 17:10:41 +0200 In-Reply-To: <48B80E7E.1070300@nic.fi> (Vesa =?iso-8859-1?Q?J=E4=E4skel=E4?= =?iso-8859-1?Q?inen's?= message of "Fri, 29 Aug 2008 17:58:06 +0300") Message-ID: <878wufj1qm.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: Handlers 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: Fri, 29 Aug 2008 15:05:11 -0000 Hi, Vesa J=E4=E4skel=E4inen writes: > Marco Gerards wrote: >> This patch adds handler support to GRUB 2. This makes it easier to >> add new handlers to GRUB without duplicating code over and over. Bean >> wanted this for some of his ideas :-) >>=20 >> Okuji (and others), can you please review this patch? It is an >> intrusive (but yet small!) change of which I hope most people agree >> with. I just don't want to commit this without proper review. > > Just from previous experience with macros... it dam hard to debug with > them when you are using debugger. SO... if you can avoid that please do > it that way. Can you try to think alternative version without using macro= s? If I knew a better way, I would have used it. I think the alternatives will all end up in either code duplication or a loss of type safety that now is at least present through warnings. But please understand that you only have to use the macros, not change them :-) Suggestions are welcome. -- Marco