Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MKPJR-00033z-P6 for mharc-grub-devel@gnu.org; Sat, 27 Jun 2009 00:14:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKPJQ-000316-DQ for grub-devel@gnu.org; Sat, 27 Jun 2009 00:14:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKPJM-0002tk-UA for grub-devel@gnu.org; Sat, 27 Jun 2009 00:14:48 -0400 Received: from [199.232.76.173] (port=50888 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKPJM-0002te-Q6 for grub-devel@gnu.org; Sat, 27 Jun 2009 00:14:44 -0400 Received: from mail-px0-f176.google.com ([209.85.216.176]:61498) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MKPJM-0004iG-HF for grub-devel@gnu.org; Sat, 27 Jun 2009 00:14:44 -0400 Received: by pxi6 with SMTP id 6so2371291pxi.14 for ; Fri, 26 Jun 2009 21:14:43 -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=EP5+a8I5pYaLEwyDUgwtcp1fUHsUXFLMpo8YJ0tzxlE=; b=LwFm+idIRo28/fStrU5POfmthTc2PfaRfeYl/hB2bh7/FqMfdiUTz5HJmf1kqWCZyS JINfOHcoMuSBIYX6vDaEyM/ffRRkbDnQGZ4PGhtgpAJNTpQ1w9jMRdDpSrCRk9QQXTBY 1Dp0CuYffxGLSiJlaWl17KVUbHStwAXYfRTdY= 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=J1ZsXqCYh8dQKSAWQX2/2U9dEfBcqx0DDdrdAmkGkRGMXySpS0ayq0wyOmVdqMkth1 NMrWc5Adc3iKbRqCJJglscDQ9kOwip7xSEFupGxyFKjtsh2mGFlMRtwFfk5DhBvL3FKc Zj7TOMbRdQyCq2IkYaTdg0I2fak3mGNLg/UnQ= MIME-Version: 1.0 Received: by 10.114.95.1 with SMTP id s1mr7267016wab.160.1246076083490; Fri, 26 Jun 2009 21:14:43 -0700 (PDT) In-Reply-To: <1246075477.4569.5.camel@mj> References: <1245698882.24040.1.camel@mj> <1245701210.2754.12.camel@mj> <1245795036.3204.26.camel@mj> <1246062150.20234.70.camel@mj> <1246075477.4569.5.camel@mj> Date: Sat, 27 Jun 2009 12:14:43 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Sat, 27 Jun 2009 04:14:48 -0000 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, but >> 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 take > 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