1 2001-11-20 Akim Demaille <akim@epita.fr>
5 2001-11-20 Akim Demaille <akim@epita.fr>
8 * configure.in (ALL_LINGUAS): Adjust.
9 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
10 longer contains strings to translate.
12 2001-11-19 Akim Demaille <akim@epita.fr>
14 * src/conflicts.c (conflicts_print): Add a missing \n.
16 2001-11-19 Akim Demaille <akim@epita.fr>
18 * src/nullable.c (nullable_print): New.
19 (set_nullable): Call it when tracing.
20 Better locality of variables.
22 2001-11-19 Akim Demaille <akim@epita.fr>
24 * src/print.c (print_actions): Better locality of variables.
26 2001-11-19 Akim Demaille <akim@epita.fr>
28 * src/derives.c (print_derives): Fix and enrich.
29 * src/closure.c (print_fderives): Likewise.
31 2001-11-19 Akim Demaille <akim@epita.fr>
33 * src/closure.c (itemsetend): Remove, replaced with...
36 2001-11-19 Akim Demaille <akim@epita.fr>
38 * src/LR0.c (kernel_end): Remove, replaced with...
41 2001-11-19 Akim Demaille <akim@epita.fr>
43 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
46 2001-11-19 Akim Demaille <akim@epita.fr>
48 * src/closure.c (closure): Use arrays instead of pointers to clarify.
50 2001-11-19 Akim Demaille <akim@epita.fr>
52 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
54 * src/LR0.c: Likewise.
55 (allocate_itemsets): Use arrays instead of pointers to clarify.
57 2001-11-19 Akim Demaille <akim@epita.fr>
59 * src/getargs.c (statistics_flag): Replace with...
61 (longopts): Accept --trace instead of --statistics.
62 * src/getargs.h: Adjust.
63 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
64 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
66 2001-11-19 Akim Demaille <akim@epita.fr>
68 * src/LR0.c (new_itemsets, get_state): Use more arrays and less
69 pointers to clarify the code.
70 (save_reductions, save_shifts): Factor common parts of alternatives.
72 2001-11-19 Akim Demaille <akim@epita.fr>
74 * src/LR0.c (new_state, get_state): Complete TRACE code.
75 * src/closure.c: Include `reader.h' to get `tags', needed by the
77 Rename the conditional DEBUG as TRACE.
78 Output consistently TRACEs to stderr, not stdout.
79 * src/derives.c: Likewise.
80 * src/reduce.c: (inaccessable_symbols): Using if is better style
82 Use `#if TRACE' instead of `#if 0' for tracing code.
84 2001-11-19 Akim Demaille <akim@epita.fr>
86 * src/system.h (LIST_FREE, shortcpy): New.
87 * src/LR0.c: Use them.
88 * src/output.c (free_itemsets, free_reductions, free_shifts):
89 Remove, replaced by LIST_FREE.
91 2001-11-19 Akim Demaille <akim@epita.fr>
93 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
94 (REDUCTIONS_ALLOC): New.
95 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
98 2001-11-19 Akim Demaille <akim@epita.fr>
100 * src/LR0.c (new_state): Complete trace code.
101 * src/nullable.c (set_nullable): Don't translate traces.
103 2001-11-19 Akim Demaille <akim@epita.fr>
105 * src/print_graph.c (print_core): Better locality of variables.
106 * src/print.c (print_core): Likewise.
108 2001-11-19 Akim Demaille <akim@epita.fr>
110 * src/vcg.c: You do the output, so you are responsible of the
111 handling of VCG syntax, in particular: use quotearg.
112 * src/print_graph.c: Don't.
113 (print_actions): Don't output the actions as part of the nodes,
114 since that's the job of the edges.
115 (print_state): Don't output by hand: fill the node description,
116 and ask for its output.
118 2001-11-19 Akim Demaille <akim@epita.fr>
120 * src/bison.simple (yyparse): When reporting verbosely an error,
121 no longer issue additional quotes around token names.
122 * tests/calc.at: Adjust.
124 2001-11-19 Akim Demaille <akim@epita.fr>
126 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
127 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
128 * src/output.c: Adjust.
130 2001-11-19 Akim Demaille <akim@epita.fr>
132 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
134 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
136 2001-11-19 Akim Demaille <akim@epita.fr>
138 * src/gram.h (rule_t): New.
140 (rrhs, rlhs): Remove, part of state_t.
141 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
142 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
143 * src/reader.c, src/reduce.c: Adjust.
145 2001-11-19 Akim Demaille <akim@epita.fr>
147 * src/reader.c (symbols_output): New, extracted from...
151 2001-11-19 Akim Demaille <akim@epita.fr>
153 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
154 (maxrhs): this new function.
156 2001-11-19 Akim Demaille <akim@epita.fr>
158 * src/lalr.c (F): New macro to access to the variable F.
161 2001-11-19 Akim Demaille <akim@epita.fr>
163 * src/lalr.h (LA): New macro to access to the variable LA.
164 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
165 * src/lalr.c: Adjust.
167 2001-11-19 Akim Demaille <akim@epita.fr>
169 * src/lalr.c (initialize_LA): Only initialize LA. Let...
170 (set_state_table): handle the `lookaheads' members.
172 2001-11-19 Akim Demaille <akim@epita.fr>
174 * src/lalr.h (lookaheads): Removed array, which contents is now
176 (state_t): this structure.
177 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
180 2001-11-19 Akim Demaille <akim@epita.fr>
182 * src/lalr.h (consistent): Removed array, which contents is now
184 (state_t): this structure.
185 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
188 2001-11-19 Akim Demaille <akim@epita.fr>
190 * src/lalr.h (reduction_table, shift_table): Removed arrays, which
191 contents is now members of...
192 (state_t): this structure.
193 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
196 2001-11-19 Akim Demaille <akim@epita.fr>
198 * src/lalr.h (state_t): New.
199 (state_table): Be a state_t * instead of a core **.
200 (accessing_symbol): Remove, part of state_t.
201 * src/lalr.c: Adjust.
202 (set_accessing_symbol): Merge into...
203 (set_state_table): this.
204 * src/print_graph.c, src/conflicts.c: Adjust.
206 2001-11-14 Akim Demaille <akim@epita.fr>
210 2001-11-14 Akim Demaille <akim@epita.fr>
212 * tests/calc.at, tests/output.at, tests/regression.at,
213 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
214 now the tests are run in private dirs, therefore AC_CLEANUP and
215 family can be simplified to 0-ary.
216 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
217 use abs. path to find config.h.
219 2001-11-14 Akim Demaille <akim@epita.fr>
221 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
222 stderr, there can be way too much random noise.
223 Instead pass -Werror to GCC and rely on the exit status.
224 Reported by Wolfram Wagner.
226 2001-11-14 Akim Demaille <akim@epita.fr>
228 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
229 defined only if yyoverflow is defined, to avoid `warning: unused
231 Reported by The Test Suite.
233 2001-11-14 Akim Demaille <akim@epita.fr>
235 * src/print.c: Include reduce.h.
236 Reported by Hans Aberg.
238 2001-11-14 Akim Demaille <akim@epita.fr>
240 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
241 Revert a previous patch: these are really const.
242 * src/conflicts.c (conflict_report): Additional useless pair of
243 braces to pacify GCC's warnings for `if () if () {} else {}'.
244 * src/lex.c (parse_percent_token): Replace equal_offset with
247 Be sure to strdup `arg' when used, since there is no reason for
248 token_buffer not to change.
250 2001-11-14 Akim Demaille <akim@epita.fr>
252 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
254 * src/main.c (main): Use them.
255 Suggested by Hans Aberg.
257 2001-11-12 Akim Demaille <akim@epita.fr>
261 * src/system.h (ngettext): Now that we use ngettext, be sure to
262 provide a default definition when NLS are not used that takes care
265 2001-11-12 Akim Demaille <akim@epita.fr>
267 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
268 Use @kbd to denote user input.
269 (Language and Grammar): ANSIfy the example.
270 Adjust its layout for info/notinfo.
271 (Location Tracking Calc): Output error messages to stderr.
272 Output locations in a more GNUtically correct way.
273 Fix a couple of Englishos.
274 Adjust @group/@end group pairs.
276 2001-11-12 Akim Demaille <akim@epita.fr>
278 %expext was not functioning at all.
280 * src/conflicts.c (expected_conflicts): Set to -1.
281 (conflict_report): Use ngettext.
282 (conflicts_print): Check %expect and make its violation an error.
283 * doc/bison.texinfo (Expect Decl): Adjust.
284 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
285 * tests/regression.at (%expect not enough, %expect right)
286 (%expect too much): New.
288 2001-11-12 Akim Demaille <akim@epita.fr>
290 * tests/regression.at (Conflicts): Rename as...
291 (Unresolved SR Conflicts): this.
292 (Solved SR Conflicts): New.
294 2001-11-12 Akim Demaille <akim@epita.fr>
296 * src/reduce.c (print_results): Rename as...
297 (reduce_output): This.
298 Output to OUT, passed as argument, instead of output_obstack.
299 (dump_grammar): Likewise.
302 (reduce_grammar): No longer call reduce_output, since...
303 * src/print.c (print_results): do it.
304 * src/main.c (main): Call reduce_free;
306 2001-11-12 Akim Demaille <akim@epita.fr>
308 * src/conflicts.c (print_reductions): Accept OUT as argument.
309 Output to it, not to output_obstack.
310 * src/print.c (print_actions): Adjust.
312 2001-11-12 Akim Demaille <akim@epita.fr>
314 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
315 the result instead of using...
316 (src_total, rrc_total, src_count, rrc_count): Remove.
317 (any_conflicts): Remove.
318 (print_conflicts): Split into...
319 (conflicts_print, conflicts_output): New.
320 * src/conflicts.h: Adjust.
321 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
322 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
323 * tests/regression.at (Conflicts): New.
324 Reported by Tom Lane.
326 2001-11-12 Akim Demaille <akim@epita.fr>
328 * tests/regression.at (Invalid input): Remove, duplicate with
329 ``Invalid input: 1''.
331 2001-11-12 Akim Demaille <akim@epita.fr>
333 * tests/torture.at (AT_DATA_STACK_TORTURE)
334 (Exploding the Stack Size with Alloca)
335 (Exploding the Stack Size with Malloc): New.
337 2001-11-12 Akim Demaille <akim@epita.fr>
339 * src/bison.simple (YYSTACK_REALLOC): New.
340 (yyparse) [!yyoverflow]: Use it and free the old stack.
341 Reported by Per Allansson.
343 2001-11-05 Akim Demaille <akim@epita.fr>
346 * src/lex.c (parse_percent_token): s/quotearg/quote/.
348 2001-11-05 Akim Demaille <akim@epita.fr>
350 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
353 2001-11-05 Akim Demaille <akim@epita.fr>
355 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
356 with yyltype/YYLTYPE. This allows inclusion of the generated
357 header within the parser if the compiler, such as GGC, accepts
358 multiple equivalent #defines.
360 2001-11-04 Akim Demaille <akim@epita.fr>
362 * src/getargs.c (longopts): Support `--output'. getopt is now
363 able to understand that `--out' is OK: the two racing long options
366 * src/lex.h (tok_setopt): Remove, replaced with...
367 (tok_intopt, tok_stropt): these new guys.
368 * src/lex.c (getopt.h): Not needed.
369 (token_buffer, unlexed_token_buffer): Not const.
370 (percent_table): Promote `-' over `_' in directive names.
371 Active `%name-prefix', `file-prefix', and `output'.
372 (parse_percent_token): Accept possible arguments to directives.
373 Promote `-' over `_' in directive names.
374 * doc/bison.texinfo (Decl Summary): Split the list into
375 `directives for grammars' and `directives for bison'.
377 Add description of `%name-prefix', `file-prefix', and `output'.
378 Promote `-' over `_' in directive names.
379 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
380 Simplify the description of `--name-prefix'.
381 Promote `-' over `_' in directive names.
382 Promote `--output' over `--output-file'.
383 Fix the description of `--defines'.
384 * tests/output.at: Exercise %file-prefix and %output.
386 2001-11-02 Akim Demaille <akim@epita.fr>
388 * doc/refcard.tex: Update.
390 2001-11-02 Akim Demaille <akim@epita.fr>
392 * src/symtab.h (SUNDEF): New.
393 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
394 stand for `uninitialized', instead of 0.
395 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
396 * src/lex.c (lex): Adjust.
398 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
400 Let yylex return it instead of a plain 0.
401 Reported by Dick Streefland.
403 2001-11-02 Akim Demaille <akim@epita.fr>
405 * tests/regression.at (Mixing %token styles): New test.
407 2001-11-02 Akim Demaille <akim@epita.fr>
409 * src/reader.c (parse_thong_decl): Formatting changes.
410 (token_translations_init): New, extracted from...
414 2001-11-01 Akim Demaille <akim@epita.fr>
416 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
417 Check that `9foo.y' produces correct cpp guards.
418 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
422 2001-11-01 Akim Demaille <akim@epita.fr>
424 * tests/regression.at (Invalid input: 2): New.
425 * src/lex.c (unlexed_token_buffer): New.
426 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
430 2001-11-01 Akim Demaille <akim@epita.fr>
432 * configure.in: Bump to 1.30a.
433 Adjust to newer Autotest.
435 2001-10-26 Akim Demaille <akim@epita.fr>
439 2001-10-26 Paul Eggert <eggert@twinsun.com>
441 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
442 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
443 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
444 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
445 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
446 Sync with fileutils 4.1.1.
448 2001-10-18 Akim Demaille <akim@epita.fr>
451 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
452 avoid spurious failures.
454 2001-10-18 Akim Demaille <akim@epita.fr>
458 2001-10-18 Akim Demaille <akim@epita.fr>
460 * tests/atlocal.in (GCC): Add.
461 * tests/calc.at: s/m4_match/m4_bmatch/.
462 s/m4_patsubst/m4_bpatsubst/.
463 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
464 * configure.in: AC_SUBST(GCC).
466 2001-10-10 Akim Demaille <akim@epita.fr>
469 * configure.in: M4 is no longer needed, but autom4te is.
470 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
473 2001-10-10 Akim Demaille <akim@epita.fr>
477 2001-10-10 Akim Demaille <akim@epita.fr>
480 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
481 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
482 Reported by Airy Andre.
484 2001-10-10 Akim Demaille <akim@epita.fr>
486 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
487 * config/mkinstalldirs, lib/ansi2knr.c: Update.
489 2001-10-02 Akim Demaille <akim@epita.fr>
493 2001-10-02 Akim Demaille <akim@epita.fr>
497 2001-10-02 Akim Demaille <akim@epita.fr>
499 * tests/regression.at (Invalid CPP headers): New.
500 From Alexander Belopolsky.
501 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
503 2001-10-02 Akim Demaille <akim@epita.fr>
505 * tests/regression.at (Invalid input): New.
506 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
509 2001-10-02 Akim Demaille <akim@epita.fr>
511 * tests/calc.at: Now that --debug works, the tests must be adjusted.
513 2001-10-02 Akim Demaille <akim@epita.fr>
515 * src/output.c (output_parser): Assert `skeleton'.
516 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
520 2001-10-01 Marc Autret <autret_m@epita.fr>
522 * src/lex.h: Echo modifications.
523 * src/lex.c (unlex): Parameter is now token_t.
526 2001-10-01 Marc Autret <autret_m@epita.fr>
528 * src/main.c: Include lex.h.
531 2001-09-29 Akim Demaille <akim@epita.fr>
533 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
535 2001-09-28 Akim Demaille <akim@epita.fr>
537 * tests/testsuite.at: Update to newer Autotest.
538 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
540 2001-09-27 Akim Demaille <akim@epita.fr>
542 Position independent wrapper.
544 * tests/bison: Remove.
545 * tests/bison.in: New.
546 * configure.in: Adjust.
548 2001-09-27 Paul Eggert <eggert@twinsun.com>
550 Port quotearg fixes from tar 1.13.24.
552 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
554 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
555 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
557 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
558 * m4/mbrtowc.m4: New file.
559 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
560 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
562 2001-09-27 Akim Demaille <akim@epita.fr>
566 2001-09-27 Akim Demaille <akim@epita.fr>
570 2001-09-25 Akim Demaille <akim@epita.fr>
572 * src/system.h: Include `xalloc.h'.
573 Remove it from the C files.
574 * src/files.c (output_files): Free the obstacks.
575 * src/lex.c (init_lex): Rename as...
578 * src/main.c (main): Use it.
580 2001-09-24 Marc Autret <autret_m@epita.fr>
582 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
583 to output informations in fout (FILE*).
584 (open_graph, close_graph): Likewise.
585 (output_graph, output_edge, output_node): Likewise.
586 * src/vcg.h: Update function prototypes.
587 * src/print_graph.c (print_graph): Open output graph file.
588 (print_actions): Adjust.
589 * src/files.h: Remove extern declaration.
590 * src/files.c: Remove graph_obstack declaration.
591 (open_files): Remove graph_obstack initialization.
592 (output_files): Remove graph_obstack saving.
594 2001-09-24 Marc Autret <autret_m@epita.fr>
596 * src/files.c (compute_output_file_names): Fix.
598 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
600 * src/reader.c (reader): Remove call to free_symtab ().
601 * src/main.c (main): Call it here.
603 * src/conflicts.c (initialize_conflicts): Rename as...
604 (solve_conflicts): this.
605 * src/print.c (print_core, print_actions, print_state)
606 (print_grammar): Dump to a file instead a `output_obstack'.
607 (print_results): Dump `output_obstack', and then proceed with the
609 * src/files.c (compute_output_file_names, close_files): New.
610 (output_files): Adjust.
611 * src/main.c (main): Adjust.
613 2001-09-23 Marc Autret <autret_m@epita.fr>
615 * src/files.c (compute_header_macro): Computes header macro name
616 from spec_defines_file when given.
618 2001-09-23 Marc Autret <autret_m@epita.fr>
620 * src/files.c (output_files): Add default extensions.
622 2001-09-22 Akim Demaille <akim@epita.fr>
624 * src/conflicts.c (finalize_conflicts): Rename as...
625 (free_conflicts): this.
627 2001-09-22 Akim Demaille <akim@epita.fr>
629 * src/gram.c (gram_free): Rename back as...
631 (output_token_translations): Free `token_translations'.
632 * src/symtab.c (free_symtab): Free the tag field.
634 2001-09-22 Akim Demaille <akim@epita.fr>
636 Remove `translations' as it is always set to true.
638 * src/gram.h: Adjust.
639 * src/reader.c (packsymbols, parse_token_decl): Adjust
640 * src/print.c (print_grammar): Adjust.
641 * src/output.c (output_token_translations): Adjust.
642 * src/lex.c (lex): Adjust.
643 * src/gram.c: Be sure the set pointers to NULL.
644 (dummy): Rename as...
647 2001-09-22 Akim Demaille <akim@epita.fr>
649 * configure.in: Invoke AM_LIB_DMALLOC.
650 * src/system.h: Use dmalloc.
651 * src/LR0.c: Be sure to have pointers initialized to NULL.
652 (allocate_itemsets): Allocate kernel_items only if needed.
654 2001-09-22 Akim Demaille <akim@epita.fr>
656 * configure.in: Bump to 1.29b.
657 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
658 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
659 need xmalloc.c in calc.y.
662 2001-09-21 Akim Demaille <akim@epita.fr>
665 * Makefile.maint, config/config.guess, config/config.sub,
666 * config/missing: Update from masters.
667 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
669 * configure.in (ALL_LINGUAS): Add `tr'.
671 2001-09-21 Akim Demaille <akim@epita.fr>
673 * tests/Makefile.am (package.m4): Move to...
674 ($(srcdir)/$(TESTSUITE)): here.
676 2001-09-20 Akim Demaille <akim@epita.fr>
678 * src/complain.c: No longer try to be standalone: use system.h.
679 Don't assume __STDC__ is defined to 1. Just test if it is defined.
680 * src/complain.h: Likewise.
681 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
682 Remove the unused variable `n'.
683 From Albert Chin-A-Young.
685 2001-09-18 Marc Autret <autret_m@epita.fr>
687 * doc/bison.1: Update.
688 * doc/bison.texinfo (Bison Options): Update --defines and --graph
690 (Option Cross Key): Update.
693 2001-09-18 Marc Autret <autret_m@epita.fr>
695 * tests/regression.at: New test (comment in %union).
697 2001-09-18 Marc Autret <autret_m@epita.fr>
699 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
701 Reported by Keith Browne.
703 2001-09-18 Marc Autret <autret_m@epita.fr>
705 * tests/output.at: Add tests for --defines and --graph.
707 2001-09-18 Marc Autret <autret_m@epita.fr>
709 * tests/output.at: Removes tests of %{header,src}_extension features.
711 2001-09-18 Akim Demaille <akim@epita.fr>
713 * tests/Makefile.am (package.m4): New.
714 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
715 (_AT_CHECK_CALC_ERROR): Likewise.
716 Factor the `, ' part of verbose error messages.
718 2001-09-18 Marc Autret <autret_m@epita.fr>
720 * src/getargs.c (longopts): Declare --defines and --graph as options
721 with optional arguments.
722 * src/files.h: Add extern declarations.
723 * src/files.c (spec_graph_file, spec_defines_file): New.
724 (output_files): Update.
725 Remove CPP-outed code.
727 2001-09-18 Marc Autret <autret_m@epita.fr>
729 Turn off %{source,header}_extension feature.
731 * src/files.c (compute_exts_from_gf): Update.
732 (compute_exts_from_src): Update.
733 (output_files): CPP-out useless code.
734 * src/files.h: Remove {header,source}_extension extern declarations.
735 * src/reader.c (parse_dquoted_param): CPP-out.
736 (parse_header_extension_decl): Remove.
737 (parse_source_extension_decl): Remove.
738 (read_declarations): Remove cases tok_{hdrext,srcext}.
739 * src/lex.c (percent_table): Remove {header,source}_extension entries.
740 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
742 2001-09-10 Akim Demaille <akim@epita.fr>
744 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
745 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
746 (AT_CHECK_OUTPUT): this.
747 Merely check ls' exit status, its output is useless.
749 2001-09-10 Akim Demaille <akim@epita.fr>
751 * tests/calc.at: Use m4_match.
752 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
754 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
756 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
758 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
760 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
761 * src/lex.h: Adjust prototype.
762 (token_t): Add `tok_undef'.
763 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
764 (parse_percent_token): Now returns token_t.
765 Add default statement in switch.
766 (lex): Separate `c' as an input variable, from the token_t result
768 (unlexed): Is a token_t.
770 2001-09-10 Akim Demaille <akim@epita.fr>
772 * configure.in: Bump to 1.29a.
774 2001-09-07 Akim Demaille <akim@epita.fr>
778 2001-08-30 Akim Demaille <akim@epita.fr>
780 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
781 * m4/atconfig.m4: Remove.
782 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
784 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
785 m4_if, m4_patsubst, and m4_regexp.
786 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
787 `input' file instead of echo.
789 2001-08-29 Akim Demaille <akim@epita.fr>
793 2001-08-29 Akim Demaille <akim@epita.fr>
797 2001-08-29 Paul Eggert <eggert@twinsun.com>
799 * src/bison.simple (yyparse): Don't take the address of an
800 item before the start of an array, as that doesn't conform to
803 2001-08-29 Robert Anisko <anisko_r@epita.fr>
805 * doc/bison.texinfo (Location Tracking Calc): New node.
807 2001-08-29 Paul Eggert <eggert@twinsun.com>
809 * src/output.c (output): Do not define const, as this now
810 causes more problems than it cures.
812 2001-08-29 Akim Demaille <akim@epita.fr>
814 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
816 Be sure to tag the `detailmenu'.
818 2001-08-29 Akim Demaille <akim@epita.fr>
820 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
821 download in a tmp dir.
823 2001-08-28 Marc Autret <autret_m@epita.fr>
825 * config/depcomp: New file.
827 2001-08-28 Marc Autret <autret_m@epita.fr>
829 * doc/bison.1 (mandoc): Adjust.
830 From Juan Manuel Guerrero.
832 2001-08-28 Marc Autret <autret_m@epita.fr>
834 * src/print_graph.c (print_state): Fix.
836 2001-08-27 Marc Autret <autret_m@epita.fr>
838 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
840 Echo modifications to the functions prototypes.
841 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
843 2001-08-27 Marc Autret <autret_m@epita.fr>
845 * src/vcg.c: Include `xalloc.h'.
846 (add_colorentry): New.
847 (add_classname): New.
849 * src/vcg.h: Add new prototypes.
851 2001-08-27 Akim Demaille <akim@epita.fr>
853 * Makefile.maint: Sync. again with CVS Autoconf.
855 2001-08-27 Akim Demaille <akim@epita.fr>
857 * Makefile.maint: Formatting changes.
858 (po-update, cvs-update, update): New targets.
861 2001-08-27 Akim Demaille <akim@epita.fr>
863 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
864 * Makefile.maint: Sync. with CVS Autoconf.
866 2001-08-27 Marc Autret <autret_m@epita.fr>
868 * src/vcg.h (struct infoname_s): New.
869 (struct colorentry_s): New.
870 (graph_s): New fields {vertical,horizontal}_order in structure.
871 Add `infoname' field.
872 Add `colorentry' field;
873 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
874 (G_HORIZONTAL_ORDER): New.
877 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
878 Add output of `infoname'.
879 Add output of `colorentry'.
881 2001-08-27 Marc Autret <autret_m@epita.fr>
883 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
884 This one shadowed a global parameter.
886 2001-08-24 Marc Autret <autret_m@epita.fr>
888 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
889 instead of `unsigned'.
890 (print_state): Do not call obstack_object_size () in obstack_grow ()
891 to avoid macro variables shadowing.
893 2001-08-23 Marc Autret <autret_m@epita.fr>
895 * src/lex.c (percent_table): Typo: s/naem/name/.
897 Normalize new options declarations.
899 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
901 * tests/suite.at: Exercise %header_extension and %source_extension.
903 2001-08-16 Marc Autret <autret_m@epita.fr>
905 * src/reader.c (parse_dquoted_param): New.
906 (parse_header_extension_decl): Use it.
907 (parse_source_extension_decl): Likewise.
909 2001-08-16 Marc Autret <autret_m@epita.fr>
911 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
912 (get_xxxx_str): Use assert () instead of complain ().
913 Remove return invokations in default cases.
914 (get_decision_str): Modify default behaviour. Remove second argument.
915 Echo modifications on calls.
918 2001-08-16 Marc Autret <autret_m@epita.fr>
920 * src/getargs.c (usage): Update with ``-g, --graph''.
922 2001-08-16 Marc Autret <autret_m@epita.fr>
924 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
925 (Option Cross Key): Likewise.
926 * doc/bison.1: Update.
928 2001-08-15 Akim Demaille <akim@epita.fr>
932 2001-08-15 Marc Autret <autret_m@epita.fr>
934 * src/reader.c (readgram): Indent output macro YYSTYPE.
935 (packsymbols): Likewise.
936 (output_token_defines): Likewise.
937 * src/files.c: Standardize.
938 (compute_header_macro): New.
939 (defines_obstack_save): New. Use compute_header_macro.
940 (output_files): Update. Use defines_obstack_save.
942 2001-08-15 Akim Demaille <akim@epita.fr>
944 * doc/bison.texinfo (Table of Symbols): Document
947 2001-08-15 Akim Demaille <akim@epita.fr>
949 * missing: Update from CVS Automake.
950 * config/config.guess, config/config.sub, config/texinfo.tex:
953 2001-08-15 Akim Demaille <akim@epita.fr>
955 * Makefile.maint: Sync with CVS Autoconf.
957 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
959 * doc/bison.texinfo: Include GNU Free Documentation License from
961 * doc/fdl.texi: Add to package.
963 2001-08-14 Marc Autret <autret_m@epita.fr>
965 Turn on %{source,header}_extension features.
967 * src/lex.c (percent_table): Un-CPP out header_extension and
969 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
970 (compute_exts_from_src): Remove conditions. It restores priorities
973 2001-08-14 Marc Autret <autret_m@epita.fr>
975 * src/files.c (compute_base_names): Add extensions computing when
976 `--file-prefix' used.
977 Standardize function calls.
979 2001-08-13 Marc Autret <autret_m@epita.fr>
981 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
982 defining it (defined but null disables alloca).
984 2001-08-13 Marc Autret <autret_m@epita.fr>
986 * src/bison.simple (_yy_memcpy): CPP reformat.
988 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
990 * tests/atconfig.in (CPPFLAGS): Fix.
992 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
994 * doc/bison.texinfo: Include GNU General Public License from
996 * doc/gpl.texi: Add to package.
998 2001-08-10 Marc Autret <autret_m@epita.fr>
1000 * src/print_graph.h: Fix.
1001 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1003 2001-08-10 Akim Demaille <akim@epita.fr>
1005 * src/system.h: Provide default declarations for stpcpy, strndup,
1008 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1010 * doc/bison.texinfo (Locations): Update @$ stuff.
1012 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1014 * src/bison.simple (YYLLOC_DEFAULT): Update.
1017 2001-08-08 Marc Autret <autret_m@epita.fr>
1019 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1020 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1021 Reported by Fabrice Bauzac.
1023 2001-08-08 Marc Autret <autret_m@epita.fr>
1025 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1026 * src/vcg.c (output_node): Fix.
1027 * src/vcg.h: Cleanup.
1028 * src/print_graph.c: Add comments.
1029 (node_output_size): New global variable. Simplify the formatting of
1030 the VCG graph output.
1031 (print_actions): Unused code is now used. It notifies the final state
1032 and no action states in the VCG graph. It also give the reduce actions.
1033 The `shift and goto' edges are red and the `go to state' edges are
1035 Get the current node name and node_obstack by argument.
1036 (node_obstack): New variable.
1037 (print_state): Manage node_obstack.
1038 (print_core): Use node_obstack given by argument.
1039 A node is not only computed here but in print_actions also.
1040 (print_graph): CPP out useless code instead of commenting it.
1042 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1044 * tests/atconfig.in (CPPFLAGS): Fix.
1046 2001-08-07 Akim Demaille <akim@epita.fr>
1048 * src/print_graph.c (quote): New.
1049 (print_core): Use it.
1051 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1053 * src/vcg.c (complain.h): Include it.
1054 Unepitaize `return' invocations.
1055 [NDEBUG] (main): Remove.
1056 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1057 * src/files.c (open_files): Initialize graph_obstack.
1058 * src/print_graph.c (print_actions): CPP out useless code.
1059 (print_core): Don't output the last `\n' in labels.
1061 * src/files.c (output_files): Output the VCG file.
1062 * src/main.c (main): Invoke print_graph ();
1064 2001-08-06 Marc Autret <autret_m@epita.fr>
1066 Automaton VCG graph output.
1067 Using option ``-g'' or long option ``--graph'', you can generate
1068 a gram_filename.vcg file containing a VCG description of the LALR (1)
1069 automaton of your grammar.
1071 * src/main.c: Call to print_graph() function.
1072 * src/getargs.h: Update.
1073 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1074 (graph_flag): New flag.
1076 (getargs): Add case `g'.
1077 * src/files.c (graph_obstack): New obstack struct.
1078 (open_files): Initialize new obstack.
1079 (output_files): Saves graph_obstack if required.
1080 * src/files.h (graph_obstack): New extern declaration.
1081 * src/Makefile.am: Add new source files.
1083 2001-08-06 Marc Autret <autret_m@epita.fr>
1085 * src/print_graph.c, src/print_graph.h (graph): New.
1086 * src/vcg.h: New file.
1087 * src/vcg.c: New file, VCG graph handling.
1089 2001-08-06 Marc Autret <autret_m@epita.fr>
1091 Add of %source_extension and %header_extension which specify
1092 the source or/and the header output file extension.
1094 * src/files.c (compute_base_names): Remove initialisation of
1095 src_extension and header_extension.
1096 (compute_exts_from_gf): Update.
1097 (compute_exts_from_src): Update.
1098 (output_files): Update.
1099 * src/reader.c (parse_header_extension_decl): New.
1100 (parse_source_extension_decl): New.
1101 (read_declarations): New case statements for the new tokens.
1102 * src/lex.c (percent_table): Add entries for %source_extension
1103 and %header_extension.
1104 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1106 2001-08-06 Marc Autret <autret_m@epita.fr>
1108 * configure.in: Bump to 1.28c.
1109 * doc/bison.texinfo: Texinfo thingies.
1111 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1113 * tests/atconfig.in (CPPFLAGS): Add.
1114 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1116 2001-08-03 Akim Demaille <akim@epita.fr>
1120 2001-08-03 Akim Demaille <akim@epita.fr>
1122 * tests/Makefile.am (check-local): Ship testsuite.
1123 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1126 2001-08-03 Akim Demaille <akim@epita.fr>
1128 * configure.in: Try using -Wformat when compiling.
1130 2001-08-03 Akim Demaille <akim@epita.fr>
1132 * configure.in: Bump to 1.28b.
1134 2001-08-03 Akim Demaille <akim@epita.fr>
1136 * src/complain.c: Adjust strerror_r portability issues.
1138 2001-08-03 Akim Demaille <akim@epita.fr>
1142 2001-08-03 Akim Demaille <akim@epita.fr>
1144 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1145 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1146 * src/getargs.c: Include complain.h.
1147 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1148 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1150 2001-08-03 Akim Demaille <akim@epita.fr>
1152 * src/reader.c (readgram): Display hidden chars in error messages.
1154 2001-08-03 Akim Demaille <akim@epita.fr>
1156 Update to gettext 0.10.39.
1158 2001-08-03 Akim Demaille <akim@epita.fr>
1160 * lib/strspn.c: New.
1162 2001-08-01 Marc Autret <autret_m@epita.fr>
1164 * doc/bison.texinfo: Update.
1165 * doc/bison.1 (mandoc): Update.
1166 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1167 * src/files.c: Support output files extensions computing.
1168 (src_extension): New static variable.
1169 (header_extension): New static variable.
1171 (get_extension_index): New function, gets the index of an extension
1172 filename in a string.
1173 (compute_exts_from_gf): New function, computes extensions from the
1174 grammar file extension.
1175 (compute_exts_from_src): New functions, computes extensions from the
1176 C source file extension, file given by ``-o'' option.
1177 (compute_base_names): Update.
1178 (output_files): Update.
1180 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1182 * doc/bison.texi: Document @$.
1183 (Locations): New section.
1185 2001-07-18 Akim Demaille <akim@epita.fr>
1187 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1188 * config/prev-version.txt, config/move-if-change: New.
1189 * Makefile.am: Adjust.
1191 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1193 * src/bison.simple (yyparse): Suppress warning `comparaison
1194 between signed and unsigned'.
1196 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1198 * src/getargs.h (raw_flag): Remove.
1199 * src/getargs.c: Die on `-r'/`--raw'.
1200 * src/lex.c (parse_percent_token): Die on `%raw'.
1201 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1202 * tests/calc.at: Suppress test with option `--raw'.
1204 2001-07-14 Akim Demaille <akim@epita.fr>
1207 * configure.in: Require Autoconf 2.50.
1208 Update to gettext 0.10.38.
1210 2001-03-16 Akim Demaille <akim@epita.fr>
1212 * doc/bison.texinfo: ANSIfy the examples.
1214 2001-03-16 Akim Demaille <akim@epita.fr>
1216 * getargs.c (skeleton): New variable.
1217 (longopts): --skeleton is a new option.
1218 (shortopts, getargs): -S is a new option.
1219 * getargs.h: Declare skeleton.
1220 * output.c (output_parser): Use it.
1222 2001-03-16 Akim Demaille <akim@epita.fr>
1224 * m4/strerror_r.m4: New.
1225 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1226 * lib/error.h, lib/error.c: Update.
1228 2001-03-16 Akim Demaille <akim@epita.fr>
1230 * src/getargs.c (longopts): Clean up.
1232 2001-02-21 Akim Demaille <akim@epita.fr>
1234 * src/reader.c (gensym): `gensym_count' is your own.
1235 Use a static buf to create the symbol name, as token_buffer is no
1238 2001-02-08 Akim Demaille <akim@epita.fr>
1240 * src/conflicts.c (conflict_report): Be sure not to append to res
1241 between two calls, which could happen if both first sprintf were
1242 skipped, but not the first cp += strlen.
1244 2001-02-08 Akim Demaille <akim@epita.fr>
1246 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1247 New, from fileutils 4.0.37.
1248 * configure.in: Require Autoconf 2.49c. I took some time before
1249 making this decision. This is the only way out for portability
1250 issues in Bison, it would mean way too much duplicate effort to
1251 import in Bison features implemented in 2.49c since 2.13.
1252 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1254 2001-02-02 Akim Demaille <akim@epita.fr>
1256 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1257 * lib/xalloc.h, lib/xmalloc.c: Update.
1259 2001-01-19 Akim Demaille <akim@epita.fr>
1261 Get rid of the ad hoc handling of token_buffer in the scanner: use
1264 * src/lex.c (token_obstack): New.
1265 (init_lex): Initialize it. No longer call...
1266 (grow_token_buffer): this. Remove it.
1267 Adjust all the places which used it to use the obstack.
1269 2001-01-19 Akim Demaille <akim@epita.fr>
1271 * src/lex.h: Rename all the tokens:
1272 s/\bENDFILE\b/tok_eof/g;
1273 s/\bIDENTIFIER\b/tok_identifier/g;
1275 Let them be enums, not #define, to ease debugging.
1276 Adjust all the code.
1278 2001-01-18 Akim Demaille <akim@epita.fr>
1280 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1281 * src/lex.c (maxtoken, grow_token_buffer): Static.
1283 2001-01-18 Akim Demaille <akim@epita.fr>
1285 Since we now use obstacks, more % directives can be enabled.
1287 * src/lex.c (percent_table): Also accept `%yacc',
1288 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1290 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1291 instead of returning a token.
1292 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1293 * src/reader.c (read_declarations): Adjust.
1294 * src/files.c (open_files): Don't call `compute_base_names', don't
1295 compute `attrsfile' since they depend upon data which might be
1296 *in* the input file now.
1297 (output_files): Do it here.
1298 * src/output.c (output_headers): Document the fact that this patch
1299 introduces a guaranteed SEGV for semantic parsers.
1300 * doc/bison.texinfo: Document them.
1301 * tests/suite.at: Exercise these %options.
1303 2000-12-20 Akim Demaille <akim@epita.fr>
1305 Also handle the output file (--verbose) with obstacks.
1307 * files.c (foutput): Remove.
1308 (output_obstack): New.
1309 Adjust all dependencies.
1310 * src/conflicts.c: Return a string.
1311 * src/system.h (obstack_grow_string): Rename as...
1312 (obstack_sgrow): this. Be ready to work with non literals.
1313 (obstack_fgrow4): New.
1315 2000-12-20 Akim Demaille <akim@epita.fr>
1317 * src/files.c (open_files): Fix the computation of short_base_name
1318 in the case of `-o foo.tab.c'.
1320 2000-12-20 Akim Demaille <akim@epita.fr>
1322 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1323 (copy_dollar): Now that everything uses obstacks, get rid of the
1326 2000-12-20 Akim Demaille <akim@epita.fr>
1328 * src/files.c (open_files): Actually the `.output' file is based
1329 on the short_base_name, not base_name.
1330 * tests/suite.at (Checking output file names): Adjust.
1332 2000-12-20 Akim Demaille <akim@epita.fr>
1334 * src/bison.s1: Remove, we now use directly...
1335 * src/bison.simple: this.
1336 * src/Makefile.am: Use pkgdata instead of data.
1338 2000-12-20 Akim Demaille <akim@epita.fr>
1340 * src/files.c (guard_obstack): New.
1341 (open_files): Initialize it.
1342 (output_files): Dump it...
1343 * src/files.h: Export it.
1344 * src/reader.c (copy_guard): Use it.
1346 2000-12-19 Akim Demaille <akim@epita.fr>
1348 * src/files.c (outfile, defsfile, actfile): Removed as global
1350 (open_files): Don't compute them.
1351 (output_files): Adjust.
1352 (base_name, short_base_name): Be global.
1353 Adjust dependencies.
1355 2000-12-19 Akim Demaille <akim@epita.fr>
1357 * src/files.c (strsuffix): New.
1358 (stringappend): Be just like strcat but allocate.
1359 (base_names): Eve out from open_files.
1360 Try to simplify the rather hairy computation of base_name and
1362 (open_files): Use it.
1363 * tests/suite.at (Checking output file names): New test.
1365 2000-12-19 Akim Demaille <akim@epita.fr>
1367 * src/system.h (obstack_grow_literal_string): Rename as...
1368 (obstack_grow_string): this.
1369 * src/output.c (output_parser): Recognize `%% actions' instead of
1371 * src/bison.s1: s/$/%% actions/.
1372 * src/bison.hairy: Likewise.
1374 2000-12-19 Akim Demaille <akim@epita.fr>
1376 * src/output.c (output_parser): Compute the `#line' lines when
1378 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1379 Suggested by Hans Aberg.
1381 2000-12-19 Akim Demaille <akim@epita.fr>
1383 Let the handling of the skeleton files be local to the procedures
1386 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1388 (fparser, open_extra_files): Remove.
1389 (open_files, output_files): Don't take care of fparser.
1390 * src/files.h: Adjust.
1391 * src/output.c (output_parser): Open and close the file to the
1393 * src/reader.c (read_declarations): When %semantic_parser, open
1396 2000-12-19 Akim Demaille <akim@epita.fr>
1398 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1399 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1401 2000-12-19 Akim Demaille <akim@epita.fr>
1403 * src/files.c (open_files): Yipee! We no longer need all the code
1404 looking for `/tmp' since we have no tmp file.
1406 2000-12-19 Akim Demaille <akim@epita.fr>
1408 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1410 * src/files.c (open_files): Less dependency on MSDOS etc.
1412 2000-12-14 Akim Demaille <akim@epita.fr>
1414 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1415 Provide a default definition.
1416 Use it when executing the default @ action.
1417 * src/reader.c (reader_output_yylsp): No longer include
1418 `timestamp' and `text' in the default YYLTYPE.
1420 2000-12-12 Akim Demaille <akim@epita.fr>
1422 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1423 (copy_guard): Quote the file names.
1424 Reported by Laurent Mascherpa.
1426 2000-12-12 Akim Demaille <akim@epita.fr>
1428 * src/output.c (output_headers, output_program, output): Be sure
1429 to escape special characters when outputting filenames.
1430 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1431 (output_headers): Don't depend on them, Use ACTSTR.
1433 2000-11-17 Akim Demaille <akim@epita.fr>
1435 * lib/obstack.h: Formatting changes.
1436 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1437 prevents type checking.
1438 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1439 cast the value to (void *): assigning a `foo *' to a `void *'
1441 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1442 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1445 2000-11-17 Akim Demaille <akim@epita.fr>
1447 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1449 (suite.m4, regression.m4, calc.m4): these.
1450 * tests/atgeneral.m4: Update from CVS Autoconf.
1452 2000-11-17 Akim Demaille <akim@epita.fr>
1454 * tests/regression.m4 (%union and --defines): New test,
1455 demonstrating a current bug in the obstack implementation.
1457 2000-11-17 Akim Demaille <akim@epita.fr>
1459 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1461 Use them to declare the variables which are global or local to
1464 2000-11-17 Akim Demaille <akim@epita.fr>
1466 * acconfig.h: Remove, no longer used.
1468 2000-11-07 Akim Demaille <akim@epita.fr>
1470 * src: s/Copyright (C)/Copyright/g.
1472 2000-11-07 Akim Demaille <akim@epita.fr>
1474 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1476 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1478 2000-11-07 Akim Demaille <akim@epita.fr>
1480 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1481 Merge in a single CPP if/else.
1483 2000-11-07 Akim Demaille <akim@epita.fr>
1485 * src/output.c (output): Remove useless variables.
1486 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1487 argument `data' for consistency with the prototypes.
1489 (obstack_copy, obstack_copy0): Rename the second argument as
1490 `address' for consistency. Qualify it `const'.
1491 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1492 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1493 `const' their input argument (`data' or `address').
1494 Adjust the corresponding macros to include `const' in casts.
1496 2000-11-03 Akim Demaille <akim@epita.fr>
1498 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1499 s/PFILE1/BISON_HAIRY/.
1500 Adjust dependencies.
1502 2000-11-03 Akim Demaille <akim@epita.fr>
1504 For some reason, this was not applied.
1506 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1507 `unlink': it's no longer used.
1509 2000-11-03 Akim Demaille <akim@epita.fr>
1511 * src/files.c (skeleton_find): New function, eved out of...
1512 (open_files, open_extra_files): here.
1514 2000-11-03 Akim Demaille <akim@epita.fr>
1518 * src/files.c (obstack_save): New function.
1519 (done): Rename as...
1520 (output_files): this.
1522 * src/main.c (main): Don't use `atexit' to register `done', since
1523 it no longer has to remove tmp files, just call `output_files'
1524 when there are no errors.
1526 2000-11-02 Akim Demaille <akim@epita.fr>
1528 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1529 `unlink': it's no longer used.
1530 * src/files.h: Formatting changes.
1532 2000-11-02 Akim Demaille <akim@epita.fr>
1534 Remove the last uses of mktemp and unlink/delete.
1536 * src/files.c (fdefines, ftable): Removed.
1537 (defines_ostack, table_obstack): New.
1538 Adjust dependencies of the former into uses of the latter.
1539 * src/output.c (output_short_or_char_table, output_short_table):
1540 Convert to using obstacks.
1541 * src/reader.c (copy_comment2): Accept one FILE * and two
1543 (output_token_defines, reader_output_yylsp): Use obstacks.
1544 * src/system.h (obstack_fgrow3): New.
1546 2000-11-01 Akim Demaille <akim@epita.fr>
1548 Change each use of `fattrs' into a use of `attrs_obstack'.
1550 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1551 * src/files.c (fattrs): Remove.
1552 (attrs_obstack): New.
1553 Adjust all dependencies.
1554 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1556 2000-11-01 Akim Demaille <akim@epita.fr>
1559 Change each use of `faction' into a use of `action_obstack'.
1561 * lib/obstack.h, lib/obstack.c: New files.
1562 * src/files.c (faction): Remove.
1563 (action_obstack): New.
1564 Adjust all dependencies.
1566 2000-10-20 Akim Demaille <akim@epita.fr>
1568 * lib/quote.h (PARAMS): New macro. Use it.
1570 2000-10-16 Akim Demaille <akim@epita.fr>
1572 * src/output.c (output_short_or_char_table): New function.
1573 (output_short_table, output_token_translations): Use it.
1574 (goto_actions): Use output_short_table.
1576 2000-10-16 Akim Demaille <akim@epita.fr>
1578 * src/symtab.c (bucket_new): New function.
1581 * src/output.c (output_short_table): New argument to display the
1582 comment associated with the table.
1583 Adjust dependencies.
1584 (output_gram): Use it.
1585 (output_rule_data): Nicer output layout for YYTNAME.
1587 2000-10-16 Akim Demaille <akim@epita.fr>
1589 * src/lex.c (read_typename): New function.
1591 * src/reader.c (copy_dollar): Likewise.
1593 2000-10-16 Akim Demaille <akim@epita.fr>
1595 * src/reader.c (copy_comment2): Expect the input stream to be on
1596 the `/' which is suspected to open a comment, instead of being
1597 called after `//' or `/*' was read.
1598 (copy_comment, copy_definition, parse_union_decl, copy_action)
1599 (copy_guard): Adjust.
1601 2000-10-16 Akim Demaille <akim@epita.fr>
1603 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1604 `read_signed_integer'.
1606 2000-10-16 Akim Demaille <akim@epita.fr>
1608 * src/reader.c (copy_dollar): New function.
1609 (copy_guard, copy_action): Use it.
1611 2000-10-16 Akim Demaille <akim@epita.fr>
1613 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1614 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1615 New files, from Fileutils 4.0.27.
1616 * src/main.c (printable_version): Remove.
1617 * src/lex.c, src/reader.c: Use `quote'.
1619 2000-10-04 Akim Demaille <akim@epita.fr>
1621 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1623 2000-10-04 Akim Demaille <akim@epita.fr>
1625 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1627 2000-10-04 Akim Demaille <akim@epita.fr>
1629 When a literal string is used to define two different tokens,
1630 `bison -v' segfaults.
1631 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1633 * tests/regression.m4: New file.
1634 Include the core of the sample provided by Piotr Gackiewicz.
1635 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1638 2000-10-04 Akim Demaille <akim@epita.fr>
1640 * src/reader.c (parse_expect_decl): Keep `count' within the size
1644 2000-10-02 Paul Eggert <eggert@twinsun.com>
1646 * bison.s1 (yyparse): Assign the default value
1647 unconditionally, to avoid a GCC warning and make the parser a
1650 2000-10-02 Akim Demaille <akim@epita.fr>
1652 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1655 2000-10-02 Akim Demaille <akim@epita.fr>
1657 * src/derives.c, src/print.c, src/reduce.c: To ease the
1658 translation, move some `\n' out of the translated strings.
1660 2000-10-02 Akim Demaille <akim@epita.fr>
1662 The location tracking mechanism is precious for parse error
1663 messages. Nevertheless, it is enabled only when `@n' is used in
1664 the grammar, which is a different issue (you can use it in error
1665 message, but not in the grammar per se). Therefore, there should
1666 be another means to enable it.
1668 * src/getargs.c (getargs): Support `--locations'.
1670 * src/getargs.h (locationsflag): Export it.
1671 * src/lex.c (percent_table): Support `%locations'.
1672 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1673 with `locationsflag'.
1674 * doc/bison.texinfo: Document `--locations' and `%locations'.
1676 * tests/calc.m4: Test it.
1678 For regularity of the names, replace each
1679 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1680 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1681 In addition replace each `flag' with `_flag'.
1683 2000-10-02 Akim Demaille <akim@epita.fr>
1685 Also test parse error messages, including with YYERROR_VERBOSE.
1687 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1689 Use it to check the computations.
1690 Use it to check `nonassoc' is honored.
1691 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1692 `--yyerror-verbose'.
1693 (_AT_CHECK_CALC): Adjust to this option.
1694 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1696 2000-10-02 Akim Demaille <akim@epita.fr>
1698 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1699 the latter demonstrates a flaw in the handling of non debugging
1700 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1701 was used in order to simplify:
1717 unfortunately this leads to a CPP conflict when
1718 `--name-prefix=foo' is used since it produces `#define yydebug
1721 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1722 (YYDPRINTF): New macro.
1724 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1726 Also test `--verbose', `--defines' and `--name-prefix'.
1728 2000-10-02 Akim Demaille <akim@epita.fr>
1730 Improve the readability of the produced parsers.
1732 * src/bison.s1: Formatting changes.
1733 Improve the comment related to the `$' mark.
1734 (yydefault): Don't fall through to `yyresume': `goto' there.
1735 * src/output.c (output_parser): When the `$' is met, skip the end
1737 New variable, `number_of_dollar_signs', to check there's exactly
1738 one `$' in the parser skeleton.
1740 2000-10-02 Akim Demaille <akim@epita.fr>
1742 * lib/xstrdup.c: New file, from the fileutils.
1743 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1744 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1745 instead of strlen + xmalloc + strcpy.
1746 * src/symtab.c (copys): Remove, use xstrdup instead.
1748 2000-10-02 Akim Demaille <akim@epita.fr>
1750 * src/gram.h (associativity): New enum type which replaces the
1751 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1752 `right_assoc', `left_assoc' and `non_assoc'.
1753 Adjust all dependencies.
1754 * src/reader.c: Formatting changes.
1755 (LTYPESTR): Don't define it, use it as a literal in
1756 `reader_output_yylsp'.
1757 * src/symtab.h (symbol_class): New enum type which replaces the
1758 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1759 `sunknown', `stoken and `snterm'.
1761 2000-10-02 Akim Demaille <akim@epita.fr>
1763 * src/getargs.c (fixed_outfiles): Rename as...
1764 (yaccflag): for consistency and accuracy.
1765 Adjust dependencies.
1767 2000-10-02 Akim Demaille <akim@epita.fr>
1769 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1770 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1771 difficult and introduced a lot of core dump. It turns out that
1772 Bison used an implementation of `xmalloc' based on `calloc', and
1773 at various places it does depend upon the initialization to 0. I
1774 have not tried to isolate the pertinent places, and all the former
1775 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1776 someone should address this issue.
1778 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1779 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1781 Adjust dependencies.
1782 * src/warshall.h: New file.
1785 2000-10-02 Akim Demaille <akim@epita.fr>
1787 Various anti-`extern in *.c' changes.
1789 * src/system.h: Include `assert.h'.
1791 2000-10-02 Akim Demaille <akim@epita.fr>
1793 * src/state.h (nstates, final_state, first_state, first_shift)
1794 (first_reduction): Move their exportation from here...
1795 * src/LR0.h: to here.
1796 Adjust dependencies.
1797 * src/getargs.c (statisticsflag): New variable.
1798 Add support for `--statistics'.
1799 Adjust dependencies.
1801 Remove a lot of now useless `extern' statements in most files.
1803 2000-10-02 Akim Demaille <akim@epita.fr>
1805 * src/LR0.h: New file.
1808 2000-10-02 Akim Demaille <akim@epita.fr>
1810 * src/print.h: New file.
1812 * src/print.c: Formatting and ordering changes.
1813 (verbose, terse): Replace with...
1814 (print_results): this new function.
1815 Adjust dependencies.
1817 2000-10-02 Akim Demaille <akim@epita.fr>
1819 * src/conflicts.c (conflict_report): New function.
1820 (conflict_log, verbose_conflict_log): Replace with...
1821 (print_conflicts): this function.
1822 Adjust dependencies.
1823 * src/conflicts.h: New file.
1824 Propagate its inclusion.
1826 2000-10-02 Akim Demaille <akim@epita.fr>
1828 * src/nullable.h: New file.
1829 Propagate its inclusion.
1830 * src/nullable.c: Formatting changes.
1832 2000-10-02 Akim Demaille <akim@epita.fr>
1834 * src/reduce.h: New file.
1835 Propagate its inclusion.
1836 * src/reduce.c: Topological sort and other formatting changes.
1837 (bool, TRUE, FALSE): Move their definition to...
1838 * src/system.h: here.
1840 2000-10-02 Akim Demaille <akim@epita.fr>
1842 * src/files.c: Formatting changes.
1843 (tryopen, tryclose, openfiles): Rename as...
1844 (xfopen, xfclose, open_files): this.
1845 (stringappend): static.
1846 * src/files.h: Complete the list of exported symbols.
1849 2000-10-02 Akim Demaille <akim@epita.fr>
1851 * src/reader.h: New file.
1852 Propagate its use instead of tedious list of `extern' and
1854 * src/reader.c: Formatting changes, topological sort,
1857 2000-10-02 Akim Demaille <akim@epita.fr>
1859 * src/lex.h: Prototype `lex.c' exported functions.
1860 * src/reader.c: Adjust.
1861 * src/lex.c: Formatting changes.
1862 (safegetc): Rename as...
1865 2000-10-02 Akim Demaille <akim@epita.fr>
1867 * src/lalr.h: New file.
1868 Propagate its inclusion instead of prototypes and `extern'.
1869 * src/lalr.c: Formatting changes, topological sorting etc.
1871 2000-10-02 Akim Demaille <akim@epita.fr>
1873 * src/output.c (token_actions): Introduce a temporary array,
1874 YYDEFACT, that makes it possible for this function to use
1877 2000-10-02 Akim Demaille <akim@epita.fr>
1879 `user_toknums' is output as a `short[]' in `output.c', while it is
1880 defined as a `int[]' in `reader.c'. For consistency with the
1881 other output tables, `user_toknums' is now defined as a table of
1884 * src/reader.c (user_toknums): Be a short table instead of an int
1886 Adjust dependencies.
1888 Factor the short table outputs.
1890 * src/output.c (output_short_table): New function.
1891 * src/output.c (output_gram, output_stos, output_rule_data)
1892 (output_base, output_table, output_check): Use it.
1894 2000-10-02 Akim Demaille <akim@epita.fr>
1896 * src/output.c (output): Topological sort of the functions, in
1897 order to get rid of the `static' prototypes.
1898 No longer use `register'.
1899 * src/output.h: New file.
1900 Propagate its inclusion in files explicitly prototyping functions
1903 2000-09-21 Akim Demaille <akim@epita.fr>
1905 * src/atgeneral.m4: Update from Autoconf.
1907 2000-09-21 Akim Demaille <akim@epita.fr>
1909 * src/closure.h: New file.
1910 * src/closure.c: Formatting changes, topological sort over the
1911 functions, use of closure.h.
1912 (initialize_closure, finalize_closure): Rename as...
1913 (new_closure, free_closure): these. Adjust dependencies.
1914 * src/LR0.c: Formatting changes, topological sort, use of
1916 (initialize_states): Rename as...
1918 * src/Makefile.am (noinst_HEADERS): Adjust.
1920 2000-09-20 Akim Demaille <akim@epita.fr>
1922 * src/acconfig.h: Don't protect config.h against multiple
1924 Don't define PARAMS.
1925 * src/system.h: Define PARAMS.
1926 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1927 purpose of config.h. system.h must not try to fix wrong
1928 definitions in config.h.
1930 2000-09-20 Akim Demaille <akim@epita.fr>
1932 * src/derives.h: New file.
1933 * src/main.c, src/derives.h: Use it.
1935 * src/Makefile.am (noinst_HEADERS): Adjust.
1937 2000-09-20 Akim Demaille <akim@epita.fr>
1939 * tests/atgeneral.m4: Update from Autoconf.
1940 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1941 (AT_CHECK_CALC): New macros.
1942 Use these macros to test bison with options `', `--raw',
1943 `--debug', `--yacc', `--yacc --debug'.
1945 2000-09-19 Akim Demaille <akim@epita.fr>
1947 * src/output.c: Formatting changes.
1948 * src/machine.h: Remove, leaving its contents in...
1949 * src/system.h: here.
1951 Adjust all dependencies on stdio.h and machine.h.
1952 * src/getargs.h: New file.
1953 Let all `extern' declarations about getargs.c be replaced with
1954 inclusion of `getargs.h'.
1955 * src/Makefile.am (noinst_HEADERS): Adjust.
1957 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1959 (yyerror): Returns void, not int.
1960 * doc/bison.texinfo: Formatting changes.
1962 2000-09-19 Akim Demaille <akim@epita.fr>
1964 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1967 2000-09-18 Akim Demaille <akim@epita.fr>
1969 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1970 * src/Makefile.am (INCLUDES): Don't.
1971 Be ready to fetch headers in lib/.
1973 2000-09-18 Akim Demaille <akim@epita.fr>
1975 * doc/bison.texinfo: Update the copyright.
1976 ANSIfy and GNUify the examples.
1977 Remove the old menu.
1979 2000-09-18 Akim Demaille <akim@epita.fr>
1981 First set of tests: use the `calc' example from the documentation.
1983 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1984 is defined only when YYDEBUG is.
1985 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1986 * src/files.c (tryopen, tryclose): Formatting changes.
1987 Move to the top and be static.
1988 * src/reader.c (read_signed_integer): Likewise.
1989 * tests/calc.m4: New file.
1990 * Makefile.am, suite.m4: Adjust.
1991 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1993 2000-09-18 Akim Demaille <akim@epita.fr>
1995 Add support for an Autotest test suite for Bison.
1997 * m4/m4.m4, m4/atconfig.m4: New files.
1998 * m4/Makefile.am (EXTRA_DIST): Adjust.
1999 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2001 * src/getargs.c: Display a more standard --version message.
2002 * src/reader.c (reader): Formatting changes.
2003 No longer depend upon VERSION_STRING.
2004 * configure.in: No longer use `dnl'.
2005 Set up the test suite and the new directory `tests/.
2006 (VERSION_STRING): Remove.
2008 2000-04-14 Akim Demaille <akim@epita.fr>
2010 * src/reader.c (copy_comment2): New function, same as former
2011 `copy_comment', but outputs into two FILE *.
2012 (copy_comment): Use it.
2013 (parse_union_decl): Use it.
2014 (get_type, parse_start_decl): Use the same `invalid' message.
2015 (parse_start_decl, parse_union_decl): Use the same `multiple'
2017 (parse_union_decl, copy_guard, copy_action): Use the same
2018 `unmatched' message.
2019 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2021 2000-03-31 Akim Demaille <akim@epita.fr>
2023 * src/files.c (tryopen, tryclose): Move to the top.
2026 2000-03-31 Akim Demaille <akim@epita.fr>
2028 * src/main.c (main): Don't call `done', exit does it.
2030 2000-03-31 Akim Demaille <akim@epita.fr>
2032 * allocate.c: s/return (foo)/return foo/.
2035 * output.c: Likewise.
2036 * reader.c: Likewise.
2037 * symtab.c: Likewise.
2038 * vmsgetargs.c: Likewise.
2040 2000-03-31 Akim Demaille <akim@epita.fr>
2042 Clean up the error reporting functions.
2044 * src/report.c: New file.
2045 * src/report.h: Likewise.
2046 * src/Makefile.am: Adjust.
2047 * m4/error.m4: New file.
2048 * m4/Makefile.am: Adjust.
2049 * configure.in (jm_PREREQ_ERROR): Call it.
2050 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2052 (fatal, fatals): Remove. All callers use complain.c::fatal.
2053 (warn, warni, warns, warnss, warnss): Remove. All callers use
2054 complain.c::complain.
2055 (toomany): Remove, use fatal instead.
2056 * src/files.c (done): No argument, use complain_message_count.
2057 * src/main.c (main): Register `done' to `atexit'.
2059 * src/getargs.c (usage): More `fputs', less `fprintf'.
2061 2000-03-28 Akim Demaille <akim@epita.fr>
2063 * lib/: New directory.
2064 * Makefile.am (SUBDIRS): Adjust.
2065 * configure.in: Adjust.
2066 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2068 * src/alloca.c: Moved to lib/.
2069 * src/getopt.c: Likewise.
2070 * src/getopt1.c: Likewise.
2071 * src/getopt.h: Likewise.
2072 * src/ansi2knr.c: Likewise.
2073 * src/ansi2knr.1: Likewise.
2074 * src/Makefile.am: Adjust.
2075 * lib/Makefile.am: New file.
2077 2000-03-28 Akim Demaille <akim@epita.fr>
2079 * src/getargs.c (usage): Refresh the help message.
2081 2000-03-17 Akim Demaille <akim@epita.fr>
2083 * src/getopt1.c: Updated from textutils 2.0e
2084 * src/getopt.c: Likewise.
2085 * src/getopt.h: Likewise.
2087 2000-03-17 Akim Demaille <akim@epita.fr>
2089 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2090 the file name, not the whole `#line LINE FILE'.
2092 2000-03-17 Akim Demaille <akim@epita.fr>
2094 On syntax errors, report the token on which we choked.
2096 * src/bison.s1 (yyparse): In the label yyerrlab, when
2097 YYERROR_VERBOSE, add yychar in msg.
2099 2000-03-17 Akim Demaille <akim@epita.fr>
2101 * src/reader.c (copy_at): New function.
2102 (copy_guard): Use it.
2103 (copy_action): Use it.
2105 2000-03-17 Akim Demaille <akim@epita.fr>
2107 Be kind to translators, save some useless translations.
2109 * src/main.c (banner): New function.
2110 (fatal_banner): Use it.
2111 (warn_banner): Use it.
2113 2000-03-17 Akim Demaille <akim@epita.fr>
2115 * src/reader.c (copy_definition): Use copy_string and
2116 copy_comment. Removed now unused `match', `ended',
2118 (copy_comment, copy_string): Moved, to be visible from
2121 2000-03-17 Akim Demaille <akim@epita.fr>
2123 * src/reader.c (copy_string): Declare `static inline'. No
2124 problems with inline, since it is checked by configure.
2125 (copy_comment): Likewise.
2127 2000-03-17 Akim Demaille <akim@epita.fr>
2129 * src/reader.c (packsymbols): Formatting changes.
2131 2000-03-17 Akim Demaille <akim@epita.fr>
2133 * src/reader.c (copy_comment): New function, factored out from:
2134 (copy_action): Use it. Removed now unused `match', `ended',
2136 (copy_guard): Likewise.
2138 2000-03-17 Akim Demaille <akim@epita.fr>
2140 * src/reader.c (copy_string): New function, factored out from:
2141 (copy_action): Use it.
2142 (copy_guard): Likewise.
2144 2000-03-17 Akim Demaille <akim@epita.fr>
2146 Change the handling of @s so that they behave exactly like $s.
2147 There is now a pseudo variable @$ (readble and writable), location
2148 of the lhs of the rule (by default ranging from the location of
2149 the first symbol of the rhs, to the location of the last symbol,
2150 or, if the rhs is empty, YYLLOC).
2152 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2154 (yyparse): When providing a default semantic action, provide a
2155 default location action.
2156 (after the $): No longer change `*YYLSP', just stack YYLOC the
2157 same way you stack YYVAL.
2158 * src/reader.c (read_declarations): Use warns.
2159 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2160 (copy_action, case '@'): Likewise.
2161 Use a standard error message, to save useless work from
2164 2000-03-17 Akim Demaille <akim@epita.fr>
2166 * src/bison.s1: Formatting and cosmetics changes.
2167 * src/reader.c: Likewise.
2168 Update the Copyright notice.
2170 2000-03-17 Akim Demaille <akim@epita.fr>
2172 * src/bison.s1 (#line): All set to `#line' only, since the
2173 Makefile now handles them.
2175 2000-03-16 Akim Demaille <akim@epita.fr>
2177 * src/output.c (output_rule_data): Output the documentation of
2179 (Copyright notice): Update.
2182 2000-03-16 Akim Demaille <akim@epita.fr>
2184 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2185 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2186 One `#if YYDEBUG' remains, since it uses variables which are
2187 defined only if `YYDEBUG != 0'.
2189 2000-03-16 Akim Demaille <akim@epita.fr>
2191 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2192 and related variables so that the similarities are highlighted.
2194 2000-03-16 Akim Demaille <akim@epita.fr>
2196 * src/bison.s1: Properly indent CPP directives.
2198 2000-03-16 Akim Demaille <akim@epita.fr>
2200 * src/bison.s1: Properly indent the `alloca' CPP section.
2202 2000-03-16 Akim Demaille <akim@epita.fr>
2204 Do not hard code values of directories in `configure.in'.
2205 Update the `configure' tool chain.
2207 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2209 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2210 (AC_OUTPUT): Add m4/Makefile.
2211 Bump to bison 1.28a, 1.29 has never been released.
2212 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2213 handled via src/Makefile.am.
2214 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2215 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2217 * Makefile.am (SUBDIRS): Add m4.
2218 (ACLOCAL_AM_FLAGS): New variable.
2219 (AUTOMAKE_OPTIONS): Add check-news.
2220 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2221 the proper line number and file name.
2222 (DEFS): Propagate the location of bison library files and of the
2224 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2226 * acinclude.m4: Remove, replaced by the directory m4.
2227 * m4/Makefile.am (EXTRA_DIST): New variable.
2228 * m4/gettext.m4: New file, from the fileutils.
2229 * m4/lcmessage.m4: Likewise
2230 * m4/progtest.m4: Likewise.
2231 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2233 2000-03-10 Akim Demaille <akim@epita.fr>
2236 Formatting changes of various comments.
2237 Respect the GNU coding standards at various places.
2238 Don't use `_()' when no translation is needed.
2240 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2243 OS/2 honors TMPDIR environment variable.
2245 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2247 * doc/bison.texinfo: Tweaked spelling and grammar.
2249 Removed reference to price of printed copy.
2250 Mention BISON_SIMPLE and BISON_HAIRY.
2252 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2254 * configure.in, NEWS:
2255 Bison 1.29 released.
2257 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2259 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2260 Added reference card.
2262 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2264 * po/ru.po: Added Russian translation.
2266 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2268 * configure.in: Added Russian translation.
2270 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2272 * configure.in, NEWS, README:
2273 Released version 1.28.
2275 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2278 Squashed redefinition warning on some systems.
2280 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2281 Have configure build version string instead of relying on ANSI string
2284 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2286 * po/POTFILES.in: Got rid of version.c.
2288 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2290 * acconfig.h, configure.in:
2291 Have configure build version string instead of relying on ANSI string
2294 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2297 Dropped mention of `+' for long-named options.
2299 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2301 * src/files.c: Added <unistd.h> for unlink().
2303 * src/Makefile.am, src/system.h:
2306 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2308 * README: Added a FAQ list.
2310 * configure.in, acconfig.h:
2313 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2315 * doc/FAQ, doc/Makefile.am:
2318 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2320 * src/alloc.h, src/symtab.h, src/version.c:
2321 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2323 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2325 * src/.cvsignore, src/Makefile.am:
2326 Reorganized: sources in `src', documentation in `doc'.
2328 * src/lex.c (literalchar):
2329 fixed the code for escaping double quotes (thanks
2332 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2334 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2335 Adjusted paths to reflect directory reorganization.
2337 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2339 * doc/.cvsignore, doc/Makefile.am:
2340 Reorganized: sources in `src', documentation in `doc'.
2342 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2345 Updated AC_INIT file to reflect directory reorganization.
2347 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2348 Reorganized: sources in `src', documentation in `doc'.
2350 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2353 Don't declare calloc() and realloc() if not necessary.
2355 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2357 * configure.in, acconfig.h, acinclude.m4:
2358 Don't declare calloc() and realloc() if not necessary.
2360 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2362 * po/.cvsignore: Added i18n support.
2364 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2366 * acconfig.h, configure.in, Makefile.am:
2369 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2371 * src/bison.s1: Fixed #line numbers.
2373 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2375 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2376 Added PO files from Translation Project.
2378 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2381 Added support for non-ANSI compilers (ansi2knr).
2383 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2385 * configure.in: Bumped version number to 1.27.
2388 Added `bison.simple' to list of files removed by `make distclean'.
2390 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2392 * src/files.c, src/files.h:
2393 Defined locations of parser files in config.h instead of Makefile.
2395 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2397 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2398 Defined locations of parser files in config.h instead of Makefile.
2400 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2403 Removed inappropriate use of $< macro.
2405 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2407 * po/Makefile.in.in, po/POTFILES.in:
2408 Add `po' directory skeleton.
2410 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2412 * README: Document help-bison list.
2414 * configure.in: Add check for mkstemp().
2416 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2418 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2419 Hush a few compiler warnings.
2422 Add tryclose(), which verifies that fclose was successful.
2423 Hush a couple of compiler warnings.
2425 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2427 * Makefile.am, OChangeLog:
2428 ChangeLog is now automatically generated. Include the old version as
2431 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2433 * 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:
2436 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2438 * doc/bison.texinfo: Fix formatting glitch.
2440 * doc/bison.texinfo: Update FSF address.
2442 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2444 * acconfig.h: Update FSF address.
2446 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2449 Don't define PACKAGE here, since config.h defines it.
2451 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2453 * src/reader.c: Update copyright date.
2456 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2457 favor of output directly to stderr (avoids buffer overruns).
2459 * src/reader.c: Some checks for premature EOF.
2461 * 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:
2462 Use prototypes if the compiler understands them.
2464 * src/files.c: Honor TMPDIR on Unix hosts.
2465 Use prototypes if the compiler understands them.
2468 Fix a couple of buffer overrun bugs.
2469 Use prototypes if the compiler understands them.
2471 * src/system.h: Include unistd.h and ctype.h.
2472 Use #ifdef instead of #if for NLS symbols.
2474 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2476 * doc/bison.texinfo:
2477 Delete comment "consider using @set for edition number, etc..." since
2478 we now are doing so.
2480 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2483 Use prototypes if the compiler understands them.
2485 * NEWS: Document 1.26 highlights.
2487 * Makefile.am: Require Automake 1.3 or later.
2490 Use prototypes if the compiler understands them.
2492 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2495 Use VERSION symbol from automake for version number.
2497 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2499 * acconfig.h, configure.in, version.cin:
2500 Use VERSION symbol from automake for version number.
2502 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2505 Distribute original version of simple parser (bison.s1), not built
2506 version (bison.simple).
2508 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2510 * doc/bison.texinfo: Add info dir entry.
2512 * doc/bison.texinfo:
2513 Let automake put version number into documentation.
2515 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2517 * src/bison.cld, src/build.com, src/vmshlp.mar:
2518 Add non-RCS files from /gd/gnu/bison.
2520 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2523 Document the BISON_HAIRY and BISON_SIMPLE variables.
2525 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2527 * src/version.c: Build version.c automatically.
2530 Fix token numbering (used to start at 258, not 257).
2532 * src/system.h: Include config.h.
2534 * src/getargs.c: Update bug report address.
2536 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2537 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2539 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2542 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2544 * configure.in, version.cin:
2545 Build version.c automatically.
2547 * AUTHORS: Add AUTHORS file.
2549 * README: Update bug report address.
2552 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2554 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2557 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2559 * doc/bison.texinfo: Clean up some formatting.
2561 1998-05-05 Richard Stallman <rms@gnu.org>
2563 * doc/bison.texinfo:
2564 Explain better why to make a pure parser.
2566 1998-01-05 Richard Stallman <rms@gnu.org>
2568 * src/files.c (openfiles):
2569 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2570 find a temporary directory, if possible. Do not unlink files while
2573 1997-08-25 Richard Stallman <rms@gnu.org>
2575 * src/reader.c (stack_offset;):
2576 Change some warni to warns.
2578 * src/lex.c (literalchar): Use warns, not warni.
2580 1997-06-28 Richard Stallman <rms@gnu.org>
2582 * src/bison.s1: Add a Bison version comment.
2584 * src/main.c (fatal, warn, berror):
2587 1997-06-28 Richard Stallman <rms@gnu.org>
2589 * Makefile.in (bison_version): New variable.
2590 (dist): Use that variable.
2591 (bison.s1): Substitute the Bison version into bison.simple.
2593 * bison.simple: Add a Bison version comment.
2595 1997-06-18 Richard Stallman <rms@gnu.org>
2597 * src/main.c (fatal, warn, berror):
2598 Make error messages standard.
2599 (toomany): Improve error message text.
2601 * 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:
2602 new.h renamed to alloc.h.
2604 1997-06-18 Richard Stallman <rms@gnu.org>
2606 * Makefile.in: new.h renamed to alloc.h.
2608 1997-05-24 Richard Stallman <rms@gnu.org>
2610 * src/lex.c (literalchar):
2611 Fix the code for escaping \, " and '.
2613 (lex): Avoid trouble when there are many chars
2614 to discard in a char literal with just several chars in it.
2616 1997-05-17 Richard Stallman <rms@gnu.org>
2619 Use malloc, if using alloca is troublesome.
2620 (YYSTACK_USE_ALLOCA): New flag macro.
2621 Define it for some systems and compilers.
2622 (YYSTACK_ALLOC): New macro.
2623 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2624 If it was malloc'd, free it.
2626 1997-05-17 Richard Stallman <rms@gnu.org>
2629 Use malloc, if using alloca is troublesome.
2630 (YYSTACK_USE_ALLOCA): New flag macro.
2631 Define it for some systems and compilers.
2632 (YYSTACK_ALLOC): New macro.
2633 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2634 If it was malloc'd, free it.
2636 1997-04-23 Richard Stallman <rms@gnu.org>
2639 (alloca) [__hpux]: Always define as __builtin_alloca.
2641 1997-04-23 Richard Stallman <rms@gnu.org>
2644 (alloca) [__hpux]: Always define as __builtin_alloca.
2646 1997-04-22 Richard Stallman <rms@gnu.org>
2649 [__hpux]: Include alloca.h (right for HPUX 10)
2650 instead of declaring alloca (right for HPUX 9).
2652 * src/bison.s1 (__yy_memcpy):
2653 Declare arg `count' as unsigned int.
2654 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2656 1997-04-22 Richard Stallman <rms@gnu.org>
2659 [__hpux]: Include alloca.h (right for HPUX 10)
2660 instead of declaring alloca (right for HPUX 9).
2662 * bison.simple (__yy_memcpy):
2663 Declare arg `count' as unsigned int.
2664 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2666 1997-01-03 Richard Stallman <rms@gnu.org>
2668 * src/allocate.c: [__STDC__ or _MSC_VER]:
2669 Declare calloc and realloc to return void *.
2671 1997-01-02 Richard Stallman <rms@gnu.org>
2674 [_MSC_VER]: Include stdlib.h and process.h.
2675 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2677 * src/main.c (main): Return FAILURE as a value.
2678 (printable_version): Declare arg as int, not char.
2680 1997-01-02 Richard Stallman <rms@gnu.org>
2682 * Makefile.in (dist):
2683 Explicitly check for symlinks, and copy them.
2685 1996-12-19 Richard Stallman <rms@gnu.org>
2688 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2690 1996-12-18 Paul Eggert <eggert@gnu.org>
2692 * src/bison.s1 (yyparse):
2693 If __GNUC__ and YYPARSE_PARAM are both defined,
2694 declare yyparse to have a void * argument.
2696 1996-12-18 Paul Eggert <eggert@gnu.org>
2698 * bison.simple (yyparse):
2699 If __GNUC__ and YYPARSE_PARAM are both defined,
2700 declare yyparse to have a void * argument.
2702 1996-12-17 Richard Stallman <rms@gnu.org>
2704 * src/reduce.c (nbits): Add some casts.
2706 1996-08-12 Richard Stallman <rms@gnu.org>
2708 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2710 1996-08-12 Richard Stallman <rms@gnu.org>
2712 * bison.simple: Test _MSDOS as well as _MSDOS_.
2714 1996-07-31 Richard Stallman <rms@gnu.org>
2717 [__sun && __i386]: Include alloca.h.
2719 1996-07-31 Richard Stallman <rms@gnu.org>
2722 [__sun && __i386]: Include alloca.h.
2724 1996-07-30 Richard Stallman <rms@gnu.org>
2726 * src/bison.s1: Comment change.
2728 * src/bison.s1: Test _MSDOS_, not MSDOS.
2730 1996-07-30 Richard Stallman <rms@gnu.org>
2732 * bison.simple: Comment change.
2734 * bison.simple: Test _MSDOS_, not MSDOS.
2736 1996-06-01 Richard Stallman <rms@gnu.org>
2738 * 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:
2739 Insert `_' macro around many string constants.
2742 Insert `_' macro around many string constants.
2744 (main): Call setlocale, bindtextdomain and textdomain.
2746 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2747 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2748 [ENABLE_NLS]: Include libintl.h.
2749 [ENABLE_NLS] (gettext): Define.
2750 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2751 (N_, PACKAGE, LOCALEDIR): New macros.
2753 1996-06-01 Richard Stallman <rms@gnu.org>
2755 * POTFILES.in: New file.
2757 * Makefile.in (allocate.o):
2758 Define target explicitly.
2760 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2761 (LDFLAGS): Set to @LDFLAGS@.
2762 (configure): Run autoconf only if preceding `cd' succeeds.
2763 (bison.s1): Redirect output to temporary file then move the
2764 temporary to the target, rather than redirecting directly to bison.s1.
2765 (clean): Remove config.status and config.log.
2766 (distclean): Don't remove config.status here.
2768 1996-05-12 Richard Stallman <rms@gnu.org>
2771 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2773 1996-05-12 Richard Stallman <rms@gnu.org>
2776 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2778 1996-05-11 Richard Stallman <rms@gnu.org>
2780 * src/bison.s1 (__yy_memcpy):
2781 Really reorder the args, as was supposedly done on Feb 14 1995.
2782 (yyparse): Calls changed accordingly.
2784 1996-05-11 Richard Stallman <rms@gnu.org>
2786 * Makefile.in (dist): Don't use $(srcdir).
2788 * bison.simple (__yy_memcpy):
2789 Really reorder the args, as was supposedly done on Feb 14 1995.
2790 (yyparse): Calls changed accordingly.
2792 1996-01-27 Richard Stallman <rms@gnu.org>
2794 * src/output.c (output_rule_data):
2795 Test YYERROR_VERBOSE in the conditional
2796 around the definition of ttyname.
2798 1995-12-29 Richard Stallman <rms@gnu.org>
2801 Fix line numbers in #line commands.
2803 1995-12-29 Richard Stallman <rms@gnu.org>
2806 Fix line numbers in #line commands.
2808 1995-12-27 Richard Stallman <rms@gnu.org>
2810 * src/bison.s1 (YYPARSE_PARAM_DECL):
2811 In C++, make it always null.
2812 (YYPARSE_PARAM_ARG): New macro.
2813 (yyparse): Use YYPARSE_PARAM_ARG.
2815 1995-12-27 Richard Stallman <rms@gnu.org>
2817 * bison.simple (YYPARSE_PARAM_DECL):
2818 In C++, make it always null.
2819 (YYPARSE_PARAM_ARG): New macro.
2820 (yyparse): Use YYPARSE_PARAM_ARG.
2822 1995-11-29 Richard Stallman <rms@gnu.org>
2824 * doc/bison.texinfo:
2825 Describe literal string tokens, %raw, %no_lines, %token_table.
2827 1995-11-29 Daniel Hagerty <hag@gnu.org>
2829 * doc/bison.texinfo: Fixed update date
2831 1995-10-16 Richard Stallman <rms@gnu.org>
2833 * src/version.c: Version 1.25.
2835 1995-10-16 Richard Stallman <rms@gnu.org>
2837 * NEWS: *** empty log message ***
2839 1995-10-16 Richard Stallman <rms@gnu.org>
2841 * doc/bison.1, doc/bison.rnh:
2844 1995-10-15 Richard Stallman <rms@gnu.org>
2846 * src/vmsgetargs.c, src/getargs.c:
2847 Added -n, -k, and -raw switches.
2848 (noparserflag, toknumflag, rawtoknumflag): New variables.
2850 * src/symtab.h (SALIAS):
2851 New #define for adding aliases to %token.
2852 (struct bucket): Added `alias' field.
2854 * src/reduce.c (reduce_grammar):
2855 Revise error message.
2856 (print_notices): Remove final `.' from error message.
2858 * src/reader.c (reader_output_yylsp):
2860 (readgram): Use `#if 0' around code that accepted %command
2861 inside grammar rules: The documentation doesn't allow it,
2862 and it will fail since the %command processors scan for the next %.
2863 (parse_token_decl): Extended the %token
2864 declaration to allow a multi-character symbol as an alias.
2865 (parse_thong_decl): New function.
2866 (read_declarations): Added %thong declarations.
2867 (read_declarations): Handle NOOP to deal with allowing
2868 % declarations as another means to specify the flags.
2869 (readgram): Allow %prec prior to semantics embedded in a rule.
2870 (skip_to_char, read_declarations, copy_definition)
2871 (parse_token_decl, parse_start_decl, parse_type_decl)
2872 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2873 (get_type_name, copy_guard, copy_action, readgram)
2874 (get_type, packsymbols): Revised most error messages.
2875 Changed `fatal' to `warnxxx' to avoid aborting for error.
2876 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2877 (read_declarations): Improve the error message for
2878 an invalid character. Do not abort.
2879 (read_declarations, copy_guard, copy_action): Use
2880 printable_version to avoid unprintable characters in printed output.
2881 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2882 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2883 Allow the type of a non-terminal can be given
2884 more than once, as long as all specifications give the same type.
2887 (output_headers, output_trailers, output, output_gram)
2888 (output_rule_data): Implement noparserflag variable.
2889 Implement toknumflag variable.
2890 (output): Call reader_output_yylsp to output LTYPESTR.
2892 * src/main.c (main):
2893 If reader sees an error, don't process the grammar.
2894 (fatals): Updated to not use VARARGS1.
2895 (printable_version, int_to_string, warn, warni, warns, warnss)
2896 (warnsss): New error reporting functions. Avoid abort for error.
2899 Added THONG and NOOP for alias processing.
2900 Added SETOPT for the new code that allows setting options with %flags.
2903 Include getopt.h. Add some extern decls.
2904 (safegetc): New function to deal with EOF gracefully.
2905 (literalchar); new function to deal with reading \ escapes.
2906 (lex): Use literalchar.
2907 (lex): Implemented "..." tokens.
2908 (literalchar, lex, parse_percent_token): Made tokenbuffer
2909 always contain the token. This includes growing the token
2910 buffer while reading an integer.
2911 (parse_percent_token): Replaced if-else statement with percent_table.
2912 (parse_percent_token): Added % declarations as another
2913 way to specify the flags -n, -l, and -r. Also added hooks for
2914 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2915 major changes to files.c.
2916 (lex) Retain in the incoming stream a character following
2918 (skip_white_space, lex): Revised most error messages
2919 and changed fatal to warn to avoid aborting.
2920 (percent_table): Added %thong declarations.
2922 * src/gram.h: Comment changes.
2924 * src/files.c (openfiles, open_extra_files, done):
2926 and actfile file. Handle noparserflag. Both for -n switch.
2928 * src/conflicts.c (resolve_sr_conflict):
2929 Remove use of alloca.
2931 1995-06-01 Jim Meyering <meyering@gnu.org>
2933 * doc/bison.texinfo: *** empty log message ***
2935 1995-05-06 Richard Stallman <rms@gnu.org>
2937 * src/bison.s1: Comment change.
2939 1995-05-06 Richard Stallman <rms@gnu.org>
2941 * bison.simple: Comment change.
2943 1995-05-03 Richard Stallman <rms@gnu.org>
2945 * src/version.c: Version now 1.24.
2947 * src/bison.s1: Change distribution terms.
2949 * src/version.c: Version now 1.23.
2951 1995-05-03 Richard Stallman <rms@gnu.org>
2953 * doc/bison.texinfo:
2954 Rewrite "Conditions for Using Bison".
2955 Update version to 1.24.
2957 1995-05-03 Richard Stallman <rms@gnu.org>
2959 * bison.simple: Change distribution terms.
2961 1995-02-23 Richard Stallman <rms@gnu.org>
2963 * src/files.c: Test __VMS_POSIX as well as VMS.
2965 1995-02-14 Jim Meyering <meyering@gnu.org>
2967 * src/bison.s1 (__yy_memcpy):
2968 Renamed from __yy_bcopy to avoid
2969 confusion. Reverse FROM and TO arguments to be consistent with
2972 1995-02-14 Jim Meyering <meyering@gnu.org>
2974 * bison.simple (__yy_memcpy):
2975 Renamed from __yy_bcopy to avoid
2976 confusion. Reverse FROM and TO arguments to be consistent with
2979 1994-11-10 David J. MacKenzie <djm@gnu.org>
2985 * Makefile.in (DISTFILES): Include NEWS.
2987 * Makefile.in (DISTFILES):
2988 Include install-sh, not install.sh.
2990 * configure.in: Update to Autoconf v2 macro names.
2992 1994-10-05 David J. MacKenzie <djm@gnu.org>
2994 * Makefile.in: fix typo
2996 * Makefile.in (prefix, exec_prefix):
2997 Let configure set them.
2999 1994-09-28 David J. MacKenzie <djm@gnu.org>
3001 * Makefile.in: Set datadir to $(prefix)/share.
3003 1994-09-15 Richard Stallman <rms@gnu.org>
3006 Update copyright notice and GPL version.
3008 1994-09-15 Richard Stallman <rms@gnu.org>
3011 Update copyright notice and GPL version.
3013 1994-07-12 Richard Stallman <rms@gnu.org>
3015 * src/reduce.c, src/reader.c:
3018 1994-05-05 David J. MacKenzie <djm@gnu.org>
3020 * Makefile.in: entered into RCS
3022 1994-03-26 Richard Stallman <rms@gnu.org>
3024 * src/bison.s1: entered into RCS
3026 1994-03-26 Richard Stallman <rms@gnu.org>
3028 * bison.simple: entered into RCS
3030 1994-03-25 Richard Stallman <rms@gnu.org>
3032 * src/main.c: entered into RCS
3034 1994-03-24 Richard Stallman <rms@gnu.org>
3036 * src/conflicts.c: entered into RCS
3038 1994-01-02 Richard Stallman <rms@gnu.org>
3040 * Makefile.in: *** empty log message ***
3042 1993-11-21 Richard Stallman <rms@gnu.org>
3044 * src/bison.s1: *** empty log message ***
3046 1993-11-21 Richard Stallman <rms@gnu.org>
3048 * doc/bison.texinfo: entered into RCS
3050 * doc/bison.texinfo: *** empty log message ***
3052 1993-11-21 Richard Stallman <rms@gnu.org>
3054 * bison.simple: *** empty log message ***
3056 1993-10-25 David J. MacKenzie <djm@gnu.org>
3058 * doc/bison.texinfo: *** empty log message ***
3060 1993-10-19 Richard Stallman <rms@gnu.org>
3062 * src/bison.s1: *** empty log message ***
3064 1993-10-19 Richard Stallman <rms@gnu.org>
3066 * bison.simple: *** empty log message ***
3068 1993-10-14 Richard Stallman <rms@gnu.org>
3070 * src/bison.s1: *** empty log message ***
3072 1993-10-14 Richard Stallman <rms@gnu.org>
3074 * bison.simple: *** empty log message ***
3076 1993-09-14 David J. MacKenzie <djm@gnu.org>
3078 * doc/bison.texinfo: *** empty log message ***
3080 1993-09-13 Noah Friedman <friedman@gnu.org>
3082 * Makefile.in: *** empty log message ***
3084 1993-09-10 Richard Stallman <rms@gnu.org>
3086 * src/conflicts.c: *** empty log message ***
3088 * src/system.h: entered into RCS
3090 1993-09-10 Richard Stallman <rms@gnu.org>
3092 * doc/bison.1: entered into RCS
3094 1993-09-06 Noah Friedman <friedman@gnu.org>
3096 * src/version.c: entered into RCS
3098 1993-09-06 Noah Friedman <friedman@gnu.org>
3100 * Makefile.in: *** empty log message ***
3102 1993-07-30 David J. MacKenzie <djm@gnu.org>
3104 * Makefile.in: *** empty log message ***
3106 1993-07-24 Richard Stallman <rms@gnu.org>
3108 * src/bison.s1: *** empty log message ***
3110 1993-07-24 Richard Stallman <rms@gnu.org>
3112 * bison.simple: *** empty log message ***
3114 1993-07-08 David J. MacKenzie <djm@gnu.org>
3116 * Makefile.in: *** empty log message ***
3118 1993-07-04 Richard Stallman <rms@gnu.org>
3120 * src/bison.s1: *** empty log message ***
3122 1993-07-04 Richard Stallman <rms@gnu.org>
3124 * bison.simple: *** empty log message ***
3126 1993-06-26 David J. MacKenzie <djm@gnu.org>
3128 * src/getargs.c: entered into RCS
3130 1993-06-26 David J. MacKenzie <djm@gnu.org>
3132 * doc/bison.texinfo: *** empty log message ***
3134 * doc/bison.1: New file.
3136 1993-06-25 Richard Stallman <rms@gnu.org>
3138 * src/getargs.c: New file.
3140 1993-06-16 Richard Stallman <rms@gnu.org>
3142 * src/bison.s1: *** empty log message ***
3144 1993-06-16 Richard Stallman <rms@gnu.org>
3146 * bison.simple: *** empty log message ***
3148 1993-06-03 Richard Stallman <rms@gnu.org>
3150 * src/bison.s1: New file.
3152 1993-06-03 Richard Stallman <rms@gnu.org>
3154 * doc/bison.texinfo: *** empty log message ***
3156 1993-06-03 Richard Stallman <rms@gnu.org>
3158 * bison.simple: New file.
3160 1993-05-19 Richard Stallman <rms@gnu.org>
3162 * doc/bison.texinfo: New file.
3164 1993-05-07 Noah Friedman <friedman@gnu.org>
3166 * Makefile.in: *** empty log message ***
3168 1993-04-28 Noah Friedman <friedman@gnu.org>
3170 * src/reader.c: *** empty log message ***
3172 1993-04-23 Noah Friedman <friedman@gnu.org>
3174 * src/alloc.h: entered into RCS
3176 1993-04-20 David J. MacKenzie <djm@gnu.org>
3178 * src/version.c: *** empty log message ***
3180 * src/files.c, src/allocate.c:
3183 * src/reader.c: *** empty log message ***
3185 * src/lex.c: entered into RCS
3187 * src/conflicts.c: New file.
3189 * src/symtab.c: entered into RCS
3191 * src/alloc.h: New file.
3193 * src/LR0.c: entered into RCS
3195 1993-04-18 Noah Friedman <friedman@gnu.org>
3197 * src/reader.c: New file.
3199 * src/version.c: *** empty log message ***
3201 1993-04-18 Noah Friedman <friedman@gnu.org>
3203 * Makefile.in: *** empty log message ***
3205 1993-04-17 Noah Friedman <friedman@gnu.org>
3207 * Makefile.in: *** empty log message ***
3209 1993-04-15 Richard Stallman <rms@gnu.org>
3211 * src/main.c, src/files.c:
3214 1993-04-15 Noah Friedman <friedman@gnu.org>
3216 * configure.in: entered into RCS
3218 * configure.in: *** empty log message ***
3220 * configure.in: New file.
3222 1993-04-14 Richard Stallman <rms@gnu.org>
3224 * Makefile.in: New file.
3226 1993-04-13 Richard Stallman <rms@gnu.org>
3228 * src/version.c: New file.
3230 1993-03-25 Richard Stallman <rms@gnu.org>
3232 * src/output.c: entered into RCS
3234 1992-09-25 Richard Stallman <rms@gnu.org>
3236 * configure.bat: entered into RCS
3238 1992-06-22 Richard Stallman <rms@gnu.org>
3240 * src/vmsgetargs.c: entered into RCS
3242 1992-06-22 Richard Stallman <rms@gnu.org>
3244 * doc/bison.rnh: entered into RCS
3246 1992-04-20 David J. MacKenzie <djm@gnu.org>
3248 * README: entered into RCS
3250 1992-01-22 Richard Stallman <rms@gnu.org>
3252 * src/machine.h: entered into RCS
3254 1991-12-21 Richard Stallman <rms@gnu.org>
3256 * src/lalr.c, src/closure.c:
3259 1991-12-20 Richard Stallman <rms@gnu.org>
3261 * src/state.h: entered into RCS
3263 1991-12-18 Richard Stallman <rms@gnu.org>
3265 * src/print.c, src/nullable.c, src/derives.c:
3268 1991-11-03 David J. MacKenzie <djm@gnu.org>
3270 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3273 1988-09-09 Richard Stallman <rms@gnu.org>
3275 * src/bison.hairy: entered into RCS
3277 1987-12-16 Richard Stallman <rms@gnu.org>
3279 * REFERENCES: entered into RCS