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