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