Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KUjG4-0003Sy-1c for mharc-grub-devel@gnu.org; Sun, 17 Aug 2008 10:29:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUjG2-0003Sl-TY for grub-devel@gnu.org; Sun, 17 Aug 2008 10:29:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUjFx-0003SX-Hz for grub-devel@gnu.org; Sun, 17 Aug 2008 10:29:25 -0400 Received: from [199.232.76.173] (port=36530 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUjFx-0003SU-DC for grub-devel@gnu.org; Sun, 17 Aug 2008 10:29:21 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:41155 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUjFx-0007io-4o for grub-devel@gnu.org; Sun, 17 Aug 2008 10:29:21 -0400 Received: from pinux (unknown [77.210.166.67]) by mail.pina.cat (Postfix) with ESMTP id CABC72894B24E for ; Sun, 17 Aug 2008 16:29:19 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id 31F5277A8; Sun, 17 Aug 2008 16:29:16 +0200 (CEST) Date: Sun, 17 Aug 2008 16:29:16 +0200 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20080817142916.GB28198@pina.cat> References: <20080817130119.GA22343@pina.cat> <877iaf20jx.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877iaf20jx.fsf@xs4all.nl> User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] Replace magic numbers by constants 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, 17 Aug 2008 14:29:27 -0000 Hi, On Aug/17/2008, Marco Gerards wrote: > Hi, > > Carles Pina i Estany writes: > > > When I did the Home/End keys patch I noticied that in normal/menu.c > > there was some magic numbers (and some constants was already defined, in > > include/grub/term.h (actually, reading the ChangeLog was committed by > > Robert Millan on 2008-02-05) > > > > I'm sending a patch to change the magic numbers by constants. > > > > ChangeLog: > > -------- > > 2008-08-17 Carles Pina i Estany > > > > * menu/normal.c (run_menu): Change magic numbers by constants. > > Can you be more specific about what you replace? sure: -------- 2008-08-17 Carles Pina i Estany * menu/normal.c (run_menu): Change magic numbers by constants (16 by GRUB_TERM_UP and 14 by GRUB_TERM_DOWN) -------- -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info