From: Paul Eggert Date: Tue, 29 Apr 2003 06:04:04 +0000 (+0000) Subject: (b4_lex_param): Corrected for the case where %lex-param is provided X-Git-Tag: BISON-2_0~323 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68cdf74747d8094d31c7f3aa7757a0f3a08ed444;p=platform%2Fupstream%2Fbison.git (b4_lex_param): Corrected for the case where %lex-param is provided and %pure-parser isn't. From Tim Van Holder in . --- diff --git a/data/yacc.c b/data/yacc.c index d2a3c55..4ee09fb 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -58,8 +58,8 @@ m4_ifset([b4_parse_param], [b4_c_args(b4_parse_param), ])]) # b4_lex_param arrives quoted twice, but we want to keep only one level. m4_define([b4_lex_param], m4_dquote(b4_pure_if([[[[YYSTYPE *]], [[&yylval]]][]dnl -b4_location_if([, [[YYLTYPE *], [&yylloc]]])])dnl -m4_ifdef([b4_lex_param], [, ]b4_lex_param))) +b4_location_if([, [[YYLTYPE *], [&yylloc]]])m4_ifdef([b4_lex_param], [, ])])dnl +m4_ifdef([b4_lex_param], b4_lex_param)))