[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: 1.29b: XFREE
From: |
Akim Demaille |
Subject: |
FYI: 1.29b: XFREE |
Date: |
22 Sep 2001 20:06:48 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* src/gram.c (gram_free): Rename back as...
(dummy): this.
(output_token_translations): Free `token_translations'.
* src/symtab.c (free_symtab): Free the tag field.
Index: src/gram.c
===================================================================
RCS file: /cvsroot/bison/bison/src/gram.c,v
retrieving revision 1.6.2.1
diff -u -u -r1.6.2.1 gram.c
--- src/gram.c 2001/09/22 17:43:26 1.6.2.1
+++ src/gram.c 2001/09/22 17:57:19
@@ -52,10 +52,10 @@
int error_token_number;
-/* Free all the memory associated to these pointers. */
+/* This is to avoid linker problems which occur on VMS when using GCC,
+ when the file in question contains data definitions only. */
void
-gram_free (void)
+dummy (void)
{
-
}
Index: src/output.c
===================================================================
RCS file: /cvsroot/bison/bison/src/output.c,v
retrieving revision 1.39.2.2
diff -u -u -r1.39.2.2 output.c
--- src/output.c 2001/09/22 17:43:26 1.39.2.2
+++ src/output.c 2001/09/22 17:57:19
@@ -110,17 +110,17 @@
static int nvectors;
static int nentries;
-static short **froms;
-static short **tos;
-static short *tally;
-static short *width;
-static short *actrow;
-static short *state_count;
-static short *order;
-static short *base;
-static short *pos;
-static short *table;
-static short *check;
+static short **froms = NULL;
+static short **tos = NULL;
+static short *tally = NULL;
+static short *width = NULL;
+static short *actrow = NULL;
+static short *state_count = NULL;
+static short *order = NULL;
+static short *base = NULL;
+static short *pos = NULL;
+static short *table = NULL;
+static short *check = NULL;
static int lowzero;
static int high;
@@ -306,6 +306,8 @@
ntokens < 127 ? "char" : "short",
"yytranslate", token_translations,
0, 1, max_user_token_number + 1);
+
+ XFREE (token_translations);
}
Index: src/reader.c
===================================================================
RCS file: /cvsroot/bison/bison/src/reader.c,v
retrieving revision 1.72.2.6
diff -u -u -r1.72.2.6 reader.c
--- src/reader.c 2001/09/22 17:43:26 1.72.2.6
+++ src/reader.c 2001/09/22 17:57:19
@@ -1751,7 +1751,6 @@
user_toknums[bp->value] = bp->user_token_number;
sprec[bp->value] = bp->prec;
sassoc[bp->value] = bp->assoc;
-
}
token_translations = XCALLOC (short, max_user_token_number + 1);
Index: src/symtab.c
===================================================================
RCS file: /cvsroot/bison/bison/src/symtab.c,v
retrieving revision 1.13
diff -u -u -r1.13 symtab.c
--- src/symtab.c 2000/11/07 16:28:47 1.13
+++ src/symtab.c 2001/09/22 17:57:19
@@ -143,6 +143,7 @@
if (bp->type_name)
XFREE (bp->type_name);
#endif
+ XFREE (bp->tag);
XFREE (bp);
bp = bptmp;
}
- FYI: 1.29b: XFREE,
Akim Demaille <=