Typo fixes in comments and variable names.
This commit is contained in:
parent
c3c20931a9
commit
cc85c3c340
39 changed files with 76 additions and 76 deletions
|
@ -231,7 +231,7 @@ grub_script_execute_menuentry (struct grub_script_cmd *cmd)
|
|||
return grub_errno;
|
||||
}
|
||||
|
||||
/* XXX: When this fails, the memory should be free'ed? */
|
||||
/* XXX: When this fails, the memory should be freed? */
|
||||
return grub_normal_menu_addentry (title, script,
|
||||
cmd_menuentry->sourcecode);
|
||||
}
|
||||
|
|
|
@ -254,7 +254,7 @@ grub_script_yylex2 (YYSTYPE *yylval, struct grub_parser_param *parsestate)
|
|||
break;
|
||||
|
||||
/* If the string is not quoted or escaped, stop processing
|
||||
when a special token was found. It will be recognised
|
||||
when a special token was found. It will be recognized
|
||||
next time when this function is called. */
|
||||
if (newstate == GRUB_PARSER_STATE_TEXT
|
||||
&& state->state != GRUB_PARSER_STATE_ESC)
|
||||
|
|
|
@ -335,7 +335,7 @@ insert_string (struct screen *screen, char *s, int update)
|
|||
int size;
|
||||
int orig_num, new_num;
|
||||
|
||||
/* Find a string delimitted by LF. */
|
||||
/* Find a string delimited by LF. */
|
||||
p = grub_strchr (s, '\n');
|
||||
if (! p)
|
||||
p = s + grub_strlen (s);
|
||||
|
|
|
@ -92,7 +92,7 @@ argument: GRUB_PARSER_TOKEN_VAR
|
|||
$$ = grub_script_arg_add (state, 0, GRUB_SCRIPT_ARG_TYPE_STR, $1);
|
||||
}
|
||||
/* XXX: Currently disabled to simplify the parser. This should be
|
||||
parsed by yet another parser for readibility. */
|
||||
parsed by yet another parser for readability. */
|
||||
/* | argument GRUB_PARSER_TOKEN_VAR */
|
||||
/* { */
|
||||
/* $$ = grub_script_arg_add ($1, GRUB_SCRIPT_ARG_TYPE_VAR, $2); */
|
||||
|
@ -163,14 +163,14 @@ commands: command '\n'
|
|||
change any stuff because it might seem like a fun thing to do!
|
||||
Special care was take to make sure the mid-rule actions are
|
||||
executed on the right moment. So the `commands' rule should be
|
||||
recognised after executing the `grub_script_mem_record; and before
|
||||
recognized after executing the `grub_script_mem_record; and before
|
||||
`grub_script_mem_record_stop'. */
|
||||
function: "function" GRUB_PARSER_TOKEN_NAME
|
||||
{
|
||||
grub_script_lexer_ref (state->lexerstate);
|
||||
} newlines '{'
|
||||
{
|
||||
/* The first part of the function was recognised.
|
||||
/* The first part of the function was recognized.
|
||||
Now start recording the memory usage to store
|
||||
this function. */
|
||||
state->func_mem = grub_script_mem_record (state);
|
||||
|
|
|
@ -24,14 +24,14 @@
|
|||
|
||||
/* It is not possible to deallocate the memory when a syntax error was
|
||||
found. Because of that it is required to keep track of all memory
|
||||
allocations. The memory is free'ed in case of an error, or
|
||||
allocations. The memory is freed in case of an error, or
|
||||
assigned to the parsed script when parsing was successful. */
|
||||
|
||||
/* XXX */
|
||||
|
||||
/* In case of the normal malloc, some additional bytes are allocated
|
||||
for this datastructure. All reserved memory is stored in a linked
|
||||
list so it can be easily free'ed. The original memory can be found
|
||||
list so it can be easily freed. The original memory can be found
|
||||
from &mem. */
|
||||
struct grub_script_mem
|
||||
{
|
||||
|
@ -230,7 +230,7 @@ grub_script_create_cmdmenu (struct grub_parser_param *state,
|
|||
cmd = grub_script_malloc (state, sizeof (*cmd));
|
||||
cmd->cmd.exec = grub_script_execute_menuentry;
|
||||
cmd->cmd.next = 0;
|
||||
/* XXX: Check if this memory is properly free'ed. */
|
||||
/* XXX: Check if this memory is properly freed. */
|
||||
cmd->sourcecode = sourcecode;
|
||||
cmd->title = title;
|
||||
cmd->options = options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue