From: Marc Autret Date: Fri, 31 Aug 2001 18:30:21 +0000 (+0000) Subject: * src/bison.simple (YYLSP_NEEDED): New definition. X-Git-Tag: pre-merge-of-1-29-branch~32 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/9e644e648d544ef79756cfb58098ec6f233bc451 * src/bison.simple (YYLSP_NEEDED): New definition. * src/output.c (prepare): Add macro insertion of `locations_flag' --- diff --git a/ChangeLog b/ChangeLog index 8c7e5064..2ac2876b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-31 Marc Autret + + * src/bison.simple (YYLSP_NEEDED): New definition. + * src/output.c (prepare): Add macro insertion of `locations_flag' + 2001-08-31 Pascal Bart * src/output.c (prepare): Delete insertion of previous muscles, diff --git a/src/bison.simple b/src/bison.simple index 1217108f..7f17cd15 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -278,6 +278,9 @@ while (0) Current.last_column = Rhs[N].last_column; #endif +/* Definition of YYLSP_NEEDED. */ +#define YYLSP_NEEDED %%locations_flag + /* YYLEX -- calling `yylex' with the right arguments. */ #if YYPURE diff --git a/src/output.c b/src/output.c index 17329c89..06c7090f 100644 --- a/src/output.c +++ b/src/output.c @@ -1074,6 +1074,8 @@ prepare (void) MACRO_INSERT_INT ("nstates", nstates); MACRO_INSERT_INT ("ntokens", ntokens); + MACRO_INSERT_INT ("locations_flag", locations_flag); + if (spec_name_prefix) MACRO_INSERT_STRING ("prefix", spec_name_prefix); }