* src/bison.simple (YYLSP_NEEDED): New definition.

* src/output.c (prepare): Add macro insertion of `locations_flag'
This commit is contained in:
Marc Autret
2001-08-31 18:30:21 +00:00
parent 17da6427fe
commit 9e644e648d
3 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2001-08-31 Marc Autret <autret_m@epita.fr>
* src/bison.simple (YYLSP_NEEDED): New definition.
* src/output.c (prepare): Add macro insertion of `locations_flag'
2001-08-31 Pascal Bart <pascal.bart@epita.fr>
* src/output.c (prepare): Delete insertion of previous muscles,

View File

@@ -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

View File

@@ -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);
}