vaseboot/include/grub
bean d558e6b5ac 2009-05-02 Bean <bean123ch@gmail.com>
* conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
	script/sh/parser.y.
	(pkglib_MODULES): Add normal.mod and sh.mod.
	(normal_SOURCES): New variable.
	(normal_mod_CFLAGS): Likewise.
	(normal_mod_LDFLAGS): Likewise.
	(sh_mod_SOURCES): Likewise.
	(sh_mod_CFLAGS): Likewise.
	(sh_mod_LDFLAGS): Likewise.

	* conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
	script/sh/lexer.c_DEPENDENCIES.
	(kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
	kern/rescue_reader.c and kern/rescue_parser.c.
	(kernel_img_HEADERS): Remove rescue.h, add reader.h.
	(grub_emu_SOURCES): Change source files.
	(pkglib_MODULES): Remove normal.mod.
	(normal_SOURCES): Removed.
	(normal_mod_CFLAGS): Likewise.
	(normal_mod_LDFLAGS): Likewise.
	* conf/i386-coreboot.rmk: Likewise.
	* conf/i386-efi.rmk: Likewise.
	* conf/i386-ieee1276.rmk: Likewise.
	* conf/powerpc-ieee1275.rmk: Likewise.
	* conf/sparc64-ieee1275.rmk: Likewise.
	* conf/x86_64-efi.rmk: Likewise.

	* include/grub/command.h (grub_command_execute): New inline function.

	* include/grub/menu.h (grub_menu_entry): Removed commands field.

	* include/grub/normal.h: Remove <grub/setjmp.h>.
	(grub_fs_module_list): Moved to normal/autofs.c.
	(grub_exit_env): Removed.
	(grub_command_execute): Likewise.
	(grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
	parameter script.
	(read_command_list): New function declaration.
	(read_fs_list): Likewise.

	* include/parser.h: Include <grub/reader.h>.
	(grub_parser_split_cmdline): Change type of getline parameter.
	(grub_parser): New structure.
	(grub_parser_class): New variable.
	(grub_parser_execute): New function declaration.
	(grub_register_rescue_parser): Likewise.
	(grub_parser_register): New inline function.
	(grub_parser_unregister): Likewise.
	(grub_parser_get_current): Likewise.
	(grub_parser_set_current): Likewise.

	* include/grub/reader.h: New file.
	* kern/reader.c: Likewise.
	* kern/rescue_parser.c: Likewise.
	* kern/rescue_reader.c: Likewise.
	* normal/autofs.c: Likewise.
	* normal/dyncmd.c: Likewise.

	* include/grub/rescue.h: Removed.
	* normal/command.h: Likewise.

	* include/grub/script.h: Moved to ...
	* include/grub/script_sh.h: ... Moved here.
	* normal/execute.c: Moved to ...
	* script/sh/execute.c: ... Moved here.
	* normal/function.c: Moved to ...
	* script/sh/function.c: ... Moved here.
	* normal/lexer.c: Moved to ...
	* script/sh/lexer.c: ... Moved here.
	* normal/parser.y: Moved to ...
	* script/sh/parser.y: ... Moved here.
	* normal/script.c: Moved to ...
	* script/sh/script.c: ... Moved here.

	* normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
	<grub/reader.h>.
	(grub_exit_env): Removed.
	(fs_module_list): Moved to normal/autofs.c.
	(grub_file_getline): Don't handle comment here.
	(free_menu): Skip removed field entry->commands.
	(grub_normal_menu_addentry): Removed as grub_menu_entry, removed
	script parameter.
	(read_config_file): Removed nested parameter, change getline function.
	(grub_enter_normal_mode): Removed.
	(grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
	(read_command_list): Likewise.
	(autoload_fs_module): Moved to normal/autofs.c.
	(read_fs_list): Likewise.
	(reader_nested): New variable.
	(grub_normal_execute): Run parser.sh to switch to sh parser.
	(grub_cmd_rescue): Removed.
	(cmd_normal): Removed.
	(grub_cmd_normal): Unregister itself at the beginning. Don't register
	rescue command.
	(grub_cmdline_run): New function.
	(grub_normal_reader_init): Likewise.
	(grub_normal_read_line): Likewise.
	(grub_env_write_pager): Likewise.
	(cmdline): New variable.
	(grub_normal_reader): Likewise.
	(GRUB_MOD_INIT): Register normal reader and set as current, register
	pager hook, register normal command with grub_register_command_prio,
	so that it won't show up in command.lst.
	(GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
	grub_fs_autoload_hook.

	* normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
	(grub_menu_execute_entry): Replace grub_script_execute with
	grub_parser_execute, change parameter to grub_command_execute.

	* normal/menu_text.c: Remove <grub/script.h>.

	* normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
	and <grub/parser.h>.
	(run): Change editor_getline to use new parser interface. Change
	parameter to grub_command_execute.

	* kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
	<grub/reader.h> and <grub/parser.h>.
	(grub_load_normal_mode): Execute normal command.
	(grub_main): Call grub_register_core_commands,
	grub_register_rescue_parser and grub_register_rescue_reader, use
	grub_reader_loop to enter input loop.

	* kern/parser.c (grub_parser_spli_cmdline): Change type of getline
	parameter.
	(grub_parser_class): New variable.
	(grub_parser_execute): New function.

	* loader/i386/multiboot.c: Remove <grub/rescue.h>.
	* loader/multiboot2.c: Likewise.
	* loader/sparc64/ieee1275/linux.c: Likewise.

	* util/grub-emu.c (read_command_list): New dummy function.
2009-05-02 19:49:34 +00:00
..
efi 2009-04-10 Bean <bean123ch@gnail.com> 2009-04-10 15:33:34 +00:00
i386 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-26 15:09:30 +00:00
ieee1275 * disk/ieee1275/nand.c (grub_nand_iterate): Return 2009-04-24 12:05:54 +00:00
lib Really remove lib/datetime.c and include/grub/lib/datetime.h 2009-04-24 17:05:19 +00:00
powerpc * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h. 2009-04-30 01:34:38 +00:00
sparc64 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h. 2009-04-30 01:34:38 +00:00
util * util/sparc64/ieee1275/misc.c: New file. 2009-04-22 09:57:39 +00:00
x86_64 2009-04-01 David S. Miller <davem@davemloft.net> 2009-04-01 13:01:05 +00:00
acorn_filecore.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
aout.h Fix typos in ChangeLog and comments 2008-07-13 18:13:36 +00:00
ata.h 2009-02-14 Christian Franke <franke@computer.org> 2009-02-14 12:57:55 +00:00
bitmap.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
boot.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
bufio.h 2008-08-01 Bean <bean123ch@gmail.com> 2008-08-01 04:06:55 +00:00
cache.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
command.h 2009-05-02 Bean <bean123ch@gmail.com> 2009-05-02 19:49:34 +00:00
datetime.h 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-05 20:19:05 +00:00
device.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
disk.h 2009-02-14 Christian Franke <franke@computer.org> 2009-02-14 12:57:55 +00:00
dl.h 2009-01-10 Robert Millan <rmh@aybabtu.com> 2009-01-10 13:07:44 +00:00
elf.h 2009-01-10 Robert Millan <rmh@aybabtu.com> 2009-01-10 13:07:44 +00:00
elfload.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
env.h 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org> 2009-03-22 10:45:06 +00:00
err.h 2009-02-08 Marco Gerards <marco@gnu.org> 2009-02-08 17:58:32 +00:00
extcmd.h 2009-03-21 Bean <bean123ch@gmail.com> 2009-03-21 08:39:59 +00:00
file.h 2007-08-02 Bean <bean123ch@gmail.com> 2007-08-02 18:40:37 +00:00
font.h 2009-01-02 Colin D Bennett <colin@gibibit.com> 2009-01-02 15:26:06 +00:00
fs.h 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-05 20:19:05 +00:00
fshelp.h 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-05 20:19:05 +00:00
gpt_partition.h 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-19 20:38:46 +00:00
gzio.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
handler.h 2009-03-01 Bean <bean123ch@gmail.com> 2009-03-01 17:51:44 +00:00
hfs.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
kernel.h 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-15 12:45:50 +00:00
list.h 2009-03-21 Bean <bean123ch@gmail.com> 2009-03-21 08:39:59 +00:00
loader.h 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-27 16:48:58 +00:00
lvm.h 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org> 2008-10-05 10:51:23 +00:00
menu.h 2009-05-02 Bean <bean123ch@gmail.com> 2009-05-02 19:49:34 +00:00
menu_viewer.h 2009-01-31 Colin D Bennett <colin@gibibit.com> 2009-01-31 09:15:43 +00:00
misc.h 2009-04-06 Pavel Roskin <proski@gnu.org> 2009-04-07 00:48:57 +00:00
mm.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
multiboot.h 2008-08-17 Robert Millan <rmh@aybabtu.com> 2008-08-17 16:32:18 +00:00
multiboot2.h This patch is to introduce multiboot 2 loading capabilities to grub2 2007-07-25 00:44:03 +00:00
multiboot_loader.h This patch is to introduce multiboot 2 loading capabilities to grub2 2007-07-25 00:44:03 +00:00
net.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
normal.h 2009-05-02 Bean <bean123ch@gmail.com> 2009-05-02 19:49:34 +00:00
ntfs.h 2008-09-22 Bean <bean123ch@gmail.com> 2008-09-22 04:18:57 +00:00
parser.h 2009-05-02 Bean <bean123ch@gmail.com> 2009-05-02 19:49:34 +00:00
partition.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
parttool.h 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com> 2009-04-06 09:51:01 +00:00
pc_partition.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
pci.h 2009-04-10 Bean <bean123ch@gnail.com> 2009-04-10 15:33:34 +00:00
raid.h 2008-08-23 Bean <bean123ch@gmail.com> 2008-08-23 14:51:19 +00:00
reader.h 2009-05-02 Bean <bean123ch@gmail.com> 2009-05-02 19:49:34 +00:00
script_sh.h 2009-05-02 Bean <bean123ch@gmail.com> 2009-05-02 19:49:34 +00:00
scsi.h 2008-08-27 Marco Gerards <marco@gnu.org> 2008-08-27 15:05:00 +00:00
scsicmd.h 2008-08-27 Marco Gerards <marco@gnu.org> 2008-08-27 15:05:00 +00:00
setjmp.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
symbol.h 2009-01-10 Robert Millan <rmh@aybabtu.com> 2009-01-10 13:07:44 +00:00
term.h 2009-04-14 Bean <bean123ch@gmail.com> 2009-04-14 18:12:14 +00:00
terminfo.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
time.h 2008-08-05 Colin D Bennett <colin@gibibit.com> 2008-08-05 11:54:37 +00:00
tparm.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
types.h 2009-04-15 Pavel Roskin <proski@gnu.org> 2009-04-15 20:45:09 +00:00
usb.h 2009-02-08 Marco Gerards <marco@gnu.org> 2009-02-08 17:58:32 +00:00
usbdesc.h 2009-02-08 Marco Gerards <marco@gnu.org> 2009-02-08 17:58:32 +00:00
usbtrans.h 2009-02-08 Marco Gerards <marco@gnu.org> 2009-02-08 17:58:32 +00:00
video.h 2009-01-02 Colin D Bennett <colin@gibibit.com> 2009-01-02 15:26:06 +00:00