[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Delete one global
From: |
Pascal Bart |
Subject: |
Delete one global |
Date: |
Wed, 17 Oct 2001 23:51:25 +0000 (GMT) |
Hello everyone,
this patch delete one global variable (and do any other little
things), it would be apply on bison-1_29-branch and MAIN, I think, but I'm
waiting for confirmation.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.173.2.76
diff -u -r1.173.2.76 ChangeLog
--- ChangeLog 2001/10/10 15:24:00 1.173.2.76
+++ ChangeLog 2001/10/17 21:42:24
@@ -1,3 +1,10 @@
+2001-10-17 Pascal Bart <address@hidden>
+
+ * src/lex.c (token_obstack): Become static.
+ * src/output.c (output): Free global variable user_toknums.
+ * src/conflicts.c: Move global variables src_total and rrc_total ...
+ (print_conflicts): here.
+
2001-10-10 Akim Demaille <address@hidden>
* m4/m4.m4: Remove.
Index: src/conflicts.c
===================================================================
RCS file: /cvsroot/bison/bison/src/conflicts.c,v
retrieving revision 1.22.2.3
diff -u -r1.22.2.3 conflicts.c
--- src/conflicts.c 2001/09/25 18:35:04 1.22.2.3
+++ src/conflicts.c 2001/10/17 21:42:36
@@ -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,9 @@
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.33.2.7
diff -u -r1.33.2.7 lex.c
--- src/lex.c 2001/10/02 15:52:24 1.33.2.7
+++ src/lex.c 2001/10/17 21:42:37
@@ -29,7 +29,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.39.2.5
diff -u -r1.39.2.5 output.c
--- src/output.c 2001/10/02 14:48:53 1.39.2.5
+++ src/output.c 2001/10/17 21:42:38
@@ -1344,6 +1344,7 @@
if (semantic_parser)
output_stos ();
output_rule_data ();
+ XFREE (user_toknums);
output_actions ();
if (!no_parser_flag)
output_parser ();
Pascal Bart (address@hidden)
- Delete one global,
Pascal Bart <=