grub/include/grub
marco_g 77c4a3939d 2006-01-17 Marco Gerards <marco@gnu.org>
* include/grub/normal.h: Include <grub/script.h>.
	(grub_command_list): Removed struct.
	(grub_command_list_t): Removed type.
	(grub_menu_entry): Remove members `num' and `command_list'.  Add
	members `commands' and `sourcecode'.
	* include/grub/script.h: Add inclusion guards.
	(grub_script_cmd_menuentry): New struct.
	(grub_script_execute_menuentry): New prototype.
	(grub_script_lexer_record_start): Likewise.
	(grub_script_lexer_record_stop): Likewise.
	* normal/execute.c (grub_script_execute_menuentry): New function.
	* normal/lexer.c (record, recording, recordpos, recordlen): New
	variables.
	(grub_script_lexer_record_start): New function.
	(grub_script_lexer_record_stop): Likewise.
	(recordchar): Likewise.
	(nextchar): Likewise.
	(grub_script_yylex): Use `nextchar' to fetch new characters.  Use
	2048 as the buffer size.  Add the tokens `menuentry' and `@'.
	* normal/main.c: Include <grub/parser.h> and <grub/script.h>
	(current_menu): New variable.
	(free_menu): Mainly rewritten.
	(grub_normal_menu_addentry): New function.
	(read_config_file): Rewritten.
	* normal/menu.c (run_menu_entry): Mainly rewritten.
	* normal/menu_entry.c (make_screen): Rewritten te code to insert
	the menu entry.
	(run): Mainly rewritten.
	* normal/parser.y (menu_entry): New variable.
	(GRUB_PARSER_TOKEN_MENUENTRY): New token.
	(menuentry): New rule.
	(command): Add `menuentry'.
	(if_statement): Allow additional returns before `fi'.
	* normal/script.c (grub_script_create_cmdmenu): New function.
2006-01-17 09:50:47 +00:00
..
i386 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> 2005-12-25 19:40:31 +00:00
ieee1275 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> 2005-08-21 18:42:55 +00:00
powerpc 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> 2005-08-09 03:15:35 +00:00
sparc64 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> 2005-10-23 21:01:19 +00:00
util 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org> 2005-02-15 00:07:01 +00:00
acorn_filecore.h 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> 2005-11-13 19:45:12 +00:00
arg.h 2005-07-17 Yoshinori Okuji <okuji@enbug.org> 2005-07-17 20:26:07 +00:00
boot.h 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
cache.h 2004-12-27 Marco Gerards <metgerards@student.han.nl> 2004-12-27 13:46:20 +00:00
device.h 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-08-20 07:49:02 +00:00
disk.h 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org> 2005-08-18 03:14:39 +00:00
dl.h 2005-11-27 Marco Gerards <mgerards@xs4all.nl> 2005-11-27 12:21:12 +00:00
elf.h 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
env.h 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-20 20:30:46 +00:00
err.h 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi> 2005-12-23 22:59:12 +00:00
file.h 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
font.h 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
fs.h 2005-10-09 Marco Gerards <mgerards@xs4all.nl> 2005-10-09 13:03:53 +00:00
fshelp.h 2005-12-25 Marco Gerards <marco@gnu.org> 2005-12-25 15:59:50 +00:00
gzio.h 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org> 2005-08-22 17:28:59 +00:00
hfs.h 2006-01-03 Hollis Blanchard <hollis@penguinppc.org> 2006-01-03 14:30:57 +00:00
kernel.h 2005-10-01 Marco Gerards <mgerards@xs4all.nl> 2005-10-01 19:49:55 +00:00
loader.h 2004-12-27 Marco Gerards <metgerards@student.han.nl> 2004-12-27 13:46:20 +00:00
misc.h 2005-10-24 Marco Gerards <mgerards@xs4all.nl> 2005-10-24 10:23:46 +00:00
mm.h 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org> 2005-08-22 17:28:59 +00:00
net.h 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
normal.h 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
parser.h 2005-10-24 Marco Gerards <mgerards@xs4all.nl> 2005-10-24 10:23:46 +00:00
partition.h 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-08-20 07:49:02 +00:00
pc_partition.h 2005-12-03 Marco Gerards <mgerards@xs4all.nl> 2005-12-03 17:54:55 +00:00
rescue.h 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
script.h 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
setjmp.h 2004-11-17 Hollis Blanchard <hollis@penguinppc.org> 2004-11-16 23:34:45 +00:00
symbol.h 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> 2005-11-13 21:37:16 +00:00
term.h 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> 2005-10-15 09:22:32 +00:00
terminfo.h 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org> 2005-09-03 16:54:27 +00:00
tparm.h 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org> 2005-09-03 16:54:27 +00:00
types.h 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> 2005-11-13 19:45:12 +00:00