grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Split of normal mode (version 2)


From: Bean
Subject: Re: [PATCH] Split of normal mode (version 2)
Date: Tue, 7 Apr 2009 00:39:23 +0800

Hi,

This is another update of the patch.

1, Now completion.c is in menu.mod, and menu_viewer.c is in misc.mod,
the reason for the switch is to allow configfile to depend on misc.mod
only.
2, Auto generate handler.lst file, which contain module information
for handlers. normal.mod uses it to register commands to set active
handler, for example:

parser.sh
menu_viewer.text
terminal_output.gfxterm

3, configfile now support an optional parameter to specify the script
engine, for example:

configfile /aa.cfg sh

When configfile returns, the script engine would be restored to the
previous value. This is useful for switching script engine. For
example, you can parse a file in another language, then switch back to
sh for the rest of grub.cfg.

4, normal.mod set the default parser and menu viewer before parsing grub.cfg:
parser.sh
menu_viewer.text

-- 
Bean

Attachment: split_3.zip
Description: Zip archive


reply via email to

[Prev in Thread] Current Thread [Next in Thread]