bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bison fix for multiple GLR parsers in the same program


From: Paul Eggert
Subject: Bison fix for multiple GLR parsers in the same program
Date: Fri, 21 May 2004 15:26:12 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

To fix this Debian bug reported by Troy A. Johnson:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=195946

I installed the following patch into the Bison mainstream code.
The fix should appear in the next Bison test release.  Thanks
for reporting it.

2004-05-21  Paul Eggert  <address@hidden>

        * data/glr.c (yylloc): Output this macro even if locations are not
        being generated, as the GLR parser needs it even in that case.
        Problem reported by Troy A. Johnson
        <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=195946>.

Index: data/glr.c
===================================================================
RCS file: /cvsroot/bison/bison/data/glr.c,v
retrieving revision 1.68
diff -p -u -r1.68 glr.c
--- data/glr.c  31 Mar 2004 00:37:20 -0000      1.68
+++ data/glr.c  21 May 2004 22:21:48 -0000
@@ -158,7 +158,7 @@ m4_if(b4_prefix[], [yy], [],
 #define yychar  b4_prefix[]char
 #define yydebug b4_prefix[]debug
 #define yynerrs b4_prefix[]nerrs
-b4_location_if([#define yylloc b4_prefix[]lloc])])
+#define yylloc b4_prefix[]lloc])
 
 b4_token_defines(b4_tokens)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]