]>
Commit | Line | Data |
---|---|---|
49701457 AD |
1 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2 | ||
3 | Now that states have a complete set of members, the linked list of | |
4 | reductions is useless: just fill directly the state's reductions | |
5 | member. | |
6 | ||
7 | * src/state.h (struct reductions): Remove member `number' and | |
8 | `next'. | |
9 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
10 | (save_reductions): Don't link the new reductions, store them in | |
11 | this_state. | |
12 | * src/lalr.c (set_state_table): No need to attach reductions to | |
13 | states, it's already done. | |
14 | * src/output.c (output_actions): No longer free the shifts, then | |
15 | the reductions, then the states: free all the states and their | |
16 | members. | |
17 | ||
18 | ||
0edad749 AD |
19 | 2001-12-10 Akim Demaille <akim@epita.fr> |
20 | ||
21 | * src/options.c (OPTN, DRTV, BOTH): New. | |
22 | (option_table): Use them. | |
23 | ||
24 | ||
25 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's | |
26 | the job of system.h. | |
27 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
28 | reasons. | |
29 | ||
30 | ||
5449dd0f AD |
31 | 2001-12-10 Akim Demaille <akim@epita.fr> |
32 | ||
33 | * src/output.c (output, prepare): Make sure the values of the | |
34 | muscles `action' and `prologue' are 0-terminated. | |
35 | ||
a870c567 AD |
36 | 2001-12-10 Akim Demaille <akim@epita.fr> |
37 | ||
38 | Clean up GCC warnings. | |
39 | ||
40 | * src/reader.c (copy_action): `buf' is not used. | |
41 | (parse_skel_decl): Be static. | |
42 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
43 | * src/options.h (create_long_option_table): Have a real prototype. | |
44 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
45 | (hash_delete_at): Return const void *. | |
46 | Adjust casts to preserve the const. | |
47 | ||
80df8768 AD |
48 | 2001-12-10 Akim Demaille <akim@epita.fr> |
49 | ||
50 | * configure.in: Require 2.52g. | |
51 | M4 is not needed, but AUTOM4TE is. | |
52 | * m4/m4.m4: Remove. | |
53 | * tests/Makefile.am: Adjust. | |
54 | ||
55 | ||
f693ad14 AD |
56 | 2001-12-10 Akim Demaille <akim@epita.fr> |
57 | ||
58 | One structure for states is enough, even though theoretically | |
59 | there are LR(0) states and LALR(1) states. | |
60 | ||
61 | * src/lalr.h (state_t): Remove. | |
62 | (state_table): Be state_t **, not state_t *. | |
63 | * src/state.h (core, CORE_ALLOC): Rename as... | |
64 | (state_t, STATE_ALLOC): this. | |
65 | Add the LALR(1) members: shifts, reductions, errs. | |
66 | * src/LR0.c (state_table): Rename as... | |
67 | (state_hash): this, to avoid name clashes with the global | |
68 | `state_table'. | |
69 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
70 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
71 | ||
72 | ||
74ffbcb6 AD |
73 | 2001-12-10 Akim Demaille <akim@epita.fr> |
74 | ||
75 | Bison dumps core on bash.y. | |
76 | Reported by Pascal Bart. | |
77 | ||
78 | * src/warshall.c (bitmatrix_print): New. | |
79 | (TC): Use it. | |
80 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
81 | j must be the outer loop. | |
82 | * tests/regression.at (Broken Closure): New. | |
83 | ||
07708e19 AD |
84 | 2001-12-05 Akim Demaille <akim@epita.fr> |
85 | ||
86 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
87 | its argument. | |
88 |