* data/bison.simple (YYLEX): Fix the declaration when
authorAkim Demaille <akim@epita.fr>
Thu, 20 Jun 2002 10:29:27 +0000 (10:29 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 20 Jun 2002 10:29:27 +0000 (10:29 +0000)
%pure-parser.

ChangeLog
data/bison.simple

index 4a48d21..1c34436 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2002-06-20  Akim Demaille  <akim@epita.fr>
 
+       * data/bison.simple (YYLEX): Fix the declaration when
+       %pure-parser.
+
+2002-06-20  Akim Demaille  <akim@epita.fr>
+
        * data/bison.simple (yysymprint): Don't print the token number,
        just its name.
        * tests/actions.at (Destructors): Rename as...
index c5ce138..3aa2476 100644 (file)
@@ -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 ()])