[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/9] yacc.c: style changes
From: |
Akim Demaille |
Subject: |
[PATCH 5/9] yacc.c: style changes |
Date: |
Wed, 19 Dec 2012 11:36:06 +0100 |
* data/yacc.c (b4_lex_param): Provide arguments with a name.
---
data/yacc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/yacc.c b/data/yacc.c
index 7a2587a..b64ccdf 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -105,8 +105,8 @@ m4_ifset([b4_parse_param], [b4_args(b4_parse_param), ])])
# Accumulate in b4_lex_param all the yylex arguments.
# 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_locations_if([, [[YYLTYPE *], [&yylloc]]])m4_ifdef([b4_lex_param], [,
])])dnl
+m4_dquote(b4_pure_if([[[[YYSTYPE *yylval]], [[&yylval]]][]dnl
+b4_locations_if([, [[YYLTYPE *yylloc], [&yylloc]]])m4_ifdef([b4_lex_param], [,
])])dnl
m4_ifdef([b4_lex_param], b4_lex_param)))
--
1.8.0.2
- [PATCH 0/9] {master} import improvements from {make-glr-symbol}, Akim Demaille, 2012/12/19
- [PATCH 7/9] gnulib: update, Akim Demaille, 2012/12/19
- [PATCH 4/9] glr.cc: simplifying the handling of parse/lex params, Akim Demaille, 2012/12/19
- [PATCH 6/9] skeletons: fix output directives, Akim Demaille, 2012/12/19
- [PATCH 5/9] yacc.c: style changes,
Akim Demaille <=
- [PATCH 1/9] %define variables: backward compatibility, Akim Demaille, 2012/12/19
- [PATCH 2/9] glr.c: move function declaration earlier, Akim Demaille, 2012/12/19
- [PATCH 3/9] glr: rename lex params, Akim Demaille, 2012/12/19
- [PATCH 9/9] variants: prohibit simple copies, Akim Demaille, 2012/12/19
- [PATCH 8/9] variant: more assertions, Akim Demaille, 2012/12/19