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