From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LvO5X-0007K0-BU for mharc-grub-devel@gnu.org; Sat, 18 Apr 2009 23:53:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvO5W-0007JM-2X for grub-devel@gnu.org; Sat, 18 Apr 2009 23:53:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvO5U-0007IB-BC for grub-devel@gnu.org; Sat, 18 Apr 2009 23:53:01 -0400 Received: from [199.232.76.173] (port=35270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvO5U-0007I5-6O for grub-devel@gnu.org; Sat, 18 Apr 2009 23:53:00 -0400 Received: from mx20.gnu.org ([199.232.41.8]:45699) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvO5T-0004s8-Le for grub-devel@gnu.org; Sat, 18 Apr 2009 23:52:59 -0400 Received: from [74.93.104.97] (helo=sunset.davemloft.net) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvO5R-0000Bh-Uj for grub-devel@gnu.org; Sat, 18 Apr 2009 23:52:58 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 790A335C523; Sat, 18 Apr 2009 20:52:48 -0700 (PDT) Date: Sat, 18 Apr 2009 20:52:48 -0700 (PDT) Message-Id: <20090418.205248.172548789.davem@davemloft.net> To: grub-devel@gnu.org, colin@gibibit.com From: David Miller In-Reply-To: <200904180857.33301.colin@gibibit.com> References: <1239983697.4383.15.camel@mj> <20090417.161700.16185907.davem@davemloft.net> <200904180857.33301.colin@gibibit.com> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Subject: Re: Eliminating nested functions 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, 19 Apr 2009 03:53:02 -0000 From: Colin D Bennett Date: Sat, 18 Apr 2009 08:57:33 -0700 > Probably passing a pointer to a local structure is the easiest way > to do it in most cases if the iteration function needs to access > some state, right? Right. The biggest surprise for me, easily, when reading the grub2 sources for the first time was seeing all of this masterbation with nested functions.