2008-05-29 Pavel Roskin <proski@gnu.org>
* include/grub/script.h: Don't include grub_script.tab.h. It's a generated file, which may only be included from the files with DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE, use union YYSTYPE, as the later allows forward declaration. * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
This commit is contained in:
parent
47248e0825
commit
528ad8f272
3 changed files with 14 additions and 5 deletions
|
@ -136,10 +136,11 @@ nextchar (struct grub_lexer_param *state)
|
|||
}
|
||||
|
||||
int
|
||||
grub_script_yylex2 (YYSTYPE *yylval, struct grub_parser_param *parsestate);
|
||||
grub_script_yylex2 (union YYSTYPE *yylval,
|
||||
struct grub_parser_param *parsestate);
|
||||
|
||||
int
|
||||
grub_script_yylex (YYSTYPE *yylval, struct grub_parser_param *parsestate)
|
||||
grub_script_yylex (union YYSTYPE *yylval, struct grub_parser_param *parsestate)
|
||||
{
|
||||
int r = -1;
|
||||
|
||||
|
@ -153,7 +154,7 @@ grub_script_yylex (YYSTYPE *yylval, struct grub_parser_param *parsestate)
|
|||
}
|
||||
|
||||
int
|
||||
grub_script_yylex2 (YYSTYPE *yylval, struct grub_parser_param *parsestate)
|
||||
grub_script_yylex2 (union YYSTYPE *yylval, struct grub_parser_param *parsestate)
|
||||
{
|
||||
grub_parser_state_t newstate;
|
||||
char use;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue