Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LyVOJ-0002eG-Uv for mharc-grub-devel@gnu.org; Mon, 27 Apr 2009 14:17:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyVOH-0002d8-Bw for grub-devel@gnu.org; Mon, 27 Apr 2009 14:17:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyVOC-0002Zg-Dk for grub-devel@gnu.org; Mon, 27 Apr 2009 14:17:16 -0400 Received: from [199.232.76.173] (port=40184 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyVOC-0002ZX-9X for grub-devel@gnu.org; Mon, 27 Apr 2009 14:17:12 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:53928) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LyVOB-0001oR-MT for grub-devel@gnu.org; Mon, 27 Apr 2009 14:17:12 -0400 Received: by ewy6 with SMTP id 6so83618ewy.42 for ; Mon, 27 Apr 2009 11:17:11 -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; bh=X8zXKH5Hyd1qEOd6bphSCiESGqrPbNRZ8iRt2bGthOI=; b=Q5TMP1JQUZA9iB5StZEImrSlHimHJz6+ip1aUEqAsA0cyv56sttaFWhRM0IDQj+N1q ZfJmQzV9pMhGVyoZfjDRMqSqvIWLYNitSQkdOYk1lqCThFJtG+8yrdc03PgFltsaVvkh jk8n1mEaE9aLoFOQcbAbb2UjhBI+/0zqmsmlQ= 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; b=q770bkxvud/qxhs8U5d+LrtVLm1To6EB8vyxIHR7bXZSUj0C0WCJp8yBitKgSp23KA SPbfRwX8TrCk0VoWulXVzJ8OHWhF8l7MMo3cHsFB1akQv0rNj59Vj6fpDZ7lDXY5dXST +dbLFgpzvNZz4oORpvD+HBA1MCimypIXKZwdI= MIME-Version: 1.0 Received: by 10.210.10.8 with SMTP id 8mr6241964ebj.20.1240856230974; Mon, 27 Apr 2009 11:17:10 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Apr 2009 20:17:10 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0015174bde46dd548e04688d5a3b X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Split #2: parser/reader separation 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, 27 Apr 2009 18:17:17 -0000 --0015174bde46dd548e04688d5a3b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, Apr 27, 2009 at 7:51 AM, Bean wrote: > On Sun, Apr 26, 2009 at 11:50 PM, Vladimir 'phcoder' Serbinenko > wrote: > > Hello this patch breaks grub-emu. Also some files include grub/rescue.h > and > > this has to be fixed. > > Hi, > > For large patch, I normally add only the necessary changes to make it > compile in i386-pc. As commits are quite frequent, this would minimize > the effort to sync with svn head. I'd fix those small issue before > final commitment. > Ok. However a Changlog would simplify the review because then it would be easy to see which parts are newly written and which is just code moving around > > > Also there is a bug is that in case of syntax error reader continues to > ask > > for more lines. E.g > > grub> if > >>; > > syntax error > >> > > Then it's impossible to exit from this "bug mode". It's not your fault > but > > since you touch this code could you fix this? > > I believe a proper way to solve this is to add an eol character, for > example ctrl-D. Then we have a way to break from console input. But > this fix is not trivial, perhaps it should be in a separate patch. > Ok > > > This patch increases the size of kernel by 504 bytes and the size of > > core.img by 224 bytes. Is there a way to do the same thing in a more > compact > > way? > > Oh, I think it is quite compact already, have you got any suggestion > to reduce its size ? > I'll have a look at it again today or tomorrow > > > Also it would be good to write the current parser in "grub>" prompt (not > > necessary for rescue prompt) > > Good point. > > -- > Bean > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko --0015174bde46dd548e04688d5a3b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Mon, Apr 27, 2009 at 7:51 AM, Bean <bean123ch@gmail.= com> wrote:
On Sun, Apr 26, 2009 at 11:50 PM, Vladimir 'phcoder&#= 39; Serbinenko
<phcoder@gmail.com> wrote: > Hello this patch breaks=A0 grub-emu. Also some files include grub/resc= ue.h and
> this has to be fixed.

Hi,

For large patch, I normally add only the necessary changes to make it
compile in i386-pc. As commits are quite frequent, this would minimize
the effort to sync with svn head. I'd fix those small issue before
final commitment.
Ok. However a Changlog would simp= lify the review because then it would be easy to see which parts are newly = written and which is just code moving around

> Also there is a bug is that in case of syntax error reader continues t= o ask
> for more lines. E.g
> grub> if
>>;
> syntax error
>>
> Then it's impossible to exit from this "bug mode". It= 9;s not your fault but
> since you touch this code could you fix this?

I believe a proper way to solve this is to add an eol character, for<= br> example ctrl-D. Then we have a way to break from console input. But
this fix is not trivial, perhaps it should be in a separate patch.
Ok

> This patch increases the size of kernel by 504 bytes and the size of > core.img by 224 bytes. Is there a way to do the same thing in a more c= ompact
> way?

Oh, I think it is quite compact already, have you got any suggestion<= br> to reduce its size ?
I'll have a look at it again = today or tomorrow

> Also it would be good to write the current parser in "grub>&qu= ot; prompt (not
> necessary for rescue prompt)

Good point.

--
Bean


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel



--
Regards
= Vladimir 'phcoder' Serbinenko
--0015174bde46dd548e04688d5a3b--