[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison ./ChangeLog src/LR0.c src/nullable.c src/...
From: |
Akim Demaille |
Subject: |
bison ./ChangeLog src/LR0.c src/nullable.c src/... |
Date: |
Wed, 05 Dec 2001 04:27:23 -0500 |
CVSROOT: /cvsroot/bison
Module name: bison
Changes by: Akim Demaille <address@hidden> 01/12/05 04:27:23
Modified files:
. : ChangeLog
src : LR0.c nullable.c reduce.c reduce.h
Log message:
Because useless nonterminals are now kept alive (instead of being
`destroyed'), we now sometimes examine them, and store information
related to them. Hence we need to know their number, and adjust
memory allocations.
* src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
static.
* src/LR0.c (allocate_itemsets): The memory allocated to
`symbol_count' was used for two different purpose: once to count
the number of occurrences of each symbol, and later reassigned to
`shift_symbol', containing the symbol that can be shifted from a
given state.
Deobfuscate, i.e., allocate, use and free `symbol_count' here
only, and...
(new_itemsets): Allocate `shift_symbol' here.
(allocate_itemsets): symbol_count includes useless nonterminals.
Make room for them.
(free_storage): Use `free', not `XFREE', for pointers that cannot
be null.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/ChangeLog.diff?tr1=1.340&tr2=1.341&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/LR0.c.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/nullable.c.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/reduce.c.diff?tr1=1.33&tr2=1.34&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/reduce.h.diff?tr1=1.3&tr2=1.4&r1=text&r2=text