Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D19Qx-0004nM-AQ for mharc-grub-devel@gnu.org; Tue, 15 Feb 2005 15:36:35 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D19Qu-0004mM-W2 for grub-devel@gnu.org; Tue, 15 Feb 2005 15:36:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D19Qt-0004ls-TF for grub-devel@gnu.org; Tue, 15 Feb 2005 15:36:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D19Ig-00028P-4H for grub-devel@gnu.org; Tue, 15 Feb 2005 15:28:02 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D18bX-0005Db-Fm for grub-devel@gnu.org; Tue, 15 Feb 2005 14:43:27 -0500 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 41AF48EB8 for ; Tue, 15 Feb 2005 20:41:44 +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 21055-07 for ; Tue, 15 Feb 2005 20:41:41 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 2D6DE8D99 for ; Tue, 15 Feb 2005 20:41:41 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id C9198C045 for ; Tue, 15 Feb 2005 20:41:40 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <200502142225.36773.okuji@enbug.org> From: Marco Gerards Date: Tue, 15 Feb 2005 19:41:56 +0000 In-Reply-To: <200502142225.36773.okuji@enbug.org> (Yoshinori K. Okuji's message of "Mon, 14 Feb 2005 22:25:36 +0100") Message-ID: <87sm3xy5iz.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: some design issues 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: Tue, 15 Feb 2005 20:36:33 -0000 "Yoshinori K. Okuji" writes: > I think the name "menu.lst" is really strange, so I don't like it. But I > don't know if grub.cfg is nice. What do you think? I sometimes think > that "grubrc" might be better (like "bashrc"). I like grub.cfg. > Next thing. I think it is a bad idea to make the variable for a menu > global, because this is not compatible with having multiple nested > menus. But some commands want to access information on the environment > (such as current menu). I can think of two ways to address this issue: > > 1. Pass one more argument to each command. This argument would be a > pointer to struct context, and contains a pointer to current menu, etc. > > 2. Provide global functions to access information. These functions would > have to use global variables. With 2 you mean that the function accesses the current menu all the time? Is accessing another menu useful in some cases? Thanks,