[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Minor: whitespace in generated parser
From: |
Paul Eggert |
Subject: |
Re: Minor: whitespace in generated parser |
Date: |
Fri, 26 May 2006 17:29:56 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Frans Englich <address@hidden> writes:
> Attached diff shows whitespace after lines in the generated parser, from 2.2
> (not introduced in 2.2 though). It would be nice if it wasn't there.
Thanks for reporting that. I installed the enclosed patch.
> PS. Will the push-parser mode end up in 2.3 release?
Sorry, I think we need at least one bugfix release first.
2006-05-26 Paul Eggert <address@hidden>
* data/yacc.c (yy_reduce_print): Omit trailing white space in
generated source code. Problem reported by Frans Englich in
<http://lists.gnu.org/archive/html/bug-bison/2006-05/msg00049.html>.
--- data/yacc.c 21 May 2006 08:11:30 -0000 1.141
+++ data/yacc.c 27 May 2006 00:28:02 -0000
@@ -693,9 +693,9 @@ do {
\
]b4_c_function_def([yy_reduce_print], [static void],
[[YYSTYPE *yyvsp], [yyvsp]],
- b4_locations_if([[[YYLTYPE *yylsp], [yylsp]],])
- [[int yyrule], [yyrule]]m4_ifset([b4_parse_param], [,])
- b4_parse_param)[
+ b4_locations_if([[[YYLTYPE *yylsp], [yylsp]],
+ ])[[int yyrule], [yyrule]]m4_ifset([b4_parse_param], [,
+ ])b4_parse_param)[
{
int yynrhs = yyr2[yyrule];
int yyi;