bison ./ChangeLog src/LR0.c src/conflicts.c src...

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.cvs
Message-ID <[email protected]>
CVSROOT:	/cvsroot/bison
Module name:	bison
Changes by:	Akim Demaille <[email protected]>	02/07/03 02:51:43

Modified files:
	.              : ChangeLog 
	src            : LR0.c conflicts.c lalr.c output.c print.c 
	                 print_graph.c state.c state.h 

Log message:
	Fix some memory leaks, and fix a bug: state 0 was examined twice.
	* src/LR0.c (new_state): Merge into...
	(state_list_append): this.
	(new_states): Merge into...
	(generate_states): here.
	(set_states): Don't ensure a proper `errs' state member here, do it...
	* src/conflicts.c (conflicts_solve): here.
	* src/state.h, src/state.c: Comment changes.
	(state_t): Rename member `shifts' as `transitions'.
	Adjust all dependencies.
	(errs_new): For consistency, also take the values as argument.
	(errs_dup): Remove.
	(state_errs_set): New.
	(state_reductions_set, state_transitions_set): Assert that no
	previous value was assigned.
	(state_free): New.
	(states_free): Use it.
	* src/conflicts.c (resolve_sr_conflict): Don't use an `errs_t' as
	temporary storage: use `errs' and `nerrs' as elsewhere.
	(set_conflicts): Allocate and free this `errs'.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/ChangeLog.diff?tr1=1.786&tr2=1.787&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/LR0.c.diff?tr1=1.76&tr2=1.77&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/conflicts.c.diff?tr1=1.88&tr2=1.89&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/lalr.c.diff?tr1=1.82&tr2=1.83&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/output.c.diff?tr1=1.182&tr2=1.183&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/print.c.diff?tr1=1.83&tr2=1.84&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/print_graph.c.diff?tr1=1.47&tr2=1.48&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/state.c.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/state.h.diff?tr1=1.38&tr2=1.39&r1=text&r2=text
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.