]>
Commit | Line | Data |
---|---|---|
065fbd27 AD |
1 | 2001-12-27 Akim Demaille <akim@epita.fr> |
2 | ||
3 | * src/conflicts.c (log_resolution, flush_shift) | |
4 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
5 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
6 | (conflicts_print, print_reductions): Use a state_t instead of an | |
7 | integer when referring to a state. | |
8 | As much as possible, depend upon nlookaheads, instead of the | |
9 | `lookaheadsp' member of the following state (since lookaheads of | |
10 | successive states are successive, the difference between state n + 1 | |
11 | and n served as the number of lookaheads for state n). | |
12 | * src/lalr.c (add_lookback_edge): Likewise. | |
13 | * src/print.c (print_core, print_actions, print_state) | |
14 | (print_results): Likewise. | |
15 | * src/print_graph.c (print_core, print_actions, print_state) | |
16 | (print_graph): Likewise. | |
17 | * src/conflicts.h: Adjust. | |
18 | ||
1b177bd7 AD |
19 | 2001-12-27 Akim Demaille <akim@epita.fr> |
20 | ||
21 | * src/bison.hairy: Formatting/comment changes. | |
22 | ANSIfy. | |
23 | Remove `register' indications. | |
24 | Add plenty of `static'. | |
25 | ||
7742ddeb AD |
26 | 2001-12-27 Akim Demaille <akim@epita.fr> |
27 | ||
28 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
29 | duplicates ntokens. | |
30 | * src/bison.simple: Formatting/comment changes. | |
31 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
32 | is an undocumented synonym. | |
33 | ||
34 | ||
1fa14068 AD |
35 | 2001-12-22 Akim Demaille <akim@epita.fr> |
36 | ||
37 | * src/output.c (output_table_data): Change the prototype to use | |
38 | `int' for array ranges: some invocations do pass an int, not a | |
39 | short. | |
40 | Reported by Wayne Green. | |
41 | ||
b9752825 AD |
42 | 2001-12-22 Akim Demaille <akim@epita.fr> |
43 | ||
44 | Some actions of web2c.y are improperly triggered. | |
45 | Reported by Mike Castle. | |
46 | ||
47 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
48 | * tests/regression.at (Web2c): Rename as... | |
49 | (Web2c Report): this. | |
50 | (Web2c Actions): New. | |
51 | ||
776209d6 AD |
52 | 2001-12-22 Akim Demaille <akim@epita.fr> |
53 | ||
54 | Reductions in web2c.y are improperly reported. | |
55 | Reported by Mike Castle. | |
56 | ||
57 | * src/conflicts.c (print_reductions): Fix. | |
58 | * tests/regression.at (Web2c): New. | |
59 | ||
275fc3ad AD |
60 | 2001-12-18 Akim Demaille <akim@epita.fr> |
61 | ||
62 | Some host fail on `assert (!"foo")', which expands to | |
63 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
64 | Reported by Nelson Beebee. | |
65 | ||
66 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
67 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
68 | ||
897668ee MA |
69 | 2001-12-17 Marc Autret <autret_m@epita.fr> |
70 | ||
71 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
72 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
73 | New line counter 'skeleton_line' (skeleton-line muscle). | |
74 | ||
ab3399e0 PE |
75 | 2001-12-17 Paul Eggert <eggert@twinsun.com> |
76 | ||
77 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
78 | YYDEBUG must be defined to a nonzero value. | |
79 | ||
80 | * src/bison.simple (yytname): Do not assume that the user defines | |
81 | YYDEBUG to a properly parenthesized expression. | |
82 | ||
3877f72b AD |
83 | 2001-12-17 Akim Demaille <akim@epita.fr> |
84 | ||
85 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
86 | nlookaheads is a new member. | |
87 | Adjust all users. | |
88 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
89 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
90 | state. | |
776209d6 | 91 | |
331dbc1b AD |
92 | 2001-12-17 Akim Demaille <akim@epita.fr> |
93 | ||
94 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
95 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
96 | let... | |
97 | * src/reader.c (reader): Do it. | |
776209d6 | 98 | |
be750e4c AD |
99 | 2001-12-17 Akim Demaille <akim@epita.fr> |
100 | ||
101 | * src/conflicts.c (print_reductions): Formatting changes. | |
776209d6 | 102 | |
709ae8c6 AD |
103 | 2001-12-17 Akim Demaille <akim@epita.fr> |
104 | ||
105 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
106 | (flush_reduce): New. | |
107 | (resolve_sr_conflict): Adjust. | |
776209d6 | 108 | |
f87685c3 AD |
109 | 2001-12-17 Akim Demaille <akim@epita.fr> |
110 | ||
111 | * src/output.c (output_obstack): Be static and rename as... | |
112 | (format_obstack): this, to avoid any confusion with files.c's | |
113 | output_obstack. | |
114 | * src/reader.h (muscle_obstack): Move to... | |
115 | * src/output.h: here, since it's defined in output.c. | |
116 | ||
837491d8 AD |
117 | 2001-12-17 Akim Demaille <akim@epita.fr> |
118 | ||
119 | * src/output.c (action_row, save_column, default_goto) | |
120 | (sort_actions, matching_state, pack_vector): Better variable | |
121 | locality. | |
122 | ||
796d61fb AD |
123 | 2001-12-17 Akim Demaille <akim@epita.fr> |
124 | ||
125 | * src/output.c: Various formatting changes. | |
776209d6 | 126 | |
64d15509 AD |
127 | 2001-12-17 Akim Demaille <akim@epita.fr> |
128 | ||
129 | * src/files.c (output_files): Free the output_obstack. | |
130 | * src/main.c (main): Call print and print_graph conditionally. | |
131 | * src/print.c (print): Work unconditionally. | |
132 | * src/print_graph.c (print_graph): Work unconditionally. | |
133 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
134 | ||
fbc8ecb7 MA |
135 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
136 | ||
137 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
138 | there is one less line per action. | |
139 | ||
f0440388 MA |
140 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
141 | ||
142 | * src/bison.simple: Remove a useless #line directive. | |
143 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
144 | * src/output.c (get_lines_number): New. | |
776209d6 | 145 | (output_parser): Adjust, now takes care about the lines of a |
f0440388 MA |
146 | output muscles. |
147 | Fix line numbering. | |
148 | (actions_output): Computes the number of lines taken by actions. | |
149 | (output_master_parser): Insert new skeleton which is the name of | |
150 | the output parser file name. | |
151 | ||
a79986b8 MA |
152 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
153 | ||
154 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
155 | ||
4ec8e00f MA |
156 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
157 | ||
158 | * src/output.c (output_gram): Keep track of the hairy one. | |
159 | ||
1a4648ff AD |
160 | 2001-12-15 Akim Demaille <akim@epita.fr> |
161 | ||
162 | Make `make distcheck' work. | |
163 | ||
164 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
165 | system.h which uses libgettext.h. | |
166 | ||
9c2c67e6 AD |
167 | 2001-12-15 Akim Demaille <akim@epita.fr> |
168 | ||
169 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
170 | otherwise, since we range over their symbols, we might look at a | |
171 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
172 | `nvars', hence we overflow our arrays. | |
173 | ||
93ede233 AD |
174 | 2001-12-15 Akim Demaille <akim@epita.fr> |
175 | ||
176 | The header can also be produced directly, without any obstack! | |
177 | Yahoo! | |
178 | ||
179 | * src/files.c, src/files.h (defines_obstack): Remove. | |
180 | (compute_header_macro): Global. | |
181 | (defines_obstack_save): Remove. | |
182 | * src/reader.c (parse_union_decl): No longer output to | |
183 | defines_obstack: its content can be found in the `stype' muscle | |
184 | anyway. | |
185 | (output_token_translations): Merge into... | |
186 | (symbols_output): this. | |
187 | Rename as... | |
188 | (symbols_save): this. | |
189 | (reader): Adjust. | |
190 | * src/output.c (header_output): New. | |
191 | (output): Call it. | |
192 | ||
2666f928 AD |
193 | 2001-12-15 Akim Demaille <akim@epita.fr> |
194 | ||
195 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
196 | simultaneously, use one to define the `stype' muscle, and use the | |
197 | value of the latter to fill defines_obstack. | |
198 | (copy_comment): Remove. | |
199 | (copy_comment2): Work for a single obstack. | |
200 | Rename as... | |
201 | (copy_comment): this. | |
202 | ||
428046f8 AD |
203 | 2001-12-15 Akim Demaille <akim@epita.fr> |
204 | ||
205 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
206 | * src/reader.c (parse_union_decl): Revamp. | |
207 | ||
ea52d706 AD |
208 | 2001-12-15 Akim Demaille <akim@epita.fr> |
209 | ||
210 | Still making progress in separating Bison into (i) input, (ii) | |
211 | process, (iii) output: now we can directly output the parser file | |
212 | without using table_obstack at all. | |
213 | ||
214 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
215 | (parser_file_name): New. | |
216 | * src/files.c (compute_output_file_names): Compute it. | |
217 | * src/output.c (actions_output, output_parser) | |
218 | (output_master_parser): To a file instead of an obstack. | |
219 | ||
3f96f4dc AD |
220 | 2001-12-15 Akim Demaille <akim@epita.fr> |
221 | ||
222 | Attach actions to rules, instead of pre-outputting them to | |
223 | actions_obstack. | |
224 | ||
225 | * src/gram.h (rule_t): action and action_line are new members. | |
226 | * src/reader.c (symbol_list): Likewise. | |
227 | (copy_action): Save the actions within the rule. | |
228 | (packgram): Save them in rule_table. | |
229 | * src/output.c (actions_output): New. | |
230 | (output_parser): Use it on `%%actions'. | |
231 | (output_rule_data): Don't free rule_table. | |
232 | (output): Do it. | |
233 | (prepare): Don't save the `action' muscle. | |
234 | * src/bison.simple: s/%%action/%%actions/. | |
235 | ||
51576fb3 AD |
236 | 2001-12-15 Akim Demaille <akim@epita.fr> |
237 | ||
238 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
239 | to the user action: let it fail if lacking. | |
dee049eb | 240 | Suggested by Arnold Robbins and Tom Tromey. |
51576fb3 | 241 | |
2648a72d AD |
242 | 2001-12-14 Akim Demaille <akim@epita.fr> |
243 | ||
244 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
245 | longer mess around with obstacks and int pointers. | |
246 | Adjust all callers. | |
247 | ||
92790e5b AD |
248 | 2001-12-14 Akim Demaille <akim@epita.fr> |
249 | ||
250 | * src/lex.c (literalchar): Don't escape the special characters, | |
251 | just decode them, and keep them as char (before, eol was output as | |
252 | the 2 char string `\n' etc.). | |
253 | * src/output.c (output_rule_data): Use quotearg to output the | |
254 | token strings. | |
255 | ||
927c1557 PE |
256 | 2001-12-13 Paul Eggert <eggert@twinsun.com> |
257 | ||
258 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
259 | Do not infringe on the global user namespace when using C++. | |
260 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
261 | All uses of `fprintf' and `stderr' changed. | |
262 | ||
263 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
264 | ||
ed8e1f68 AD |
265 | 2001-12-13 Akim Demaille <akim@epita.fr> |
266 | ||
267 | The computation of nullable is broken: it doesn't handle empty | |
268 | RHS's properly. | |
269 | ||
270 | * tests/torture.at (GNU AWK Grammar): New. | |
271 | * tests/sets.at (Nullable): New. | |
272 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
273 | `ritems', loop over the rules, and then over their rhs's. | |
274 | ||
275 | Work around Autotest bugs. | |
276 | ||
277 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
278 | frame, because Autotest understand lines starting with a `+' as | |
279 | traces from the shell. Then, they are not processed properly. | |
280 | Admittedly an Autotest bug, but we don't have time to wait for | |
281 | Autotest to catch up. | |
282 | * tests/regression.at (Broken Closure): Adjust to the new table | |
283 | frames. | |
284 | Move to... | |
285 | * tests/sets.at: here. | |
286 | ||
cb581495 AD |
287 | 2001-12-13 Akim Demaille <akim@epita.fr> |
288 | ||
289 | * src/closure.c (closure): Use nrules instead of playing tricks | |
290 | with BITS_PER_WORD. | |
291 | ||
2e729273 AD |
292 | 2001-12-13 Akim Demaille <akim@epita.fr> |
293 | ||
294 | * src/print.c (print_actions): Output the handling of `$' as the | |
295 | traces do: shifting the token EOF. Before EOF was treated as a | |
296 | nonterminal. | |
297 | * tests/regression.at: Adjust some tests. | |
298 | * src/print_graph.c (print_core): Complete the set of items via | |
299 | closure. The next-to-final and final states are still unsatisfying, | |
300 | but that's to be addressed elsewhere. | |
301 | No longer output the rule numbers, but do output the state number. | |
302 | A single loop for the shifts + gotos is enough, but picked a | |
303 | distinct color for each. | |
304 | (print_graph): Initialize and finalize closure. | |
305 | ||
107f7dfb AD |
306 | 2001-12-13 Akim Demaille <akim@epita.fr> |
307 | ||
308 | * src/reader.c (readgram): Remove dead code, an strip useless | |
309 | braces. | |
310 | (get_type): Remove, unused. | |
311 | ||
9b53a24f AD |
312 | 2001-12-12 Akim Demaille <akim@epita.fr> |
313 | ||
314 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
315 | on that of lib/error.c. | |
316 | ||
dbfb6dcd AD |
317 | 2001-12-12 Akim Demaille <akim@epita.fr> |
318 | ||
319 | Some hosts don't like `/' in includes. | |
320 | ||
321 | * src/system.h: Include libgettext.h without qualifying the path. | |
322 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
323 | $(top_srcdir). | |
324 | ||
c25fb648 MA |
325 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
326 | ||
327 | * src/output.c (output_parser): Remove useless muscle. | |
328 | ||
710ddc4f MA |
329 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
330 | ||
331 | * src/bison.simple: Remove #line just before %%epilogue. It | |
332 | is now handled in ... | |
333 | * src/reader.c (read_additionnal_code): Add the output of a | |
334 | #line for the epilogue. | |
335 | ||
e83d80b8 MA |
336 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
337 | ||
927c1557 | 338 | * src/reader.c (copy_definition): Re-use CPP-outed code which |
e83d80b8 MA |
339 | replace precedent remove. |
340 | * src/bison.simple: Remove #line before %%prologue because | |
341 | %%input-line is wrong at this time. | |
342 | ||
971d5158 MA |
343 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
344 | ||
345 | * src/reader.c (symbols_output): Clean up. | |
927c1557 | 346 | * src/output.c (output_gram, output): Clean up. |
971d5158 | 347 | |
5edafffd AD |
348 | 2001-12-10 Akim Demaille <akim@epita.fr> |
349 | ||
350 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
351 | * src/LR0.c (set_state_table): here. | |
352 | * src/lalr.c (lalr): Call it. | |
353 | ||
0279f8e9 AD |
354 | 2001-12-10 Akim Demaille <akim@epita.fr> |
355 | ||
356 | * src/state.h (shifts): Remove the `number' member: shifts are | |
357 | attached to state, hence no longer need to be labelled with a | |
358 | state number. | |
359 | ||
190c4f5f AD |
360 | 2001-12-10 Akim Demaille <akim@epita.fr> |
361 | ||
362 | Now that states have a complete set of members, the linked list of | |
363 | shifts is useless: just fill directly the state's shifts member. | |
364 | ||
365 | * src/state.h (shifts): Remove the `next' member. | |
366 | * src/LR0.c (first_state, last_state): Remove. | |
367 | Adjust the callers. | |
368 | (augment_automaton): Don't look for the shifts that must be added | |
369 | a shift on EOF: it is those of the state we looked for! But now, | |
370 | since shifts are attached, it is no longer needed to looking | |
371 | merely by its id: its number. | |
372 | ||
2a73b93d AD |
373 | 2001-12-10 Akim Demaille <akim@epita.fr> |
374 | ||
375 | * src/LR0.c (augment_automaton): Better variable locality. | |
376 | Remove an impossible branch: if there is a state corresponding to | |
377 | the start symbol being shifted, then there is shift for the start | |
378 | symbol from the initial state. | |
379 | ||
74392f6a AD |
380 | 2001-12-10 Akim Demaille <akim@epita.fr> |
381 | ||
382 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
383 | only when appropriate: when insert_start_shifting_state' is not | |
384 | invoked. | |
385 | * tests/regression.at (Rule Line Numbers): Adjust. | |
386 | ||
37c82725 AD |
387 | 2001-12-10 Akim Demaille <akim@epita.fr> |
388 | ||
389 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
390 | merge the two cases addition shifts to the initial state. | |
391 | ||
6a164e0c AD |
392 | 2001-12-10 Akim Demaille <akim@epita.fr> |
393 | ||
394 | * src/lalr.c (set_state_table): Move to... | |
395 | * src/LR0.c: here. | |
396 | * src/lalr.c (lalr): Don't call it... | |
397 | * src/LR0.c (generate_states): do it. | |
398 | * src/LR0.h (first_state): Remove, only the table is used. | |
399 | ||
7215de24 AD |
400 | 2001-12-10 Akim Demaille <akim@epita.fr> |
401 | ||
402 | * src/LR0.h (first_shift, first_reduction): Remove. | |
403 | * src/lalr.c: Don't use first_shift: find shifts through the | |
404 | states. | |
405 | ||
80e25d4d AD |
406 | 2001-12-10 Akim Demaille <akim@epita.fr> |
407 | ||
408 | * src/LR0.c: Attach shifts to states as soon as they are | |
409 | computed. | |
410 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
411 | state, just assert that the mapping was properly done. | |
412 | ||
0ab3728b AD |
413 | 2001-12-10 Akim Demaille <akim@epita.fr> |
414 | ||
415 | * src/LR0.c (insert_start_shift): Rename as... | |
416 | (insert_start_shifting_state): this. | |
417 | (insert_eof_shifting_state, insert_accepting_state): New. | |
418 | (augment_automaton): Adjust. | |
419 | Better locality of the variables. | |
420 | When looking if the start_symbol is shifted from the initial | |
421 | state, using `while (... symbol != start_symbol ...)' sounds | |
422 | better than `while (... symbol < start_symbol ...)': If fail | |
423 | to see how the order between symbols could be relevant! | |
424 | ||
78af9bbc AD |
425 | 2001-12-10 Akim Demaille <akim@epita.fr> |
426 | ||
427 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
428 | `spec_file_prefix', declared by src/files.h. | |
429 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
430 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
431 | * src/output.c (prepare): Adjust. | |
432 | * src/reader.c (symbols_output): Likewise. | |
433 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
434 | ||
bdef2a41 AD |
435 | 2001-12-10 Akim Demaille <akim@epita.fr> |
436 | ||
437 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
438 | `"0"'. | |
439 | ||
3735969c AD |
440 | 2001-12-10 Akim Demaille <akim@epita.fr> |
441 | ||
442 | * src/reader.c (reader): Calling symbols_output once is enough. | |
443 | ||
49701457 AD |
444 | 2001-12-10 Akim Demaille <akim@epita.fr> |
445 | ||
446 | Now that states have a complete set of members, the linked list of | |
447 | reductions is useless: just fill directly the state's reductions | |
448 | member. | |
449 | ||
450 | * src/state.h (struct reductions): Remove member `number' and | |
451 | `next'. | |
452 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
453 | (save_reductions): Don't link the new reductions, store them in | |
454 | this_state. | |
455 | * src/lalr.c (set_state_table): No need to attach reductions to | |
456 | states, it's already done. | |
457 | * src/output.c (output_actions): No longer free the shifts, then | |
458 | the reductions, then the states: free all the states and their | |
459 | members. | |
460 | ||
0edad749 AD |
461 | 2001-12-10 Akim Demaille <akim@epita.fr> |
462 | ||
463 | * src/options.c (OPTN, DRTV, BOTH): New. | |
464 | (option_table): Use them. | |
465 | ||
0edad749 AD |
466 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's |
467 | the job of system.h. | |
468 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
469 | reasons. | |
470 | ||
5449dd0f AD |
471 | 2001-12-10 Akim Demaille <akim@epita.fr> |
472 | ||
473 | * src/output.c (output, prepare): Make sure the values of the | |
474 | muscles `action' and `prologue' are 0-terminated. | |
475 | ||
a870c567 AD |
476 | 2001-12-10 Akim Demaille <akim@epita.fr> |
477 | ||
478 | Clean up GCC warnings. | |
479 | ||
480 | * src/reader.c (copy_action): `buf' is not used. | |
481 | (parse_skel_decl): Be static. | |
482 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
483 | * src/options.h (create_long_option_table): Have a real prototype. | |
484 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
485 | (hash_delete_at): Return const void *. | |
486 | Adjust casts to preserve the const. | |
487 | ||
80df8768 AD |
488 | 2001-12-10 Akim Demaille <akim@epita.fr> |
489 | ||
490 | * configure.in: Require 2.52g. | |
491 | M4 is not needed, but AUTOM4TE is. | |
492 | * m4/m4.m4: Remove. | |
493 | * tests/Makefile.am: Adjust. | |
494 | ||
f693ad14 AD |
495 | 2001-12-10 Akim Demaille <akim@epita.fr> |
496 | ||
497 | One structure for states is enough, even though theoretically | |
498 | there are LR(0) states and LALR(1) states. | |
499 | ||
500 | * src/lalr.h (state_t): Remove. | |
501 | (state_table): Be state_t **, not state_t *. | |
502 | * src/state.h (core, CORE_ALLOC): Rename as... | |
503 | (state_t, STATE_ALLOC): this. | |
504 | Add the LALR(1) members: shifts, reductions, errs. | |
505 | * src/LR0.c (state_table): Rename as... | |
506 | (state_hash): this, to avoid name clashes with the global | |
507 | `state_table'. | |
508 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
509 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
510 | ||
74ffbcb6 AD |
511 | 2001-12-10 Akim Demaille <akim@epita.fr> |
512 | ||
513 | Bison dumps core on bash.y. | |
514 | Reported by Pascal Bart. | |
515 | ||
516 | * src/warshall.c (bitmatrix_print): New. | |
517 | (TC): Use it. | |
518 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
519 | j must be the outer loop. | |
520 | * tests/regression.at (Broken Closure): New. | |
521 | ||
07708e19 AD |
522 | 2001-12-05 Akim Demaille <akim@epita.fr> |
523 | ||
524 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
525 | its argument. | |
526 |