1 2001-11-26 Akim Demaille <akim@epita.fr>
3 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
6 2001-11-26 Akim Demaille <akim@epita.fr>
8 * src/complain.c, src/complain.h (error): Remove, provided by
11 2001-11-26 Akim Demaille <akim@epita.fr>
13 * src/reader.c (read_declarations): Don't abort on tok_illegal,
14 issue an error message.
15 * tests/regression.at (Invalid %directive): New.
16 Reported by Hans Aberg.
18 2001-11-26 Akim Demaille <akim@epita.fr>
20 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
21 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
23 2001-11-26 Akim Demaille <akim@epita.fr>
25 * src/conflicts.c (conflicts_print): Don't complain at all when
26 there are no reduce/reduce conflicts, and as many shift/reduce
27 conflicts as expected.
28 * tests/regression.at (%expect right): Adjust.
30 2001-11-25 Marc Autret <autret_m@epita.fr>
32 * doc/bison.texinfo (Mystery Conflicts): Hint '-v' use.
35 2001-11-23 Akim Demaille <akim@epita.fr>
37 * lib/alloca.c: Update, from fileutils.
39 2001-11-23 Akim Demaille <akim@epita.fr>
41 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
43 2001-11-23 Akim Demaille <akim@epita.fr>
45 * src/system.h: Include alloca.h.
46 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
48 2001-11-23 Akim Demaille <akim@epita.fr>
50 * src/print_graph.c (print_actions): Remove `rule', unused.
51 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
52 pacify GCC's signed < unsigned warnings.
53 * src/closure.c (itemsetsize): Likewise.
54 * src/reader.c (symbol_list_new): Static.
56 2001-11-23 Akim Demaille <akim@epita.fr>
58 Attaching lineno to buckets is stupid, since only one copy of each
59 symbol is kept, only the line of the first occurrence is kept too.
61 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
62 * src/reader.c (rline_allocated): Remove, unused.
63 (symbol_list): Have a `line' member.
64 (symbol_list_new): New.
66 * src/print.c (print_grammar): Output the rule line numbers.
67 * tests/regression.at (Solved SR Conflicts)
68 (Unresolved SR Conflicts): Adjust.
69 Reported by Hans Aberg.
71 2001-11-22 Marc Autret <autret_m@epita.fr>
73 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
75 2001-11-22 Marc Autret <autret_m@epita.fr>
77 * src/muscle_tab.c (muscle_init): Remove initialization of
79 * src/output.c (output_master_parser): Do it here.
81 2001-11-20 Akim Demaille <akim@epita.fr>
84 * configure.in (ALL_LINGUAS): Adjust.
85 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
86 longer contains strings to translate.
88 2001-11-19 Akim Demaille <akim@epita.fr>
90 * src/conflicts.c (conflicts_print): Add a missing \n.
92 2001-11-19 Akim Demaille <akim@epita.fr>
94 * src/nullable.c (nullable_print): New.
95 (set_nullable): Call it when tracing.
96 Better locality of variables.
98 2001-11-19 Akim Demaille <akim@epita.fr>
100 * src/print.c (print_actions): Better locality of variables.
102 2001-11-19 Akim Demaille <akim@epita.fr>
104 * src/derives.c (print_derives): Fix and enrich.
105 * src/closure.c (print_fderives): Likewise.
107 2001-11-19 Akim Demaille <akim@epita.fr>
109 * src/closure.c (itemsetend): Remove, replaced with...
112 2001-11-19 Akim Demaille <akim@epita.fr>
114 * src/LR0.c (kernel_end): Remove, replaced with...
117 2001-11-19 Akim Demaille <akim@epita.fr>
119 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
122 2001-11-19 Akim Demaille <akim@epita.fr>
124 * src/closure.c (closure): Use arrays instead of pointers to clarify.
126 2001-11-19 Akim Demaille <akim@epita.fr>
128 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
130 * src/LR0.c: Likewise.
131 (allocate_itemsets): Use arrays instead of pointers to clarify.
133 2001-11-19 Akim Demaille <akim@epita.fr>
135 * src/getargs.c (statistics_flag): Replace with...
137 (longopts): Accept --trace instead of --statistics.
138 * src/getargs.h, src/options.c: Adjust.
139 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
140 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
142 2001-11-19 Akim Demaille <akim@epita.fr>
144 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
145 pointers to clarify the code.
146 (save_reductions, save_shifts): Factor common parts of alternatives.
148 2001-11-19 Akim Demaille <akim@epita.fr>
150 * src/LR0.c (new_state, get_state): Complete TRACE code.
151 * src/closure.c: Include `reader.h' to get `tags', needed by the
153 Rename the conditional DEBUG as TRACE.
154 Output consistently TRACEs to stderr, not stdout.
155 * src/derives.c: Likewise.
156 * src/reduce.c: (inaccessable_symbols): Using if is better style
158 Use `#if TRACE' instead of `#if 0' for tracing code.
160 2001-11-19 Akim Demaille <akim@epita.fr>
162 * src/system.h (LIST_FREE, shortcpy): New.
163 * src/LR0.c: Use them.
164 * src/output.c (free_itemsets, free_reductions, free_shifts):
165 Remove, replaced by LIST_FREE.
167 2001-11-19 Akim Demaille <akim@epita.fr>
169 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
170 (REDUCTIONS_ALLOC): New.
171 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
174 2001-11-19 Akim Demaille <akim@epita.fr>
176 * src/LR0.c (new_state): Complete trace code.
177 * src/nullable.c (set_nullable): Don't translate traces.
179 2001-11-19 Akim Demaille <akim@epita.fr>
181 * src/print_graph.c (print_core): Better locality of variables.
182 * src/print.c (print_core): Likewise.
184 2001-11-19 Akim Demaille <akim@epita.fr>
186 * src/vcg.c: You do the output, so you are responsible of the
187 handling of VCG syntax, in particular: use quotearg.
188 * src/print_graph.c: Don't.
189 (print_actions): Don't output the actions as part of the nodes,
190 since that's the job of the edges.
191 (print_state): Don't output by hand: fill the node description,
192 and ask for its output.
194 2001-11-19 Akim Demaille <akim@epita.fr>
196 * src/bison.simple (yyparse): When verbosely reporting an error,
197 no longer put additional quotes around token names.
198 * tests/calc.at: Adjust.
200 2001-11-19 Akim Demaille <akim@epita.fr>
202 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
203 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
204 * src/output.c: Adjust.
206 2001-11-19 Akim Demaille <akim@epita.fr>
208 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
210 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
212 2001-11-19 Akim Demaille <akim@epita.fr>
214 * src/gram.h (rule_t): New.
216 (rrhs, rlhs): Remove, part of state_t.
217 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
218 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
219 * src/reader.c, src/reduce.c: Adjust.
221 2001-11-19 Akim Demaille <akim@epita.fr>
223 * src/reader.c (symbols_output): New, extracted from...
227 2001-11-19 Akim Demaille <akim@epita.fr>
229 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
230 (maxrhs): this new function.
232 2001-11-19 Akim Demaille <akim@epita.fr>
234 * src/lalr.c (F): New macro to access the variable F.
237 2001-11-19 Akim Demaille <akim@epita.fr>
239 * src/lalr.h (LA): New macro to access the variable LA.
240 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
241 * src/lalr.c: Adjust.
243 2001-11-19 Akim Demaille <akim@epita.fr>
245 * src/lalr.c (initialize_LA): Only initialize LA. Let...
246 (set_state_table): handle the `lookaheads' members.
248 2001-11-19 Akim Demaille <akim@epita.fr>
250 * src/lalr.h (lookaheads): Removed array, whose contents is now
252 (state_t): this structure.
253 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
256 2001-11-19 Akim Demaille <akim@epita.fr>
258 * src/lalr.h (consistent): Removed array, whose contents is now
260 (state_t): this structure.
261 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
264 2001-11-19 Akim Demaille <akim@epita.fr>
266 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
267 contents are now members of...
268 (state_t): this structure.
269 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
272 2001-11-19 Akim Demaille <akim@epita.fr>
274 * src/lalr.h (state_t): New.
275 (state_table): Be a state_t * instead of a core **.
276 (accessing_symbol): Remove, part of state_t.
277 * src/lalr.c: Adjust.
278 (set_accessing_symbol): Merge into...
279 (set_state_table): this.
280 * src/print_graph.c, src/conflicts.c: Adjust.
282 2001-11-14 Akim Demaille <akim@epita.fr>
284 * tests/calc.at, tests/output.at, tests/regression.at,
285 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
286 now the tests are run in private dirs, therefore AC_CLEANUP and
287 family can be simplified to 0-ary.
288 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
289 use abs. path to find config.h.
290 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
291 stderr, there can be way too much random noise.
292 Instead pass -Werror to GCC and rely on the exit status.
293 Reported by Wolfram Wagner.
295 2001-11-14 Akim Demaille <akim@epita.fr>
297 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
298 defined only if yyoverflow is defined, to avoid `warning: unused
300 Reported by The Test Suite.
302 2001-11-14 Akim Demaille <akim@epita.fr>
304 * src/print.c: Include reduce.h.
305 Reported by Hans Aberg.
307 2001-11-14 Akim Demaille <akim@epita.fr>
309 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
310 Revert a previous patch: these are really const.
311 * src/conflicts.c (conflict_report): Additional useless pair of
312 braces to pacify GCC's warnings for `if () if () {} else {}'.
313 * src/lex.c (parse_percent_token): Replace equal_offset with
316 Be sure to strdup `arg' when used, since there is no reason for
317 token_buffer not to change.
319 2001-11-14 Akim Demaille <akim@epita.fr>
321 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
323 * src/main.c (main): Use them.
324 Suggested by Hans Aberg.
326 2001-11-12 Akim Demaille <akim@epita.fr>
328 * src/system.h (ngettext): Now that we use ngettext, be sure to
329 provide a default definition when NLS are not used.
331 2001-11-12 Akim Demaille <akim@epita.fr>
333 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
334 Use @kbd to denote user input.
335 (Language and Grammar): ANSIfy the example.
336 Adjust its layout for info/notinfo.
337 (Location Tracking Calc): Output error messages to stderr.
338 Output locations in a more GNUtically correct way.
339 Fix a couple of Englishos.
340 Adjust @group/@end group pairs.
342 2001-11-12 Akim Demaille <akim@epita.fr>
344 %expext was not functioning at all.
346 * src/conflicts.c (expected_conflicts): Set to -1.
347 (conflict_report): Use ngettext.
348 (conflicts_print): Check %expect and make its violation an error.
349 * doc/bison.texinfo (Expect Decl): Adjust.
350 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
351 * tests/regression.at (%expect not enough, %expect right)
352 (%expect too much): New.
354 2001-11-12 Akim Demaille <akim@epita.fr>
356 * tests/regression.at (Conflicts): Rename as...
357 (Unresolved SR Conflicts): this.
358 (Solved SR Conflicts): New.
360 2001-11-12 Akim Demaille <akim@epita.fr>
362 * src/reduce.c (print_results): Rename as...
363 (reduce_output): This.
364 Output to OUT, passed as argument, instead of output_obstack.
365 (dump_grammar): Likewise.
368 (reduce_grammar): No longer call reduce_output, since...
369 * src/print.c (print_results): do it.
370 * src/main.c (main): Call reduce_free;
372 2001-11-12 Akim Demaille <akim@epita.fr>
374 * src/conflicts.c (print_reductions): Accept OUT as argument.
375 Output to it, not to output_obstack.
376 * src/print.c (print_actions): Adjust.
378 2001-11-12 Akim Demaille <akim@epita.fr>
380 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
381 the result instead of using...
382 (src_total, rrc_total, src_count, rrc_count): Remove.
383 (any_conflicts): Remove.
384 (print_conflicts): Split into...
385 (conflicts_print, conflicts_output): New.
386 * src/conflicts.h: Adjust.
387 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
388 * src/print.c (print_grammar): Issue `\n' between two rules.
389 * tests/regression.at (Conflicts): New.
390 Reported by Tom Lane.
392 2001-11-12 Akim Demaille <akim@epita.fr>
394 * tests/regression.at (Invalid input): Remove, duplicate with
395 ``Invalid input: 1''.
397 2001-11-12 Akim Demaille <akim@epita.fr>
399 * tests/torture.at (AT_DATA_STACK_TORTURE)
400 (Exploding the Stack Size with Alloca)
401 (Exploding the Stack Size with Malloc): New.
403 2001-11-12 Akim Demaille <akim@epita.fr>
405 * src/bison.simple (YYSTACK_REALLOC): New.
406 (yyparse) [!yyoverflow]: Use it and free the old stack.
407 Reported by Per Allansson.
409 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
411 * src/bison.simple: Define type yystype instead of YYSTYPE, and
412 define CPP macro, which substitute YYSTYPE by yystype.
413 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
414 with yyltype/YYLTYPE. This allows inclusion of the generated
415 header within the parser if the compiler, such as GGC, accepts
416 multiple equivalent #defines.
419 2001-11-05 Akim Demaille <akim@epita.fr>
421 * src/reader.c (symbols_output): New, extracted from...
425 2001-11-05 Akim Demaille <akim@epita.fr>
427 * src/lex.c (parse_percent_token): s/quotearg/quote/.
429 2001-11-05 Akim Demaille <akim@epita.fr>
431 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
434 2001-11-05 Akim Demaille <akim@epita.fr>
436 * src/options.h (struct option_table_struct): set_flags is void*.
437 * src/options.c (longopts): Support `--output' and `%output'.
439 * src/lex.h (tok_setopt): Remove, replaced with...
440 (tok_intopt, tok_stropt): these new guys.
441 * src/lex.c (getopt.h): Not needed.
442 (token_buffer, unlexed_token_buffer): Not const.
443 (percent_table): Promote `-' over `_' in directive names.
444 Active `%name-prefix', `file-prefix', and `output'.
445 (parse_percent_token): Accept possible arguments to directives.
446 Promote `-' over `_' in directive names.
448 2001-11-04 Akim Demaille <akim@epita.fr>
450 * doc/bison.texinfo (Decl Summary): Split the list into
451 `directives for grammars' and `directives for bison'.
453 Add description of `%name-prefix', `file-prefix', and `output'.
454 Promote `-' over `_' in directive names.
455 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
456 Simplify the description of `--name-prefix'.
457 Promote `-' over `_' in directive names.
458 Promote `--output' over `--output-file'.
459 Fix the description of `--defines'.
460 * tests/output.at: Exercise %file-prefix and %output.
462 2001-11-02 Akim Demaille <akim@epita.fr>
464 * doc/refcard.tex: Update.
466 2001-11-02 Akim Demaille <akim@epita.fr>
468 * src/symtab.h (SUNDEF): New.
469 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
470 stand for `uninitialized', instead of 0.
471 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
472 * src/lex.c (lex): Adjust.
474 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
476 Let yylex return it instead of a plain 0.
477 Reported by Dick Streefland.
479 2001-11-02 Akim Demaille <akim@epita.fr>
481 * tests/regression.at (Mixing %token styles): New test.
483 2001-11-02 Akim Demaille <akim@epita.fr>
485 * src/reader.c (parse_thong_decl): Formatting changes.
486 (token_translations_init): New, extracted from...
490 2001-11-01 Akim Demaille <akim@epita.fr>
492 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
493 Check that `9foo.y' produces correct cpp guards.
494 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
498 2001-11-01 Akim Demaille <akim@epita.fr>
500 * tests/regression.at (Invalid input: 2): New.
501 * src/lex.c (unlexed_token_buffer): New.
502 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
506 2001-11-01 Akim Demaille <akim@epita.fr>
508 * tests/calc.at: Catch up with 1.30.
509 * configure.in: Bump to 1.49a.
510 Adjust to newer Autotest.
512 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
514 * src/conflicts.c: Move global variables rrc_total and src_total ...
515 (print_conflicts): here.
516 * src/output.c (output): Free global variable user_toknums.
517 * src/lex.c (token_obstack): Become static.
519 2001-10-18 Akim Demaille <akim@epita.fr>
521 * tests/atlocal.in (GCC): Add.
522 * tests/calc.at: s/m4_match/m4_bmatch/.
523 s/m4_patsubst/m4_bpatsubst/.
524 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
525 * configure.in: AC_SUBST(GCC).
527 2001-10-14 Marc Autret <autret_m@epita.fr>
529 * src/options.c (create_long_option_table): Fix.
531 2001-10-10 Akim Demaille <akim@epita.fr>
533 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
535 2001-10-04 Akim Demaille <akim@epita.fr>
537 * src/reader.c (parse_union_decl): Push the caracters in
538 union_obstack, not attrs_obstack.
540 2001-10-04 Akim Demaille <akim@epita.fr>
542 Merge in the branch 1.29.
544 * src/reader.c (packsymbols): Use a temporary obstack for
545 `%%tokendef', since output_stack is already used elsewhere.
547 2001-10-02 Akim Demaille <akim@epita.fr>
551 2001-10-02 Akim Demaille <akim@epita.fr>
555 2001-10-02 Akim Demaille <akim@epita.fr>
557 * tests/regression.at (Invalid CPP headers): New.
558 From Alexander Belopolsky.
559 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
561 2001-10-02 Akim Demaille <akim@epita.fr>
563 * tests/regression.at (Invalid input): New.
564 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
567 2001-10-02 Akim Demaille <akim@epita.fr>
569 * tests/calc.at: Now that --debug works, the tests must be adjusted.
571 2001-10-02 Akim Demaille <akim@epita.fr>
573 * src/output.c (output_parser): Assert `skeleton'.
574 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
578 2001-10-01 Marc Autret <autret_m@epita.fr>
580 * src/lex.h: Echo modifications.
581 * src/lex.c (unlex): Parameter is now token_t.
584 2001-10-01 Marc Autret <autret_m@epita.fr>
586 * src/main.c: Include lex.h.
589 2001-09-29 Akim Demaille <akim@epita.fr>
591 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
593 2001-09-28 Akim Demaille <akim@epita.fr>
595 * tests/testsuite.at: Update to newer Autotest.
596 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
598 2001-09-27 Akim Demaille <akim@epita.fr>
600 Position independent wrapper.
602 * tests/bison: Remove.
603 * tests/bison.in: New.
604 * configure.in: Adjust.
606 2001-09-27 Paul Eggert <eggert@twinsun.com>
608 Port quotearg fixes from tar 1.13.24.
610 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
612 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
613 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
615 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
616 * m4/mbrtowc.m4: New file.
617 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
618 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
620 2001-09-27 Akim Demaille <akim@epita.fr>
624 2001-09-27 Akim Demaille <akim@epita.fr>
628 2001-09-25 Akim Demaille <akim@epita.fr>
630 * src/system.h: Include `xalloc.h'.
631 Remove it from the C files.
632 * src/files.c (output_files): Free the obstacks.
633 * src/lex.c (init_lex): Rename as...
636 * src/main.c (main): Use it.
638 2001-09-24 Marc Autret <autret_m@epita.fr>
640 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
641 to output informations in fout (FILE*).
642 (open_graph, close_graph): Likewise.
643 (output_graph, output_edge, output_node): Likewise.
644 * src/vcg.h: Update function prototypes.
645 * src/print_graph.c (print_graph): Open output graph file.
646 (print_actions): Adjust.
647 * src/files.h: Remove extern declaration.
648 * src/files.c: Remove graph_obstack declaration.
649 (open_files): Remove graph_obstack initialization.
650 (output_files): Remove graph_obstack saving.
652 2001-09-24 Marc Autret <autret_m@epita.fr>
654 * src/files.c (compute_output_file_names): Fix.
656 2001-09-24 Marc Autret <autret_m@epita.fr>,
657 Akim Demaille <akim@epita.fr>
659 * src/reader.c (reader): Remove call to free_symtab ().
660 * src/main.c (main): Call it here.
662 * src/conflicts.c (initialize_conflicts): Rename as...
663 (solve_conflicts): this.
664 * src/print.c (print_core, print_actions, print_state)
665 (print_grammar): Dump to a file instead a `output_obstack'.
666 (print_results): Dump `output_obstack', and then proceed with the
668 * src/files.c (compute_output_file_names, close_files): New.
669 (output_files): Adjust.
670 * src/main.c (main): Adjust.
672 2001-09-23 Marc Autret <autret_m@epita.fr>
674 * src/files.c (compute_header_macro): Computes header macro name
675 from spec_defines_file when given.
677 2001-09-23 Marc Autret <autret_m@epita.fr>
679 * src/files.c (output_files): Add default extensions.
681 2001-09-22 Akim Demaille <akim@epita.fr>
683 * src/conflicts.c (finalize_conflicts): Rename as...
684 (free_conflicts): this.
686 2001-09-22 Akim Demaille <akim@epita.fr>
688 * src/gram.c (gram_free): Rename back as...
690 (output_token_translations): Free `token_translations'.
691 * src/symtab.c (free_symtab): Free the tag field.
693 2001-09-22 Akim Demaille <akim@epita.fr>
695 Remove `translations' as it is always set to true.
697 * src/gram.h: Adjust.
698 * src/reader.c (packsymbols, parse_token_decl): Adjust
699 * src/print.c (print_grammar): Adjust.
700 * src/output.c (output_token_translations): Adjust.
701 * src/lex.c (lex): Adjust.
702 * src/gram.c: Be sure the set pointers to NULL.
703 (dummy): Rename as...
706 2001-09-22 Akim Demaille <akim@epita.fr>
708 * configure.in: Invoke AM_LIB_DMALLOC.
709 * src/system.h: Use dmalloc.
710 * src/LR0.c: Be sure to have pointers initialized to NULL.
711 (allocate_itemsets): Allocate kernel_items only if needed.
713 2001-09-22 Akim Demaille <akim@epita.fr>
715 * configure.in: Bump to 1.29b.
716 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
717 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
718 need xmalloc.c in calc.y.
721 2001-09-21 Akim Demaille <akim@epita.fr>
724 * Makefile.maint, config/config.guess, config/config.sub,
725 * config/missing: Update from masters.
726 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
728 * configure.in (ALL_LINGUAS): Add `tr'.
730 2001-09-21 Akim Demaille <akim@epita.fr>
732 * tests/Makefile.am (package.m4): Move to...
733 ($(srcdir)/$(TESTSUITE)): here.
735 2001-09-20 Akim Demaille <akim@epita.fr>
737 * src/complain.c: No longer try to be standalone: use system.h.
738 Don't assume __STDC__ is defined to 1. Just test if it is defined.
739 * src/complain.h: Likewise.
740 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
741 Remove the unused variable `n'.
742 From Albert Chin-A-Young.
744 2001-09-18 Marc Autret <autret_m@epita.fr>
746 * doc/bison.1: Update.
747 * doc/bison.texinfo (Bison Options): Update --defines and --graph
749 (Option Cross Key): Update.
752 2001-09-18 Marc Autret <autret_m@epita.fr>
754 * tests/regression.at: New test (comment in %union).
756 2001-09-18 Marc Autret <autret_m@epita.fr>
758 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
760 Reported by Keith Browne.
762 2001-09-18 Marc Autret <autret_m@epita.fr>
764 * tests/output.at: Add tests for --defines and --graph.
766 2001-09-18 Marc Autret <autret_m@epita.fr>
768 * tests/output.at: Removes tests of %{header,src}_extension features.
770 2001-09-18 Akim Demaille <akim@epita.fr>
772 * tests/Makefile.am (package.m4): New.
773 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
774 (_AT_CHECK_CALC_ERROR): Likewise.
775 Factor the `, ' part of verbose error messages.
777 2001-09-18 Marc Autret <autret_m@epita.fr>
779 * src/getargs.c (longopts): Declare --defines and --graph as options
780 with optional arguments.
781 * src/files.h: Add extern declarations.
782 * src/files.c (spec_graph_file, spec_defines_file): New.
783 (output_files): Update.
784 Remove CPP-outed code.
786 2001-09-18 Marc Autret <autret_m@epita.fr>
788 Turn off %{source,header}_extension feature.
790 * src/files.c (compute_exts_from_gf): Update.
791 (compute_exts_from_src): Update.
792 (output_files): CPP-out useless code.
793 * src/files.h: Remove {header,source}_extension extern declarations.
794 * src/reader.c (parse_dquoted_param): CPP-out.
795 (parse_header_extension_decl): Remove.
796 (parse_source_extension_decl): Remove.
797 (read_declarations): Remove cases tok_{hdrext,srcext}.
798 * src/lex.c (percent_table): Remove {header,source}_extension entries.
799 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
801 2001-09-10 Akim Demaille <akim@epita.fr>
803 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
804 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
805 (AT_CHECK_OUTPUT): this.
806 Merely check ls' exit status, its output is useless.
808 2001-09-10 Akim Demaille <akim@epita.fr>
810 * tests/calc.at: Use m4_match.
811 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
813 2001-09-10 Marc Autret <autret_m@epita.fr>,
814 Akim Demaille <akim@epita.fr>
816 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
818 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
820 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
821 * src/lex.h: Adjust prototype.
822 (token_t): Add `tok_undef'.
823 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
824 (parse_percent_token): Now returns token_t.
825 Add default statement in switch.
826 (lex): Separate `c' as an input variable, from the token_t result
828 (unlexed): Is a token_t.
830 2001-09-10 Akim Demaille <akim@epita.fr>
832 * configure.in: Bump to 1.29a.
834 2001-09-07 Akim Demaille <akim@epita.fr>
838 2001-08-30 Akim Demaille <akim@epita.fr>
840 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
841 * m4/atconfig.m4: Remove.
842 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
844 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
845 m4_if, m4_patsubst, and m4_regexp.
846 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
847 `input' file instead of echo.
849 2001-08-29 Akim Demaille <akim@epita.fr>
853 2001-08-29 Akim Demaille <akim@epita.fr>
857 2001-08-29 Paul Eggert <eggert@twinsun.com>
859 * src/bison.simple (yyparse): Don't take the address of an
860 item before the start of an array, as that doesn't conform to
863 2001-08-29 Robert Anisko <anisko_r@epita.fr>
865 * doc/bison.texinfo (Location Tracking Calc): New node.
867 2001-08-29 Paul Eggert <eggert@twinsun.com>
869 * src/output.c (output): Do not define const, as this now
870 causes more problems than it cures.
872 2001-08-29 Akim Demaille <akim@epita.fr>
874 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
876 Be sure to tag the `detailmenu'.
878 2001-08-29 Akim Demaille <akim@epita.fr>
880 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
881 download in a tmp dir.
883 2001-08-28 Marc Autret <autret_m@epita.fr>
885 * config/depcomp: New file.
887 2001-08-28 Marc Autret <autret_m@epita.fr>
889 * doc/bison.1 (mandoc): Adjust.
890 From Juan Manuel Guerrero.
892 2001-08-28 Marc Autret <autret_m@epita.fr>
894 * src/print_graph.c (print_state): Fix.
896 2001-08-27 Marc Autret <autret_m@epita.fr>
898 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
900 Echo modifications to the functions prototypes.
901 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
903 2001-08-27 Marc Autret <autret_m@epita.fr>
905 * src/vcg.c: Include `xalloc.h'.
906 (add_colorentry): New.
907 (add_classname): New.
909 * src/vcg.h: Add new prototypes.
911 2001-08-27 Akim Demaille <akim@epita.fr>
913 * Makefile.maint: Sync. again with CVS Autoconf.
915 2001-08-27 Akim Demaille <akim@epita.fr>
917 * Makefile.maint: Formatting changes.
918 (po-update, cvs-update, update): New targets.
921 2001-08-27 Akim Demaille <akim@epita.fr>
923 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
924 * Makefile.maint: Sync. with CVS Autoconf.
926 2001-08-27 Marc Autret <autret_m@epita.fr>
928 * src/vcg.h (struct infoname_s): New.
929 (struct colorentry_s): New.
930 (graph_s): New fields {vertical,horizontal}_order in structure.
931 Add `infoname' field.
932 Add `colorentry' field;
933 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
934 (G_HORIZONTAL_ORDER): New.
937 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
938 Add output of `infoname'.
939 Add output of `colorentry'.
941 2001-08-27 Marc Autret <autret_m@epita.fr>
943 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
944 This one shadowed a global parameter.
946 2001-08-24 Marc Autret <autret_m@epita.fr>
948 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
949 instead of `unsigned'.
950 (print_state): Do not call obstack_object_size () in obstack_grow ()
951 to avoid macro variables shadowing.
953 2001-08-23 Marc Autret <autret_m@epita.fr>
955 * src/lex.c (percent_table): Typo: s/naem/name/.
957 Normalize new options declarations.
959 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
961 * tests/suite.at: Exercise %header_extension and %source_extension.
963 2001-08-16 Marc Autret <autret_m@epita.fr>
965 * src/reader.c (parse_dquoted_param): New.
966 (parse_header_extension_decl): Use it.
967 (parse_source_extension_decl): Likewise.
969 2001-08-16 Marc Autret <autret_m@epita.fr>
971 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
972 (get_xxxx_str): Use assert () instead of complain ().
973 Remove return invokations in default cases.
974 (get_decision_str): Modify default behaviour. Remove second argument.
975 Echo modifications on calls.
978 2001-08-16 Marc Autret <autret_m@epita.fr>
980 * src/getargs.c (usage): Update with ``-g, --graph''.
982 2001-08-16 Marc Autret <autret_m@epita.fr>
984 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
985 (Option Cross Key): Likewise.
986 * doc/bison.1: Update.
988 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
990 * src/output.c (output_master_parser): Don't finish action_obstack.
991 (output_parser): Don't care about the muscle action, here.
992 (prepare): Copy the action_obstack in the action muscle.
993 (output): Free action_obstack.
995 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
997 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
998 will contain `%union' declaration.
999 (parse_union_decl): Delete #line directive output.
1000 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1001 informations about %union.
1002 (parse_union_decl): Copy the union_obstack in the muscle stype.
1003 * src/bison.simple: Add new #line directive.
1004 Add typdef %%stype YYSTYPE.
1006 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1008 * src/bison.simple: Add new `#line' directive.
1010 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1012 * src/bison.simple: New `#line' directive.
1013 * src/output.c (output_parser): Support new dynamic muscle input_line.
1015 2001-09-22 Marc Autret <autret_m@epita.fr>
1017 * src/output.c (output_master_parser): New.
1018 (output_parser): Be more re-entrant.
1020 2001-09-21 Marc Autret <autret_m@epita.fr>
1022 * src/reader.c (copy_definition, parse_union_decl): Update and use
1024 (copy_action): Likewise.
1025 Use obstack_1grow ().
1026 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1028 2001-09-21 Marc Autret <autret_m@epita.fr>
1030 * src/options.c (option_table): Adjust.
1031 * src/lex.c (parse_percent_token): Fix.
1033 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1035 * src/options.c (symtab.h): Include it, need by lex.h.
1037 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1039 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1040 is now an option_table_struct*.
1041 (option_strcmp): New function option_strcmp.
1042 (parse_percent_token): Call option_strcmp.
1043 * src/getargs.c (xalloc.h, options.h): Include it.
1044 (getargs): Call create_long_option_table.
1045 (getargs): Free longopts at the end of the function.
1046 (shortopts): Move in options.c.
1047 * src/options.c (create_long_option_table): New function. Convert
1048 information from option_table to option structure.
1049 * src/reader.c (options.h): Include it.
1051 * src/Makefile.am: Adjust.
1052 * src/options.c (option_table): Create from longopts and percent_table.
1053 * src/getargs.c (longopts): Delete.
1054 * src/lex.c (struct percent_table_struct): Delete.
1055 (percent_table): Delete.
1056 (options.h): Include it.
1057 * src/options.c: Create.
1058 * src/options.h: Create.
1059 Declare enum opt_access_e.
1060 Define struct option_table_struct.
1062 2001-09-20 Marc Autret <autret_m@epita.fr>
1064 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1067 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1069 * src/bison.simple: s/%%filename/%%skeleton.
1070 * src/muscle_tab.c (getargs.h): Include it.
1071 (muscle_init): Insert new muscle skeleton.
1073 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1075 * src/output.c (output_parser): Delete unused variable actions_dumped.
1077 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1079 * src/output.c (output): Delete call to reader_output_yylsp.
1080 * src/reader.c (reader): Likewise.
1081 * src/reader.h: Delete declaration of reader_output_yylsp.
1083 2001-09-02 Marc Autret <autret_m@epita.fr>
1085 * src/reader.c: Include muscle_tab.h.
1086 (parse_union_decl): Update.
1087 (parse_macro_decl): Rename parse_muscle_decl.
1088 Update to use renamed functions and variable.
1089 (read_declarations, copy_action, read_additionnal_code, : Updated
1090 with correct variables and functions names.
1091 (packsymbols, reader): Likewise.
1093 * src/reader.h (muscle_obstack): Extern declaration update.
1095 * src/output.c: Include muscle_tab.h
1096 In all functions using macro_insert, change by using muscle_insert ().
1097 (macro_obstack): Rename muscle_obstack.
1098 Echo modifications in the whole file.
1099 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1100 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1101 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1103 * src/muscle_tab.h: Update double inclusion macros.
1104 (macro_entry_s): Rename muscle_entry_s.
1107 * src/muscle_tab.c: Include muscle_tab.h.
1108 Rename macro_tabble to muscle_table.
1109 (mhash1, mhash2, mcmp): Use muscle_entry.
1110 (macro_init): Rename muscle_init. Update.
1111 (macro_insert): Rename muscle_insert. Update.
1112 (macro_find): Rename muscle_find. Update.
1114 * src/main.c: Include muscle_tab.h.
1115 (main): Call muscle_init ().
1116 * src/Makefile.am (bison_SOURCES): Echo modifications.
1118 2001-09-02 Marc Autret <autret_m@epita.fr>
1120 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1122 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1124 2001-09-02 Marc Autret <autret_m@epita.fr>
1126 * src/macrotab.c, src/macrotab.h: Remove.
1128 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1130 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1133 2001-09-01 Marc Autret <autret_m@epita.fr>
1135 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1136 to an explicit value to activate the feature. We do it here.
1138 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1140 * src/output.c (prepare): Delete the `filename' muscule insertion.
1141 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1142 (parse_union_decl): Likewise.
1143 * src/macrotab.c (macro_init): Initialize filename by infile.
1145 2001-08-31 Marc Autret <autret_m@epita.fr>
1147 * src/bison.simple (YYLSP_NEEDED): New definition.
1148 * src/output.c (prepare): Add macro insertion of `locations_flag'
1150 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1152 * src/output.c (prepare): Delete insertion of previous muscles,
1153 and insert the `prefix' muscles.
1154 * src/macrotab.c (macro_init): Likewise.
1155 (macro_init): Initialization prefix directive by `yy'.
1156 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1157 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1158 yylval, yydebug, yyerror, yynerrs and yyparse.
1159 New directive `#define' to substitute yydebug, ... with option
1162 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1164 * src/main.c (main): Standardize.
1165 * src/output.c (output_table_data, output_parser): Likewise.
1166 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1168 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1170 * src/reader.c (read_additionnal_code): Rename %%user_code to
1172 * src/output.c (output): Rename %%declarations to %%prologue.
1173 * src/bison.simple: Echo modifications.
1175 2001-08-31 Marc Autret <autret_m@epita.fr>
1177 * src/reader.c (readgram): CleanUp.
1178 (output_token_defines): Likewise.
1179 (packsymbols): Likewise.
1181 * src/output.c (output): CPP-out useless code.
1183 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1185 * src/reader.c (reader): Delete obsolete call to function
1186 output_trailers and output_headers.
1187 * src/output.h: Remove obsolete functions prototypes of output_headers
1188 and output_trailers.
1190 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1192 * src/main.c: Include macrotab.h.
1193 * src/macrotab.h (macro_entry_s): Constify fields.
1194 Adjust functions prototypes.
1195 * src/macrotab.c (macro_insert): Constify key and value.
1196 (macro_find): Constify key.
1197 (macro_insert): Include 'xalloc.h'
1198 (macro_insert): Use XMALLOC.
1199 (macro_find): Constify return value.
1200 * src/output.c (output_table_data): Rename table to table_data.
1201 (output_parser): Constify macro_key, macro_value.
1203 2001-08-30 Marc Autret <autret_m@epita.fr>
1205 * src/reader.c (parse_skel_decl): New.
1206 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1207 * src/lex.h (token_t): New token `tok_skel'.
1208 * src/lex.c (percent_table): Add skeleton option entry.
1211 2001-08-29 Marc Autret <autret_m@epita.fr>
1213 * src/bison.simple: Add %%user_code directive at the end.
1214 * src/reader.c (read_additionnal_code): New.
1216 * src/output.c (output_program): Remove.
1219 2001-08-28 Marc Autret <autret_m@epita.fr>
1221 * src/output.c (output_actions): Clean up.
1222 (output_gram): CPP-out useless code.
1223 * src/reader.c (reader): Clean up, CPP-out useless code.
1225 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1227 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1229 * src/bison.simple: Add `%%definitions'.
1231 2001-08-28 Marc Autret <autret_m@epita.fr>
1233 * config/depcomp: New file.
1235 2001-08-27 Paul Eggert <eggert@twinsun.com>
1237 * src/bison.simple (yyparse): Don't take the address of an
1238 item before the start of an array, as that doesn't conform to
1241 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1243 * src/output.c (output): Remove the initialization of the macro
1244 obstack. It was done too late here.
1246 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1248 (reader): Initialize the macro obstack here, since we need it to grow
1249 '%define' directives.
1251 * src/reader.h: Declare the macro obstack as extern.
1253 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1255 * src/output.c (output_parser): Fix. Store single '%' characters in
1256 the output obstack instead of throwing them away.
1258 2001-08-27 Akim Demaille <akim@epita.fr>
1260 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1262 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1264 * lib/Makefile.am: Adjust.
1266 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1268 * src/bison.simple: Update and add '%%' directives.
1270 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1272 * src/reader.c (reader): Remove calls to 'output_headers' and
1273 'output_trailers'. Remove some C output.
1274 (readgram): Disable a piece of code that was writing a default
1275 definition for 'YYSTYPE'.
1276 (reader_output_yylsp): Remove.
1277 (packsymbols): Output token defintions to a macro.
1278 (copy_definition): Disable C output.
1280 * src/reader.c (parse_macro_decl): New function used to parse macro
1282 (copy_string2): Put the body of copy_string into this new function.
1283 Add a parameter to let the caller choose whether he wants to copy the
1284 string delimiters or not.
1285 (copy_string): Be a simple call to copy_string2 with the last argument
1287 (read_declarations): Add case for macro definition.
1288 (copy_identifier): New.
1289 (parse_macro_decl): Read macro identifiers using copy_identifier
1292 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1294 * src/output.c (prepare): Add prefixed names.
1295 (output_parser): Output semantic actions.
1296 (output_parser): Fix bug on '%%line' directives.
1298 * src/output.c (output_headers): Remove. The C code printed by this
1299 function should now be in the skeletons.
1300 (output_trailers): Remove.
1301 (output): Disable call to 'reader_output_yylsp'.
1302 (output_rule_data): Do not output tables to the table obstack.
1304 * src/output.c: Remove some C dedicated output.
1305 Improve the use of macro and output obstacks.
1306 (output_defines): Remove.
1308 * src/output.c (output_token_translations): Associate 'translate'
1309 table with a macro. No output to the table obstack.
1310 (output_gram): Same for 'rhs' and 'prhs'.
1311 (output_stos): Same for 'stos'.
1312 (output_rule_data): Same for 'r1' and 'r2'.
1313 (token_actions): Same for 'defact'.
1314 (goto_actions): Same for 'defgoto'.
1315 (output_base): Same for 'pact' and 'pgoto'.
1316 (output_table): Same for 'table'.
1317 (output_check): Same for 'check'.
1319 * src/output.c (output_table_data): New function.
1320 (output_short_table): Remove.
1321 (output_short_or_char_table): Remove.
1323 * src/output.c (output_parser): Replace most of the skeleton copy code
1324 with something new. Skeletons are now processed character by character
1325 rather than line by line, and Bison looks for '%%' macros. This is the
1326 first step in making Bison's output process (a lot) more flexible.
1327 (output_parser): Use the macro table.
1329 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1331 * src/main.c (main): Initialize the macro table.
1333 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1335 * src/lex.c (percent_table): Add tok_define.
1336 * src/lex.h: Add tok_define.
1338 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1340 * src/macrotab.c: New file.
1341 * src/macrotab.h: New file.
1342 * src/Makefile.am: Update.
1344 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1346 * lib/hash.c: New file.
1347 * lib/hash.h: New file.
1348 * lib/Makefile.am: Update.
1350 2001-08-15 Akim Demaille <akim@epita.fr>
1354 2001-08-15 Marc Autret <autret_m@epita.fr>
1356 * src/reader.c (readgram): Indent output macro YYSTYPE.
1357 (packsymbols): Likewise.
1358 (output_token_defines): Likewise.
1359 * src/files.c: Standardize.
1360 (compute_header_macro): New.
1361 (defines_obstack_save): New. Use compute_header_macro.
1362 (output_files): Update. Use defines_obstack_save.
1364 2001-08-15 Akim Demaille <akim@epita.fr>
1366 * doc/bison.texinfo (Table of Symbols): Document
1369 2001-08-15 Akim Demaille <akim@epita.fr>
1371 * missing: Update from CVS Automake.
1372 * config/config.guess, config/config.sub, config/texinfo.tex:
1373 Update from gnu.org.
1375 2001-08-15 Akim Demaille <akim@epita.fr>
1377 * Makefile.maint: Sync with CVS Autoconf.
1379 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1381 * doc/bison.texinfo: Include GNU Free Documentation License from
1383 * doc/fdl.texi: Add to package.
1385 2001-08-14 Marc Autret <autret_m@epita.fr>
1387 Turn on %{source,header}_extension features.
1389 * src/lex.c (percent_table): Un-CPP out header_extension and
1391 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1392 (compute_exts_from_src): Remove conditions. It restores priorities
1395 2001-08-14 Marc Autret <autret_m@epita.fr>
1397 * src/files.c (compute_base_names): Add extensions computing when
1398 `--file-prefix' used.
1399 Standardize function calls.
1401 2001-08-13 Marc Autret <autret_m@epita.fr>
1403 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1404 defining it (defined but null disables alloca).
1406 2001-08-13 Marc Autret <autret_m@epita.fr>
1408 * src/bison.simple (_yy_memcpy): CPP reformat.
1410 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1412 * tests/atconfig.in (CPPFLAGS): Fix.
1414 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1416 * doc/bison.texinfo: Include GNU General Public License from
1418 * doc/gpl.texi: Add to package.
1420 2001-08-10 Marc Autret <autret_m@epita.fr>
1422 * src/print_graph.h: Fix.
1423 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1425 2001-08-10 Akim Demaille <akim@epita.fr>
1427 * src/system.h: Provide default declarations for stpcpy, strndup,
1430 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1432 * doc/bison.texinfo (Locations): Update @$ stuff.
1434 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1436 * src/bison.simple (YYLLOC_DEFAULT): Update.
1439 2001-08-08 Marc Autret <autret_m@epita.fr>
1441 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1442 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1443 Reported by Fabrice Bauzac.
1445 2001-08-08 Marc Autret <autret_m@epita.fr>
1447 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1448 * src/vcg.c (output_node): Fix.
1449 * src/vcg.h: Cleanup.
1450 * src/print_graph.c: Add comments.
1451 (node_output_size): New global variable. Simplify the formatting of
1452 the VCG graph output.
1453 (print_actions): Unused code is now used. It notifies the final state
1454 and no action states in the VCG graph. It also give the reduce actions.
1455 The `shift and goto' edges are red and the `go to state' edges are
1457 Get the current node name and node_obstack by argument.
1458 (node_obstack): New variable.
1459 (print_state): Manage node_obstack.
1460 (print_core): Use node_obstack given by argument.
1461 A node is not only computed here but in print_actions also.
1462 (print_graph): CPP out useless code instead of commenting it.
1464 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1466 * tests/atconfig.in (CPPFLAGS): Fix.
1468 2001-08-07 Akim Demaille <akim@epita.fr>
1470 * src/print_graph.c (quote): New.
1471 (print_core): Use it.
1473 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1475 * src/vcg.c (complain.h): Include it.
1476 Unepitaize `return' invocations.
1477 [NDEBUG] (main): Remove.
1478 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1479 * src/files.c (open_files): Initialize graph_obstack.
1480 * src/print_graph.c (print_actions): CPP out useless code.
1481 (print_core): Don't output the last `\n' in labels.
1483 * src/files.c (output_files): Output the VCG file.
1484 * src/main.c (main): Invoke print_graph ();
1486 2001-08-06 Marc Autret <autret_m@epita.fr>
1488 Automaton VCG graph output.
1489 Using option ``-g'' or long option ``--graph'', you can generate
1490 a gram_filename.vcg file containing a VCG description of the LALR (1)
1491 automaton of your grammar.
1493 * src/main.c: Call to print_graph() function.
1494 * src/getargs.h: Update.
1495 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1496 (graph_flag): New flag.
1498 (getargs): Add case `g'.
1499 * src/files.c (graph_obstack): New obstack struct.
1500 (open_files): Initialize new obstack.
1501 (output_files): Saves graph_obstack if required.
1502 * src/files.h (graph_obstack): New extern declaration.
1503 * src/Makefile.am: Add new source files.
1505 2001-08-06 Marc Autret <autret_m@epita.fr>
1507 * src/print_graph.c, src/print_graph.h (graph): New.
1508 * src/vcg.h: New file.
1509 * src/vcg.c: New file, VCG graph handling.
1511 2001-08-06 Marc Autret <autret_m@epita.fr>
1513 Add of %source_extension and %header_extension which specify
1514 the source or/and the header output file extension.
1516 * src/files.c (compute_base_names): Remove initialisation of
1517 src_extension and header_extension.
1518 (compute_exts_from_gf): Update.
1519 (compute_exts_from_src): Update.
1520 (output_files): Update.
1521 * src/reader.c (parse_header_extension_decl): New.
1522 (parse_source_extension_decl): New.
1523 (read_declarations): New case statements for the new tokens.
1524 * src/lex.c (percent_table): Add entries for %source_extension
1525 and %header_extension.
1526 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1528 2001-08-06 Marc Autret <autret_m@epita.fr>
1530 * configure.in: Bump to 1.28c.
1531 * doc/bison.texinfo: Texinfo thingies.
1533 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1535 * tests/atconfig.in (CPPFLAGS): Add.
1536 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1538 2001-08-03 Akim Demaille <akim@epita.fr>
1542 2001-08-03 Akim Demaille <akim@epita.fr>
1544 * tests/Makefile.am (check-local): Ship testsuite.
1545 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1548 2001-08-03 Akim Demaille <akim@epita.fr>
1550 * configure.in: Try using -Wformat when compiling.
1552 2001-08-03 Akim Demaille <akim@epita.fr>
1554 * configure.in: Bump to 1.28b.
1556 2001-08-03 Akim Demaille <akim@epita.fr>
1558 * src/complain.c: Adjust strerror_r portability issues.
1560 2001-08-03 Akim Demaille <akim@epita.fr>
1564 2001-08-03 Akim Demaille <akim@epita.fr>
1566 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1567 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1568 * src/getargs.c: Include complain.h.
1569 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1570 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1572 2001-08-03 Akim Demaille <akim@epita.fr>
1574 * src/reader.c (readgram): Display hidden chars in error messages.
1576 2001-08-03 Akim Demaille <akim@epita.fr>
1578 Update to gettext 0.10.39.
1580 2001-08-03 Akim Demaille <akim@epita.fr>
1582 * lib/strspn.c: New.
1584 2001-08-01 Marc Autret <autret_m@epita.fr>
1586 * doc/bison.texinfo: Update.
1587 * doc/bison.1 (mandoc): Update.
1588 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1589 * src/files.c: Support output files extensions computing.
1590 (src_extension): New static variable.
1591 (header_extension): New static variable.
1593 (get_extension_index): New function, gets the index of an extension
1594 filename in a string.
1595 (compute_exts_from_gf): New function, computes extensions from the
1596 grammar file extension.
1597 (compute_exts_from_src): New functions, computes extensions from the
1598 C source file extension, file given by ``-o'' option.
1599 (compute_base_names): Update.
1600 (output_files): Update.
1602 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1604 * doc/bison.texi: Document @$.
1605 (Locations): New section.
1607 2001-07-18 Akim Demaille <akim@epita.fr>
1609 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1610 * config/prev-version.txt, config/move-if-change: New.
1611 * Makefile.am: Adjust.
1613 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1615 * src/bison.simple (yyparse): Suppress warning `comparaison
1616 between signed and unsigned'.
1618 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1620 * src/getargs.h (raw_flag): Remove.
1621 * src/getargs.c: Die on `-r'/`--raw'.
1622 * src/lex.c (parse_percent_token): Die on `%raw'.
1623 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1624 * tests/calc.at: Suppress test with option `--raw'.
1626 2001-07-14 Akim Demaille <akim@epita.fr>
1629 * configure.in: Require Autoconf 2.50.
1630 Update to gettext 0.10.38.
1632 2001-03-16 Akim Demaille <akim@epita.fr>
1634 * doc/bison.texinfo: ANSIfy the examples.
1636 2001-03-16 Akim Demaille <akim@epita.fr>
1638 * getargs.c (skeleton): New variable.
1639 (longopts): --skeleton is a new option.
1640 (shortopts, getargs): -S is a new option.
1641 * getargs.h: Declare skeleton.
1642 * output.c (output_parser): Use it.
1644 2001-03-16 Akim Demaille <akim@epita.fr>
1646 * m4/strerror_r.m4: New.
1647 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1648 * lib/error.h, lib/error.c: Update.
1650 2001-03-16 Akim Demaille <akim@epita.fr>
1652 * src/getargs.c (longopts): Clean up.
1654 2001-02-21 Akim Demaille <akim@epita.fr>
1656 * src/reader.c (gensym): `gensym_count' is your own.
1657 Use a static buf to create the symbol name, as token_buffer is no
1660 2001-02-08 Akim Demaille <akim@epita.fr>
1662 * src/conflicts.c (conflict_report): Be sure not to append to res
1663 between two calls, which could happen if both first sprintf were
1664 skipped, but not the first cp += strlen.
1666 2001-02-08 Akim Demaille <akim@epita.fr>
1668 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1669 New, from fileutils 4.0.37.
1670 * configure.in: Require Autoconf 2.49c. I took some time before
1671 making this decision. This is the only way out for portability
1672 issues in Bison, it would mean way too much duplicate effort to
1673 import in Bison features implemented in 2.49c since 2.13.
1674 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1676 2001-02-02 Akim Demaille <akim@epita.fr>
1678 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1679 * lib/xalloc.h, lib/xmalloc.c: Update.
1681 2001-01-19 Akim Demaille <akim@epita.fr>
1683 Get rid of the ad hoc handling of token_buffer in the scanner: use
1686 * src/lex.c (token_obstack): New.
1687 (init_lex): Initialize it. No longer call...
1688 (grow_token_buffer): this. Remove it.
1689 Adjust all the places which used it to use the obstack.
1691 2001-01-19 Akim Demaille <akim@epita.fr>
1693 * src/lex.h: Rename all the tokens:
1694 s/\bENDFILE\b/tok_eof/g;
1695 s/\bIDENTIFIER\b/tok_identifier/g;
1697 Let them be enums, not #define, to ease debugging.
1698 Adjust all the code.
1700 2001-01-18 Akim Demaille <akim@epita.fr>
1702 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1703 * src/lex.c (maxtoken, grow_token_buffer): Static.
1705 2001-01-18 Akim Demaille <akim@epita.fr>
1707 Since we now use obstacks, more % directives can be enabled.
1709 * src/lex.c (percent_table): Also accept `%yacc',
1710 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1712 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1713 instead of returning a token.
1714 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1715 * src/reader.c (read_declarations): Adjust.
1716 * src/files.c (open_files): Don't call `compute_base_names', don't
1717 compute `attrsfile' since they depend upon data which might be
1718 *in* the input file now.
1719 (output_files): Do it here.
1720 * src/output.c (output_headers): Document the fact that this patch
1721 introduces a guaranteed SEGV for semantic parsers.
1722 * doc/bison.texinfo: Document them.
1723 * tests/suite.at: Exercise these %options.
1725 2000-12-20 Akim Demaille <akim@epita.fr>
1727 Also handle the output file (--verbose) with obstacks.
1729 * files.c (foutput): Remove.
1730 (output_obstack): New.
1731 Adjust all dependencies.
1732 * src/conflicts.c: Return a string.
1733 * src/system.h (obstack_grow_string): Rename as...
1734 (obstack_sgrow): this. Be ready to work with non literals.
1735 (obstack_fgrow4): New.
1737 2000-12-20 Akim Demaille <akim@epita.fr>
1739 * src/files.c (open_files): Fix the computation of short_base_name
1740 in the case of `-o foo.tab.c'.
1742 2000-12-20 Akim Demaille <akim@epita.fr>
1744 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1745 (copy_dollar): Now that everything uses obstacks, get rid of the
1748 2000-12-20 Akim Demaille <akim@epita.fr>
1750 * src/files.c (open_files): Actually the `.output' file is based
1751 on the short_base_name, not base_name.
1752 * tests/suite.at (Checking output file names): Adjust.
1754 2000-12-20 Akim Demaille <akim@epita.fr>
1756 * src/bison.s1: Remove, we now use directly...
1757 * src/bison.simple: this.
1758 * src/Makefile.am: Use pkgdata instead of data.
1760 2000-12-20 Akim Demaille <akim@epita.fr>
1762 * src/files.c (guard_obstack): New.
1763 (open_files): Initialize it.
1764 (output_files): Dump it...
1765 * src/files.h: Export it.
1766 * src/reader.c (copy_guard): Use it.
1768 2000-12-19 Akim Demaille <akim@epita.fr>
1770 * src/files.c (outfile, defsfile, actfile): Removed as global
1772 (open_files): Don't compute them.
1773 (output_files): Adjust.
1774 (base_name, short_base_name): Be global.
1775 Adjust dependencies.
1777 2000-12-19 Akim Demaille <akim@epita.fr>
1779 * src/files.c (strsuffix): New.
1780 (stringappend): Be just like strcat but allocate.
1781 (base_names): Eve out from open_files.
1782 Try to simplify the rather hairy computation of base_name and
1784 (open_files): Use it.
1785 * tests/suite.at (Checking output file names): New test.
1787 2000-12-19 Akim Demaille <akim@epita.fr>
1789 * src/system.h (obstack_grow_literal_string): Rename as...
1790 (obstack_grow_string): this.
1791 * src/output.c (output_parser): Recognize `%% actions' instead of
1793 * src/bison.s1: s/$/%% actions/.
1794 * src/bison.hairy: Likewise.
1796 2000-12-19 Akim Demaille <akim@epita.fr>
1798 * src/output.c (output_parser): Compute the `#line' lines when
1800 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1801 Suggested by Hans Aberg.
1803 2000-12-19 Akim Demaille <akim@epita.fr>
1805 Let the handling of the skeleton files be local to the procedures
1808 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1810 (fparser, open_extra_files): Remove.
1811 (open_files, output_files): Don't take care of fparser.
1812 * src/files.h: Adjust.
1813 * src/output.c (output_parser): Open and close the file to the
1815 * src/reader.c (read_declarations): When %semantic_parser, open
1818 2000-12-19 Akim Demaille <akim@epita.fr>
1820 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1821 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1823 2000-12-19 Akim Demaille <akim@epita.fr>
1825 * src/files.c (open_files): Yipee! We no longer need all the code
1826 looking for `/tmp' since we have no tmp file.
1828 2000-12-19 Akim Demaille <akim@epita.fr>
1830 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1832 * src/files.c (open_files): Less dependency on MSDOS etc.
1834 2000-12-14 Akim Demaille <akim@epita.fr>
1836 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1837 Provide a default definition.
1838 Use it when executing the default @ action.
1839 * src/reader.c (reader_output_yylsp): No longer include
1840 `timestamp' and `text' in the default YYLTYPE.
1842 2000-12-12 Akim Demaille <akim@epita.fr>
1844 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1845 (copy_guard): Quote the file names.
1846 Reported by Laurent Mascherpa.
1848 2000-12-12 Akim Demaille <akim@epita.fr>
1850 * src/output.c (output_headers, output_program, output): Be sure
1851 to escape special characters when outputting filenames.
1852 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1853 (output_headers): Don't depend on them, Use ACTSTR.
1855 2000-11-17 Akim Demaille <akim@epita.fr>
1857 * lib/obstack.h: Formatting changes.
1858 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1859 prevents type checking.
1860 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1861 cast the value to (void *): assigning a `foo *' to a `void *'
1863 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1864 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1867 2000-11-17 Akim Demaille <akim@epita.fr>
1869 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1871 (suite.m4, regression.m4, calc.m4): these.
1872 * tests/atgeneral.m4: Update from CVS Autoconf.
1874 2000-11-17 Akim Demaille <akim@epita.fr>
1876 * tests/regression.m4 (%union and --defines): New test,
1877 demonstrating a current bug in the obstack implementation.
1879 2000-11-17 Akim Demaille <akim@epita.fr>
1881 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1883 Use them to declare the variables which are global or local to
1886 2000-11-17 Akim Demaille <akim@epita.fr>
1888 * acconfig.h: Remove, no longer used.
1890 2000-11-07 Akim Demaille <akim@epita.fr>
1892 * src: s/Copyright (C)/Copyright/g.
1894 2000-11-07 Akim Demaille <akim@epita.fr>
1896 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1898 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1900 2000-11-07 Akim Demaille <akim@epita.fr>
1902 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1903 Merge in a single CPP if/else.
1905 2000-11-07 Akim Demaille <akim@epita.fr>
1907 * src/output.c (output): Remove useless variables.
1908 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1909 argument `data' for consistency with the prototypes.
1911 (obstack_copy, obstack_copy0): Rename the second argument as
1912 `address' for consistency. Qualify it `const'.
1913 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1914 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1915 `const' their input argument (`data' or `address').
1916 Adjust the corresponding macros to include `const' in casts.
1918 2000-11-03 Akim Demaille <akim@epita.fr>
1920 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1921 s/PFILE1/BISON_HAIRY/.
1922 Adjust dependencies.
1924 2000-11-03 Akim Demaille <akim@epita.fr>
1926 For some reason, this was not applied.
1928 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1929 `unlink': it's no longer used.
1931 2000-11-03 Akim Demaille <akim@epita.fr>
1933 * src/files.c (skeleton_find): New function, eved out of...
1934 (open_files, open_extra_files): here.
1936 2000-11-03 Akim Demaille <akim@epita.fr>
1940 * src/files.c (obstack_save): New function.
1941 (done): Rename as...
1942 (output_files): this.
1944 * src/main.c (main): Don't use `atexit' to register `done', since
1945 it no longer has to remove tmp files, just call `output_files'
1946 when there are no errors.
1948 2000-11-02 Akim Demaille <akim@epita.fr>
1950 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1951 `unlink': it's no longer used.
1952 * src/files.h: Formatting changes.
1954 2000-11-02 Akim Demaille <akim@epita.fr>
1956 Remove the last uses of mktemp and unlink/delete.
1958 * src/files.c (fdefines, ftable): Removed.
1959 (defines_ostack, table_obstack): New.
1960 Adjust dependencies of the former into uses of the latter.
1961 * src/output.c (output_short_or_char_table, output_short_table):
1962 Convert to using obstacks.
1963 * src/reader.c (copy_comment2): Accept one FILE * and two
1965 (output_token_defines, reader_output_yylsp): Use obstacks.
1966 * src/system.h (obstack_fgrow3): New.
1968 2000-11-01 Akim Demaille <akim@epita.fr>
1970 Change each use of `fattrs' into a use of `attrs_obstack'.
1972 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1973 * src/files.c (fattrs): Remove.
1974 (attrs_obstack): New.
1975 Adjust all dependencies.
1976 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1978 2000-11-01 Akim Demaille <akim@epita.fr>
1981 Change each use of `faction' into a use of `action_obstack'.
1983 * lib/obstack.h, lib/obstack.c: New files.
1984 * src/files.c (faction): Remove.
1985 (action_obstack): New.
1986 Adjust all dependencies.
1988 2000-10-20 Akim Demaille <akim@epita.fr>
1990 * lib/quote.h (PARAMS): New macro. Use it.
1992 2000-10-16 Akim Demaille <akim@epita.fr>
1994 * src/output.c (output_short_or_char_table): New function.
1995 (output_short_table, output_token_translations): Use it.
1996 (goto_actions): Use output_short_table.
1998 2000-10-16 Akim Demaille <akim@epita.fr>
2000 * src/symtab.c (bucket_new): New function.
2003 * src/output.c (output_short_table): New argument to display the
2004 comment associated with the table.
2005 Adjust dependencies.
2006 (output_gram): Use it.
2007 (output_rule_data): Nicer output layout for YYTNAME.
2009 2000-10-16 Akim Demaille <akim@epita.fr>
2011 * src/lex.c (read_typename): New function.
2013 * src/reader.c (copy_dollar): Likewise.
2015 2000-10-16 Akim Demaille <akim@epita.fr>
2017 * src/reader.c (copy_comment2): Expect the input stream to be on
2018 the `/' which is suspected to open a comment, instead of being
2019 called after `//' or `/*' was read.
2020 (copy_comment, copy_definition, parse_union_decl, copy_action)
2021 (copy_guard): Adjust.
2023 2000-10-16 Akim Demaille <akim@epita.fr>
2025 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2026 `read_signed_integer'.
2028 2000-10-16 Akim Demaille <akim@epita.fr>
2030 * src/reader.c (copy_dollar): New function.
2031 (copy_guard, copy_action): Use it.
2033 2000-10-16 Akim Demaille <akim@epita.fr>
2035 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2036 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2037 New files, from Fileutils 4.0.27.
2038 * src/main.c (printable_version): Remove.
2039 * src/lex.c, src/reader.c: Use `quote'.
2041 2000-10-04 Akim Demaille <akim@epita.fr>
2043 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2045 2000-10-04 Akim Demaille <akim@epita.fr>
2047 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2049 2000-10-04 Akim Demaille <akim@epita.fr>
2051 When a literal string is used to define two different tokens,
2052 `bison -v' segfaults.
2053 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2055 * tests/regression.m4: New file.
2056 Include the core of the sample provided by Piotr Gackiewicz.
2057 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2060 2000-10-04 Akim Demaille <akim@epita.fr>
2062 * src/reader.c (parse_expect_decl): Keep `count' within the size
2066 2000-10-02 Paul Eggert <eggert@twinsun.com>
2068 * bison.s1 (yyparse): Assign the default value
2069 unconditionally, to avoid a GCC warning and make the parser a
2072 2000-10-02 Akim Demaille <akim@epita.fr>
2074 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2077 2000-10-02 Akim Demaille <akim@epita.fr>
2079 * src/derives.c, src/print.c, src/reduce.c: To ease the
2080 translation, move some `\n' out of the translated strings.
2082 2000-10-02 Akim Demaille <akim@epita.fr>
2084 The location tracking mechanism is precious for parse error
2085 messages. Nevertheless, it is enabled only when `@n' is used in
2086 the grammar, which is a different issue (you can use it in error
2087 message, but not in the grammar per se). Therefore, there should
2088 be another means to enable it.
2090 * src/getargs.c (getargs): Support `--locations'.
2092 * src/getargs.h (locationsflag): Export it.
2093 * src/lex.c (percent_table): Support `%locations'.
2094 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2095 with `locationsflag'.
2096 * doc/bison.texinfo: Document `--locations' and `%locations'.
2098 * tests/calc.m4: Test it.
2100 For regularity of the names, replace each
2101 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2102 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2103 In addition replace each `flag' with `_flag'.
2105 2000-10-02 Akim Demaille <akim@epita.fr>
2107 Also test parse error messages, including with YYERROR_VERBOSE.
2109 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2111 Use it to check the computations.
2112 Use it to check `nonassoc' is honored.
2113 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2114 `--yyerror-verbose'.
2115 (_AT_CHECK_CALC): Adjust to this option.
2116 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2118 2000-10-02 Akim Demaille <akim@epita.fr>
2120 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2121 the latter demonstrates a flaw in the handling of non debugging
2122 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2123 was used in order to simplify:
2139 unfortunately this leads to a CPP conflict when
2140 `--name-prefix=foo' is used since it produces `#define yydebug
2143 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2144 (YYDPRINTF): New macro.
2146 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2148 Also test `--verbose', `--defines' and `--name-prefix'.
2150 2000-10-02 Akim Demaille <akim@epita.fr>
2152 Improve the readability of the produced parsers.
2154 * src/bison.s1: Formatting changes.
2155 Improve the comment related to the `$' mark.
2156 (yydefault): Don't fall through to `yyresume': `goto' there.
2157 * src/output.c (output_parser): When the `$' is met, skip the end
2159 New variable, `number_of_dollar_signs', to check there's exactly
2160 one `$' in the parser skeleton.
2162 2000-10-02 Akim Demaille <akim@epita.fr>
2164 * lib/xstrdup.c: New file, from the fileutils.
2165 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2166 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2167 instead of strlen + xmalloc + strcpy.
2168 * src/symtab.c (copys): Remove, use xstrdup instead.
2170 2000-10-02 Akim Demaille <akim@epita.fr>
2172 * src/gram.h (associativity): New enum type which replaces the
2173 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2174 `right_assoc', `left_assoc' and `non_assoc'.
2175 Adjust all dependencies.
2176 * src/reader.c: Formatting changes.
2177 (LTYPESTR): Don't define it, use it as a literal in
2178 `reader_output_yylsp'.
2179 * src/symtab.h (symbol_class): New enum type which replaces the
2180 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2181 `sunknown', `stoken and `snterm'.
2183 2000-10-02 Akim Demaille <akim@epita.fr>
2185 * src/getargs.c (fixed_outfiles): Rename as...
2186 (yaccflag): for consistency and accuracy.
2187 Adjust dependencies.
2189 2000-10-02 Akim Demaille <akim@epita.fr>
2191 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2192 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2193 difficult and introduced a lot of core dump. It turns out that
2194 Bison used an implementation of `xmalloc' based on `calloc', and
2195 at various places it does depend upon the initialization to 0. I
2196 have not tried to isolate the pertinent places, and all the former
2197 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2198 someone should address this issue.
2200 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2201 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2203 Adjust dependencies.
2204 * src/warshall.h: New file.
2207 2000-10-02 Akim Demaille <akim@epita.fr>
2209 Various anti-`extern in *.c' changes.
2211 * src/system.h: Include `assert.h'.
2213 2000-10-02 Akim Demaille <akim@epita.fr>
2215 * src/state.h (nstates, final_state, first_state, first_shift)
2216 (first_reduction): Move their exportation from here...
2217 * src/LR0.h: to here.
2218 Adjust dependencies.
2219 * src/getargs.c (statisticsflag): New variable.
2220 Add support for `--statistics'.
2221 Adjust dependencies.
2223 Remove a lot of now useless `extern' statements in most files.
2225 2000-10-02 Akim Demaille <akim@epita.fr>
2227 * src/LR0.h: New file.
2230 2000-10-02 Akim Demaille <akim@epita.fr>
2232 * src/print.h: New file.
2234 * src/print.c: Formatting and ordering changes.
2235 (verbose, terse): Replace with...
2236 (print_results): this new function.
2237 Adjust dependencies.
2239 2000-10-02 Akim Demaille <akim@epita.fr>
2241 * src/conflicts.c (conflict_report): New function.
2242 (conflict_log, verbose_conflict_log): Replace with...
2243 (print_conflicts): this function.
2244 Adjust dependencies.
2245 * src/conflicts.h: New file.
2246 Propagate its inclusion.
2248 2000-10-02 Akim Demaille <akim@epita.fr>
2250 * src/nullable.h: New file.
2251 Propagate its inclusion.
2252 * src/nullable.c: Formatting changes.
2254 2000-10-02 Akim Demaille <akim@epita.fr>
2256 * src/reduce.h: New file.
2257 Propagate its inclusion.
2258 * src/reduce.c: Topological sort and other formatting changes.
2259 (bool, TRUE, FALSE): Move their definition to...
2260 * src/system.h: here.
2262 2000-10-02 Akim Demaille <akim@epita.fr>
2264 * src/files.c: Formatting changes.
2265 (tryopen, tryclose, openfiles): Rename as...
2266 (xfopen, xfclose, open_files): this.
2267 (stringappend): static.
2268 * src/files.h: Complete the list of exported symbols.
2271 2000-10-02 Akim Demaille <akim@epita.fr>
2273 * src/reader.h: New file.
2274 Propagate its use instead of tedious list of `extern' and
2276 * src/reader.c: Formatting changes, topological sort,
2279 2000-10-02 Akim Demaille <akim@epita.fr>
2281 * src/lex.h: Prototype `lex.c' exported functions.
2282 * src/reader.c: Adjust.
2283 * src/lex.c: Formatting changes.
2284 (safegetc): Rename as...
2287 2000-10-02 Akim Demaille <akim@epita.fr>
2289 * src/lalr.h: New file.
2290 Propagate its inclusion instead of prototypes and `extern'.
2291 * src/lalr.c: Formatting changes, topological sorting etc.
2293 2000-10-02 Akim Demaille <akim@epita.fr>
2295 * src/output.c (token_actions): Introduce a temporary array,
2296 YYDEFACT, that makes it possible for this function to use
2299 2000-10-02 Akim Demaille <akim@epita.fr>
2301 `user_toknums' is output as a `short[]' in `output.c', while it is
2302 defined as a `int[]' in `reader.c'. For consistency with the
2303 other output tables, `user_toknums' is now defined as a table of
2306 * src/reader.c (user_toknums): Be a short table instead of an int
2308 Adjust dependencies.
2310 Factor the short table outputs.
2312 * src/output.c (output_short_table): New function.
2313 * src/output.c (output_gram, output_stos, output_rule_data)
2314 (output_base, output_table, output_check): Use it.
2316 2000-10-02 Akim Demaille <akim@epita.fr>
2318 * src/output.c (output): Topological sort of the functions, in
2319 order to get rid of the `static' prototypes.
2320 No longer use `register'.
2321 * src/output.h: New file.
2322 Propagate its inclusion in files explicitly prototyping functions
2325 2000-09-21 Akim Demaille <akim@epita.fr>
2327 * src/atgeneral.m4: Update from Autoconf.
2329 2000-09-21 Akim Demaille <akim@epita.fr>
2331 * src/closure.h: New file.
2332 * src/closure.c: Formatting changes, topological sort over the
2333 functions, use of closure.h.
2334 (initialize_closure, finalize_closure): Rename as...
2335 (new_closure, free_closure): these. Adjust dependencies.
2336 * src/LR0.c: Formatting changes, topological sort, use of
2338 (initialize_states): Rename as...
2340 * src/Makefile.am (noinst_HEADERS): Adjust.
2342 2000-09-20 Akim Demaille <akim@epita.fr>
2344 * src/acconfig.h: Don't protect config.h against multiple
2346 Don't define PARAMS.
2347 * src/system.h: Define PARAMS.
2348 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2349 purpose of config.h. system.h must not try to fix wrong
2350 definitions in config.h.
2352 2000-09-20 Akim Demaille <akim@epita.fr>
2354 * src/derives.h: New file.
2355 * src/main.c, src/derives.h: Use it.
2357 * src/Makefile.am (noinst_HEADERS): Adjust.
2359 2000-09-20 Akim Demaille <akim@epita.fr>
2361 * tests/atgeneral.m4: Update from Autoconf.
2362 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2363 (AT_CHECK_CALC): New macros.
2364 Use these macros to test bison with options `', `--raw',
2365 `--debug', `--yacc', `--yacc --debug'.
2367 2000-09-19 Akim Demaille <akim@epita.fr>
2369 * src/output.c: Formatting changes.
2370 * src/machine.h: Remove, leaving its contents in...
2371 * src/system.h: here.
2373 Adjust all dependencies on stdio.h and machine.h.
2374 * src/getargs.h: New file.
2375 Let all `extern' declarations about getargs.c be replaced with
2376 inclusion of `getargs.h'.
2377 * src/Makefile.am (noinst_HEADERS): Adjust.
2379 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2381 (yyerror): Returns void, not int.
2382 * doc/bison.texinfo: Formatting changes.
2384 2000-09-19 Akim Demaille <akim@epita.fr>
2386 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2389 2000-09-18 Akim Demaille <akim@epita.fr>
2391 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2392 * src/Makefile.am (INCLUDES): Don't.
2393 Be ready to fetch headers in lib/.
2395 2000-09-18 Akim Demaille <akim@epita.fr>
2397 * doc/bison.texinfo: Update the copyright.
2398 ANSIfy and GNUify the examples.
2399 Remove the old menu.
2401 2000-09-18 Akim Demaille <akim@epita.fr>
2403 First set of tests: use the `calc' example from the documentation.
2405 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2406 is defined only when YYDEBUG is.
2407 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2408 * src/files.c (tryopen, tryclose): Formatting changes.
2409 Move to the top and be static.
2410 * src/reader.c (read_signed_integer): Likewise.
2411 * tests/calc.m4: New file.
2412 * Makefile.am, suite.m4: Adjust.
2413 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2415 2000-09-18 Akim Demaille <akim@epita.fr>
2417 Add support for an Autotest test suite for Bison.
2419 * m4/m4.m4, m4/atconfig.m4: New files.
2420 * m4/Makefile.am (EXTRA_DIST): Adjust.
2421 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2423 * src/getargs.c: Display a more standard --version message.
2424 * src/reader.c (reader): Formatting changes.
2425 No longer depend upon VERSION_STRING.
2426 * configure.in: No longer use `dnl'.
2427 Set up the test suite and the new directory `tests/.
2428 (VERSION_STRING): Remove.
2430 2000-04-14 Akim Demaille <akim@epita.fr>
2432 * src/reader.c (copy_comment2): New function, same as former
2433 `copy_comment', but outputs into two FILE *.
2434 (copy_comment): Use it.
2435 (parse_union_decl): Use it.
2436 (get_type, parse_start_decl): Use the same `invalid' message.
2437 (parse_start_decl, parse_union_decl): Use the same `multiple'
2439 (parse_union_decl, copy_guard, copy_action): Use the same
2440 `unmatched' message.
2441 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2443 2000-03-31 Akim Demaille <akim@epita.fr>
2445 * src/files.c (tryopen, tryclose): Move to the top.
2448 2000-03-31 Akim Demaille <akim@epita.fr>
2450 * src/main.c (main): Don't call `done', exit does it.
2452 2000-03-31 Akim Demaille <akim@epita.fr>
2454 * allocate.c: s/return (foo)/return foo/.
2457 * output.c: Likewise.
2458 * reader.c: Likewise.
2459 * symtab.c: Likewise.
2460 * vmsgetargs.c: Likewise.
2462 2000-03-31 Akim Demaille <akim@epita.fr>
2464 Clean up the error reporting functions.
2466 * src/report.c: New file.
2467 * src/report.h: Likewise.
2468 * src/Makefile.am: Adjust.
2469 * m4/error.m4: New file.
2470 * m4/Makefile.am: Adjust.
2471 * configure.in (jm_PREREQ_ERROR): Call it.
2472 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2474 (fatal, fatals): Remove. All callers use complain.c::fatal.
2475 (warn, warni, warns, warnss, warnss): Remove. All callers use
2476 complain.c::complain.
2477 (toomany): Remove, use fatal instead.
2478 * src/files.c (done): No argument, use complain_message_count.
2479 * src/main.c (main): Register `done' to `atexit'.
2481 * src/getargs.c (usage): More `fputs', less `fprintf'.
2483 2000-03-28 Akim Demaille <akim@epita.fr>
2485 * lib/: New directory.
2486 * Makefile.am (SUBDIRS): Adjust.
2487 * configure.in: Adjust.
2488 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2490 * src/alloca.c: Moved to lib/.
2491 * src/getopt.c: Likewise.
2492 * src/getopt1.c: Likewise.
2493 * src/getopt.h: Likewise.
2494 * src/ansi2knr.c: Likewise.
2495 * src/ansi2knr.1: Likewise.
2496 * src/Makefile.am: Adjust.
2497 * lib/Makefile.am: New file.
2499 2000-03-28 Akim Demaille <akim@epita.fr>
2501 * src/getargs.c (usage): Refresh the help message.
2503 2000-03-17 Akim Demaille <akim@epita.fr>
2505 * src/getopt1.c: Updated from textutils 2.0e
2506 * src/getopt.c: Likewise.
2507 * src/getopt.h: Likewise.
2509 2000-03-17 Akim Demaille <akim@epita.fr>
2511 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2512 the file name, not the whole `#line LINE FILE'.
2514 2000-03-17 Akim Demaille <akim@epita.fr>
2516 On syntax errors, report the token on which we choked.
2518 * src/bison.s1 (yyparse): In the label yyerrlab, when
2519 YYERROR_VERBOSE, add yychar in msg.
2521 2000-03-17 Akim Demaille <akim@epita.fr>
2523 * src/reader.c (copy_at): New function.
2524 (copy_guard): Use it.
2525 (copy_action): Use it.
2527 2000-03-17 Akim Demaille <akim@epita.fr>
2529 Be kind to translators, save some useless translations.
2531 * src/main.c (banner): New function.
2532 (fatal_banner): Use it.
2533 (warn_banner): Use it.
2535 2000-03-17 Akim Demaille <akim@epita.fr>
2537 * src/reader.c (copy_definition): Use copy_string and
2538 copy_comment. Removed now unused `match', `ended',
2540 (copy_comment, copy_string): Moved, to be visible from
2543 2000-03-17 Akim Demaille <akim@epita.fr>
2545 * src/reader.c (copy_string): Declare `static inline'. No
2546 problems with inline, since it is checked by configure.
2547 (copy_comment): Likewise.
2549 2000-03-17 Akim Demaille <akim@epita.fr>
2551 * src/reader.c (packsymbols): Formatting changes.
2553 2000-03-17 Akim Demaille <akim@epita.fr>
2555 * src/reader.c (copy_comment): New function, factored out from:
2556 (copy_action): Use it. Removed now unused `match', `ended',
2558 (copy_guard): Likewise.
2560 2000-03-17 Akim Demaille <akim@epita.fr>
2562 * src/reader.c (copy_string): New function, factored out from:
2563 (copy_action): Use it.
2564 (copy_guard): Likewise.
2566 2000-03-17 Akim Demaille <akim@epita.fr>
2568 Change the handling of @s so that they behave exactly like $s.
2569 There is now a pseudo variable @$ (readble and writable), location
2570 of the lhs of the rule (by default ranging from the location of
2571 the first symbol of the rhs, to the location of the last symbol,
2572 or, if the rhs is empty, YYLLOC).
2574 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2576 (yyparse): When providing a default semantic action, provide a
2577 default location action.
2578 (after the $): No longer change `*YYLSP', just stack YYLOC the
2579 same way you stack YYVAL.
2580 * src/reader.c (read_declarations): Use warns.
2581 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2582 (copy_action, case '@'): Likewise.
2583 Use a standard error message, to save useless work from
2586 2000-03-17 Akim Demaille <akim@epita.fr>
2588 * src/bison.s1: Formatting and cosmetics changes.
2589 * src/reader.c: Likewise.
2590 Update the Copyright notice.
2592 2000-03-17 Akim Demaille <akim@epita.fr>
2594 * src/bison.s1 (#line): All set to `#line' only, since the
2595 Makefile now handles them.
2597 2000-03-16 Akim Demaille <akim@epita.fr>
2599 * src/output.c (output_rule_data): Output the documentation of
2601 (Copyright notice): Update.
2604 2000-03-16 Akim Demaille <akim@epita.fr>
2606 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2607 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2608 One `#if YYDEBUG' remains, since it uses variables which are
2609 defined only if `YYDEBUG != 0'.
2611 2000-03-16 Akim Demaille <akim@epita.fr>
2613 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2614 and related variables so that the similarities are highlighted.
2616 2000-03-16 Akim Demaille <akim@epita.fr>
2618 * src/bison.s1: Properly indent CPP directives.
2620 2000-03-16 Akim Demaille <akim@epita.fr>
2622 * src/bison.s1: Properly indent the `alloca' CPP section.
2624 2000-03-16 Akim Demaille <akim@epita.fr>
2626 Do not hard code values of directories in `configure.in'.
2627 Update the `configure' tool chain.
2629 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2631 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2632 (AC_OUTPUT): Add m4/Makefile.
2633 Bump to bison 1.28a, 1.29 has never been released.
2634 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2635 handled via src/Makefile.am.
2636 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2637 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2639 * Makefile.am (SUBDIRS): Add m4.
2640 (ACLOCAL_AM_FLAGS): New variable.
2641 (AUTOMAKE_OPTIONS): Add check-news.
2642 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2643 the proper line number and file name.
2644 (DEFS): Propagate the location of bison library files and of the
2646 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2648 * acinclude.m4: Remove, replaced by the directory m4.
2649 * m4/Makefile.am (EXTRA_DIST): New variable.
2650 * m4/gettext.m4: New file, from the fileutils.
2651 * m4/lcmessage.m4: Likewise
2652 * m4/progtest.m4: Likewise.
2653 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2655 2000-03-10 Akim Demaille <akim@epita.fr>
2658 Formatting changes of various comments.
2659 Respect the GNU coding standards at various places.
2660 Don't use `_()' when no translation is needed.
2662 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2665 OS/2 honors TMPDIR environment variable.
2667 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2669 * doc/bison.texinfo: Tweaked spelling and grammar.
2671 Removed reference to price of printed copy.
2672 Mention BISON_SIMPLE and BISON_HAIRY.
2674 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2676 * configure.in, NEWS:
2677 Bison 1.29 released.
2679 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2681 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2682 Added reference card.
2684 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2686 * po/ru.po: Added Russian translation.
2688 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2690 * configure.in: Added Russian translation.
2692 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2694 * configure.in, NEWS, README:
2695 Released version 1.28.
2697 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2700 Squashed redefinition warning on some systems.
2702 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2703 Have configure build version string instead of relying on ANSI string
2706 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2708 * po/POTFILES.in: Got rid of version.c.
2710 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2712 * acconfig.h, configure.in:
2713 Have configure build version string instead of relying on ANSI string
2716 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2719 Dropped mention of `+' for long-named options.
2721 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2723 * src/files.c: Added <unistd.h> for unlink().
2725 * src/Makefile.am, src/system.h:
2728 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2730 * README: Added a FAQ list.
2732 * configure.in, acconfig.h:
2735 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2737 * doc/FAQ, doc/Makefile.am:
2740 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2742 * src/alloc.h, src/symtab.h, src/version.c:
2743 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2745 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2747 * src/.cvsignore, src/Makefile.am:
2748 Reorganized: sources in `src', documentation in `doc'.
2750 * src/lex.c (literalchar):
2751 fixed the code for escaping double quotes (thanks
2754 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2756 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2757 Adjusted paths to reflect directory reorganization.
2759 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2761 * doc/.cvsignore, doc/Makefile.am:
2762 Reorganized: sources in `src', documentation in `doc'.
2764 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2767 Updated AC_INIT file to reflect directory reorganization.
2769 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2770 Reorganized: sources in `src', documentation in `doc'.
2772 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2775 Don't declare calloc() and realloc() if not necessary.
2777 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2779 * configure.in, acconfig.h, acinclude.m4:
2780 Don't declare calloc() and realloc() if not necessary.
2782 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2784 * po/.cvsignore: Added i18n support.
2786 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2788 * acconfig.h, configure.in, Makefile.am:
2791 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2793 * src/bison.s1: Fixed #line numbers.
2795 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2797 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2798 Added PO files from Translation Project.
2800 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2803 Added support for non-ANSI compilers (ansi2knr).
2805 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2807 * configure.in: Bumped version number to 1.27.
2810 Added `bison.simple' to list of files removed by `make distclean'.
2812 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2814 * src/files.c, src/files.h:
2815 Defined locations of parser files in config.h instead of Makefile.
2817 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2819 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2820 Defined locations of parser files in config.h instead of Makefile.
2822 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2825 Removed inappropriate use of $< macro.
2827 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2829 * po/Makefile.in.in, po/POTFILES.in:
2830 Add `po' directory skeleton.
2832 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2834 * README: Document help-bison list.
2836 * configure.in: Add check for mkstemp().
2838 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2840 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2841 Hush a few compiler warnings.
2844 Add tryclose(), which verifies that fclose was successful.
2845 Hush a couple of compiler warnings.
2847 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2849 * Makefile.am, OChangeLog:
2850 ChangeLog is now automatically generated. Include the old version as
2853 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2855 * 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:
2858 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2860 * doc/bison.texinfo: Fix formatting glitch.
2862 * doc/bison.texinfo: Update FSF address.
2864 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2866 * acconfig.h: Update FSF address.
2868 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2871 Don't define PACKAGE here, since config.h defines it.
2873 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2875 * src/reader.c: Update copyright date.
2878 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2879 favor of output directly to stderr (avoids buffer overruns).
2881 * src/reader.c: Some checks for premature EOF.
2883 * 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:
2884 Use prototypes if the compiler understands them.
2886 * src/files.c: Honor TMPDIR on Unix hosts.
2887 Use prototypes if the compiler understands them.
2890 Fix a couple of buffer overrun bugs.
2891 Use prototypes if the compiler understands them.
2893 * src/system.h: Include unistd.h and ctype.h.
2894 Use #ifdef instead of #if for NLS symbols.
2896 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2898 * doc/bison.texinfo:
2899 Delete comment "consider using @set for edition number, etc..." since
2900 we now are doing so.
2902 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2905 Use prototypes if the compiler understands them.
2907 * NEWS: Document 1.26 highlights.
2909 * Makefile.am: Require Automake 1.3 or later.
2912 Use prototypes if the compiler understands them.
2914 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2917 Use VERSION symbol from automake for version number.
2919 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2921 * acconfig.h, configure.in, version.cin:
2922 Use VERSION symbol from automake for version number.
2924 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2927 Distribute original version of simple parser (bison.s1), not built
2928 version (bison.simple).
2930 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2932 * doc/bison.texinfo: Add info dir entry.
2934 * doc/bison.texinfo:
2935 Let automake put version number into documentation.
2937 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2939 * src/bison.cld, src/build.com, src/vmshlp.mar:
2940 Add non-RCS files from /gd/gnu/bison.
2942 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2945 Document the BISON_HAIRY and BISON_SIMPLE variables.
2947 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2949 * src/version.c: Build version.c automatically.
2952 Fix token numbering (used to start at 258, not 257).
2954 * src/system.h: Include config.h.
2956 * src/getargs.c: Update bug report address.
2958 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2959 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2961 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2964 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2966 * configure.in, version.cin:
2967 Build version.c automatically.
2969 * AUTHORS: Add AUTHORS file.
2971 * README: Update bug report address.
2974 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2976 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2979 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2981 * doc/bison.texinfo: Clean up some formatting.
2983 1998-05-05 Richard Stallman <rms@gnu.org>
2985 * doc/bison.texinfo:
2986 Explain better why to make a pure parser.
2988 1998-01-05 Richard Stallman <rms@gnu.org>
2990 * src/files.c (openfiles):
2991 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2992 find a temporary directory, if possible. Do not unlink files while
2995 1997-08-25 Richard Stallman <rms@gnu.org>
2997 * src/reader.c (stack_offset;):
2998 Change some warni to warns.
3000 * src/lex.c (literalchar): Use warns, not warni.
3002 1997-06-28 Richard Stallman <rms@gnu.org>
3004 * src/bison.s1: Add a Bison version comment.
3006 * src/main.c (fatal, warn, berror):
3009 1997-06-28 Richard Stallman <rms@gnu.org>
3011 * Makefile.in (bison_version): New variable.
3012 (dist): Use that variable.
3013 (bison.s1): Substitute the Bison version into bison.simple.
3015 * bison.simple: Add a Bison version comment.
3017 1997-06-18 Richard Stallman <rms@gnu.org>
3019 * src/main.c (fatal, warn, berror):
3020 Make error messages standard.
3021 (toomany): Improve error message text.
3023 * 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:
3024 new.h renamed to alloc.h.
3026 1997-06-18 Richard Stallman <rms@gnu.org>
3028 * Makefile.in: new.h renamed to alloc.h.
3030 1997-05-24 Richard Stallman <rms@gnu.org>
3032 * src/lex.c (literalchar):
3033 Fix the code for escaping \, " and '.
3035 (lex): Avoid trouble when there are many chars
3036 to discard in a char literal with just several chars in it.
3038 1997-05-17 Richard Stallman <rms@gnu.org>
3041 Use malloc, if using alloca is troublesome.
3042 (YYSTACK_USE_ALLOCA): New flag macro.
3043 Define it for some systems and compilers.
3044 (YYSTACK_ALLOC): New macro.
3045 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3046 If it was malloc'd, free it.
3048 1997-05-17 Richard Stallman <rms@gnu.org>
3051 Use malloc, if using alloca is troublesome.
3052 (YYSTACK_USE_ALLOCA): New flag macro.
3053 Define it for some systems and compilers.
3054 (YYSTACK_ALLOC): New macro.
3055 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3056 If it was malloc'd, free it.
3058 1997-04-23 Richard Stallman <rms@gnu.org>
3061 (alloca) [__hpux]: Always define as __builtin_alloca.
3063 1997-04-23 Richard Stallman <rms@gnu.org>
3066 (alloca) [__hpux]: Always define as __builtin_alloca.
3068 1997-04-22 Richard Stallman <rms@gnu.org>
3071 [__hpux]: Include alloca.h (right for HPUX 10)
3072 instead of declaring alloca (right for HPUX 9).
3074 * src/bison.s1 (__yy_memcpy):
3075 Declare arg `count' as unsigned int.
3076 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3078 1997-04-22 Richard Stallman <rms@gnu.org>
3081 [__hpux]: Include alloca.h (right for HPUX 10)
3082 instead of declaring alloca (right for HPUX 9).
3084 * bison.simple (__yy_memcpy):
3085 Declare arg `count' as unsigned int.
3086 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3088 1997-01-03 Richard Stallman <rms@gnu.org>
3090 * src/allocate.c: [__STDC__ or _MSC_VER]:
3091 Declare calloc and realloc to return void *.
3093 1997-01-02 Richard Stallman <rms@gnu.org>
3096 [_MSC_VER]: Include stdlib.h and process.h.
3097 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3099 * src/main.c (main): Return FAILURE as a value.
3100 (printable_version): Declare arg as int, not char.
3102 1997-01-02 Richard Stallman <rms@gnu.org>
3104 * Makefile.in (dist):
3105 Explicitly check for symlinks, and copy them.
3107 1996-12-19 Richard Stallman <rms@gnu.org>
3110 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3112 1996-12-18 Paul Eggert <eggert@gnu.org>
3114 * src/bison.s1 (yyparse):
3115 If __GNUC__ and YYPARSE_PARAM are both defined,
3116 declare yyparse to have a void * argument.
3118 1996-12-18 Paul Eggert <eggert@gnu.org>
3120 * bison.simple (yyparse):
3121 If __GNUC__ and YYPARSE_PARAM are both defined,
3122 declare yyparse to have a void * argument.
3124 1996-12-17 Richard Stallman <rms@gnu.org>
3126 * src/reduce.c (nbits): Add some casts.
3128 1996-08-12 Richard Stallman <rms@gnu.org>
3130 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3132 1996-08-12 Richard Stallman <rms@gnu.org>
3134 * bison.simple: Test _MSDOS as well as _MSDOS_.
3136 1996-07-31 Richard Stallman <rms@gnu.org>
3139 [__sun && __i386]: Include alloca.h.
3141 1996-07-31 Richard Stallman <rms@gnu.org>
3144 [__sun && __i386]: Include alloca.h.
3146 1996-07-30 Richard Stallman <rms@gnu.org>
3148 * src/bison.s1: Comment change.
3150 * src/bison.s1: Test _MSDOS_, not MSDOS.
3152 1996-07-30 Richard Stallman <rms@gnu.org>
3154 * bison.simple: Comment change.
3156 * bison.simple: Test _MSDOS_, not MSDOS.
3158 1996-06-01 Richard Stallman <rms@gnu.org>
3160 * 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:
3161 Insert `_' macro around many string constants.
3164 Insert `_' macro around many string constants.
3166 (main): Call setlocale, bindtextdomain and textdomain.
3168 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3169 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3170 [ENABLE_NLS]: Include libintl.h.
3171 [ENABLE_NLS] (gettext): Define.
3172 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3173 (N_, PACKAGE, LOCALEDIR): New macros.
3175 1996-06-01 Richard Stallman <rms@gnu.org>
3177 * POTFILES.in: New file.
3179 * Makefile.in (allocate.o):
3180 Define target explicitly.
3182 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3183 (LDFLAGS): Set to @LDFLAGS@.
3184 (configure): Run autoconf only if preceding `cd' succeeds.
3185 (bison.s1): Redirect output to temporary file then move the
3186 temporary to the target, rather than redirecting directly to bison.s1.
3187 (clean): Remove config.status and config.log.
3188 (distclean): Don't remove config.status here.
3190 1996-05-12 Richard Stallman <rms@gnu.org>
3193 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3195 1996-05-12 Richard Stallman <rms@gnu.org>
3198 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3200 1996-05-11 Richard Stallman <rms@gnu.org>
3202 * src/bison.s1 (__yy_memcpy):
3203 Really reorder the args, as was supposedly done on Feb 14 1995.
3204 (yyparse): Calls changed accordingly.
3206 1996-05-11 Richard Stallman <rms@gnu.org>
3208 * Makefile.in (dist): Don't use $(srcdir).
3210 * bison.simple (__yy_memcpy):
3211 Really reorder the args, as was supposedly done on Feb 14 1995.
3212 (yyparse): Calls changed accordingly.
3214 1996-01-27 Richard Stallman <rms@gnu.org>
3216 * src/output.c (output_rule_data):
3217 Test YYERROR_VERBOSE in the conditional
3218 around the definition of ttyname.
3220 1995-12-29 Richard Stallman <rms@gnu.org>
3223 Fix line numbers in #line commands.
3225 1995-12-29 Richard Stallman <rms@gnu.org>
3228 Fix line numbers in #line commands.
3230 1995-12-27 Richard Stallman <rms@gnu.org>
3232 * src/bison.s1 (YYPARSE_PARAM_DECL):
3233 In C++, make it always null.
3234 (YYPARSE_PARAM_ARG): New macro.
3235 (yyparse): Use YYPARSE_PARAM_ARG.
3237 1995-12-27 Richard Stallman <rms@gnu.org>
3239 * bison.simple (YYPARSE_PARAM_DECL):
3240 In C++, make it always null.
3241 (YYPARSE_PARAM_ARG): New macro.
3242 (yyparse): Use YYPARSE_PARAM_ARG.
3244 1995-11-29 Richard Stallman <rms@gnu.org>
3246 * doc/bison.texinfo:
3247 Describe literal string tokens, %raw, %no_lines, %token_table.
3249 1995-11-29 Daniel Hagerty <hag@gnu.org>
3251 * doc/bison.texinfo: Fixed update date
3253 1995-10-16 Richard Stallman <rms@gnu.org>
3255 * src/version.c: Version 1.25.
3257 1995-10-16 Richard Stallman <rms@gnu.org>
3259 * NEWS: *** empty log message ***
3261 1995-10-16 Richard Stallman <rms@gnu.org>
3263 * doc/bison.1, doc/bison.rnh:
3266 1995-10-15 Richard Stallman <rms@gnu.org>
3268 * src/vmsgetargs.c, src/getargs.c:
3269 Added -n, -k, and -raw switches.
3270 (noparserflag, toknumflag, rawtoknumflag): New variables.
3272 * src/symtab.h (SALIAS):
3273 New #define for adding aliases to %token.
3274 (struct bucket): Added `alias' field.
3276 * src/reduce.c (reduce_grammar):
3277 Revise error message.
3278 (print_notices): Remove final `.' from error message.
3280 * src/reader.c (reader_output_yylsp):
3282 (readgram): Use `#if 0' around code that accepted %command
3283 inside grammar rules: The documentation doesn't allow it,
3284 and it will fail since the %command processors scan for the next %.
3285 (parse_token_decl): Extended the %token
3286 declaration to allow a multi-character symbol as an alias.
3287 (parse_thong_decl): New function.
3288 (read_declarations): Added %thong declarations.
3289 (read_declarations): Handle NOOP to deal with allowing
3290 % declarations as another means to specify the flags.
3291 (readgram): Allow %prec prior to semantics embedded in a rule.
3292 (skip_to_char, read_declarations, copy_definition)
3293 (parse_token_decl, parse_start_decl, parse_type_decl)
3294 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3295 (get_type_name, copy_guard, copy_action, readgram)
3296 (get_type, packsymbols): Revised most error messages.
3297 Changed `fatal' to `warnxxx' to avoid aborting for error.
3298 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3299 (read_declarations): Improve the error message for
3300 an invalid character. Do not abort.
3301 (read_declarations, copy_guard, copy_action): Use
3302 printable_version to avoid unprintable characters in printed output.
3303 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3304 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3305 Allow the type of a non-terminal can be given
3306 more than once, as long as all specifications give the same type.
3309 (output_headers, output_trailers, output, output_gram)
3310 (output_rule_data): Implement noparserflag variable.
3311 Implement toknumflag variable.
3312 (output): Call reader_output_yylsp to output LTYPESTR.
3314 * src/main.c (main):
3315 If reader sees an error, don't process the grammar.
3316 (fatals): Updated to not use VARARGS1.
3317 (printable_version, int_to_string, warn, warni, warns, warnss)
3318 (warnsss): New error reporting functions. Avoid abort for error.
3321 Added THONG and NOOP for alias processing.
3322 Added SETOPT for the new code that allows setting options with %flags.
3325 Include getopt.h. Add some extern decls.
3326 (safegetc): New function to deal with EOF gracefully.
3327 (literalchar); new function to deal with reading \ escapes.
3328 (lex): Use literalchar.
3329 (lex): Implemented "..." tokens.
3330 (literalchar, lex, parse_percent_token): Made tokenbuffer
3331 always contain the token. This includes growing the token
3332 buffer while reading an integer.
3333 (parse_percent_token): Replaced if-else statement with percent_table.
3334 (parse_percent_token): Added % declarations as another
3335 way to specify the flags -n, -l, and -r. Also added hooks for
3336 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3337 major changes to files.c.
3338 (lex) Retain in the incoming stream a character following
3340 (skip_white_space, lex): Revised most error messages
3341 and changed fatal to warn to avoid aborting.
3342 (percent_table): Added %thong declarations.
3344 * src/gram.h: Comment changes.
3346 * src/files.c (openfiles, open_extra_files, done):
3348 and actfile file. Handle noparserflag. Both for -n switch.
3350 * src/conflicts.c (resolve_sr_conflict):
3351 Remove use of alloca.
3353 1995-06-01 Jim Meyering <meyering@gnu.org>
3355 * doc/bison.texinfo: *** empty log message ***
3357 1995-05-06 Richard Stallman <rms@gnu.org>
3359 * src/bison.s1: Comment change.
3361 1995-05-06 Richard Stallman <rms@gnu.org>
3363 * bison.simple: Comment change.
3365 1995-05-03 Richard Stallman <rms@gnu.org>
3367 * src/version.c: Version now 1.24.
3369 * src/bison.s1: Change distribution terms.
3371 * src/version.c: Version now 1.23.
3373 1995-05-03 Richard Stallman <rms@gnu.org>
3375 * doc/bison.texinfo:
3376 Rewrite "Conditions for Using Bison".
3377 Update version to 1.24.
3379 1995-05-03 Richard Stallman <rms@gnu.org>
3381 * bison.simple: Change distribution terms.
3383 1995-02-23 Richard Stallman <rms@gnu.org>
3385 * src/files.c: Test __VMS_POSIX as well as VMS.
3387 1995-02-14 Jim Meyering <meyering@gnu.org>
3389 * src/bison.s1 (__yy_memcpy):
3390 Renamed from __yy_bcopy to avoid
3391 confusion. Reverse FROM and TO arguments to be consistent with
3394 1995-02-14 Jim Meyering <meyering@gnu.org>
3396 * bison.simple (__yy_memcpy):
3397 Renamed from __yy_bcopy to avoid
3398 confusion. Reverse FROM and TO arguments to be consistent with
3401 1994-11-10 David J. MacKenzie <djm@gnu.org>
3407 * Makefile.in (DISTFILES): Include NEWS.
3409 * Makefile.in (DISTFILES):
3410 Include install-sh, not install.sh.
3412 * configure.in: Update to Autoconf v2 macro names.
3414 1994-10-05 David J. MacKenzie <djm@gnu.org>
3416 * Makefile.in: fix typo
3418 * Makefile.in (prefix, exec_prefix):
3419 Let configure set them.
3421 1994-09-28 David J. MacKenzie <djm@gnu.org>
3423 * Makefile.in: Set datadir to $(prefix)/share.
3425 1994-09-15 Richard Stallman <rms@gnu.org>
3428 Update copyright notice and GPL version.
3430 1994-09-15 Richard Stallman <rms@gnu.org>
3433 Update copyright notice and GPL version.
3435 1994-07-12 Richard Stallman <rms@gnu.org>
3437 * src/reduce.c, src/reader.c:
3440 1994-05-05 David J. MacKenzie <djm@gnu.org>
3442 * Makefile.in: entered into RCS
3444 1994-03-26 Richard Stallman <rms@gnu.org>
3446 * src/bison.s1: entered into RCS
3448 1994-03-26 Richard Stallman <rms@gnu.org>
3450 * bison.simple: entered into RCS
3452 1994-03-25 Richard Stallman <rms@gnu.org>
3454 * src/main.c: entered into RCS
3456 1994-03-24 Richard Stallman <rms@gnu.org>
3458 * src/conflicts.c: entered into RCS
3460 1994-01-02 Richard Stallman <rms@gnu.org>
3462 * Makefile.in: *** empty log message ***
3464 1993-11-21 Richard Stallman <rms@gnu.org>
3466 * src/bison.s1: *** empty log message ***
3468 1993-11-21 Richard Stallman <rms@gnu.org>
3470 * doc/bison.texinfo: entered into RCS
3472 * doc/bison.texinfo: *** empty log message ***
3474 1993-11-21 Richard Stallman <rms@gnu.org>
3476 * bison.simple: *** empty log message ***
3478 1993-10-25 David J. MacKenzie <djm@gnu.org>
3480 * doc/bison.texinfo: *** empty log message ***
3482 1993-10-19 Richard Stallman <rms@gnu.org>
3484 * src/bison.s1: *** empty log message ***
3486 1993-10-19 Richard Stallman <rms@gnu.org>
3488 * bison.simple: *** empty log message ***
3490 1993-10-14 Richard Stallman <rms@gnu.org>
3492 * src/bison.s1: *** empty log message ***
3494 1993-10-14 Richard Stallman <rms@gnu.org>
3496 * bison.simple: *** empty log message ***
3498 1993-09-14 David J. MacKenzie <djm@gnu.org>
3500 * doc/bison.texinfo: *** empty log message ***
3502 1993-09-13 Noah Friedman <friedman@gnu.org>
3504 * Makefile.in: *** empty log message ***
3506 1993-09-10 Richard Stallman <rms@gnu.org>
3508 * src/conflicts.c: *** empty log message ***
3510 * src/system.h: entered into RCS
3512 1993-09-10 Richard Stallman <rms@gnu.org>
3514 * doc/bison.1: entered into RCS
3516 1993-09-06 Noah Friedman <friedman@gnu.org>
3518 * src/version.c: entered into RCS
3520 1993-09-06 Noah Friedman <friedman@gnu.org>
3522 * Makefile.in: *** empty log message ***
3524 1993-07-30 David J. MacKenzie <djm@gnu.org>
3526 * Makefile.in: *** empty log message ***
3528 1993-07-24 Richard Stallman <rms@gnu.org>
3530 * src/bison.s1: *** empty log message ***
3532 1993-07-24 Richard Stallman <rms@gnu.org>
3534 * bison.simple: *** empty log message ***
3536 1993-07-08 David J. MacKenzie <djm@gnu.org>
3538 * Makefile.in: *** empty log message ***
3540 1993-07-04 Richard Stallman <rms@gnu.org>
3542 * src/bison.s1: *** empty log message ***
3544 1993-07-04 Richard Stallman <rms@gnu.org>
3546 * bison.simple: *** empty log message ***
3548 1993-06-26 David J. MacKenzie <djm@gnu.org>
3550 * src/getargs.c: entered into RCS
3552 1993-06-26 David J. MacKenzie <djm@gnu.org>
3554 * doc/bison.texinfo: *** empty log message ***
3556 * doc/bison.1: New file.
3558 1993-06-25 Richard Stallman <rms@gnu.org>
3560 * src/getargs.c: New file.
3562 1993-06-16 Richard Stallman <rms@gnu.org>
3564 * src/bison.s1: *** empty log message ***
3566 1993-06-16 Richard Stallman <rms@gnu.org>
3568 * bison.simple: *** empty log message ***
3570 1993-06-03 Richard Stallman <rms@gnu.org>
3572 * src/bison.s1: New file.
3574 1993-06-03 Richard Stallman <rms@gnu.org>
3576 * doc/bison.texinfo: *** empty log message ***
3578 1993-06-03 Richard Stallman <rms@gnu.org>
3580 * bison.simple: New file.
3582 1993-05-19 Richard Stallman <rms@gnu.org>
3584 * doc/bison.texinfo: New file.
3586 1993-05-07 Noah Friedman <friedman@gnu.org>
3588 * Makefile.in: *** empty log message ***
3590 1993-04-28 Noah Friedman <friedman@gnu.org>
3592 * src/reader.c: *** empty log message ***
3594 1993-04-23 Noah Friedman <friedman@gnu.org>
3596 * src/alloc.h: entered into RCS
3598 1993-04-20 David J. MacKenzie <djm@gnu.org>
3600 * src/version.c: *** empty log message ***
3602 * src/files.c, src/allocate.c:
3605 * src/reader.c: *** empty log message ***
3607 * src/lex.c: entered into RCS
3609 * src/conflicts.c: New file.
3611 * src/symtab.c: entered into RCS
3613 * src/alloc.h: New file.
3615 * src/LR0.c: entered into RCS
3617 1993-04-18 Noah Friedman <friedman@gnu.org>
3619 * src/reader.c: New file.
3621 * src/version.c: *** empty log message ***
3623 1993-04-18 Noah Friedman <friedman@gnu.org>
3625 * Makefile.in: *** empty log message ***
3627 1993-04-17 Noah Friedman <friedman@gnu.org>
3629 * Makefile.in: *** empty log message ***
3631 1993-04-15 Richard Stallman <rms@gnu.org>
3633 * src/main.c, src/files.c:
3636 1993-04-15 Noah Friedman <friedman@gnu.org>
3638 * configure.in: entered into RCS
3640 * configure.in: *** empty log message ***
3642 * configure.in: New file.
3644 1993-04-14 Richard Stallman <rms@gnu.org>
3646 * Makefile.in: New file.
3648 1993-04-13 Richard Stallman <rms@gnu.org>
3650 * src/version.c: New file.
3652 1993-03-25 Richard Stallman <rms@gnu.org>
3654 * src/output.c: entered into RCS
3656 1992-09-25 Richard Stallman <rms@gnu.org>
3658 * configure.bat: entered into RCS
3660 1992-06-22 Richard Stallman <rms@gnu.org>
3662 * src/vmsgetargs.c: entered into RCS
3664 1992-06-22 Richard Stallman <rms@gnu.org>
3666 * doc/bison.rnh: entered into RCS
3668 1992-04-20 David J. MacKenzie <djm@gnu.org>
3670 * README: entered into RCS
3672 1992-01-22 Richard Stallman <rms@gnu.org>
3674 * src/machine.h: entered into RCS
3676 1991-12-21 Richard Stallman <rms@gnu.org>
3678 * src/lalr.c, src/closure.c:
3681 1991-12-20 Richard Stallman <rms@gnu.org>
3683 * src/state.h: entered into RCS
3685 1991-12-18 Richard Stallman <rms@gnu.org>
3687 * src/print.c, src/nullable.c, src/derives.c:
3690 1991-11-03 David J. MacKenzie <djm@gnu.org>
3692 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3695 1988-09-09 Richard Stallman <rms@gnu.org>
3697 * src/bison.hairy: entered into RCS
3699 1987-12-16 Richard Stallman <rms@gnu.org>
3701 * REFERENCES: entered into RCS