]> git.saurik.com Git - bison.git/commit - src/reader.c
Don't depend on C99 features.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 28 May 2007 01:09:11 +0000 (01:09 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 28 May 2007 01:09:11 +0000 (01:09 +0000)
commit14462c2b1b55540d78ce1f1dc4fe67fcd1c701ac
tree6c689dc10c221f05fa6e317a02132f6eaf2f8460
parentefa02545e063474ec187fdb85412ac2ce50c1dfd
Don't depend on C99 features.
* src/conflicts.c (conflicts_update_state_numbers): Fix for-loop.
* src/lalr.c (lalr_update_state_numbers): Fix for-loop.
* src/reader.c (check_and_convert_grammar): Fix for-loop.
* src/state.c (state_mark_reachable_states): Fix for-loop.
(state_remove_unreachable_states): Fix for-loop.

Don't widen struct state with member reachable just to temporarily
record reachability.  Instead, use a local bitset.
* src/state.h (struct state): Remove member.
* src/state.c (state_new): Don't initialize it.
(state_mark_reachable_states): Rename to...
(state_record_reachable_states): ... this, and use bitset.
(state_remove_unreachable_states): Use bitset.
ChangeLog
src/conflicts.c
src/lalr.c
src/reader.c
src/state.c
src/state.h