Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MIaMh-00025i-1t for mharc-grub-devel@gnu.org; Sun, 21 Jun 2009 23:38:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIaMf-00024d-0g for grub-devel@gnu.org; Sun, 21 Jun 2009 23:38:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIaMe-00024P-Kv for grub-devel@gnu.org; Sun, 21 Jun 2009 23:38:36 -0400 Received: from [199.232.76.173] (port=50309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIaMe-00024M-Fc for grub-devel@gnu.org; Sun, 21 Jun 2009 23:38:36 -0400 Received: from yw-out-1718.google.com ([74.125.46.152]:64995) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIaMe-0007j0-3B for grub-devel@gnu.org; Sun, 21 Jun 2009 23:38:36 -0400 Received: by yw-out-1718.google.com with SMTP id 5so1365782ywm.66 for ; Sun, 21 Jun 2009 20:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=K2TAUkBke9XGv1CbbOJEaeNAJz/H6nxO8n/crwvapHI=; b=t2XVAA9/cfMb3V1M3Q4cGqLv9U10nK73b314yE3jnLTD/fg+UvSbY6tp17YVpHxj8c /S7Z2uz9F75pblYuE36nXM8a4AWmTHrtwYPjsUPrAe6Hoi9v7ut9M2xmspE1IvOosTT0 htrr4FuqzpjhjRcPk7Jveb7TcE/7/XZ6aGoRw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=BFwoSG2rmG/ncNaNNyV1YKJYljq12yyloMVye2vQsixtTfzeHe3En74Ro/6Oz59TUB 7KbMikPfkk61qMKnMI9Q2mvadB42D5c3B/Y7IckH0DbbI7odjYNWf/uOh6zvbtFCZi5T OFaHpeew9oDKyCy1YEP3djXEr9WWR85C0LHUk= MIME-Version: 1.0 Received: by 10.90.81.11 with SMTP id e11mr4802121agb.119.1245641915477; Sun, 21 Jun 2009 20:38:35 -0700 (PDT) In-Reply-To: <1245631353.9864.7.camel@mj> References: <1245631353.9864.7.camel@mj> Date: Mon, 22 Jun 2009 11:38:35 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] File access library for lua 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: Mon, 22 Jun 2009 03:38:37 -0000 Hi, On Mon, Jun 22, 2009 at 8:42 AM, Pavel Roskin wrote: > On Sun, 2009-06-21 at 19:33 +0800, Bean wrote: > >> I've added a few function in the lua grub library to access files: > ... >> I also enable the string library from lua. > > The patch doesn't introduce any compiler warnings, and that's good. > > It makes lua.mod bigger by about 10%, but it's very little compared to > the added functionality. This is probably due to the enable of string library, the file access function itself should be quite small. > > Please don't add trailing whitespace. =A0STGit detects it in two places. > > There are several cases of missing spaces before parentheses. > > We probably need NESTED_FUNC_ATTR in the dir definition in struct > grub_fs, as it takes two arguments. =A0But is a separate issue. > > I'm feeling uneasy about having a parser in GRUB that is not used by > default, but it's not related to the quality of the patch. Actually, this is about to change. The file function here can be used in a script osdetect.lua to generate menu items at runtime, and I also plans to integrate lua with menu viewer. > > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Bean