Honor lex-params in %define lex_symbol mode.

* data/lalr1.cc: Use b4_lex_param.
This commit is contained in:
Akim Demaille
2008-08-26 22:09:30 +02:00
parent 6659366cda
commit dd735e4ee6
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2008-11-13 Akim Demaille <demaille@gostai.com>
Honor lex-params in %define lex_symbol mode.
* data/lalr1.cc: Use b4_lex_param.
2008-11-13 Akim Demaille <demaille@gostai.com>
Simplify names.

View File

@@ -1197,7 +1197,8 @@ m4_popdef([b4_at_dollar])])dnl
{
YYCDEBUG << "Reading a token: ";
]b4_lex_symbol_if(
[ yyla = yylex();],
[ yyla = b4_c_function_call([yylex], [symbol_type],
m4_ifdef([b4_lex_param], b4_lex_param));],
[ yyla.type = yytranslate_ (b4_c_function_call([yylex], [int],
[[YYSTYPE*], [&yyla.value]][]dnl
b4_locations_if([, [[location*], [&yyla.location]]])dnl