From 0c650a2027a0d664e1e4f40b3d34e4c1b410277b Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Sat, 26 May 2007 19:10:43 +0000 Subject: [PATCH] * data/glr.c (yylval): As in yacc.c, don't extern in the header for the case of pure parsers. Reported by Frans Englich at . * THANKS: Add Frans Englich. --- ChangeLog | 5 +++++ THANKS | 1 + data/glr.c | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d42aa254..c0caf03f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,11 @@ that the yacc script isn't corrupt. Reported by Hans Aberg at . + * data/glr.c (yylval): As in yacc.c, don't extern in the header for + the case of pure parsers. Reported by Frans Englich at + . + * THANKS: Add Frans Englich. + 2007-05-20 Joel E. Denny Extend the front-end API for %define variables to more completely diff --git a/THANKS b/THANKS index d91ebdca..23823699 100644 --- a/THANKS +++ b/THANKS @@ -29,6 +29,7 @@ Evgeny Stambulchik fnevgeny@plasma-gate.weizmann.ac.il Fabrice Bauzac noon@cote-dazur.com Florian Krohm florian@edamail.fishkill.ibm.com Frank Heckenbach frank@g-n-u.de +Frans Englich frans.englich@telia.com Guido Trentalancia trentalg@aston.ac.uk H. Merijn Brand h.m.brand@hccnet.nl Hans Aberg haberg@matematik.su.se diff --git a/data/glr.c b/data/glr.c index 681d856f..0cd87cf2 100644 --- a/data/glr.c +++ b/data/glr.c @@ -2638,7 +2638,8 @@ b4_copyright([Skeleton interface for Bison GLR parsers in C], b4_shared_declarations -extern YYSTYPE b4_prefix[]lval; +b4_pure_if([], +[[extern YYSTYPE b4_prefix][lval;]]) b4_locations_if([b4_pure_if([], [extern YYLTYPE b4_prefix[]lloc;]) -- 2.45.2