bison-patches
[Top][All Lists]
Advanced

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

[MAIN] yylsp-needed-repair.patch


From: marc-alexandre autret
Subject: [MAIN] yylsp-needed-repair.patch
Date: Fri, 31 Aug 2001 17:58:31 +0000 (GMT)

Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.199
diff -u -r1.199 ChangeLog
--- ChangeLog   2001/08/31 11:47:07     1.199
+++ ChangeLog   2001/08/31 15:11:08
@@ -1,5 +1,10 @@
 2001-08-31  Marc Autret  <address@hidden>
 
+       * src/bison.simple (YYLSP_NEEDED): New definition.
+       * src/output.c (prepare): Add macro insertion of `locations_flag'
+
+2001-08-31  Marc Autret  <address@hidden>
+
        * src/reader.c (readgram): CleanUp.
        (output_token_defines): Likewise.
        (packsymbols): Likewise.
Index: src/bison.simple
===================================================================
RCS file: /cvsroot/bison/bison/src/bison.simple,v
retrieving revision 1.59
diff -u -r1.59 bison.simple
--- src/bison.simple    2001/08/29 14:17:00     1.59
+++ src/bison.simple    2001/08/31 15:11:09
@@ -268,6 +268,9 @@
    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
Index: src/output.c
===================================================================
RCS file: /cvsroot/bison/bison/src/output.c,v
retrieving revision 1.49
diff -u -r1.49 output.c
--- src/output.c        2001/08/31 11:47:08     1.49
+++ src/output.c        2001/08/31 15:11:11
@@ -1074,6 +1074,8 @@
   MACRO_INSERT_INT ("nstates", nstates);
   MACRO_INSERT_INT ("ntokens", ntokens);
 
+  MACRO_INSERT_INT ("locations_flag", locations_flag);
+
   if (spec_name_prefix)
     {
       MACRO_INSERT_PREFIX ("yylex", "lex");


-- 
Autret Marc (address@hidden)
Eleve Ingenieur en Informatique.



reply via email to

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