bison-patches
[Top][All Lists]
Advanced

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

[Trunk] FYI Delete global.


From: Pascal Bart
Subject: [Trunk] FYI Delete global.
Date: Fri, 19 Oct 2001 13:05:35 +0000 (GMT)

Hello,

        this patch delete two glabal variables, and add two little
improvements.

Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.227
diff -u -r1.227 ChangeLog
--- ChangeLog   2001/10/18 15:26:56     1.227
+++ ChangeLog   2001/10/19 11:00:41
@@ -1,3 +1,10 @@
+2001-10-19  Pascal Bart  <address@hidden>
+
+       * src/conflicts.c: Move global variables rrc_total and src_total ...
+       (print_conflicts): here.
+       * src/output.c (output): Free global variable user_toknums.
+       * src/lex.c (token_obstack): Become static.
+
 2001-10-18  Akim Demaille  <address@hidden>

        * tests/atlocal.in (GCC): Add.
Index: src/conflicts.c
===================================================================
RCS file: /cvsroot/bison/bison/src/conflicts.c,v
retrieving revision 1.23
diff -u -r1.23 conflicts.c
--- src/conflicts.c     2001/10/04 14:55:20     1.23
+++ src/conflicts.c     2001/10/19 11:00:42
@@ -35,8 +35,6 @@

 static unsigned *shiftset = NULL;
 static unsigned *lookaheadset = NULL;
-static int src_total;
-static int rrc_total;
 static int src_count;
 static int rrc_count;

@@ -460,6 +458,8 @@
 print_conflicts (FILE *out)
 {
   int i;
+  int src_total;
+  int rrc_total;

   src_total = 0;
   rrc_total = 0;
Index: src/lex.c
===================================================================
RCS file: /cvsroot/bison/bison/src/lex.c,v
retrieving revision 1.40
diff -u -r1.40 lex.c
--- src/lex.c   2001/10/04 14:55:20     1.40
+++ src/lex.c   2001/10/19 11:00:42
@@ -30,7 +30,7 @@
 #include "quote.h"

 /* Buffer for storing the current token.  */
-struct obstack token_obstack;
+static struct obstack token_obstack;
 const char *token_buffer = NULL;

 bucket *symval;
Index: src/output.c
===================================================================
RCS file: /cvsroot/bison/bison/src/output.c,v
retrieving revision 1.62
diff -u -r1.62 output.c
--- src/output.c        2001/10/04 14:55:20     1.62
+++ src/output.c        2001/10/19 11:00:42
@@ -1108,6 +1108,7 @@
   if (semantic_parser)
     output_stos ();
   output_rule_data ();
+  XFREE (user_toknums);
   output_actions ();

 #if 0

Pascal Bart (address@hidden)




reply via email to

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