diff --git a/ChangeLog b/ChangeLog index 4a48d21e..1c34436d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-20 Akim Demaille + + * data/bison.simple (YYLEX): Fix the declaration when + %pure-parser. + 2002-06-20 Akim Demaille * data/bison.simple (yysymprint): Don't print the token number, diff --git a/data/bison.simple b/data/bison.simple index c5ce1386..3aa24765 100644 --- a/data/bison.simple +++ b/data/bison.simple @@ -537,9 +537,9 @@ while (0) b4_pure_if( [#ifdef YYLEX_PARAM -# define YYLEX yylex (&yylval, b4_location_if([&yylloc, ])YYLEX_PARAM) +# define YYLEX yylex (&yylval[]b4_location_if([, &yylloc]), YYLEX_PARAM) #else -# define YYLEX yylex (&yylval, b4_location_if([&yylloc, ])) +# define YYLEX yylex (&yylval[]b4_location_if([, &yylloc])) #endif], [#define YYLEX yylex ()])