1 2001-11-19 Akim Demaille <akim@epita.fr>
3 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
6 (allocate_itemsets): Use arrays instead of pointers to clarify.
8 2001-11-19 Akim Demaille <akim@epita.fr>
10 * src/getargs.c (statistics_flag): Replace with...
12 (longopts): Accept --trace instead of --statistics.
13 * src/getargs.h: Adjust.
14 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
15 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
17 2001-11-19 Akim Demaille <akim@epita.fr>
19 * src/LR0.c (new_itemsets, get_state): Use more arrays and less
20 pointers to clarify the code.
21 (save_reductions, save_shifts): Factor common parts of alternatives.
23 2001-11-19 Akim Demaille <akim@epita.fr>
25 * src/LR0.c (new_state, get_state): Complete TRACE code.
26 * src/closure.c: Include `reader.h' to get `tags', needed by the
28 Rename the conditional DEBUG as TRACE.
29 Output consistently TRACEs to stderr, not stdout.
30 * src/derives.c: Likewise.
31 * src/reduce.c: (inaccessable_symbols): Using if is better style
33 Use `#if TRACE' instead of `#if 0' for tracing code.
35 2001-11-19 Akim Demaille <akim@epita.fr>
37 * src/system.h (LIST_FREE, shortcpy): New.
38 * src/LR0.c: Use them.
39 * src/output.c (free_itemsets, free_reductions, free_shifts):
40 Remove, replaced by LIST_FREE.
43 2001-11-19 Akim Demaille <akim@epita.fr>
45 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
46 (REDUCTIONS_ALLOC): New.
47 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
51 2001-11-19 Akim Demaille <akim@epita.fr>
53 * src/LR0.c (new_state): Complete trace code.
54 * src/nullable.c (set_nullable): Don't translate traces.
57 2001-11-19 Akim Demaille <akim@epita.fr>
59 * src/print_graph.c (print_core): Better locality of variables.
60 * src/print.c (print_core): Likewise.
62 2001-11-19 Akim Demaille <akim@epita.fr>
64 * src/vcg.c: You do the output, so you are responsible of the
65 handling of VCG syntax, in particular: use quotearg.
66 * src/print_graph.c: Don't.
67 (print_actions): Don't output the actions as part of the nodes,
68 since that's the job of the edges.
69 (print_state): Don't output by hand: fill the node description,
70 and ask for its output.
72 2001-11-19 Akim Demaille <akim@epita.fr>
74 * src/bison.simple (yyparse): When reporting verbosely an error,
75 no longer issue additional quotes around token names.
76 * tests/calc.at: Adjust.
78 2001-11-19 Akim Demaille <akim@epita.fr>
80 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
81 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
82 * src/output.c: Adjust.
85 2001-11-19 Akim Demaille <akim@epita.fr>
87 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
89 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
91 2001-11-19 Akim Demaille <akim@epita.fr>
93 * src/gram.h (rule_t): New.
95 (rrhs, rlhs): Remove, part of state_t.
96 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
97 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
98 * src/reader.c, src/reduce.c: Adjust.
101 2001-11-19 Akim Demaille <akim@epita.fr>
103 * src/reader.c (symbols_output): New, extracted from...
107 2001-11-19 Akim Demaille <akim@epita.fr>
109 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
110 (maxrhs): this new function.
112 2001-11-19 Akim Demaille <akim@epita.fr>
114 * src/lalr.c (F): New macro to access to the variable F.
117 2001-11-19 Akim Demaille <akim@epita.fr>
119 * src/lalr.h (LA): New macro to access to the variable LA.
120 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
121 * src/lalr.c: Adjust.
123 2001-11-19 Akim Demaille <akim@epita.fr>
125 * src/lalr.c (initialize_LA): Only initialize LA. Let...
126 (set_state_table): handle the `lookaheads' members.
129 2001-11-19 Akim Demaille <akim@epita.fr>
131 * src/lalr.h (lookaheads): Removed array, which contents is now
133 (state_t): this structure.
134 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
137 2001-11-19 Akim Demaille <akim@epita.fr>
139 * src/lalr.h (consistent): Removed array, which contents is now
141 (state_t): this structure.
142 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
145 2001-11-19 Akim Demaille <akim@epita.fr>
147 * src/lalr.h (reduction_table, shift_table): Removed arrays, which
148 contents is now members of...
149 (state_t): this structure.
150 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
154 2001-11-19 Akim Demaille <akim@epita.fr>
156 * src/lalr.h (state_t): New.
157 (state_table): Be a state_t * instead of a core **.
158 (accessing_symbol): Remove, part of state_t.
159 * src/lalr.c: Adjust.
160 (set_accessing_symbol): Merge into...
161 (set_state_table): this.
162 * src/print_graph.c, src/conflicts.c: Adjust.
164 2001-11-14 Akim Demaille <akim@epita.fr>
168 2001-11-14 Akim Demaille <akim@epita.fr>
170 * tests/calc.at, tests/output.at, tests/regression.at,
171 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
172 now the tests are run in private dirs, therefore AC_CLEANUP and
173 family can be simplified to 0-ary.
174 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
175 use abs. path to find config.h.
177 2001-11-14 Akim Demaille <akim@epita.fr>
179 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
180 stderr, there can be way too much random noise.
181 Instead pass -Werror to GCC and rely on the exit status.
182 Reported by Wolfram Wagner.
184 2001-11-14 Akim Demaille <akim@epita.fr>
186 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
187 defined only if yyoverflow is defined, to avoid `warning: unused
189 Reported by The Test Suite.
191 2001-11-14 Akim Demaille <akim@epita.fr>
193 * src/print.c: Include reduce.h.
194 Reported by Hans Aberg.
196 2001-11-14 Akim Demaille <akim@epita.fr>
198 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
199 Revert a previous patch: these are really const.
200 * src/conflicts.c (conflict_report): Additional useless pair of
201 braces to pacify GCC's warnings for `if () if () {} else {}'.
202 * src/lex.c (parse_percent_token): Replace equal_offset with
205 Be sure to strdup `arg' when used, since there is no reason for
206 token_buffer not to change.
208 2001-11-14 Akim Demaille <akim@epita.fr>
210 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
212 * src/main.c (main): Use them.
213 Suggested by Hans Aberg.
215 2001-11-12 Akim Demaille <akim@epita.fr>
219 * src/system.h (ngettext): Now that we use ngettext, be sure to
220 provide a default definition when NLS are not used that takes care
223 2001-11-12 Akim Demaille <akim@epita.fr>
225 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
226 Use @kbd to denote user input.
227 (Language and Grammar): ANSIfy the example.
228 Adjust its layout for info/notinfo.
229 (Location Tracking Calc): Output error messages to stderr.
230 Output locations in a more GNUtically correct way.
231 Fix a couple of Englishos.
232 Adjust @group/@end group pairs.
234 2001-11-12 Akim Demaille <akim@epita.fr>
236 %expext was not functioning at all.
238 * src/conflicts.c (expected_conflicts): Set to -1.
239 (conflict_report): Use ngettext.
240 (conflicts_print): Check %expect and make its violation an error.
241 * doc/bison.texinfo (Expect Decl): Adjust.
242 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
243 * tests/regression.at (%expect not enough, %expect right)
244 (%expect too much): New.
246 2001-11-12 Akim Demaille <akim@epita.fr>
248 * tests/regression.at (Conflicts): Rename as...
249 (Unresolved SR Conflicts): this.
250 (Solved SR Conflicts): New.
252 2001-11-12 Akim Demaille <akim@epita.fr>
254 * src/reduce.c (print_results): Rename as...
255 (reduce_output): This.
256 Output to OUT, passed as argument, instead of output_obstack.
257 (dump_grammar): Likewise.
260 (reduce_grammar): No longer call reduce_output, since...
261 * src/print.c (print_results): do it.
262 * src/main.c (main): Call reduce_free;
264 2001-11-12 Akim Demaille <akim@epita.fr>
266 * src/conflicts.c (print_reductions): Accept OUT as argument.
267 Output to it, not to output_obstack.
268 * src/print.c (print_actions): Adjust.
270 2001-11-12 Akim Demaille <akim@epita.fr>
272 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
273 the result instead of using...
274 (src_total, rrc_total, src_count, rrc_count): Remove.
275 (any_conflicts): Remove.
276 (print_conflicts): Split into...
277 (conflicts_print, conflicts_output): New.
278 * src/conflicts.h: Adjust.
279 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
280 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
281 * tests/regression.at (Conflicts): New.
282 Reported by Tom Lane.
284 2001-11-12 Akim Demaille <akim@epita.fr>
286 * tests/regression.at (Invalid input): Remove, duplicate with
287 ``Invalid input: 1''.
289 2001-11-12 Akim Demaille <akim@epita.fr>
291 * tests/torture.at (AT_DATA_STACK_TORTURE)
292 (Exploding the Stack Size with Alloca)
293 (Exploding the Stack Size with Malloc): New.
295 2001-11-12 Akim Demaille <akim@epita.fr>
297 * src/bison.simple (YYSTACK_REALLOC): New.
298 (yyparse) [!yyoverflow]: Use it and free the old stack.
299 Reported by Per Allansson.
301 2001-11-05 Akim Demaille <akim@epita.fr>
304 * src/lex.c (parse_percent_token): s/quotearg/quote/.
306 2001-11-05 Akim Demaille <akim@epita.fr>
308 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
311 2001-11-05 Akim Demaille <akim@epita.fr>
313 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
314 with yyltype/YYLTYPE. This allows inclusion of the generated
315 header within the parser if the compiler, such as GGC, accepts
316 multiple equivalent #defines.
318 2001-11-04 Akim Demaille <akim@epita.fr>
320 * src/getargs.c (longopts): Support `--output'. getopt is now
321 able to understand that `--out' is OK: the two racing long options
324 * src/lex.h (tok_setopt): Remove, replaced with...
325 (tok_intopt, tok_stropt): these new guys.
326 * src/lex.c (getopt.h): Not needed.
327 (token_buffer, unlexed_token_buffer): Not const.
328 (percent_table): Promote `-' over `_' in directive names.
329 Active `%name-prefix', `file-prefix', and `output'.
330 (parse_percent_token): Accept possible arguments to directives.
331 Promote `-' over `_' in directive names.
332 * doc/bison.texinfo (Decl Summary): Split the list into
333 `directives for grammars' and `directives for bison'.
335 Add description of `%name-prefix', `file-prefix', and `output'.
336 Promote `-' over `_' in directive names.
337 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
338 Simplify the description of `--name-prefix'.
339 Promote `-' over `_' in directive names.
340 Promote `--output' over `--output-file'.
341 Fix the description of `--defines'.
342 * tests/output.at: Exercise %file-prefix and %output.
344 2001-11-02 Akim Demaille <akim@epita.fr>
346 * doc/refcard.tex: Update.
348 2001-11-02 Akim Demaille <akim@epita.fr>
350 * src/symtab.h (SUNDEF): New.
351 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
352 stand for `uninitialized', instead of 0.
353 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
354 * src/lex.c (lex): Adjust.
356 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
358 Let yylex return it instead of a plain 0.
359 Reported by Dick Streefland.
361 2001-11-02 Akim Demaille <akim@epita.fr>
363 * tests/regression.at (Mixing %token styles): New test.
365 2001-11-02 Akim Demaille <akim@epita.fr>
367 * src/reader.c (parse_thong_decl): Formatting changes.
368 (token_translations_init): New, extracted from...
372 2001-11-01 Akim Demaille <akim@epita.fr>
374 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
375 Check that `9foo.y' produces correct cpp guards.
376 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
380 2001-11-01 Akim Demaille <akim@epita.fr>
382 * tests/regression.at (Invalid input: 2): New.
383 * src/lex.c (unlexed_token_buffer): New.
384 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
388 2001-11-01 Akim Demaille <akim@epita.fr>
390 * configure.in: Bump to 1.30a.
391 Adjust to newer Autotest.
393 2001-10-26 Akim Demaille <akim@epita.fr>
397 2001-10-26 Paul Eggert <eggert@twinsun.com>
399 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
400 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
401 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
402 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
403 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
404 Sync with fileutils 4.1.1.
406 2001-10-18 Akim Demaille <akim@epita.fr>
409 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
410 avoid spurious failures.
412 2001-10-18 Akim Demaille <akim@epita.fr>
416 2001-10-18 Akim Demaille <akim@epita.fr>
418 * tests/atlocal.in (GCC): Add.
419 * tests/calc.at: s/m4_match/m4_bmatch/.
420 s/m4_patsubst/m4_bpatsubst/.
421 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
422 * configure.in: AC_SUBST(GCC).
424 2001-10-10 Akim Demaille <akim@epita.fr>
427 * configure.in: M4 is no longer needed, but autom4te is.
428 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
431 2001-10-10 Akim Demaille <akim@epita.fr>
435 2001-10-10 Akim Demaille <akim@epita.fr>
438 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
439 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
440 Reported by Airy Andre.
442 2001-10-10 Akim Demaille <akim@epita.fr>
444 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
445 * config/mkinstalldirs, lib/ansi2knr.c: Update.
447 2001-10-02 Akim Demaille <akim@epita.fr>
451 2001-10-02 Akim Demaille <akim@epita.fr>
455 2001-10-02 Akim Demaille <akim@epita.fr>
457 * tests/regression.at (Invalid CPP headers): New.
458 From Alexander Belopolsky.
459 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
461 2001-10-02 Akim Demaille <akim@epita.fr>
463 * tests/regression.at (Invalid input): New.
464 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
467 2001-10-02 Akim Demaille <akim@epita.fr>
469 * tests/calc.at: Now that --debug works, the tests must be adjusted.
471 2001-10-02 Akim Demaille <akim@epita.fr>
473 * src/output.c (output_parser): Assert `skeleton'.
474 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
478 2001-10-01 Marc Autret <autret_m@epita.fr>
480 * src/lex.h: Echo modifications.
481 * src/lex.c (unlex): Parameter is now token_t.
484 2001-10-01 Marc Autret <autret_m@epita.fr>
486 * src/main.c: Include lex.h.
489 2001-09-29 Akim Demaille <akim@epita.fr>
491 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
493 2001-09-28 Akim Demaille <akim@epita.fr>
495 * tests/testsuite.at: Update to newer Autotest.
496 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
498 2001-09-27 Akim Demaille <akim@epita.fr>
500 Position independent wrapper.
502 * tests/bison: Remove.
503 * tests/bison.in: New.
504 * configure.in: Adjust.
506 2001-09-27 Paul Eggert <eggert@twinsun.com>
508 Port quotearg fixes from tar 1.13.24.
510 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
512 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
513 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
515 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
516 * m4/mbrtowc.m4: New file.
517 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
518 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
520 2001-09-27 Akim Demaille <akim@epita.fr>
524 2001-09-27 Akim Demaille <akim@epita.fr>
528 2001-09-25 Akim Demaille <akim@epita.fr>
530 * src/system.h: Include `xalloc.h'.
531 Remove it from the C files.
532 * src/files.c (output_files): Free the obstacks.
533 * src/lex.c (init_lex): Rename as...
536 * src/main.c (main): Use it.
538 2001-09-24 Marc Autret <autret_m@epita.fr>
540 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
541 to output informations in fout (FILE*).
542 (open_graph, close_graph): Likewise.
543 (output_graph, output_edge, output_node): Likewise.
544 * src/vcg.h: Update function prototypes.
545 * src/print_graph.c (print_graph): Open output graph file.
546 (print_actions): Adjust.
547 * src/files.h: Remove extern declaration.
548 * src/files.c: Remove graph_obstack declaration.
549 (open_files): Remove graph_obstack initialization.
550 (output_files): Remove graph_obstack saving.
552 2001-09-24 Marc Autret <autret_m@epita.fr>
554 * src/files.c (compute_output_file_names): Fix.
556 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
558 * src/reader.c (reader): Remove call to free_symtab ().
559 * src/main.c (main): Call it here.
561 * src/conflicts.c (initialize_conflicts): Rename as...
562 (solve_conflicts): this.
563 * src/print.c (print_core, print_actions, print_state)
564 (print_grammar): Dump to a file instead a `output_obstack'.
565 (print_results): Dump `output_obstack', and then proceed with the
567 * src/files.c (compute_output_file_names, close_files): New.
568 (output_files): Adjust.
569 * src/main.c (main): Adjust.
571 2001-09-23 Marc Autret <autret_m@epita.fr>
573 * src/files.c (compute_header_macro): Computes header macro name
574 from spec_defines_file when given.
576 2001-09-23 Marc Autret <autret_m@epita.fr>
578 * src/files.c (output_files): Add default extensions.
580 2001-09-22 Akim Demaille <akim@epita.fr>
582 * src/conflicts.c (finalize_conflicts): Rename as...
583 (free_conflicts): this.
585 2001-09-22 Akim Demaille <akim@epita.fr>
587 * src/gram.c (gram_free): Rename back as...
589 (output_token_translations): Free `token_translations'.
590 * src/symtab.c (free_symtab): Free the tag field.
592 2001-09-22 Akim Demaille <akim@epita.fr>
594 Remove `translations' as it is always set to true.
596 * src/gram.h: Adjust.
597 * src/reader.c (packsymbols, parse_token_decl): Adjust
598 * src/print.c (print_grammar): Adjust.
599 * src/output.c (output_token_translations): Adjust.
600 * src/lex.c (lex): Adjust.
601 * src/gram.c: Be sure the set pointers to NULL.
602 (dummy): Rename as...
605 2001-09-22 Akim Demaille <akim@epita.fr>
607 * configure.in: Invoke AM_LIB_DMALLOC.
608 * src/system.h: Use dmalloc.
609 * src/LR0.c: Be sure to have pointers initialized to NULL.
610 (allocate_itemsets): Allocate kernel_items only if needed.
612 2001-09-22 Akim Demaille <akim@epita.fr>
614 * configure.in: Bump to 1.29b.
615 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
616 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
617 need xmalloc.c in calc.y.
620 2001-09-21 Akim Demaille <akim@epita.fr>
623 * Makefile.maint, config/config.guess, config/config.sub,
624 * config/missing: Update from masters.
625 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
627 * configure.in (ALL_LINGUAS): Add `tr'.
629 2001-09-21 Akim Demaille <akim@epita.fr>
631 * tests/Makefile.am (package.m4): Move to...
632 ($(srcdir)/$(TESTSUITE)): here.
634 2001-09-20 Akim Demaille <akim@epita.fr>
636 * src/complain.c: No longer try to be standalone: use system.h.
637 Don't assume __STDC__ is defined to 1. Just test if it is defined.
638 * src/complain.h: Likewise.
639 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
640 Remove the unused variable `n'.
641 From Albert Chin-A-Young.
643 2001-09-18 Marc Autret <autret_m@epita.fr>
645 * doc/bison.1: Update.
646 * doc/bison.texinfo (Bison Options): Update --defines and --graph
648 (Option Cross Key): Update.
651 2001-09-18 Marc Autret <autret_m@epita.fr>
653 * tests/regression.at: New test (comment in %union).
655 2001-09-18 Marc Autret <autret_m@epita.fr>
657 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
659 Reported by Keith Browne.
661 2001-09-18 Marc Autret <autret_m@epita.fr>
663 * tests/output.at: Add tests for --defines and --graph.
665 2001-09-18 Marc Autret <autret_m@epita.fr>
667 * tests/output.at: Removes tests of %{header,src}_extension features.
669 2001-09-18 Akim Demaille <akim@epita.fr>
671 * tests/Makefile.am (package.m4): New.
672 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
673 (_AT_CHECK_CALC_ERROR): Likewise.
674 Factor the `, ' part of verbose error messages.
676 2001-09-18 Marc Autret <autret_m@epita.fr>
678 * src/getargs.c (longopts): Declare --defines and --graph as options
679 with optional arguments.
680 * src/files.h: Add extern declarations.
681 * src/files.c (spec_graph_file, spec_defines_file): New.
682 (output_files): Update.
683 Remove CPP-outed code.
685 2001-09-18 Marc Autret <autret_m@epita.fr>
687 Turn off %{source,header}_extension feature.
689 * src/files.c (compute_exts_from_gf): Update.
690 (compute_exts_from_src): Update.
691 (output_files): CPP-out useless code.
692 * src/files.h: Remove {header,source}_extension extern declarations.
693 * src/reader.c (parse_dquoted_param): CPP-out.
694 (parse_header_extension_decl): Remove.
695 (parse_source_extension_decl): Remove.
696 (read_declarations): Remove cases tok_{hdrext,srcext}.
697 * src/lex.c (percent_table): Remove {header,source}_extension entries.
698 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
700 2001-09-10 Akim Demaille <akim@epita.fr>
702 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
703 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
704 (AT_CHECK_OUTPUT): this.
705 Merely check ls' exit status, its output is useless.
707 2001-09-10 Akim Demaille <akim@epita.fr>
709 * tests/calc.at: Use m4_match.
710 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
712 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
714 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
716 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
718 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
719 * src/lex.h: Adjust prototype.
720 (token_t): Add `tok_undef'.
721 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
722 (parse_percent_token): Now returns token_t.
723 Add default statement in switch.
724 (lex): Separate `c' as an input variable, from the token_t result
726 (unlexed): Is a token_t.
728 2001-09-10 Akim Demaille <akim@epita.fr>
730 * configure.in: Bump to 1.29a.
732 2001-09-07 Akim Demaille <akim@epita.fr>
736 2001-08-30 Akim Demaille <akim@epita.fr>
738 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
739 * m4/atconfig.m4: Remove.
740 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
742 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
743 m4_if, m4_patsubst, and m4_regexp.
744 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
745 `input' file instead of echo.
747 2001-08-29 Akim Demaille <akim@epita.fr>
751 2001-08-29 Akim Demaille <akim@epita.fr>
755 2001-08-29 Paul Eggert <eggert@twinsun.com>
757 * src/bison.simple (yyparse): Don't take the address of an
758 item before the start of an array, as that doesn't conform to
761 2001-08-29 Robert Anisko <anisko_r@epita.fr>
763 * doc/bison.texinfo (Location Tracking Calc): New node.
765 2001-08-29 Paul Eggert <eggert@twinsun.com>
767 * src/output.c (output): Do not define const, as this now
768 causes more problems than it cures.
770 2001-08-29 Akim Demaille <akim@epita.fr>
772 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
774 Be sure to tag the `detailmenu'.
776 2001-08-29 Akim Demaille <akim@epita.fr>
778 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
779 download in a tmp dir.
781 2001-08-28 Marc Autret <autret_m@epita.fr>
783 * config/depcomp: New file.
785 2001-08-28 Marc Autret <autret_m@epita.fr>
787 * doc/bison.1 (mandoc): Adjust.
788 From Juan Manuel Guerrero.
790 2001-08-28 Marc Autret <autret_m@epita.fr>
792 * src/print_graph.c (print_state): Fix.
794 2001-08-27 Marc Autret <autret_m@epita.fr>
796 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
798 Echo modifications to the functions prototypes.
799 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
801 2001-08-27 Marc Autret <autret_m@epita.fr>
803 * src/vcg.c: Include `xalloc.h'.
804 (add_colorentry): New.
805 (add_classname): New.
807 * src/vcg.h: Add new prototypes.
809 2001-08-27 Akim Demaille <akim@epita.fr>
811 * Makefile.maint: Sync. again with CVS Autoconf.
813 2001-08-27 Akim Demaille <akim@epita.fr>
815 * Makefile.maint: Formatting changes.
816 (po-update, cvs-update, update): New targets.
819 2001-08-27 Akim Demaille <akim@epita.fr>
821 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
822 * Makefile.maint: Sync. with CVS Autoconf.
824 2001-08-27 Marc Autret <autret_m@epita.fr>
826 * src/vcg.h (struct infoname_s): New.
827 (struct colorentry_s): New.
828 (graph_s): New fields {vertical,horizontal}_order in structure.
829 Add `infoname' field.
830 Add `colorentry' field;
831 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
832 (G_HORIZONTAL_ORDER): New.
835 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
836 Add output of `infoname'.
837 Add output of `colorentry'.
839 2001-08-27 Marc Autret <autret_m@epita.fr>
841 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
842 This one shadowed a global parameter.
844 2001-08-24 Marc Autret <autret_m@epita.fr>
846 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
847 instead of `unsigned'.
848 (print_state): Do not call obstack_object_size () in obstack_grow ()
849 to avoid macro variables shadowing.
851 2001-08-23 Marc Autret <autret_m@epita.fr>
853 * src/lex.c (percent_table): Typo: s/naem/name/.
855 Normalize new options declarations.
857 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
859 * tests/suite.at: Exercise %header_extension and %source_extension.
861 2001-08-16 Marc Autret <autret_m@epita.fr>
863 * src/reader.c (parse_dquoted_param): New.
864 (parse_header_extension_decl): Use it.
865 (parse_source_extension_decl): Likewise.
867 2001-08-16 Marc Autret <autret_m@epita.fr>
869 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
870 (get_xxxx_str): Use assert () instead of complain ().
871 Remove return invokations in default cases.
872 (get_decision_str): Modify default behaviour. Remove second argument.
873 Echo modifications on calls.
876 2001-08-16 Marc Autret <autret_m@epita.fr>
878 * src/getargs.c (usage): Update with ``-g, --graph''.
880 2001-08-16 Marc Autret <autret_m@epita.fr>
882 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
883 (Option Cross Key): Likewise.
884 * doc/bison.1: Update.
886 2001-08-15 Akim Demaille <akim@epita.fr>
890 2001-08-15 Marc Autret <autret_m@epita.fr>
892 * src/reader.c (readgram): Indent output macro YYSTYPE.
893 (packsymbols): Likewise.
894 (output_token_defines): Likewise.
895 * src/files.c: Standardize.
896 (compute_header_macro): New.
897 (defines_obstack_save): New. Use compute_header_macro.
898 (output_files): Update. Use defines_obstack_save.
900 2001-08-15 Akim Demaille <akim@epita.fr>
902 * doc/bison.texinfo (Table of Symbols): Document
905 2001-08-15 Akim Demaille <akim@epita.fr>
907 * missing: Update from CVS Automake.
908 * config/config.guess, config/config.sub, config/texinfo.tex:
911 2001-08-15 Akim Demaille <akim@epita.fr>
913 * Makefile.maint: Sync with CVS Autoconf.
915 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
917 * doc/bison.texinfo: Include GNU Free Documentation License from
919 * doc/fdl.texi: Add to package.
921 2001-08-14 Marc Autret <autret_m@epita.fr>
923 Turn on %{source,header}_extension features.
925 * src/lex.c (percent_table): Un-CPP out header_extension and
927 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
928 (compute_exts_from_src): Remove conditions. It restores priorities
931 2001-08-14 Marc Autret <autret_m@epita.fr>
933 * src/files.c (compute_base_names): Add extensions computing when
934 `--file-prefix' used.
935 Standardize function calls.
937 2001-08-13 Marc Autret <autret_m@epita.fr>
939 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
940 defining it (defined but null disables alloca).
942 2001-08-13 Marc Autret <autret_m@epita.fr>
944 * src/bison.simple (_yy_memcpy): CPP reformat.
946 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
948 * tests/atconfig.in (CPPFLAGS): Fix.
950 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
952 * doc/bison.texinfo: Include GNU General Public License from
954 * doc/gpl.texi: Add to package.
956 2001-08-10 Marc Autret <autret_m@epita.fr>
958 * src/print_graph.h: Fix.
959 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
961 2001-08-10 Akim Demaille <akim@epita.fr>
963 * src/system.h: Provide default declarations for stpcpy, strndup,
966 2001-08-10 Robert Anisko <anisko_r@epita.fr>
968 * doc/bison.texinfo (Locations): Update @$ stuff.
970 2001-08-09 Robert Anisko <anisko_r@epita.fr>
972 * src/bison.simple (YYLLOC_DEFAULT): Update.
975 2001-08-08 Marc Autret <autret_m@epita.fr>
977 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
978 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
979 Reported by Fabrice Bauzac.
981 2001-08-08 Marc Autret <autret_m@epita.fr>
983 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
984 * src/vcg.c (output_node): Fix.
985 * src/vcg.h: Cleanup.
986 * src/print_graph.c: Add comments.
987 (node_output_size): New global variable. Simplify the formatting of
988 the VCG graph output.
989 (print_actions): Unused code is now used. It notifies the final state
990 and no action states in the VCG graph. It also give the reduce actions.
991 The `shift and goto' edges are red and the `go to state' edges are
993 Get the current node name and node_obstack by argument.
994 (node_obstack): New variable.
995 (print_state): Manage node_obstack.
996 (print_core): Use node_obstack given by argument.
997 A node is not only computed here but in print_actions also.
998 (print_graph): CPP out useless code instead of commenting it.
1000 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1002 * tests/atconfig.in (CPPFLAGS): Fix.
1004 2001-08-07 Akim Demaille <akim@epita.fr>
1006 * src/print_graph.c (quote): New.
1007 (print_core): Use it.
1009 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1011 * src/vcg.c (complain.h): Include it.
1012 Unepitaize `return' invocations.
1013 [NDEBUG] (main): Remove.
1014 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1015 * src/files.c (open_files): Initialize graph_obstack.
1016 * src/print_graph.c (print_actions): CPP out useless code.
1017 (print_core): Don't output the last `\n' in labels.
1019 * src/files.c (output_files): Output the VCG file.
1020 * src/main.c (main): Invoke print_graph ();
1022 2001-08-06 Marc Autret <autret_m@epita.fr>
1024 Automaton VCG graph output.
1025 Using option ``-g'' or long option ``--graph'', you can generate
1026 a gram_filename.vcg file containing a VCG description of the LALR (1)
1027 automaton of your grammar.
1029 * src/main.c: Call to print_graph() function.
1030 * src/getargs.h: Update.
1031 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1032 (graph_flag): New flag.
1034 (getargs): Add case `g'.
1035 * src/files.c (graph_obstack): New obstack struct.
1036 (open_files): Initialize new obstack.
1037 (output_files): Saves graph_obstack if required.
1038 * src/files.h (graph_obstack): New extern declaration.
1039 * src/Makefile.am: Add new source files.
1041 2001-08-06 Marc Autret <autret_m@epita.fr>
1043 * src/print_graph.c, src/print_graph.h (graph): New.
1044 * src/vcg.h: New file.
1045 * src/vcg.c: New file, VCG graph handling.
1047 2001-08-06 Marc Autret <autret_m@epita.fr>
1049 Add of %source_extension and %header_extension which specify
1050 the source or/and the header output file extension.
1052 * src/files.c (compute_base_names): Remove initialisation of
1053 src_extension and header_extension.
1054 (compute_exts_from_gf): Update.
1055 (compute_exts_from_src): Update.
1056 (output_files): Update.
1057 * src/reader.c (parse_header_extension_decl): New.
1058 (parse_source_extension_decl): New.
1059 (read_declarations): New case statements for the new tokens.
1060 * src/lex.c (percent_table): Add entries for %source_extension
1061 and %header_extension.
1062 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1064 2001-08-06 Marc Autret <autret_m@epita.fr>
1066 * configure.in: Bump to 1.28c.
1067 * doc/bison.texinfo: Texinfo thingies.
1069 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1071 * tests/atconfig.in (CPPFLAGS): Add.
1072 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1074 2001-08-03 Akim Demaille <akim@epita.fr>
1078 2001-08-03 Akim Demaille <akim@epita.fr>
1080 * tests/Makefile.am (check-local): Ship testsuite.
1081 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1084 2001-08-03 Akim Demaille <akim@epita.fr>
1086 * configure.in: Try using -Wformat when compiling.
1088 2001-08-03 Akim Demaille <akim@epita.fr>
1090 * configure.in: Bump to 1.28b.
1092 2001-08-03 Akim Demaille <akim@epita.fr>
1094 * src/complain.c: Adjust strerror_r portability issues.
1096 2001-08-03 Akim Demaille <akim@epita.fr>
1100 2001-08-03 Akim Demaille <akim@epita.fr>
1102 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1103 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1104 * src/getargs.c: Include complain.h.
1105 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1106 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1108 2001-08-03 Akim Demaille <akim@epita.fr>
1110 * src/reader.c (readgram): Display hidden chars in error messages.
1112 2001-08-03 Akim Demaille <akim@epita.fr>
1114 Update to gettext 0.10.39.
1116 2001-08-03 Akim Demaille <akim@epita.fr>
1118 * lib/strspn.c: New.
1120 2001-08-01 Marc Autret <autret_m@epita.fr>
1122 * doc/bison.texinfo: Update.
1123 * doc/bison.1 (mandoc): Update.
1124 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1125 * src/files.c: Support output files extensions computing.
1126 (src_extension): New static variable.
1127 (header_extension): New static variable.
1129 (get_extension_index): New function, gets the index of an extension
1130 filename in a string.
1131 (compute_exts_from_gf): New function, computes extensions from the
1132 grammar file extension.
1133 (compute_exts_from_src): New functions, computes extensions from the
1134 C source file extension, file given by ``-o'' option.
1135 (compute_base_names): Update.
1136 (output_files): Update.
1138 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1140 * doc/bison.texi: Document @$.
1141 (Locations): New section.
1143 2001-07-18 Akim Demaille <akim@epita.fr>
1145 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1146 * config/prev-version.txt, config/move-if-change: New.
1147 * Makefile.am: Adjust.
1149 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1151 * src/bison.simple (yyparse): Suppress warning `comparaison
1152 between signed and unsigned'.
1154 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1156 * src/getargs.h (raw_flag): Remove.
1157 * src/getargs.c: Die on `-r'/`--raw'.
1158 * src/lex.c (parse_percent_token): Die on `%raw'.
1159 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1160 * tests/calc.at: Suppress test with option `--raw'.
1162 2001-07-14 Akim Demaille <akim@epita.fr>
1165 * configure.in: Require Autoconf 2.50.
1166 Update to gettext 0.10.38.
1168 2001-03-16 Akim Demaille <akim@epita.fr>
1170 * doc/bison.texinfo: ANSIfy the examples.
1172 2001-03-16 Akim Demaille <akim@epita.fr>
1174 * getargs.c (skeleton): New variable.
1175 (longopts): --skeleton is a new option.
1176 (shortopts, getargs): -S is a new option.
1177 * getargs.h: Declare skeleton.
1178 * output.c (output_parser): Use it.
1180 2001-03-16 Akim Demaille <akim@epita.fr>
1182 * m4/strerror_r.m4: New.
1183 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1184 * lib/error.h, lib/error.c: Update.
1186 2001-03-16 Akim Demaille <akim@epita.fr>
1188 * src/getargs.c (longopts): Clean up.
1190 2001-02-21 Akim Demaille <akim@epita.fr>
1192 * src/reader.c (gensym): `gensym_count' is your own.
1193 Use a static buf to create the symbol name, as token_buffer is no
1196 2001-02-08 Akim Demaille <akim@epita.fr>
1198 * src/conflicts.c (conflict_report): Be sure not to append to res
1199 between two calls, which could happen if both first sprintf were
1200 skipped, but not the first cp += strlen.
1202 2001-02-08 Akim Demaille <akim@epita.fr>
1204 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1205 New, from fileutils 4.0.37.
1206 * configure.in: Require Autoconf 2.49c. I took some time before
1207 making this decision. This is the only way out for portability
1208 issues in Bison, it would mean way too much duplicate effort to
1209 import in Bison features implemented in 2.49c since 2.13.
1210 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1212 2001-02-02 Akim Demaille <akim@epita.fr>
1214 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1215 * lib/xalloc.h, lib/xmalloc.c: Update.
1217 2001-01-19 Akim Demaille <akim@epita.fr>
1219 Get rid of the ad hoc handling of token_buffer in the scanner: use
1222 * src/lex.c (token_obstack): New.
1223 (init_lex): Initialize it. No longer call...
1224 (grow_token_buffer): this. Remove it.
1225 Adjust all the places which used it to use the obstack.
1227 2001-01-19 Akim Demaille <akim@epita.fr>
1229 * src/lex.h: Rename all the tokens:
1230 s/\bENDFILE\b/tok_eof/g;
1231 s/\bIDENTIFIER\b/tok_identifier/g;
1233 Let them be enums, not #define, to ease debugging.
1234 Adjust all the code.
1236 2001-01-18 Akim Demaille <akim@epita.fr>
1238 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1239 * src/lex.c (maxtoken, grow_token_buffer): Static.
1241 2001-01-18 Akim Demaille <akim@epita.fr>
1243 Since we now use obstacks, more % directives can be enabled.
1245 * src/lex.c (percent_table): Also accept `%yacc',
1246 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1248 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1249 instead of returning a token.
1250 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1251 * src/reader.c (read_declarations): Adjust.
1252 * src/files.c (open_files): Don't call `compute_base_names', don't
1253 compute `attrsfile' since they depend upon data which might be
1254 *in* the input file now.
1255 (output_files): Do it here.
1256 * src/output.c (output_headers): Document the fact that this patch
1257 introduces a guaranteed SEGV for semantic parsers.
1258 * doc/bison.texinfo: Document them.
1259 * tests/suite.at: Exercise these %options.
1261 2000-12-20 Akim Demaille <akim@epita.fr>
1263 Also handle the output file (--verbose) with obstacks.
1265 * files.c (foutput): Remove.
1266 (output_obstack): New.
1267 Adjust all dependencies.
1268 * src/conflicts.c: Return a string.
1269 * src/system.h (obstack_grow_string): Rename as...
1270 (obstack_sgrow): this. Be ready to work with non literals.
1271 (obstack_fgrow4): New.
1273 2000-12-20 Akim Demaille <akim@epita.fr>
1275 * src/files.c (open_files): Fix the computation of short_base_name
1276 in the case of `-o foo.tab.c'.
1278 2000-12-20 Akim Demaille <akim@epita.fr>
1280 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1281 (copy_dollar): Now that everything uses obstacks, get rid of the
1284 2000-12-20 Akim Demaille <akim@epita.fr>
1286 * src/files.c (open_files): Actually the `.output' file is based
1287 on the short_base_name, not base_name.
1288 * tests/suite.at (Checking output file names): Adjust.
1290 2000-12-20 Akim Demaille <akim@epita.fr>
1292 * src/bison.s1: Remove, we now use directly...
1293 * src/bison.simple: this.
1294 * src/Makefile.am: Use pkgdata instead of data.
1296 2000-12-20 Akim Demaille <akim@epita.fr>
1298 * src/files.c (guard_obstack): New.
1299 (open_files): Initialize it.
1300 (output_files): Dump it...
1301 * src/files.h: Export it.
1302 * src/reader.c (copy_guard): Use it.
1304 2000-12-19 Akim Demaille <akim@epita.fr>
1306 * src/files.c (outfile, defsfile, actfile): Removed as global
1308 (open_files): Don't compute them.
1309 (output_files): Adjust.
1310 (base_name, short_base_name): Be global.
1311 Adjust dependencies.
1313 2000-12-19 Akim Demaille <akim@epita.fr>
1315 * src/files.c (strsuffix): New.
1316 (stringappend): Be just like strcat but allocate.
1317 (base_names): Eve out from open_files.
1318 Try to simplify the rather hairy computation of base_name and
1320 (open_files): Use it.
1321 * tests/suite.at (Checking output file names): New test.
1323 2000-12-19 Akim Demaille <akim@epita.fr>
1325 * src/system.h (obstack_grow_literal_string): Rename as...
1326 (obstack_grow_string): this.
1327 * src/output.c (output_parser): Recognize `%% actions' instead of
1329 * src/bison.s1: s/$/%% actions/.
1330 * src/bison.hairy: Likewise.
1332 2000-12-19 Akim Demaille <akim@epita.fr>
1334 * src/output.c (output_parser): Compute the `#line' lines when
1336 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1337 Suggested by Hans Aberg.
1339 2000-12-19 Akim Demaille <akim@epita.fr>
1341 Let the handling of the skeleton files be local to the procedures
1344 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1346 (fparser, open_extra_files): Remove.
1347 (open_files, output_files): Don't take care of fparser.
1348 * src/files.h: Adjust.
1349 * src/output.c (output_parser): Open and close the file to the
1351 * src/reader.c (read_declarations): When %semantic_parser, open
1354 2000-12-19 Akim Demaille <akim@epita.fr>
1356 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1357 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1359 2000-12-19 Akim Demaille <akim@epita.fr>
1361 * src/files.c (open_files): Yipee! We no longer need all the code
1362 looking for `/tmp' since we have no tmp file.
1364 2000-12-19 Akim Demaille <akim@epita.fr>
1366 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1368 * src/files.c (open_files): Less dependency on MSDOS etc.
1370 2000-12-14 Akim Demaille <akim@epita.fr>
1372 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1373 Provide a default definition.
1374 Use it when executing the default @ action.
1375 * src/reader.c (reader_output_yylsp): No longer include
1376 `timestamp' and `text' in the default YYLTYPE.
1378 2000-12-12 Akim Demaille <akim@epita.fr>
1380 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1381 (copy_guard): Quote the file names.
1382 Reported by Laurent Mascherpa.
1384 2000-12-12 Akim Demaille <akim@epita.fr>
1386 * src/output.c (output_headers, output_program, output): Be sure
1387 to escape special characters when outputting filenames.
1388 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1389 (output_headers): Don't depend on them, Use ACTSTR.
1391 2000-11-17 Akim Demaille <akim@epita.fr>
1393 * lib/obstack.h: Formatting changes.
1394 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1395 prevents type checking.
1396 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1397 cast the value to (void *): assigning a `foo *' to a `void *'
1399 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1400 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1403 2000-11-17 Akim Demaille <akim@epita.fr>
1405 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1407 (suite.m4, regression.m4, calc.m4): these.
1408 * tests/atgeneral.m4: Update from CVS Autoconf.
1410 2000-11-17 Akim Demaille <akim@epita.fr>
1412 * tests/regression.m4 (%union and --defines): New test,
1413 demonstrating a current bug in the obstack implementation.
1415 2000-11-17 Akim Demaille <akim@epita.fr>
1417 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1419 Use them to declare the variables which are global or local to
1422 2000-11-17 Akim Demaille <akim@epita.fr>
1424 * acconfig.h: Remove, no longer used.
1426 2000-11-07 Akim Demaille <akim@epita.fr>
1428 * src: s/Copyright (C)/Copyright/g.
1430 2000-11-07 Akim Demaille <akim@epita.fr>
1432 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1434 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1436 2000-11-07 Akim Demaille <akim@epita.fr>
1438 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1439 Merge in a single CPP if/else.
1441 2000-11-07 Akim Demaille <akim@epita.fr>
1443 * src/output.c (output): Remove useless variables.
1444 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1445 argument `data' for consistency with the prototypes.
1447 (obstack_copy, obstack_copy0): Rename the second argument as
1448 `address' for consistency. Qualify it `const'.
1449 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1450 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1451 `const' their input argument (`data' or `address').
1452 Adjust the corresponding macros to include `const' in casts.
1454 2000-11-03 Akim Demaille <akim@epita.fr>
1456 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1457 s/PFILE1/BISON_HAIRY/.
1458 Adjust dependencies.
1460 2000-11-03 Akim Demaille <akim@epita.fr>
1462 For some reason, this was not applied.
1464 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1465 `unlink': it's no longer used.
1467 2000-11-03 Akim Demaille <akim@epita.fr>
1469 * src/files.c (skeleton_find): New function, eved out of...
1470 (open_files, open_extra_files): here.
1472 2000-11-03 Akim Demaille <akim@epita.fr>
1476 * src/files.c (obstack_save): New function.
1477 (done): Rename as...
1478 (output_files): this.
1480 * src/main.c (main): Don't use `atexit' to register `done', since
1481 it no longer has to remove tmp files, just call `output_files'
1482 when there are no errors.
1484 2000-11-02 Akim Demaille <akim@epita.fr>
1486 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1487 `unlink': it's no longer used.
1488 * src/files.h: Formatting changes.
1490 2000-11-02 Akim Demaille <akim@epita.fr>
1492 Remove the last uses of mktemp and unlink/delete.
1494 * src/files.c (fdefines, ftable): Removed.
1495 (defines_ostack, table_obstack): New.
1496 Adjust dependencies of the former into uses of the latter.
1497 * src/output.c (output_short_or_char_table, output_short_table):
1498 Convert to using obstacks.
1499 * src/reader.c (copy_comment2): Accept one FILE * and two
1501 (output_token_defines, reader_output_yylsp): Use obstacks.
1502 * src/system.h (obstack_fgrow3): New.
1504 2000-11-01 Akim Demaille <akim@epita.fr>
1506 Change each use of `fattrs' into a use of `attrs_obstack'.
1508 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1509 * src/files.c (fattrs): Remove.
1510 (attrs_obstack): New.
1511 Adjust all dependencies.
1512 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1514 2000-11-01 Akim Demaille <akim@epita.fr>
1517 Change each use of `faction' into a use of `action_obstack'.
1519 * lib/obstack.h, lib/obstack.c: New files.
1520 * src/files.c (faction): Remove.
1521 (action_obstack): New.
1522 Adjust all dependencies.
1524 2000-10-20 Akim Demaille <akim@epita.fr>
1526 * lib/quote.h (PARAMS): New macro. Use it.
1528 2000-10-16 Akim Demaille <akim@epita.fr>
1530 * src/output.c (output_short_or_char_table): New function.
1531 (output_short_table, output_token_translations): Use it.
1532 (goto_actions): Use output_short_table.
1534 2000-10-16 Akim Demaille <akim@epita.fr>
1536 * src/symtab.c (bucket_new): New function.
1539 * src/output.c (output_short_table): New argument to display the
1540 comment associated with the table.
1541 Adjust dependencies.
1542 (output_gram): Use it.
1543 (output_rule_data): Nicer output layout for YYTNAME.
1545 2000-10-16 Akim Demaille <akim@epita.fr>
1547 * src/lex.c (read_typename): New function.
1549 * src/reader.c (copy_dollar): Likewise.
1551 2000-10-16 Akim Demaille <akim@epita.fr>
1553 * src/reader.c (copy_comment2): Expect the input stream to be on
1554 the `/' which is suspected to open a comment, instead of being
1555 called after `//' or `/*' was read.
1556 (copy_comment, copy_definition, parse_union_decl, copy_action)
1557 (copy_guard): Adjust.
1559 2000-10-16 Akim Demaille <akim@epita.fr>
1561 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1562 `read_signed_integer'.
1564 2000-10-16 Akim Demaille <akim@epita.fr>
1566 * src/reader.c (copy_dollar): New function.
1567 (copy_guard, copy_action): Use it.
1569 2000-10-16 Akim Demaille <akim@epita.fr>
1571 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1572 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1573 New files, from Fileutils 4.0.27.
1574 * src/main.c (printable_version): Remove.
1575 * src/lex.c, src/reader.c: Use `quote'.
1577 2000-10-04 Akim Demaille <akim@epita.fr>
1579 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1581 2000-10-04 Akim Demaille <akim@epita.fr>
1583 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1585 2000-10-04 Akim Demaille <akim@epita.fr>
1587 When a literal string is used to define two different tokens,
1588 `bison -v' segfaults.
1589 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1591 * tests/regression.m4: New file.
1592 Include the core of the sample provided by Piotr Gackiewicz.
1593 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1596 2000-10-04 Akim Demaille <akim@epita.fr>
1598 * src/reader.c (parse_expect_decl): Keep `count' within the size
1602 2000-10-02 Paul Eggert <eggert@twinsun.com>
1604 * bison.s1 (yyparse): Assign the default value
1605 unconditionally, to avoid a GCC warning and make the parser a
1608 2000-10-02 Akim Demaille <akim@epita.fr>
1610 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1613 2000-10-02 Akim Demaille <akim@epita.fr>
1615 * src/derives.c, src/print.c, src/reduce.c: To ease the
1616 translation, move some `\n' out of the translated strings.
1618 2000-10-02 Akim Demaille <akim@epita.fr>
1620 The location tracking mechanism is precious for parse error
1621 messages. Nevertheless, it is enabled only when `@n' is used in
1622 the grammar, which is a different issue (you can use it in error
1623 message, but not in the grammar per se). Therefore, there should
1624 be another means to enable it.
1626 * src/getargs.c (getargs): Support `--locations'.
1628 * src/getargs.h (locationsflag): Export it.
1629 * src/lex.c (percent_table): Support `%locations'.
1630 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1631 with `locationsflag'.
1632 * doc/bison.texinfo: Document `--locations' and `%locations'.
1634 * tests/calc.m4: Test it.
1636 For regularity of the names, replace each
1637 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1638 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1639 In addition replace each `flag' with `_flag'.
1641 2000-10-02 Akim Demaille <akim@epita.fr>
1643 Also test parse error messages, including with YYERROR_VERBOSE.
1645 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1647 Use it to check the computations.
1648 Use it to check `nonassoc' is honored.
1649 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1650 `--yyerror-verbose'.
1651 (_AT_CHECK_CALC): Adjust to this option.
1652 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1654 2000-10-02 Akim Demaille <akim@epita.fr>
1656 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1657 the latter demonstrates a flaw in the handling of non debugging
1658 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1659 was used in order to simplify:
1675 unfortunately this leads to a CPP conflict when
1676 `--name-prefix=foo' is used since it produces `#define yydebug
1679 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1680 (YYDPRINTF): New macro.
1682 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1684 Also test `--verbose', `--defines' and `--name-prefix'.
1686 2000-10-02 Akim Demaille <akim@epita.fr>
1688 Improve the readability of the produced parsers.
1690 * src/bison.s1: Formatting changes.
1691 Improve the comment related to the `$' mark.
1692 (yydefault): Don't fall through to `yyresume': `goto' there.
1693 * src/output.c (output_parser): When the `$' is met, skip the end
1695 New variable, `number_of_dollar_signs', to check there's exactly
1696 one `$' in the parser skeleton.
1698 2000-10-02 Akim Demaille <akim@epita.fr>
1700 * lib/xstrdup.c: New file, from the fileutils.
1701 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1702 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1703 instead of strlen + xmalloc + strcpy.
1704 * src/symtab.c (copys): Remove, use xstrdup instead.
1706 2000-10-02 Akim Demaille <akim@epita.fr>
1708 * src/gram.h (associativity): New enum type which replaces the
1709 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1710 `right_assoc', `left_assoc' and `non_assoc'.
1711 Adjust all dependencies.
1712 * src/reader.c: Formatting changes.
1713 (LTYPESTR): Don't define it, use it as a literal in
1714 `reader_output_yylsp'.
1715 * src/symtab.h (symbol_class): New enum type which replaces the
1716 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1717 `sunknown', `stoken and `snterm'.
1719 2000-10-02 Akim Demaille <akim@epita.fr>
1721 * src/getargs.c (fixed_outfiles): Rename as...
1722 (yaccflag): for consistency and accuracy.
1723 Adjust dependencies.
1725 2000-10-02 Akim Demaille <akim@epita.fr>
1727 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1728 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1729 difficult and introduced a lot of core dump. It turns out that
1730 Bison used an implementation of `xmalloc' based on `calloc', and
1731 at various places it does depend upon the initialization to 0. I
1732 have not tried to isolate the pertinent places, and all the former
1733 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1734 someone should address this issue.
1736 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1737 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1739 Adjust dependencies.
1740 * src/warshall.h: New file.
1743 2000-10-02 Akim Demaille <akim@epita.fr>
1745 Various anti-`extern in *.c' changes.
1747 * src/system.h: Include `assert.h'.
1749 2000-10-02 Akim Demaille <akim@epita.fr>
1751 * src/state.h (nstates, final_state, first_state, first_shift)
1752 (first_reduction): Move their exportation from here...
1753 * src/LR0.h: to here.
1754 Adjust dependencies.
1755 * src/getargs.c (statisticsflag): New variable.
1756 Add support for `--statistics'.
1757 Adjust dependencies.
1759 Remove a lot of now useless `extern' statements in most files.
1761 2000-10-02 Akim Demaille <akim@epita.fr>
1763 * src/LR0.h: New file.
1766 2000-10-02 Akim Demaille <akim@epita.fr>
1768 * src/print.h: New file.
1770 * src/print.c: Formatting and ordering changes.
1771 (verbose, terse): Replace with...
1772 (print_results): this new function.
1773 Adjust dependencies.
1775 2000-10-02 Akim Demaille <akim@epita.fr>
1777 * src/conflicts.c (conflict_report): New function.
1778 (conflict_log, verbose_conflict_log): Replace with...
1779 (print_conflicts): this function.
1780 Adjust dependencies.
1781 * src/conflicts.h: New file.
1782 Propagate its inclusion.
1784 2000-10-02 Akim Demaille <akim@epita.fr>
1786 * src/nullable.h: New file.
1787 Propagate its inclusion.
1788 * src/nullable.c: Formatting changes.
1790 2000-10-02 Akim Demaille <akim@epita.fr>
1792 * src/reduce.h: New file.
1793 Propagate its inclusion.
1794 * src/reduce.c: Topological sort and other formatting changes.
1795 (bool, TRUE, FALSE): Move their definition to...
1796 * src/system.h: here.
1798 2000-10-02 Akim Demaille <akim@epita.fr>
1800 * src/files.c: Formatting changes.
1801 (tryopen, tryclose, openfiles): Rename as...
1802 (xfopen, xfclose, open_files): this.
1803 (stringappend): static.
1804 * src/files.h: Complete the list of exported symbols.
1807 2000-10-02 Akim Demaille <akim@epita.fr>
1809 * src/reader.h: New file.
1810 Propagate its use instead of tedious list of `extern' and
1812 * src/reader.c: Formatting changes, topological sort,
1815 2000-10-02 Akim Demaille <akim@epita.fr>
1817 * src/lex.h: Prototype `lex.c' exported functions.
1818 * src/reader.c: Adjust.
1819 * src/lex.c: Formatting changes.
1820 (safegetc): Rename as...
1823 2000-10-02 Akim Demaille <akim@epita.fr>
1825 * src/lalr.h: New file.
1826 Propagate its inclusion instead of prototypes and `extern'.
1827 * src/lalr.c: Formatting changes, topological sorting etc.
1829 2000-10-02 Akim Demaille <akim@epita.fr>
1831 * src/output.c (token_actions): Introduce a temporary array,
1832 YYDEFACT, that makes it possible for this function to use
1835 2000-10-02 Akim Demaille <akim@epita.fr>
1837 `user_toknums' is output as a `short[]' in `output.c', while it is
1838 defined as a `int[]' in `reader.c'. For consistency with the
1839 other output tables, `user_toknums' is now defined as a table of
1842 * src/reader.c (user_toknums): Be a short table instead of an int
1844 Adjust dependencies.
1846 Factor the short table outputs.
1848 * src/output.c (output_short_table): New function.
1849 * src/output.c (output_gram, output_stos, output_rule_data)
1850 (output_base, output_table, output_check): Use it.
1852 2000-10-02 Akim Demaille <akim@epita.fr>
1854 * src/output.c (output): Topological sort of the functions, in
1855 order to get rid of the `static' prototypes.
1856 No longer use `register'.
1857 * src/output.h: New file.
1858 Propagate its inclusion in files explicitly prototyping functions
1861 2000-09-21 Akim Demaille <akim@epita.fr>
1863 * src/atgeneral.m4: Update from Autoconf.
1865 2000-09-21 Akim Demaille <akim@epita.fr>
1867 * src/closure.h: New file.
1868 * src/closure.c: Formatting changes, topological sort over the
1869 functions, use of closure.h.
1870 (initialize_closure, finalize_closure): Rename as...
1871 (new_closure, free_closure): these. Adjust dependencies.
1872 * src/LR0.c: Formatting changes, topological sort, use of
1874 (initialize_states): Rename as...
1876 * src/Makefile.am (noinst_HEADERS): Adjust.
1878 2000-09-20 Akim Demaille <akim@epita.fr>
1880 * src/acconfig.h: Don't protect config.h against multiple
1882 Don't define PARAMS.
1883 * src/system.h: Define PARAMS.
1884 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1885 purpose of config.h. system.h must not try to fix wrong
1886 definitions in config.h.
1888 2000-09-20 Akim Demaille <akim@epita.fr>
1890 * src/derives.h: New file.
1891 * src/main.c, src/derives.h: Use it.
1893 * src/Makefile.am (noinst_HEADERS): Adjust.
1895 2000-09-20 Akim Demaille <akim@epita.fr>
1897 * tests/atgeneral.m4: Update from Autoconf.
1898 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1899 (AT_CHECK_CALC): New macros.
1900 Use these macros to test bison with options `', `--raw',
1901 `--debug', `--yacc', `--yacc --debug'.
1903 2000-09-19 Akim Demaille <akim@epita.fr>
1905 * src/output.c: Formatting changes.
1906 * src/machine.h: Remove, leaving its contents in...
1907 * src/system.h: here.
1909 Adjust all dependencies on stdio.h and machine.h.
1910 * src/getargs.h: New file.
1911 Let all `extern' declarations about getargs.c be replaced with
1912 inclusion of `getargs.h'.
1913 * src/Makefile.am (noinst_HEADERS): Adjust.
1915 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1917 (yyerror): Returns void, not int.
1918 * doc/bison.texinfo: Formatting changes.
1920 2000-09-19 Akim Demaille <akim@epita.fr>
1922 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1925 2000-09-18 Akim Demaille <akim@epita.fr>
1927 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1928 * src/Makefile.am (INCLUDES): Don't.
1929 Be ready to fetch headers in lib/.
1931 2000-09-18 Akim Demaille <akim@epita.fr>
1933 * doc/bison.texinfo: Update the copyright.
1934 ANSIfy and GNUify the examples.
1935 Remove the old menu.
1937 2000-09-18 Akim Demaille <akim@epita.fr>
1939 First set of tests: use the `calc' example from the documentation.
1941 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1942 is defined only when YYDEBUG is.
1943 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1944 * src/files.c (tryopen, tryclose): Formatting changes.
1945 Move to the top and be static.
1946 * src/reader.c (read_signed_integer): Likewise.
1947 * tests/calc.m4: New file.
1948 * Makefile.am, suite.m4: Adjust.
1949 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1951 2000-09-18 Akim Demaille <akim@epita.fr>
1953 Add support for an Autotest test suite for Bison.
1955 * m4/m4.m4, m4/atconfig.m4: New files.
1956 * m4/Makefile.am (EXTRA_DIST): Adjust.
1957 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1959 * src/getargs.c: Display a more standard --version message.
1960 * src/reader.c (reader): Formatting changes.
1961 No longer depend upon VERSION_STRING.
1962 * configure.in: No longer use `dnl'.
1963 Set up the test suite and the new directory `tests/.
1964 (VERSION_STRING): Remove.
1966 2000-04-14 Akim Demaille <akim@epita.fr>
1968 * src/reader.c (copy_comment2): New function, same as former
1969 `copy_comment', but outputs into two FILE *.
1970 (copy_comment): Use it.
1971 (parse_union_decl): Use it.
1972 (get_type, parse_start_decl): Use the same `invalid' message.
1973 (parse_start_decl, parse_union_decl): Use the same `multiple'
1975 (parse_union_decl, copy_guard, copy_action): Use the same
1976 `unmatched' message.
1977 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1979 2000-03-31 Akim Demaille <akim@epita.fr>
1981 * src/files.c (tryopen, tryclose): Move to the top.
1984 2000-03-31 Akim Demaille <akim@epita.fr>
1986 * src/main.c (main): Don't call `done', exit does it.
1988 2000-03-31 Akim Demaille <akim@epita.fr>
1990 * allocate.c: s/return (foo)/return foo/.
1993 * output.c: Likewise.
1994 * reader.c: Likewise.
1995 * symtab.c: Likewise.
1996 * vmsgetargs.c: Likewise.
1998 2000-03-31 Akim Demaille <akim@epita.fr>
2000 Clean up the error reporting functions.
2002 * src/report.c: New file.
2003 * src/report.h: Likewise.
2004 * src/Makefile.am: Adjust.
2005 * m4/error.m4: New file.
2006 * m4/Makefile.am: Adjust.
2007 * configure.in (jm_PREREQ_ERROR): Call it.
2008 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2010 (fatal, fatals): Remove. All callers use complain.c::fatal.
2011 (warn, warni, warns, warnss, warnss): Remove. All callers use
2012 complain.c::complain.
2013 (toomany): Remove, use fatal instead.
2014 * src/files.c (done): No argument, use complain_message_count.
2015 * src/main.c (main): Register `done' to `atexit'.
2017 * src/getargs.c (usage): More `fputs', less `fprintf'.
2019 2000-03-28 Akim Demaille <akim@epita.fr>
2021 * lib/: New directory.
2022 * Makefile.am (SUBDIRS): Adjust.
2023 * configure.in: Adjust.
2024 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2026 * src/alloca.c: Moved to lib/.
2027 * src/getopt.c: Likewise.
2028 * src/getopt1.c: Likewise.
2029 * src/getopt.h: Likewise.
2030 * src/ansi2knr.c: Likewise.
2031 * src/ansi2knr.1: Likewise.
2032 * src/Makefile.am: Adjust.
2033 * lib/Makefile.am: New file.
2035 2000-03-28 Akim Demaille <akim@epita.fr>
2037 * src/getargs.c (usage): Refresh the help message.
2039 2000-03-17 Akim Demaille <akim@epita.fr>
2041 * src/getopt1.c: Updated from textutils 2.0e
2042 * src/getopt.c: Likewise.
2043 * src/getopt.h: Likewise.
2045 2000-03-17 Akim Demaille <akim@epita.fr>
2047 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2048 the file name, not the whole `#line LINE FILE'.
2050 2000-03-17 Akim Demaille <akim@epita.fr>
2052 On syntax errors, report the token on which we choked.
2054 * src/bison.s1 (yyparse): In the label yyerrlab, when
2055 YYERROR_VERBOSE, add yychar in msg.
2057 2000-03-17 Akim Demaille <akim@epita.fr>
2059 * src/reader.c (copy_at): New function.
2060 (copy_guard): Use it.
2061 (copy_action): Use it.
2063 2000-03-17 Akim Demaille <akim@epita.fr>
2065 Be kind to translators, save some useless translations.
2067 * src/main.c (banner): New function.
2068 (fatal_banner): Use it.
2069 (warn_banner): Use it.
2071 2000-03-17 Akim Demaille <akim@epita.fr>
2073 * src/reader.c (copy_definition): Use copy_string and
2074 copy_comment. Removed now unused `match', `ended',
2076 (copy_comment, copy_string): Moved, to be visible from
2079 2000-03-17 Akim Demaille <akim@epita.fr>
2081 * src/reader.c (copy_string): Declare `static inline'. No
2082 problems with inline, since it is checked by configure.
2083 (copy_comment): Likewise.
2085 2000-03-17 Akim Demaille <akim@epita.fr>
2087 * src/reader.c (packsymbols): Formatting changes.
2089 2000-03-17 Akim Demaille <akim@epita.fr>
2091 * src/reader.c (copy_comment): New function, factored out from:
2092 (copy_action): Use it. Removed now unused `match', `ended',
2094 (copy_guard): Likewise.
2096 2000-03-17 Akim Demaille <akim@epita.fr>
2098 * src/reader.c (copy_string): New function, factored out from:
2099 (copy_action): Use it.
2100 (copy_guard): Likewise.
2102 2000-03-17 Akim Demaille <akim@epita.fr>
2104 Change the handling of @s so that they behave exactly like $s.
2105 There is now a pseudo variable @$ (readble and writable), location
2106 of the lhs of the rule (by default ranging from the location of
2107 the first symbol of the rhs, to the location of the last symbol,
2108 or, if the rhs is empty, YYLLOC).
2110 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2112 (yyparse): When providing a default semantic action, provide a
2113 default location action.
2114 (after the $): No longer change `*YYLSP', just stack YYLOC the
2115 same way you stack YYVAL.
2116 * src/reader.c (read_declarations): Use warns.
2117 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2118 (copy_action, case '@'): Likewise.
2119 Use a standard error message, to save useless work from
2122 2000-03-17 Akim Demaille <akim@epita.fr>
2124 * src/bison.s1: Formatting and cosmetics changes.
2125 * src/reader.c: Likewise.
2126 Update the Copyright notice.
2128 2000-03-17 Akim Demaille <akim@epita.fr>
2130 * src/bison.s1 (#line): All set to `#line' only, since the
2131 Makefile now handles them.
2133 2000-03-16 Akim Demaille <akim@epita.fr>
2135 * src/output.c (output_rule_data): Output the documentation of
2137 (Copyright notice): Update.
2140 2000-03-16 Akim Demaille <akim@epita.fr>
2142 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2143 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2144 One `#if YYDEBUG' remains, since it uses variables which are
2145 defined only if `YYDEBUG != 0'.
2147 2000-03-16 Akim Demaille <akim@epita.fr>
2149 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2150 and related variables so that the similarities are highlighted.
2152 2000-03-16 Akim Demaille <akim@epita.fr>
2154 * src/bison.s1: Properly indent CPP directives.
2156 2000-03-16 Akim Demaille <akim@epita.fr>
2158 * src/bison.s1: Properly indent the `alloca' CPP section.
2160 2000-03-16 Akim Demaille <akim@epita.fr>
2162 Do not hard code values of directories in `configure.in'.
2163 Update the `configure' tool chain.
2165 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2167 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2168 (AC_OUTPUT): Add m4/Makefile.
2169 Bump to bison 1.28a, 1.29 has never been released.
2170 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2171 handled via src/Makefile.am.
2172 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2173 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2175 * Makefile.am (SUBDIRS): Add m4.
2176 (ACLOCAL_AM_FLAGS): New variable.
2177 (AUTOMAKE_OPTIONS): Add check-news.
2178 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2179 the proper line number and file name.
2180 (DEFS): Propagate the location of bison library files and of the
2182 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2184 * acinclude.m4: Remove, replaced by the directory m4.
2185 * m4/Makefile.am (EXTRA_DIST): New variable.
2186 * m4/gettext.m4: New file, from the fileutils.
2187 * m4/lcmessage.m4: Likewise
2188 * m4/progtest.m4: Likewise.
2189 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2191 2000-03-10 Akim Demaille <akim@epita.fr>
2194 Formatting changes of various comments.
2195 Respect the GNU coding standards at various places.
2196 Don't use `_()' when no translation is needed.
2198 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2201 OS/2 honors TMPDIR environment variable.
2203 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2205 * doc/bison.texinfo: Tweaked spelling and grammar.
2207 Removed reference to price of printed copy.
2208 Mention BISON_SIMPLE and BISON_HAIRY.
2210 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2212 * configure.in, NEWS:
2213 Bison 1.29 released.
2215 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2217 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2218 Added reference card.
2220 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2222 * po/ru.po: Added Russian translation.
2224 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2226 * configure.in: Added Russian translation.
2228 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2230 * configure.in, NEWS, README:
2231 Released version 1.28.
2233 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2236 Squashed redefinition warning on some systems.
2238 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2239 Have configure build version string instead of relying on ANSI string
2242 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2244 * po/POTFILES.in: Got rid of version.c.
2246 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2248 * acconfig.h, configure.in:
2249 Have configure build version string instead of relying on ANSI string
2252 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2255 Dropped mention of `+' for long-named options.
2257 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2259 * src/files.c: Added <unistd.h> for unlink().
2261 * src/Makefile.am, src/system.h:
2264 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2266 * README: Added a FAQ list.
2268 * configure.in, acconfig.h:
2271 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2273 * doc/FAQ, doc/Makefile.am:
2276 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2278 * src/alloc.h, src/symtab.h, src/version.c:
2279 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2281 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2283 * src/.cvsignore, src/Makefile.am:
2284 Reorganized: sources in `src', documentation in `doc'.
2286 * src/lex.c (literalchar):
2287 fixed the code for escaping double quotes (thanks
2290 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2292 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2293 Adjusted paths to reflect directory reorganization.
2295 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2297 * doc/.cvsignore, doc/Makefile.am:
2298 Reorganized: sources in `src', documentation in `doc'.
2300 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2303 Updated AC_INIT file to reflect directory reorganization.
2305 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2306 Reorganized: sources in `src', documentation in `doc'.
2308 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2311 Don't declare calloc() and realloc() if not necessary.
2313 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2315 * configure.in, acconfig.h, acinclude.m4:
2316 Don't declare calloc() and realloc() if not necessary.
2318 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2320 * po/.cvsignore: Added i18n support.
2322 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2324 * acconfig.h, configure.in, Makefile.am:
2327 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2329 * src/bison.s1: Fixed #line numbers.
2331 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2333 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2334 Added PO files from Translation Project.
2336 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2339 Added support for non-ANSI compilers (ansi2knr).
2341 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2343 * configure.in: Bumped version number to 1.27.
2346 Added `bison.simple' to list of files removed by `make distclean'.
2348 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2350 * src/files.c, src/files.h:
2351 Defined locations of parser files in config.h instead of Makefile.
2353 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2355 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2356 Defined locations of parser files in config.h instead of Makefile.
2358 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2361 Removed inappropriate use of $< macro.
2363 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2365 * po/Makefile.in.in, po/POTFILES.in:
2366 Add `po' directory skeleton.
2368 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2370 * README: Document help-bison list.
2372 * configure.in: Add check for mkstemp().
2374 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2376 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2377 Hush a few compiler warnings.
2380 Add tryclose(), which verifies that fclose was successful.
2381 Hush a couple of compiler warnings.
2383 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2385 * Makefile.am, OChangeLog:
2386 ChangeLog is now automatically generated. Include the old version as
2389 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2391 * 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:
2394 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2396 * doc/bison.texinfo: Fix formatting glitch.
2398 * doc/bison.texinfo: Update FSF address.
2400 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2402 * acconfig.h: Update FSF address.
2404 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2407 Don't define PACKAGE here, since config.h defines it.
2409 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2411 * src/reader.c: Update copyright date.
2414 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2415 favor of output directly to stderr (avoids buffer overruns).
2417 * src/reader.c: Some checks for premature EOF.
2419 * 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:
2420 Use prototypes if the compiler understands them.
2422 * src/files.c: Honor TMPDIR on Unix hosts.
2423 Use prototypes if the compiler understands them.
2426 Fix a couple of buffer overrun bugs.
2427 Use prototypes if the compiler understands them.
2429 * src/system.h: Include unistd.h and ctype.h.
2430 Use #ifdef instead of #if for NLS symbols.
2432 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2434 * doc/bison.texinfo:
2435 Delete comment "consider using @set for edition number, etc..." since
2436 we now are doing so.
2438 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2441 Use prototypes if the compiler understands them.
2443 * NEWS: Document 1.26 highlights.
2445 * Makefile.am: Require Automake 1.3 or later.
2448 Use prototypes if the compiler understands them.
2450 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2453 Use VERSION symbol from automake for version number.
2455 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2457 * acconfig.h, configure.in, version.cin:
2458 Use VERSION symbol from automake for version number.
2460 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2463 Distribute original version of simple parser (bison.s1), not built
2464 version (bison.simple).
2466 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2468 * doc/bison.texinfo: Add info dir entry.
2470 * doc/bison.texinfo:
2471 Let automake put version number into documentation.
2473 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2475 * src/bison.cld, src/build.com, src/vmshlp.mar:
2476 Add non-RCS files from /gd/gnu/bison.
2478 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2481 Document the BISON_HAIRY and BISON_SIMPLE variables.
2483 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2485 * src/version.c: Build version.c automatically.
2488 Fix token numbering (used to start at 258, not 257).
2490 * src/system.h: Include config.h.
2492 * src/getargs.c: Update bug report address.
2494 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2495 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2497 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2500 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2502 * configure.in, version.cin:
2503 Build version.c automatically.
2505 * AUTHORS: Add AUTHORS file.
2507 * README: Update bug report address.
2510 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2512 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2515 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2517 * doc/bison.texinfo: Clean up some formatting.
2519 1998-05-05 Richard Stallman <rms@gnu.org>
2521 * doc/bison.texinfo:
2522 Explain better why to make a pure parser.
2524 1998-01-05 Richard Stallman <rms@gnu.org>
2526 * src/files.c (openfiles):
2527 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2528 find a temporary directory, if possible. Do not unlink files while
2531 1997-08-25 Richard Stallman <rms@gnu.org>
2533 * src/reader.c (stack_offset;):
2534 Change some warni to warns.
2536 * src/lex.c (literalchar): Use warns, not warni.
2538 1997-06-28 Richard Stallman <rms@gnu.org>
2540 * src/bison.s1: Add a Bison version comment.
2542 * src/main.c (fatal, warn, berror):
2545 1997-06-28 Richard Stallman <rms@gnu.org>
2547 * Makefile.in (bison_version): New variable.
2548 (dist): Use that variable.
2549 (bison.s1): Substitute the Bison version into bison.simple.
2551 * bison.simple: Add a Bison version comment.
2553 1997-06-18 Richard Stallman <rms@gnu.org>
2555 * src/main.c (fatal, warn, berror):
2556 Make error messages standard.
2557 (toomany): Improve error message text.
2559 * 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:
2560 new.h renamed to alloc.h.
2562 1997-06-18 Richard Stallman <rms@gnu.org>
2564 * Makefile.in: new.h renamed to alloc.h.
2566 1997-05-24 Richard Stallman <rms@gnu.org>
2568 * src/lex.c (literalchar):
2569 Fix the code for escaping \, " and '.
2571 (lex): Avoid trouble when there are many chars
2572 to discard in a char literal with just several chars in it.
2574 1997-05-17 Richard Stallman <rms@gnu.org>
2577 Use malloc, if using alloca is troublesome.
2578 (YYSTACK_USE_ALLOCA): New flag macro.
2579 Define it for some systems and compilers.
2580 (YYSTACK_ALLOC): New macro.
2581 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2582 If it was malloc'd, free it.
2584 1997-05-17 Richard Stallman <rms@gnu.org>
2587 Use malloc, if using alloca is troublesome.
2588 (YYSTACK_USE_ALLOCA): New flag macro.
2589 Define it for some systems and compilers.
2590 (YYSTACK_ALLOC): New macro.
2591 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2592 If it was malloc'd, free it.
2594 1997-04-23 Richard Stallman <rms@gnu.org>
2597 (alloca) [__hpux]: Always define as __builtin_alloca.
2599 1997-04-23 Richard Stallman <rms@gnu.org>
2602 (alloca) [__hpux]: Always define as __builtin_alloca.
2604 1997-04-22 Richard Stallman <rms@gnu.org>
2607 [__hpux]: Include alloca.h (right for HPUX 10)
2608 instead of declaring alloca (right for HPUX 9).
2610 * src/bison.s1 (__yy_memcpy):
2611 Declare arg `count' as unsigned int.
2612 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2614 1997-04-22 Richard Stallman <rms@gnu.org>
2617 [__hpux]: Include alloca.h (right for HPUX 10)
2618 instead of declaring alloca (right for HPUX 9).
2620 * bison.simple (__yy_memcpy):
2621 Declare arg `count' as unsigned int.
2622 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2624 1997-01-03 Richard Stallman <rms@gnu.org>
2626 * src/allocate.c: [__STDC__ or _MSC_VER]:
2627 Declare calloc and realloc to return void *.
2629 1997-01-02 Richard Stallman <rms@gnu.org>
2632 [_MSC_VER]: Include stdlib.h and process.h.
2633 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2635 * src/main.c (main): Return FAILURE as a value.
2636 (printable_version): Declare arg as int, not char.
2638 1997-01-02 Richard Stallman <rms@gnu.org>
2640 * Makefile.in (dist):
2641 Explicitly check for symlinks, and copy them.
2643 1996-12-19 Richard Stallman <rms@gnu.org>
2646 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2648 1996-12-18 Paul Eggert <eggert@gnu.org>
2650 * src/bison.s1 (yyparse):
2651 If __GNUC__ and YYPARSE_PARAM are both defined,
2652 declare yyparse to have a void * argument.
2654 1996-12-18 Paul Eggert <eggert@gnu.org>
2656 * bison.simple (yyparse):
2657 If __GNUC__ and YYPARSE_PARAM are both defined,
2658 declare yyparse to have a void * argument.
2660 1996-12-17 Richard Stallman <rms@gnu.org>
2662 * src/reduce.c (nbits): Add some casts.
2664 1996-08-12 Richard Stallman <rms@gnu.org>
2666 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2668 1996-08-12 Richard Stallman <rms@gnu.org>
2670 * bison.simple: Test _MSDOS as well as _MSDOS_.
2672 1996-07-31 Richard Stallman <rms@gnu.org>
2675 [__sun && __i386]: Include alloca.h.
2677 1996-07-31 Richard Stallman <rms@gnu.org>
2680 [__sun && __i386]: Include alloca.h.
2682 1996-07-30 Richard Stallman <rms@gnu.org>
2684 * src/bison.s1: Comment change.
2686 * src/bison.s1: Test _MSDOS_, not MSDOS.
2688 1996-07-30 Richard Stallman <rms@gnu.org>
2690 * bison.simple: Comment change.
2692 * bison.simple: Test _MSDOS_, not MSDOS.
2694 1996-06-01 Richard Stallman <rms@gnu.org>
2696 * 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:
2697 Insert `_' macro around many string constants.
2700 Insert `_' macro around many string constants.
2702 (main): Call setlocale, bindtextdomain and textdomain.
2704 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2705 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2706 [ENABLE_NLS]: Include libintl.h.
2707 [ENABLE_NLS] (gettext): Define.
2708 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2709 (N_, PACKAGE, LOCALEDIR): New macros.
2711 1996-06-01 Richard Stallman <rms@gnu.org>
2713 * POTFILES.in: New file.
2715 * Makefile.in (allocate.o):
2716 Define target explicitly.
2718 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2719 (LDFLAGS): Set to @LDFLAGS@.
2720 (configure): Run autoconf only if preceding `cd' succeeds.
2721 (bison.s1): Redirect output to temporary file then move the
2722 temporary to the target, rather than redirecting directly to bison.s1.
2723 (clean): Remove config.status and config.log.
2724 (distclean): Don't remove config.status here.
2726 1996-05-12 Richard Stallman <rms@gnu.org>
2729 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2731 1996-05-12 Richard Stallman <rms@gnu.org>
2734 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2736 1996-05-11 Richard Stallman <rms@gnu.org>
2738 * src/bison.s1 (__yy_memcpy):
2739 Really reorder the args, as was supposedly done on Feb 14 1995.
2740 (yyparse): Calls changed accordingly.
2742 1996-05-11 Richard Stallman <rms@gnu.org>
2744 * Makefile.in (dist): Don't use $(srcdir).
2746 * bison.simple (__yy_memcpy):
2747 Really reorder the args, as was supposedly done on Feb 14 1995.
2748 (yyparse): Calls changed accordingly.
2750 1996-01-27 Richard Stallman <rms@gnu.org>
2752 * src/output.c (output_rule_data):
2753 Test YYERROR_VERBOSE in the conditional
2754 around the definition of ttyname.
2756 1995-12-29 Richard Stallman <rms@gnu.org>
2759 Fix line numbers in #line commands.
2761 1995-12-29 Richard Stallman <rms@gnu.org>
2764 Fix line numbers in #line commands.
2766 1995-12-27 Richard Stallman <rms@gnu.org>
2768 * src/bison.s1 (YYPARSE_PARAM_DECL):
2769 In C++, make it always null.
2770 (YYPARSE_PARAM_ARG): New macro.
2771 (yyparse): Use YYPARSE_PARAM_ARG.
2773 1995-12-27 Richard Stallman <rms@gnu.org>
2775 * bison.simple (YYPARSE_PARAM_DECL):
2776 In C++, make it always null.
2777 (YYPARSE_PARAM_ARG): New macro.
2778 (yyparse): Use YYPARSE_PARAM_ARG.
2780 1995-11-29 Richard Stallman <rms@gnu.org>
2782 * doc/bison.texinfo:
2783 Describe literal string tokens, %raw, %no_lines, %token_table.
2785 1995-11-29 Daniel Hagerty <hag@gnu.org>
2787 * doc/bison.texinfo: Fixed update date
2789 1995-10-16 Richard Stallman <rms@gnu.org>
2791 * src/version.c: Version 1.25.
2793 1995-10-16 Richard Stallman <rms@gnu.org>
2795 * NEWS: *** empty log message ***
2797 1995-10-16 Richard Stallman <rms@gnu.org>
2799 * doc/bison.1, doc/bison.rnh:
2802 1995-10-15 Richard Stallman <rms@gnu.org>
2804 * src/vmsgetargs.c, src/getargs.c:
2805 Added -n, -k, and -raw switches.
2806 (noparserflag, toknumflag, rawtoknumflag): New variables.
2808 * src/symtab.h (SALIAS):
2809 New #define for adding aliases to %token.
2810 (struct bucket): Added `alias' field.
2812 * src/reduce.c (reduce_grammar):
2813 Revise error message.
2814 (print_notices): Remove final `.' from error message.
2816 * src/reader.c (reader_output_yylsp):
2818 (readgram): Use `#if 0' around code that accepted %command
2819 inside grammar rules: The documentation doesn't allow it,
2820 and it will fail since the %command processors scan for the next %.
2821 (parse_token_decl): Extended the %token
2822 declaration to allow a multi-character symbol as an alias.
2823 (parse_thong_decl): New function.
2824 (read_declarations): Added %thong declarations.
2825 (read_declarations): Handle NOOP to deal with allowing
2826 % declarations as another means to specify the flags.
2827 (readgram): Allow %prec prior to semantics embedded in a rule.
2828 (skip_to_char, read_declarations, copy_definition)
2829 (parse_token_decl, parse_start_decl, parse_type_decl)
2830 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2831 (get_type_name, copy_guard, copy_action, readgram)
2832 (get_type, packsymbols): Revised most error messages.
2833 Changed `fatal' to `warnxxx' to avoid aborting for error.
2834 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2835 (read_declarations): Improve the error message for
2836 an invalid character. Do not abort.
2837 (read_declarations, copy_guard, copy_action): Use
2838 printable_version to avoid unprintable characters in printed output.
2839 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2840 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2841 Allow the type of a non-terminal can be given
2842 more than once, as long as all specifications give the same type.
2845 (output_headers, output_trailers, output, output_gram)
2846 (output_rule_data): Implement noparserflag variable.
2847 Implement toknumflag variable.
2848 (output): Call reader_output_yylsp to output LTYPESTR.
2850 * src/main.c (main):
2851 If reader sees an error, don't process the grammar.
2852 (fatals): Updated to not use VARARGS1.
2853 (printable_version, int_to_string, warn, warni, warns, warnss)
2854 (warnsss): New error reporting functions. Avoid abort for error.
2857 Added THONG and NOOP for alias processing.
2858 Added SETOPT for the new code that allows setting options with %flags.
2861 Include getopt.h. Add some extern decls.
2862 (safegetc): New function to deal with EOF gracefully.
2863 (literalchar); new function to deal with reading \ escapes.
2864 (lex): Use literalchar.
2865 (lex): Implemented "..." tokens.
2866 (literalchar, lex, parse_percent_token): Made tokenbuffer
2867 always contain the token. This includes growing the token
2868 buffer while reading an integer.
2869 (parse_percent_token): Replaced if-else statement with percent_table.
2870 (parse_percent_token): Added % declarations as another
2871 way to specify the flags -n, -l, and -r. Also added hooks for
2872 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2873 major changes to files.c.
2874 (lex) Retain in the incoming stream a character following
2876 (skip_white_space, lex): Revised most error messages
2877 and changed fatal to warn to avoid aborting.
2878 (percent_table): Added %thong declarations.
2880 * src/gram.h: Comment changes.
2882 * src/files.c (openfiles, open_extra_files, done):
2884 and actfile file. Handle noparserflag. Both for -n switch.
2886 * src/conflicts.c (resolve_sr_conflict):
2887 Remove use of alloca.
2889 1995-06-01 Jim Meyering <meyering@gnu.org>
2891 * doc/bison.texinfo: *** empty log message ***
2893 1995-05-06 Richard Stallman <rms@gnu.org>
2895 * src/bison.s1: Comment change.
2897 1995-05-06 Richard Stallman <rms@gnu.org>
2899 * bison.simple: Comment change.
2901 1995-05-03 Richard Stallman <rms@gnu.org>
2903 * src/version.c: Version now 1.24.
2905 * src/bison.s1: Change distribution terms.
2907 * src/version.c: Version now 1.23.
2909 1995-05-03 Richard Stallman <rms@gnu.org>
2911 * doc/bison.texinfo:
2912 Rewrite "Conditions for Using Bison".
2913 Update version to 1.24.
2915 1995-05-03 Richard Stallman <rms@gnu.org>
2917 * bison.simple: Change distribution terms.
2919 1995-02-23 Richard Stallman <rms@gnu.org>
2921 * src/files.c: Test __VMS_POSIX as well as VMS.
2923 1995-02-14 Jim Meyering <meyering@gnu.org>
2925 * src/bison.s1 (__yy_memcpy):
2926 Renamed from __yy_bcopy to avoid
2927 confusion. Reverse FROM and TO arguments to be consistent with
2930 1995-02-14 Jim Meyering <meyering@gnu.org>
2932 * bison.simple (__yy_memcpy):
2933 Renamed from __yy_bcopy to avoid
2934 confusion. Reverse FROM and TO arguments to be consistent with
2937 1994-11-10 David J. MacKenzie <djm@gnu.org>
2943 * Makefile.in (DISTFILES): Include NEWS.
2945 * Makefile.in (DISTFILES):
2946 Include install-sh, not install.sh.
2948 * configure.in: Update to Autoconf v2 macro names.
2950 1994-10-05 David J. MacKenzie <djm@gnu.org>
2952 * Makefile.in: fix typo
2954 * Makefile.in (prefix, exec_prefix):
2955 Let configure set them.
2957 1994-09-28 David J. MacKenzie <djm@gnu.org>
2959 * Makefile.in: Set datadir to $(prefix)/share.
2961 1994-09-15 Richard Stallman <rms@gnu.org>
2964 Update copyright notice and GPL version.
2966 1994-09-15 Richard Stallman <rms@gnu.org>
2969 Update copyright notice and GPL version.
2971 1994-07-12 Richard Stallman <rms@gnu.org>
2973 * src/reduce.c, src/reader.c:
2976 1994-05-05 David J. MacKenzie <djm@gnu.org>
2978 * Makefile.in: entered into RCS
2980 1994-03-26 Richard Stallman <rms@gnu.org>
2982 * src/bison.s1: entered into RCS
2984 1994-03-26 Richard Stallman <rms@gnu.org>
2986 * bison.simple: entered into RCS
2988 1994-03-25 Richard Stallman <rms@gnu.org>
2990 * src/main.c: entered into RCS
2992 1994-03-24 Richard Stallman <rms@gnu.org>
2994 * src/conflicts.c: entered into RCS
2996 1994-01-02 Richard Stallman <rms@gnu.org>
2998 * Makefile.in: *** empty log message ***
3000 1993-11-21 Richard Stallman <rms@gnu.org>
3002 * src/bison.s1: *** empty log message ***
3004 1993-11-21 Richard Stallman <rms@gnu.org>
3006 * doc/bison.texinfo: entered into RCS
3008 * doc/bison.texinfo: *** empty log message ***
3010 1993-11-21 Richard Stallman <rms@gnu.org>
3012 * bison.simple: *** empty log message ***
3014 1993-10-25 David J. MacKenzie <djm@gnu.org>
3016 * doc/bison.texinfo: *** empty log message ***
3018 1993-10-19 Richard Stallman <rms@gnu.org>
3020 * src/bison.s1: *** empty log message ***
3022 1993-10-19 Richard Stallman <rms@gnu.org>
3024 * bison.simple: *** empty log message ***
3026 1993-10-14 Richard Stallman <rms@gnu.org>
3028 * src/bison.s1: *** empty log message ***
3030 1993-10-14 Richard Stallman <rms@gnu.org>
3032 * bison.simple: *** empty log message ***
3034 1993-09-14 David J. MacKenzie <djm@gnu.org>
3036 * doc/bison.texinfo: *** empty log message ***
3038 1993-09-13 Noah Friedman <friedman@gnu.org>
3040 * Makefile.in: *** empty log message ***
3042 1993-09-10 Richard Stallman <rms@gnu.org>
3044 * src/conflicts.c: *** empty log message ***
3046 * src/system.h: entered into RCS
3048 1993-09-10 Richard Stallman <rms@gnu.org>
3050 * doc/bison.1: entered into RCS
3052 1993-09-06 Noah Friedman <friedman@gnu.org>
3054 * src/version.c: entered into RCS
3056 1993-09-06 Noah Friedman <friedman@gnu.org>
3058 * Makefile.in: *** empty log message ***
3060 1993-07-30 David J. MacKenzie <djm@gnu.org>
3062 * Makefile.in: *** empty log message ***
3064 1993-07-24 Richard Stallman <rms@gnu.org>
3066 * src/bison.s1: *** empty log message ***
3068 1993-07-24 Richard Stallman <rms@gnu.org>
3070 * bison.simple: *** empty log message ***
3072 1993-07-08 David J. MacKenzie <djm@gnu.org>
3074 * Makefile.in: *** empty log message ***
3076 1993-07-04 Richard Stallman <rms@gnu.org>
3078 * src/bison.s1: *** empty log message ***
3080 1993-07-04 Richard Stallman <rms@gnu.org>
3082 * bison.simple: *** empty log message ***
3084 1993-06-26 David J. MacKenzie <djm@gnu.org>
3086 * src/getargs.c: entered into RCS
3088 1993-06-26 David J. MacKenzie <djm@gnu.org>
3090 * doc/bison.texinfo: *** empty log message ***
3092 * doc/bison.1: New file.
3094 1993-06-25 Richard Stallman <rms@gnu.org>
3096 * src/getargs.c: New file.
3098 1993-06-16 Richard Stallman <rms@gnu.org>
3100 * src/bison.s1: *** empty log message ***
3102 1993-06-16 Richard Stallman <rms@gnu.org>
3104 * bison.simple: *** empty log message ***
3106 1993-06-03 Richard Stallman <rms@gnu.org>
3108 * src/bison.s1: New file.
3110 1993-06-03 Richard Stallman <rms@gnu.org>
3112 * doc/bison.texinfo: *** empty log message ***
3114 1993-06-03 Richard Stallman <rms@gnu.org>
3116 * bison.simple: New file.
3118 1993-05-19 Richard Stallman <rms@gnu.org>
3120 * doc/bison.texinfo: New file.
3122 1993-05-07 Noah Friedman <friedman@gnu.org>
3124 * Makefile.in: *** empty log message ***
3126 1993-04-28 Noah Friedman <friedman@gnu.org>
3128 * src/reader.c: *** empty log message ***
3130 1993-04-23 Noah Friedman <friedman@gnu.org>
3132 * src/alloc.h: entered into RCS
3134 1993-04-20 David J. MacKenzie <djm@gnu.org>
3136 * src/version.c: *** empty log message ***
3138 * src/files.c, src/allocate.c:
3141 * src/reader.c: *** empty log message ***
3143 * src/lex.c: entered into RCS
3145 * src/conflicts.c: New file.
3147 * src/symtab.c: entered into RCS
3149 * src/alloc.h: New file.
3151 * src/LR0.c: entered into RCS
3153 1993-04-18 Noah Friedman <friedman@gnu.org>
3155 * src/reader.c: New file.
3157 * src/version.c: *** empty log message ***
3159 1993-04-18 Noah Friedman <friedman@gnu.org>
3161 * Makefile.in: *** empty log message ***
3163 1993-04-17 Noah Friedman <friedman@gnu.org>
3165 * Makefile.in: *** empty log message ***
3167 1993-04-15 Richard Stallman <rms@gnu.org>
3169 * src/main.c, src/files.c:
3172 1993-04-15 Noah Friedman <friedman@gnu.org>
3174 * configure.in: entered into RCS
3176 * configure.in: *** empty log message ***
3178 * configure.in: New file.
3180 1993-04-14 Richard Stallman <rms@gnu.org>
3182 * Makefile.in: New file.
3184 1993-04-13 Richard Stallman <rms@gnu.org>
3186 * src/version.c: New file.
3188 1993-03-25 Richard Stallman <rms@gnu.org>
3190 * src/output.c: entered into RCS
3192 1992-09-25 Richard Stallman <rms@gnu.org>
3194 * configure.bat: entered into RCS
3196 1992-06-22 Richard Stallman <rms@gnu.org>
3198 * src/vmsgetargs.c: entered into RCS
3200 1992-06-22 Richard Stallman <rms@gnu.org>
3202 * doc/bison.rnh: entered into RCS
3204 1992-04-20 David J. MacKenzie <djm@gnu.org>
3206 * README: entered into RCS
3208 1992-01-22 Richard Stallman <rms@gnu.org>
3210 * src/machine.h: entered into RCS
3212 1991-12-21 Richard Stallman <rms@gnu.org>
3214 * src/lalr.c, src/closure.c:
3217 1991-12-20 Richard Stallman <rms@gnu.org>
3219 * src/state.h: entered into RCS
3221 1991-12-18 Richard Stallman <rms@gnu.org>
3223 * src/print.c, src/nullable.c, src/derives.c:
3226 1991-11-03 David J. MacKenzie <djm@gnu.org>
3228 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3231 1988-09-09 Richard Stallman <rms@gnu.org>
3233 * src/bison.hairy: entered into RCS
3235 1987-12-16 Richard Stallman <rms@gnu.org>
3237 * REFERENCES: entered into RCS