2006-16-04 Marco Gerards <marco@gnu.org>
* normal/command.c (grub_command_init): Remove the title command. * normal/lexer.c (grub_script_yylex): Renamed from this... (grub_script_yylex2): ... to this. (grub_script_yylex): New function. Temporary introduced to filter some tokens. (grub_script_yyerror): Print a newline. * normal/main.c (read_config_file): Output information about the lines that contain errors. Wait for a key after all lines have been processed. Don't return an empty menu. * normal/parser.y (func_mem): Don't initialize. (menu_entry): Likewise. (err): New variable. (script): Don't return anything when an error was encountered. (ws, returns): Removed rules. (argument): Disabled concatenated variable support. (arguments): Remove explicit separators. (grubcmd): Likewise. (function): Likewise. (menuentry): Likewise. (if): Likewise. (commands): Likewise. Add error handling. * normal/script.c (grub_script_create_cmdline): If `grub_script_parsed' is 0, assume the parser encountered an error.
This commit is contained in:
parent
b7d9f5fdea
commit
6de2ee9903
6 changed files with 113 additions and 60 deletions
|
@ -357,9 +357,6 @@ lsmod_command (struct grub_arg_list *state __attribute__ ((unused)),
|
|||
void
|
||||
grub_command_init (void)
|
||||
{
|
||||
/* This is a special command, because this never be called actually. */
|
||||
grub_register_command ("title", 0, GRUB_COMMAND_FLAG_TITLE, 0, 0, 0);
|
||||
|
||||
grub_register_command ("rescue", rescue_command, GRUB_COMMAND_FLAG_BOTH,
|
||||
"rescue", "Go back to the rescue mode.", 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue