]> git.saurik.com Git - bison.git/blob - ChangeLog
One structure for states is enough, even though theoretically
[bison.git] / ChangeLog
1 2001-12-10 Akim Demaille <akim@epita.fr>
2
3 One structure for states is enough, even though theoretically
4 there are LR(0) states and LALR(1) states.
5
6 * src/lalr.h (state_t): Remove.
7 (state_table): Be state_t **, not state_t *.
8 * src/state.h (core, CORE_ALLOC): Rename as...
9 (state_t, STATE_ALLOC): this.
10 Add the LALR(1) members: shifts, reductions, errs.
11 * src/LR0.c (state_table): Rename as...
12 (state_hash): this, to avoid name clashes with the global
13 `state_table'.
14 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
15 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
16
17
18 2001-12-10 Akim Demaille <akim@epita.fr>
19
20 Bison dumps core on bash.y.
21 Reported by Pascal Bart.
22
23 * src/warshall.c (bitmatrix_print): New.
24 (TC): Use it.
25 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
26 j must be the outer loop.
27 * tests/regression.at (Broken Closure): New.
28
29 2001-12-05 Akim Demaille <akim@epita.fr>
30
31 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
32 its argument.
33 Reported by Peter Hámorský.
34
35 2001-12-05 Akim Demaille <akim@epita.fr>
36
37 * src/conflicts.c (err_table): Remove.
38 (resolve_sr_conflict): Adjust.
39 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
40 Rename as...
41 (state_t.reductions, state_t.shifts): this.
42
43 2001-12-05 Akim Demaille <akim@epita.fr>
44
45 * src/reduce.c (reduce_grammar_tables): No longer disable the
46 removal of useless rules via CPP but via `if (0)', so that the
47 compiler still check the code is valid.
48 For instance, it should have noticed `rline' no longer exists: use
49 the `line' member of rule_t.
50 * src/gram.c (dummy, rline): Remove, unused.
51
52 2001-12-05 Akim Demaille <akim@epita.fr>
53
54 * src/output.c (pack_vector): Use assert, not berror.
55 * src/main.c (berror): Remove, unused.
56
57 2001-12-05 Akim Demaille <akim@epita.fr>
58
59 New experimental feature: if --verbose --trace output all the
60 items of a state, not only its kernel.
61
62 * src/print.c (print_core): If `trace_flag', then invoke closure
63 before outputting the items of the state (print_core is no longer
64 a correct name them).
65 (print_results): Invoke new_closure/free_closure if needed.
66
67 2001-12-05 Akim Demaille <akim@epita.fr>
68
69 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
70 * src/closure.c, src/closure.h (itemsetsize): Rename as...
71 (nitemset): for consistency with the rest of the project.
72
73 2001-12-05 Akim Demaille <akim@epita.fr>
74
75 * src/closure.c (print_closure): Improve.
76 (closure): Use it for printing input and output.
77
78 2001-12-05 Akim Demaille <akim@epita.fr>
79
80 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
81 indexed by nonterminals.
82
83 2001-12-05 Akim Demaille <akim@epita.fr>
84
85 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
86 what it was!).
87 * src/warshall.h: Remove accidental duplication of the content.
88
89 2001-12-05 Akim Demaille <akim@epita.fr>
90
91 * src/closure.c (set_fderives): De-obfuscate.
92
93 2001-12-05 Akim Demaille <akim@epita.fr>
94
95 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
96
97 2001-12-05 Akim Demaille <akim@epita.fr>
98
99 * src/closure.c (set_firsts): De-obfuscate.
100
101 2001-12-05 Akim Demaille <akim@epita.fr>
102
103 * src/output.c (action_row): De-obfuscate
104 using the good o' techniques: arrays not pointers, variable
105 locality, BITISSET, RESETBIT etc.
106
107 2001-12-05 Akim Demaille <akim@epita.fr>
108
109 Pessimize the code to simplify it: from now on, all the states
110 have a valid SHIFTS, which NSHIFTS is possibly 0.
111
112 * src/LR0.c (shifts_new): Be global and move to..
113 * src/state.c, src/state.h: here.
114 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
115 * src/print_graph: Adjust.
116
117 2001-12-05 Akim Demaille <akim@epita.fr>
118
119 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
120 * src/conflicts.c: Use it.
121 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
122 incorrectly ``simplified''.
123
124 2001-12-05 Akim Demaille <akim@epita.fr>
125
126 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
127 using the good o' techniques: arrays not pointers, variable
128 locality, BITISSET, RESETBIT etc.
129
130 2001-12-05 Akim Demaille <akim@epita.fr>
131
132 * src/state.h (SHIFT_SYMBOL): New.
133 * src/conflicts.c: Use it to deobfuscate.
134
135 2001-12-05 Akim Demaille <akim@epita.fr>
136
137 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
138 (print_reductions): De-obfuscate using the good o' techniques:
139 arrays not pointers, variable locality, BITISSET.
140
141 2001-12-05 Akim Demaille <akim@epita.fr>
142
143 * src/conflicts.c (print_reductions): Arrays, not pointers.
144 Use BITISSET.
145
146 2001-12-05 Akim Demaille <akim@epita.fr>
147
148 * src/conflicts.c (print_reductions): Pessimize, but clarify.
149
150 2001-12-05 Akim Demaille <akim@epita.fr>
151
152 * src/conflicts.c (print_reductions): Improve variable locality.
153
154 2001-12-05 Akim Demaille <akim@epita.fr>
155
156 * src/conflicts.c (print_reductions): Pessimize, but clarify.
157
158 2001-12-05 Akim Demaille <akim@epita.fr>
159
160 * src/conflicts.c (print_reductions): Improve variable locality.
161
162 2001-12-05 Akim Demaille <akim@epita.fr>
163
164 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
165 * src/lalr.c: Use them.
166
167 2001-12-05 Akim Demaille <akim@epita.fr>
168
169 * src/LR0.c (augment_automaton): Formatting changes.
170 Better variable locality.
171
172 2001-12-05 Akim Demaille <akim@epita.fr>
173
174 * src/lalr.c (matrix_print): New.
175 (transpose): Use it.
176 Use arrays instead of pointers.
177
178 2001-12-05 Akim Demaille <akim@epita.fr>
179
180 * src/lalr.c (maxrhs): Move to...
181 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
182 * src/lalr.c (build_relations): Adjust.
183
184 2001-12-05 Akim Demaille <akim@epita.fr>
185
186 * src/lalr.c (transpose): Free the memory allocated to the
187 argument, as it is replaced by the results by the unique caller.
188 (build_relations): Merely invoke transpose: it handles the memory
189 deallocation.
190 Improve variable locality.
191 Avoid variables used as mere abbreviations.
192 (compute_lookaheads): Use arrays instead of pointers.
193
194 2001-12-05 Akim Demaille <akim@epita.fr>
195
196 * src/lalr.c (initialize_F): Improve variable locality.
197 Avoid variables used as mere abbreviations.
198
199 2001-12-05 Akim Demaille <akim@epita.fr>
200
201 * src/derives.c (print_derives): Display the ruleno.
202 * src/lalr.c (initialize_F, transpose): Better variable locality
203 to improve readability.
204 Avoid variables used as mere abbreviations.
205
206 2001-12-05 Akim Demaille <akim@epita.fr>
207
208 * src/lalr.c (traverse): Use arrays instead of pointers.
209
210 2001-12-05 Akim Demaille <akim@epita.fr>
211
212 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
213 the handling of squeue.
214 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
215
216 2001-12-05 Akim Demaille <akim@epita.fr>
217
218 Because useless nonterminals are now kept alive (instead of being
219 `destroyed'), we now sometimes examine them, and store information
220 related to them. Hence we need to know their number, and adjust
221 memory allocations.
222
223 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
224 static.
225 * src/LR0.c (allocate_itemsets): The memory allocated to
226 `symbol_count' was used for two different purpose: once to count
227 the number of occurrences of each symbol, and later reassigned to
228 `shift_symbol', containing the symbol that can be shifted from a
229 given state.
230 Deobfuscate, i.e., allocate, use and free `symbol_count' here
231 only, and...
232 (new_itemsets): Allocate `shift_symbol' here.
233 (allocate_itemsets): symbol_count includes useless nonterminals.
234 Make room for them.
235 (free_storage): Use `free', not `XFREE', for pointers that cannot
236 be null.
237
238 2001-12-05 Akim Demaille <akim@epita.fr>
239
240 * src/nullable.c (set_nullable): Deobfuscate the handling of
241 ritem.
242 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
243
244 2001-12-05 Akim Demaille <akim@epita.fr>
245
246 * src/gram.c, src/gram.h (ritem_print): New.
247 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
248 (This useless function was defined only to work around VMS linkers
249 that can't handle compilation units with variables only).
250 * src/reduce.c (dump_grammar): Use it to trace the construction of
251 ritem.
252
253 2001-12-04 Paul Eggert <eggert@twinsun.com>
254
255 * src/bison.simple (union yyalloc): Change member names
256 to be the same as the stack names.
257 (yyparse): yyptr is now union yyalloc *, not char *.
258 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
259 and may generate better code on some machines.
260 (yystpcpy): Use prototype if __STDC__ is defined, not just
261 if __cplusplus is defined.
262
263 2001-11-30 Akim Demaille <akim@epita.fr>
264
265 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
266 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
267 Gettext doesn't compile cleanly, and dies with -Werror.
268 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
269 Include WARNING_CFLAGS here.
270 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
271 before being defined.
272
273 2001-11-27 Paul Eggert <eggert@twinsun.com>
274
275 * lib/quotearg.h (quotearg_n, quotearg_n_style):
276 First arg is int, not unsigned.
277 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
278 (SIZE_MAX, UINT_MAX): New macros.
279 (quotearg_n_options): Abort if N is negative.
280 Avoid overflow check on hosts where size_t is 64 bits and int
281 is 32 bits, as overflow is impossible there.
282 Fix off-by-one typo that caused unnecessary reallocation.
283
284 2001-11-29 Paul Eggert <eggert@twinsun.com>
285
286 Name space cleanup in generated parser.
287
288 * doc/bison.texinfo (Bison Parser): Discuss system headers
289 and their effect on the user name space.
290
291 * src/bison.simple:
292 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
293 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
294 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
295
296 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
297 on user names when possible.
298
299 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
300 Simplify test for whather <alloca.h> exists.
301
302 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
303
304 (<stdio.h>): Include if YYDEBUG.
305
306 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
307 ! defined (yyoverflow) && ! defined (yymemcpy).
308
309 (yymemcpy, yyparse): Rename local variables as needed so that
310 they all begin with 'yy'.
311
312 (yystrlen, yystpcpy): New functions.
313
314 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
315 All uses changed.
316
317 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
318 instead of relying on string.h functions. Use YYSTACK_ALLOC
319 and YYSTACK_FREE instead of malloc and free.
320
321 2001-11-30 Akim Demaille <akim@epita.fr>
322
323 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
324 before their first uses.
325 (YYBISON, YYPURE): Move to the top of the output.
326
327 2001-11-30 Akim Demaille <akim@epita.fr>
328
329 * tests/reduce.at (Useless Nonterminals): Fix.
330
331 2001-11-30 Akim Demaille <akim@epita.fr>
332
333 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
334 if body instead of `;' to pacify GCC's warnings.
335
336 2001-11-30 Akim Demaille <akim@epita.fr>
337
338 Instead of mapping the LHS of unused rules to -1, keep the LHS
339 valid, but flag the rules as invalid.
340
341 * src/gram.h (rule_t): `useful' is a new member.
342 * src/print.c (print_grammar): Adjust.
343 * src/derives.c (set_derives): Likewise.
344 * src/reader.c (packgram, reduce_output): Likewise.
345 * src/reduce.c (reduce_grammar_tables): Likewise.
346 * tests/reduce.at (Underivable Rules, Useless Rules): New.
347
348 2001-11-30 Akim Demaille <akim@epita.fr>
349
350 * src/reduce.c (reduce_output): Formatting changes.
351 * src/print.c (print_results, print_grammar): Likewise.
352 * tests/regression.at (Rule Line Numbers)
353 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
354
355 2001-11-30 Akim Demaille <akim@epita.fr>
356
357 * src/reduce.c (nonterminals_reduce): Instead of throwing away
358 useless nonterminals, move them at the end of the symbol arrays.
359 (reduce_output): Adjust.
360 * tests/reduce.at (Useless Nonterminals): Adjust.
361
362 2001-11-30 Akim Demaille <akim@epita.fr>
363
364 * src/reduce.c: Various comment/formatting changes.
365 (nonterminals_reduce): New, extracted from...
366 (reduce_grammar_tables): here.
367 (reduce_grammar): Call nonterminals_reduce.
368
369 2001-11-29 Paul Eggert <eggert@twinsun.com>
370
371 * src/bison.simple (YYSTACK_REALLOC): Remove.
372 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
373 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
374 New macros.
375 (union yyalloc): New type.
376 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
377 an arbitrary restriction on hosts where size_t is wider than int.
378
379 (yyparse): Don't dump core if alloca or malloc fails; instead, report
380 a parser stack overflow. Allocate just one block of memory for all
381 three stacks, instead of allocating three blocks; this typically is
382 faster and reduces fragmentation.
383
384 Do not limit the number of items in the stack to a value that fits
385 in 'int', as this is an arbitrary limit on hosts with 64-bit
386 size_t and 32-bit int.
387
388 2001-11-29 Marc Autret <autret_m@epita.fr>
389
390 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
391 of defining YYERROR_VERBOSE.
392 [AT_DATA]: $4 is now out of C declarations in the prologue.
393
394 2001-11-28 Marc Autret <autret_m@epita.fr>
395
396 * src/reader.c (parse_dquoted_param): New.
397 (parse_skel_decl): Use it.
398 * src/lex.h: Add its prototype.
399 * src/lex.c (literalchar): Become not static.
400
401 2001-11-28 Marc Autret <autret_m@epita.fr>
402
403 * src/output.h: And put its extern declaration here.
404 * src/output.c (error_verbose): Define here.
405 (prepare): Echo name modification.
406 * src/getargs.h: Clean its extern declaration.
407 * src/getargs.c (error_verbose_flag): Remove.
408 (getargs): Remove case 'e'.
409 * src/options.c (option_table): 'error-verbose' is now seen as simple
410 percent option.
411 Include output.h.
412
413 * src/reader.c (read_declarations): Remove case tok_include.
414 (parse_include_decl): Remove.
415 * src/lex.h (token_t): Remove tok_include.
416 * src/options.c (option_table): 'include' is now a simple command line
417 option.
418
419 2001-11-28 Marc Autret <autret_m@epita.fr>
420
421 * src/bison.simple: Adjust muscle names.
422 * src/muscle_tab.c (muscle_init): Also rename the muscles.
423 * src/output.c (prepare): s/_/-/ for the muscles names.
424 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
425
426 2001-11-28 Marc Autret <autret_m@epita.fr>
427
428 * src/bison.simple: Fix debug.
429 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
430
431 2001-11-28 Akim Demaille <akim@epita.fr>
432
433 * src/LR0.c (shifts_new): New.
434 (save_shifts, insert_start_shift, augment_automaton): Use it.
435
436 2001-11-28 Akim Demaille <akim@epita.fr>
437
438 * src/closure.c (closure): `b' and `ruleno' denote the same value:
439 keep ruleno only.
440
441 2001-11-28 Akim Demaille <akim@epita.fr>
442
443 * src/closure.c (closure): Instead of looping over word in array
444 then bits in words, loop over bits in array.
445
446 2001-11-28 Akim Demaille <akim@epita.fr>
447
448 * src/closure.c (closure): No longer optimize the special case
449 where all the bits of `ruleset[r]' are set to 0, to make the code
450 clearer.
451
452 2001-11-28 Akim Demaille <akim@epita.fr>
453
454 * src/closure.c (closure): `r' and `c' are new variables, used to
455 de-obfuscate accesses to RULESET and CORE.
456
457 2001-11-28 Akim Demaille <akim@epita.fr>
458
459 * src/reduce.c (reduce_print): Use ngettext.
460 (dump_grammar): Improve the trace accuracy.
461
462 2001-11-28 Akim Demaille <akim@epita.fr>
463
464 * src/reduce.c (dump_grammar): Don't translate trace messages.
465
466 2001-11-28 Akim Demaille <akim@epita.fr>
467
468 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
469 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
470 as all tags are free'ed afterwards.
471 From Enrico Scholz.
472
473 2001-11-27 Paul Eggert <eggert@twinsun.com>
474
475 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
476 use alloca when we didn't want to, and vice versa.
477
478 2001-11-27 Marc Autret <autret_m@epita.fr>
479
480 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
481 initialization.
482 * src/output.c (prepare): Remove its update.
483
484 2001-11-27 Marc Autret <autret_m@epita.fr>
485
486 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
487 Use %error-verbose.
488
489 2001-11-27 Marc Autret <autret_m@epita.fr>
490
491 * src/bison.simple: Remove YYERROR_VERBOSE using.
492 Use %%error_verbose.
493 (yyparse): Likewise.
494 * src/output.c (prepare): Give its final value.
495 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
496 * src/getargs.h: Add its extern declaration.
497 * src/getargs.c (error_verbose_flag): New int.
498 (getargs): Update to catch new case.
499 * src/options.c (option_table): 'error-verbose' is a new option.
500 (shortopts): Update.
501
502 2001-11-27 Akim Demaille <akim@epita.fr>
503
504 * src/system.h: Use intl/libgettext.h.
505 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
506
507 2001-11-27 Akim Demaille <akim@epita.fr>
508
509 * tests/torture.at (Exploding the Stack Size with Malloc):
510 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
511
512 2001-11-27 Akim Demaille <akim@epita.fr>
513
514 * src/files.c: Include error.h.
515 Reported by Hans Aberg.
516
517 2001-11-26 Marc Autret <autret_m@epita.fr>
518
519 * src/reader.c (parse_include_decl): New, not yet implemented.
520 (read_declarations): Add case tok_include.
521 * src/getargs.h (include): Add its extern definition.
522 * src/getargs.c (include): New const char *.
523 (getargs): Add case '-I'.
524 * src/options.c (option_table): Add include as command line and
525 percent option.
526 * src/lex.h (token_t): Add tok_include.
527
528 2001-11-26 Akim Demaille <akim@epita.fr>
529
530 * src/reader.c (readgram): Make sure rules for mid-rule actions
531 have a lineno equal to that of their host rule.
532 Reported by Hans Aberg.
533 * tests/regression.at (Rule Line Numbers): New.
534
535 2001-11-26 Akim Demaille <akim@epita.fr>
536
537 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
538 size_ts.
539
540 2001-11-26 Akim Demaille <akim@epita.fr>
541
542 * src/complain.c, src/complain.h (error): Remove, provided by
543 lib/error.[ch].
544
545 2001-11-26 Akim Demaille <akim@epita.fr>
546
547 * src/reader.c (read_declarations): Don't abort on tok_illegal,
548 issue an error message.
549 * tests/regression.at (Invalid %directive): New.
550 Reported by Hans Aberg.
551
552 2001-11-26 Akim Demaille <akim@epita.fr>
553
554 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
555 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
556
557 2001-11-26 Akim Demaille <akim@epita.fr>
558
559 * src/conflicts.c (conflicts_print): Don't complain at all when
560 there are no reduce/reduce conflicts, and as many shift/reduce
561 conflicts as expected.
562 * tests/regression.at (%expect right): Adjust.
563
564 2001-11-23 Akim Demaille <akim@epita.fr>
565
566 * lib/alloca.c: Update, from fileutils.
567
568 2001-11-23 Akim Demaille <akim@epita.fr>
569
570 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
571
572 2001-11-23 Akim Demaille <akim@epita.fr>
573
574 * src/system.h: Include alloca.h.
575 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
576
577 2001-11-23 Akim Demaille <akim@epita.fr>
578
579 * src/print_graph.c (print_actions): Remove `rule', unused.
580 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
581 pacify GCC's signed < unsigned warnings.
582 * src/closure.c (itemsetsize): Likewise.
583 * src/reader.c (symbol_list_new): Static.
584
585 2001-11-23 Akim Demaille <akim@epita.fr>
586
587 Attaching lineno to buckets is stupid, since only one copy of each
588 symbol is kept, only the line of the first occurrence is kept too.
589
590 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
591 * src/reader.c (rline_allocated): Remove, unused.
592 (symbol_list): Have a `line' member.
593 (symbol_list_new): New.
594 (readgram): Use it.
595 * src/print.c (print_grammar): Output the rule line numbers.
596 * tests/regression.at (Solved SR Conflicts)
597 (Unresolved SR Conflicts): Adjust.
598 Reported by Hans Aberg.
599
600 2001-11-22 Marc Autret <autret_m@epita.fr>
601
602 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
603
604 2001-11-22 Marc Autret <autret_m@epita.fr>
605
606 * src/muscle_tab.c (muscle_init): Remove initialization of
607 skeleton muscle.
608 * src/output.c (output_master_parser): Do it here.
609
610 2001-11-20 Akim Demaille <akim@epita.fr>
611
612 * po/sv.po: New.
613 * configure.in (ALL_LINGUAS): Adjust.
614 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
615 longer contains strings to translate.
616
617 2001-11-19 Akim Demaille <akim@epita.fr>
618
619 * src/conflicts.c (conflicts_print): Add a missing \n.
620
621 2001-11-19 Akim Demaille <akim@epita.fr>
622
623 * src/nullable.c (nullable_print): New.
624 (set_nullable): Call it when tracing.
625 Better locality of variables.
626
627 2001-11-19 Akim Demaille <akim@epita.fr>
628
629 * src/print.c (print_actions): Better locality of variables.
630
631 2001-11-19 Akim Demaille <akim@epita.fr>
632
633 * src/derives.c (print_derives): Fix and enrich.
634 * src/closure.c (print_fderives): Likewise.
635
636 2001-11-19 Akim Demaille <akim@epita.fr>
637
638 * src/closure.c (itemsetend): Remove, replaced with...
639 (itemsetsize): new.
640
641 2001-11-19 Akim Demaille <akim@epita.fr>
642
643 * src/LR0.c (kernel_end): Remove, replaced with...
644 (kernel_size): new.
645
646 2001-11-19 Akim Demaille <akim@epita.fr>
647
648 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
649 to clarify.
650
651 2001-11-19 Akim Demaille <akim@epita.fr>
652
653 * src/closure.c (closure): Use arrays instead of pointers to clarify.
654
655 2001-11-19 Akim Demaille <akim@epita.fr>
656
657 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
658 trace messages.
659 * src/LR0.c: Likewise.
660 (allocate_itemsets): Use arrays instead of pointers to clarify.
661
662 2001-11-19 Akim Demaille <akim@epita.fr>
663
664 * src/getargs.c (statistics_flag): Replace with...
665 (trace_flag): New.
666 (longopts): Accept --trace instead of --statistics.
667 * src/getargs.h, src/options.c: Adjust.
668 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
669 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
670
671 2001-11-19 Akim Demaille <akim@epita.fr>
672
673 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
674 pointers to clarify the code.
675 (save_reductions, save_shifts): Factor common parts of alternatives.
676
677 2001-11-19 Akim Demaille <akim@epita.fr>
678
679 * src/LR0.c (new_state, get_state): Complete TRACE code.
680 * src/closure.c: Include `reader.h' to get `tags', needed by the
681 trace code.
682 Rename the conditional DEBUG as TRACE.
683 Output consistently TRACEs to stderr, not stdout.
684 * src/derives.c: Likewise.
685 * src/reduce.c: (inaccessable_symbols): Using if is better style
686 than goto.
687 Use `#if TRACE' instead of `#if 0' for tracing code.
688
689 2001-11-19 Akim Demaille <akim@epita.fr>
690
691 * src/system.h (LIST_FREE, shortcpy): New.
692 * src/LR0.c: Use them.
693 * src/output.c (free_itemsets, free_reductions, free_shifts):
694 Remove, replaced by LIST_FREE.
695
696 2001-11-19 Akim Demaille <akim@epita.fr>
697
698 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
699 (REDUCTIONS_ALLOC): New.
700 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
701 allocation.
702
703 2001-11-19 Akim Demaille <akim@epita.fr>
704
705 * src/LR0.c (new_state): Complete trace code.
706 * src/nullable.c (set_nullable): Don't translate traces.
707
708 2001-11-19 Akim Demaille <akim@epita.fr>
709
710 * src/print_graph.c (print_core): Better locality of variables.
711 * src/print.c (print_core): Likewise.
712
713 2001-11-19 Akim Demaille <akim@epita.fr>
714
715 * src/vcg.c: You do the output, so you are responsible of the
716 handling of VCG syntax, in particular: use quotearg.
717 * src/print_graph.c: Don't.
718 (print_actions): Don't output the actions as part of the nodes,
719 since that's the job of the edges.
720 (print_state): Don't output by hand: fill the node description,
721 and ask for its output.
722
723 2001-11-19 Akim Demaille <akim@epita.fr>
724
725 * src/bison.simple (yyparse): When verbosely reporting an error,
726 no longer put additional quotes around token names.
727 * tests/calc.at: Adjust.
728
729 2001-11-19 Akim Demaille <akim@epita.fr>
730
731 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
732 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
733 * src/output.c: Adjust.
734
735 2001-11-19 Akim Demaille <akim@epita.fr>
736
737 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
738 (rule_t): this.
739 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
740
741 2001-11-19 Akim Demaille <akim@epita.fr>
742
743 * src/gram.h (rule_t): New.
744 (rule_table): New.
745 (rrhs, rlhs): Remove, part of state_t.
746 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
747 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
748 * src/reader.c, src/reduce.c: Adjust.
749
750 2001-11-19 Akim Demaille <akim@epita.fr>
751
752 * src/reader.c (symbols_output): New, extracted from...
753 (packsymbols): Here.
754 (reader): Call it.
755
756 2001-11-19 Akim Demaille <akim@epita.fr>
757
758 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
759 (maxrhs): this new function.
760
761 2001-11-19 Akim Demaille <akim@epita.fr>
762
763 * src/lalr.c (F): New macro to access the variable F.
764 Adjust.
765
766 2001-11-19 Akim Demaille <akim@epita.fr>
767
768 * src/lalr.h (LA): New macro to access the variable LA.
769 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
770 * src/lalr.c: Adjust.
771
772 2001-11-19 Akim Demaille <akim@epita.fr>
773
774 * src/lalr.c (initialize_LA): Only initialize LA. Let...
775 (set_state_table): handle the `lookaheads' members.
776
777 2001-11-19 Akim Demaille <akim@epita.fr>
778
779 * src/lalr.h (lookaheads): Removed array, whose contents is now
780 a member of...
781 (state_t): this structure.
782 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
783 Adjust.
784
785 2001-11-19 Akim Demaille <akim@epita.fr>
786
787 * src/lalr.h (consistent): Removed array, whose contents is now
788 a member of...
789 (state_t): this structure.
790 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
791 Adjust.
792
793 2001-11-19 Akim Demaille <akim@epita.fr>
794
795 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
796 contents are now members of...
797 (state_t): this structure.
798 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
799 Adjust.
800
801 2001-11-19 Akim Demaille <akim@epita.fr>
802
803 * src/lalr.h (state_t): New.
804 (state_table): Be a state_t * instead of a core **.
805 (accessing_symbol): Remove, part of state_t.
806 * src/lalr.c: Adjust.
807 (set_accessing_symbol): Merge into...
808 (set_state_table): this.
809 * src/print_graph.c, src/conflicts.c: Adjust.
810
811 2001-11-14 Akim Demaille <akim@epita.fr>
812
813 * tests/calc.at, tests/output.at, tests/regression.at,
814 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
815 now the tests are run in private dirs, therefore AC_CLEANUP and
816 family can be simplified to 0-ary.
817 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
818 use abs. path to find config.h.
819 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
820 stderr, there can be way too much random noise.
821 Instead pass -Werror to GCC and rely on the exit status.
822 Reported by Wolfram Wagner.
823
824 2001-11-14 Akim Demaille <akim@epita.fr>
825
826 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
827 defined only if yyoverflow is defined, to avoid `warning: unused
828 variable `yyvs1''.
829 Reported by The Test Suite.
830
831 2001-11-14 Akim Demaille <akim@epita.fr>
832
833 * src/print.c: Include reduce.h.
834 Reported by Hans Aberg.
835
836 2001-11-14 Akim Demaille <akim@epita.fr>
837
838 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
839 Revert a previous patch: these are really const.
840 * src/conflicts.c (conflict_report): Additional useless pair of
841 braces to pacify GCC's warnings for `if () if () {} else {}'.
842 * src/lex.c (parse_percent_token): Replace equal_offset with
843 arg_offset.
844 arg is const.
845 Be sure to strdup `arg' when used, since there is no reason for
846 token_buffer not to change.
847
848 2001-11-14 Akim Demaille <akim@epita.fr>
849
850 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
851 definition.
852 * src/main.c (main): Use them.
853 Suggested by Hans Aberg.
854
855 2001-11-12 Akim Demaille <akim@epita.fr>
856
857 * src/system.h (ngettext): Now that we use ngettext, be sure to
858 provide a default definition when NLS are not used.
859
860 2001-11-12 Akim Demaille <akim@epita.fr>
861
862 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
863 Use @kbd to denote user input.
864 (Language and Grammar): ANSIfy the example.
865 Adjust its layout for info/notinfo.
866 (Location Tracking Calc): Output error messages to stderr.
867 Output locations in a more GNUtically correct way.
868 Fix a couple of Englishos.
869 Adjust @group/@end group pairs.
870
871 2001-11-12 Akim Demaille <akim@epita.fr>
872
873 %expext was not functioning at all.
874
875 * src/conflicts.c (expected_conflicts): Set to -1.
876 (conflict_report): Use ngettext.
877 (conflicts_print): Check %expect and make its violation an error.
878 * doc/bison.texinfo (Expect Decl): Adjust.
879 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
880 * tests/regression.at (%expect not enough, %expect right)
881 (%expect too much): New.
882
883 2001-11-12 Akim Demaille <akim@epita.fr>
884
885 * tests/regression.at (Conflicts): Rename as...
886 (Unresolved SR Conflicts): this.
887 (Solved SR Conflicts): New.
888
889 2001-11-12 Akim Demaille <akim@epita.fr>
890
891 * src/reduce.c (print_results): Rename as...
892 (reduce_output): This.
893 Output to OUT, passed as argument, instead of output_obstack.
894 (dump_grammar): Likewise.
895 (reduce_free): New.
896 Also free V1.
897 (reduce_grammar): No longer call reduce_output, since...
898 * src/print.c (print_results): do it.
899 * src/main.c (main): Call reduce_free;
900
901 2001-11-12 Akim Demaille <akim@epita.fr>
902
903 * src/conflicts.c (print_reductions): Accept OUT as argument.
904 Output to it, not to output_obstack.
905 * src/print.c (print_actions): Adjust.
906
907 2001-11-12 Akim Demaille <akim@epita.fr>
908
909 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
910 the result instead of using...
911 (src_total, rrc_total, src_count, rrc_count): Remove.
912 (any_conflicts): Remove.
913 (print_conflicts): Split into...
914 (conflicts_print, conflicts_output): New.
915 * src/conflicts.h: Adjust.
916 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
917 * src/print.c (print_grammar): Issue `\n' between two rules.
918 * tests/regression.at (Conflicts): New.
919 Reported by Tom Lane.
920
921 2001-11-12 Akim Demaille <akim@epita.fr>
922
923 * tests/regression.at (Invalid input): Remove, duplicate with
924 ``Invalid input: 1''.
925
926 2001-11-12 Akim Demaille <akim@epita.fr>
927
928 * tests/torture.at (AT_DATA_STACK_TORTURE)
929 (Exploding the Stack Size with Alloca)
930 (Exploding the Stack Size with Malloc): New.
931
932 2001-11-12 Akim Demaille <akim@epita.fr>
933
934 * src/bison.simple (YYSTACK_REALLOC): New.
935 (yyparse) [!yyoverflow]: Use it and free the old stack.
936 Reported by Per Allansson.
937
938 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
939
940 * src/bison.simple: Define type yystype instead of YYSTYPE, and
941 define CPP macro, which substitute YYSTYPE by yystype.
942 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
943 with yyltype/YYLTYPE. This allows inclusion of the generated
944 header within the parser if the compiler, such as GGC, accepts
945 multiple equivalent #defines.
946 From Akim.
947
948 2001-11-05 Akim Demaille <akim@epita.fr>
949
950 * src/reader.c (symbols_output): New, extracted from...
951 (packsymbols): here.
952 (reader): Adjust.
953
954 2001-11-05 Akim Demaille <akim@epita.fr>
955
956 * src/lex.c (parse_percent_token): s/quotearg/quote/.
957
958 2001-11-05 Akim Demaille <akim@epita.fr>
959
960 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
961 pattern.
962
963 2001-11-05 Akim Demaille <akim@epita.fr>
964
965 * src/options.h (struct option_table_struct): set_flags is void*.
966 * src/options.c (longopts): Support `--output' and `%output'.
967 (usage): Adjust.
968 * src/lex.h (tok_setopt): Remove, replaced with...
969 (tok_intopt, tok_stropt): these new guys.
970 * src/lex.c (getopt.h): Not needed.
971 (token_buffer, unlexed_token_buffer): Not const.
972 (percent_table): Promote `-' over `_' in directive names.
973 Active `%name-prefix', `file-prefix', and `output'.
974 (parse_percent_token): Accept possible arguments to directives.
975 Promote `-' over `_' in directive names.
976
977 2001-11-04 Akim Demaille <akim@epita.fr>
978
979 * doc/bison.texinfo (Decl Summary): Split the list into
980 `directives for grammars' and `directives for bison'.
981 Sort'em.
982 Add description of `%name-prefix', `file-prefix', and `output'.
983 Promote `-' over `_' in directive names.
984 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
985 Simplify the description of `--name-prefix'.
986 Promote `-' over `_' in directive names.
987 Promote `--output' over `--output-file'.
988 Fix the description of `--defines'.
989 * tests/output.at: Exercise %file-prefix and %output.
990
991 2001-11-02 Akim Demaille <akim@epita.fr>
992
993 * doc/refcard.tex: Update.
994
995 2001-11-02 Akim Demaille <akim@epita.fr>
996
997 * src/symtab.h (SUNDEF): New.
998 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
999 stand for `uninitialized', instead of 0.
1000 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1001 * src/lex.c (lex): Adjust.
1002
1003 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1004 Number it 0.
1005 Let yylex return it instead of a plain 0.
1006 Reported by Dick Streefland.
1007
1008 2001-11-02 Akim Demaille <akim@epita.fr>
1009
1010 * tests/regression.at (Mixing %token styles): New test.
1011
1012 2001-11-02 Akim Demaille <akim@epita.fr>
1013
1014 * src/reader.c (parse_thong_decl): Formatting changes.
1015 (token_translations_init): New, extracted from...
1016 (packsymbols): Here.
1017 Adjust.
1018
1019 2001-11-01 Akim Demaille <akim@epita.fr>
1020
1021 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1022 Check that `9foo.y' produces correct cpp guards.
1023 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1024 guards.
1025 Reported by Wwp.
1026
1027 2001-11-01 Akim Demaille <akim@epita.fr>
1028
1029 * tests/regression.at (Invalid input: 2): New.
1030 * src/lex.c (unlexed_token_buffer): New.
1031 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1032 too.
1033 Reported by Wwp.
1034
1035 2001-11-01 Akim Demaille <akim@epita.fr>
1036
1037 * tests/calc.at: Catch up with 1.30.
1038 * configure.in: Bump to 1.49a.
1039 Adjust to newer Autotest.
1040
1041 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
1042
1043 * src/conflicts.c: Move global variables rrc_total and src_total ...
1044 (print_conflicts): here.
1045 * src/output.c (output): Free global variable user_toknums.
1046 * src/lex.c (token_obstack): Become static.
1047
1048 2001-10-18 Akim Demaille <akim@epita.fr>
1049
1050 * tests/atlocal.in (GCC): Add.
1051 * tests/calc.at: s/m4_match/m4_bmatch/.
1052 s/m4_patsubst/m4_bpatsubst/.
1053 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1054 * configure.in: AC_SUBST(GCC).
1055
1056 2001-10-14 Marc Autret <autret_m@epita.fr>
1057
1058 * src/options.c (create_long_option_table): Fix.
1059
1060 2001-10-10 Akim Demaille <akim@epita.fr>
1061
1062 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1063
1064 2001-10-04 Akim Demaille <akim@epita.fr>
1065
1066 * src/reader.c (parse_union_decl): Push the caracters in
1067 union_obstack, not attrs_obstack.
1068
1069 2001-10-04 Akim Demaille <akim@epita.fr>
1070
1071 Merge in the branch 1.29.
1072
1073 * src/reader.c (packsymbols): Use a temporary obstack for
1074 `%%tokendef', since output_stack is already used elsewhere.
1075
1076 2001-10-02 Akim Demaille <akim@epita.fr>
1077
1078 Bump 1.29d.
1079
1080 2001-10-02 Akim Demaille <akim@epita.fr>
1081
1082 Version 1.29c.
1083
1084 2001-10-02 Akim Demaille <akim@epita.fr>
1085
1086 * tests/regression.at (Invalid CPP headers): New.
1087 From Alexander Belopolsky.
1088 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1089
1090 2001-10-02 Akim Demaille <akim@epita.fr>
1091
1092 * tests/regression.at (Invalid input): New.
1093 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1094 Reported by Shura.
1095
1096 2001-10-02 Akim Demaille <akim@epita.fr>
1097
1098 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1099
1100 2001-10-02 Akim Demaille <akim@epita.fr>
1101
1102 * src/output.c (output_parser): Assert `skeleton'.
1103 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1104 systems.
1105 From Shura.
1106
1107 2001-10-01 Marc Autret <autret_m@epita.fr>
1108
1109 * src/lex.h: Echo modifications.
1110 * src/lex.c (unlex): Parameter is now token_t.
1111 From Hans Aberg.
1112
1113 2001-10-01 Marc Autret <autret_m@epita.fr>
1114
1115 * src/main.c: Include lex.h.
1116 From Hans Aberg.
1117
1118 2001-09-29 Akim Demaille <akim@epita.fr>
1119
1120 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1121
1122 2001-09-28 Akim Demaille <akim@epita.fr>
1123
1124 * tests/testsuite.at: Update to newer Autotest.
1125 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1126
1127 2001-09-27 Akim Demaille <akim@epita.fr>
1128
1129 Position independent wrapper.
1130
1131 * tests/bison: Remove.
1132 * tests/bison.in: New.
1133 * configure.in: Adjust.
1134
1135 2001-09-27 Paul Eggert <eggert@twinsun.com>
1136
1137 Port quotearg fixes from tar 1.13.24.
1138
1139 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1140 tm to be declared.
1141 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1142 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1143
1144 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1145 * m4/mbrtowc.m4: New file.
1146 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1147 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1148
1149 2001-09-27 Akim Demaille <akim@epita.fr>
1150
1151 Bump to 1.29c.
1152
1153 2001-09-27 Akim Demaille <akim@epita.fr>
1154
1155 Version 1.29b.
1156
1157 2001-09-25 Akim Demaille <akim@epita.fr>
1158
1159 * src/system.h: Include `xalloc.h'.
1160 Remove it from the C files.
1161 * src/files.c (output_files): Free the obstacks.
1162 * src/lex.c (init_lex): Rename as...
1163 (lex_init): this.
1164 (lex_free): New.
1165 * src/main.c (main): Use it.
1166
1167 2001-09-24 Marc Autret <autret_m@epita.fr>
1168
1169 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1170 to output informations in fout (FILE*).
1171 (open_graph, close_graph): Likewise.
1172 (output_graph, output_edge, output_node): Likewise.
1173 * src/vcg.h: Update function prototypes.
1174 * src/print_graph.c (print_graph): Open output graph file.
1175 (print_actions): Adjust.
1176 * src/files.h: Remove extern declaration.
1177 * src/files.c: Remove graph_obstack declaration.
1178 (open_files): Remove graph_obstack initialization.
1179 (output_files): Remove graph_obstack saving.
1180
1181 2001-09-24 Marc Autret <autret_m@epita.fr>
1182
1183 * src/files.c (compute_output_file_names): Fix.
1184
1185 2001-09-24 Marc Autret <autret_m@epita.fr>,
1186 Akim Demaille <akim@epita.fr>
1187
1188 * src/reader.c (reader): Remove call to free_symtab ().
1189 * src/main.c (main): Call it here.
1190 Include symtab.h.
1191 * src/conflicts.c (initialize_conflicts): Rename as...
1192 (solve_conflicts): this.
1193 * src/print.c (print_core, print_actions, print_state)
1194 (print_grammar): Dump to a file instead a `output_obstack'.
1195 (print_results): Dump `output_obstack', and then proceed with the
1196 FILE *.
1197 * src/files.c (compute_output_file_names, close_files): New.
1198 (output_files): Adjust.
1199 * src/main.c (main): Adjust.
1200
1201 2001-09-23 Marc Autret <autret_m@epita.fr>
1202
1203 * src/files.c (compute_header_macro): Computes header macro name
1204 from spec_defines_file when given.
1205
1206 2001-09-23 Marc Autret <autret_m@epita.fr>
1207
1208 * src/files.c (output_files): Add default extensions.
1209
1210 2001-09-22 Akim Demaille <akim@epita.fr>
1211
1212 * src/conflicts.c (finalize_conflicts): Rename as...
1213 (free_conflicts): this.
1214
1215 2001-09-22 Akim Demaille <akim@epita.fr>
1216
1217 * src/gram.c (gram_free): Rename back as...
1218 (dummy): this.
1219 (output_token_translations): Free `token_translations'.
1220 * src/symtab.c (free_symtab): Free the tag field.
1221
1222 2001-09-22 Akim Demaille <akim@epita.fr>
1223
1224 Remove `translations' as it is always set to true.
1225
1226 * src/gram.h: Adjust.
1227 * src/reader.c (packsymbols, parse_token_decl): Adjust
1228 * src/print.c (print_grammar): Adjust.
1229 * src/output.c (output_token_translations): Adjust.
1230 * src/lex.c (lex): Adjust.
1231 * src/gram.c: Be sure the set pointers to NULL.
1232 (dummy): Rename as...
1233 (gram_free): this.
1234
1235 2001-09-22 Akim Demaille <akim@epita.fr>
1236
1237 * configure.in: Invoke AM_LIB_DMALLOC.
1238 * src/system.h: Use dmalloc.
1239 * src/LR0.c: Be sure to have pointers initialized to NULL.
1240 (allocate_itemsets): Allocate kernel_items only if needed.
1241
1242 2001-09-22 Akim Demaille <akim@epita.fr>
1243
1244 * configure.in: Bump to 1.29b.
1245 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1246 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1247 need xmalloc.c in calc.y.
1248 From Pascal Bart.
1249
1250 2001-09-21 Akim Demaille <akim@epita.fr>
1251
1252 Version 1.29a.
1253 * Makefile.maint, config/config.guess, config/config.sub,
1254 * config/missing: Update from masters.
1255 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1256 upon package.m4.
1257 * configure.in (ALL_LINGUAS): Add `tr'.
1258
1259 2001-09-21 Akim Demaille <akim@epita.fr>
1260
1261 * tests/Makefile.am (package.m4): Move to...
1262 ($(srcdir)/$(TESTSUITE)): here.
1263
1264 2001-09-20 Akim Demaille <akim@epita.fr>
1265
1266 * src/complain.c: No longer try to be standalone: use system.h.
1267 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1268 * src/complain.h: Likewise.
1269 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1270 Remove the unused variable `n'.
1271 From Albert Chin-A-Young.
1272
1273 2001-09-18 Marc Autret <autret_m@epita.fr>
1274
1275 * doc/bison.1: Update.
1276 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1277 descriptions.
1278 (Option Cross Key): Update.
1279 Add --graph.
1280
1281 2001-09-18 Marc Autret <autret_m@epita.fr>
1282
1283 * tests/regression.at: New test (comment in %union).
1284
1285 2001-09-18 Marc Autret <autret_m@epita.fr>
1286
1287 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1288 do that.
1289 Reported by Keith Browne.
1290
1291 2001-09-18 Marc Autret <autret_m@epita.fr>
1292
1293 * tests/output.at: Add tests for --defines and --graph.
1294
1295 2001-09-18 Marc Autret <autret_m@epita.fr>
1296
1297 * tests/output.at: Removes tests of %{header,src}_extension features.
1298
1299 2001-09-18 Akim Demaille <akim@epita.fr>
1300
1301 * tests/Makefile.am (package.m4): New.
1302 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1303 (_AT_CHECK_CALC_ERROR): Likewise.
1304 Factor the `, ' part of verbose error messages.
1305
1306 2001-09-18 Marc Autret <autret_m@epita.fr>
1307
1308 * src/getargs.c (longopts): Declare --defines and --graph as options
1309 with optional arguments.
1310 * src/files.h: Add extern declarations.
1311 * src/files.c (spec_graph_file, spec_defines_file): New.
1312 (output_files): Update.
1313 Remove CPP-outed code.
1314
1315 2001-09-18 Marc Autret <autret_m@epita.fr>
1316
1317 Turn off %{source,header}_extension feature.
1318
1319 * src/files.c (compute_exts_from_gf): Update.
1320 (compute_exts_from_src): Update.
1321 (output_files): CPP-out useless code.
1322 * src/files.h: Remove {header,source}_extension extern declarations.
1323 * src/reader.c (parse_dquoted_param): CPP-out.
1324 (parse_header_extension_decl): Remove.
1325 (parse_source_extension_decl): Remove.
1326 (read_declarations): Remove cases tok_{hdrext,srcext}.
1327 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1328 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1329
1330 2001-09-10 Akim Demaille <akim@epita.fr>
1331
1332 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1333 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1334 (AT_CHECK_OUTPUT): this.
1335 Merely check ls' exit status, its output is useless.
1336
1337 2001-09-10 Akim Demaille <akim@epita.fr>
1338
1339 * tests/calc.at: Use m4_match.
1340 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1341
1342 2001-09-10 Marc Autret <autret_m@epita.fr>,
1343 Akim Demaille <akim@epita.fr>
1344
1345 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1346 enum color_e.
1347 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1348 to `normal'.
1349 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1350 * src/lex.h: Adjust prototype.
1351 (token_t): Add `tok_undef'.
1352 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1353 (parse_percent_token): Now returns token_t.
1354 Add default statement in switch.
1355 (lex): Separate `c' as an input variable, from the token_t result
1356 part.
1357 (unlexed): Is a token_t.
1358
1359 2001-09-10 Akim Demaille <akim@epita.fr>
1360
1361 * configure.in: Bump to 1.29a.
1362
1363 2001-09-07 Akim Demaille <akim@epita.fr>
1364
1365 Version 1.29.
1366
1367 2001-08-30 Akim Demaille <akim@epita.fr>
1368
1369 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1370 * m4/atconfig.m4: Remove.
1371 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1372 * tests/bison: New.
1373 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1374 m4_if, m4_patsubst, and m4_regexp.
1375 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1376 `input' file instead of echo.
1377
1378 2001-08-29 Akim Demaille <akim@epita.fr>
1379
1380 Bump to 1.28e.
1381
1382 2001-08-29 Akim Demaille <akim@epita.fr>
1383
1384 Version 1.28d.
1385
1386 2001-08-29 Paul Eggert <eggert@twinsun.com>
1387
1388 * src/bison.simple (yyparse): Don't take the address of an
1389 item before the start of an array, as that doesn't conform to
1390 the C Standard.
1391
1392 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1393
1394 * doc/bison.texinfo (Location Tracking Calc): New node.
1395
1396 2001-08-29 Paul Eggert <eggert@twinsun.com>
1397
1398 * src/output.c (output): Do not define const, as this now
1399 causes more problems than it cures.
1400
1401 2001-08-29 Akim Demaille <akim@epita.fr>
1402
1403 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1404 the nodes.
1405 Be sure to tag the `detailmenu'.
1406
1407 2001-08-29 Akim Demaille <akim@epita.fr>
1408
1409 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1410 download in a tmp dir.
1411
1412 2001-08-28 Marc Autret <autret_m@epita.fr>
1413
1414 * config/depcomp: New file.
1415
1416 2001-08-28 Marc Autret <autret_m@epita.fr>
1417
1418 * doc/bison.1 (mandoc): Adjust.
1419 From Juan Manuel Guerrero.
1420
1421 2001-08-28 Marc Autret <autret_m@epita.fr>
1422
1423 * src/print_graph.c (print_state): Fix.
1424
1425 2001-08-27 Marc Autret <autret_m@epita.fr>
1426
1427 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1428 char * members.
1429 Echo modifications to the functions prototypes.
1430 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1431
1432 2001-08-27 Marc Autret <autret_m@epita.fr>
1433
1434 * src/vcg.c: Include `xalloc.h'.
1435 (add_colorentry): New.
1436 (add_classname): New.
1437 (add_infoname): New.
1438 * src/vcg.h: Add new prototypes.
1439
1440 2001-08-27 Akim Demaille <akim@epita.fr>
1441
1442 * Makefile.maint: Sync. again with CVS Autoconf.
1443
1444 2001-08-27 Akim Demaille <akim@epita.fr>
1445
1446 * Makefile.maint: Formatting changes.
1447 (po-update, cvs-update, update): New targets.
1448 (AMTAR): Remove.
1449
1450 2001-08-27 Akim Demaille <akim@epita.fr>
1451
1452 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1453 * Makefile.maint: Sync. with CVS Autoconf.
1454
1455 2001-08-27 Marc Autret <autret_m@epita.fr>
1456
1457 * src/vcg.h (struct infoname_s): New.
1458 (struct colorentry_s): New.
1459 (graph_s): New fields {vertical,horizontal}_order in structure.
1460 Add `infoname' field.
1461 Add `colorentry' field;
1462 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1463 (G_HORIZONTAL_ORDER): New.
1464 (G_INFONAME): New.
1465 (G_COLORENTRY): New.
1466 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1467 Add output of `infoname'.
1468 Add output of `colorentry'.
1469
1470 2001-08-27 Marc Autret <autret_m@epita.fr>
1471
1472 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1473 This one shadowed a global parameter.
1474
1475 2001-08-24 Marc Autret <autret_m@epita.fr>
1476
1477 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1478 instead of `unsigned'.
1479 (print_state): Do not call obstack_object_size () in obstack_grow ()
1480 to avoid macro variables shadowing.
1481
1482 2001-08-23 Marc Autret <autret_m@epita.fr>
1483
1484 * src/lex.c (percent_table): Typo: s/naem/name/.
1485 Add graph option.
1486 Normalize new options declarations.
1487
1488 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1489
1490 * tests/suite.at: Exercise %header_extension and %source_extension.
1491
1492 2001-08-16 Marc Autret <autret_m@epita.fr>
1493
1494 * src/reader.c (parse_dquoted_param): New.
1495 (parse_header_extension_decl): Use it.
1496 (parse_source_extension_decl): Likewise.
1497
1498 2001-08-16 Marc Autret <autret_m@epita.fr>
1499
1500 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1501 (get_xxxx_str): Use assert () instead of complain ().
1502 Remove return invokations in default cases.
1503 (get_decision_str): Modify default behaviour. Remove second argument.
1504 Echo modifications on calls.
1505 (output_graph): Fix.
1506
1507 2001-08-16 Marc Autret <autret_m@epita.fr>
1508
1509 * src/getargs.c (usage): Update with ``-g, --graph''.
1510
1511 2001-08-16 Marc Autret <autret_m@epita.fr>
1512
1513 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1514 (Option Cross Key): Likewise.
1515 * doc/bison.1: Update.
1516
1517 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1518
1519 * src/output.c (output_master_parser): Don't finish action_obstack.
1520 (output_parser): Don't care about the muscle action, here.
1521 (prepare): Copy the action_obstack in the action muscle.
1522 (output): Free action_obstack.
1523
1524 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1525
1526 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1527 will contain `%union' declaration.
1528 (parse_union_decl): Delete #line directive output.
1529 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1530 informations about %union.
1531 (parse_union_decl): Copy the union_obstack in the muscle stype.
1532 * src/bison.simple: Add new #line directive.
1533 Add typdef %%stype YYSTYPE.
1534
1535 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1536
1537 * src/bison.simple: Add new `#line' directive.
1538
1539 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1540
1541 * src/bison.simple: New `#line' directive.
1542 * src/output.c (output_parser): Support new dynamic muscle input_line.
1543
1544 2001-09-22 Marc Autret <autret_m@epita.fr>
1545
1546 * src/output.c (output_master_parser): New.
1547 (output_parser): Be more re-entrant.
1548
1549 2001-09-21 Marc Autret <autret_m@epita.fr>
1550
1551 * src/reader.c (copy_definition, parse_union_decl): Update and use
1552 `linef' muscle.
1553 (copy_action): Likewise.
1554 Use obstack_1grow ().
1555 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1556
1557 2001-09-21 Marc Autret <autret_m@epita.fr>
1558
1559 * src/options.c (option_table): Adjust.
1560 * src/lex.c (parse_percent_token): Fix.
1561
1562 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1563
1564 * src/options.c (symtab.h): Include it, need by lex.h.
1565
1566 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1567
1568 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1569 is now an option_table_struct*.
1570 (option_strcmp): New function option_strcmp.
1571 (parse_percent_token): Call option_strcmp.
1572 * src/getargs.c (xalloc.h, options.h): Include it.
1573 (getargs): Call create_long_option_table.
1574 (getargs): Free longopts at the end of the function.
1575 (shortopts): Move in options.c.
1576 * src/options.c (create_long_option_table): New function. Convert
1577 information from option_table to option structure.
1578 * src/reader.c (options.h): Include it.
1579
1580 * src/Makefile.am: Adjust.
1581 * src/options.c (option_table): Create from longopts and percent_table.
1582 * src/getargs.c (longopts): Delete.
1583 * src/lex.c (struct percent_table_struct): Delete.
1584 (percent_table): Delete.
1585 (options.h): Include it.
1586 * src/options.c: Create.
1587 * src/options.h: Create.
1588 Declare enum opt_access_e.
1589 Define struct option_table_struct.
1590
1591 2001-09-20 Marc Autret <autret_m@epita.fr>
1592
1593 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1594 sections of Bison.
1595
1596 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1597
1598 * src/bison.simple: s/%%filename/%%skeleton.
1599 * src/muscle_tab.c (getargs.h): Include it.
1600 (muscle_init): Insert new muscle skeleton.
1601
1602 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1603
1604 * src/output.c (output_parser): Delete unused variable actions_dumped.
1605
1606 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1607
1608 * src/output.c (output): Delete call to reader_output_yylsp.
1609 * src/reader.c (reader): Likewise.
1610 * src/reader.h: Delete declaration of reader_output_yylsp.
1611
1612 2001-09-02 Marc Autret <autret_m@epita.fr>
1613
1614 * src/reader.c: Include muscle_tab.h.
1615 (parse_union_decl): Update.
1616 (parse_macro_decl): Rename parse_muscle_decl.
1617 Update to use renamed functions and variable.
1618 (read_declarations, copy_action, read_additionnal_code, : Updated
1619 with correct variables and functions names.
1620 (packsymbols, reader): Likewise.
1621
1622 * src/reader.h (muscle_obstack): Extern declaration update.
1623
1624 * src/output.c: Include muscle_tab.h
1625 In all functions using macro_insert, change by using muscle_insert ().
1626 (macro_obstack): Rename muscle_obstack.
1627 Echo modifications in the whole file.
1628 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1629 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1630 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1631
1632 * src/muscle_tab.h: Update double inclusion macros.
1633 (macro_entry_s): Rename muscle_entry_s.
1634 Update prototypes.
1635
1636 * src/muscle_tab.c: Include muscle_tab.h.
1637 Rename macro_tabble to muscle_table.
1638 (mhash1, mhash2, mcmp): Use muscle_entry.
1639 (macro_init): Rename muscle_init. Update.
1640 (macro_insert): Rename muscle_insert. Update.
1641 (macro_find): Rename muscle_find. Update.
1642
1643 * src/main.c: Include muscle_tab.h.
1644 (main): Call muscle_init ().
1645 * src/Makefile.am (bison_SOURCES): Echo modifications.
1646
1647 2001-09-02 Marc Autret <autret_m@epita.fr>
1648
1649 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1650
1651 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1652
1653 2001-09-02 Marc Autret <autret_m@epita.fr>
1654
1655 * src/macrotab.c, src/macrotab.h: Remove.
1656
1657 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1658
1659 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1660 filename.
1661
1662 2001-09-01 Marc Autret <autret_m@epita.fr>
1663
1664 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1665 to an explicit value to activate the feature. We do it here.
1666
1667 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1668
1669 * src/output.c (prepare): Delete the `filename' muscule insertion.
1670 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1671 (parse_union_decl): Likewise.
1672 * src/macrotab.c (macro_init): Initialize filename by infile.
1673
1674 2001-08-31 Marc Autret <autret_m@epita.fr>
1675
1676 * src/bison.simple (YYLSP_NEEDED): New definition.
1677 * src/output.c (prepare): Add macro insertion of `locations_flag'
1678
1679 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1680
1681 * src/output.c (prepare): Delete insertion of previous muscles,
1682 and insert the `prefix' muscles.
1683 * src/macrotab.c (macro_init): Likewise.
1684 (macro_init): Initialization prefix directive by `yy'.
1685 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1686 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1687 yylval, yydebug, yyerror, yynerrs and yyparse.
1688 New directive `#define' to substitute yydebug, ... with option
1689 name_prefix.
1690
1691 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1692
1693 * src/main.c (main): Standardize.
1694 * src/output.c (output_table_data, output_parser): Likewise.
1695 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1696
1697 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1698
1699 * src/reader.c (read_additionnal_code): Rename %%user_code to
1700 %%epilogue.
1701 * src/output.c (output): Rename %%declarations to %%prologue.
1702 * src/bison.simple: Echo modifications.
1703
1704 2001-08-31 Marc Autret <autret_m@epita.fr>
1705
1706 * src/reader.c (readgram): CleanUp.
1707 (output_token_defines): Likewise.
1708 (packsymbols): Likewise.
1709 (reader): Likewise.
1710 * src/output.c (output): CPP-out useless code.
1711
1712 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1713
1714 * src/reader.c (reader): Delete obsolete call to function
1715 output_trailers and output_headers.
1716 * src/output.h: Remove obsolete functions prototypes of output_headers
1717 and output_trailers.
1718
1719 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1720
1721 * src/main.c: Include macrotab.h.
1722 * src/macrotab.h (macro_entry_s): Constify fields.
1723 Adjust functions prototypes.
1724 * src/macrotab.c (macro_insert): Constify key and value.
1725 (macro_find): Constify key.
1726 (macro_insert): Include 'xalloc.h'
1727 (macro_insert): Use XMALLOC.
1728 (macro_find): Constify return value.
1729 * src/output.c (output_table_data): Rename table to table_data.
1730 (output_parser): Constify macro_key, macro_value.
1731
1732 2001-08-30 Marc Autret <autret_m@epita.fr>
1733
1734 * src/reader.c (parse_skel_decl): New.
1735 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1736 * src/lex.h (token_t): New token `tok_skel'.
1737 * src/lex.c (percent_table): Add skeleton option entry.
1738 Standardize.
1739
1740 2001-08-29 Marc Autret <autret_m@epita.fr>
1741
1742 * src/bison.simple: Add %%user_code directive at the end.
1743 * src/reader.c (read_additionnal_code): New.
1744 (reader): Use it.
1745 * src/output.c (output_program): Remove.
1746 (output): Update.
1747
1748 2001-08-28 Marc Autret <autret_m@epita.fr>
1749
1750 * src/output.c (output_actions): Clean up.
1751 (output_gram): CPP-out useless code.
1752 * src/reader.c (reader): Clean up, CPP-out useless code.
1753
1754 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1755
1756 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1757 directive.
1758 * src/bison.simple: Add `%%definitions'.
1759
1760 2001-08-28 Marc Autret <autret_m@epita.fr>
1761
1762 * config/depcomp: New file.
1763
1764 2001-08-27 Paul Eggert <eggert@twinsun.com>
1765
1766 * src/bison.simple (yyparse): Don't take the address of an
1767 item before the start of an array, as that doesn't conform to
1768 the C Standard.
1769
1770 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1771
1772 * src/output.c (output): Remove the initialization of the macro
1773 obstack. It was done too late here.
1774
1775 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1776 completely wrong.
1777 (reader): Initialize the macro obstack here, since we need it to grow
1778 '%define' directives.
1779
1780 * src/reader.h: Declare the macro obstack as extern.
1781
1782 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1783
1784 * src/output.c (output_parser): Fix. Store single '%' characters in
1785 the output obstack instead of throwing them away.
1786
1787 2001-08-27 Akim Demaille <akim@epita.fr>
1788
1789 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1790
1791 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1792
1793 * lib/Makefile.am: Adjust.
1794
1795 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1796
1797 * src/bison.simple: Update and add '%%' directives.
1798
1799 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1800
1801 * src/reader.c (reader): Remove calls to 'output_headers' and
1802 'output_trailers'. Remove some C output.
1803 (readgram): Disable a piece of code that was writing a default
1804 definition for 'YYSTYPE'.
1805 (reader_output_yylsp): Remove.
1806 (packsymbols): Output token defintions to a macro.
1807 (copy_definition): Disable C output.
1808
1809 * src/reader.c (parse_macro_decl): New function used to parse macro
1810 declarations.
1811 (copy_string2): Put the body of copy_string into this new function.
1812 Add a parameter to let the caller choose whether he wants to copy the
1813 string delimiters or not.
1814 (copy_string): Be a simple call to copy_string2 with the last argument
1815 bound to true.
1816 (read_declarations): Add case for macro definition.
1817 (copy_identifier): New.
1818 (parse_macro_decl): Read macro identifiers using copy_identifier
1819 rather than lex.
1820
1821 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1822
1823 * src/output.c (prepare): Add prefixed names.
1824 (output_parser): Output semantic actions.
1825 (output_parser): Fix bug on '%%line' directives.
1826
1827 * src/output.c (output_headers): Remove. The C code printed by this
1828 function should now be in the skeletons.
1829 (output_trailers): Remove.
1830 (output): Disable call to 'reader_output_yylsp'.
1831 (output_rule_data): Do not output tables to the table obstack.
1832
1833 * src/output.c: Remove some C dedicated output.
1834 Improve the use of macro and output obstacks.
1835 (output_defines): Remove.
1836
1837 * src/output.c (output_token_translations): Associate 'translate'
1838 table with a macro. No output to the table obstack.
1839 (output_gram): Same for 'rhs' and 'prhs'.
1840 (output_stos): Same for 'stos'.
1841 (output_rule_data): Same for 'r1' and 'r2'.
1842 (token_actions): Same for 'defact'.
1843 (goto_actions): Same for 'defgoto'.
1844 (output_base): Same for 'pact' and 'pgoto'.
1845 (output_table): Same for 'table'.
1846 (output_check): Same for 'check'.
1847
1848 * src/output.c (output_table_data): New function.
1849 (output_short_table): Remove.
1850 (output_short_or_char_table): Remove.
1851
1852 * src/output.c (output_parser): Replace most of the skeleton copy code
1853 with something new. Skeletons are now processed character by character
1854 rather than line by line, and Bison looks for '%%' macros. This is the
1855 first step in making Bison's output process (a lot) more flexible.
1856 (output_parser): Use the macro table.
1857
1858 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1859
1860 * src/main.c (main): Initialize the macro table.
1861
1862 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1863
1864 * src/lex.c (percent_table): Add tok_define.
1865 * src/lex.h: Add tok_define.
1866
1867 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1868
1869 * src/macrotab.c: New file.
1870 * src/macrotab.h: New file.
1871 * src/Makefile.am: Update.
1872
1873 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1874
1875 * lib/hash.c: New file.
1876 * lib/hash.h: New file.
1877 * lib/Makefile.am: Update.
1878
1879 2001-08-15 Akim Demaille <akim@epita.fr>
1880
1881 Version 1.28c.
1882
1883 2001-08-15 Marc Autret <autret_m@epita.fr>
1884
1885 * src/reader.c (readgram): Indent output macro YYSTYPE.
1886 (packsymbols): Likewise.
1887 (output_token_defines): Likewise.
1888 * src/files.c: Standardize.
1889 (compute_header_macro): New.
1890 (defines_obstack_save): New. Use compute_header_macro.
1891 (output_files): Update. Use defines_obstack_save.
1892
1893 2001-08-15 Akim Demaille <akim@epita.fr>
1894
1895 * doc/bison.texinfo (Table of Symbols): Document
1896 YYSTACK_USE_ALLOCA.
1897
1898 2001-08-15 Akim Demaille <akim@epita.fr>
1899
1900 * missing: Update from CVS Automake.
1901 * config/config.guess, config/config.sub, config/texinfo.tex:
1902 Update from gnu.org.
1903
1904 2001-08-15 Akim Demaille <akim@epita.fr>
1905
1906 * Makefile.maint: Sync with CVS Autoconf.
1907
1908 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1909
1910 * doc/bison.texinfo: Include GNU Free Documentation License from
1911 `fdl.texi'.
1912 * doc/fdl.texi: Add to package.
1913
1914 2001-08-14 Marc Autret <autret_m@epita.fr>
1915
1916 Turn on %{source,header}_extension features.
1917
1918 * src/lex.c (percent_table): Un-CPP out header_extension and
1919 source_extension.
1920 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1921 (compute_exts_from_src): Remove conditions. It restores priorities
1922 between options.
1923
1924 2001-08-14 Marc Autret <autret_m@epita.fr>
1925
1926 * src/files.c (compute_base_names): Add extensions computing when
1927 `--file-prefix' used.
1928 Standardize function calls.
1929
1930 2001-08-13 Marc Autret <autret_m@epita.fr>
1931
1932 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1933 defining it (defined but null disables alloca).
1934
1935 2001-08-13 Marc Autret <autret_m@epita.fr>
1936
1937 * src/bison.simple (_yy_memcpy): CPP reformat.
1938
1939 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1940
1941 * tests/atconfig.in (CPPFLAGS): Fix.
1942
1943 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1944
1945 * doc/bison.texinfo: Include GNU General Public License from
1946 `gpl.texi'.
1947 * doc/gpl.texi: Add to package.
1948
1949 2001-08-10 Marc Autret <autret_m@epita.fr>
1950
1951 * src/print_graph.h: Fix.
1952 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1953
1954 2001-08-10 Akim Demaille <akim@epita.fr>
1955
1956 * src/system.h: Provide default declarations for stpcpy, strndup,
1957 and strnlen.
1958
1959 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1960
1961 * doc/bison.texinfo (Locations): Update @$ stuff.
1962
1963 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1964
1965 * src/bison.simple (YYLLOC_DEFAULT): Update.
1966 (yyparse): Adjust.
1967
1968 2001-08-08 Marc Autret <autret_m@epita.fr>
1969
1970 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1971 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1972 Reported by Fabrice Bauzac.
1973
1974 2001-08-08 Marc Autret <autret_m@epita.fr>
1975
1976 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1977 * src/vcg.c (output_node): Fix.
1978 * src/vcg.h: Cleanup.
1979 * src/print_graph.c: Add comments.
1980 (node_output_size): New global variable. Simplify the formatting of
1981 the VCG graph output.
1982 (print_actions): Unused code is now used. It notifies the final state
1983 and no action states in the VCG graph. It also give the reduce actions.
1984 The `shift and goto' edges are red and the `go to state' edges are
1985 blue.
1986 Get the current node name and node_obstack by argument.
1987 (node_obstack): New variable.
1988 (print_state): Manage node_obstack.
1989 (print_core): Use node_obstack given by argument.
1990 A node is not only computed here but in print_actions also.
1991 (print_graph): CPP out useless code instead of commenting it.
1992
1993 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1994
1995 * tests/atconfig.in (CPPFLAGS): Fix.
1996
1997 2001-08-07 Akim Demaille <akim@epita.fr>
1998
1999 * src/print_graph.c (quote): New.
2000 (print_core): Use it.
2001
2002 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
2003
2004 * src/vcg.c (complain.h): Include it.
2005 Unepitaize `return' invocations.
2006 [NDEBUG] (main): Remove.
2007 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
2008 * src/files.c (open_files): Initialize graph_obstack.
2009 * src/print_graph.c (print_actions): CPP out useless code.
2010 (print_core): Don't output the last `\n' in labels.
2011 Use `quote'.
2012 * src/files.c (output_files): Output the VCG file.
2013 * src/main.c (main): Invoke print_graph ();
2014
2015 2001-08-06 Marc Autret <autret_m@epita.fr>
2016
2017 Automaton VCG graph output.
2018 Using option ``-g'' or long option ``--graph'', you can generate
2019 a gram_filename.vcg file containing a VCG description of the LALR (1)
2020 automaton of your grammar.
2021
2022 * src/main.c: Call to print_graph() function.
2023 * src/getargs.h: Update.
2024 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
2025 (graph_flag): New flag.
2026 (longopts): Update.
2027 (getargs): Add case `g'.
2028 * src/files.c (graph_obstack): New obstack struct.
2029 (open_files): Initialize new obstack.
2030 (output_files): Saves graph_obstack if required.
2031 * src/files.h (graph_obstack): New extern declaration.
2032 * src/Makefile.am: Add new source files.
2033
2034 2001-08-06 Marc Autret <autret_m@epita.fr>
2035
2036 * src/print_graph.c, src/print_graph.h (graph): New.
2037 * src/vcg.h: New file.
2038 * src/vcg.c: New file, VCG graph handling.
2039
2040 2001-08-06 Marc Autret <autret_m@epita.fr>
2041
2042 Add of %source_extension and %header_extension which specify
2043 the source or/and the header output file extension.
2044
2045 * src/files.c (compute_base_names): Remove initialisation of
2046 src_extension and header_extension.
2047 (compute_exts_from_gf): Update.
2048 (compute_exts_from_src): Update.
2049 (output_files): Update.
2050 * src/reader.c (parse_header_extension_decl): New.
2051 (parse_source_extension_decl): New.
2052 (read_declarations): New case statements for the new tokens.
2053 * src/lex.c (percent_table): Add entries for %source_extension
2054 and %header_extension.
2055 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
2056
2057 2001-08-06 Marc Autret <autret_m@epita.fr>
2058
2059 * configure.in: Bump to 1.28c.
2060 * doc/bison.texinfo: Texinfo thingies.
2061
2062 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
2063
2064 * tests/atconfig.in (CPPFLAGS): Add.
2065 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
2066
2067 2001-08-03 Akim Demaille <akim@epita.fr>
2068
2069 Version 1.28b.
2070
2071 2001-08-03 Akim Demaille <akim@epita.fr>
2072
2073 * tests/Makefile.am (check-local): Ship testsuite.
2074 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
2075 Include `string.h'.
2076
2077 2001-08-03 Akim Demaille <akim@epita.fr>
2078
2079 * configure.in: Try using -Wformat when compiling.
2080
2081 2001-08-03 Akim Demaille <akim@epita.fr>
2082
2083 * configure.in: Bump to 1.28b.
2084
2085 2001-08-03 Akim Demaille <akim@epita.fr>
2086
2087 * src/complain.c: Adjust strerror_r portability issues.
2088
2089 2001-08-03 Akim Demaille <akim@epita.fr>
2090
2091 Version 1.28a.
2092
2093 2001-08-03 Akim Demaille <akim@epita.fr>
2094
2095 * src/getargs.c, src/getarg.h (skeleton)): Constify.
2096 * src/lex.c (literalchar): Avoid name clashes on `buf'.
2097 * src/getargs.c: Include complain.h.
2098 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
2099 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
2100
2101 2001-08-03 Akim Demaille <akim@epita.fr>
2102
2103 * src/reader.c (readgram): Display hidden chars in error messages.
2104
2105 2001-08-03 Akim Demaille <akim@epita.fr>
2106
2107 Update to gettext 0.10.39.
2108
2109 2001-08-03 Akim Demaille <akim@epita.fr>
2110
2111 * lib/strspn.c: New.
2112
2113 2001-08-01 Marc Autret <autret_m@epita.fr>
2114
2115 * doc/bison.texinfo: Update.
2116 * doc/bison.1 (mandoc): Update.
2117 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
2118 * src/files.c: Support output files extensions computing.
2119 (src_extension): New static variable.
2120 (header_extension): New static variable.
2121 (tr): New function.
2122 (get_extension_index): New function, gets the index of an extension
2123 filename in a string.
2124 (compute_exts_from_gf): New function, computes extensions from the
2125 grammar file extension.
2126 (compute_exts_from_src): New functions, computes extensions from the
2127 C source file extension, file given by ``-o'' option.
2128 (compute_base_names): Update.
2129 (output_files): Update.
2130
2131 2001-08-01 Robert Anisko <anisko_r@epita.fr>
2132
2133 * doc/bison.texi: Document @$.
2134 (Locations): New section.
2135
2136 2001-07-18 Akim Demaille <akim@epita.fr>
2137
2138 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
2139 * config/prev-version.txt, config/move-if-change: New.
2140 * Makefile.am: Adjust.
2141
2142 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2143
2144 * src/bison.simple (yyparse): Suppress warning `comparaison
2145 between signed and unsigned'.
2146
2147 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2148
2149 * src/getargs.h (raw_flag): Remove.
2150 * src/getargs.c: Die on `-r'/`--raw'.
2151 * src/lex.c (parse_percent_token): Die on `%raw'.
2152 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2153 * tests/calc.at: Suppress test with option `--raw'.
2154
2155 2001-07-14 Akim Demaille <akim@epita.fr>
2156
2157 * config/: New.
2158 * configure.in: Require Autoconf 2.50.
2159 Update to gettext 0.10.38.
2160
2161 2001-03-16 Akim Demaille <akim@epita.fr>
2162
2163 * doc/bison.texinfo: ANSIfy the examples.
2164
2165 2001-03-16 Akim Demaille <akim@epita.fr>
2166
2167 * getargs.c (skeleton): New variable.
2168 (longopts): --skeleton is a new option.
2169 (shortopts, getargs): -S is a new option.
2170 * getargs.h: Declare skeleton.
2171 * output.c (output_parser): Use it.
2172
2173 2001-03-16 Akim Demaille <akim@epita.fr>
2174
2175 * m4/strerror_r.m4: New.
2176 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2177 * lib/error.h, lib/error.c: Update.
2178
2179 2001-03-16 Akim Demaille <akim@epita.fr>
2180
2181 * src/getargs.c (longopts): Clean up.
2182
2183 2001-02-21 Akim Demaille <akim@epita.fr>
2184
2185 * src/reader.c (gensym): `gensym_count' is your own.
2186 Use a static buf to create the symbol name, as token_buffer is no
2187 longer a buffer.
2188
2189 2001-02-08 Akim Demaille <akim@epita.fr>
2190
2191 * src/conflicts.c (conflict_report): Be sure not to append to res
2192 between two calls, which could happen if both first sprintf were
2193 skipped, but not the first cp += strlen.
2194
2195 2001-02-08 Akim Demaille <akim@epita.fr>
2196
2197 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2198 New, from fileutils 4.0.37.
2199 * configure.in: Require Autoconf 2.49c. I took some time before
2200 making this decision. This is the only way out for portability
2201 issues in Bison, it would mean way too much duplicate effort to
2202 import in Bison features implemented in 2.49c since 2.13.
2203 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2204
2205 2001-02-02 Akim Demaille <akim@epita.fr>
2206
2207 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2208 * lib/xalloc.h, lib/xmalloc.c: Update.
2209
2210 2001-01-19 Akim Demaille <akim@epita.fr>
2211
2212 Get rid of the ad hoc handling of token_buffer in the scanner: use
2213 the obstacks.
2214
2215 * src/lex.c (token_obstack): New.
2216 (init_lex): Initialize it. No longer call...
2217 (grow_token_buffer): this. Remove it.
2218 Adjust all the places which used it to use the obstack.
2219
2220 2001-01-19 Akim Demaille <akim@epita.fr>
2221
2222 * src/lex.h: Rename all the tokens:
2223 s/\bENDFILE\b/tok_eof/g;
2224 s/\bIDENTIFIER\b/tok_identifier/g;
2225 etc.
2226 Let them be enums, not #define, to ease debugging.
2227 Adjust all the code.
2228
2229 2001-01-18 Akim Demaille <akim@epita.fr>
2230
2231 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2232 * src/lex.c (maxtoken, grow_token_buffer): Static.
2233
2234 2001-01-18 Akim Demaille <akim@epita.fr>
2235
2236 Since we now use obstacks, more % directives can be enabled.
2237
2238 * src/lex.c (percent_table): Also accept `%yacc',
2239 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2240 `%debug'.
2241 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2242 instead of returning a token.
2243 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2244 * src/reader.c (read_declarations): Adjust.
2245 * src/files.c (open_files): Don't call `compute_base_names', don't
2246 compute `attrsfile' since they depend upon data which might be
2247 *in* the input file now.
2248 (output_files): Do it here.
2249 * src/output.c (output_headers): Document the fact that this patch
2250 introduces a guaranteed SEGV for semantic parsers.
2251 * doc/bison.texinfo: Document them.
2252 * tests/suite.at: Exercise these %options.
2253
2254 2000-12-20 Akim Demaille <akim@epita.fr>
2255
2256 Also handle the output file (--verbose) with obstacks.
2257
2258 * files.c (foutput): Remove.
2259 (output_obstack): New.
2260 Adjust all dependencies.
2261 * src/conflicts.c: Return a string.
2262 * src/system.h (obstack_grow_string): Rename as...
2263 (obstack_sgrow): this. Be ready to work with non literals.
2264 (obstack_fgrow4): New.
2265
2266 2000-12-20 Akim Demaille <akim@epita.fr>
2267
2268 * src/files.c (open_files): Fix the computation of short_base_name
2269 in the case of `-o foo.tab.c'.
2270
2271 2000-12-20 Akim Demaille <akim@epita.fr>
2272
2273 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2274 (copy_dollar): Now that everything uses obstacks, get rid of the
2275 FILE * parameters.
2276
2277 2000-12-20 Akim Demaille <akim@epita.fr>
2278
2279 * src/files.c (open_files): Actually the `.output' file is based
2280 on the short_base_name, not base_name.
2281 * tests/suite.at (Checking output file names): Adjust.
2282
2283 2000-12-20 Akim Demaille <akim@epita.fr>
2284
2285 * src/bison.s1: Remove, we now use directly...
2286 * src/bison.simple: this.
2287 * src/Makefile.am: Use pkgdata instead of data.
2288
2289 2000-12-20 Akim Demaille <akim@epita.fr>
2290
2291 * src/files.c (guard_obstack): New.
2292 (open_files): Initialize it.
2293 (output_files): Dump it...
2294 * src/files.h: Export it.
2295 * src/reader.c (copy_guard): Use it.
2296
2297 2000-12-19 Akim Demaille <akim@epita.fr>
2298
2299 * src/files.c (outfile, defsfile, actfile): Removed as global
2300 vars.
2301 (open_files): Don't compute them.
2302 (output_files): Adjust.
2303 (base_name, short_base_name): Be global.
2304 Adjust dependencies.
2305
2306 2000-12-19 Akim Demaille <akim@epita.fr>
2307
2308 * src/files.c (strsuffix): New.
2309 (stringappend): Be just like strcat but allocate.
2310 (base_names): Eve out from open_files.
2311 Try to simplify the rather hairy computation of base_name and
2312 short_base_name.
2313 (open_files): Use it.
2314 * tests/suite.at (Checking output file names): New test.
2315
2316 2000-12-19 Akim Demaille <akim@epita.fr>
2317
2318 * src/system.h (obstack_grow_literal_string): Rename as...
2319 (obstack_grow_string): this.
2320 * src/output.c (output_parser): Recognize `%% actions' instead of
2321 `$'.
2322 * src/bison.s1: s/$/%% actions/.
2323 * src/bison.hairy: Likewise.
2324
2325 2000-12-19 Akim Demaille <akim@epita.fr>
2326
2327 * src/output.c (output_parser): Compute the `#line' lines when
2328 there are.
2329 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2330 Suggested by Hans Aberg.
2331
2332 2000-12-19 Akim Demaille <akim@epita.fr>
2333
2334 Let the handling of the skeleton files be local to the procedures
2335 that use it.
2336
2337 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2338 longer static.
2339 (fparser, open_extra_files): Remove.
2340 (open_files, output_files): Don't take care of fparser.
2341 * src/files.h: Adjust.
2342 * src/output.c (output_parser): Open and close the file to the
2343 skeleton.
2344 * src/reader.c (read_declarations): When %semantic_parser, open
2345 fguard.
2346
2347 2000-12-19 Akim Demaille <akim@epita.fr>
2348
2349 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2350 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2351
2352 2000-12-19 Akim Demaille <akim@epita.fr>
2353
2354 * src/files.c (open_files): Yipee! We no longer need all the code
2355 looking for `/tmp' since we have no tmp file.
2356
2357 2000-12-19 Akim Demaille <akim@epita.fr>
2358
2359 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2360 New macros.
2361 * src/files.c (open_files): Less dependency on MSDOS etc.
2362
2363 2000-12-14 Akim Demaille <akim@epita.fr>
2364
2365 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2366 Provide a default definition.
2367 Use it when executing the default @ action.
2368 * src/reader.c (reader_output_yylsp): No longer include
2369 `timestamp' and `text' in the default YYLTYPE.
2370
2371 2000-12-12 Akim Demaille <akim@epita.fr>
2372
2373 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2374 (copy_guard): Quote the file names.
2375 Reported by Laurent Mascherpa.
2376
2377 2000-12-12 Akim Demaille <akim@epita.fr>
2378
2379 * src/output.c (output_headers, output_program, output): Be sure
2380 to escape special characters when outputting filenames.
2381 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2382 (output_headers): Don't depend on them, Use ACTSTR.
2383
2384 2000-11-17 Akim Demaille <akim@epita.fr>
2385
2386 * lib/obstack.h: Formatting changes.
2387 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2388 prevents type checking.
2389 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2390 cast the value to (void *): assigning a `foo *' to a `void *'
2391 variable is valid.
2392 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2393 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2394 append characters.
2395
2396 2000-11-17 Akim Demaille <akim@epita.fr>
2397
2398 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2399 as...
2400 (suite.m4, regression.m4, calc.m4): these.
2401 * tests/atgeneral.m4: Update from CVS Autoconf.
2402
2403 2000-11-17 Akim Demaille <akim@epita.fr>
2404
2405 * tests/regression.m4 (%union and --defines): New test,
2406 demonstrating a current bug in the obstack implementation.
2407
2408 2000-11-17 Akim Demaille <akim@epita.fr>
2409
2410 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2411 macros.
2412 Use them to declare the variables which are global or local to
2413 `yyparse'.
2414
2415 2000-11-17 Akim Demaille <akim@epita.fr>
2416
2417 * acconfig.h: Remove, no longer used.
2418
2419 2000-11-07 Akim Demaille <akim@epita.fr>
2420
2421 * src: s/Copyright (C)/Copyright/g.
2422
2423 2000-11-07 Akim Demaille <akim@epita.fr>
2424
2425 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2426 defining.
2427 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2428
2429 2000-11-07 Akim Demaille <akim@epita.fr>
2430
2431 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2432 Merge in a single CPP if/else.
2433
2434 2000-11-07 Akim Demaille <akim@epita.fr>
2435
2436 * src/output.c (output): Remove useless variables.
2437 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2438 argument `data' for consistency with the prototypes.
2439 Qualify it `const'.
2440 (obstack_copy, obstack_copy0): Rename the second argument as
2441 `address' for consistency. Qualify it `const'.
2442 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2443 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2444 `const' their input argument (`data' or `address').
2445 Adjust the corresponding macros to include `const' in casts.
2446
2447 2000-11-03 Akim Demaille <akim@epita.fr>
2448
2449 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2450 s/PFILE1/BISON_HAIRY/.
2451 Adjust dependencies.
2452
2453 2000-11-03 Akim Demaille <akim@epita.fr>
2454
2455 For some reason, this was not applied.
2456
2457 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2458 `unlink': it's no longer used.
2459
2460 2000-11-03 Akim Demaille <akim@epita.fr>
2461
2462 * src/files.c (skeleton_find): New function, eved out of...
2463 (open_files, open_extra_files): here.
2464
2465 2000-11-03 Akim Demaille <akim@epita.fr>
2466
2467 Don't use `atexit'.
2468
2469 * src/files.c (obstack_save): New function.
2470 (done): Rename as...
2471 (output_files): this.
2472 Use `obstack_save'.
2473 * src/main.c (main): Don't use `atexit' to register `done', since
2474 it no longer has to remove tmp files, just call `output_files'
2475 when there are no errors.
2476
2477 2000-11-02 Akim Demaille <akim@epita.fr>
2478
2479 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2480 `unlink': it's no longer used.
2481 * src/files.h: Formatting changes.
2482
2483 2000-11-02 Akim Demaille <akim@epita.fr>
2484
2485 Remove the last uses of mktemp and unlink/delete.
2486
2487 * src/files.c (fdefines, ftable): Removed.
2488 (defines_ostack, table_obstack): New.
2489 Adjust dependencies of the former into uses of the latter.
2490 * src/output.c (output_short_or_char_table, output_short_table):
2491 Convert to using obstacks.
2492 * src/reader.c (copy_comment2): Accept one FILE * and two
2493 obstacks.
2494 (output_token_defines, reader_output_yylsp): Use obstacks.
2495 * src/system.h (obstack_fgrow3): New.
2496
2497 2000-11-01 Akim Demaille <akim@epita.fr>
2498
2499 Change each use of `fattrs' into a use of `attrs_obstack'.
2500
2501 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2502 * src/files.c (fattrs): Remove.
2503 (attrs_obstack): New.
2504 Adjust all dependencies.
2505 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2506
2507 2000-11-01 Akim Demaille <akim@epita.fr>
2508
2509 Introduce obstacks.
2510 Change each use of `faction' into a use of `action_obstack'.
2511
2512 * lib/obstack.h, lib/obstack.c: New files.
2513 * src/files.c (faction): Remove.
2514 (action_obstack): New.
2515 Adjust all dependencies.
2516
2517 2000-10-20 Akim Demaille <akim@epita.fr>
2518
2519 * lib/quote.h (PARAMS): New macro. Use it.
2520
2521 2000-10-16 Akim Demaille <akim@epita.fr>
2522
2523 * src/output.c (output_short_or_char_table): New function.
2524 (output_short_table, output_token_translations): Use it.
2525 (goto_actions): Use output_short_table.
2526
2527 2000-10-16 Akim Demaille <akim@epita.fr>
2528
2529 * src/symtab.c (bucket_new): New function.
2530 (getsym): Use it.
2531
2532 * src/output.c (output_short_table): New argument to display the
2533 comment associated with the table.
2534 Adjust dependencies.
2535 (output_gram): Use it.
2536 (output_rule_data): Nicer output layout for YYTNAME.
2537
2538 2000-10-16 Akim Demaille <akim@epita.fr>
2539
2540 * src/lex.c (read_typename): New function.
2541 (lex): Use it.
2542 * src/reader.c (copy_dollar): Likewise.
2543
2544 2000-10-16 Akim Demaille <akim@epita.fr>
2545
2546 * src/reader.c (copy_comment2): Expect the input stream to be on
2547 the `/' which is suspected to open a comment, instead of being
2548 called after `//' or `/*' was read.
2549 (copy_comment, copy_definition, parse_union_decl, copy_action)
2550 (copy_guard): Adjust.
2551
2552 2000-10-16 Akim Demaille <akim@epita.fr>
2553
2554 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2555 `read_signed_integer'.
2556
2557 2000-10-16 Akim Demaille <akim@epita.fr>
2558
2559 * src/reader.c (copy_dollar): New function.
2560 (copy_guard, copy_action): Use it.
2561
2562 2000-10-16 Akim Demaille <akim@epita.fr>
2563
2564 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2565 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2566 New files, from Fileutils 4.0.27.
2567 * src/main.c (printable_version): Remove.
2568 * src/lex.c, src/reader.c: Use `quote'.
2569
2570 2000-10-04 Akim Demaille <akim@epita.fr>
2571
2572 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2573
2574 2000-10-04 Akim Demaille <akim@epita.fr>
2575
2576 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2577
2578 2000-10-04 Akim Demaille <akim@epita.fr>
2579
2580 When a literal string is used to define two different tokens,
2581 `bison -v' segfaults.
2582 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2583
2584 * tests/regression.m4: New file.
2585 Include the core of the sample provided by Piotr Gackiewicz.
2586 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2587 properly.
2588
2589 2000-10-04 Akim Demaille <akim@epita.fr>
2590
2591 * src/reader.c (parse_expect_decl): Keep `count' within the size
2592 of `buffer'.
2593 From Neil Booth.
2594
2595 2000-10-02 Paul Eggert <eggert@twinsun.com>
2596
2597 * bison.s1 (yyparse): Assign the default value
2598 unconditionally, to avoid a GCC warning and make the parser a
2599 tad smaller.
2600
2601 2000-10-02 Akim Demaille <akim@epita.fr>
2602
2603 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2604 options.
2605
2606 2000-10-02 Akim Demaille <akim@epita.fr>
2607
2608 * src/derives.c, src/print.c, src/reduce.c: To ease the
2609 translation, move some `\n' out of the translated strings.
2610
2611 2000-10-02 Akim Demaille <akim@epita.fr>
2612
2613 The location tracking mechanism is precious for parse error
2614 messages. Nevertheless, it is enabled only when `@n' is used in
2615 the grammar, which is a different issue (you can use it in error
2616 message, but not in the grammar per se). Therefore, there should
2617 be another means to enable it.
2618
2619 * src/getargs.c (getargs): Support `--locations'.
2620 (usage): Report it.
2621 * src/getargs.h (locationsflag): Export it.
2622 * src/lex.c (percent_table): Support `%locations'.
2623 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2624 with `locationsflag'.
2625 * doc/bison.texinfo: Document `--locations' and `%locations'.
2626 Sort the options.
2627 * tests/calc.m4: Test it.
2628
2629 For regularity of the names, replace each
2630 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2631 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2632 In addition replace each `flag' with `_flag'.
2633
2634 2000-10-02 Akim Demaille <akim@epita.fr>
2635
2636 Also test parse error messages, including with YYERROR_VERBOSE.
2637
2638 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2639 associative).
2640 Use it to check the computations.
2641 Use it to check `nonassoc' is honored.
2642 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2643 `--yyerror-verbose'.
2644 (_AT_CHECK_CALC): Adjust to this option.
2645 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2646
2647 2000-10-02 Akim Demaille <akim@epita.fr>
2648
2649 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2650 the latter demonstrates a flaw in the handling of non debugging
2651 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2652 was used in order to simplify:
2653
2654 #if YYDEBUG
2655 if (yydebug)
2656 {
2657 ...
2658 }
2659 #endif
2660
2661 into
2662
2663 if (yydebug)
2664 {
2665 ...
2666 }
2667
2668 unfortunately this leads to a CPP conflict when
2669 `--name-prefix=foo' is used since it produces `#define yydebug
2670 foodebug'.
2671
2672 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2673 (YYDPRINTF): New macro.
2674 Spread its use.
2675 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2676 the bison options.
2677 Also test `--verbose', `--defines' and `--name-prefix'.
2678
2679 2000-10-02 Akim Demaille <akim@epita.fr>
2680
2681 Improve the readability of the produced parsers.
2682
2683 * src/bison.s1: Formatting changes.
2684 Improve the comment related to the `$' mark.
2685 (yydefault): Don't fall through to `yyresume': `goto' there.
2686 * src/output.c (output_parser): When the `$' is met, skip the end
2687 of its line.
2688 New variable, `number_of_dollar_signs', to check there's exactly
2689 one `$' in the parser skeleton.
2690
2691 2000-10-02 Akim Demaille <akim@epita.fr>
2692
2693 * lib/xstrdup.c: New file, from the fileutils.
2694 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2695 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2696 instead of strlen + xmalloc + strcpy.
2697 * src/symtab.c (copys): Remove, use xstrdup instead.
2698
2699 2000-10-02 Akim Demaille <akim@epita.fr>
2700
2701 * src/gram.h (associativity): New enum type which replaces the
2702 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2703 `right_assoc', `left_assoc' and `non_assoc'.
2704 Adjust all dependencies.
2705 * src/reader.c: Formatting changes.
2706 (LTYPESTR): Don't define it, use it as a literal in
2707 `reader_output_yylsp'.
2708 * src/symtab.h (symbol_class): New enum type which replaces the
2709 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2710 `sunknown', `stoken and `snterm'.
2711
2712 2000-10-02 Akim Demaille <akim@epita.fr>
2713
2714 * src/getargs.c (fixed_outfiles): Rename as...
2715 (yaccflag): for consistency and accuracy.
2716 Adjust dependencies.
2717
2718 2000-10-02 Akim Demaille <akim@epita.fr>
2719
2720 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2721 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2722 difficult and introduced a lot of core dump. It turns out that
2723 Bison used an implementation of `xmalloc' based on `calloc', and
2724 at various places it does depend upon the initialization to 0. I
2725 have not tried to isolate the pertinent places, and all the former
2726 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2727 someone should address this issue.
2728
2729 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2730 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2731 files.
2732 Adjust dependencies.
2733 * src/warshall.h: New file.
2734 Propagate.
2735
2736 2000-10-02 Akim Demaille <akim@epita.fr>
2737
2738 Various anti-`extern in *.c' changes.
2739
2740 * src/system.h: Include `assert.h'.
2741
2742 2000-10-02 Akim Demaille <akim@epita.fr>
2743
2744 * src/state.h (nstates, final_state, first_state, first_shift)
2745 (first_reduction): Move their exportation from here...
2746 * src/LR0.h: to here.
2747 Adjust dependencies.
2748 * src/getargs.c (statisticsflag): New variable.
2749 Add support for `--statistics'.
2750 Adjust dependencies.
2751
2752 Remove a lot of now useless `extern' statements in most files.
2753
2754 2000-10-02 Akim Demaille <akim@epita.fr>
2755
2756 * src/LR0.h: New file.
2757 Propagate its use.
2758
2759 2000-10-02 Akim Demaille <akim@epita.fr>
2760
2761 * src/print.h: New file.
2762 Propagate its use.
2763 * src/print.c: Formatting and ordering changes.
2764 (verbose, terse): Replace with...
2765 (print_results): this new function.
2766 Adjust dependencies.
2767
2768 2000-10-02 Akim Demaille <akim@epita.fr>
2769
2770 * src/conflicts.c (conflict_report): New function.
2771 (conflict_log, verbose_conflict_log): Replace with...
2772 (print_conflicts): this function.
2773 Adjust dependencies.
2774 * src/conflicts.h: New file.
2775 Propagate its inclusion.
2776
2777 2000-10-02 Akim Demaille <akim@epita.fr>
2778
2779 * src/nullable.h: New file.
2780 Propagate its inclusion.
2781 * src/nullable.c: Formatting changes.
2782
2783 2000-10-02 Akim Demaille <akim@epita.fr>
2784
2785 * src/reduce.h: New file.
2786 Propagate its inclusion.
2787 * src/reduce.c: Topological sort and other formatting changes.
2788 (bool, TRUE, FALSE): Move their definition to...
2789 * src/system.h: here.
2790
2791 2000-10-02 Akim Demaille <akim@epita.fr>
2792
2793 * src/files.c: Formatting changes.
2794 (tryopen, tryclose, openfiles): Rename as...
2795 (xfopen, xfclose, open_files): this.
2796 (stringappend): static.
2797 * src/files.h: Complete the list of exported symbols.
2798 Propagate its use.
2799
2800 2000-10-02 Akim Demaille <akim@epita.fr>
2801
2802 * src/reader.h: New file.
2803 Propagate its use instead of tedious list of `extern' and
2804 prototypes.
2805 * src/reader.c: Formatting changes, topological sort,
2806 s/register//.
2807
2808 2000-10-02 Akim Demaille <akim@epita.fr>
2809
2810 * src/lex.h: Prototype `lex.c' exported functions.
2811 * src/reader.c: Adjust.
2812 * src/lex.c: Formatting changes.
2813 (safegetc): Rename as...
2814 (xgetc): this.
2815
2816 2000-10-02 Akim Demaille <akim@epita.fr>
2817
2818 * src/lalr.h: New file.
2819 Propagate its inclusion instead of prototypes and `extern'.
2820 * src/lalr.c: Formatting changes, topological sorting etc.
2821
2822 2000-10-02 Akim Demaille <akim@epita.fr>
2823
2824 * src/output.c (token_actions): Introduce a temporary array,
2825 YYDEFACT, that makes it possible for this function to use
2826 output_short_table.
2827
2828 2000-10-02 Akim Demaille <akim@epita.fr>
2829
2830 `user_toknums' is output as a `short[]' in `output.c', while it is
2831 defined as a `int[]' in `reader.c'. For consistency with the
2832 other output tables, `user_toknums' is now defined as a table of
2833 shorts.
2834
2835 * src/reader.c (user_toknums): Be a short table instead of an int
2836 table.
2837 Adjust dependencies.
2838
2839 Factor the short table outputs.
2840
2841 * src/output.c (output_short_table): New function.
2842 * src/output.c (output_gram, output_stos, output_rule_data)
2843 (output_base, output_table, output_check): Use it.
2844
2845 2000-10-02 Akim Demaille <akim@epita.fr>
2846
2847 * src/output.c (output): Topological sort of the functions, in
2848 order to get rid of the `static' prototypes.
2849 No longer use `register'.
2850 * src/output.h: New file.
2851 Propagate its inclusion in files explicitly prototyping functions
2852 from output.c.
2853
2854 2000-09-21 Akim Demaille <akim@epita.fr>
2855
2856 * src/atgeneral.m4: Update from Autoconf.
2857
2858 2000-09-21 Akim Demaille <akim@epita.fr>
2859
2860 * src/closure.h: New file.
2861 * src/closure.c: Formatting changes, topological sort over the
2862 functions, use of closure.h.
2863 (initialize_closure, finalize_closure): Rename as...
2864 (new_closure, free_closure): these. Adjust dependencies.
2865 * src/LR0.c: Formatting changes, topological sort, use of
2866 cloture.h.
2867 (initialize_states): Rename as...
2868 (new_states): this.
2869 * src/Makefile.am (noinst_HEADERS): Adjust.
2870
2871 2000-09-20 Akim Demaille <akim@epita.fr>
2872
2873 * src/acconfig.h: Don't protect config.h against multiple
2874 inclusion.
2875 Don't define PARAMS.
2876 * src/system.h: Define PARAMS.
2877 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2878 purpose of config.h. system.h must not try to fix wrong
2879 definitions in config.h.
2880
2881 2000-09-20 Akim Demaille <akim@epita.fr>
2882
2883 * src/derives.h: New file.
2884 * src/main.c, src/derives.h: Use it.
2885 Formatting changes.
2886 * src/Makefile.am (noinst_HEADERS): Adjust.
2887
2888 2000-09-20 Akim Demaille <akim@epita.fr>
2889
2890 * tests/atgeneral.m4: Update from Autoconf.
2891 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2892 (AT_CHECK_CALC): New macros.
2893 Use these macros to test bison with options `', `--raw',
2894 `--debug', `--yacc', `--yacc --debug'.
2895
2896 2000-09-19 Akim Demaille <akim@epita.fr>
2897
2898 * src/output.c: Formatting changes.
2899 * src/machine.h: Remove, leaving its contents in...
2900 * src/system.h: here.
2901 Include stdio.h.
2902 Adjust all dependencies on stdio.h and machine.h.
2903 * src/getargs.h: New file.
2904 Let all `extern' declarations about getargs.c be replaced with
2905 inclusion of `getargs.h'.
2906 * src/Makefile.am (noinst_HEADERS): Adjust.
2907
2908 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2909 scope.
2910 (yyerror): Returns void, not int.
2911 * doc/bison.texinfo: Formatting changes.
2912
2913 2000-09-19 Akim Demaille <akim@epita.fr>
2914
2915 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2916 portable.
2917
2918 2000-09-18 Akim Demaille <akim@epita.fr>
2919
2920 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2921 * src/Makefile.am (INCLUDES): Don't.
2922 Be ready to fetch headers in lib/.
2923
2924 2000-09-18 Akim Demaille <akim@epita.fr>
2925
2926 * doc/bison.texinfo: Update the copyright.
2927 ANSIfy and GNUify the examples.
2928 Remove the old menu.
2929
2930 2000-09-18 Akim Demaille <akim@epita.fr>
2931
2932 First set of tests: use the `calc' example from the documentation.
2933
2934 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2935 is defined only when YYDEBUG is.
2936 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2937 * src/files.c (tryopen, tryclose): Formatting changes.
2938 Move to the top and be static.
2939 * src/reader.c (read_signed_integer): Likewise.
2940 * tests/calc.m4: New file.
2941 * Makefile.am, suite.m4: Adjust.
2942 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2943
2944 2000-09-18 Akim Demaille <akim@epita.fr>
2945
2946 Add support for an Autotest test suite for Bison.
2947
2948 * m4/m4.m4, m4/atconfig.m4: New files.
2949 * m4/Makefile.am (EXTRA_DIST): Adjust.
2950 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2951 files.
2952 * src/getargs.c: Display a more standard --version message.
2953 * src/reader.c (reader): Formatting changes.
2954 No longer depend upon VERSION_STRING.
2955 * configure.in: No longer use `dnl'.
2956 Set up the test suite and the new directory `tests/.
2957 (VERSION_STRING): Remove.
2958
2959 2000-04-14 Akim Demaille <akim@epita.fr>
2960
2961 * src/reader.c (copy_comment2): New function, same as former
2962 `copy_comment', but outputs into two FILE *.
2963 (copy_comment): Use it.
2964 (parse_union_decl): Use it.
2965 (get_type, parse_start_decl): Use the same `invalid' message.
2966 (parse_start_decl, parse_union_decl): Use the same `multiple'
2967 message.
2968 (parse_union_decl, copy_guard, copy_action): Use the same
2969 `unmatched' message.
2970 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2971
2972 2000-03-31 Akim Demaille <akim@epita.fr>
2973
2974 * src/files.c (tryopen, tryclose): Move to the top.
2975 Be static.
2976
2977 2000-03-31 Akim Demaille <akim@epita.fr>
2978
2979 * src/main.c (main): Don't call `done', exit does it.
2980
2981 2000-03-31 Akim Demaille <akim@epita.fr>
2982
2983 * allocate.c: s/return (foo)/return foo/.
2984 * lalr.c: Likewise.
2985 * LR0.c: Likewise.
2986 * output.c: Likewise.
2987 * reader.c: Likewise.
2988 * symtab.c: Likewise.
2989 * vmsgetargs.c: Likewise.
2990
2991 2000-03-31 Akim Demaille <akim@epita.fr>
2992
2993 Clean up the error reporting functions.
2994
2995 * src/report.c: New file.
2996 * src/report.h: Likewise.
2997 * src/Makefile.am: Adjust.
2998 * m4/error.m4: New file.
2999 * m4/Makefile.am: Adjust.
3000 * configure.in (jm_PREREQ_ERROR): Call it.
3001 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
3002 Remove.
3003 (fatal, fatals): Remove. All callers use complain.c::fatal.
3004 (warn, warni, warns, warnss, warnss): Remove. All callers use
3005 complain.c::complain.
3006 (toomany): Remove, use fatal instead.
3007 * src/files.c (done): No argument, use complain_message_count.
3008 * src/main.c (main): Register `done' to `atexit'.
3009
3010 * src/getargs.c (usage): More `fputs', less `fprintf'.
3011
3012 2000-03-28 Akim Demaille <akim@epita.fr>
3013
3014 * lib/: New directory.
3015 * Makefile.am (SUBDIRS): Adjust.
3016 * configure.in: Adjust.
3017 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
3018 useless.
3019 * src/alloca.c: Moved to lib/.
3020 * src/getopt.c: Likewise.
3021 * src/getopt1.c: Likewise.
3022 * src/getopt.h: Likewise.
3023 * src/ansi2knr.c: Likewise.
3024 * src/ansi2knr.1: Likewise.
3025 * src/Makefile.am: Adjust.
3026 * lib/Makefile.am: New file.
3027
3028 2000-03-28 Akim Demaille <akim@epita.fr>
3029
3030 * src/getargs.c (usage): Refresh the help message.
3031
3032 2000-03-17 Akim Demaille <akim@epita.fr>
3033
3034 * src/getopt1.c: Updated from textutils 2.0e
3035 * src/getopt.c: Likewise.
3036 * src/getopt.h: Likewise.
3037
3038 2000-03-17 Akim Demaille <akim@epita.fr>
3039
3040 * src/Makefile.am (bison.simple): Fix the awk program: quote only
3041 the file name, not the whole `#line LINE FILE'.
3042
3043 2000-03-17 Akim Demaille <akim@epita.fr>
3044
3045 On syntax errors, report the token on which we choked.
3046
3047 * src/bison.s1 (yyparse): In the label yyerrlab, when
3048 YYERROR_VERBOSE, add yychar in msg.
3049
3050 2000-03-17 Akim Demaille <akim@epita.fr>
3051
3052 * src/reader.c (copy_at): New function.
3053 (copy_guard): Use it.
3054 (copy_action): Use it.
3055
3056 2000-03-17 Akim Demaille <akim@epita.fr>
3057
3058 Be kind to translators, save some useless translations.
3059
3060 * src/main.c (banner): New function.
3061 (fatal_banner): Use it.
3062 (warn_banner): Use it.
3063
3064 2000-03-17 Akim Demaille <akim@epita.fr>
3065
3066 * src/reader.c (copy_definition): Use copy_string and
3067 copy_comment. Removed now unused `match', `ended',
3068 `cplus_comment'.
3069 (copy_comment, copy_string): Moved, to be visible from
3070 copy_definition.
3071
3072 2000-03-17 Akim Demaille <akim@epita.fr>
3073
3074 * src/reader.c (copy_string): Declare `static inline'. No
3075 problems with inline, since it is checked by configure.
3076 (copy_comment): Likewise.
3077
3078 2000-03-17 Akim Demaille <akim@epita.fr>
3079
3080 * src/reader.c (packsymbols): Formatting changes.
3081
3082 2000-03-17 Akim Demaille <akim@epita.fr>
3083
3084 * src/reader.c (copy_comment): New function, factored out from:
3085 (copy_action): Use it. Removed now unused `match', `ended',
3086 `cplus_comment'.
3087 (copy_guard): Likewise.
3088
3089 2000-03-17 Akim Demaille <akim@epita.fr>
3090
3091 * src/reader.c (copy_string): New function, factored out from:
3092 (copy_action): Use it.
3093 (copy_guard): Likewise.
3094
3095 2000-03-17 Akim Demaille <akim@epita.fr>
3096
3097 Change the handling of @s so that they behave exactly like $s.
3098 There is now a pseudo variable @$ (readble and writable), location
3099 of the lhs of the rule (by default ranging from the location of
3100 the first symbol of the rhs, to the location of the last symbol,
3101 or, if the rhs is empty, YYLLOC).
3102
3103 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
3104 yyval.
3105 (yyparse): When providing a default semantic action, provide a
3106 default location action.
3107 (after the $): No longer change `*YYLSP', just stack YYLOC the
3108 same way you stack YYVAL.
3109 * src/reader.c (read_declarations): Use warns.
3110 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
3111 (copy_action, case '@'): Likewise.
3112 Use a standard error message, to save useless work from
3113 translators.
3114
3115 2000-03-17 Akim Demaille <akim@epita.fr>
3116
3117 * src/bison.s1: Formatting and cosmetics changes.
3118 * src/reader.c: Likewise.
3119 Update the Copyright notice.
3120
3121 2000-03-17 Akim Demaille <akim@epita.fr>
3122
3123 * src/bison.s1 (#line): All set to `#line' only, since the
3124 Makefile now handles them.
3125
3126 2000-03-16 Akim Demaille <akim@epita.fr>
3127
3128 * src/output.c (output_rule_data): Output the documentation of
3129 some of the tables.
3130 (Copyright notice): Update.
3131 Formatting changes.
3132
3133 2000-03-16 Akim Demaille <akim@epita.fr>
3134
3135 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
3136 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
3137 One `#if YYDEBUG' remains, since it uses variables which are
3138 defined only if `YYDEBUG != 0'.
3139
3140 2000-03-16 Akim Demaille <akim@epita.fr>
3141
3142 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3143 and related variables so that the similarities are highlighted.
3144
3145 2000-03-16 Akim Demaille <akim@epita.fr>
3146
3147 * src/bison.s1: Properly indent CPP directives.
3148
3149 2000-03-16 Akim Demaille <akim@epita.fr>
3150
3151 * src/bison.s1: Properly indent the `alloca' CPP section.
3152
3153 2000-03-16 Akim Demaille <akim@epita.fr>
3154
3155 Do not hard code values of directories in `configure.in'.
3156 Update the `configure' tool chain.
3157
3158 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3159 src/makefile.am.
3160 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3161 (AC_OUTPUT): Add m4/Makefile.
3162 Bump to bison 1.28a, 1.29 has never been released.
3163 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3164 handled via src/Makefile.am.
3165 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3166 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3167 autoheader.
3168 * Makefile.am (SUBDIRS): Add m4.
3169 (ACLOCAL_AM_FLAGS): New variable.
3170 (AUTOMAKE_OPTIONS): Add check-news.
3171 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3172 the proper line number and file name.
3173 (DEFS): Propagate the location of bison library files and of the
3174 locale files.
3175 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3176 builddir.
3177 * acinclude.m4: Remove, replaced by the directory m4.
3178 * m4/Makefile.am (EXTRA_DIST): New variable.
3179 * m4/gettext.m4: New file, from the fileutils.
3180 * m4/lcmessage.m4: Likewise
3181 * m4/progtest.m4: Likewise.
3182 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3183
3184 2000-03-10 Akim Demaille <akim@epita.fr>
3185
3186 * src/closure.c:
3187 Formatting changes of various comments.
3188 Respect the GNU coding standards at various places.
3189 Don't use `_()' when no translation is needed.
3190
3191 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3192
3193 * src/files.c:
3194 OS/2 honors TMPDIR environment variable.
3195
3196 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3197
3198 * doc/bison.texinfo: Tweaked spelling and grammar.
3199 Updated ISBN.
3200 Removed reference to price of printed copy.
3201 Mention BISON_SIMPLE and BISON_HAIRY.
3202
3203 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3204
3205 * configure.in, NEWS:
3206 Bison 1.29 released.
3207
3208 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3209
3210 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3211 Added reference card.
3212
3213 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3214
3215 * po/ru.po: Added Russian translation.
3216
3217 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3218
3219 * configure.in: Added Russian translation.
3220
3221 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3222
3223 * configure.in, NEWS, README:
3224 Released version 1.28.
3225
3226 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3227
3228 * src/system.h:
3229 Squashed redefinition warning on some systems.
3230
3231 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3232 Have configure build version string instead of relying on ANSI string
3233 concatentation.
3234
3235 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3236
3237 * po/POTFILES.in: Got rid of version.c.
3238
3239 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3240
3241 * acconfig.h, configure.in:
3242 Have configure build version string instead of relying on ANSI string
3243 concatentation.
3244
3245 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3246
3247 * doc/bison.1:
3248 Dropped mention of `+' for long-named options.
3249
3250 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3251
3252 * src/files.c: Added <unistd.h> for unlink().
3253
3254 * src/Makefile.am, src/system.h:
3255 I18n fixes.
3256
3257 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3258
3259 * README: Added a FAQ list.
3260
3261 * configure.in, acconfig.h:
3262 I18n fixes.
3263
3264 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3265
3266 * doc/FAQ, doc/Makefile.am:
3267 Added a FAQ list.
3268
3269 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3270
3271 * src/alloc.h, src/symtab.h, src/version.c:
3272 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3273
3274 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3275
3276 * src/.cvsignore, src/Makefile.am:
3277 Reorganized: sources in `src', documentation in `doc'.
3278
3279 * src/lex.c (literalchar):
3280 fixed the code for escaping double quotes (thanks
3281 Jonathan Czisny.)
3282
3283 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3284
3285 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3286 Adjusted paths to reflect directory reorganization.
3287
3288 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3289
3290 * doc/.cvsignore, doc/Makefile.am:
3291 Reorganized: sources in `src', documentation in `doc'.
3292
3293 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3294
3295 * configure.in:
3296 Updated AC_INIT file to reflect directory reorganization.
3297
3298 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3299 Reorganized: sources in `src', documentation in `doc'.
3300
3301 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3302
3303 * src/allocate.c:
3304 Don't declare calloc() and realloc() if not necessary.
3305
3306 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3307
3308 * configure.in, acconfig.h, acinclude.m4:
3309 Don't declare calloc() and realloc() if not necessary.
3310
3311 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3312
3313 * po/.cvsignore: Added i18n support.
3314
3315 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3316
3317 * acconfig.h, configure.in, Makefile.am:
3318 Added i18n support.
3319
3320 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3321
3322 * src/bison.s1: Fixed #line numbers.
3323
3324 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3325
3326 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3327 Added PO files from Translation Project.
3328
3329 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3330
3331 * Makefile.am:
3332 Added support for non-ANSI compilers (ansi2knr).
3333
3334 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3335
3336 * configure.in: Bumped version number to 1.27.
3337
3338 * Makefile.am:
3339 Added `bison.simple' to list of files removed by `make distclean'.
3340
3341 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3342
3343 * src/files.c, src/files.h:
3344 Defined locations of parser files in config.h instead of Makefile.
3345
3346 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3347
3348 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3349 Defined locations of parser files in config.h instead of Makefile.
3350
3351 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3352
3353 * Makefile.am:
3354 Removed inappropriate use of $< macro.
3355
3356 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3357
3358 * po/Makefile.in.in, po/POTFILES.in:
3359 Add `po' directory skeleton.
3360
3361 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3362
3363 * README: Document help-bison list.
3364
3365 * configure.in: Add check for mkstemp().
3366
3367 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3368
3369 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3370 Hush a few compiler warnings.
3371
3372 * src/files.c:
3373 Add tryclose(), which verifies that fclose was successful.
3374 Hush a couple of compiler warnings.
3375
3376 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3377
3378 * Makefile.am, OChangeLog:
3379 ChangeLog is now automatically generated. Include the old version as
3380 OChangeLog.
3381
3382 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3383
3384 * src/gram.h, src/lalr.c, src/lex.c, src/lex.h, src/machine.h, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/state.h, src/symtab.c, src/symtab.h, src/types.h, src/vmsgetargs.c, src/warshall.c, src/allocate.c, src/alloc.h, src/bison.s1, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/files.h, src/getargs.c, src/gram.c, src/LR0.c:
3385 Update FSF address.
3386
3387 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3388
3389 * doc/bison.texinfo: Fix formatting glitch.
3390
3391 * doc/bison.texinfo: Update FSF address.
3392
3393 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3394
3395 * acconfig.h: Update FSF address.
3396
3397 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3398
3399 * src/system.h:
3400 Don't define PACKAGE here, since config.h defines it.
3401
3402 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3403
3404 * src/reader.c: Update copyright date.
3405
3406 * src/main.c:
3407 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3408 favor of output directly to stderr (avoids buffer overruns).
3409
3410 * src/reader.c: Some checks for premature EOF.
3411
3412 * src/allocate.c, src/alloc.h, src/closure.c, src/conflicts.c, src/derives.c, src/getargs.c, src/gram.c, src/lalr.c, src/lex.c, src/LR0.c, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reduce.c, src/symtab.c, src/symtab.h, src/warshall.c:
3413 Use prototypes if the compiler understands them.
3414
3415 * src/files.c: Honor TMPDIR on Unix hosts.
3416 Use prototypes if the compiler understands them.
3417
3418 * src/reader.c:
3419 Fix a couple of buffer overrun bugs.
3420 Use prototypes if the compiler understands them.
3421
3422 * src/system.h: Include unistd.h and ctype.h.
3423 Use #ifdef instead of #if for NLS symbols.
3424
3425 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3426
3427 * doc/bison.texinfo:
3428 Delete comment "consider using @set for edition number, etc..." since
3429 we now are doing so.
3430
3431 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3432
3433 * configure.in:
3434 Use prototypes if the compiler understands them.
3435
3436 * NEWS: Document 1.26 highlights.
3437
3438 * Makefile.am: Require Automake 1.3 or later.
3439
3440 * acconfig.h:
3441 Use prototypes if the compiler understands them.
3442
3443 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3444
3445 * src/version.c:
3446 Use VERSION symbol from automake for version number.
3447
3448 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3449
3450 * acconfig.h, configure.in, version.cin:
3451 Use VERSION symbol from automake for version number.
3452
3453 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3454
3455 * Makefile.am:
3456 Distribute original version of simple parser (bison.s1), not built
3457 version (bison.simple).
3458
3459 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3460
3461 * doc/bison.texinfo: Add info dir entry.
3462
3463 * doc/bison.texinfo:
3464 Let automake put version number into documentation.
3465
3466 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3467
3468 * src/bison.cld, src/build.com, src/vmshlp.mar:
3469 Add non-RCS files from /gd/gnu/bison.
3470
3471 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3472
3473 * doc/bison.1:
3474 Document the BISON_HAIRY and BISON_SIMPLE variables.
3475
3476 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3477
3478 * src/version.c: Build version.c automatically.
3479
3480 * src/reader.c:
3481 Fix token numbering (used to start at 258, not 257).
3482
3483 * src/system.h: Include config.h.
3484
3485 * src/getargs.c: Update bug report address.
3486
3487 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3488 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3489
3490 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3491
3492 * Makefile.am:
3493 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3494
3495 * configure.in, version.cin:
3496 Build version.c automatically.
3497
3498 * AUTHORS: Add AUTHORS file.
3499
3500 * README: Update bug report address.
3501
3502 * bison.simple:
3503 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3504
3505 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3506 Add automake stuff.
3507
3508 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3509
3510 * doc/bison.texinfo: Clean up some formatting.
3511
3512 1998-05-05 Richard Stallman <rms@gnu.org>
3513
3514 * doc/bison.texinfo:
3515 Explain better why to make a pure parser.
3516
3517 1998-01-05 Richard Stallman <rms@gnu.org>
3518
3519 * src/files.c (openfiles):
3520 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3521 find a temporary directory, if possible. Do not unlink files while
3522 they are open.
3523
3524 1997-08-25 Richard Stallman <rms@gnu.org>
3525
3526 * src/reader.c (stack_offset;):
3527 Change some warni to warns.
3528
3529 * src/lex.c (literalchar): Use warns, not warni.
3530
3531 1997-06-28 Richard Stallman <rms@gnu.org>
3532
3533 * src/bison.s1: Add a Bison version comment.
3534
3535 * src/main.c (fatal, warn, berror):
3536 Use program_name.
3537
3538 1997-06-28 Richard Stallman <rms@gnu.org>
3539
3540 * Makefile.in (bison_version): New variable.
3541 (dist): Use that variable.
3542 (bison.s1): Substitute the Bison version into bison.simple.
3543
3544 * bison.simple: Add a Bison version comment.
3545
3546 1997-06-18 Richard Stallman <rms@gnu.org>
3547
3548 * src/main.c (fatal, warn, berror):
3549 Make error messages standard.
3550 (toomany): Improve error message text.
3551
3552 * src/LR0.c, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/lalr.c, src/lex.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/symtab.c:
3553 new.h renamed to alloc.h.
3554
3555 1997-06-18 Richard Stallman <rms@gnu.org>
3556
3557 * Makefile.in: new.h renamed to alloc.h.
3558
3559 1997-05-24 Richard Stallman <rms@gnu.org>
3560
3561 * src/lex.c (literalchar):
3562 Fix the code for escaping \, " and '.
3563
3564 (lex): Avoid trouble when there are many chars
3565 to discard in a char literal with just several chars in it.
3566
3567 1997-05-17 Richard Stallman <rms@gnu.org>
3568
3569 * src/bison.s1:
3570 Use malloc, if using alloca is troublesome.
3571 (YYSTACK_USE_ALLOCA): New flag macro.
3572 Define it for some systems and compilers.
3573 (YYSTACK_ALLOC): New macro.
3574 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3575 If it was malloc'd, free it.
3576
3577 1997-05-17 Richard Stallman <rms@gnu.org>
3578
3579 * bison.simple:
3580 Use malloc, if using alloca is troublesome.
3581 (YYSTACK_USE_ALLOCA): New flag macro.
3582 Define it for some systems and compilers.
3583 (YYSTACK_ALLOC): New macro.
3584 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3585 If it was malloc'd, free it.
3586
3587 1997-04-23 Richard Stallman <rms@gnu.org>
3588
3589 * src/bison.s1:
3590 (alloca) [__hpux]: Always define as __builtin_alloca.
3591
3592 1997-04-23 Richard Stallman <rms@gnu.org>
3593
3594 * bison.simple:
3595 (alloca) [__hpux]: Always define as __builtin_alloca.
3596
3597 1997-04-22 Richard Stallman <rms@gnu.org>
3598
3599 * src/bison.s1:
3600 [__hpux]: Include alloca.h (right for HPUX 10)
3601 instead of declaring alloca (right for HPUX 9).
3602
3603 * src/bison.s1 (__yy_memcpy):
3604 Declare arg `count' as unsigned int.
3605 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3606
3607 1997-04-22 Richard Stallman <rms@gnu.org>
3608
3609 * bison.simple:
3610 [__hpux]: Include alloca.h (right for HPUX 10)
3611 instead of declaring alloca (right for HPUX 9).
3612
3613 * bison.simple (__yy_memcpy):
3614 Declare arg `count' as unsigned int.
3615 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3616
3617 1997-01-03 Richard Stallman <rms@gnu.org>
3618
3619 * src/allocate.c: [__STDC__ or _MSC_VER]:
3620 Declare calloc and realloc to return void *.
3621
3622 1997-01-02 Richard Stallman <rms@gnu.org>
3623
3624 * src/system.h:
3625 [_MSC_VER]: Include stdlib.h and process.h.
3626 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3627
3628 * src/main.c (main): Return FAILURE as a value.
3629 (printable_version): Declare arg as int, not char.
3630
3631 1997-01-02 Richard Stallman <rms@gnu.org>
3632
3633 * Makefile.in (dist):
3634 Explicitly check for symlinks, and copy them.
3635
3636 1996-12-19 Richard Stallman <rms@gnu.org>
3637
3638 * src/files.c:
3639 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3640
3641 1996-12-18 Paul Eggert <eggert@gnu.org>
3642
3643 * src/bison.s1 (yyparse):
3644 If __GNUC__ and YYPARSE_PARAM are both defined,
3645 declare yyparse to have a void * argument.
3646
3647 1996-12-18 Paul Eggert <eggert@gnu.org>
3648
3649 * bison.simple (yyparse):
3650 If __GNUC__ and YYPARSE_PARAM are both defined,
3651 declare yyparse to have a void * argument.
3652
3653 1996-12-17 Richard Stallman <rms@gnu.org>
3654
3655 * src/reduce.c (nbits): Add some casts.
3656
3657 1996-08-12 Richard Stallman <rms@gnu.org>
3658
3659 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3660
3661 1996-08-12 Richard Stallman <rms@gnu.org>
3662
3663 * bison.simple: Test _MSDOS as well as _MSDOS_.
3664
3665 1996-07-31 Richard Stallman <rms@gnu.org>
3666
3667 * src/bison.s1:
3668 [__sun && __i386]: Include alloca.h.
3669
3670 1996-07-31 Richard Stallman <rms@gnu.org>
3671
3672 * bison.simple:
3673 [__sun && __i386]: Include alloca.h.
3674
3675 1996-07-30 Richard Stallman <rms@gnu.org>
3676
3677 * src/bison.s1: Comment change.
3678
3679 * src/bison.s1: Test _MSDOS_, not MSDOS.
3680
3681 1996-07-30 Richard Stallman <rms@gnu.org>
3682
3683 * bison.simple: Comment change.
3684
3685 * bison.simple: Test _MSDOS_, not MSDOS.
3686
3687 1996-06-01 Richard Stallman <rms@gnu.org>
3688
3689 * src/reduce.c, src/reader.c, src/print.c, src/output.c, src/nullable.c, src/lex.c, src/lalr.c, src/getargs.c, src/derives.c, src/conflicts.c, src/closure.c, src/allocate.c:
3690 Insert `_' macro around many string constants.
3691
3692 * src/main.c:
3693 Insert `_' macro around many string constants.
3694
3695 (main): Call setlocale, bindtextdomain and textdomain.
3696
3697 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3698 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3699 [ENABLE_NLS]: Include libintl.h.
3700 [ENABLE_NLS] (gettext): Define.
3701 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3702 (N_, PACKAGE, LOCALEDIR): New macros.
3703
3704 1996-06-01 Richard Stallman <rms@gnu.org>
3705
3706 * POTFILES.in: New file.
3707
3708 * Makefile.in (allocate.o):
3709 Define target explicitly.
3710
3711 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3712 (LDFLAGS): Set to @LDFLAGS@.
3713 (configure): Run autoconf only if preceding `cd' succeeds.
3714 (bison.s1): Redirect output to temporary file then move the
3715 temporary to the target, rather than redirecting directly to bison.s1.
3716 (clean): Remove config.status and config.log.
3717 (distclean): Don't remove config.status here.
3718
3719 1996-05-12 Richard Stallman <rms@gnu.org>
3720
3721 * src/bison.s1:
3722 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3723
3724 1996-05-12 Richard Stallman <rms@gnu.org>
3725
3726 * bison.simple:
3727 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3728
3729 1996-05-11 Richard Stallman <rms@gnu.org>
3730
3731 * src/bison.s1 (__yy_memcpy):
3732 Really reorder the args, as was supposedly done on Feb 14 1995.
3733 (yyparse): Calls changed accordingly.
3734
3735 1996-05-11 Richard Stallman <rms@gnu.org>
3736
3737 * Makefile.in (dist): Don't use $(srcdir).
3738
3739 * bison.simple (__yy_memcpy):
3740 Really reorder the args, as was supposedly done on Feb 14 1995.
3741 (yyparse): Calls changed accordingly.
3742
3743 1996-01-27 Richard Stallman <rms@gnu.org>
3744
3745 * src/output.c (output_rule_data):
3746 Test YYERROR_VERBOSE in the conditional
3747 around the definition of ttyname.
3748
3749 1995-12-29 Richard Stallman <rms@gnu.org>
3750
3751 * src/bison.s1:
3752 Fix line numbers in #line commands.
3753
3754 1995-12-29 Richard Stallman <rms@gnu.org>
3755
3756 * bison.simple:
3757 Fix line numbers in #line commands.
3758
3759 1995-12-27 Richard Stallman <rms@gnu.org>
3760
3761 * src/bison.s1 (YYPARSE_PARAM_DECL):
3762 In C++, make it always null.
3763 (YYPARSE_PARAM_ARG): New macro.
3764 (yyparse): Use YYPARSE_PARAM_ARG.
3765
3766 1995-12-27 Richard Stallman <rms@gnu.org>
3767
3768 * bison.simple (YYPARSE_PARAM_DECL):
3769 In C++, make it always null.
3770 (YYPARSE_PARAM_ARG): New macro.
3771 (yyparse): Use YYPARSE_PARAM_ARG.
3772
3773 1995-11-29 Richard Stallman <rms@gnu.org>
3774
3775 * doc/bison.texinfo:
3776 Describe literal string tokens, %raw, %no_lines, %token_table.
3777
3778 1995-11-29 Daniel Hagerty <hag@gnu.org>
3779
3780 * doc/bison.texinfo: Fixed update date
3781
3782 1995-10-16 Richard Stallman <rms@gnu.org>
3783
3784 * src/version.c: Version 1.25.
3785
3786 1995-10-16 Richard Stallman <rms@gnu.org>
3787
3788 * NEWS: *** empty log message ***
3789
3790 1995-10-16 Richard Stallman <rms@gnu.org>
3791
3792 * doc/bison.1, doc/bison.rnh:
3793 Add new options.
3794
3795 1995-10-15 Richard Stallman <rms@gnu.org>
3796
3797 * src/vmsgetargs.c, src/getargs.c:
3798 Added -n, -k, and -raw switches.
3799 (noparserflag, toknumflag, rawtoknumflag): New variables.
3800
3801 * src/symtab.h (SALIAS):
3802 New #define for adding aliases to %token.
3803 (struct bucket): Added `alias' field.
3804
3805 * src/reduce.c (reduce_grammar):
3806 Revise error message.
3807 (print_notices): Remove final `.' from error message.
3808
3809 * src/reader.c (reader_output_yylsp):
3810 New function.
3811 (readgram): Use `#if 0' around code that accepted %command
3812 inside grammar rules: The documentation doesn't allow it,
3813 and it will fail since the %command processors scan for the next %.
3814 (parse_token_decl): Extended the %token
3815 declaration to allow a multi-character symbol as an alias.
3816 (parse_thong_decl): New function.
3817 (read_declarations): Added %thong declarations.
3818 (read_declarations): Handle NOOP to deal with allowing
3819 % declarations as another means to specify the flags.
3820 (readgram): Allow %prec prior to semantics embedded in a rule.
3821 (skip_to_char, read_declarations, copy_definition)
3822 (parse_token_decl, parse_start_decl, parse_type_decl)
3823 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3824 (get_type_name, copy_guard, copy_action, readgram)
3825 (get_type, packsymbols): Revised most error messages.
3826 Changed `fatal' to `warnxxx' to avoid aborting for error.
3827 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3828 (read_declarations): Improve the error message for
3829 an invalid character. Do not abort.
3830 (read_declarations, copy_guard, copy_action): Use
3831 printable_version to avoid unprintable characters in printed output.
3832 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3833 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3834 Allow the type of a non-terminal can be given
3835 more than once, as long as all specifications give the same type.
3836
3837 * src/output.c:
3838 (output_headers, output_trailers, output, output_gram)
3839 (output_rule_data): Implement noparserflag variable.
3840 Implement toknumflag variable.
3841 (output): Call reader_output_yylsp to output LTYPESTR.
3842
3843 * src/main.c (main):
3844 If reader sees an error, don't process the grammar.
3845 (fatals): Updated to not use VARARGS1.
3846 (printable_version, int_to_string, warn, warni, warns, warnss)
3847 (warnsss): New error reporting functions. Avoid abort for error.
3848
3849 * src/lex.h:
3850 Added THONG and NOOP for alias processing.
3851 Added SETOPT for the new code that allows setting options with %flags.
3852
3853 * src/lex.c:
3854 Include getopt.h. Add some extern decls.
3855 (safegetc): New function to deal with EOF gracefully.
3856 (literalchar); new function to deal with reading \ escapes.
3857 (lex): Use literalchar.
3858 (lex): Implemented "..." tokens.
3859 (literalchar, lex, parse_percent_token): Made tokenbuffer
3860 always contain the token. This includes growing the token
3861 buffer while reading an integer.
3862 (parse_percent_token): Replaced if-else statement with percent_table.
3863 (parse_percent_token): Added % declarations as another
3864 way to specify the flags -n, -l, and -r. Also added hooks for
3865 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3866 major changes to files.c.
3867 (lex) Retain in the incoming stream a character following
3868 an incorrect '/'.
3869 (skip_white_space, lex): Revised most error messages
3870 and changed fatal to warn to avoid aborting.
3871 (percent_table): Added %thong declarations.
3872
3873 * src/gram.h: Comment changes.
3874
3875 * src/files.c (openfiles, open_extra_files, done):
3876 Add faction flag
3877 and actfile file. Handle noparserflag. Both for -n switch.
3878
3879 * src/conflicts.c (resolve_sr_conflict):
3880 Remove use of alloca.
3881
3882 1995-06-01 Jim Meyering <meyering@gnu.org>
3883
3884 * doc/bison.texinfo: *** empty log message ***
3885
3886 1995-05-06 Richard Stallman <rms@gnu.org>
3887
3888 * src/bison.s1: Comment change.
3889
3890 1995-05-06 Richard Stallman <rms@gnu.org>
3891
3892 * bison.simple: Comment change.
3893
3894 1995-05-03 Richard Stallman <rms@gnu.org>
3895
3896 * src/version.c: Version now 1.24.
3897
3898 * src/bison.s1: Change distribution terms.
3899
3900 * src/version.c: Version now 1.23.
3901
3902 1995-05-03 Richard Stallman <rms@gnu.org>
3903
3904 * doc/bison.texinfo:
3905 Rewrite "Conditions for Using Bison".
3906 Update version to 1.24.
3907
3908 1995-05-03 Richard Stallman <rms@gnu.org>
3909
3910 * bison.simple: Change distribution terms.
3911
3912 1995-02-23 Richard Stallman <rms@gnu.org>
3913
3914 * src/files.c: Test __VMS_POSIX as well as VMS.
3915
3916 1995-02-14 Jim Meyering <meyering@gnu.org>
3917
3918 * src/bison.s1 (__yy_memcpy):
3919 Renamed from __yy_bcopy to avoid
3920 confusion. Reverse FROM and TO arguments to be consistent with
3921 those of memcpy.
3922
3923 1995-02-14 Jim Meyering <meyering@gnu.org>
3924
3925 * bison.simple (__yy_memcpy):
3926 Renamed from __yy_bcopy to avoid
3927 confusion. Reverse FROM and TO arguments to be consistent with
3928 those of memcpy.
3929
3930 1994-11-10 David J. MacKenzie <djm@gnu.org>
3931
3932 * NEWS: reformat
3933
3934 * NEWS: New file.
3935
3936 * Makefile.in (DISTFILES): Include NEWS.
3937
3938 * Makefile.in (DISTFILES):
3939 Include install-sh, not install.sh.
3940
3941 * configure.in: Update to Autoconf v2 macro names.
3942
3943 1994-10-05 David J. MacKenzie <djm@gnu.org>
3944
3945 * Makefile.in: fix typo
3946
3947 * Makefile.in (prefix, exec_prefix):
3948 Let configure set them.
3949
3950 1994-09-28 David J. MacKenzie <djm@gnu.org>
3951
3952 * Makefile.in: Set datadir to $(prefix)/share.
3953
3954 1994-09-15 Richard Stallman <rms@gnu.org>
3955
3956 * src/bison.s1:
3957 Update copyright notice and GPL version.
3958
3959 1994-09-15 Richard Stallman <rms@gnu.org>
3960
3961 * bison.simple:
3962 Update copyright notice and GPL version.
3963
3964 1994-07-12 Richard Stallman <rms@gnu.org>
3965
3966 * src/reduce.c, src/reader.c:
3967 entered into RCS
3968
3969 1994-05-05 David J. MacKenzie <djm@gnu.org>
3970
3971 * Makefile.in: entered into RCS
3972
3973 1994-03-26 Richard Stallman <rms@gnu.org>
3974
3975 * src/bison.s1: entered into RCS
3976
3977 1994-03-26 Richard Stallman <rms@gnu.org>
3978
3979 * bison.simple: entered into RCS
3980
3981 1994-03-25 Richard Stallman <rms@gnu.org>
3982
3983 * src/main.c: entered into RCS
3984
3985 1994-03-24 Richard Stallman <rms@gnu.org>
3986
3987 * src/conflicts.c: entered into RCS
3988
3989 1994-01-02 Richard Stallman <rms@gnu.org>
3990
3991 * Makefile.in: *** empty log message ***
3992
3993 1993-11-21 Richard Stallman <rms@gnu.org>
3994
3995 * src/bison.s1: *** empty log message ***
3996
3997 1993-11-21 Richard Stallman <rms@gnu.org>
3998
3999 * doc/bison.texinfo: entered into RCS
4000
4001 * doc/bison.texinfo: *** empty log message ***
4002
4003 1993-11-21 Richard Stallman <rms@gnu.org>
4004
4005 * bison.simple: *** empty log message ***
4006
4007 1993-10-25 David J. MacKenzie <djm@gnu.org>
4008
4009 * doc/bison.texinfo: *** empty log message ***
4010
4011 1993-10-19 Richard Stallman <rms@gnu.org>
4012
4013 * src/bison.s1: *** empty log message ***
4014
4015 1993-10-19 Richard Stallman <rms@gnu.org>
4016
4017 * bison.simple: *** empty log message ***
4018
4019 1993-10-14 Richard Stallman <rms@gnu.org>
4020
4021 * src/bison.s1: *** empty log message ***
4022
4023 1993-10-14 Richard Stallman <rms@gnu.org>
4024
4025 * bison.simple: *** empty log message ***
4026
4027 1993-09-14 David J. MacKenzie <djm@gnu.org>
4028
4029 * doc/bison.texinfo: *** empty log message ***
4030
4031 1993-09-13 Noah Friedman <friedman@gnu.org>
4032
4033 * Makefile.in: *** empty log message ***
4034
4035 1993-09-10 Richard Stallman <rms@gnu.org>
4036
4037 * src/conflicts.c: *** empty log message ***
4038
4039 * src/system.h: entered into RCS
4040
4041 1993-09-10 Richard Stallman <rms@gnu.org>
4042
4043 * doc/bison.1: entered into RCS
4044
4045 1993-09-06 Noah Friedman <friedman@gnu.org>
4046
4047 * src/version.c: entered into RCS
4048
4049 1993-09-06 Noah Friedman <friedman@gnu.org>
4050
4051 * Makefile.in: *** empty log message ***
4052
4053 1993-07-30 David J. MacKenzie <djm@gnu.org>
4054
4055 * Makefile.in: *** empty log message ***
4056
4057 1993-07-24 Richard Stallman <rms@gnu.org>
4058
4059 * src/bison.s1: *** empty log message ***
4060
4061 1993-07-24 Richard Stallman <rms@gnu.org>
4062
4063 * bison.simple: *** empty log message ***
4064
4065 1993-07-08 David J. MacKenzie <djm@gnu.org>
4066
4067 * Makefile.in: *** empty log message ***
4068
4069 1993-07-04 Richard Stallman <rms@gnu.org>
4070
4071 * src/bison.s1: *** empty log message ***
4072
4073 1993-07-04 Richard Stallman <rms@gnu.org>
4074
4075 * bison.simple: *** empty log message ***
4076
4077 1993-06-26 David J. MacKenzie <djm@gnu.org>
4078
4079 * src/getargs.c: entered into RCS
4080
4081 1993-06-26 David J. MacKenzie <djm@gnu.org>
4082
4083 * doc/bison.texinfo: *** empty log message ***
4084
4085 * doc/bison.1: New file.
4086
4087 1993-06-25 Richard Stallman <rms@gnu.org>
4088
4089 * src/getargs.c: New file.
4090
4091 1993-06-16 Richard Stallman <rms@gnu.org>
4092
4093 * src/bison.s1: *** empty log message ***
4094
4095 1993-06-16 Richard Stallman <rms@gnu.org>
4096
4097 * bison.simple: *** empty log message ***
4098
4099 1993-06-03 Richard Stallman <rms@gnu.org>
4100
4101 * src/bison.s1: New file.
4102
4103 1993-06-03 Richard Stallman <rms@gnu.org>
4104
4105 * doc/bison.texinfo: *** empty log message ***
4106
4107 1993-06-03 Richard Stallman <rms@gnu.org>
4108
4109 * bison.simple: New file.
4110
4111 1993-05-19 Richard Stallman <rms@gnu.org>
4112
4113 * doc/bison.texinfo: New file.
4114
4115 1993-05-07 Noah Friedman <friedman@gnu.org>
4116
4117 * Makefile.in: *** empty log message ***
4118
4119 1993-04-28 Noah Friedman <friedman@gnu.org>
4120
4121 * src/reader.c: *** empty log message ***
4122
4123 1993-04-23 Noah Friedman <friedman@gnu.org>
4124
4125 * src/alloc.h: entered into RCS
4126
4127 1993-04-20 David J. MacKenzie <djm@gnu.org>
4128
4129 * src/version.c: *** empty log message ***
4130
4131 * src/files.c, src/allocate.c:
4132 entered into RCS
4133
4134 * src/reader.c: *** empty log message ***
4135
4136 * src/lex.c: entered into RCS
4137
4138 * src/conflicts.c: New file.
4139
4140 * src/symtab.c: entered into RCS
4141
4142 * src/alloc.h: New file.
4143
4144 * src/LR0.c: entered into RCS
4145
4146 1993-04-18 Noah Friedman <friedman@gnu.org>
4147
4148 * src/reader.c: New file.
4149
4150 * src/version.c: *** empty log message ***
4151
4152 1993-04-18 Noah Friedman <friedman@gnu.org>
4153
4154 * Makefile.in: *** empty log message ***
4155
4156 1993-04-17 Noah Friedman <friedman@gnu.org>
4157
4158 * Makefile.in: *** empty log message ***
4159
4160 1993-04-15 Richard Stallman <rms@gnu.org>
4161
4162 * src/main.c, src/files.c:
4163 New file.
4164
4165 1993-04-15 Noah Friedman <friedman@gnu.org>
4166
4167 * configure.in: entered into RCS
4168
4169 * configure.in: *** empty log message ***
4170
4171 * configure.in: New file.
4172
4173 1993-04-14 Richard Stallman <rms@gnu.org>
4174
4175 * Makefile.in: New file.
4176
4177 1993-04-13 Richard Stallman <rms@gnu.org>
4178
4179 * src/version.c: New file.
4180
4181 1993-03-25 Richard Stallman <rms@gnu.org>
4182
4183 * src/output.c: entered into RCS
4184
4185 1992-09-25 Richard Stallman <rms@gnu.org>
4186
4187 * configure.bat: entered into RCS
4188
4189 1992-06-22 Richard Stallman <rms@gnu.org>
4190
4191 * src/vmsgetargs.c: entered into RCS
4192
4193 1992-06-22 Richard Stallman <rms@gnu.org>
4194
4195 * doc/bison.rnh: entered into RCS
4196
4197 1992-04-20 David J. MacKenzie <djm@gnu.org>
4198
4199 * README: entered into RCS
4200
4201 1992-01-22 Richard Stallman <rms@gnu.org>
4202
4203 * src/machine.h: entered into RCS
4204
4205 1991-12-21 Richard Stallman <rms@gnu.org>
4206
4207 * src/lalr.c, src/closure.c:
4208 entered into RCS
4209
4210 1991-12-20 Richard Stallman <rms@gnu.org>
4211
4212 * src/state.h: entered into RCS
4213
4214 1991-12-18 Richard Stallman <rms@gnu.org>
4215
4216 * src/print.c, src/nullable.c, src/derives.c:
4217 entered into RCS
4218
4219 1991-11-03 David J. MacKenzie <djm@gnu.org>
4220
4221 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4222 entered into RCS
4223
4224 1988-09-09 Richard Stallman <rms@gnu.org>
4225
4226 * src/bison.hairy: entered into RCS
4227
4228 1987-12-16 Richard Stallman <rms@gnu.org>
4229
4230 * REFERENCES: entered into RCS