* grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
argument to prevent name collision.
This commit is contained in:
parent
09fd6d8293
commit
4542e71b8b
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
|
||||||
|
argument to prevent name collision.
|
||||||
|
|
||||||
2013-01-15 Colin Watson <cjwatson@ubuntu.com>
|
2013-01-15 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
Remove nested functions from script reading and parsing.
|
Remove nested functions from script reading and parsing.
|
||||||
|
|
|
@ -216,7 +216,7 @@ grub_script_lexer_yywrap (struct grub_parser_param *parserstate,
|
||||||
|
|
||||||
struct grub_lexer_param *
|
struct grub_lexer_param *
|
||||||
grub_script_lexer_init (struct grub_parser_param *parser, char *script,
|
grub_script_lexer_init (struct grub_parser_param *parser, char *script,
|
||||||
grub_reader_getline_t getline, void *getline_data)
|
grub_reader_getline_t arg_getline, void *getline_data)
|
||||||
{
|
{
|
||||||
struct grub_lexer_param *lexerstate;
|
struct grub_lexer_param *lexerstate;
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ grub_script_lexer_init (struct grub_parser_param *parser, char *script,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
lexerstate->getline = getline;
|
lexerstate->getline = arg_getline;
|
||||||
lexerstate->getline_data = getline_data;
|
lexerstate->getline_data = getline_data;
|
||||||
/* The other elements of lexerstate are all zeros already. */
|
/* The other elements of lexerstate are all zeros already. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue