From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Tq9X3-0000PK-V0 for mharc-grub-devel@gnu.org; Tue, 01 Jan 2013 16:37:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tq9Ww-0000Oh-Sr for grub-devel@gnu.org; Tue, 01 Jan 2013 16:37:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tq9Wp-0001gU-Em for grub-devel@gnu.org; Tue, 01 Jan 2013 16:37:50 -0500 Received: from mail-la0-f42.google.com ([209.85.215.42]:63605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tq9Wp-0001gC-68 for grub-devel@gnu.org; Tue, 01 Jan 2013 16:37:43 -0500 Received: by mail-la0-f42.google.com with SMTP id fe20so5262079lab.1 for ; Tue, 01 Jan 2013 13:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=QZs1YB1rpLG8K3vMTWDfZ1zrkOPYA2sblLNGeinuYYk=; b=XxLCbn9wGQHRwd/cQocdX4xSwibWet/cdYmZlJZw/eRcD0fzEHSrXaGODue0sN8HNt xuUcr0HQPTQr3byC3iryTWV7tHr8pPoJx/U/ROibKe93aLtHLWsye42aiKYTsdg+3wG3 zlEo289/zdHG+GN7nfrdAEIp/RmrvYhVtxE4zwp0CfKq+txhsYIDGx68VpC45tanhkuO EyBtnTXvmJIqXp+glt02wsKrfY+avLWhhOKFImdxyZTrVR+JlKkJdEsqRxg1tvTkYBO7 WbXy341cny5nLtSTwPk8VHH7+eVPnZsLxsw6tCCxYD3pmkb6TIx1Yop0BdtmdHVPE/r8 1W2g== X-Received: by 10.152.110.18 with SMTP id hw18mr42348579lab.22.1357076261535; Tue, 01 Jan 2013 13:37:41 -0800 (PST) Received: from opensuse.site (ppp91-78-198-46.pppoe.mtu-net.ru. [91.78.198.46]) by mx.google.com with ESMTPS id lx18sm16780436lab.14.2013.01.01.13.37.39 (version=SSLv3 cipher=OTHER); Tue, 01 Jan 2013 13:37:40 -0800 (PST) Date: Wed, 2 Jan 2013 01:37:38 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [PATCH] Removing nested functions, part one of lots Message-ID: <20130102013738.0f1034cb@opensuse.site> In-Reply-To: <20130101144204.GZ21216@riva.dynamic.greenend.org.uk> References: <20130101144204.GZ21216@riva.dynamic.greenend.org.uk> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.42 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 21:37:56 -0000 В Tue, 1 Jan 2013 14:42:04 +0000 Colin Watson пишет: > > * If a hook requires more than one local variable from its parent > function, declare "struct _ctx" with the necessary > variables, and convert both the hook and the parent to access the > variables in question via that structure. Personally I find "ctx" part a bit confusing. It is not really execution context in usual sense, it is just collection of random variables. I would rather go with "struct _data" here.