grub/normal
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 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
powerpc 2004-11-17 Hollis Blanchard <hollis@penguinppc.org> 2004-11-16 23:34:45 +00:00
sparc64 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> 2005-10-23 21:38:12 +00:00
arg.c 2005-07-17 Yoshinori Okuji <okuji@enbug.org> 2005-07-17 20:26:07 +00:00
cmdline.c 2005-08-28 Marco Gerards <metgerards@student.han.nl> 2005-08-28 17:01:16 +00:00
command.c 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org> 2005-11-18 10:51:00 +00:00
completion.c 2005-10-24 Marco Gerards <mgerards@xs4all.nl> 2005-10-24 10:23:46 +00:00
context.c 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org> 2005-02-27 21:19:06 +00:00
execute.c 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
function.c 2005-11-06 Marco Gerards <mgerards@xs4all.nl> 2005-11-06 22:19:59 +00:00
lexer.c 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
main.c 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
menu.c 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
menu_entry.c 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
misc.c 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org> 2005-08-19 00:32:01 +00:00
parser.y 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00
script.c 2006-01-17 Marco Gerards <marco@gnu.org> 2006-01-17 09:50:47 +00:00