Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CjlFz-0008Cr-Vo for mharc-grub-devel@gnu.org; Wed, 29 Dec 2004 16:21:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CjlFx-0008Bc-N8 for grub-devel@gnu.org; Wed, 29 Dec 2004 16:21:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CjlFu-00089l-MH for grub-devel@gnu.org; Wed, 29 Dec 2004 16:21:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CjlFu-00089i-JQ for grub-devel@gnu.org; Wed, 29 Dec 2004 16:21:18 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cjl3u-0006KT-2n for grub-devel@gnu.org; Wed, 29 Dec 2004 16:08:54 -0500 Received: from vscan-ca.han.nl (mars.han.nl [145.74.129.116]) by mail-cn.han.nl (Postfix) with ESMTP id 2E4E08C6D for ; Wed, 29 Dec 2004 22:07:36 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.51]) by vscan-ca.han.nl (mars.han.nl [145.74.129.116]) (amavisd-new, port 10024) with LMTP id 13971-01-7 for ; Wed, 29 Dec 2004 22:07:33 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 5524B8DDC for ; Wed, 29 Dec 2004 22:07:33 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 1173DC050 for ; Wed, 29 Dec 2004 22:07:33 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <41BE9159.7010500@yahoo.fr> <87wtv0j3zy.fsf@marco.marco-g.com> <41D30A52.40602@yahoo.fr> From: Marco Gerards Date: Wed, 29 Dec 2004 21:06:55 +0000 In-Reply-To: <41D30A52.40602@yahoo.fr> (Vincent Pelletier's message of "Wed, 29 Dec 2004 20:49:38 +0100") Message-ID: <87fz1oizkg.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-ca.han.nl Subject: Re: [PATCH] normal/cmdline.c : history contains empty lines 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: Wed, 29 Dec 2004 21:21:22 -0000 Vincent Pelletier writes: > The empty string could be checked using a buf[0]==0 instead of > calling grub_strlen as I did (faster, but maybe less portable in > case of wide chars). Yeah, but this makes it more readable. Speed is not really an issue in handling a command line. :) > grub_history_add should be moved after the while loop too. In my code? -- Marco