1 2001-11-27 Akim Demaille <akim@epita.fr>
3 * tests/torture.at (Exploding the Stack Size with Malloc):
4 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
6 2001-11-27 Akim Demaille <akim@epita.fr>
8 * src/files.c: Include error.h.
11 2001-11-26 Akim Demaille <akim@epita.fr>
15 2001-11-26 Akim Demaille <akim@epita.fr>
17 * src/reader.c (readgram): Make sure rules for mid-rule actions
18 have a lineno equal to that of their host rule.
19 Reported by Hans Aberg.
20 * tests/regression.at (Rule Line Numbers): New.
22 2001-11-26 Akim Demaille <akim@epita.fr>
24 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
26 Reported by Hans Aberg.
28 2001-11-26 Akim Demaille <akim@epita.fr>
30 * src/complain.c, src/complain.h (error): Remove, provided by
33 2001-11-26 Akim Demaille <akim@epita.fr>
35 * src/reader.c (read_declarations): Don't abort on tok_illegal,
36 issue an error message.
37 * tests/regression.at (Invalid %directive): New.
38 Reported by Hans Aberg.
40 2001-11-26 Akim Demaille <akim@epita.fr>
42 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
43 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
45 2001-11-26 Akim Demaille <akim@epita.fr>
47 * src/conflicts.c (conflicts_print): Don't complain at all when
48 there are no reduce/reduce conflicts, and as many shift/reduce
49 conflicts as expected.
50 * tests/regression.at (%expect right): Adjust.
52 2001-11-23 Akim Demaille <akim@epita.fr>
54 * lib/alloca.c: Update, from fileutils.
56 2001-11-23 Akim Demaille <akim@epita.fr>
58 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
60 2001-11-23 Akim Demaille <akim@epita.fr>
62 * src/system.h: Include alloca.h.
63 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
65 2001-11-23 Akim Demaille <akim@epita.fr>
67 * src/print_graph.c (print_actions): Remove `rule', unused.
68 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
69 pacify GCC's signed < unsigned warnings.
70 * src/closure.c (itemsetsize): Likewise.
71 * src/reader.c (symbol_list_new): Static.
73 2001-11-23 Akim Demaille <akim@epita.fr>
75 Attaching lineno to buckets is stupid, since only one copy of each
76 symbol is kept, only the line of the first occurrence is kept too.
78 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
79 * src/reader.c (rline_allocated): Remove, unused.
80 (symbol_list): Have a `line' member.
81 (symbol_list_new): New.
83 * src/print.c (print_grammar): Output the rule line numbers.
84 * tests/regression.at (Solved SR Conflicts)
85 (Unresolved SR Conflicts): Adjust.
86 Reported by Hans Aberg.
88 2001-11-20 Akim Demaille <akim@epita.fr>
92 2001-11-20 Akim Demaille <akim@epita.fr>
95 * configure.in (ALL_LINGUAS): Adjust.
96 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
97 longer contains strings to translate.
99 2001-11-19 Akim Demaille <akim@epita.fr>
101 * src/conflicts.c (conflicts_print): Add a missing \n.
103 2001-11-19 Akim Demaille <akim@epita.fr>
105 * src/nullable.c (nullable_print): New.
106 (set_nullable): Call it when tracing.
107 Better locality of variables.
109 2001-11-19 Akim Demaille <akim@epita.fr>
111 * src/print.c (print_actions): Better locality of variables.
113 2001-11-19 Akim Demaille <akim@epita.fr>
115 * src/derives.c (print_derives): Fix and enrich.
116 * src/closure.c (print_fderives): Likewise.
118 2001-11-19 Akim Demaille <akim@epita.fr>
120 * src/closure.c (itemsetend): Remove, replaced with...
123 2001-11-19 Akim Demaille <akim@epita.fr>
125 * src/LR0.c (kernel_end): Remove, replaced with...
128 2001-11-19 Akim Demaille <akim@epita.fr>
130 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
133 2001-11-19 Akim Demaille <akim@epita.fr>
135 * src/closure.c (closure): Use arrays instead of pointers to clarify.
137 2001-11-19 Akim Demaille <akim@epita.fr>
139 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
141 * src/LR0.c: Likewise.
142 (allocate_itemsets): Use arrays instead of pointers to clarify.
144 2001-11-19 Akim Demaille <akim@epita.fr>
146 * src/getargs.c (statistics_flag): Replace with...
148 (longopts): Accept --trace instead of --statistics.
149 * src/getargs.h: Adjust.
150 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
151 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
153 2001-11-19 Akim Demaille <akim@epita.fr>
155 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
156 pointers to clarify the code.
157 (save_reductions, save_shifts): Factor common parts of alternatives.
159 2001-11-19 Akim Demaille <akim@epita.fr>
161 * src/LR0.c (new_state, get_state): Complete TRACE code.
162 * src/closure.c: Include `reader.h' to get `tags', needed by the
164 Rename the conditional DEBUG as TRACE.
165 Output consistently TRACEs to stderr, not stdout.
166 * src/derives.c: Likewise.
167 * src/reduce.c: (inaccessable_symbols): Using if is better style
169 Use `#if TRACE' instead of `#if 0' for tracing code.
171 2001-11-19 Akim Demaille <akim@epita.fr>
173 * src/system.h (LIST_FREE, shortcpy): New.
174 * src/LR0.c: Use them.
175 * src/output.c (free_itemsets, free_reductions, free_shifts):
176 Remove, replaced by LIST_FREE.
178 2001-11-19 Akim Demaille <akim@epita.fr>
180 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
181 (REDUCTIONS_ALLOC): New.
182 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
185 2001-11-19 Akim Demaille <akim@epita.fr>
187 * src/LR0.c (new_state): Complete trace code.
188 * src/nullable.c (set_nullable): Don't translate traces.
190 2001-11-19 Akim Demaille <akim@epita.fr>
192 * src/print_graph.c (print_core): Better locality of variables.
193 * src/print.c (print_core): Likewise.
195 2001-11-19 Akim Demaille <akim@epita.fr>
197 * src/vcg.c: You do the output, so you are responsible of the
198 handling of VCG syntax, in particular: use quotearg.
199 * src/print_graph.c: Don't.
200 (print_actions): Don't output the actions as part of the nodes,
201 since that's the job of the edges.
202 (print_state): Don't output by hand: fill the node description,
203 and ask for its output.
205 2001-11-19 Akim Demaille <akim@epita.fr>
207 * src/bison.simple (yyparse): When verbosely reporting an error,
208 no longer put additional quotes around token names.
209 * tests/calc.at: Adjust.
211 2001-11-19 Akim Demaille <akim@epita.fr>
213 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
214 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
215 * src/output.c: Adjust.
217 2001-11-19 Akim Demaille <akim@epita.fr>
219 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
221 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
223 2001-11-19 Akim Demaille <akim@epita.fr>
225 * src/gram.h (rule_t): New.
227 (rrhs, rlhs): Remove, part of state_t.
228 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
229 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
230 * src/reader.c, src/reduce.c: Adjust.
232 2001-11-19 Akim Demaille <akim@epita.fr>
234 * src/reader.c (symbols_output): New, extracted from...
238 2001-11-19 Akim Demaille <akim@epita.fr>
240 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
241 (maxrhs): this new function.
243 2001-11-19 Akim Demaille <akim@epita.fr>
245 * src/lalr.c (F): New macro to access the variable F.
248 2001-11-19 Akim Demaille <akim@epita.fr>
250 * src/lalr.h (LA): New macro to access the variable LA.
251 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
252 * src/lalr.c: Adjust.
254 2001-11-19 Akim Demaille <akim@epita.fr>
256 * src/lalr.c (initialize_LA): Only initialize LA. Let...
257 (set_state_table): handle the `lookaheads' members.
259 2001-11-19 Akim Demaille <akim@epita.fr>
261 * src/lalr.h (lookaheads): Removed array, whose contents is now
263 (state_t): this structure.
264 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
267 2001-11-19 Akim Demaille <akim@epita.fr>
269 * src/lalr.h (consistent): Removed array, whose contents is now
271 (state_t): this structure.
272 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
275 2001-11-19 Akim Demaille <akim@epita.fr>
277 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
278 contents are now members of...
279 (state_t): this structure.
280 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
283 2001-11-19 Akim Demaille <akim@epita.fr>
285 * src/lalr.h (state_t): New.
286 (state_table): Be a state_t * instead of a core **.
287 (accessing_symbol): Remove, part of state_t.
288 * src/lalr.c: Adjust.
289 (set_accessing_symbol): Merge into...
290 (set_state_table): this.
291 * src/print_graph.c, src/conflicts.c: Adjust.
293 2001-11-14 Akim Demaille <akim@epita.fr>
297 2001-11-14 Akim Demaille <akim@epita.fr>
299 * tests/calc.at, tests/output.at, tests/regression.at,
300 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
301 now the tests are run in private dirs, therefore AC_CLEANUP and
302 family can be simplified to 0-ary.
303 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
304 use abs. path to find config.h.
306 2001-11-14 Akim Demaille <akim@epita.fr>
308 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
309 stderr, there can be way too much random noise.
310 Instead pass -Werror to GCC and rely on the exit status.
311 Reported by Wolfram Wagner.
313 2001-11-14 Akim Demaille <akim@epita.fr>
315 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
316 defined only if yyoverflow is defined, to avoid `warning: unused
318 Reported by The Test Suite.
320 2001-11-14 Akim Demaille <akim@epita.fr>
322 * src/print.c: Include reduce.h.
323 Reported by Hans Aberg.
325 2001-11-14 Akim Demaille <akim@epita.fr>
327 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
328 Revert a previous patch: these are really const.
329 * src/conflicts.c (conflict_report): Additional useless pair of
330 braces to pacify GCC's warnings for `if () if () {} else {}'.
331 * src/lex.c (parse_percent_token): Replace equal_offset with
334 Be sure to strdup `arg' when used, since there is no reason for
335 token_buffer not to change.
337 2001-11-14 Akim Demaille <akim@epita.fr>
339 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
341 * src/main.c (main): Use them.
342 Suggested by Hans Aberg.
344 2001-11-12 Akim Demaille <akim@epita.fr>
348 * src/system.h (ngettext): Now that we use ngettext, be sure to
349 provide a default definition when NLS are not used that takes care
352 2001-11-12 Akim Demaille <akim@epita.fr>
354 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
355 Use @kbd to denote user input.
356 (Language and Grammar): ANSIfy the example.
357 Adjust its layout for info/notinfo.
358 (Location Tracking Calc): Output error messages to stderr.
359 Output locations in a more GNUtically correct way.
360 Fix a couple of Englishos.
361 Adjust @group/@end group pairs.
363 2001-11-12 Akim Demaille <akim@epita.fr>
365 %expext was not functioning at all.
367 * src/conflicts.c (expected_conflicts): Set to -1.
368 (conflict_report): Use ngettext.
369 (conflicts_print): Check %expect and make its violation an error.
370 * doc/bison.texinfo (Expect Decl): Adjust.
371 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
372 * tests/regression.at (%expect not enough, %expect right)
373 (%expect too much): New.
375 2001-11-12 Akim Demaille <akim@epita.fr>
377 * tests/regression.at (Conflicts): Rename as...
378 (Unresolved SR Conflicts): this.
379 (Solved SR Conflicts): New.
381 2001-11-12 Akim Demaille <akim@epita.fr>
383 * src/reduce.c (print_results): Rename as...
384 (reduce_output): This.
385 Output to OUT, passed as argument, instead of output_obstack.
386 (dump_grammar): Likewise.
389 (reduce_grammar): No longer call reduce_output, since...
390 * src/print.c (print_results): do it.
391 * src/main.c (main): Call reduce_free;
393 2001-11-12 Akim Demaille <akim@epita.fr>
395 * src/conflicts.c (print_reductions): Accept OUT as argument.
396 Output to it, not to output_obstack.
397 * src/print.c (print_actions): Adjust.
399 2001-11-12 Akim Demaille <akim@epita.fr>
401 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
402 the result instead of using...
403 (src_total, rrc_total, src_count, rrc_count): Remove.
404 (any_conflicts): Remove.
405 (print_conflicts): Split into...
406 (conflicts_print, conflicts_output): New.
407 * src/conflicts.h: Adjust.
408 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
409 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
410 * tests/regression.at (Conflicts): New.
411 Reported by Tom Lane.
413 2001-11-12 Akim Demaille <akim@epita.fr>
415 * tests/regression.at (Invalid input): Remove, duplicate with
416 ``Invalid input: 1''.
418 2001-11-12 Akim Demaille <akim@epita.fr>
420 * tests/torture.at (AT_DATA_STACK_TORTURE)
421 (Exploding the Stack Size with Alloca)
422 (Exploding the Stack Size with Malloc): New.
424 2001-11-12 Akim Demaille <akim@epita.fr>
426 * src/bison.simple (YYSTACK_REALLOC): New.
427 (yyparse) [!yyoverflow]: Use it and free the old stack.
428 Reported by Per Allansson.
430 2001-11-05 Akim Demaille <akim@epita.fr>
433 * src/lex.c (parse_percent_token): s/quotearg/quote/.
435 2001-11-05 Akim Demaille <akim@epita.fr>
437 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
440 2001-11-05 Akim Demaille <akim@epita.fr>
442 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
443 with yyltype/YYLTYPE. This allows inclusion of the generated
444 header within the parser if the compiler, such as GGC, accepts
445 multiple equivalent #defines.
447 2001-11-04 Akim Demaille <akim@epita.fr>
449 * src/getargs.c (longopts): Support `--output'. getopt is now
450 able to understand that `--out' is OK: the two racing long options
453 * src/lex.h (tok_setopt): Remove, replaced with...
454 (tok_intopt, tok_stropt): these new guys.
455 * src/lex.c (getopt.h): Not needed.
456 (token_buffer, unlexed_token_buffer): Not const.
457 (percent_table): Promote `-' over `_' in directive names.
458 Active `%name-prefix', `file-prefix', and `output'.
459 (parse_percent_token): Accept possible arguments to directives.
460 Promote `-' over `_' in directive names.
461 * doc/bison.texinfo (Decl Summary): Split the list into
462 `directives for grammars' and `directives for bison'.
464 Add description of `%name-prefix', `file-prefix', and `output'.
465 Promote `-' over `_' in directive names.
466 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
467 Simplify the description of `--name-prefix'.
468 Promote `-' over `_' in directive names.
469 Promote `--output' over `--output-file'.
470 Fix the description of `--defines'.
471 * tests/output.at: Exercise %file-prefix and %output.
473 2001-11-02 Akim Demaille <akim@epita.fr>
475 * doc/refcard.tex: Update.
477 2001-11-02 Akim Demaille <akim@epita.fr>
479 * src/symtab.h (SUNDEF): New.
480 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
481 stand for `uninitialized', instead of 0.
482 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
483 * src/lex.c (lex): Adjust.
485 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
487 Let yylex return it instead of a plain 0.
488 Reported by Dick Streefland.
490 2001-11-02 Akim Demaille <akim@epita.fr>
492 * tests/regression.at (Mixing %token styles): New test.
494 2001-11-02 Akim Demaille <akim@epita.fr>
496 * src/reader.c (parse_thong_decl): Formatting changes.
497 (token_translations_init): New, extracted from...
501 2001-11-01 Akim Demaille <akim@epita.fr>
503 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
504 Check that `9foo.y' produces correct cpp guards.
505 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
509 2001-11-01 Akim Demaille <akim@epita.fr>
511 * tests/regression.at (Invalid input: 2): New.
512 * src/lex.c (unlexed_token_buffer): New.
513 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
517 2001-11-01 Akim Demaille <akim@epita.fr>
519 * configure.in: Bump to 1.30a.
520 Adjust to newer Autotest.
522 2001-10-26 Akim Demaille <akim@epita.fr>
526 2001-10-26 Paul Eggert <eggert@twinsun.com>
528 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
529 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
530 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
531 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
532 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
533 Sync with fileutils 4.1.1.
535 2001-10-18 Akim Demaille <akim@epita.fr>
538 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
539 avoid spurious failures.
541 2001-10-18 Akim Demaille <akim@epita.fr>
545 2001-10-18 Akim Demaille <akim@epita.fr>
547 * tests/atlocal.in (GCC): Add.
548 * tests/calc.at: s/m4_match/m4_bmatch/.
549 s/m4_patsubst/m4_bpatsubst/.
550 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
551 * configure.in: AC_SUBST(GCC).
553 2001-10-10 Akim Demaille <akim@epita.fr>
556 * configure.in: M4 is no longer needed, but autom4te is.
557 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
560 2001-10-10 Akim Demaille <akim@epita.fr>
564 2001-10-10 Akim Demaille <akim@epita.fr>
567 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
568 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
569 Reported by Airy Andre.
571 2001-10-10 Akim Demaille <akim@epita.fr>
573 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
574 * config/mkinstalldirs, lib/ansi2knr.c: Update.
576 2001-10-02 Akim Demaille <akim@epita.fr>
580 2001-10-02 Akim Demaille <akim@epita.fr>
584 2001-10-02 Akim Demaille <akim@epita.fr>
586 * tests/regression.at (Invalid CPP headers): New.
587 From Alexander Belopolsky.
588 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
590 2001-10-02 Akim Demaille <akim@epita.fr>
592 * tests/regression.at (Invalid input): New.
593 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
596 2001-10-02 Akim Demaille <akim@epita.fr>
598 * tests/calc.at: Now that --debug works, the tests must be adjusted.
600 2001-10-02 Akim Demaille <akim@epita.fr>
602 * src/output.c (output_parser): Assert `skeleton'.
603 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
607 2001-10-01 Marc Autret <autret_m@epita.fr>
609 * src/lex.h: Echo modifications.
610 * src/lex.c (unlex): Parameter is now token_t.
613 2001-10-01 Marc Autret <autret_m@epita.fr>
615 * src/main.c: Include lex.h.
618 2001-09-29 Akim Demaille <akim@epita.fr>
620 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
622 2001-09-28 Akim Demaille <akim@epita.fr>
624 * tests/testsuite.at: Update to newer Autotest.
625 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
627 2001-09-27 Akim Demaille <akim@epita.fr>
629 Position independent wrapper.
631 * tests/bison: Remove.
632 * tests/bison.in: New.
633 * configure.in: Adjust.
635 2001-09-27 Paul Eggert <eggert@twinsun.com>
637 Port quotearg fixes from tar 1.13.24.
639 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
641 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
642 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
644 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
645 * m4/mbrtowc.m4: New file.
646 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
647 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
649 2001-09-27 Akim Demaille <akim@epita.fr>
653 2001-09-27 Akim Demaille <akim@epita.fr>
657 2001-09-25 Akim Demaille <akim@epita.fr>
659 * src/system.h: Include `xalloc.h'.
660 Remove it from the C files.
661 * src/files.c (output_files): Free the obstacks.
662 * src/lex.c (init_lex): Rename as...
665 * src/main.c (main): Use it.
667 2001-09-24 Marc Autret <autret_m@epita.fr>
669 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
670 to output informations in fout (FILE*).
671 (open_graph, close_graph): Likewise.
672 (output_graph, output_edge, output_node): Likewise.
673 * src/vcg.h: Update function prototypes.
674 * src/print_graph.c (print_graph): Open output graph file.
675 (print_actions): Adjust.
676 * src/files.h: Remove extern declaration.
677 * src/files.c: Remove graph_obstack declaration.
678 (open_files): Remove graph_obstack initialization.
679 (output_files): Remove graph_obstack saving.
681 2001-09-24 Marc Autret <autret_m@epita.fr>
683 * src/files.c (compute_output_file_names): Fix.
685 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
687 * src/reader.c (reader): Remove call to free_symtab ().
688 * src/main.c (main): Call it here.
690 * src/conflicts.c (initialize_conflicts): Rename as...
691 (solve_conflicts): this.
692 * src/print.c (print_core, print_actions, print_state)
693 (print_grammar): Dump to a file instead a `output_obstack'.
694 (print_results): Dump `output_obstack', and then proceed with the
696 * src/files.c (compute_output_file_names, close_files): New.
697 (output_files): Adjust.
698 * src/main.c (main): Adjust.
700 2001-09-23 Marc Autret <autret_m@epita.fr>
702 * src/files.c (compute_header_macro): Computes header macro name
703 from spec_defines_file when given.
705 2001-09-23 Marc Autret <autret_m@epita.fr>
707 * src/files.c (output_files): Add default extensions.
709 2001-09-22 Akim Demaille <akim@epita.fr>
711 * src/conflicts.c (finalize_conflicts): Rename as...
712 (free_conflicts): this.
714 2001-09-22 Akim Demaille <akim@epita.fr>
716 * src/gram.c (gram_free): Rename back as...
718 (output_token_translations): Free `token_translations'.
719 * src/symtab.c (free_symtab): Free the tag field.
721 2001-09-22 Akim Demaille <akim@epita.fr>
723 Remove `translations' as it is always set to true.
725 * src/gram.h: Adjust.
726 * src/reader.c (packsymbols, parse_token_decl): Adjust
727 * src/print.c (print_grammar): Adjust.
728 * src/output.c (output_token_translations): Adjust.
729 * src/lex.c (lex): Adjust.
730 * src/gram.c: Be sure the set pointers to NULL.
731 (dummy): Rename as...
734 2001-09-22 Akim Demaille <akim@epita.fr>
736 * configure.in: Invoke AM_LIB_DMALLOC.
737 * src/system.h: Use dmalloc.
738 * src/LR0.c: Be sure to have pointers initialized to NULL.
739 (allocate_itemsets): Allocate kernel_items only if needed.
741 2001-09-22 Akim Demaille <akim@epita.fr>
743 * configure.in: Bump to 1.29b.
744 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
745 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
746 need xmalloc.c in calc.y.
749 2001-09-21 Akim Demaille <akim@epita.fr>
752 * Makefile.maint, config/config.guess, config/config.sub,
753 * config/missing: Update from masters.
754 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
756 * configure.in (ALL_LINGUAS): Add `tr'.
758 2001-09-21 Akim Demaille <akim@epita.fr>
760 * tests/Makefile.am (package.m4): Move to...
761 ($(srcdir)/$(TESTSUITE)): here.
763 2001-09-20 Akim Demaille <akim@epita.fr>
765 * src/complain.c: No longer try to be standalone: use system.h.
766 Don't assume __STDC__ is defined to 1. Just test if it is defined.
767 * src/complain.h: Likewise.
768 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
769 Remove the unused variable `n'.
770 From Albert Chin-A-Young.
772 2001-09-18 Marc Autret <autret_m@epita.fr>
774 * doc/bison.1: Update.
775 * doc/bison.texinfo (Bison Options): Update --defines and --graph
777 (Option Cross Key): Update.
780 2001-09-18 Marc Autret <autret_m@epita.fr>
782 * tests/regression.at: New test (comment in %union).
784 2001-09-18 Marc Autret <autret_m@epita.fr>
786 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
788 Reported by Keith Browne.
790 2001-09-18 Marc Autret <autret_m@epita.fr>
792 * tests/output.at: Add tests for --defines and --graph.
794 2001-09-18 Marc Autret <autret_m@epita.fr>
796 * tests/output.at: Removes tests of %{header,src}_extension features.
798 2001-09-18 Akim Demaille <akim@epita.fr>
800 * tests/Makefile.am (package.m4): New.
801 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
802 (_AT_CHECK_CALC_ERROR): Likewise.
803 Factor the `, ' part of verbose error messages.
805 2001-09-18 Marc Autret <autret_m@epita.fr>
807 * src/getargs.c (longopts): Declare --defines and --graph as options
808 with optional arguments.
809 * src/files.h: Add extern declarations.
810 * src/files.c (spec_graph_file, spec_defines_file): New.
811 (output_files): Update.
812 Remove CPP-outed code.
814 2001-09-18 Marc Autret <autret_m@epita.fr>
816 Turn off %{source,header}_extension feature.
818 * src/files.c (compute_exts_from_gf): Update.
819 (compute_exts_from_src): Update.
820 (output_files): CPP-out useless code.
821 * src/files.h: Remove {header,source}_extension extern declarations.
822 * src/reader.c (parse_dquoted_param): CPP-out.
823 (parse_header_extension_decl): Remove.
824 (parse_source_extension_decl): Remove.
825 (read_declarations): Remove cases tok_{hdrext,srcext}.
826 * src/lex.c (percent_table): Remove {header,source}_extension entries.
827 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
829 2001-09-10 Akim Demaille <akim@epita.fr>
831 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
832 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
833 (AT_CHECK_OUTPUT): this.
834 Merely check ls' exit status, its output is useless.
836 2001-09-10 Akim Demaille <akim@epita.fr>
838 * tests/calc.at: Use m4_match.
839 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
841 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
843 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
845 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
847 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
848 * src/lex.h: Adjust prototype.
849 (token_t): Add `tok_undef'.
850 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
851 (parse_percent_token): Now returns token_t.
852 Add default statement in switch.
853 (lex): Separate `c' as an input variable, from the token_t result
855 (unlexed): Is a token_t.
857 2001-09-10 Akim Demaille <akim@epita.fr>
859 * configure.in: Bump to 1.29a.
861 2001-09-07 Akim Demaille <akim@epita.fr>
865 2001-08-30 Akim Demaille <akim@epita.fr>
867 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
868 * m4/atconfig.m4: Remove.
869 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
871 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
872 m4_if, m4_patsubst, and m4_regexp.
873 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
874 `input' file instead of echo.
876 2001-08-29 Akim Demaille <akim@epita.fr>
880 2001-08-29 Akim Demaille <akim@epita.fr>
884 2001-08-29 Paul Eggert <eggert@twinsun.com>
886 * src/bison.simple (yyparse): Don't take the address of an
887 item before the start of an array, as that doesn't conform to
890 2001-08-29 Robert Anisko <anisko_r@epita.fr>
892 * doc/bison.texinfo (Location Tracking Calc): New node.
894 2001-08-29 Paul Eggert <eggert@twinsun.com>
896 * src/output.c (output): Do not define const, as this now
897 causes more problems than it cures.
899 2001-08-29 Akim Demaille <akim@epita.fr>
901 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
903 Be sure to tag the `detailmenu'.
905 2001-08-29 Akim Demaille <akim@epita.fr>
907 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
908 download in a tmp dir.
910 2001-08-28 Marc Autret <autret_m@epita.fr>
912 * config/depcomp: New file.
914 2001-08-28 Marc Autret <autret_m@epita.fr>
916 * doc/bison.1 (mandoc): Adjust.
917 From Juan Manuel Guerrero.
919 2001-08-28 Marc Autret <autret_m@epita.fr>
921 * src/print_graph.c (print_state): Fix.
923 2001-08-27 Marc Autret <autret_m@epita.fr>
925 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
927 Echo modifications to the functions prototypes.
928 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
930 2001-08-27 Marc Autret <autret_m@epita.fr>
932 * src/vcg.c: Include `xalloc.h'.
933 (add_colorentry): New.
934 (add_classname): New.
936 * src/vcg.h: Add new prototypes.
938 2001-08-27 Akim Demaille <akim@epita.fr>
940 * Makefile.maint: Sync. again with CVS Autoconf.
942 2001-08-27 Akim Demaille <akim@epita.fr>
944 * Makefile.maint: Formatting changes.
945 (po-update, cvs-update, update): New targets.
948 2001-08-27 Akim Demaille <akim@epita.fr>
950 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
951 * Makefile.maint: Sync. with CVS Autoconf.
953 2001-08-27 Marc Autret <autret_m@epita.fr>
955 * src/vcg.h (struct infoname_s): New.
956 (struct colorentry_s): New.
957 (graph_s): New fields {vertical,horizontal}_order in structure.
958 Add `infoname' field.
959 Add `colorentry' field;
960 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
961 (G_HORIZONTAL_ORDER): New.
964 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
965 Add output of `infoname'.
966 Add output of `colorentry'.
968 2001-08-27 Marc Autret <autret_m@epita.fr>
970 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
971 This one shadowed a global parameter.
973 2001-08-24 Marc Autret <autret_m@epita.fr>
975 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
976 instead of `unsigned'.
977 (print_state): Do not call obstack_object_size () in obstack_grow ()
978 to avoid macro variables shadowing.
980 2001-08-23 Marc Autret <autret_m@epita.fr>
982 * src/lex.c (percent_table): Typo: s/naem/name/.
984 Normalize new options declarations.
986 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
988 * tests/suite.at: Exercise %header_extension and %source_extension.
990 2001-08-16 Marc Autret <autret_m@epita.fr>
992 * src/reader.c (parse_dquoted_param): New.
993 (parse_header_extension_decl): Use it.
994 (parse_source_extension_decl): Likewise.
996 2001-08-16 Marc Autret <autret_m@epita.fr>
998 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
999 (get_xxxx_str): Use assert () instead of complain ().
1000 Remove return invokations in default cases.
1001 (get_decision_str): Modify default behaviour. Remove second argument.
1002 Echo modifications on calls.
1003 (output_graph): Fix.
1005 2001-08-16 Marc Autret <autret_m@epita.fr>
1007 * src/getargs.c (usage): Update with ``-g, --graph''.
1009 2001-08-16 Marc Autret <autret_m@epita.fr>
1011 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1012 (Option Cross Key): Likewise.
1013 * doc/bison.1: Update.
1015 2001-08-15 Akim Demaille <akim@epita.fr>
1019 2001-08-15 Marc Autret <autret_m@epita.fr>
1021 * src/reader.c (readgram): Indent output macro YYSTYPE.
1022 (packsymbols): Likewise.
1023 (output_token_defines): Likewise.
1024 * src/files.c: Standardize.
1025 (compute_header_macro): New.
1026 (defines_obstack_save): New. Use compute_header_macro.
1027 (output_files): Update. Use defines_obstack_save.
1029 2001-08-15 Akim Demaille <akim@epita.fr>
1031 * doc/bison.texinfo (Table of Symbols): Document
1034 2001-08-15 Akim Demaille <akim@epita.fr>
1036 * missing: Update from CVS Automake.
1037 * config/config.guess, config/config.sub, config/texinfo.tex:
1038 Update from gnu.org.
1040 2001-08-15 Akim Demaille <akim@epita.fr>
1042 * Makefile.maint: Sync with CVS Autoconf.
1044 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1046 * doc/bison.texinfo: Include GNU Free Documentation License from
1048 * doc/fdl.texi: Add to package.
1050 2001-08-14 Marc Autret <autret_m@epita.fr>
1052 Turn on %{source,header}_extension features.
1054 * src/lex.c (percent_table): Un-CPP out header_extension and
1056 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1057 (compute_exts_from_src): Remove conditions. It restores priorities
1060 2001-08-14 Marc Autret <autret_m@epita.fr>
1062 * src/files.c (compute_base_names): Add extensions computing when
1063 `--file-prefix' used.
1064 Standardize function calls.
1066 2001-08-13 Marc Autret <autret_m@epita.fr>
1068 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1069 defining it (defined but null disables alloca).
1071 2001-08-13 Marc Autret <autret_m@epita.fr>
1073 * src/bison.simple (_yy_memcpy): CPP reformat.
1075 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1077 * tests/atconfig.in (CPPFLAGS): Fix.
1079 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1081 * doc/bison.texinfo: Include GNU General Public License from
1083 * doc/gpl.texi: Add to package.
1085 2001-08-10 Marc Autret <autret_m@epita.fr>
1087 * src/print_graph.h: Fix.
1088 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1090 2001-08-10 Akim Demaille <akim@epita.fr>
1092 * src/system.h: Provide default declarations for stpcpy, strndup,
1095 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1097 * doc/bison.texinfo (Locations): Update @$ stuff.
1099 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1101 * src/bison.simple (YYLLOC_DEFAULT): Update.
1104 2001-08-08 Marc Autret <autret_m@epita.fr>
1106 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1107 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1108 Reported by Fabrice Bauzac.
1110 2001-08-08 Marc Autret <autret_m@epita.fr>
1112 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1113 * src/vcg.c (output_node): Fix.
1114 * src/vcg.h: Cleanup.
1115 * src/print_graph.c: Add comments.
1116 (node_output_size): New global variable. Simplify the formatting of
1117 the VCG graph output.
1118 (print_actions): Unused code is now used. It notifies the final state
1119 and no action states in the VCG graph. It also give the reduce actions.
1120 The `shift and goto' edges are red and the `go to state' edges are
1122 Get the current node name and node_obstack by argument.
1123 (node_obstack): New variable.
1124 (print_state): Manage node_obstack.
1125 (print_core): Use node_obstack given by argument.
1126 A node is not only computed here but in print_actions also.
1127 (print_graph): CPP out useless code instead of commenting it.
1129 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1131 * tests/atconfig.in (CPPFLAGS): Fix.
1133 2001-08-07 Akim Demaille <akim@epita.fr>
1135 * src/print_graph.c (quote): New.
1136 (print_core): Use it.
1138 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1140 * src/vcg.c (complain.h): Include it.
1141 Unepitaize `return' invocations.
1142 [NDEBUG] (main): Remove.
1143 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1144 * src/files.c (open_files): Initialize graph_obstack.
1145 * src/print_graph.c (print_actions): CPP out useless code.
1146 (print_core): Don't output the last `\n' in labels.
1148 * src/files.c (output_files): Output the VCG file.
1149 * src/main.c (main): Invoke print_graph ();
1151 2001-08-06 Marc Autret <autret_m@epita.fr>
1153 Automaton VCG graph output.
1154 Using option ``-g'' or long option ``--graph'', you can generate
1155 a gram_filename.vcg file containing a VCG description of the LALR (1)
1156 automaton of your grammar.
1158 * src/main.c: Call to print_graph() function.
1159 * src/getargs.h: Update.
1160 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1161 (graph_flag): New flag.
1163 (getargs): Add case `g'.
1164 * src/files.c (graph_obstack): New obstack struct.
1165 (open_files): Initialize new obstack.
1166 (output_files): Saves graph_obstack if required.
1167 * src/files.h (graph_obstack): New extern declaration.
1168 * src/Makefile.am: Add new source files.
1170 2001-08-06 Marc Autret <autret_m@epita.fr>
1172 * src/print_graph.c, src/print_graph.h (graph): New.
1173 * src/vcg.h: New file.
1174 * src/vcg.c: New file, VCG graph handling.
1176 2001-08-06 Marc Autret <autret_m@epita.fr>
1178 Add of %source_extension and %header_extension which specify
1179 the source or/and the header output file extension.
1181 * src/files.c (compute_base_names): Remove initialisation of
1182 src_extension and header_extension.
1183 (compute_exts_from_gf): Update.
1184 (compute_exts_from_src): Update.
1185 (output_files): Update.
1186 * src/reader.c (parse_header_extension_decl): New.
1187 (parse_source_extension_decl): New.
1188 (read_declarations): New case statements for the new tokens.
1189 * src/lex.c (percent_table): Add entries for %source_extension
1190 and %header_extension.
1191 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1193 2001-08-06 Marc Autret <autret_m@epita.fr>
1195 * configure.in: Bump to 1.28c.
1196 * doc/bison.texinfo: Texinfo thingies.
1198 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1200 * tests/atconfig.in (CPPFLAGS): Add.
1201 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1203 2001-08-03 Akim Demaille <akim@epita.fr>
1207 2001-08-03 Akim Demaille <akim@epita.fr>
1209 * tests/Makefile.am (check-local): Ship testsuite.
1210 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1213 2001-08-03 Akim Demaille <akim@epita.fr>
1215 * configure.in: Try using -Wformat when compiling.
1217 2001-08-03 Akim Demaille <akim@epita.fr>
1219 * configure.in: Bump to 1.28b.
1221 2001-08-03 Akim Demaille <akim@epita.fr>
1223 * src/complain.c: Adjust strerror_r portability issues.
1225 2001-08-03 Akim Demaille <akim@epita.fr>
1229 2001-08-03 Akim Demaille <akim@epita.fr>
1231 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1232 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1233 * src/getargs.c: Include complain.h.
1234 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1235 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1237 2001-08-03 Akim Demaille <akim@epita.fr>
1239 * src/reader.c (readgram): Display hidden chars in error messages.
1241 2001-08-03 Akim Demaille <akim@epita.fr>
1243 Update to gettext 0.10.39.
1245 2001-08-03 Akim Demaille <akim@epita.fr>
1247 * lib/strspn.c: New.
1249 2001-08-01 Marc Autret <autret_m@epita.fr>
1251 * doc/bison.texinfo: Update.
1252 * doc/bison.1 (mandoc): Update.
1253 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1254 * src/files.c: Support output files extensions computing.
1255 (src_extension): New static variable.
1256 (header_extension): New static variable.
1258 (get_extension_index): New function, gets the index of an extension
1259 filename in a string.
1260 (compute_exts_from_gf): New function, computes extensions from the
1261 grammar file extension.
1262 (compute_exts_from_src): New functions, computes extensions from the
1263 C source file extension, file given by ``-o'' option.
1264 (compute_base_names): Update.
1265 (output_files): Update.
1267 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1269 * doc/bison.texi: Document @$.
1270 (Locations): New section.
1272 2001-07-18 Akim Demaille <akim@epita.fr>
1274 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1275 * config/prev-version.txt, config/move-if-change: New.
1276 * Makefile.am: Adjust.
1278 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1280 * src/bison.simple (yyparse): Suppress warning `comparaison
1281 between signed and unsigned'.
1283 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1285 * src/getargs.h (raw_flag): Remove.
1286 * src/getargs.c: Die on `-r'/`--raw'.
1287 * src/lex.c (parse_percent_token): Die on `%raw'.
1288 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1289 * tests/calc.at: Suppress test with option `--raw'.
1291 2001-07-14 Akim Demaille <akim@epita.fr>
1294 * configure.in: Require Autoconf 2.50.
1295 Update to gettext 0.10.38.
1297 2001-03-16 Akim Demaille <akim@epita.fr>
1299 * doc/bison.texinfo: ANSIfy the examples.
1301 2001-03-16 Akim Demaille <akim@epita.fr>
1303 * getargs.c (skeleton): New variable.
1304 (longopts): --skeleton is a new option.
1305 (shortopts, getargs): -S is a new option.
1306 * getargs.h: Declare skeleton.
1307 * output.c (output_parser): Use it.
1309 2001-03-16 Akim Demaille <akim@epita.fr>
1311 * m4/strerror_r.m4: New.
1312 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1313 * lib/error.h, lib/error.c: Update.
1315 2001-03-16 Akim Demaille <akim@epita.fr>
1317 * src/getargs.c (longopts): Clean up.
1319 2001-02-21 Akim Demaille <akim@epita.fr>
1321 * src/reader.c (gensym): `gensym_count' is your own.
1322 Use a static buf to create the symbol name, as token_buffer is no
1325 2001-02-08 Akim Demaille <akim@epita.fr>
1327 * src/conflicts.c (conflict_report): Be sure not to append to res
1328 between two calls, which could happen if both first sprintf were
1329 skipped, but not the first cp += strlen.
1331 2001-02-08 Akim Demaille <akim@epita.fr>
1333 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1334 New, from fileutils 4.0.37.
1335 * configure.in: Require Autoconf 2.49c. I took some time before
1336 making this decision. This is the only way out for portability
1337 issues in Bison, it would mean way too much duplicate effort to
1338 import in Bison features implemented in 2.49c since 2.13.
1339 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1341 2001-02-02 Akim Demaille <akim@epita.fr>
1343 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1344 * lib/xalloc.h, lib/xmalloc.c: Update.
1346 2001-01-19 Akim Demaille <akim@epita.fr>
1348 Get rid of the ad hoc handling of token_buffer in the scanner: use
1351 * src/lex.c (token_obstack): New.
1352 (init_lex): Initialize it. No longer call...
1353 (grow_token_buffer): this. Remove it.
1354 Adjust all the places which used it to use the obstack.
1356 2001-01-19 Akim Demaille <akim@epita.fr>
1358 * src/lex.h: Rename all the tokens:
1359 s/\bENDFILE\b/tok_eof/g;
1360 s/\bIDENTIFIER\b/tok_identifier/g;
1362 Let them be enums, not #define, to ease debugging.
1363 Adjust all the code.
1365 2001-01-18 Akim Demaille <akim@epita.fr>
1367 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1368 * src/lex.c (maxtoken, grow_token_buffer): Static.
1370 2001-01-18 Akim Demaille <akim@epita.fr>
1372 Since we now use obstacks, more % directives can be enabled.
1374 * src/lex.c (percent_table): Also accept `%yacc',
1375 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1377 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1378 instead of returning a token.
1379 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1380 * src/reader.c (read_declarations): Adjust.
1381 * src/files.c (open_files): Don't call `compute_base_names', don't
1382 compute `attrsfile' since they depend upon data which might be
1383 *in* the input file now.
1384 (output_files): Do it here.
1385 * src/output.c (output_headers): Document the fact that this patch
1386 introduces a guaranteed SEGV for semantic parsers.
1387 * doc/bison.texinfo: Document them.
1388 * tests/suite.at: Exercise these %options.
1390 2000-12-20 Akim Demaille <akim@epita.fr>
1392 Also handle the output file (--verbose) with obstacks.
1394 * files.c (foutput): Remove.
1395 (output_obstack): New.
1396 Adjust all dependencies.
1397 * src/conflicts.c: Return a string.
1398 * src/system.h (obstack_grow_string): Rename as...
1399 (obstack_sgrow): this. Be ready to work with non literals.
1400 (obstack_fgrow4): New.
1402 2000-12-20 Akim Demaille <akim@epita.fr>
1404 * src/files.c (open_files): Fix the computation of short_base_name
1405 in the case of `-o foo.tab.c'.
1407 2000-12-20 Akim Demaille <akim@epita.fr>
1409 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1410 (copy_dollar): Now that everything uses obstacks, get rid of the
1413 2000-12-20 Akim Demaille <akim@epita.fr>
1415 * src/files.c (open_files): Actually the `.output' file is based
1416 on the short_base_name, not base_name.
1417 * tests/suite.at (Checking output file names): Adjust.
1419 2000-12-20 Akim Demaille <akim@epita.fr>
1421 * src/bison.s1: Remove, we now use directly...
1422 * src/bison.simple: this.
1423 * src/Makefile.am: Use pkgdata instead of data.
1425 2000-12-20 Akim Demaille <akim@epita.fr>
1427 * src/files.c (guard_obstack): New.
1428 (open_files): Initialize it.
1429 (output_files): Dump it...
1430 * src/files.h: Export it.
1431 * src/reader.c (copy_guard): Use it.
1433 2000-12-19 Akim Demaille <akim@epita.fr>
1435 * src/files.c (outfile, defsfile, actfile): Removed as global
1437 (open_files): Don't compute them.
1438 (output_files): Adjust.
1439 (base_name, short_base_name): Be global.
1440 Adjust dependencies.
1442 2000-12-19 Akim Demaille <akim@epita.fr>
1444 * src/files.c (strsuffix): New.
1445 (stringappend): Be just like strcat but allocate.
1446 (base_names): Eve out from open_files.
1447 Try to simplify the rather hairy computation of base_name and
1449 (open_files): Use it.
1450 * tests/suite.at (Checking output file names): New test.
1452 2000-12-19 Akim Demaille <akim@epita.fr>
1454 * src/system.h (obstack_grow_literal_string): Rename as...
1455 (obstack_grow_string): this.
1456 * src/output.c (output_parser): Recognize `%% actions' instead of
1458 * src/bison.s1: s/$/%% actions/.
1459 * src/bison.hairy: Likewise.
1461 2000-12-19 Akim Demaille <akim@epita.fr>
1463 * src/output.c (output_parser): Compute the `#line' lines when
1465 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1466 Suggested by Hans Aberg.
1468 2000-12-19 Akim Demaille <akim@epita.fr>
1470 Let the handling of the skeleton files be local to the procedures
1473 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1475 (fparser, open_extra_files): Remove.
1476 (open_files, output_files): Don't take care of fparser.
1477 * src/files.h: Adjust.
1478 * src/output.c (output_parser): Open and close the file to the
1480 * src/reader.c (read_declarations): When %semantic_parser, open
1483 2000-12-19 Akim Demaille <akim@epita.fr>
1485 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1486 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1488 2000-12-19 Akim Demaille <akim@epita.fr>
1490 * src/files.c (open_files): Yipee! We no longer need all the code
1491 looking for `/tmp' since we have no tmp file.
1493 2000-12-19 Akim Demaille <akim@epita.fr>
1495 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1497 * src/files.c (open_files): Less dependency on MSDOS etc.
1499 2000-12-14 Akim Demaille <akim@epita.fr>
1501 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1502 Provide a default definition.
1503 Use it when executing the default @ action.
1504 * src/reader.c (reader_output_yylsp): No longer include
1505 `timestamp' and `text' in the default YYLTYPE.
1507 2000-12-12 Akim Demaille <akim@epita.fr>
1509 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1510 (copy_guard): Quote the file names.
1511 Reported by Laurent Mascherpa.
1513 2000-12-12 Akim Demaille <akim@epita.fr>
1515 * src/output.c (output_headers, output_program, output): Be sure
1516 to escape special characters when outputting filenames.
1517 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1518 (output_headers): Don't depend on them, Use ACTSTR.
1520 2000-11-17 Akim Demaille <akim@epita.fr>
1522 * lib/obstack.h: Formatting changes.
1523 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1524 prevents type checking.
1525 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1526 cast the value to (void *): assigning a `foo *' to a `void *'
1528 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1529 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1532 2000-11-17 Akim Demaille <akim@epita.fr>
1534 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1536 (suite.m4, regression.m4, calc.m4): these.
1537 * tests/atgeneral.m4: Update from CVS Autoconf.
1539 2000-11-17 Akim Demaille <akim@epita.fr>
1541 * tests/regression.m4 (%union and --defines): New test,
1542 demonstrating a current bug in the obstack implementation.
1544 2000-11-17 Akim Demaille <akim@epita.fr>
1546 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1548 Use them to declare the variables which are global or local to
1551 2000-11-17 Akim Demaille <akim@epita.fr>
1553 * acconfig.h: Remove, no longer used.
1555 2000-11-07 Akim Demaille <akim@epita.fr>
1557 * src: s/Copyright (C)/Copyright/g.
1559 2000-11-07 Akim Demaille <akim@epita.fr>
1561 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1563 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1565 2000-11-07 Akim Demaille <akim@epita.fr>
1567 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1568 Merge in a single CPP if/else.
1570 2000-11-07 Akim Demaille <akim@epita.fr>
1572 * src/output.c (output): Remove useless variables.
1573 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1574 argument `data' for consistency with the prototypes.
1576 (obstack_copy, obstack_copy0): Rename the second argument as
1577 `address' for consistency. Qualify it `const'.
1578 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1579 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1580 `const' their input argument (`data' or `address').
1581 Adjust the corresponding macros to include `const' in casts.
1583 2000-11-03 Akim Demaille <akim@epita.fr>
1585 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1586 s/PFILE1/BISON_HAIRY/.
1587 Adjust dependencies.
1589 2000-11-03 Akim Demaille <akim@epita.fr>
1591 For some reason, this was not applied.
1593 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1594 `unlink': it's no longer used.
1596 2000-11-03 Akim Demaille <akim@epita.fr>
1598 * src/files.c (skeleton_find): New function, eved out of...
1599 (open_files, open_extra_files): here.
1601 2000-11-03 Akim Demaille <akim@epita.fr>
1605 * src/files.c (obstack_save): New function.
1606 (done): Rename as...
1607 (output_files): this.
1609 * src/main.c (main): Don't use `atexit' to register `done', since
1610 it no longer has to remove tmp files, just call `output_files'
1611 when there are no errors.
1613 2000-11-02 Akim Demaille <akim@epita.fr>
1615 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1616 `unlink': it's no longer used.
1617 * src/files.h: Formatting changes.
1619 2000-11-02 Akim Demaille <akim@epita.fr>
1621 Remove the last uses of mktemp and unlink/delete.
1623 * src/files.c (fdefines, ftable): Removed.
1624 (defines_ostack, table_obstack): New.
1625 Adjust dependencies of the former into uses of the latter.
1626 * src/output.c (output_short_or_char_table, output_short_table):
1627 Convert to using obstacks.
1628 * src/reader.c (copy_comment2): Accept one FILE * and two
1630 (output_token_defines, reader_output_yylsp): Use obstacks.
1631 * src/system.h (obstack_fgrow3): New.
1633 2000-11-01 Akim Demaille <akim@epita.fr>
1635 Change each use of `fattrs' into a use of `attrs_obstack'.
1637 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1638 * src/files.c (fattrs): Remove.
1639 (attrs_obstack): New.
1640 Adjust all dependencies.
1641 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1643 2000-11-01 Akim Demaille <akim@epita.fr>
1646 Change each use of `faction' into a use of `action_obstack'.
1648 * lib/obstack.h, lib/obstack.c: New files.
1649 * src/files.c (faction): Remove.
1650 (action_obstack): New.
1651 Adjust all dependencies.
1653 2000-10-20 Akim Demaille <akim@epita.fr>
1655 * lib/quote.h (PARAMS): New macro. Use it.
1657 2000-10-16 Akim Demaille <akim@epita.fr>
1659 * src/output.c (output_short_or_char_table): New function.
1660 (output_short_table, output_token_translations): Use it.
1661 (goto_actions): Use output_short_table.
1663 2000-10-16 Akim Demaille <akim@epita.fr>
1665 * src/symtab.c (bucket_new): New function.
1668 * src/output.c (output_short_table): New argument to display the
1669 comment associated with the table.
1670 Adjust dependencies.
1671 (output_gram): Use it.
1672 (output_rule_data): Nicer output layout for YYTNAME.
1674 2000-10-16 Akim Demaille <akim@epita.fr>
1676 * src/lex.c (read_typename): New function.
1678 * src/reader.c (copy_dollar): Likewise.
1680 2000-10-16 Akim Demaille <akim@epita.fr>
1682 * src/reader.c (copy_comment2): Expect the input stream to be on
1683 the `/' which is suspected to open a comment, instead of being
1684 called after `//' or `/*' was read.
1685 (copy_comment, copy_definition, parse_union_decl, copy_action)
1686 (copy_guard): Adjust.
1688 2000-10-16 Akim Demaille <akim@epita.fr>
1690 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1691 `read_signed_integer'.
1693 2000-10-16 Akim Demaille <akim@epita.fr>
1695 * src/reader.c (copy_dollar): New function.
1696 (copy_guard, copy_action): Use it.
1698 2000-10-16 Akim Demaille <akim@epita.fr>
1700 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1701 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1702 New files, from Fileutils 4.0.27.
1703 * src/main.c (printable_version): Remove.
1704 * src/lex.c, src/reader.c: Use `quote'.
1706 2000-10-04 Akim Demaille <akim@epita.fr>
1708 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1710 2000-10-04 Akim Demaille <akim@epita.fr>
1712 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1714 2000-10-04 Akim Demaille <akim@epita.fr>
1716 When a literal string is used to define two different tokens,
1717 `bison -v' segfaults.
1718 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1720 * tests/regression.m4: New file.
1721 Include the core of the sample provided by Piotr Gackiewicz.
1722 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1725 2000-10-04 Akim Demaille <akim@epita.fr>
1727 * src/reader.c (parse_expect_decl): Keep `count' within the size
1731 2000-10-02 Paul Eggert <eggert@twinsun.com>
1733 * bison.s1 (yyparse): Assign the default value
1734 unconditionally, to avoid a GCC warning and make the parser a
1737 2000-10-02 Akim Demaille <akim@epita.fr>
1739 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1742 2000-10-02 Akim Demaille <akim@epita.fr>
1744 * src/derives.c, src/print.c, src/reduce.c: To ease the
1745 translation, move some `\n' out of the translated strings.
1747 2000-10-02 Akim Demaille <akim@epita.fr>
1749 The location tracking mechanism is precious for parse error
1750 messages. Nevertheless, it is enabled only when `@n' is used in
1751 the grammar, which is a different issue (you can use it in error
1752 message, but not in the grammar per se). Therefore, there should
1753 be another means to enable it.
1755 * src/getargs.c (getargs): Support `--locations'.
1757 * src/getargs.h (locationsflag): Export it.
1758 * src/lex.c (percent_table): Support `%locations'.
1759 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1760 with `locationsflag'.
1761 * doc/bison.texinfo: Document `--locations' and `%locations'.
1763 * tests/calc.m4: Test it.
1765 For regularity of the names, replace each
1766 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1767 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1768 In addition replace each `flag' with `_flag'.
1770 2000-10-02 Akim Demaille <akim@epita.fr>
1772 Also test parse error messages, including with YYERROR_VERBOSE.
1774 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1776 Use it to check the computations.
1777 Use it to check `nonassoc' is honored.
1778 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1779 `--yyerror-verbose'.
1780 (_AT_CHECK_CALC): Adjust to this option.
1781 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1783 2000-10-02 Akim Demaille <akim@epita.fr>
1785 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1786 the latter demonstrates a flaw in the handling of non debugging
1787 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1788 was used in order to simplify:
1804 unfortunately this leads to a CPP conflict when
1805 `--name-prefix=foo' is used since it produces `#define yydebug
1808 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1809 (YYDPRINTF): New macro.
1811 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1813 Also test `--verbose', `--defines' and `--name-prefix'.
1815 2000-10-02 Akim Demaille <akim@epita.fr>
1817 Improve the readability of the produced parsers.
1819 * src/bison.s1: Formatting changes.
1820 Improve the comment related to the `$' mark.
1821 (yydefault): Don't fall through to `yyresume': `goto' there.
1822 * src/output.c (output_parser): When the `$' is met, skip the end
1824 New variable, `number_of_dollar_signs', to check there's exactly
1825 one `$' in the parser skeleton.
1827 2000-10-02 Akim Demaille <akim@epita.fr>
1829 * lib/xstrdup.c: New file, from the fileutils.
1830 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1831 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1832 instead of strlen + xmalloc + strcpy.
1833 * src/symtab.c (copys): Remove, use xstrdup instead.
1835 2000-10-02 Akim Demaille <akim@epita.fr>
1837 * src/gram.h (associativity): New enum type which replaces the
1838 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1839 `right_assoc', `left_assoc' and `non_assoc'.
1840 Adjust all dependencies.
1841 * src/reader.c: Formatting changes.
1842 (LTYPESTR): Don't define it, use it as a literal in
1843 `reader_output_yylsp'.
1844 * src/symtab.h (symbol_class): New enum type which replaces the
1845 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1846 `sunknown', `stoken and `snterm'.
1848 2000-10-02 Akim Demaille <akim@epita.fr>
1850 * src/getargs.c (fixed_outfiles): Rename as...
1851 (yaccflag): for consistency and accuracy.
1852 Adjust dependencies.
1854 2000-10-02 Akim Demaille <akim@epita.fr>
1856 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1857 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1858 difficult and introduced a lot of core dump. It turns out that
1859 Bison used an implementation of `xmalloc' based on `calloc', and
1860 at various places it does depend upon the initialization to 0. I
1861 have not tried to isolate the pertinent places, and all the former
1862 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1863 someone should address this issue.
1865 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1866 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1868 Adjust dependencies.
1869 * src/warshall.h: New file.
1872 2000-10-02 Akim Demaille <akim@epita.fr>
1874 Various anti-`extern in *.c' changes.
1876 * src/system.h: Include `assert.h'.
1878 2000-10-02 Akim Demaille <akim@epita.fr>
1880 * src/state.h (nstates, final_state, first_state, first_shift)
1881 (first_reduction): Move their exportation from here...
1882 * src/LR0.h: to here.
1883 Adjust dependencies.
1884 * src/getargs.c (statisticsflag): New variable.
1885 Add support for `--statistics'.
1886 Adjust dependencies.
1888 Remove a lot of now useless `extern' statements in most files.
1890 2000-10-02 Akim Demaille <akim@epita.fr>
1892 * src/LR0.h: New file.
1895 2000-10-02 Akim Demaille <akim@epita.fr>
1897 * src/print.h: New file.
1899 * src/print.c: Formatting and ordering changes.
1900 (verbose, terse): Replace with...
1901 (print_results): this new function.
1902 Adjust dependencies.
1904 2000-10-02 Akim Demaille <akim@epita.fr>
1906 * src/conflicts.c (conflict_report): New function.
1907 (conflict_log, verbose_conflict_log): Replace with...
1908 (print_conflicts): this function.
1909 Adjust dependencies.
1910 * src/conflicts.h: New file.
1911 Propagate its inclusion.
1913 2000-10-02 Akim Demaille <akim@epita.fr>
1915 * src/nullable.h: New file.
1916 Propagate its inclusion.
1917 * src/nullable.c: Formatting changes.
1919 2000-10-02 Akim Demaille <akim@epita.fr>
1921 * src/reduce.h: New file.
1922 Propagate its inclusion.
1923 * src/reduce.c: Topological sort and other formatting changes.
1924 (bool, TRUE, FALSE): Move their definition to...
1925 * src/system.h: here.
1927 2000-10-02 Akim Demaille <akim@epita.fr>
1929 * src/files.c: Formatting changes.
1930 (tryopen, tryclose, openfiles): Rename as...
1931 (xfopen, xfclose, open_files): this.
1932 (stringappend): static.
1933 * src/files.h: Complete the list of exported symbols.
1936 2000-10-02 Akim Demaille <akim@epita.fr>
1938 * src/reader.h: New file.
1939 Propagate its use instead of tedious list of `extern' and
1941 * src/reader.c: Formatting changes, topological sort,
1944 2000-10-02 Akim Demaille <akim@epita.fr>
1946 * src/lex.h: Prototype `lex.c' exported functions.
1947 * src/reader.c: Adjust.
1948 * src/lex.c: Formatting changes.
1949 (safegetc): Rename as...
1952 2000-10-02 Akim Demaille <akim@epita.fr>
1954 * src/lalr.h: New file.
1955 Propagate its inclusion instead of prototypes and `extern'.
1956 * src/lalr.c: Formatting changes, topological sorting etc.
1958 2000-10-02 Akim Demaille <akim@epita.fr>
1960 * src/output.c (token_actions): Introduce a temporary array,
1961 YYDEFACT, that makes it possible for this function to use
1964 2000-10-02 Akim Demaille <akim@epita.fr>
1966 `user_toknums' is output as a `short[]' in `output.c', while it is
1967 defined as a `int[]' in `reader.c'. For consistency with the
1968 other output tables, `user_toknums' is now defined as a table of
1971 * src/reader.c (user_toknums): Be a short table instead of an int
1973 Adjust dependencies.
1975 Factor the short table outputs.
1977 * src/output.c (output_short_table): New function.
1978 * src/output.c (output_gram, output_stos, output_rule_data)
1979 (output_base, output_table, output_check): Use it.
1981 2000-10-02 Akim Demaille <akim@epita.fr>
1983 * src/output.c (output): Topological sort of the functions, in
1984 order to get rid of the `static' prototypes.
1985 No longer use `register'.
1986 * src/output.h: New file.
1987 Propagate its inclusion in files explicitly prototyping functions
1990 2000-09-21 Akim Demaille <akim@epita.fr>
1992 * src/atgeneral.m4: Update from Autoconf.
1994 2000-09-21 Akim Demaille <akim@epita.fr>
1996 * src/closure.h: New file.
1997 * src/closure.c: Formatting changes, topological sort over the
1998 functions, use of closure.h.
1999 (initialize_closure, finalize_closure): Rename as...
2000 (new_closure, free_closure): these. Adjust dependencies.
2001 * src/LR0.c: Formatting changes, topological sort, use of
2003 (initialize_states): Rename as...
2005 * src/Makefile.am (noinst_HEADERS): Adjust.
2007 2000-09-20 Akim Demaille <akim@epita.fr>
2009 * src/acconfig.h: Don't protect config.h against multiple
2011 Don't define PARAMS.
2012 * src/system.h: Define PARAMS.
2013 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2014 purpose of config.h. system.h must not try to fix wrong
2015 definitions in config.h.
2017 2000-09-20 Akim Demaille <akim@epita.fr>
2019 * src/derives.h: New file.
2020 * src/main.c, src/derives.h: Use it.
2022 * src/Makefile.am (noinst_HEADERS): Adjust.
2024 2000-09-20 Akim Demaille <akim@epita.fr>
2026 * tests/atgeneral.m4: Update from Autoconf.
2027 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2028 (AT_CHECK_CALC): New macros.
2029 Use these macros to test bison with options `', `--raw',
2030 `--debug', `--yacc', `--yacc --debug'.
2032 2000-09-19 Akim Demaille <akim@epita.fr>
2034 * src/output.c: Formatting changes.
2035 * src/machine.h: Remove, leaving its contents in...
2036 * src/system.h: here.
2038 Adjust all dependencies on stdio.h and machine.h.
2039 * src/getargs.h: New file.
2040 Let all `extern' declarations about getargs.c be replaced with
2041 inclusion of `getargs.h'.
2042 * src/Makefile.am (noinst_HEADERS): Adjust.
2044 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2046 (yyerror): Returns void, not int.
2047 * doc/bison.texinfo: Formatting changes.
2049 2000-09-19 Akim Demaille <akim@epita.fr>
2051 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2054 2000-09-18 Akim Demaille <akim@epita.fr>
2056 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2057 * src/Makefile.am (INCLUDES): Don't.
2058 Be ready to fetch headers in lib/.
2060 2000-09-18 Akim Demaille <akim@epita.fr>
2062 * doc/bison.texinfo: Update the copyright.
2063 ANSIfy and GNUify the examples.
2064 Remove the old menu.
2066 2000-09-18 Akim Demaille <akim@epita.fr>
2068 First set of tests: use the `calc' example from the documentation.
2070 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2071 is defined only when YYDEBUG is.
2072 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2073 * src/files.c (tryopen, tryclose): Formatting changes.
2074 Move to the top and be static.
2075 * src/reader.c (read_signed_integer): Likewise.
2076 * tests/calc.m4: New file.
2077 * Makefile.am, suite.m4: Adjust.
2078 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2080 2000-09-18 Akim Demaille <akim@epita.fr>
2082 Add support for an Autotest test suite for Bison.
2084 * m4/m4.m4, m4/atconfig.m4: New files.
2085 * m4/Makefile.am (EXTRA_DIST): Adjust.
2086 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2088 * src/getargs.c: Display a more standard --version message.
2089 * src/reader.c (reader): Formatting changes.
2090 No longer depend upon VERSION_STRING.
2091 * configure.in: No longer use `dnl'.
2092 Set up the test suite and the new directory `tests/.
2093 (VERSION_STRING): Remove.
2095 2000-04-14 Akim Demaille <akim@epita.fr>
2097 * src/reader.c (copy_comment2): New function, same as former
2098 `copy_comment', but outputs into two FILE *.
2099 (copy_comment): Use it.
2100 (parse_union_decl): Use it.
2101 (get_type, parse_start_decl): Use the same `invalid' message.
2102 (parse_start_decl, parse_union_decl): Use the same `multiple'
2104 (parse_union_decl, copy_guard, copy_action): Use the same
2105 `unmatched' message.
2106 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2108 2000-03-31 Akim Demaille <akim@epita.fr>
2110 * src/files.c (tryopen, tryclose): Move to the top.
2113 2000-03-31 Akim Demaille <akim@epita.fr>
2115 * src/main.c (main): Don't call `done', exit does it.
2117 2000-03-31 Akim Demaille <akim@epita.fr>
2119 * allocate.c: s/return (foo)/return foo/.
2122 * output.c: Likewise.
2123 * reader.c: Likewise.
2124 * symtab.c: Likewise.
2125 * vmsgetargs.c: Likewise.
2127 2000-03-31 Akim Demaille <akim@epita.fr>
2129 Clean up the error reporting functions.
2131 * src/report.c: New file.
2132 * src/report.h: Likewise.
2133 * src/Makefile.am: Adjust.
2134 * m4/error.m4: New file.
2135 * m4/Makefile.am: Adjust.
2136 * configure.in (jm_PREREQ_ERROR): Call it.
2137 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2139 (fatal, fatals): Remove. All callers use complain.c::fatal.
2140 (warn, warni, warns, warnss, warnss): Remove. All callers use
2141 complain.c::complain.
2142 (toomany): Remove, use fatal instead.
2143 * src/files.c (done): No argument, use complain_message_count.
2144 * src/main.c (main): Register `done' to `atexit'.
2146 * src/getargs.c (usage): More `fputs', less `fprintf'.
2148 2000-03-28 Akim Demaille <akim@epita.fr>
2150 * lib/: New directory.
2151 * Makefile.am (SUBDIRS): Adjust.
2152 * configure.in: Adjust.
2153 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2155 * src/alloca.c: Moved to lib/.
2156 * src/getopt.c: Likewise.
2157 * src/getopt1.c: Likewise.
2158 * src/getopt.h: Likewise.
2159 * src/ansi2knr.c: Likewise.
2160 * src/ansi2knr.1: Likewise.
2161 * src/Makefile.am: Adjust.
2162 * lib/Makefile.am: New file.
2164 2000-03-28 Akim Demaille <akim@epita.fr>
2166 * src/getargs.c (usage): Refresh the help message.
2168 2000-03-17 Akim Demaille <akim@epita.fr>
2170 * src/getopt1.c: Updated from textutils 2.0e
2171 * src/getopt.c: Likewise.
2172 * src/getopt.h: Likewise.
2174 2000-03-17 Akim Demaille <akim@epita.fr>
2176 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2177 the file name, not the whole `#line LINE FILE'.
2179 2000-03-17 Akim Demaille <akim@epita.fr>
2181 On syntax errors, report the token on which we choked.
2183 * src/bison.s1 (yyparse): In the label yyerrlab, when
2184 YYERROR_VERBOSE, add yychar in msg.
2186 2000-03-17 Akim Demaille <akim@epita.fr>
2188 * src/reader.c (copy_at): New function.
2189 (copy_guard): Use it.
2190 (copy_action): Use it.
2192 2000-03-17 Akim Demaille <akim@epita.fr>
2194 Be kind to translators, save some useless translations.
2196 * src/main.c (banner): New function.
2197 (fatal_banner): Use it.
2198 (warn_banner): Use it.
2200 2000-03-17 Akim Demaille <akim@epita.fr>
2202 * src/reader.c (copy_definition): Use copy_string and
2203 copy_comment. Removed now unused `match', `ended',
2205 (copy_comment, copy_string): Moved, to be visible from
2208 2000-03-17 Akim Demaille <akim@epita.fr>
2210 * src/reader.c (copy_string): Declare `static inline'. No
2211 problems with inline, since it is checked by configure.
2212 (copy_comment): Likewise.
2214 2000-03-17 Akim Demaille <akim@epita.fr>
2216 * src/reader.c (packsymbols): Formatting changes.
2218 2000-03-17 Akim Demaille <akim@epita.fr>
2220 * src/reader.c (copy_comment): New function, factored out from:
2221 (copy_action): Use it. Removed now unused `match', `ended',
2223 (copy_guard): Likewise.
2225 2000-03-17 Akim Demaille <akim@epita.fr>
2227 * src/reader.c (copy_string): New function, factored out from:
2228 (copy_action): Use it.
2229 (copy_guard): Likewise.
2231 2000-03-17 Akim Demaille <akim@epita.fr>
2233 Change the handling of @s so that they behave exactly like $s.
2234 There is now a pseudo variable @$ (readble and writable), location
2235 of the lhs of the rule (by default ranging from the location of
2236 the first symbol of the rhs, to the location of the last symbol,
2237 or, if the rhs is empty, YYLLOC).
2239 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2241 (yyparse): When providing a default semantic action, provide a
2242 default location action.
2243 (after the $): No longer change `*YYLSP', just stack YYLOC the
2244 same way you stack YYVAL.
2245 * src/reader.c (read_declarations): Use warns.
2246 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2247 (copy_action, case '@'): Likewise.
2248 Use a standard error message, to save useless work from
2251 2000-03-17 Akim Demaille <akim@epita.fr>
2253 * src/bison.s1: Formatting and cosmetics changes.
2254 * src/reader.c: Likewise.
2255 Update the Copyright notice.
2257 2000-03-17 Akim Demaille <akim@epita.fr>
2259 * src/bison.s1 (#line): All set to `#line' only, since the
2260 Makefile now handles them.
2262 2000-03-16 Akim Demaille <akim@epita.fr>
2264 * src/output.c (output_rule_data): Output the documentation of
2266 (Copyright notice): Update.
2269 2000-03-16 Akim Demaille <akim@epita.fr>
2271 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2272 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2273 One `#if YYDEBUG' remains, since it uses variables which are
2274 defined only if `YYDEBUG != 0'.
2276 2000-03-16 Akim Demaille <akim@epita.fr>
2278 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2279 and related variables so that the similarities are highlighted.
2281 2000-03-16 Akim Demaille <akim@epita.fr>
2283 * src/bison.s1: Properly indent CPP directives.
2285 2000-03-16 Akim Demaille <akim@epita.fr>
2287 * src/bison.s1: Properly indent the `alloca' CPP section.
2289 2000-03-16 Akim Demaille <akim@epita.fr>
2291 Do not hard code values of directories in `configure.in'.
2292 Update the `configure' tool chain.
2294 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2296 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2297 (AC_OUTPUT): Add m4/Makefile.
2298 Bump to bison 1.28a, 1.29 has never been released.
2299 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2300 handled via src/Makefile.am.
2301 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2302 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2304 * Makefile.am (SUBDIRS): Add m4.
2305 (ACLOCAL_AM_FLAGS): New variable.
2306 (AUTOMAKE_OPTIONS): Add check-news.
2307 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2308 the proper line number and file name.
2309 (DEFS): Propagate the location of bison library files and of the
2311 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2313 * acinclude.m4: Remove, replaced by the directory m4.
2314 * m4/Makefile.am (EXTRA_DIST): New variable.
2315 * m4/gettext.m4: New file, from the fileutils.
2316 * m4/lcmessage.m4: Likewise
2317 * m4/progtest.m4: Likewise.
2318 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2320 2000-03-10 Akim Demaille <akim@epita.fr>
2323 Formatting changes of various comments.
2324 Respect the GNU coding standards at various places.
2325 Don't use `_()' when no translation is needed.
2327 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2330 OS/2 honors TMPDIR environment variable.
2332 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2334 * doc/bison.texinfo: Tweaked spelling and grammar.
2336 Removed reference to price of printed copy.
2337 Mention BISON_SIMPLE and BISON_HAIRY.
2339 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2341 * configure.in, NEWS:
2342 Bison 1.29 released.
2344 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2346 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2347 Added reference card.
2349 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2351 * po/ru.po: Added Russian translation.
2353 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2355 * configure.in: Added Russian translation.
2357 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2359 * configure.in, NEWS, README:
2360 Released version 1.28.
2362 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2365 Squashed redefinition warning on some systems.
2367 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2368 Have configure build version string instead of relying on ANSI string
2371 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2373 * po/POTFILES.in: Got rid of version.c.
2375 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2377 * acconfig.h, configure.in:
2378 Have configure build version string instead of relying on ANSI string
2381 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2384 Dropped mention of `+' for long-named options.
2386 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2388 * src/files.c: Added <unistd.h> for unlink().
2390 * src/Makefile.am, src/system.h:
2393 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2395 * README: Added a FAQ list.
2397 * configure.in, acconfig.h:
2400 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2402 * doc/FAQ, doc/Makefile.am:
2405 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2407 * src/alloc.h, src/symtab.h, src/version.c:
2408 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2410 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2412 * src/.cvsignore, src/Makefile.am:
2413 Reorganized: sources in `src', documentation in `doc'.
2415 * src/lex.c (literalchar):
2416 fixed the code for escaping double quotes (thanks
2419 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2421 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2422 Adjusted paths to reflect directory reorganization.
2424 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2426 * doc/.cvsignore, doc/Makefile.am:
2427 Reorganized: sources in `src', documentation in `doc'.
2429 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2432 Updated AC_INIT file to reflect directory reorganization.
2434 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2435 Reorganized: sources in `src', documentation in `doc'.
2437 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2440 Don't declare calloc() and realloc() if not necessary.
2442 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2444 * configure.in, acconfig.h, acinclude.m4:
2445 Don't declare calloc() and realloc() if not necessary.
2447 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2449 * po/.cvsignore: Added i18n support.
2451 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2453 * acconfig.h, configure.in, Makefile.am:
2456 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2458 * src/bison.s1: Fixed #line numbers.
2460 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2462 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2463 Added PO files from Translation Project.
2465 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2468 Added support for non-ANSI compilers (ansi2knr).
2470 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2472 * configure.in: Bumped version number to 1.27.
2475 Added `bison.simple' to list of files removed by `make distclean'.
2477 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2479 * src/files.c, src/files.h:
2480 Defined locations of parser files in config.h instead of Makefile.
2482 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2484 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2485 Defined locations of parser files in config.h instead of Makefile.
2487 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2490 Removed inappropriate use of $< macro.
2492 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2494 * po/Makefile.in.in, po/POTFILES.in:
2495 Add `po' directory skeleton.
2497 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2499 * README: Document help-bison list.
2501 * configure.in: Add check for mkstemp().
2503 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2505 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2506 Hush a few compiler warnings.
2509 Add tryclose(), which verifies that fclose was successful.
2510 Hush a couple of compiler warnings.
2512 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2514 * Makefile.am, OChangeLog:
2515 ChangeLog is now automatically generated. Include the old version as
2518 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2520 * 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:
2523 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2525 * doc/bison.texinfo: Fix formatting glitch.
2527 * doc/bison.texinfo: Update FSF address.
2529 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2531 * acconfig.h: Update FSF address.
2533 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2536 Don't define PACKAGE here, since config.h defines it.
2538 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2540 * src/reader.c: Update copyright date.
2543 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2544 favor of output directly to stderr (avoids buffer overruns).
2546 * src/reader.c: Some checks for premature EOF.
2548 * 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:
2549 Use prototypes if the compiler understands them.
2551 * src/files.c: Honor TMPDIR on Unix hosts.
2552 Use prototypes if the compiler understands them.
2555 Fix a couple of buffer overrun bugs.
2556 Use prototypes if the compiler understands them.
2558 * src/system.h: Include unistd.h and ctype.h.
2559 Use #ifdef instead of #if for NLS symbols.
2561 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2563 * doc/bison.texinfo:
2564 Delete comment "consider using @set for edition number, etc..." since
2565 we now are doing so.
2567 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2570 Use prototypes if the compiler understands them.
2572 * NEWS: Document 1.26 highlights.
2574 * Makefile.am: Require Automake 1.3 or later.
2577 Use prototypes if the compiler understands them.
2579 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2582 Use VERSION symbol from automake for version number.
2584 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2586 * acconfig.h, configure.in, version.cin:
2587 Use VERSION symbol from automake for version number.
2589 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2592 Distribute original version of simple parser (bison.s1), not built
2593 version (bison.simple).
2595 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2597 * doc/bison.texinfo: Add info dir entry.
2599 * doc/bison.texinfo:
2600 Let automake put version number into documentation.
2602 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2604 * src/bison.cld, src/build.com, src/vmshlp.mar:
2605 Add non-RCS files from /gd/gnu/bison.
2607 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2610 Document the BISON_HAIRY and BISON_SIMPLE variables.
2612 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2614 * src/version.c: Build version.c automatically.
2617 Fix token numbering (used to start at 258, not 257).
2619 * src/system.h: Include config.h.
2621 * src/getargs.c: Update bug report address.
2623 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2624 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2626 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2629 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2631 * configure.in, version.cin:
2632 Build version.c automatically.
2634 * AUTHORS: Add AUTHORS file.
2636 * README: Update bug report address.
2639 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2641 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2644 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2646 * doc/bison.texinfo: Clean up some formatting.
2648 1998-05-05 Richard Stallman <rms@gnu.org>
2650 * doc/bison.texinfo:
2651 Explain better why to make a pure parser.
2653 1998-01-05 Richard Stallman <rms@gnu.org>
2655 * src/files.c (openfiles):
2656 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2657 find a temporary directory, if possible. Do not unlink files while
2660 1997-08-25 Richard Stallman <rms@gnu.org>
2662 * src/reader.c (stack_offset;):
2663 Change some warni to warns.
2665 * src/lex.c (literalchar): Use warns, not warni.
2667 1997-06-28 Richard Stallman <rms@gnu.org>
2669 * src/bison.s1: Add a Bison version comment.
2671 * src/main.c (fatal, warn, berror):
2674 1997-06-28 Richard Stallman <rms@gnu.org>
2676 * Makefile.in (bison_version): New variable.
2677 (dist): Use that variable.
2678 (bison.s1): Substitute the Bison version into bison.simple.
2680 * bison.simple: Add a Bison version comment.
2682 1997-06-18 Richard Stallman <rms@gnu.org>
2684 * src/main.c (fatal, warn, berror):
2685 Make error messages standard.
2686 (toomany): Improve error message text.
2688 * 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:
2689 new.h renamed to alloc.h.
2691 1997-06-18 Richard Stallman <rms@gnu.org>
2693 * Makefile.in: new.h renamed to alloc.h.
2695 1997-05-24 Richard Stallman <rms@gnu.org>
2697 * src/lex.c (literalchar):
2698 Fix the code for escaping \, " and '.
2700 (lex): Avoid trouble when there are many chars
2701 to discard in a char literal with just several chars in it.
2703 1997-05-17 Richard Stallman <rms@gnu.org>
2706 Use malloc, if using alloca is troublesome.
2707 (YYSTACK_USE_ALLOCA): New flag macro.
2708 Define it for some systems and compilers.
2709 (YYSTACK_ALLOC): New macro.
2710 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2711 If it was malloc'd, free it.
2713 1997-05-17 Richard Stallman <rms@gnu.org>
2716 Use malloc, if using alloca is troublesome.
2717 (YYSTACK_USE_ALLOCA): New flag macro.
2718 Define it for some systems and compilers.
2719 (YYSTACK_ALLOC): New macro.
2720 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2721 If it was malloc'd, free it.
2723 1997-04-23 Richard Stallman <rms@gnu.org>
2726 (alloca) [__hpux]: Always define as __builtin_alloca.
2728 1997-04-23 Richard Stallman <rms@gnu.org>
2731 (alloca) [__hpux]: Always define as __builtin_alloca.
2733 1997-04-22 Richard Stallman <rms@gnu.org>
2736 [__hpux]: Include alloca.h (right for HPUX 10)
2737 instead of declaring alloca (right for HPUX 9).
2739 * src/bison.s1 (__yy_memcpy):
2740 Declare arg `count' as unsigned int.
2741 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2743 1997-04-22 Richard Stallman <rms@gnu.org>
2746 [__hpux]: Include alloca.h (right for HPUX 10)
2747 instead of declaring alloca (right for HPUX 9).
2749 * bison.simple (__yy_memcpy):
2750 Declare arg `count' as unsigned int.
2751 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2753 1997-01-03 Richard Stallman <rms@gnu.org>
2755 * src/allocate.c: [__STDC__ or _MSC_VER]:
2756 Declare calloc and realloc to return void *.
2758 1997-01-02 Richard Stallman <rms@gnu.org>
2761 [_MSC_VER]: Include stdlib.h and process.h.
2762 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2764 * src/main.c (main): Return FAILURE as a value.
2765 (printable_version): Declare arg as int, not char.
2767 1997-01-02 Richard Stallman <rms@gnu.org>
2769 * Makefile.in (dist):
2770 Explicitly check for symlinks, and copy them.
2772 1996-12-19 Richard Stallman <rms@gnu.org>
2775 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2777 1996-12-18 Paul Eggert <eggert@gnu.org>
2779 * src/bison.s1 (yyparse):
2780 If __GNUC__ and YYPARSE_PARAM are both defined,
2781 declare yyparse to have a void * argument.
2783 1996-12-18 Paul Eggert <eggert@gnu.org>
2785 * bison.simple (yyparse):
2786 If __GNUC__ and YYPARSE_PARAM are both defined,
2787 declare yyparse to have a void * argument.
2789 1996-12-17 Richard Stallman <rms@gnu.org>
2791 * src/reduce.c (nbits): Add some casts.
2793 1996-08-12 Richard Stallman <rms@gnu.org>
2795 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2797 1996-08-12 Richard Stallman <rms@gnu.org>
2799 * bison.simple: Test _MSDOS as well as _MSDOS_.
2801 1996-07-31 Richard Stallman <rms@gnu.org>
2804 [__sun && __i386]: Include alloca.h.
2806 1996-07-31 Richard Stallman <rms@gnu.org>
2809 [__sun && __i386]: Include alloca.h.
2811 1996-07-30 Richard Stallman <rms@gnu.org>
2813 * src/bison.s1: Comment change.
2815 * src/bison.s1: Test _MSDOS_, not MSDOS.
2817 1996-07-30 Richard Stallman <rms@gnu.org>
2819 * bison.simple: Comment change.
2821 * bison.simple: Test _MSDOS_, not MSDOS.
2823 1996-06-01 Richard Stallman <rms@gnu.org>
2825 * 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:
2826 Insert `_' macro around many string constants.
2829 Insert `_' macro around many string constants.
2831 (main): Call setlocale, bindtextdomain and textdomain.
2833 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2834 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2835 [ENABLE_NLS]: Include libintl.h.
2836 [ENABLE_NLS] (gettext): Define.
2837 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2838 (N_, PACKAGE, LOCALEDIR): New macros.
2840 1996-06-01 Richard Stallman <rms@gnu.org>
2842 * POTFILES.in: New file.
2844 * Makefile.in (allocate.o):
2845 Define target explicitly.
2847 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2848 (LDFLAGS): Set to @LDFLAGS@.
2849 (configure): Run autoconf only if preceding `cd' succeeds.
2850 (bison.s1): Redirect output to temporary file then move the
2851 temporary to the target, rather than redirecting directly to bison.s1.
2852 (clean): Remove config.status and config.log.
2853 (distclean): Don't remove config.status here.
2855 1996-05-12 Richard Stallman <rms@gnu.org>
2858 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2860 1996-05-12 Richard Stallman <rms@gnu.org>
2863 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2865 1996-05-11 Richard Stallman <rms@gnu.org>
2867 * src/bison.s1 (__yy_memcpy):
2868 Really reorder the args, as was supposedly done on Feb 14 1995.
2869 (yyparse): Calls changed accordingly.
2871 1996-05-11 Richard Stallman <rms@gnu.org>
2873 * Makefile.in (dist): Don't use $(srcdir).
2875 * bison.simple (__yy_memcpy):
2876 Really reorder the args, as was supposedly done on Feb 14 1995.
2877 (yyparse): Calls changed accordingly.
2879 1996-01-27 Richard Stallman <rms@gnu.org>
2881 * src/output.c (output_rule_data):
2882 Test YYERROR_VERBOSE in the conditional
2883 around the definition of ttyname.
2885 1995-12-29 Richard Stallman <rms@gnu.org>
2888 Fix line numbers in #line commands.
2890 1995-12-29 Richard Stallman <rms@gnu.org>
2893 Fix line numbers in #line commands.
2895 1995-12-27 Richard Stallman <rms@gnu.org>
2897 * src/bison.s1 (YYPARSE_PARAM_DECL):
2898 In C++, make it always null.
2899 (YYPARSE_PARAM_ARG): New macro.
2900 (yyparse): Use YYPARSE_PARAM_ARG.
2902 1995-12-27 Richard Stallman <rms@gnu.org>
2904 * bison.simple (YYPARSE_PARAM_DECL):
2905 In C++, make it always null.
2906 (YYPARSE_PARAM_ARG): New macro.
2907 (yyparse): Use YYPARSE_PARAM_ARG.
2909 1995-11-29 Richard Stallman <rms@gnu.org>
2911 * doc/bison.texinfo:
2912 Describe literal string tokens, %raw, %no_lines, %token_table.
2914 1995-11-29 Daniel Hagerty <hag@gnu.org>
2916 * doc/bison.texinfo: Fixed update date
2918 1995-10-16 Richard Stallman <rms@gnu.org>
2920 * src/version.c: Version 1.25.
2922 1995-10-16 Richard Stallman <rms@gnu.org>
2924 * NEWS: *** empty log message ***
2926 1995-10-16 Richard Stallman <rms@gnu.org>
2928 * doc/bison.1, doc/bison.rnh:
2931 1995-10-15 Richard Stallman <rms@gnu.org>
2933 * src/vmsgetargs.c, src/getargs.c:
2934 Added -n, -k, and -raw switches.
2935 (noparserflag, toknumflag, rawtoknumflag): New variables.
2937 * src/symtab.h (SALIAS):
2938 New #define for adding aliases to %token.
2939 (struct bucket): Added `alias' field.
2941 * src/reduce.c (reduce_grammar):
2942 Revise error message.
2943 (print_notices): Remove final `.' from error message.
2945 * src/reader.c (reader_output_yylsp):
2947 (readgram): Use `#if 0' around code that accepted %command
2948 inside grammar rules: The documentation doesn't allow it,
2949 and it will fail since the %command processors scan for the next %.
2950 (parse_token_decl): Extended the %token
2951 declaration to allow a multi-character symbol as an alias.
2952 (parse_thong_decl): New function.
2953 (read_declarations): Added %thong declarations.
2954 (read_declarations): Handle NOOP to deal with allowing
2955 % declarations as another means to specify the flags.
2956 (readgram): Allow %prec prior to semantics embedded in a rule.
2957 (skip_to_char, read_declarations, copy_definition)
2958 (parse_token_decl, parse_start_decl, parse_type_decl)
2959 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2960 (get_type_name, copy_guard, copy_action, readgram)
2961 (get_type, packsymbols): Revised most error messages.
2962 Changed `fatal' to `warnxxx' to avoid aborting for error.
2963 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2964 (read_declarations): Improve the error message for
2965 an invalid character. Do not abort.
2966 (read_declarations, copy_guard, copy_action): Use
2967 printable_version to avoid unprintable characters in printed output.
2968 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2969 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2970 Allow the type of a non-terminal can be given
2971 more than once, as long as all specifications give the same type.
2974 (output_headers, output_trailers, output, output_gram)
2975 (output_rule_data): Implement noparserflag variable.
2976 Implement toknumflag variable.
2977 (output): Call reader_output_yylsp to output LTYPESTR.
2979 * src/main.c (main):
2980 If reader sees an error, don't process the grammar.
2981 (fatals): Updated to not use VARARGS1.
2982 (printable_version, int_to_string, warn, warni, warns, warnss)
2983 (warnsss): New error reporting functions. Avoid abort for error.
2986 Added THONG and NOOP for alias processing.
2987 Added SETOPT for the new code that allows setting options with %flags.
2990 Include getopt.h. Add some extern decls.
2991 (safegetc): New function to deal with EOF gracefully.
2992 (literalchar); new function to deal with reading \ escapes.
2993 (lex): Use literalchar.
2994 (lex): Implemented "..." tokens.
2995 (literalchar, lex, parse_percent_token): Made tokenbuffer
2996 always contain the token. This includes growing the token
2997 buffer while reading an integer.
2998 (parse_percent_token): Replaced if-else statement with percent_table.
2999 (parse_percent_token): Added % declarations as another
3000 way to specify the flags -n, -l, and -r. Also added hooks for
3001 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3002 major changes to files.c.
3003 (lex) Retain in the incoming stream a character following
3005 (skip_white_space, lex): Revised most error messages
3006 and changed fatal to warn to avoid aborting.
3007 (percent_table): Added %thong declarations.
3009 * src/gram.h: Comment changes.
3011 * src/files.c (openfiles, open_extra_files, done):
3013 and actfile file. Handle noparserflag. Both for -n switch.
3015 * src/conflicts.c (resolve_sr_conflict):
3016 Remove use of alloca.
3018 1995-06-01 Jim Meyering <meyering@gnu.org>
3020 * doc/bison.texinfo: *** empty log message ***
3022 1995-05-06 Richard Stallman <rms@gnu.org>
3024 * src/bison.s1: Comment change.
3026 1995-05-06 Richard Stallman <rms@gnu.org>
3028 * bison.simple: Comment change.
3030 1995-05-03 Richard Stallman <rms@gnu.org>
3032 * src/version.c: Version now 1.24.
3034 * src/bison.s1: Change distribution terms.
3036 * src/version.c: Version now 1.23.
3038 1995-05-03 Richard Stallman <rms@gnu.org>
3040 * doc/bison.texinfo:
3041 Rewrite "Conditions for Using Bison".
3042 Update version to 1.24.
3044 1995-05-03 Richard Stallman <rms@gnu.org>
3046 * bison.simple: Change distribution terms.
3048 1995-02-23 Richard Stallman <rms@gnu.org>
3050 * src/files.c: Test __VMS_POSIX as well as VMS.
3052 1995-02-14 Jim Meyering <meyering@gnu.org>
3054 * src/bison.s1 (__yy_memcpy):
3055 Renamed from __yy_bcopy to avoid
3056 confusion. Reverse FROM and TO arguments to be consistent with
3059 1995-02-14 Jim Meyering <meyering@gnu.org>
3061 * bison.simple (__yy_memcpy):
3062 Renamed from __yy_bcopy to avoid
3063 confusion. Reverse FROM and TO arguments to be consistent with
3066 1994-11-10 David J. MacKenzie <djm@gnu.org>
3072 * Makefile.in (DISTFILES): Include NEWS.
3074 * Makefile.in (DISTFILES):
3075 Include install-sh, not install.sh.
3077 * configure.in: Update to Autoconf v2 macro names.
3079 1994-10-05 David J. MacKenzie <djm@gnu.org>
3081 * Makefile.in: fix typo
3083 * Makefile.in (prefix, exec_prefix):
3084 Let configure set them.
3086 1994-09-28 David J. MacKenzie <djm@gnu.org>
3088 * Makefile.in: Set datadir to $(prefix)/share.
3090 1994-09-15 Richard Stallman <rms@gnu.org>
3093 Update copyright notice and GPL version.
3095 1994-09-15 Richard Stallman <rms@gnu.org>
3098 Update copyright notice and GPL version.
3100 1994-07-12 Richard Stallman <rms@gnu.org>
3102 * src/reduce.c, src/reader.c:
3105 1994-05-05 David J. MacKenzie <djm@gnu.org>
3107 * Makefile.in: entered into RCS
3109 1994-03-26 Richard Stallman <rms@gnu.org>
3111 * src/bison.s1: entered into RCS
3113 1994-03-26 Richard Stallman <rms@gnu.org>
3115 * bison.simple: entered into RCS
3117 1994-03-25 Richard Stallman <rms@gnu.org>
3119 * src/main.c: entered into RCS
3121 1994-03-24 Richard Stallman <rms@gnu.org>
3123 * src/conflicts.c: entered into RCS
3125 1994-01-02 Richard Stallman <rms@gnu.org>
3127 * Makefile.in: *** empty log message ***
3129 1993-11-21 Richard Stallman <rms@gnu.org>
3131 * src/bison.s1: *** empty log message ***
3133 1993-11-21 Richard Stallman <rms@gnu.org>
3135 * doc/bison.texinfo: entered into RCS
3137 * doc/bison.texinfo: *** empty log message ***
3139 1993-11-21 Richard Stallman <rms@gnu.org>
3141 * bison.simple: *** empty log message ***
3143 1993-10-25 David J. MacKenzie <djm@gnu.org>
3145 * doc/bison.texinfo: *** empty log message ***
3147 1993-10-19 Richard Stallman <rms@gnu.org>
3149 * src/bison.s1: *** empty log message ***
3151 1993-10-19 Richard Stallman <rms@gnu.org>
3153 * bison.simple: *** empty log message ***
3155 1993-10-14 Richard Stallman <rms@gnu.org>
3157 * src/bison.s1: *** empty log message ***
3159 1993-10-14 Richard Stallman <rms@gnu.org>
3161 * bison.simple: *** empty log message ***
3163 1993-09-14 David J. MacKenzie <djm@gnu.org>
3165 * doc/bison.texinfo: *** empty log message ***
3167 1993-09-13 Noah Friedman <friedman@gnu.org>
3169 * Makefile.in: *** empty log message ***
3171 1993-09-10 Richard Stallman <rms@gnu.org>
3173 * src/conflicts.c: *** empty log message ***
3175 * src/system.h: entered into RCS
3177 1993-09-10 Richard Stallman <rms@gnu.org>
3179 * doc/bison.1: entered into RCS
3181 1993-09-06 Noah Friedman <friedman@gnu.org>
3183 * src/version.c: entered into RCS
3185 1993-09-06 Noah Friedman <friedman@gnu.org>
3187 * Makefile.in: *** empty log message ***
3189 1993-07-30 David J. MacKenzie <djm@gnu.org>
3191 * Makefile.in: *** empty log message ***
3193 1993-07-24 Richard Stallman <rms@gnu.org>
3195 * src/bison.s1: *** empty log message ***
3197 1993-07-24 Richard Stallman <rms@gnu.org>
3199 * bison.simple: *** empty log message ***
3201 1993-07-08 David J. MacKenzie <djm@gnu.org>
3203 * Makefile.in: *** empty log message ***
3205 1993-07-04 Richard Stallman <rms@gnu.org>
3207 * src/bison.s1: *** empty log message ***
3209 1993-07-04 Richard Stallman <rms@gnu.org>
3211 * bison.simple: *** empty log message ***
3213 1993-06-26 David J. MacKenzie <djm@gnu.org>
3215 * src/getargs.c: entered into RCS
3217 1993-06-26 David J. MacKenzie <djm@gnu.org>
3219 * doc/bison.texinfo: *** empty log message ***
3221 * doc/bison.1: New file.
3223 1993-06-25 Richard Stallman <rms@gnu.org>
3225 * src/getargs.c: New file.
3227 1993-06-16 Richard Stallman <rms@gnu.org>
3229 * src/bison.s1: *** empty log message ***
3231 1993-06-16 Richard Stallman <rms@gnu.org>
3233 * bison.simple: *** empty log message ***
3235 1993-06-03 Richard Stallman <rms@gnu.org>
3237 * src/bison.s1: New file.
3239 1993-06-03 Richard Stallman <rms@gnu.org>
3241 * doc/bison.texinfo: *** empty log message ***
3243 1993-06-03 Richard Stallman <rms@gnu.org>
3245 * bison.simple: New file.
3247 1993-05-19 Richard Stallman <rms@gnu.org>
3249 * doc/bison.texinfo: New file.
3251 1993-05-07 Noah Friedman <friedman@gnu.org>
3253 * Makefile.in: *** empty log message ***
3255 1993-04-28 Noah Friedman <friedman@gnu.org>
3257 * src/reader.c: *** empty log message ***
3259 1993-04-23 Noah Friedman <friedman@gnu.org>
3261 * src/alloc.h: entered into RCS
3263 1993-04-20 David J. MacKenzie <djm@gnu.org>
3265 * src/version.c: *** empty log message ***
3267 * src/files.c, src/allocate.c:
3270 * src/reader.c: *** empty log message ***
3272 * src/lex.c: entered into RCS
3274 * src/conflicts.c: New file.
3276 * src/symtab.c: entered into RCS
3278 * src/alloc.h: New file.
3280 * src/LR0.c: entered into RCS
3282 1993-04-18 Noah Friedman <friedman@gnu.org>
3284 * src/reader.c: New file.
3286 * src/version.c: *** empty log message ***
3288 1993-04-18 Noah Friedman <friedman@gnu.org>
3290 * Makefile.in: *** empty log message ***
3292 1993-04-17 Noah Friedman <friedman@gnu.org>
3294 * Makefile.in: *** empty log message ***
3296 1993-04-15 Richard Stallman <rms@gnu.org>
3298 * src/main.c, src/files.c:
3301 1993-04-15 Noah Friedman <friedman@gnu.org>
3303 * configure.in: entered into RCS
3305 * configure.in: *** empty log message ***
3307 * configure.in: New file.
3309 1993-04-14 Richard Stallman <rms@gnu.org>
3311 * Makefile.in: New file.
3313 1993-04-13 Richard Stallman <rms@gnu.org>
3315 * src/version.c: New file.
3317 1993-03-25 Richard Stallman <rms@gnu.org>
3319 * src/output.c: entered into RCS
3321 1992-09-25 Richard Stallman <rms@gnu.org>
3323 * configure.bat: entered into RCS
3325 1992-06-22 Richard Stallman <rms@gnu.org>
3327 * src/vmsgetargs.c: entered into RCS
3329 1992-06-22 Richard Stallman <rms@gnu.org>
3331 * doc/bison.rnh: entered into RCS
3333 1992-04-20 David J. MacKenzie <djm@gnu.org>
3335 * README: entered into RCS
3337 1992-01-22 Richard Stallman <rms@gnu.org>
3339 * src/machine.h: entered into RCS
3341 1991-12-21 Richard Stallman <rms@gnu.org>
3343 * src/lalr.c, src/closure.c:
3346 1991-12-20 Richard Stallman <rms@gnu.org>
3348 * src/state.h: entered into RCS
3350 1991-12-18 Richard Stallman <rms@gnu.org>
3352 * src/print.c, src/nullable.c, src/derives.c:
3355 1991-11-03 David J. MacKenzie <djm@gnu.org>
3357 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3360 1988-09-09 Richard Stallman <rms@gnu.org>
3362 * src/bison.hairy: entered into RCS
3364 1987-12-16 Richard Stallman <rms@gnu.org>
3366 * REFERENCES: entered into RCS