1 |
2002-06-30 Akim Demaille <akim@epita.fr> |
2002-06-30 Akim Demaille <akim@epita.fr> |
2 |
|
|
3 |
|
Use hash.h for the state hash table. |
4 |
|
|
5 |
|
* src/LR0.c (STATE_HASH_SIZE, state_hash): Remove. |
6 |
|
(allocate_storage): Use state_hash_new. |
7 |
|
(free_storage): Use state_hash_free. |
8 |
|
(new_state, get_state): Adjust. |
9 |
|
* src/lalr.h, src/lalr.c (states): Move to... |
10 |
|
* src/states.h (state_t): Remove the `link' member, no longer |
11 |
|
used. |
12 |
|
* src/states.h, src/states.c: here. |
13 |
|
(state_hash_new, state_hash_free, state_hash_lookup) |
14 |
|
(state_hash_insert, states_free): New. |
15 |
|
* src/states.c (state_table, state_compare, state_hash): New. |
16 |
|
* src/output.c (output_actions): Do not free states now, since we |
17 |
|
still need to know the final_state number in `prepare', called |
18 |
|
afterwards. Do it... |
19 |
|
* src/main.c (main): here: call states_free after `output'. |
20 |
|
|
21 |
|
|
22 |
|
2002-06-30 Akim Demaille <akim@epita.fr> |
23 |
|
|
24 |
* src/state.h, src/state.c (state_new): New, extracted from... |
* src/state.h, src/state.c (state_new): New, extracted from... |
25 |
* src/LR0.c (new_state): here. |
* src/LR0.c (new_state): here. |
26 |
* src/state.h (STATE_ALLOC): Move to... |
* src/state.h (STATE_ALLOC): Move to... |