From: Akim Demaille Date: Thu, 20 Jun 2002 10:29:27 +0000 (+0000) Subject: * data/bison.simple (YYLEX): Fix the declaration when X-Git-Tag: BISON-1_49b~141 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/5c1180b3c4abeaf9fda0554a9b241fee4e2bf33e * data/bison.simple (YYLEX): Fix the declaration when %pure-parser. --- 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 ()])