1 2001-11-23 Akim Demaille <akim@epita.fr>
3 * src/system.h: Include alloca.h.
4 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
6 2001-11-23 Akim Demaille <akim@epita.fr>
8 * src/print_graph.c (print_actions): Remove `rule', unused.
9 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
10 pacify GCC's signed < unsigned warnings.
11 * src/closure.c (itemsetsize): Likewise.
12 * src/reader.c (symbol_list_new): Static.
14 2001-11-23 Akim Demaille <akim@epita.fr>
16 Attaching lineno to buckets is stupid, since only one copy of each
17 symbol is kept, only the line of the first occurrence is kept too.
19 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
20 * src/reader.c (rline_allocated): Remove, unused.
21 (symbol_list): Have a `line' member.
22 (symbol_list_new): New.
24 * src/print.c (print_grammar): Output the rule line numbers.
25 * tests/regression.at (Solved SR Conflicts)
26 (Unresolved SR Conflicts): Adjust.
27 Reported by Hans Aberg.
29 2001-11-20 Akim Demaille <akim@epita.fr>
33 2001-11-20 Akim Demaille <akim@epita.fr>
36 * configure.in (ALL_LINGUAS): Adjust.
37 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
38 longer contains strings to translate.
40 2001-11-19 Akim Demaille <akim@epita.fr>
42 * src/conflicts.c (conflicts_print): Add a missing \n.
44 2001-11-19 Akim Demaille <akim@epita.fr>
46 * src/nullable.c (nullable_print): New.
47 (set_nullable): Call it when tracing.
48 Better locality of variables.
50 2001-11-19 Akim Demaille <akim@epita.fr>
52 * src/print.c (print_actions): Better locality of variables.
54 2001-11-19 Akim Demaille <akim@epita.fr>
56 * src/derives.c (print_derives): Fix and enrich.
57 * src/closure.c (print_fderives): Likewise.
59 2001-11-19 Akim Demaille <akim@epita.fr>
61 * src/closure.c (itemsetend): Remove, replaced with...
64 2001-11-19 Akim Demaille <akim@epita.fr>
66 * src/LR0.c (kernel_end): Remove, replaced with...
69 2001-11-19 Akim Demaille <akim@epita.fr>
71 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
74 2001-11-19 Akim Demaille <akim@epita.fr>
76 * src/closure.c (closure): Use arrays instead of pointers to clarify.
78 2001-11-19 Akim Demaille <akim@epita.fr>
80 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
82 * src/LR0.c: Likewise.
83 (allocate_itemsets): Use arrays instead of pointers to clarify.
85 2001-11-19 Akim Demaille <akim@epita.fr>
87 * src/getargs.c (statistics_flag): Replace with...
89 (longopts): Accept --trace instead of --statistics.
90 * src/getargs.h: Adjust.
91 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
92 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
94 2001-11-19 Akim Demaille <akim@epita.fr>
96 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
97 pointers to clarify the code.
98 (save_reductions, save_shifts): Factor common parts of alternatives.
100 2001-11-19 Akim Demaille <akim@epita.fr>
102 * src/LR0.c (new_state, get_state): Complete TRACE code.
103 * src/closure.c: Include `reader.h' to get `tags', needed by the
105 Rename the conditional DEBUG as TRACE.
106 Output consistently TRACEs to stderr, not stdout.
107 * src/derives.c: Likewise.
108 * src/reduce.c: (inaccessable_symbols): Using if is better style
110 Use `#if TRACE' instead of `#if 0' for tracing code.
112 2001-11-19 Akim Demaille <akim@epita.fr>
114 * src/system.h (LIST_FREE, shortcpy): New.
115 * src/LR0.c: Use them.
116 * src/output.c (free_itemsets, free_reductions, free_shifts):
117 Remove, replaced by LIST_FREE.
119 2001-11-19 Akim Demaille <akim@epita.fr>
121 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
122 (REDUCTIONS_ALLOC): New.
123 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
126 2001-11-19 Akim Demaille <akim@epita.fr>
128 * src/LR0.c (new_state): Complete trace code.
129 * src/nullable.c (set_nullable): Don't translate traces.
131 2001-11-19 Akim Demaille <akim@epita.fr>
133 * src/print_graph.c (print_core): Better locality of variables.
134 * src/print.c (print_core): Likewise.
136 2001-11-19 Akim Demaille <akim@epita.fr>
138 * src/vcg.c: You do the output, so you are responsible of the
139 handling of VCG syntax, in particular: use quotearg.
140 * src/print_graph.c: Don't.
141 (print_actions): Don't output the actions as part of the nodes,
142 since that's the job of the edges.
143 (print_state): Don't output by hand: fill the node description,
144 and ask for its output.
146 2001-11-19 Akim Demaille <akim@epita.fr>
148 * src/bison.simple (yyparse): When verbosely reporting an error,
149 no longer put additional quotes around token names.
150 * tests/calc.at: Adjust.
152 2001-11-19 Akim Demaille <akim@epita.fr>
154 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
155 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
156 * src/output.c: Adjust.
158 2001-11-19 Akim Demaille <akim@epita.fr>
160 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
162 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
164 2001-11-19 Akim Demaille <akim@epita.fr>
166 * src/gram.h (rule_t): New.
168 (rrhs, rlhs): Remove, part of state_t.
169 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
170 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
171 * src/reader.c, src/reduce.c: Adjust.
173 2001-11-19 Akim Demaille <akim@epita.fr>
175 * src/reader.c (symbols_output): New, extracted from...
179 2001-11-19 Akim Demaille <akim@epita.fr>
181 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
182 (maxrhs): this new function.
184 2001-11-19 Akim Demaille <akim@epita.fr>
186 * src/lalr.c (F): New macro to access the variable F.
189 2001-11-19 Akim Demaille <akim@epita.fr>
191 * src/lalr.h (LA): New macro to access the variable LA.
192 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
193 * src/lalr.c: Adjust.
195 2001-11-19 Akim Demaille <akim@epita.fr>
197 * src/lalr.c (initialize_LA): Only initialize LA. Let...
198 (set_state_table): handle the `lookaheads' members.
200 2001-11-19 Akim Demaille <akim@epita.fr>
202 * src/lalr.h (lookaheads): Removed array, whose contents is now
204 (state_t): this structure.
205 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
208 2001-11-19 Akim Demaille <akim@epita.fr>
210 * src/lalr.h (consistent): Removed array, whose contents is now
212 (state_t): this structure.
213 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
216 2001-11-19 Akim Demaille <akim@epita.fr>
218 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
219 contents are now members of...
220 (state_t): this structure.
221 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
224 2001-11-19 Akim Demaille <akim@epita.fr>
226 * src/lalr.h (state_t): New.
227 (state_table): Be a state_t * instead of a core **.
228 (accessing_symbol): Remove, part of state_t.
229 * src/lalr.c: Adjust.
230 (set_accessing_symbol): Merge into...
231 (set_state_table): this.
232 * src/print_graph.c, src/conflicts.c: Adjust.
234 2001-11-14 Akim Demaille <akim@epita.fr>
238 2001-11-14 Akim Demaille <akim@epita.fr>
240 * tests/calc.at, tests/output.at, tests/regression.at,
241 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
242 now the tests are run in private dirs, therefore AC_CLEANUP and
243 family can be simplified to 0-ary.
244 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
245 use abs. path to find config.h.
247 2001-11-14 Akim Demaille <akim@epita.fr>
249 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
250 stderr, there can be way too much random noise.
251 Instead pass -Werror to GCC and rely on the exit status.
252 Reported by Wolfram Wagner.
254 2001-11-14 Akim Demaille <akim@epita.fr>
256 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
257 defined only if yyoverflow is defined, to avoid `warning: unused
259 Reported by The Test Suite.
261 2001-11-14 Akim Demaille <akim@epita.fr>
263 * src/print.c: Include reduce.h.
264 Reported by Hans Aberg.
266 2001-11-14 Akim Demaille <akim@epita.fr>
268 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
269 Revert a previous patch: these are really const.
270 * src/conflicts.c (conflict_report): Additional useless pair of
271 braces to pacify GCC's warnings for `if () if () {} else {}'.
272 * src/lex.c (parse_percent_token): Replace equal_offset with
275 Be sure to strdup `arg' when used, since there is no reason for
276 token_buffer not to change.
278 2001-11-14 Akim Demaille <akim@epita.fr>
280 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
282 * src/main.c (main): Use them.
283 Suggested by Hans Aberg.
285 2001-11-12 Akim Demaille <akim@epita.fr>
289 * src/system.h (ngettext): Now that we use ngettext, be sure to
290 provide a default definition when NLS are not used that takes care
293 2001-11-12 Akim Demaille <akim@epita.fr>
295 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
296 Use @kbd to denote user input.
297 (Language and Grammar): ANSIfy the example.
298 Adjust its layout for info/notinfo.
299 (Location Tracking Calc): Output error messages to stderr.
300 Output locations in a more GNUtically correct way.
301 Fix a couple of Englishos.
302 Adjust @group/@end group pairs.
304 2001-11-12 Akim Demaille <akim@epita.fr>
306 %expext was not functioning at all.
308 * src/conflicts.c (expected_conflicts): Set to -1.
309 (conflict_report): Use ngettext.
310 (conflicts_print): Check %expect and make its violation an error.
311 * doc/bison.texinfo (Expect Decl): Adjust.
312 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
313 * tests/regression.at (%expect not enough, %expect right)
314 (%expect too much): New.
316 2001-11-12 Akim Demaille <akim@epita.fr>
318 * tests/regression.at (Conflicts): Rename as...
319 (Unresolved SR Conflicts): this.
320 (Solved SR Conflicts): New.
322 2001-11-12 Akim Demaille <akim@epita.fr>
324 * src/reduce.c (print_results): Rename as...
325 (reduce_output): This.
326 Output to OUT, passed as argument, instead of output_obstack.
327 (dump_grammar): Likewise.
330 (reduce_grammar): No longer call reduce_output, since...
331 * src/print.c (print_results): do it.
332 * src/main.c (main): Call reduce_free;
334 2001-11-12 Akim Demaille <akim@epita.fr>
336 * src/conflicts.c (print_reductions): Accept OUT as argument.
337 Output to it, not to output_obstack.
338 * src/print.c (print_actions): Adjust.
340 2001-11-12 Akim Demaille <akim@epita.fr>
342 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
343 the result instead of using...
344 (src_total, rrc_total, src_count, rrc_count): Remove.
345 (any_conflicts): Remove.
346 (print_conflicts): Split into...
347 (conflicts_print, conflicts_output): New.
348 * src/conflicts.h: Adjust.
349 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
350 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
351 * tests/regression.at (Conflicts): New.
352 Reported by Tom Lane.
354 2001-11-12 Akim Demaille <akim@epita.fr>
356 * tests/regression.at (Invalid input): Remove, duplicate with
357 ``Invalid input: 1''.
359 2001-11-12 Akim Demaille <akim@epita.fr>
361 * tests/torture.at (AT_DATA_STACK_TORTURE)
362 (Exploding the Stack Size with Alloca)
363 (Exploding the Stack Size with Malloc): New.
365 2001-11-12 Akim Demaille <akim@epita.fr>
367 * src/bison.simple (YYSTACK_REALLOC): New.
368 (yyparse) [!yyoverflow]: Use it and free the old stack.
369 Reported by Per Allansson.
371 2001-11-05 Akim Demaille <akim@epita.fr>
374 * src/lex.c (parse_percent_token): s/quotearg/quote/.
376 2001-11-05 Akim Demaille <akim@epita.fr>
378 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
381 2001-11-05 Akim Demaille <akim@epita.fr>
383 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
384 with yyltype/YYLTYPE. This allows inclusion of the generated
385 header within the parser if the compiler, such as GGC, accepts
386 multiple equivalent #defines.
388 2001-11-04 Akim Demaille <akim@epita.fr>
390 * src/getargs.c (longopts): Support `--output'. getopt is now
391 able to understand that `--out' is OK: the two racing long options
394 * src/lex.h (tok_setopt): Remove, replaced with...
395 (tok_intopt, tok_stropt): these new guys.
396 * src/lex.c (getopt.h): Not needed.
397 (token_buffer, unlexed_token_buffer): Not const.
398 (percent_table): Promote `-' over `_' in directive names.
399 Active `%name-prefix', `file-prefix', and `output'.
400 (parse_percent_token): Accept possible arguments to directives.
401 Promote `-' over `_' in directive names.
402 * doc/bison.texinfo (Decl Summary): Split the list into
403 `directives for grammars' and `directives for bison'.
405 Add description of `%name-prefix', `file-prefix', and `output'.
406 Promote `-' over `_' in directive names.
407 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
408 Simplify the description of `--name-prefix'.
409 Promote `-' over `_' in directive names.
410 Promote `--output' over `--output-file'.
411 Fix the description of `--defines'.
412 * tests/output.at: Exercise %file-prefix and %output.
414 2001-11-02 Akim Demaille <akim@epita.fr>
416 * doc/refcard.tex: Update.
418 2001-11-02 Akim Demaille <akim@epita.fr>
420 * src/symtab.h (SUNDEF): New.
421 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
422 stand for `uninitialized', instead of 0.
423 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
424 * src/lex.c (lex): Adjust.
426 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
428 Let yylex return it instead of a plain 0.
429 Reported by Dick Streefland.
431 2001-11-02 Akim Demaille <akim@epita.fr>
433 * tests/regression.at (Mixing %token styles): New test.
435 2001-11-02 Akim Demaille <akim@epita.fr>
437 * src/reader.c (parse_thong_decl): Formatting changes.
438 (token_translations_init): New, extracted from...
442 2001-11-01 Akim Demaille <akim@epita.fr>
444 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
445 Check that `9foo.y' produces correct cpp guards.
446 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
450 2001-11-01 Akim Demaille <akim@epita.fr>
452 * tests/regression.at (Invalid input: 2): New.
453 * src/lex.c (unlexed_token_buffer): New.
454 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
458 2001-11-01 Akim Demaille <akim@epita.fr>
460 * configure.in: Bump to 1.30a.
461 Adjust to newer Autotest.
463 2001-10-26 Akim Demaille <akim@epita.fr>
467 2001-10-26 Paul Eggert <eggert@twinsun.com>
469 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
470 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
471 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
472 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
473 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
474 Sync with fileutils 4.1.1.
476 2001-10-18 Akim Demaille <akim@epita.fr>
479 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
480 avoid spurious failures.
482 2001-10-18 Akim Demaille <akim@epita.fr>
486 2001-10-18 Akim Demaille <akim@epita.fr>
488 * tests/atlocal.in (GCC): Add.
489 * tests/calc.at: s/m4_match/m4_bmatch/.
490 s/m4_patsubst/m4_bpatsubst/.
491 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
492 * configure.in: AC_SUBST(GCC).
494 2001-10-10 Akim Demaille <akim@epita.fr>
497 * configure.in: M4 is no longer needed, but autom4te is.
498 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
501 2001-10-10 Akim Demaille <akim@epita.fr>
505 2001-10-10 Akim Demaille <akim@epita.fr>
508 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
509 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
510 Reported by Airy Andre.
512 2001-10-10 Akim Demaille <akim@epita.fr>
514 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
515 * config/mkinstalldirs, lib/ansi2knr.c: Update.
517 2001-10-02 Akim Demaille <akim@epita.fr>
521 2001-10-02 Akim Demaille <akim@epita.fr>
525 2001-10-02 Akim Demaille <akim@epita.fr>
527 * tests/regression.at (Invalid CPP headers): New.
528 From Alexander Belopolsky.
529 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
531 2001-10-02 Akim Demaille <akim@epita.fr>
533 * tests/regression.at (Invalid input): New.
534 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
537 2001-10-02 Akim Demaille <akim@epita.fr>
539 * tests/calc.at: Now that --debug works, the tests must be adjusted.
541 2001-10-02 Akim Demaille <akim@epita.fr>
543 * src/output.c (output_parser): Assert `skeleton'.
544 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
548 2001-10-01 Marc Autret <autret_m@epita.fr>
550 * src/lex.h: Echo modifications.
551 * src/lex.c (unlex): Parameter is now token_t.
554 2001-10-01 Marc Autret <autret_m@epita.fr>
556 * src/main.c: Include lex.h.
559 2001-09-29 Akim Demaille <akim@epita.fr>
561 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
563 2001-09-28 Akim Demaille <akim@epita.fr>
565 * tests/testsuite.at: Update to newer Autotest.
566 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
568 2001-09-27 Akim Demaille <akim@epita.fr>
570 Position independent wrapper.
572 * tests/bison: Remove.
573 * tests/bison.in: New.
574 * configure.in: Adjust.
576 2001-09-27 Paul Eggert <eggert@twinsun.com>
578 Port quotearg fixes from tar 1.13.24.
580 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
582 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
583 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
585 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
586 * m4/mbrtowc.m4: New file.
587 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
588 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
590 2001-09-27 Akim Demaille <akim@epita.fr>
594 2001-09-27 Akim Demaille <akim@epita.fr>
598 2001-09-25 Akim Demaille <akim@epita.fr>
600 * src/system.h: Include `xalloc.h'.
601 Remove it from the C files.
602 * src/files.c (output_files): Free the obstacks.
603 * src/lex.c (init_lex): Rename as...
606 * src/main.c (main): Use it.
608 2001-09-24 Marc Autret <autret_m@epita.fr>
610 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
611 to output informations in fout (FILE*).
612 (open_graph, close_graph): Likewise.
613 (output_graph, output_edge, output_node): Likewise.
614 * src/vcg.h: Update function prototypes.
615 * src/print_graph.c (print_graph): Open output graph file.
616 (print_actions): Adjust.
617 * src/files.h: Remove extern declaration.
618 * src/files.c: Remove graph_obstack declaration.
619 (open_files): Remove graph_obstack initialization.
620 (output_files): Remove graph_obstack saving.
622 2001-09-24 Marc Autret <autret_m@epita.fr>
624 * src/files.c (compute_output_file_names): Fix.
626 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
628 * src/reader.c (reader): Remove call to free_symtab ().
629 * src/main.c (main): Call it here.
631 * src/conflicts.c (initialize_conflicts): Rename as...
632 (solve_conflicts): this.
633 * src/print.c (print_core, print_actions, print_state)
634 (print_grammar): Dump to a file instead a `output_obstack'.
635 (print_results): Dump `output_obstack', and then proceed with the
637 * src/files.c (compute_output_file_names, close_files): New.
638 (output_files): Adjust.
639 * src/main.c (main): Adjust.
641 2001-09-23 Marc Autret <autret_m@epita.fr>
643 * src/files.c (compute_header_macro): Computes header macro name
644 from spec_defines_file when given.
646 2001-09-23 Marc Autret <autret_m@epita.fr>
648 * src/files.c (output_files): Add default extensions.
650 2001-09-22 Akim Demaille <akim@epita.fr>
652 * src/conflicts.c (finalize_conflicts): Rename as...
653 (free_conflicts): this.
655 2001-09-22 Akim Demaille <akim@epita.fr>
657 * src/gram.c (gram_free): Rename back as...
659 (output_token_translations): Free `token_translations'.
660 * src/symtab.c (free_symtab): Free the tag field.
662 2001-09-22 Akim Demaille <akim@epita.fr>
664 Remove `translations' as it is always set to true.
666 * src/gram.h: Adjust.
667 * src/reader.c (packsymbols, parse_token_decl): Adjust
668 * src/print.c (print_grammar): Adjust.
669 * src/output.c (output_token_translations): Adjust.
670 * src/lex.c (lex): Adjust.
671 * src/gram.c: Be sure the set pointers to NULL.
672 (dummy): Rename as...
675 2001-09-22 Akim Demaille <akim@epita.fr>
677 * configure.in: Invoke AM_LIB_DMALLOC.
678 * src/system.h: Use dmalloc.
679 * src/LR0.c: Be sure to have pointers initialized to NULL.
680 (allocate_itemsets): Allocate kernel_items only if needed.
682 2001-09-22 Akim Demaille <akim@epita.fr>
684 * configure.in: Bump to 1.29b.
685 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
686 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
687 need xmalloc.c in calc.y.
690 2001-09-21 Akim Demaille <akim@epita.fr>
693 * Makefile.maint, config/config.guess, config/config.sub,
694 * config/missing: Update from masters.
695 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
697 * configure.in (ALL_LINGUAS): Add `tr'.
699 2001-09-21 Akim Demaille <akim@epita.fr>
701 * tests/Makefile.am (package.m4): Move to...
702 ($(srcdir)/$(TESTSUITE)): here.
704 2001-09-20 Akim Demaille <akim@epita.fr>
706 * src/complain.c: No longer try to be standalone: use system.h.
707 Don't assume __STDC__ is defined to 1. Just test if it is defined.
708 * src/complain.h: Likewise.
709 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
710 Remove the unused variable `n'.
711 From Albert Chin-A-Young.
713 2001-09-18 Marc Autret <autret_m@epita.fr>
715 * doc/bison.1: Update.
716 * doc/bison.texinfo (Bison Options): Update --defines and --graph
718 (Option Cross Key): Update.
721 2001-09-18 Marc Autret <autret_m@epita.fr>
723 * tests/regression.at: New test (comment in %union).
725 2001-09-18 Marc Autret <autret_m@epita.fr>
727 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
729 Reported by Keith Browne.
731 2001-09-18 Marc Autret <autret_m@epita.fr>
733 * tests/output.at: Add tests for --defines and --graph.
735 2001-09-18 Marc Autret <autret_m@epita.fr>
737 * tests/output.at: Removes tests of %{header,src}_extension features.
739 2001-09-18 Akim Demaille <akim@epita.fr>
741 * tests/Makefile.am (package.m4): New.
742 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
743 (_AT_CHECK_CALC_ERROR): Likewise.
744 Factor the `, ' part of verbose error messages.
746 2001-09-18 Marc Autret <autret_m@epita.fr>
748 * src/getargs.c (longopts): Declare --defines and --graph as options
749 with optional arguments.
750 * src/files.h: Add extern declarations.
751 * src/files.c (spec_graph_file, spec_defines_file): New.
752 (output_files): Update.
753 Remove CPP-outed code.
755 2001-09-18 Marc Autret <autret_m@epita.fr>
757 Turn off %{source,header}_extension feature.
759 * src/files.c (compute_exts_from_gf): Update.
760 (compute_exts_from_src): Update.
761 (output_files): CPP-out useless code.
762 * src/files.h: Remove {header,source}_extension extern declarations.
763 * src/reader.c (parse_dquoted_param): CPP-out.
764 (parse_header_extension_decl): Remove.
765 (parse_source_extension_decl): Remove.
766 (read_declarations): Remove cases tok_{hdrext,srcext}.
767 * src/lex.c (percent_table): Remove {header,source}_extension entries.
768 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
770 2001-09-10 Akim Demaille <akim@epita.fr>
772 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
773 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
774 (AT_CHECK_OUTPUT): this.
775 Merely check ls' exit status, its output is useless.
777 2001-09-10 Akim Demaille <akim@epita.fr>
779 * tests/calc.at: Use m4_match.
780 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
782 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
784 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
786 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
788 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
789 * src/lex.h: Adjust prototype.
790 (token_t): Add `tok_undef'.
791 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
792 (parse_percent_token): Now returns token_t.
793 Add default statement in switch.
794 (lex): Separate `c' as an input variable, from the token_t result
796 (unlexed): Is a token_t.
798 2001-09-10 Akim Demaille <akim@epita.fr>
800 * configure.in: Bump to 1.29a.
802 2001-09-07 Akim Demaille <akim@epita.fr>
806 2001-08-30 Akim Demaille <akim@epita.fr>
808 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
809 * m4/atconfig.m4: Remove.
810 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
812 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
813 m4_if, m4_patsubst, and m4_regexp.
814 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
815 `input' file instead of echo.
817 2001-08-29 Akim Demaille <akim@epita.fr>
821 2001-08-29 Akim Demaille <akim@epita.fr>
825 2001-08-29 Paul Eggert <eggert@twinsun.com>
827 * src/bison.simple (yyparse): Don't take the address of an
828 item before the start of an array, as that doesn't conform to
831 2001-08-29 Robert Anisko <anisko_r@epita.fr>
833 * doc/bison.texinfo (Location Tracking Calc): New node.
835 2001-08-29 Paul Eggert <eggert@twinsun.com>
837 * src/output.c (output): Do not define const, as this now
838 causes more problems than it cures.
840 2001-08-29 Akim Demaille <akim@epita.fr>
842 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
844 Be sure to tag the `detailmenu'.
846 2001-08-29 Akim Demaille <akim@epita.fr>
848 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
849 download in a tmp dir.
851 2001-08-28 Marc Autret <autret_m@epita.fr>
853 * config/depcomp: New file.
855 2001-08-28 Marc Autret <autret_m@epita.fr>
857 * doc/bison.1 (mandoc): Adjust.
858 From Juan Manuel Guerrero.
860 2001-08-28 Marc Autret <autret_m@epita.fr>
862 * src/print_graph.c (print_state): Fix.
864 2001-08-27 Marc Autret <autret_m@epita.fr>
866 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
868 Echo modifications to the functions prototypes.
869 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
871 2001-08-27 Marc Autret <autret_m@epita.fr>
873 * src/vcg.c: Include `xalloc.h'.
874 (add_colorentry): New.
875 (add_classname): New.
877 * src/vcg.h: Add new prototypes.
879 2001-08-27 Akim Demaille <akim@epita.fr>
881 * Makefile.maint: Sync. again with CVS Autoconf.
883 2001-08-27 Akim Demaille <akim@epita.fr>
885 * Makefile.maint: Formatting changes.
886 (po-update, cvs-update, update): New targets.
889 2001-08-27 Akim Demaille <akim@epita.fr>
891 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
892 * Makefile.maint: Sync. with CVS Autoconf.
894 2001-08-27 Marc Autret <autret_m@epita.fr>
896 * src/vcg.h (struct infoname_s): New.
897 (struct colorentry_s): New.
898 (graph_s): New fields {vertical,horizontal}_order in structure.
899 Add `infoname' field.
900 Add `colorentry' field;
901 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
902 (G_HORIZONTAL_ORDER): New.
905 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
906 Add output of `infoname'.
907 Add output of `colorentry'.
909 2001-08-27 Marc Autret <autret_m@epita.fr>
911 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
912 This one shadowed a global parameter.
914 2001-08-24 Marc Autret <autret_m@epita.fr>
916 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
917 instead of `unsigned'.
918 (print_state): Do not call obstack_object_size () in obstack_grow ()
919 to avoid macro variables shadowing.
921 2001-08-23 Marc Autret <autret_m@epita.fr>
923 * src/lex.c (percent_table): Typo: s/naem/name/.
925 Normalize new options declarations.
927 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
929 * tests/suite.at: Exercise %header_extension and %source_extension.
931 2001-08-16 Marc Autret <autret_m@epita.fr>
933 * src/reader.c (parse_dquoted_param): New.
934 (parse_header_extension_decl): Use it.
935 (parse_source_extension_decl): Likewise.
937 2001-08-16 Marc Autret <autret_m@epita.fr>
939 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
940 (get_xxxx_str): Use assert () instead of complain ().
941 Remove return invokations in default cases.
942 (get_decision_str): Modify default behaviour. Remove second argument.
943 Echo modifications on calls.
946 2001-08-16 Marc Autret <autret_m@epita.fr>
948 * src/getargs.c (usage): Update with ``-g, --graph''.
950 2001-08-16 Marc Autret <autret_m@epita.fr>
952 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
953 (Option Cross Key): Likewise.
954 * doc/bison.1: Update.
956 2001-08-15 Akim Demaille <akim@epita.fr>
960 2001-08-15 Marc Autret <autret_m@epita.fr>
962 * src/reader.c (readgram): Indent output macro YYSTYPE.
963 (packsymbols): Likewise.
964 (output_token_defines): Likewise.
965 * src/files.c: Standardize.
966 (compute_header_macro): New.
967 (defines_obstack_save): New. Use compute_header_macro.
968 (output_files): Update. Use defines_obstack_save.
970 2001-08-15 Akim Demaille <akim@epita.fr>
972 * doc/bison.texinfo (Table of Symbols): Document
975 2001-08-15 Akim Demaille <akim@epita.fr>
977 * missing: Update from CVS Automake.
978 * config/config.guess, config/config.sub, config/texinfo.tex:
981 2001-08-15 Akim Demaille <akim@epita.fr>
983 * Makefile.maint: Sync with CVS Autoconf.
985 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
987 * doc/bison.texinfo: Include GNU Free Documentation License from
989 * doc/fdl.texi: Add to package.
991 2001-08-14 Marc Autret <autret_m@epita.fr>
993 Turn on %{source,header}_extension features.
995 * src/lex.c (percent_table): Un-CPP out header_extension and
997 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
998 (compute_exts_from_src): Remove conditions. It restores priorities
1001 2001-08-14 Marc Autret <autret_m@epita.fr>
1003 * src/files.c (compute_base_names): Add extensions computing when
1004 `--file-prefix' used.
1005 Standardize function calls.
1007 2001-08-13 Marc Autret <autret_m@epita.fr>
1009 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1010 defining it (defined but null disables alloca).
1012 2001-08-13 Marc Autret <autret_m@epita.fr>
1014 * src/bison.simple (_yy_memcpy): CPP reformat.
1016 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1018 * tests/atconfig.in (CPPFLAGS): Fix.
1020 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1022 * doc/bison.texinfo: Include GNU General Public License from
1024 * doc/gpl.texi: Add to package.
1026 2001-08-10 Marc Autret <autret_m@epita.fr>
1028 * src/print_graph.h: Fix.
1029 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1031 2001-08-10 Akim Demaille <akim@epita.fr>
1033 * src/system.h: Provide default declarations for stpcpy, strndup,
1036 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1038 * doc/bison.texinfo (Locations): Update @$ stuff.
1040 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1042 * src/bison.simple (YYLLOC_DEFAULT): Update.
1045 2001-08-08 Marc Autret <autret_m@epita.fr>
1047 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1048 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1049 Reported by Fabrice Bauzac.
1051 2001-08-08 Marc Autret <autret_m@epita.fr>
1053 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1054 * src/vcg.c (output_node): Fix.
1055 * src/vcg.h: Cleanup.
1056 * src/print_graph.c: Add comments.
1057 (node_output_size): New global variable. Simplify the formatting of
1058 the VCG graph output.
1059 (print_actions): Unused code is now used. It notifies the final state
1060 and no action states in the VCG graph. It also give the reduce actions.
1061 The `shift and goto' edges are red and the `go to state' edges are
1063 Get the current node name and node_obstack by argument.
1064 (node_obstack): New variable.
1065 (print_state): Manage node_obstack.
1066 (print_core): Use node_obstack given by argument.
1067 A node is not only computed here but in print_actions also.
1068 (print_graph): CPP out useless code instead of commenting it.
1070 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1072 * tests/atconfig.in (CPPFLAGS): Fix.
1074 2001-08-07 Akim Demaille <akim@epita.fr>
1076 * src/print_graph.c (quote): New.
1077 (print_core): Use it.
1079 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1081 * src/vcg.c (complain.h): Include it.
1082 Unepitaize `return' invocations.
1083 [NDEBUG] (main): Remove.
1084 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1085 * src/files.c (open_files): Initialize graph_obstack.
1086 * src/print_graph.c (print_actions): CPP out useless code.
1087 (print_core): Don't output the last `\n' in labels.
1089 * src/files.c (output_files): Output the VCG file.
1090 * src/main.c (main): Invoke print_graph ();
1092 2001-08-06 Marc Autret <autret_m@epita.fr>
1094 Automaton VCG graph output.
1095 Using option ``-g'' or long option ``--graph'', you can generate
1096 a gram_filename.vcg file containing a VCG description of the LALR (1)
1097 automaton of your grammar.
1099 * src/main.c: Call to print_graph() function.
1100 * src/getargs.h: Update.
1101 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1102 (graph_flag): New flag.
1104 (getargs): Add case `g'.
1105 * src/files.c (graph_obstack): New obstack struct.
1106 (open_files): Initialize new obstack.
1107 (output_files): Saves graph_obstack if required.
1108 * src/files.h (graph_obstack): New extern declaration.
1109 * src/Makefile.am: Add new source files.
1111 2001-08-06 Marc Autret <autret_m@epita.fr>
1113 * src/print_graph.c, src/print_graph.h (graph): New.
1114 * src/vcg.h: New file.
1115 * src/vcg.c: New file, VCG graph handling.
1117 2001-08-06 Marc Autret <autret_m@epita.fr>
1119 Add of %source_extension and %header_extension which specify
1120 the source or/and the header output file extension.
1122 * src/files.c (compute_base_names): Remove initialisation of
1123 src_extension and header_extension.
1124 (compute_exts_from_gf): Update.
1125 (compute_exts_from_src): Update.
1126 (output_files): Update.
1127 * src/reader.c (parse_header_extension_decl): New.
1128 (parse_source_extension_decl): New.
1129 (read_declarations): New case statements for the new tokens.
1130 * src/lex.c (percent_table): Add entries for %source_extension
1131 and %header_extension.
1132 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1134 2001-08-06 Marc Autret <autret_m@epita.fr>
1136 * configure.in: Bump to 1.28c.
1137 * doc/bison.texinfo: Texinfo thingies.
1139 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1141 * tests/atconfig.in (CPPFLAGS): Add.
1142 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1144 2001-08-03 Akim Demaille <akim@epita.fr>
1148 2001-08-03 Akim Demaille <akim@epita.fr>
1150 * tests/Makefile.am (check-local): Ship testsuite.
1151 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1154 2001-08-03 Akim Demaille <akim@epita.fr>
1156 * configure.in: Try using -Wformat when compiling.
1158 2001-08-03 Akim Demaille <akim@epita.fr>
1160 * configure.in: Bump to 1.28b.
1162 2001-08-03 Akim Demaille <akim@epita.fr>
1164 * src/complain.c: Adjust strerror_r portability issues.
1166 2001-08-03 Akim Demaille <akim@epita.fr>
1170 2001-08-03 Akim Demaille <akim@epita.fr>
1172 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1173 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1174 * src/getargs.c: Include complain.h.
1175 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1176 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1178 2001-08-03 Akim Demaille <akim@epita.fr>
1180 * src/reader.c (readgram): Display hidden chars in error messages.
1182 2001-08-03 Akim Demaille <akim@epita.fr>
1184 Update to gettext 0.10.39.
1186 2001-08-03 Akim Demaille <akim@epita.fr>
1188 * lib/strspn.c: New.
1190 2001-08-01 Marc Autret <autret_m@epita.fr>
1192 * doc/bison.texinfo: Update.
1193 * doc/bison.1 (mandoc): Update.
1194 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1195 * src/files.c: Support output files extensions computing.
1196 (src_extension): New static variable.
1197 (header_extension): New static variable.
1199 (get_extension_index): New function, gets the index of an extension
1200 filename in a string.
1201 (compute_exts_from_gf): New function, computes extensions from the
1202 grammar file extension.
1203 (compute_exts_from_src): New functions, computes extensions from the
1204 C source file extension, file given by ``-o'' option.
1205 (compute_base_names): Update.
1206 (output_files): Update.
1208 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1210 * doc/bison.texi: Document @$.
1211 (Locations): New section.
1213 2001-07-18 Akim Demaille <akim@epita.fr>
1215 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1216 * config/prev-version.txt, config/move-if-change: New.
1217 * Makefile.am: Adjust.
1219 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1221 * src/bison.simple (yyparse): Suppress warning `comparaison
1222 between signed and unsigned'.
1224 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1226 * src/getargs.h (raw_flag): Remove.
1227 * src/getargs.c: Die on `-r'/`--raw'.
1228 * src/lex.c (parse_percent_token): Die on `%raw'.
1229 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1230 * tests/calc.at: Suppress test with option `--raw'.
1232 2001-07-14 Akim Demaille <akim@epita.fr>
1235 * configure.in: Require Autoconf 2.50.
1236 Update to gettext 0.10.38.
1238 2001-03-16 Akim Demaille <akim@epita.fr>
1240 * doc/bison.texinfo: ANSIfy the examples.
1242 2001-03-16 Akim Demaille <akim@epita.fr>
1244 * getargs.c (skeleton): New variable.
1245 (longopts): --skeleton is a new option.
1246 (shortopts, getargs): -S is a new option.
1247 * getargs.h: Declare skeleton.
1248 * output.c (output_parser): Use it.
1250 2001-03-16 Akim Demaille <akim@epita.fr>
1252 * m4/strerror_r.m4: New.
1253 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1254 * lib/error.h, lib/error.c: Update.
1256 2001-03-16 Akim Demaille <akim@epita.fr>
1258 * src/getargs.c (longopts): Clean up.
1260 2001-02-21 Akim Demaille <akim@epita.fr>
1262 * src/reader.c (gensym): `gensym_count' is your own.
1263 Use a static buf to create the symbol name, as token_buffer is no
1266 2001-02-08 Akim Demaille <akim@epita.fr>
1268 * src/conflicts.c (conflict_report): Be sure not to append to res
1269 between two calls, which could happen if both first sprintf were
1270 skipped, but not the first cp += strlen.
1272 2001-02-08 Akim Demaille <akim@epita.fr>
1274 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1275 New, from fileutils 4.0.37.
1276 * configure.in: Require Autoconf 2.49c. I took some time before
1277 making this decision. This is the only way out for portability
1278 issues in Bison, it would mean way too much duplicate effort to
1279 import in Bison features implemented in 2.49c since 2.13.
1280 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1282 2001-02-02 Akim Demaille <akim@epita.fr>
1284 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1285 * lib/xalloc.h, lib/xmalloc.c: Update.
1287 2001-01-19 Akim Demaille <akim@epita.fr>
1289 Get rid of the ad hoc handling of token_buffer in the scanner: use
1292 * src/lex.c (token_obstack): New.
1293 (init_lex): Initialize it. No longer call...
1294 (grow_token_buffer): this. Remove it.
1295 Adjust all the places which used it to use the obstack.
1297 2001-01-19 Akim Demaille <akim@epita.fr>
1299 * src/lex.h: Rename all the tokens:
1300 s/\bENDFILE\b/tok_eof/g;
1301 s/\bIDENTIFIER\b/tok_identifier/g;
1303 Let them be enums, not #define, to ease debugging.
1304 Adjust all the code.
1306 2001-01-18 Akim Demaille <akim@epita.fr>
1308 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1309 * src/lex.c (maxtoken, grow_token_buffer): Static.
1311 2001-01-18 Akim Demaille <akim@epita.fr>
1313 Since we now use obstacks, more % directives can be enabled.
1315 * src/lex.c (percent_table): Also accept `%yacc',
1316 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1318 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1319 instead of returning a token.
1320 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1321 * src/reader.c (read_declarations): Adjust.
1322 * src/files.c (open_files): Don't call `compute_base_names', don't
1323 compute `attrsfile' since they depend upon data which might be
1324 *in* the input file now.
1325 (output_files): Do it here.
1326 * src/output.c (output_headers): Document the fact that this patch
1327 introduces a guaranteed SEGV for semantic parsers.
1328 * doc/bison.texinfo: Document them.
1329 * tests/suite.at: Exercise these %options.
1331 2000-12-20 Akim Demaille <akim@epita.fr>
1333 Also handle the output file (--verbose) with obstacks.
1335 * files.c (foutput): Remove.
1336 (output_obstack): New.
1337 Adjust all dependencies.
1338 * src/conflicts.c: Return a string.
1339 * src/system.h (obstack_grow_string): Rename as...
1340 (obstack_sgrow): this. Be ready to work with non literals.
1341 (obstack_fgrow4): New.
1343 2000-12-20 Akim Demaille <akim@epita.fr>
1345 * src/files.c (open_files): Fix the computation of short_base_name
1346 in the case of `-o foo.tab.c'.
1348 2000-12-20 Akim Demaille <akim@epita.fr>
1350 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1351 (copy_dollar): Now that everything uses obstacks, get rid of the
1354 2000-12-20 Akim Demaille <akim@epita.fr>
1356 * src/files.c (open_files): Actually the `.output' file is based
1357 on the short_base_name, not base_name.
1358 * tests/suite.at (Checking output file names): Adjust.
1360 2000-12-20 Akim Demaille <akim@epita.fr>
1362 * src/bison.s1: Remove, we now use directly...
1363 * src/bison.simple: this.
1364 * src/Makefile.am: Use pkgdata instead of data.
1366 2000-12-20 Akim Demaille <akim@epita.fr>
1368 * src/files.c (guard_obstack): New.
1369 (open_files): Initialize it.
1370 (output_files): Dump it...
1371 * src/files.h: Export it.
1372 * src/reader.c (copy_guard): Use it.
1374 2000-12-19 Akim Demaille <akim@epita.fr>
1376 * src/files.c (outfile, defsfile, actfile): Removed as global
1378 (open_files): Don't compute them.
1379 (output_files): Adjust.
1380 (base_name, short_base_name): Be global.
1381 Adjust dependencies.
1383 2000-12-19 Akim Demaille <akim@epita.fr>
1385 * src/files.c (strsuffix): New.
1386 (stringappend): Be just like strcat but allocate.
1387 (base_names): Eve out from open_files.
1388 Try to simplify the rather hairy computation of base_name and
1390 (open_files): Use it.
1391 * tests/suite.at (Checking output file names): New test.
1393 2000-12-19 Akim Demaille <akim@epita.fr>
1395 * src/system.h (obstack_grow_literal_string): Rename as...
1396 (obstack_grow_string): this.
1397 * src/output.c (output_parser): Recognize `%% actions' instead of
1399 * src/bison.s1: s/$/%% actions/.
1400 * src/bison.hairy: Likewise.
1402 2000-12-19 Akim Demaille <akim@epita.fr>
1404 * src/output.c (output_parser): Compute the `#line' lines when
1406 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1407 Suggested by Hans Aberg.
1409 2000-12-19 Akim Demaille <akim@epita.fr>
1411 Let the handling of the skeleton files be local to the procedures
1414 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1416 (fparser, open_extra_files): Remove.
1417 (open_files, output_files): Don't take care of fparser.
1418 * src/files.h: Adjust.
1419 * src/output.c (output_parser): Open and close the file to the
1421 * src/reader.c (read_declarations): When %semantic_parser, open
1424 2000-12-19 Akim Demaille <akim@epita.fr>
1426 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1427 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1429 2000-12-19 Akim Demaille <akim@epita.fr>
1431 * src/files.c (open_files): Yipee! We no longer need all the code
1432 looking for `/tmp' since we have no tmp file.
1434 2000-12-19 Akim Demaille <akim@epita.fr>
1436 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1438 * src/files.c (open_files): Less dependency on MSDOS etc.
1440 2000-12-14 Akim Demaille <akim@epita.fr>
1442 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1443 Provide a default definition.
1444 Use it when executing the default @ action.
1445 * src/reader.c (reader_output_yylsp): No longer include
1446 `timestamp' and `text' in the default YYLTYPE.
1448 2000-12-12 Akim Demaille <akim@epita.fr>
1450 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1451 (copy_guard): Quote the file names.
1452 Reported by Laurent Mascherpa.
1454 2000-12-12 Akim Demaille <akim@epita.fr>
1456 * src/output.c (output_headers, output_program, output): Be sure
1457 to escape special characters when outputting filenames.
1458 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1459 (output_headers): Don't depend on them, Use ACTSTR.
1461 2000-11-17 Akim Demaille <akim@epita.fr>
1463 * lib/obstack.h: Formatting changes.
1464 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1465 prevents type checking.
1466 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1467 cast the value to (void *): assigning a `foo *' to a `void *'
1469 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1470 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1473 2000-11-17 Akim Demaille <akim@epita.fr>
1475 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1477 (suite.m4, regression.m4, calc.m4): these.
1478 * tests/atgeneral.m4: Update from CVS Autoconf.
1480 2000-11-17 Akim Demaille <akim@epita.fr>
1482 * tests/regression.m4 (%union and --defines): New test,
1483 demonstrating a current bug in the obstack implementation.
1485 2000-11-17 Akim Demaille <akim@epita.fr>
1487 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1489 Use them to declare the variables which are global or local to
1492 2000-11-17 Akim Demaille <akim@epita.fr>
1494 * acconfig.h: Remove, no longer used.
1496 2000-11-07 Akim Demaille <akim@epita.fr>
1498 * src: s/Copyright (C)/Copyright/g.
1500 2000-11-07 Akim Demaille <akim@epita.fr>
1502 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1504 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1506 2000-11-07 Akim Demaille <akim@epita.fr>
1508 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1509 Merge in a single CPP if/else.
1511 2000-11-07 Akim Demaille <akim@epita.fr>
1513 * src/output.c (output): Remove useless variables.
1514 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1515 argument `data' for consistency with the prototypes.
1517 (obstack_copy, obstack_copy0): Rename the second argument as
1518 `address' for consistency. Qualify it `const'.
1519 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1520 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1521 `const' their input argument (`data' or `address').
1522 Adjust the corresponding macros to include `const' in casts.
1524 2000-11-03 Akim Demaille <akim@epita.fr>
1526 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1527 s/PFILE1/BISON_HAIRY/.
1528 Adjust dependencies.
1530 2000-11-03 Akim Demaille <akim@epita.fr>
1532 For some reason, this was not applied.
1534 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1535 `unlink': it's no longer used.
1537 2000-11-03 Akim Demaille <akim@epita.fr>
1539 * src/files.c (skeleton_find): New function, eved out of...
1540 (open_files, open_extra_files): here.
1542 2000-11-03 Akim Demaille <akim@epita.fr>
1546 * src/files.c (obstack_save): New function.
1547 (done): Rename as...
1548 (output_files): this.
1550 * src/main.c (main): Don't use `atexit' to register `done', since
1551 it no longer has to remove tmp files, just call `output_files'
1552 when there are no errors.
1554 2000-11-02 Akim Demaille <akim@epita.fr>
1556 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1557 `unlink': it's no longer used.
1558 * src/files.h: Formatting changes.
1560 2000-11-02 Akim Demaille <akim@epita.fr>
1562 Remove the last uses of mktemp and unlink/delete.
1564 * src/files.c (fdefines, ftable): Removed.
1565 (defines_ostack, table_obstack): New.
1566 Adjust dependencies of the former into uses of the latter.
1567 * src/output.c (output_short_or_char_table, output_short_table):
1568 Convert to using obstacks.
1569 * src/reader.c (copy_comment2): Accept one FILE * and two
1571 (output_token_defines, reader_output_yylsp): Use obstacks.
1572 * src/system.h (obstack_fgrow3): New.
1574 2000-11-01 Akim Demaille <akim@epita.fr>
1576 Change each use of `fattrs' into a use of `attrs_obstack'.
1578 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1579 * src/files.c (fattrs): Remove.
1580 (attrs_obstack): New.
1581 Adjust all dependencies.
1582 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1584 2000-11-01 Akim Demaille <akim@epita.fr>
1587 Change each use of `faction' into a use of `action_obstack'.
1589 * lib/obstack.h, lib/obstack.c: New files.
1590 * src/files.c (faction): Remove.
1591 (action_obstack): New.
1592 Adjust all dependencies.
1594 2000-10-20 Akim Demaille <akim@epita.fr>
1596 * lib/quote.h (PARAMS): New macro. Use it.
1598 2000-10-16 Akim Demaille <akim@epita.fr>
1600 * src/output.c (output_short_or_char_table): New function.
1601 (output_short_table, output_token_translations): Use it.
1602 (goto_actions): Use output_short_table.
1604 2000-10-16 Akim Demaille <akim@epita.fr>
1606 * src/symtab.c (bucket_new): New function.
1609 * src/output.c (output_short_table): New argument to display the
1610 comment associated with the table.
1611 Adjust dependencies.
1612 (output_gram): Use it.
1613 (output_rule_data): Nicer output layout for YYTNAME.
1615 2000-10-16 Akim Demaille <akim@epita.fr>
1617 * src/lex.c (read_typename): New function.
1619 * src/reader.c (copy_dollar): Likewise.
1621 2000-10-16 Akim Demaille <akim@epita.fr>
1623 * src/reader.c (copy_comment2): Expect the input stream to be on
1624 the `/' which is suspected to open a comment, instead of being
1625 called after `//' or `/*' was read.
1626 (copy_comment, copy_definition, parse_union_decl, copy_action)
1627 (copy_guard): Adjust.
1629 2000-10-16 Akim Demaille <akim@epita.fr>
1631 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1632 `read_signed_integer'.
1634 2000-10-16 Akim Demaille <akim@epita.fr>
1636 * src/reader.c (copy_dollar): New function.
1637 (copy_guard, copy_action): Use it.
1639 2000-10-16 Akim Demaille <akim@epita.fr>
1641 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1642 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1643 New files, from Fileutils 4.0.27.
1644 * src/main.c (printable_version): Remove.
1645 * src/lex.c, src/reader.c: Use `quote'.
1647 2000-10-04 Akim Demaille <akim@epita.fr>
1649 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1651 2000-10-04 Akim Demaille <akim@epita.fr>
1653 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1655 2000-10-04 Akim Demaille <akim@epita.fr>
1657 When a literal string is used to define two different tokens,
1658 `bison -v' segfaults.
1659 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1661 * tests/regression.m4: New file.
1662 Include the core of the sample provided by Piotr Gackiewicz.
1663 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1666 2000-10-04 Akim Demaille <akim@epita.fr>
1668 * src/reader.c (parse_expect_decl): Keep `count' within the size
1672 2000-10-02 Paul Eggert <eggert@twinsun.com>
1674 * bison.s1 (yyparse): Assign the default value
1675 unconditionally, to avoid a GCC warning and make the parser a
1678 2000-10-02 Akim Demaille <akim@epita.fr>
1680 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1683 2000-10-02 Akim Demaille <akim@epita.fr>
1685 * src/derives.c, src/print.c, src/reduce.c: To ease the
1686 translation, move some `\n' out of the translated strings.
1688 2000-10-02 Akim Demaille <akim@epita.fr>
1690 The location tracking mechanism is precious for parse error
1691 messages. Nevertheless, it is enabled only when `@n' is used in
1692 the grammar, which is a different issue (you can use it in error
1693 message, but not in the grammar per se). Therefore, there should
1694 be another means to enable it.
1696 * src/getargs.c (getargs): Support `--locations'.
1698 * src/getargs.h (locationsflag): Export it.
1699 * src/lex.c (percent_table): Support `%locations'.
1700 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1701 with `locationsflag'.
1702 * doc/bison.texinfo: Document `--locations' and `%locations'.
1704 * tests/calc.m4: Test it.
1706 For regularity of the names, replace each
1707 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1708 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1709 In addition replace each `flag' with `_flag'.
1711 2000-10-02 Akim Demaille <akim@epita.fr>
1713 Also test parse error messages, including with YYERROR_VERBOSE.
1715 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1717 Use it to check the computations.
1718 Use it to check `nonassoc' is honored.
1719 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1720 `--yyerror-verbose'.
1721 (_AT_CHECK_CALC): Adjust to this option.
1722 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1724 2000-10-02 Akim Demaille <akim@epita.fr>
1726 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1727 the latter demonstrates a flaw in the handling of non debugging
1728 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1729 was used in order to simplify:
1745 unfortunately this leads to a CPP conflict when
1746 `--name-prefix=foo' is used since it produces `#define yydebug
1749 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1750 (YYDPRINTF): New macro.
1752 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1754 Also test `--verbose', `--defines' and `--name-prefix'.
1756 2000-10-02 Akim Demaille <akim@epita.fr>
1758 Improve the readability of the produced parsers.
1760 * src/bison.s1: Formatting changes.
1761 Improve the comment related to the `$' mark.
1762 (yydefault): Don't fall through to `yyresume': `goto' there.
1763 * src/output.c (output_parser): When the `$' is met, skip the end
1765 New variable, `number_of_dollar_signs', to check there's exactly
1766 one `$' in the parser skeleton.
1768 2000-10-02 Akim Demaille <akim@epita.fr>
1770 * lib/xstrdup.c: New file, from the fileutils.
1771 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1772 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1773 instead of strlen + xmalloc + strcpy.
1774 * src/symtab.c (copys): Remove, use xstrdup instead.
1776 2000-10-02 Akim Demaille <akim@epita.fr>
1778 * src/gram.h (associativity): New enum type which replaces the
1779 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1780 `right_assoc', `left_assoc' and `non_assoc'.
1781 Adjust all dependencies.
1782 * src/reader.c: Formatting changes.
1783 (LTYPESTR): Don't define it, use it as a literal in
1784 `reader_output_yylsp'.
1785 * src/symtab.h (symbol_class): New enum type which replaces the
1786 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1787 `sunknown', `stoken and `snterm'.
1789 2000-10-02 Akim Demaille <akim@epita.fr>
1791 * src/getargs.c (fixed_outfiles): Rename as...
1792 (yaccflag): for consistency and accuracy.
1793 Adjust dependencies.
1795 2000-10-02 Akim Demaille <akim@epita.fr>
1797 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1798 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1799 difficult and introduced a lot of core dump. It turns out that
1800 Bison used an implementation of `xmalloc' based on `calloc', and
1801 at various places it does depend upon the initialization to 0. I
1802 have not tried to isolate the pertinent places, and all the former
1803 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1804 someone should address this issue.
1806 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1807 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1809 Adjust dependencies.
1810 * src/warshall.h: New file.
1813 2000-10-02 Akim Demaille <akim@epita.fr>
1815 Various anti-`extern in *.c' changes.
1817 * src/system.h: Include `assert.h'.
1819 2000-10-02 Akim Demaille <akim@epita.fr>
1821 * src/state.h (nstates, final_state, first_state, first_shift)
1822 (first_reduction): Move their exportation from here...
1823 * src/LR0.h: to here.
1824 Adjust dependencies.
1825 * src/getargs.c (statisticsflag): New variable.
1826 Add support for `--statistics'.
1827 Adjust dependencies.
1829 Remove a lot of now useless `extern' statements in most files.
1831 2000-10-02 Akim Demaille <akim@epita.fr>
1833 * src/LR0.h: New file.
1836 2000-10-02 Akim Demaille <akim@epita.fr>
1838 * src/print.h: New file.
1840 * src/print.c: Formatting and ordering changes.
1841 (verbose, terse): Replace with...
1842 (print_results): this new function.
1843 Adjust dependencies.
1845 2000-10-02 Akim Demaille <akim@epita.fr>
1847 * src/conflicts.c (conflict_report): New function.
1848 (conflict_log, verbose_conflict_log): Replace with...
1849 (print_conflicts): this function.
1850 Adjust dependencies.
1851 * src/conflicts.h: New file.
1852 Propagate its inclusion.
1854 2000-10-02 Akim Demaille <akim@epita.fr>
1856 * src/nullable.h: New file.
1857 Propagate its inclusion.
1858 * src/nullable.c: Formatting changes.
1860 2000-10-02 Akim Demaille <akim@epita.fr>
1862 * src/reduce.h: New file.
1863 Propagate its inclusion.
1864 * src/reduce.c: Topological sort and other formatting changes.
1865 (bool, TRUE, FALSE): Move their definition to...
1866 * src/system.h: here.
1868 2000-10-02 Akim Demaille <akim@epita.fr>
1870 * src/files.c: Formatting changes.
1871 (tryopen, tryclose, openfiles): Rename as...
1872 (xfopen, xfclose, open_files): this.
1873 (stringappend): static.
1874 * src/files.h: Complete the list of exported symbols.
1877 2000-10-02 Akim Demaille <akim@epita.fr>
1879 * src/reader.h: New file.
1880 Propagate its use instead of tedious list of `extern' and
1882 * src/reader.c: Formatting changes, topological sort,
1885 2000-10-02 Akim Demaille <akim@epita.fr>
1887 * src/lex.h: Prototype `lex.c' exported functions.
1888 * src/reader.c: Adjust.
1889 * src/lex.c: Formatting changes.
1890 (safegetc): Rename as...
1893 2000-10-02 Akim Demaille <akim@epita.fr>
1895 * src/lalr.h: New file.
1896 Propagate its inclusion instead of prototypes and `extern'.
1897 * src/lalr.c: Formatting changes, topological sorting etc.
1899 2000-10-02 Akim Demaille <akim@epita.fr>
1901 * src/output.c (token_actions): Introduce a temporary array,
1902 YYDEFACT, that makes it possible for this function to use
1905 2000-10-02 Akim Demaille <akim@epita.fr>
1907 `user_toknums' is output as a `short[]' in `output.c', while it is
1908 defined as a `int[]' in `reader.c'. For consistency with the
1909 other output tables, `user_toknums' is now defined as a table of
1912 * src/reader.c (user_toknums): Be a short table instead of an int
1914 Adjust dependencies.
1916 Factor the short table outputs.
1918 * src/output.c (output_short_table): New function.
1919 * src/output.c (output_gram, output_stos, output_rule_data)
1920 (output_base, output_table, output_check): Use it.
1922 2000-10-02 Akim Demaille <akim@epita.fr>
1924 * src/output.c (output): Topological sort of the functions, in
1925 order to get rid of the `static' prototypes.
1926 No longer use `register'.
1927 * src/output.h: New file.
1928 Propagate its inclusion in files explicitly prototyping functions
1931 2000-09-21 Akim Demaille <akim@epita.fr>
1933 * src/atgeneral.m4: Update from Autoconf.
1935 2000-09-21 Akim Demaille <akim@epita.fr>
1937 * src/closure.h: New file.
1938 * src/closure.c: Formatting changes, topological sort over the
1939 functions, use of closure.h.
1940 (initialize_closure, finalize_closure): Rename as...
1941 (new_closure, free_closure): these. Adjust dependencies.
1942 * src/LR0.c: Formatting changes, topological sort, use of
1944 (initialize_states): Rename as...
1946 * src/Makefile.am (noinst_HEADERS): Adjust.
1948 2000-09-20 Akim Demaille <akim@epita.fr>
1950 * src/acconfig.h: Don't protect config.h against multiple
1952 Don't define PARAMS.
1953 * src/system.h: Define PARAMS.
1954 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1955 purpose of config.h. system.h must not try to fix wrong
1956 definitions in config.h.
1958 2000-09-20 Akim Demaille <akim@epita.fr>
1960 * src/derives.h: New file.
1961 * src/main.c, src/derives.h: Use it.
1963 * src/Makefile.am (noinst_HEADERS): Adjust.
1965 2000-09-20 Akim Demaille <akim@epita.fr>
1967 * tests/atgeneral.m4: Update from Autoconf.
1968 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1969 (AT_CHECK_CALC): New macros.
1970 Use these macros to test bison with options `', `--raw',
1971 `--debug', `--yacc', `--yacc --debug'.
1973 2000-09-19 Akim Demaille <akim@epita.fr>
1975 * src/output.c: Formatting changes.
1976 * src/machine.h: Remove, leaving its contents in...
1977 * src/system.h: here.
1979 Adjust all dependencies on stdio.h and machine.h.
1980 * src/getargs.h: New file.
1981 Let all `extern' declarations about getargs.c be replaced with
1982 inclusion of `getargs.h'.
1983 * src/Makefile.am (noinst_HEADERS): Adjust.
1985 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1987 (yyerror): Returns void, not int.
1988 * doc/bison.texinfo: Formatting changes.
1990 2000-09-19 Akim Demaille <akim@epita.fr>
1992 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1995 2000-09-18 Akim Demaille <akim@epita.fr>
1997 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1998 * src/Makefile.am (INCLUDES): Don't.
1999 Be ready to fetch headers in lib/.
2001 2000-09-18 Akim Demaille <akim@epita.fr>
2003 * doc/bison.texinfo: Update the copyright.
2004 ANSIfy and GNUify the examples.
2005 Remove the old menu.
2007 2000-09-18 Akim Demaille <akim@epita.fr>
2009 First set of tests: use the `calc' example from the documentation.
2011 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2012 is defined only when YYDEBUG is.
2013 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2014 * src/files.c (tryopen, tryclose): Formatting changes.
2015 Move to the top and be static.
2016 * src/reader.c (read_signed_integer): Likewise.
2017 * tests/calc.m4: New file.
2018 * Makefile.am, suite.m4: Adjust.
2019 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2021 2000-09-18 Akim Demaille <akim@epita.fr>
2023 Add support for an Autotest test suite for Bison.
2025 * m4/m4.m4, m4/atconfig.m4: New files.
2026 * m4/Makefile.am (EXTRA_DIST): Adjust.
2027 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2029 * src/getargs.c: Display a more standard --version message.
2030 * src/reader.c (reader): Formatting changes.
2031 No longer depend upon VERSION_STRING.
2032 * configure.in: No longer use `dnl'.
2033 Set up the test suite and the new directory `tests/.
2034 (VERSION_STRING): Remove.
2036 2000-04-14 Akim Demaille <akim@epita.fr>
2038 * src/reader.c (copy_comment2): New function, same as former
2039 `copy_comment', but outputs into two FILE *.
2040 (copy_comment): Use it.
2041 (parse_union_decl): Use it.
2042 (get_type, parse_start_decl): Use the same `invalid' message.
2043 (parse_start_decl, parse_union_decl): Use the same `multiple'
2045 (parse_union_decl, copy_guard, copy_action): Use the same
2046 `unmatched' message.
2047 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2049 2000-03-31 Akim Demaille <akim@epita.fr>
2051 * src/files.c (tryopen, tryclose): Move to the top.
2054 2000-03-31 Akim Demaille <akim@epita.fr>
2056 * src/main.c (main): Don't call `done', exit does it.
2058 2000-03-31 Akim Demaille <akim@epita.fr>
2060 * allocate.c: s/return (foo)/return foo/.
2063 * output.c: Likewise.
2064 * reader.c: Likewise.
2065 * symtab.c: Likewise.
2066 * vmsgetargs.c: Likewise.
2068 2000-03-31 Akim Demaille <akim@epita.fr>
2070 Clean up the error reporting functions.
2072 * src/report.c: New file.
2073 * src/report.h: Likewise.
2074 * src/Makefile.am: Adjust.
2075 * m4/error.m4: New file.
2076 * m4/Makefile.am: Adjust.
2077 * configure.in (jm_PREREQ_ERROR): Call it.
2078 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2080 (fatal, fatals): Remove. All callers use complain.c::fatal.
2081 (warn, warni, warns, warnss, warnss): Remove. All callers use
2082 complain.c::complain.
2083 (toomany): Remove, use fatal instead.
2084 * src/files.c (done): No argument, use complain_message_count.
2085 * src/main.c (main): Register `done' to `atexit'.
2087 * src/getargs.c (usage): More `fputs', less `fprintf'.
2089 2000-03-28 Akim Demaille <akim@epita.fr>
2091 * lib/: New directory.
2092 * Makefile.am (SUBDIRS): Adjust.
2093 * configure.in: Adjust.
2094 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2096 * src/alloca.c: Moved to lib/.
2097 * src/getopt.c: Likewise.
2098 * src/getopt1.c: Likewise.
2099 * src/getopt.h: Likewise.
2100 * src/ansi2knr.c: Likewise.
2101 * src/ansi2knr.1: Likewise.
2102 * src/Makefile.am: Adjust.
2103 * lib/Makefile.am: New file.
2105 2000-03-28 Akim Demaille <akim@epita.fr>
2107 * src/getargs.c (usage): Refresh the help message.
2109 2000-03-17 Akim Demaille <akim@epita.fr>
2111 * src/getopt1.c: Updated from textutils 2.0e
2112 * src/getopt.c: Likewise.
2113 * src/getopt.h: Likewise.
2115 2000-03-17 Akim Demaille <akim@epita.fr>
2117 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2118 the file name, not the whole `#line LINE FILE'.
2120 2000-03-17 Akim Demaille <akim@epita.fr>
2122 On syntax errors, report the token on which we choked.
2124 * src/bison.s1 (yyparse): In the label yyerrlab, when
2125 YYERROR_VERBOSE, add yychar in msg.
2127 2000-03-17 Akim Demaille <akim@epita.fr>
2129 * src/reader.c (copy_at): New function.
2130 (copy_guard): Use it.
2131 (copy_action): Use it.
2133 2000-03-17 Akim Demaille <akim@epita.fr>
2135 Be kind to translators, save some useless translations.
2137 * src/main.c (banner): New function.
2138 (fatal_banner): Use it.
2139 (warn_banner): Use it.
2141 2000-03-17 Akim Demaille <akim@epita.fr>
2143 * src/reader.c (copy_definition): Use copy_string and
2144 copy_comment. Removed now unused `match', `ended',
2146 (copy_comment, copy_string): Moved, to be visible from
2149 2000-03-17 Akim Demaille <akim@epita.fr>
2151 * src/reader.c (copy_string): Declare `static inline'. No
2152 problems with inline, since it is checked by configure.
2153 (copy_comment): Likewise.
2155 2000-03-17 Akim Demaille <akim@epita.fr>
2157 * src/reader.c (packsymbols): Formatting changes.
2159 2000-03-17 Akim Demaille <akim@epita.fr>
2161 * src/reader.c (copy_comment): New function, factored out from:
2162 (copy_action): Use it. Removed now unused `match', `ended',
2164 (copy_guard): Likewise.
2166 2000-03-17 Akim Demaille <akim@epita.fr>
2168 * src/reader.c (copy_string): New function, factored out from:
2169 (copy_action): Use it.
2170 (copy_guard): Likewise.
2172 2000-03-17 Akim Demaille <akim@epita.fr>
2174 Change the handling of @s so that they behave exactly like $s.
2175 There is now a pseudo variable @$ (readble and writable), location
2176 of the lhs of the rule (by default ranging from the location of
2177 the first symbol of the rhs, to the location of the last symbol,
2178 or, if the rhs is empty, YYLLOC).
2180 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2182 (yyparse): When providing a default semantic action, provide a
2183 default location action.
2184 (after the $): No longer change `*YYLSP', just stack YYLOC the
2185 same way you stack YYVAL.
2186 * src/reader.c (read_declarations): Use warns.
2187 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2188 (copy_action, case '@'): Likewise.
2189 Use a standard error message, to save useless work from
2192 2000-03-17 Akim Demaille <akim@epita.fr>
2194 * src/bison.s1: Formatting and cosmetics changes.
2195 * src/reader.c: Likewise.
2196 Update the Copyright notice.
2198 2000-03-17 Akim Demaille <akim@epita.fr>
2200 * src/bison.s1 (#line): All set to `#line' only, since the
2201 Makefile now handles them.
2203 2000-03-16 Akim Demaille <akim@epita.fr>
2205 * src/output.c (output_rule_data): Output the documentation of
2207 (Copyright notice): Update.
2210 2000-03-16 Akim Demaille <akim@epita.fr>
2212 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2213 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2214 One `#if YYDEBUG' remains, since it uses variables which are
2215 defined only if `YYDEBUG != 0'.
2217 2000-03-16 Akim Demaille <akim@epita.fr>
2219 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2220 and related variables so that the similarities are highlighted.
2222 2000-03-16 Akim Demaille <akim@epita.fr>
2224 * src/bison.s1: Properly indent CPP directives.
2226 2000-03-16 Akim Demaille <akim@epita.fr>
2228 * src/bison.s1: Properly indent the `alloca' CPP section.
2230 2000-03-16 Akim Demaille <akim@epita.fr>
2232 Do not hard code values of directories in `configure.in'.
2233 Update the `configure' tool chain.
2235 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2237 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2238 (AC_OUTPUT): Add m4/Makefile.
2239 Bump to bison 1.28a, 1.29 has never been released.
2240 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2241 handled via src/Makefile.am.
2242 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2243 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2245 * Makefile.am (SUBDIRS): Add m4.
2246 (ACLOCAL_AM_FLAGS): New variable.
2247 (AUTOMAKE_OPTIONS): Add check-news.
2248 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2249 the proper line number and file name.
2250 (DEFS): Propagate the location of bison library files and of the
2252 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2254 * acinclude.m4: Remove, replaced by the directory m4.
2255 * m4/Makefile.am (EXTRA_DIST): New variable.
2256 * m4/gettext.m4: New file, from the fileutils.
2257 * m4/lcmessage.m4: Likewise
2258 * m4/progtest.m4: Likewise.
2259 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2261 2000-03-10 Akim Demaille <akim@epita.fr>
2264 Formatting changes of various comments.
2265 Respect the GNU coding standards at various places.
2266 Don't use `_()' when no translation is needed.
2268 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2271 OS/2 honors TMPDIR environment variable.
2273 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2275 * doc/bison.texinfo: Tweaked spelling and grammar.
2277 Removed reference to price of printed copy.
2278 Mention BISON_SIMPLE and BISON_HAIRY.
2280 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2282 * configure.in, NEWS:
2283 Bison 1.29 released.
2285 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2287 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2288 Added reference card.
2290 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2292 * po/ru.po: Added Russian translation.
2294 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2296 * configure.in: Added Russian translation.
2298 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2300 * configure.in, NEWS, README:
2301 Released version 1.28.
2303 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2306 Squashed redefinition warning on some systems.
2308 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2309 Have configure build version string instead of relying on ANSI string
2312 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2314 * po/POTFILES.in: Got rid of version.c.
2316 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2318 * acconfig.h, configure.in:
2319 Have configure build version string instead of relying on ANSI string
2322 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2325 Dropped mention of `+' for long-named options.
2327 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2329 * src/files.c: Added <unistd.h> for unlink().
2331 * src/Makefile.am, src/system.h:
2334 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2336 * README: Added a FAQ list.
2338 * configure.in, acconfig.h:
2341 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2343 * doc/FAQ, doc/Makefile.am:
2346 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2348 * src/alloc.h, src/symtab.h, src/version.c:
2349 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2351 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2353 * src/.cvsignore, src/Makefile.am:
2354 Reorganized: sources in `src', documentation in `doc'.
2356 * src/lex.c (literalchar):
2357 fixed the code for escaping double quotes (thanks
2360 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2362 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2363 Adjusted paths to reflect directory reorganization.
2365 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2367 * doc/.cvsignore, doc/Makefile.am:
2368 Reorganized: sources in `src', documentation in `doc'.
2370 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2373 Updated AC_INIT file to reflect directory reorganization.
2375 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2376 Reorganized: sources in `src', documentation in `doc'.
2378 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2381 Don't declare calloc() and realloc() if not necessary.
2383 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2385 * configure.in, acconfig.h, acinclude.m4:
2386 Don't declare calloc() and realloc() if not necessary.
2388 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2390 * po/.cvsignore: Added i18n support.
2392 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2394 * acconfig.h, configure.in, Makefile.am:
2397 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2399 * src/bison.s1: Fixed #line numbers.
2401 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2403 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2404 Added PO files from Translation Project.
2406 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2409 Added support for non-ANSI compilers (ansi2knr).
2411 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2413 * configure.in: Bumped version number to 1.27.
2416 Added `bison.simple' to list of files removed by `make distclean'.
2418 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2420 * src/files.c, src/files.h:
2421 Defined locations of parser files in config.h instead of Makefile.
2423 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2425 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2426 Defined locations of parser files in config.h instead of Makefile.
2428 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2431 Removed inappropriate use of $< macro.
2433 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2435 * po/Makefile.in.in, po/POTFILES.in:
2436 Add `po' directory skeleton.
2438 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2440 * README: Document help-bison list.
2442 * configure.in: Add check for mkstemp().
2444 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2446 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2447 Hush a few compiler warnings.
2450 Add tryclose(), which verifies that fclose was successful.
2451 Hush a couple of compiler warnings.
2453 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2455 * Makefile.am, OChangeLog:
2456 ChangeLog is now automatically generated. Include the old version as
2459 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2461 * 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:
2464 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2466 * doc/bison.texinfo: Fix formatting glitch.
2468 * doc/bison.texinfo: Update FSF address.
2470 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2472 * acconfig.h: Update FSF address.
2474 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2477 Don't define PACKAGE here, since config.h defines it.
2479 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2481 * src/reader.c: Update copyright date.
2484 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2485 favor of output directly to stderr (avoids buffer overruns).
2487 * src/reader.c: Some checks for premature EOF.
2489 * 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:
2490 Use prototypes if the compiler understands them.
2492 * src/files.c: Honor TMPDIR on Unix hosts.
2493 Use prototypes if the compiler understands them.
2496 Fix a couple of buffer overrun bugs.
2497 Use prototypes if the compiler understands them.
2499 * src/system.h: Include unistd.h and ctype.h.
2500 Use #ifdef instead of #if for NLS symbols.
2502 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2504 * doc/bison.texinfo:
2505 Delete comment "consider using @set for edition number, etc..." since
2506 we now are doing so.
2508 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2511 Use prototypes if the compiler understands them.
2513 * NEWS: Document 1.26 highlights.
2515 * Makefile.am: Require Automake 1.3 or later.
2518 Use prototypes if the compiler understands them.
2520 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2523 Use VERSION symbol from automake for version number.
2525 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2527 * acconfig.h, configure.in, version.cin:
2528 Use VERSION symbol from automake for version number.
2530 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2533 Distribute original version of simple parser (bison.s1), not built
2534 version (bison.simple).
2536 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2538 * doc/bison.texinfo: Add info dir entry.
2540 * doc/bison.texinfo:
2541 Let automake put version number into documentation.
2543 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2545 * src/bison.cld, src/build.com, src/vmshlp.mar:
2546 Add non-RCS files from /gd/gnu/bison.
2548 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2551 Document the BISON_HAIRY and BISON_SIMPLE variables.
2553 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2555 * src/version.c: Build version.c automatically.
2558 Fix token numbering (used to start at 258, not 257).
2560 * src/system.h: Include config.h.
2562 * src/getargs.c: Update bug report address.
2564 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2565 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2567 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2570 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2572 * configure.in, version.cin:
2573 Build version.c automatically.
2575 * AUTHORS: Add AUTHORS file.
2577 * README: Update bug report address.
2580 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2582 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2585 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2587 * doc/bison.texinfo: Clean up some formatting.
2589 1998-05-05 Richard Stallman <rms@gnu.org>
2591 * doc/bison.texinfo:
2592 Explain better why to make a pure parser.
2594 1998-01-05 Richard Stallman <rms@gnu.org>
2596 * src/files.c (openfiles):
2597 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2598 find a temporary directory, if possible. Do not unlink files while
2601 1997-08-25 Richard Stallman <rms@gnu.org>
2603 * src/reader.c (stack_offset;):
2604 Change some warni to warns.
2606 * src/lex.c (literalchar): Use warns, not warni.
2608 1997-06-28 Richard Stallman <rms@gnu.org>
2610 * src/bison.s1: Add a Bison version comment.
2612 * src/main.c (fatal, warn, berror):
2615 1997-06-28 Richard Stallman <rms@gnu.org>
2617 * Makefile.in (bison_version): New variable.
2618 (dist): Use that variable.
2619 (bison.s1): Substitute the Bison version into bison.simple.
2621 * bison.simple: Add a Bison version comment.
2623 1997-06-18 Richard Stallman <rms@gnu.org>
2625 * src/main.c (fatal, warn, berror):
2626 Make error messages standard.
2627 (toomany): Improve error message text.
2629 * 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:
2630 new.h renamed to alloc.h.
2632 1997-06-18 Richard Stallman <rms@gnu.org>
2634 * Makefile.in: new.h renamed to alloc.h.
2636 1997-05-24 Richard Stallman <rms@gnu.org>
2638 * src/lex.c (literalchar):
2639 Fix the code for escaping \, " and '.
2641 (lex): Avoid trouble when there are many chars
2642 to discard in a char literal with just several chars in it.
2644 1997-05-17 Richard Stallman <rms@gnu.org>
2647 Use malloc, if using alloca is troublesome.
2648 (YYSTACK_USE_ALLOCA): New flag macro.
2649 Define it for some systems and compilers.
2650 (YYSTACK_ALLOC): New macro.
2651 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2652 If it was malloc'd, free it.
2654 1997-05-17 Richard Stallman <rms@gnu.org>
2657 Use malloc, if using alloca is troublesome.
2658 (YYSTACK_USE_ALLOCA): New flag macro.
2659 Define it for some systems and compilers.
2660 (YYSTACK_ALLOC): New macro.
2661 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2662 If it was malloc'd, free it.
2664 1997-04-23 Richard Stallman <rms@gnu.org>
2667 (alloca) [__hpux]: Always define as __builtin_alloca.
2669 1997-04-23 Richard Stallman <rms@gnu.org>
2672 (alloca) [__hpux]: Always define as __builtin_alloca.
2674 1997-04-22 Richard Stallman <rms@gnu.org>
2677 [__hpux]: Include alloca.h (right for HPUX 10)
2678 instead of declaring alloca (right for HPUX 9).
2680 * src/bison.s1 (__yy_memcpy):
2681 Declare arg `count' as unsigned int.
2682 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2684 1997-04-22 Richard Stallman <rms@gnu.org>
2687 [__hpux]: Include alloca.h (right for HPUX 10)
2688 instead of declaring alloca (right for HPUX 9).
2690 * bison.simple (__yy_memcpy):
2691 Declare arg `count' as unsigned int.
2692 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2694 1997-01-03 Richard Stallman <rms@gnu.org>
2696 * src/allocate.c: [__STDC__ or _MSC_VER]:
2697 Declare calloc and realloc to return void *.
2699 1997-01-02 Richard Stallman <rms@gnu.org>
2702 [_MSC_VER]: Include stdlib.h and process.h.
2703 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2705 * src/main.c (main): Return FAILURE as a value.
2706 (printable_version): Declare arg as int, not char.
2708 1997-01-02 Richard Stallman <rms@gnu.org>
2710 * Makefile.in (dist):
2711 Explicitly check for symlinks, and copy them.
2713 1996-12-19 Richard Stallman <rms@gnu.org>
2716 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2718 1996-12-18 Paul Eggert <eggert@gnu.org>
2720 * src/bison.s1 (yyparse):
2721 If __GNUC__ and YYPARSE_PARAM are both defined,
2722 declare yyparse to have a void * argument.
2724 1996-12-18 Paul Eggert <eggert@gnu.org>
2726 * bison.simple (yyparse):
2727 If __GNUC__ and YYPARSE_PARAM are both defined,
2728 declare yyparse to have a void * argument.
2730 1996-12-17 Richard Stallman <rms@gnu.org>
2732 * src/reduce.c (nbits): Add some casts.
2734 1996-08-12 Richard Stallman <rms@gnu.org>
2736 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2738 1996-08-12 Richard Stallman <rms@gnu.org>
2740 * bison.simple: Test _MSDOS as well as _MSDOS_.
2742 1996-07-31 Richard Stallman <rms@gnu.org>
2745 [__sun && __i386]: Include alloca.h.
2747 1996-07-31 Richard Stallman <rms@gnu.org>
2750 [__sun && __i386]: Include alloca.h.
2752 1996-07-30 Richard Stallman <rms@gnu.org>
2754 * src/bison.s1: Comment change.
2756 * src/bison.s1: Test _MSDOS_, not MSDOS.
2758 1996-07-30 Richard Stallman <rms@gnu.org>
2760 * bison.simple: Comment change.
2762 * bison.simple: Test _MSDOS_, not MSDOS.
2764 1996-06-01 Richard Stallman <rms@gnu.org>
2766 * 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:
2767 Insert `_' macro around many string constants.
2770 Insert `_' macro around many string constants.
2772 (main): Call setlocale, bindtextdomain and textdomain.
2774 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2775 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2776 [ENABLE_NLS]: Include libintl.h.
2777 [ENABLE_NLS] (gettext): Define.
2778 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2779 (N_, PACKAGE, LOCALEDIR): New macros.
2781 1996-06-01 Richard Stallman <rms@gnu.org>
2783 * POTFILES.in: New file.
2785 * Makefile.in (allocate.o):
2786 Define target explicitly.
2788 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2789 (LDFLAGS): Set to @LDFLAGS@.
2790 (configure): Run autoconf only if preceding `cd' succeeds.
2791 (bison.s1): Redirect output to temporary file then move the
2792 temporary to the target, rather than redirecting directly to bison.s1.
2793 (clean): Remove config.status and config.log.
2794 (distclean): Don't remove config.status here.
2796 1996-05-12 Richard Stallman <rms@gnu.org>
2799 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2801 1996-05-12 Richard Stallman <rms@gnu.org>
2804 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2806 1996-05-11 Richard Stallman <rms@gnu.org>
2808 * src/bison.s1 (__yy_memcpy):
2809 Really reorder the args, as was supposedly done on Feb 14 1995.
2810 (yyparse): Calls changed accordingly.
2812 1996-05-11 Richard Stallman <rms@gnu.org>
2814 * Makefile.in (dist): Don't use $(srcdir).
2816 * bison.simple (__yy_memcpy):
2817 Really reorder the args, as was supposedly done on Feb 14 1995.
2818 (yyparse): Calls changed accordingly.
2820 1996-01-27 Richard Stallman <rms@gnu.org>
2822 * src/output.c (output_rule_data):
2823 Test YYERROR_VERBOSE in the conditional
2824 around the definition of ttyname.
2826 1995-12-29 Richard Stallman <rms@gnu.org>
2829 Fix line numbers in #line commands.
2831 1995-12-29 Richard Stallman <rms@gnu.org>
2834 Fix line numbers in #line commands.
2836 1995-12-27 Richard Stallman <rms@gnu.org>
2838 * src/bison.s1 (YYPARSE_PARAM_DECL):
2839 In C++, make it always null.
2840 (YYPARSE_PARAM_ARG): New macro.
2841 (yyparse): Use YYPARSE_PARAM_ARG.
2843 1995-12-27 Richard Stallman <rms@gnu.org>
2845 * bison.simple (YYPARSE_PARAM_DECL):
2846 In C++, make it always null.
2847 (YYPARSE_PARAM_ARG): New macro.
2848 (yyparse): Use YYPARSE_PARAM_ARG.
2850 1995-11-29 Richard Stallman <rms@gnu.org>
2852 * doc/bison.texinfo:
2853 Describe literal string tokens, %raw, %no_lines, %token_table.
2855 1995-11-29 Daniel Hagerty <hag@gnu.org>
2857 * doc/bison.texinfo: Fixed update date
2859 1995-10-16 Richard Stallman <rms@gnu.org>
2861 * src/version.c: Version 1.25.
2863 1995-10-16 Richard Stallman <rms@gnu.org>
2865 * NEWS: *** empty log message ***
2867 1995-10-16 Richard Stallman <rms@gnu.org>
2869 * doc/bison.1, doc/bison.rnh:
2872 1995-10-15 Richard Stallman <rms@gnu.org>
2874 * src/vmsgetargs.c, src/getargs.c:
2875 Added -n, -k, and -raw switches.
2876 (noparserflag, toknumflag, rawtoknumflag): New variables.
2878 * src/symtab.h (SALIAS):
2879 New #define for adding aliases to %token.
2880 (struct bucket): Added `alias' field.
2882 * src/reduce.c (reduce_grammar):
2883 Revise error message.
2884 (print_notices): Remove final `.' from error message.
2886 * src/reader.c (reader_output_yylsp):
2888 (readgram): Use `#if 0' around code that accepted %command
2889 inside grammar rules: The documentation doesn't allow it,
2890 and it will fail since the %command processors scan for the next %.
2891 (parse_token_decl): Extended the %token
2892 declaration to allow a multi-character symbol as an alias.
2893 (parse_thong_decl): New function.
2894 (read_declarations): Added %thong declarations.
2895 (read_declarations): Handle NOOP to deal with allowing
2896 % declarations as another means to specify the flags.
2897 (readgram): Allow %prec prior to semantics embedded in a rule.
2898 (skip_to_char, read_declarations, copy_definition)
2899 (parse_token_decl, parse_start_decl, parse_type_decl)
2900 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2901 (get_type_name, copy_guard, copy_action, readgram)
2902 (get_type, packsymbols): Revised most error messages.
2903 Changed `fatal' to `warnxxx' to avoid aborting for error.
2904 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2905 (read_declarations): Improve the error message for
2906 an invalid character. Do not abort.
2907 (read_declarations, copy_guard, copy_action): Use
2908 printable_version to avoid unprintable characters in printed output.
2909 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2910 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2911 Allow the type of a non-terminal can be given
2912 more than once, as long as all specifications give the same type.
2915 (output_headers, output_trailers, output, output_gram)
2916 (output_rule_data): Implement noparserflag variable.
2917 Implement toknumflag variable.
2918 (output): Call reader_output_yylsp to output LTYPESTR.
2920 * src/main.c (main):
2921 If reader sees an error, don't process the grammar.
2922 (fatals): Updated to not use VARARGS1.
2923 (printable_version, int_to_string, warn, warni, warns, warnss)
2924 (warnsss): New error reporting functions. Avoid abort for error.
2927 Added THONG and NOOP for alias processing.
2928 Added SETOPT for the new code that allows setting options with %flags.
2931 Include getopt.h. Add some extern decls.
2932 (safegetc): New function to deal with EOF gracefully.
2933 (literalchar); new function to deal with reading \ escapes.
2934 (lex): Use literalchar.
2935 (lex): Implemented "..." tokens.
2936 (literalchar, lex, parse_percent_token): Made tokenbuffer
2937 always contain the token. This includes growing the token
2938 buffer while reading an integer.
2939 (parse_percent_token): Replaced if-else statement with percent_table.
2940 (parse_percent_token): Added % declarations as another
2941 way to specify the flags -n, -l, and -r. Also added hooks for
2942 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2943 major changes to files.c.
2944 (lex) Retain in the incoming stream a character following
2946 (skip_white_space, lex): Revised most error messages
2947 and changed fatal to warn to avoid aborting.
2948 (percent_table): Added %thong declarations.
2950 * src/gram.h: Comment changes.
2952 * src/files.c (openfiles, open_extra_files, done):
2954 and actfile file. Handle noparserflag. Both for -n switch.
2956 * src/conflicts.c (resolve_sr_conflict):
2957 Remove use of alloca.
2959 1995-06-01 Jim Meyering <meyering@gnu.org>
2961 * doc/bison.texinfo: *** empty log message ***
2963 1995-05-06 Richard Stallman <rms@gnu.org>
2965 * src/bison.s1: Comment change.
2967 1995-05-06 Richard Stallman <rms@gnu.org>
2969 * bison.simple: Comment change.
2971 1995-05-03 Richard Stallman <rms@gnu.org>
2973 * src/version.c: Version now 1.24.
2975 * src/bison.s1: Change distribution terms.
2977 * src/version.c: Version now 1.23.
2979 1995-05-03 Richard Stallman <rms@gnu.org>
2981 * doc/bison.texinfo:
2982 Rewrite "Conditions for Using Bison".
2983 Update version to 1.24.
2985 1995-05-03 Richard Stallman <rms@gnu.org>
2987 * bison.simple: Change distribution terms.
2989 1995-02-23 Richard Stallman <rms@gnu.org>
2991 * src/files.c: Test __VMS_POSIX as well as VMS.
2993 1995-02-14 Jim Meyering <meyering@gnu.org>
2995 * src/bison.s1 (__yy_memcpy):
2996 Renamed from __yy_bcopy to avoid
2997 confusion. Reverse FROM and TO arguments to be consistent with
3000 1995-02-14 Jim Meyering <meyering@gnu.org>
3002 * bison.simple (__yy_memcpy):
3003 Renamed from __yy_bcopy to avoid
3004 confusion. Reverse FROM and TO arguments to be consistent with
3007 1994-11-10 David J. MacKenzie <djm@gnu.org>
3013 * Makefile.in (DISTFILES): Include NEWS.
3015 * Makefile.in (DISTFILES):
3016 Include install-sh, not install.sh.
3018 * configure.in: Update to Autoconf v2 macro names.
3020 1994-10-05 David J. MacKenzie <djm@gnu.org>
3022 * Makefile.in: fix typo
3024 * Makefile.in (prefix, exec_prefix):
3025 Let configure set them.
3027 1994-09-28 David J. MacKenzie <djm@gnu.org>
3029 * Makefile.in: Set datadir to $(prefix)/share.
3031 1994-09-15 Richard Stallman <rms@gnu.org>
3034 Update copyright notice and GPL version.
3036 1994-09-15 Richard Stallman <rms@gnu.org>
3039 Update copyright notice and GPL version.
3041 1994-07-12 Richard Stallman <rms@gnu.org>
3043 * src/reduce.c, src/reader.c:
3046 1994-05-05 David J. MacKenzie <djm@gnu.org>
3048 * Makefile.in: entered into RCS
3050 1994-03-26 Richard Stallman <rms@gnu.org>
3052 * src/bison.s1: entered into RCS
3054 1994-03-26 Richard Stallman <rms@gnu.org>
3056 * bison.simple: entered into RCS
3058 1994-03-25 Richard Stallman <rms@gnu.org>
3060 * src/main.c: entered into RCS
3062 1994-03-24 Richard Stallman <rms@gnu.org>
3064 * src/conflicts.c: entered into RCS
3066 1994-01-02 Richard Stallman <rms@gnu.org>
3068 * Makefile.in: *** empty log message ***
3070 1993-11-21 Richard Stallman <rms@gnu.org>
3072 * src/bison.s1: *** empty log message ***
3074 1993-11-21 Richard Stallman <rms@gnu.org>
3076 * doc/bison.texinfo: entered into RCS
3078 * doc/bison.texinfo: *** empty log message ***
3080 1993-11-21 Richard Stallman <rms@gnu.org>
3082 * bison.simple: *** empty log message ***
3084 1993-10-25 David J. MacKenzie <djm@gnu.org>
3086 * doc/bison.texinfo: *** empty log message ***
3088 1993-10-19 Richard Stallman <rms@gnu.org>
3090 * src/bison.s1: *** empty log message ***
3092 1993-10-19 Richard Stallman <rms@gnu.org>
3094 * bison.simple: *** empty log message ***
3096 1993-10-14 Richard Stallman <rms@gnu.org>
3098 * src/bison.s1: *** empty log message ***
3100 1993-10-14 Richard Stallman <rms@gnu.org>
3102 * bison.simple: *** empty log message ***
3104 1993-09-14 David J. MacKenzie <djm@gnu.org>
3106 * doc/bison.texinfo: *** empty log message ***
3108 1993-09-13 Noah Friedman <friedman@gnu.org>
3110 * Makefile.in: *** empty log message ***
3112 1993-09-10 Richard Stallman <rms@gnu.org>
3114 * src/conflicts.c: *** empty log message ***
3116 * src/system.h: entered into RCS
3118 1993-09-10 Richard Stallman <rms@gnu.org>
3120 * doc/bison.1: entered into RCS
3122 1993-09-06 Noah Friedman <friedman@gnu.org>
3124 * src/version.c: entered into RCS
3126 1993-09-06 Noah Friedman <friedman@gnu.org>
3128 * Makefile.in: *** empty log message ***
3130 1993-07-30 David J. MacKenzie <djm@gnu.org>
3132 * Makefile.in: *** empty log message ***
3134 1993-07-24 Richard Stallman <rms@gnu.org>
3136 * src/bison.s1: *** empty log message ***
3138 1993-07-24 Richard Stallman <rms@gnu.org>
3140 * bison.simple: *** empty log message ***
3142 1993-07-08 David J. MacKenzie <djm@gnu.org>
3144 * Makefile.in: *** empty log message ***
3146 1993-07-04 Richard Stallman <rms@gnu.org>
3148 * src/bison.s1: *** empty log message ***
3150 1993-07-04 Richard Stallman <rms@gnu.org>
3152 * bison.simple: *** empty log message ***
3154 1993-06-26 David J. MacKenzie <djm@gnu.org>
3156 * src/getargs.c: entered into RCS
3158 1993-06-26 David J. MacKenzie <djm@gnu.org>
3160 * doc/bison.texinfo: *** empty log message ***
3162 * doc/bison.1: New file.
3164 1993-06-25 Richard Stallman <rms@gnu.org>
3166 * src/getargs.c: New file.
3168 1993-06-16 Richard Stallman <rms@gnu.org>
3170 * src/bison.s1: *** empty log message ***
3172 1993-06-16 Richard Stallman <rms@gnu.org>
3174 * bison.simple: *** empty log message ***
3176 1993-06-03 Richard Stallman <rms@gnu.org>
3178 * src/bison.s1: New file.
3180 1993-06-03 Richard Stallman <rms@gnu.org>
3182 * doc/bison.texinfo: *** empty log message ***
3184 1993-06-03 Richard Stallman <rms@gnu.org>
3186 * bison.simple: New file.
3188 1993-05-19 Richard Stallman <rms@gnu.org>
3190 * doc/bison.texinfo: New file.
3192 1993-05-07 Noah Friedman <friedman@gnu.org>
3194 * Makefile.in: *** empty log message ***
3196 1993-04-28 Noah Friedman <friedman@gnu.org>
3198 * src/reader.c: *** empty log message ***
3200 1993-04-23 Noah Friedman <friedman@gnu.org>
3202 * src/alloc.h: entered into RCS
3204 1993-04-20 David J. MacKenzie <djm@gnu.org>
3206 * src/version.c: *** empty log message ***
3208 * src/files.c, src/allocate.c:
3211 * src/reader.c: *** empty log message ***
3213 * src/lex.c: entered into RCS
3215 * src/conflicts.c: New file.
3217 * src/symtab.c: entered into RCS
3219 * src/alloc.h: New file.
3221 * src/LR0.c: entered into RCS
3223 1993-04-18 Noah Friedman <friedman@gnu.org>
3225 * src/reader.c: New file.
3227 * src/version.c: *** empty log message ***
3229 1993-04-18 Noah Friedman <friedman@gnu.org>
3231 * Makefile.in: *** empty log message ***
3233 1993-04-17 Noah Friedman <friedman@gnu.org>
3235 * Makefile.in: *** empty log message ***
3237 1993-04-15 Richard Stallman <rms@gnu.org>
3239 * src/main.c, src/files.c:
3242 1993-04-15 Noah Friedman <friedman@gnu.org>
3244 * configure.in: entered into RCS
3246 * configure.in: *** empty log message ***
3248 * configure.in: New file.
3250 1993-04-14 Richard Stallman <rms@gnu.org>
3252 * Makefile.in: New file.
3254 1993-04-13 Richard Stallman <rms@gnu.org>
3256 * src/version.c: New file.
3258 1993-03-25 Richard Stallman <rms@gnu.org>
3260 * src/output.c: entered into RCS
3262 1992-09-25 Richard Stallman <rms@gnu.org>
3264 * configure.bat: entered into RCS
3266 1992-06-22 Richard Stallman <rms@gnu.org>
3268 * src/vmsgetargs.c: entered into RCS
3270 1992-06-22 Richard Stallman <rms@gnu.org>
3272 * doc/bison.rnh: entered into RCS
3274 1992-04-20 David J. MacKenzie <djm@gnu.org>
3276 * README: entered into RCS
3278 1992-01-22 Richard Stallman <rms@gnu.org>
3280 * src/machine.h: entered into RCS
3282 1991-12-21 Richard Stallman <rms@gnu.org>
3284 * src/lalr.c, src/closure.c:
3287 1991-12-20 Richard Stallman <rms@gnu.org>
3289 * src/state.h: entered into RCS
3291 1991-12-18 Richard Stallman <rms@gnu.org>
3293 * src/print.c, src/nullable.c, src/derives.c:
3296 1991-11-03 David J. MacKenzie <djm@gnu.org>
3298 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3301 1988-09-09 Richard Stallman <rms@gnu.org>
3303 * src/bison.hairy: entered into RCS
3305 1987-12-16 Richard Stallman <rms@gnu.org>
3307 * REFERENCES: entered into RCS