Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MNRWb-0002KH-PQ for mharc-grub-devel@gnu.org; Sun, 05 Jul 2009 09:12:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNRWa-0002JZ-1T for grub-devel@gnu.org; Sun, 05 Jul 2009 09:12:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNRWV-0002H5-BL for grub-devel@gnu.org; Sun, 05 Jul 2009 09:12:55 -0400 Received: from [199.232.76.173] (port=34761 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNRWV-0002Gy-1y for grub-devel@gnu.org; Sun, 05 Jul 2009 09:12:51 -0400 Received: from vader.rez-gif.supelec.fr ([160.228.154.1]:49810) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNRWU-0006bj-KT for grub-devel@gnu.org; Sun, 05 Jul 2009 09:12:50 -0400 Received: from localhost (localhost [127.0.0.1]) by vader.rez-gif.supelec.fr (Postfix) with ESMTP id 964442C6A76 for ; Sun, 5 Jul 2009 15:11:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at rez-gif.supelec.fr Received: from vader.rez-gif.supelec.fr ([127.0.0.1]) by localhost (vader.rez-gif.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g6Lh04BNA953 for ; Sun, 5 Jul 2009 15:11:14 +0200 (CEST) Received: from [127.0.0.1] (duboucher5.rez-gif.supelec.fr [160.228.157.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vader.rez-gif.supelec.fr (Postfix) with ESMTPS id 03C0A2C6A56 for ; Sun, 5 Jul 2009 15:11:13 +0200 (CEST) Message-ID: <4A50A667.5030800@duboucher.eu> Date: Sun, 05 Jul 2009 15:11:03 +0200 From: Duboucher Thomas User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: The development of GRUB 2 References: <1245701210.2754.12.camel@mj> <1245795036.3204.26.camel@mj> <1246062150.20234.70.camel@mj> <1246075477.4569.5.camel@mj> In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=A79F86A8 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: Sun, 05 Jul 2009 13:12:56 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was reading the code and now I have a question. You are creating a grub librairy writen in C including useful functions such as 'grub.file_open'. But in your implementation, you removed base libraries such as 'os' and 'io'. So why don't you just rewrite 'io.open' instead of creating 'grub.file_open'? Thomas. Bean a =E9crit : > Committed. >=20 > On Sat, Jun 27, 2009 at 12:14 PM, Bean wrote: >> On Sat, Jun 27, 2009 at 12:04 PM, Pavel Roskin wrote: >>> On Sat, 2009-06-27 at 11:53 +0800, Bean wrote: >>> >>>> Yes, actually it's just a bunch of file_exist AND or OR together, bu= t >>>> I think if we use this kind of test often enough, implement it in c >>>> would be more efficient. >>> So far, we only have one file. >>> >>> I checked the Lua reference manual, and no file related functions tak= e >>> lists of filenames: >>> >>> http://www.lua.org/manual/5.1/ >>> >>> If it was ineffective, I think Lua developers would have designed the >>> file access differently. >> All right then, I'd change it back to single parameter. Actually it's >> not a big deal, but I just hate long lines, :) >> >> -- >> Bean >> >=20 >=20 >=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpQpmcACgkQBV7eXqefhqjZkgCfdigjl2N7DFu3xxNCLDbyMerP AyEAoKzDcOW6ebJtdEIUcNSB9q57q64G =3DfJix -----END PGP SIGNATURE-----