From 5c1180b3c4abeaf9fda0554a9b241fee4e2bf33e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 20 Jun 2002 10:29:27 +0000 Subject: [PATCH] * data/bison.simple (YYLEX): Fix the declaration when %pure-parser. --- ChangeLog | 5 +++++ data/bison.simple | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 ()]) -- 2.45.2