1 2001-11-01 Akim Demaille <akim@epita.fr>
3 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
4 Check that `9foo.y' produces correct cpp guards.
5 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
9 2001-11-01 Akim Demaille <akim@epita.fr>
11 * tests/regression.at (Invalid input: 2): New.
12 * src/lex.c (unlexed_token_buffer): New.
13 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
17 2001-11-01 Akim Demaille <akim@epita.fr>
19 * tests/calc.at: Catch up with 1.30.
20 * configure.in: Bump to 1.49a.
21 Adjust to newer Autotest.
23 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
25 * src/conflicts.c: Move global variables rrc_total and src_total ...
26 (print_conflicts): here.
27 * src/output.c (output): Free global variable user_toknums.
28 * src/lex.c (token_obstack): Become static.
30 2001-10-18 Akim Demaille <akim@epita.fr>
32 * tests/atlocal.in (GCC): Add.
33 * tests/calc.at: s/m4_match/m4_bmatch/.
34 s/m4_patsubst/m4_bpatsubst/.
35 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
36 * configure.in: AC_SUBST(GCC).
38 2001-10-14 Marc Autret <autret_m@epita.fr>
40 * src/options.c (create_long_option_table): Fix.
42 2001-10-10 Akim Demaille <akim@epita.fr>
44 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
46 2001-10-04 Akim Demaille <akim@epita.fr>
48 * src/reader.c (parse_union_decl): Push the caracters in
49 union_obstack, not attrs_obstack.
51 2001-10-04 Akim Demaille <akim@epita.fr>
53 Merge in the branch 1.29.
55 * src/reader.c (packsymbols): Use a temporary obstack for
56 `%%tokendef', since output_stack is already used elsewhere.
58 2001-10-02 Akim Demaille <akim@epita.fr>
62 2001-10-02 Akim Demaille <akim@epita.fr>
66 2001-10-02 Akim Demaille <akim@epita.fr>
68 * tests/regression.at (Invalid CPP headers): New.
69 From Alexander Belopolsky.
70 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
72 2001-10-02 Akim Demaille <akim@epita.fr>
74 * tests/regression.at (Invalid input): New.
75 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
78 2001-10-02 Akim Demaille <akim@epita.fr>
80 * tests/calc.at: Now that --debug works, the tests must be adjusted.
82 2001-10-02 Akim Demaille <akim@epita.fr>
84 * src/output.c (output_parser): Assert `skeleton'.
85 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
89 2001-10-01 Marc Autret <autret_m@epita.fr>
91 * src/lex.h: Echo modifications.
92 * src/lex.c (unlex): Parameter is now token_t.
95 2001-10-01 Marc Autret <autret_m@epita.fr>
97 * src/main.c: Include lex.h.
100 2001-09-29 Akim Demaille <akim@epita.fr>
102 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
104 2001-09-28 Akim Demaille <akim@epita.fr>
106 * tests/testsuite.at: Update to newer Autotest.
107 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
109 2001-09-27 Akim Demaille <akim@epita.fr>
111 Position independent wrapper.
113 * tests/bison: Remove.
114 * tests/bison.in: New.
115 * configure.in: Adjust.
117 2001-09-27 Paul Eggert <eggert@twinsun.com>
119 Port quotearg fixes from tar 1.13.24.
121 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
123 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
124 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
127 * m4/mbrtowc.m4: New file.
128 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
129 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
131 2001-09-27 Akim Demaille <akim@epita.fr>
135 2001-09-27 Akim Demaille <akim@epita.fr>
139 2001-09-25 Akim Demaille <akim@epita.fr>
141 * src/system.h: Include `xalloc.h'.
142 Remove it from the C files.
143 * src/files.c (output_files): Free the obstacks.
144 * src/lex.c (init_lex): Rename as...
147 * src/main.c (main): Use it.
149 2001-09-24 Marc Autret <autret_m@epita.fr>
151 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
152 to output informations in fout (FILE*).
153 (open_graph, close_graph): Likewise.
154 (output_graph, output_edge, output_node): Likewise.
155 * src/vcg.h: Update function prototypes.
156 * src/print_graph.c (print_graph): Open output graph file.
157 (print_actions): Adjust.
158 * src/files.h: Remove extern declaration.
159 * src/files.c: Remove graph_obstack declaration.
160 (open_files): Remove graph_obstack initialization.
161 (output_files): Remove graph_obstack saving.
163 2001-09-24 Marc Autret <autret_m@epita.fr>
165 * src/files.c (compute_output_file_names): Fix.
167 2001-09-24 Marc Autret <autret_m@epita.fr>,
168 Akim Demaille <akim@epita.fr>
170 * src/reader.c (reader): Remove call to free_symtab ().
171 * src/main.c (main): Call it here.
173 * src/conflicts.c (initialize_conflicts): Rename as...
174 (solve_conflicts): this.
175 * src/print.c (print_core, print_actions, print_state)
176 (print_grammar): Dump to a file instead a `output_obstack'.
177 (print_results): Dump `output_obstack', and then proceed with the
179 * src/files.c (compute_output_file_names, close_files): New.
180 (output_files): Adjust.
181 * src/main.c (main): Adjust.
183 2001-09-23 Marc Autret <autret_m@epita.fr>
185 * src/files.c (compute_header_macro): Computes header macro name
186 from spec_defines_file when given.
188 2001-09-23 Marc Autret <autret_m@epita.fr>
190 * src/files.c (output_files): Add default extensions.
192 2001-09-22 Akim Demaille <akim@epita.fr>
194 * src/conflicts.c (finalize_conflicts): Rename as...
195 (free_conflicts): this.
197 2001-09-22 Akim Demaille <akim@epita.fr>
199 * src/gram.c (gram_free): Rename back as...
201 (output_token_translations): Free `token_translations'.
202 * src/symtab.c (free_symtab): Free the tag field.
204 2001-09-22 Akim Demaille <akim@epita.fr>
206 Remove `translations' as it is always set to true.
208 * src/gram.h: Adjust.
209 * src/reader.c (packsymbols, parse_token_decl): Adjust
210 * src/print.c (print_grammar): Adjust.
211 * src/output.c (output_token_translations): Adjust.
212 * src/lex.c (lex): Adjust.
213 * src/gram.c: Be sure the set pointers to NULL.
214 (dummy): Rename as...
217 2001-09-22 Akim Demaille <akim@epita.fr>
219 * configure.in: Invoke AM_LIB_DMALLOC.
220 * src/system.h: Use dmalloc.
221 * src/LR0.c: Be sure to have pointers initialized to NULL.
222 (allocate_itemsets): Allocate kernel_items only if needed.
224 2001-09-22 Akim Demaille <akim@epita.fr>
226 * configure.in: Bump to 1.29b.
227 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
228 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
229 need xmalloc.c in calc.y.
232 2001-09-21 Akim Demaille <akim@epita.fr>
235 * Makefile.maint, config/config.guess, config/config.sub,
236 * config/missing: Update from masters.
237 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
239 * configure.in (ALL_LINGUAS): Add `tr'.
241 2001-09-21 Akim Demaille <akim@epita.fr>
243 * tests/Makefile.am (package.m4): Move to...
244 ($(srcdir)/$(TESTSUITE)): here.
246 2001-09-20 Akim Demaille <akim@epita.fr>
248 * src/complain.c: No longer try to be standalone: use system.h.
249 Don't assume __STDC__ is defined to 1. Just test if it is defined.
250 * src/complain.h: Likewise.
251 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
252 Remove the unused variable `n'.
253 From Albert Chin-A-Young.
255 2001-09-18 Marc Autret <autret_m@epita.fr>
257 * doc/bison.1: Update.
258 * doc/bison.texinfo (Bison Options): Update --defines and --graph
260 (Option Cross Key): Update.
263 2001-09-18 Marc Autret <autret_m@epita.fr>
265 * tests/regression.at: New test (comment in %union).
267 2001-09-18 Marc Autret <autret_m@epita.fr>
269 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
271 Reported by Keith Browne.
273 2001-09-18 Marc Autret <autret_m@epita.fr>
275 * tests/output.at: Add tests for --defines and --graph.
277 2001-09-18 Marc Autret <autret_m@epita.fr>
279 * tests/output.at: Removes tests of %{header,src}_extension features.
281 2001-09-18 Akim Demaille <akim@epita.fr>
283 * tests/Makefile.am (package.m4): New.
284 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
285 (_AT_CHECK_CALC_ERROR): Likewise.
286 Factor the `, ' part of verbose error messages.
288 2001-09-18 Marc Autret <autret_m@epita.fr>
290 * src/getargs.c (longopts): Declare --defines and --graph as options
291 with optional arguments.
292 * src/files.h: Add extern declarations.
293 * src/files.c (spec_graph_file, spec_defines_file): New.
294 (output_files): Update.
295 Remove CPP-outed code.
297 2001-09-18 Marc Autret <autret_m@epita.fr>
299 Turn off %{source,header}_extension feature.
301 * src/files.c (compute_exts_from_gf): Update.
302 (compute_exts_from_src): Update.
303 (output_files): CPP-out useless code.
304 * src/files.h: Remove {header,source}_extension extern declarations.
305 * src/reader.c (parse_dquoted_param): CPP-out.
306 (parse_header_extension_decl): Remove.
307 (parse_source_extension_decl): Remove.
308 (read_declarations): Remove cases tok_{hdrext,srcext}.
309 * src/lex.c (percent_table): Remove {header,source}_extension entries.
310 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
312 2001-09-10 Akim Demaille <akim@epita.fr>
314 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
315 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
316 (AT_CHECK_OUTPUT): this.
317 Merely check ls' exit status, its output is useless.
319 2001-09-10 Akim Demaille <akim@epita.fr>
321 * tests/calc.at: Use m4_match.
322 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
324 2001-09-10 Marc Autret <autret_m@epita.fr>,
325 Akim Demaille <akim@epita.fr>
327 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
329 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
331 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
332 * src/lex.h: Adjust prototype.
333 (token_t): Add `tok_undef'.
334 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
335 (parse_percent_token): Now returns token_t.
336 Add default statement in switch.
337 (lex): Separate `c' as an input variable, from the token_t result
339 (unlexed): Is a token_t.
341 2001-09-10 Akim Demaille <akim@epita.fr>
343 * configure.in: Bump to 1.29a.
345 2001-09-07 Akim Demaille <akim@epita.fr>
349 2001-08-30 Akim Demaille <akim@epita.fr>
351 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
352 * m4/atconfig.m4: Remove.
353 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
355 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
356 m4_if, m4_patsubst, and m4_regexp.
357 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
358 `input' file instead of echo.
360 2001-08-29 Akim Demaille <akim@epita.fr>
364 2001-08-29 Akim Demaille <akim@epita.fr>
368 2001-08-29 Paul Eggert <eggert@twinsun.com>
370 * src/bison.simple (yyparse): Don't take the address of an
371 item before the start of an array, as that doesn't conform to
374 2001-08-29 Robert Anisko <anisko_r@epita.fr>
376 * doc/bison.texinfo (Location Tracking Calc): New node.
378 2001-08-29 Paul Eggert <eggert@twinsun.com>
380 * src/output.c (output): Do not define const, as this now
381 causes more problems than it cures.
383 2001-08-29 Akim Demaille <akim@epita.fr>
385 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
387 Be sure to tag the `detailmenu'.
389 2001-08-29 Akim Demaille <akim@epita.fr>
391 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
392 download in a tmp dir.
394 2001-08-28 Marc Autret <autret_m@epita.fr>
396 * config/depcomp: New file.
398 2001-08-28 Marc Autret <autret_m@epita.fr>
400 * doc/bison.1 (mandoc): Adjust.
401 From Juan Manuel Guerrero.
403 2001-08-28 Marc Autret <autret_m@epita.fr>
405 * src/print_graph.c (print_state): Fix.
407 2001-08-27 Marc Autret <autret_m@epita.fr>
409 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
411 Echo modifications to the functions prototypes.
412 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
414 2001-08-27 Marc Autret <autret_m@epita.fr>
416 * src/vcg.c: Include `xalloc.h'.
417 (add_colorentry): New.
418 (add_classname): New.
420 * src/vcg.h: Add new prototypes.
422 2001-08-27 Akim Demaille <akim@epita.fr>
424 * Makefile.maint: Sync. again with CVS Autoconf.
426 2001-08-27 Akim Demaille <akim@epita.fr>
428 * Makefile.maint: Formatting changes.
429 (po-update, cvs-update, update): New targets.
432 2001-08-27 Akim Demaille <akim@epita.fr>
434 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
435 * Makefile.maint: Sync. with CVS Autoconf.
437 2001-08-27 Marc Autret <autret_m@epita.fr>
439 * src/vcg.h (struct infoname_s): New.
440 (struct colorentry_s): New.
441 (graph_s): New fields {vertical,horizontal}_order in structure.
442 Add `infoname' field.
443 Add `colorentry' field;
444 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
445 (G_HORIZONTAL_ORDER): New.
448 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
449 Add output of `infoname'.
450 Add output of `colorentry'.
452 2001-08-27 Marc Autret <autret_m@epita.fr>
454 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
455 This one shadowed a global parameter.
457 2001-08-24 Marc Autret <autret_m@epita.fr>
459 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
460 instead of `unsigned'.
461 (print_state): Do not call obstack_object_size () in obstack_grow ()
462 to avoid macro variables shadowing.
464 2001-08-23 Marc Autret <autret_m@epita.fr>
466 * src/lex.c (percent_table): Typo: s/naem/name/.
468 Normalize new options declarations.
470 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
472 * tests/suite.at: Exercise %header_extension and %source_extension.
474 2001-08-16 Marc Autret <autret_m@epita.fr>
476 * src/reader.c (parse_dquoted_param): New.
477 (parse_header_extension_decl): Use it.
478 (parse_source_extension_decl): Likewise.
480 2001-08-16 Marc Autret <autret_m@epita.fr>
482 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
483 (get_xxxx_str): Use assert () instead of complain ().
484 Remove return invokations in default cases.
485 (get_decision_str): Modify default behaviour. Remove second argument.
486 Echo modifications on calls.
489 2001-08-16 Marc Autret <autret_m@epita.fr>
491 * src/getargs.c (usage): Update with ``-g, --graph''.
493 2001-08-16 Marc Autret <autret_m@epita.fr>
495 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
496 (Option Cross Key): Likewise.
497 * doc/bison.1: Update.
499 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
501 * src/output.c (output_master_parser): Don't finish action_obstack.
502 (output_parser): Don't care about the muscle action, here.
503 (prepare): Copy the action_obstack in the action muscle.
504 (output): Free action_obstack.
506 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
508 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
509 will contain `%union' declaration.
510 (parse_union_decl): Delete #line directive output.
511 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
512 informations about %union.
513 (parse_union_decl): Copy the union_obstack in the muscle stype.
514 * src/bison.simple: Add new #line directive.
515 Add typdef %%stype YYSTYPE.
517 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
519 * src/bison.simple: Add new `#line' directive.
521 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
523 * src/bison.simple: New `#line' directive.
524 * src/output.c (output_parser): Support new dynamic muscle input_line.
526 2001-09-22 Marc Autret <autret_m@epita.fr>
528 * src/output.c (output_master_parser): New.
529 (output_parser): Be more re-entrant.
531 2001-09-21 Marc Autret <autret_m@epita.fr>
533 * src/reader.c (copy_definition, parse_union_decl): Update and use
535 (copy_action): Likewise.
536 Use obstack_1grow ().
537 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
539 2001-09-21 Marc Autret <autret_m@epita.fr>
541 * src/options.c (option_table): Adjust.
542 * src/lex.c (parse_percent_token): Fix.
544 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
546 * src/options.c (symtab.h): Include it, need by lex.h.
548 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
550 * src/lex.c (parse_percent_token): Change type of variable `tx', which
551 is now an option_table_struct*.
552 (option_strcmp): New function option_strcmp.
553 (parse_percent_token): Call option_strcmp.
554 * src/getargs.c (xalloc.h, options.h): Include it.
555 (getargs): Call create_long_option_table.
556 (getargs): Free longopts at the end of the function.
557 (shortopts): Move in options.c.
558 * src/options.c (create_long_option_table): New function. Convert
559 information from option_table to option structure.
560 * src/reader.c (options.h): Include it.
562 * src/Makefile.am: Adjust.
563 * src/options.c (option_table): Create from longopts and percent_table.
564 * src/getargs.c (longopts): Delete.
565 * src/lex.c (struct percent_table_struct): Delete.
566 (percent_table): Delete.
567 (options.h): Include it.
568 * src/options.c: Create.
569 * src/options.h: Create.
570 Declare enum opt_access_e.
571 Define struct option_table_struct.
573 2001-09-20 Marc Autret <autret_m@epita.fr>
575 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
578 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
580 * src/bison.simple: s/%%filename/%%skeleton.
581 * src/muscle_tab.c (getargs.h): Include it.
582 (muscle_init): Insert new muscle skeleton.
584 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
586 * src/output.c (output_parser): Delete unused variable actions_dumped.
588 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
590 * src/output.c (output): Delete call to reader_output_yylsp.
591 * src/reader.c (reader): Likewise.
592 * src/reader.h: Delete declaration of reader_output_yylsp.
594 2001-09-02 Marc Autret <autret_m@epita.fr>
596 * src/reader.c: Include muscle_tab.h.
597 (parse_union_decl): Update.
598 (parse_macro_decl): Rename parse_muscle_decl.
599 Update to use renamed functions and variable.
600 (read_declarations, copy_action, read_additionnal_code, : Updated
601 with correct variables and functions names.
602 (packsymbols, reader): Likewise.
604 * src/reader.h (muscle_obstack): Extern declaration update.
606 * src/output.c: Include muscle_tab.h
607 In all functions using macro_insert, change by using muscle_insert ().
608 (macro_obstack): Rename muscle_obstack.
609 Echo modifications in the whole file.
610 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
611 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
612 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
614 * src/muscle_tab.h: Update double inclusion macros.
615 (macro_entry_s): Rename muscle_entry_s.
618 * src/muscle_tab.c: Include muscle_tab.h.
619 Rename macro_tabble to muscle_table.
620 (mhash1, mhash2, mcmp): Use muscle_entry.
621 (macro_init): Rename muscle_init. Update.
622 (macro_insert): Rename muscle_insert. Update.
623 (macro_find): Rename muscle_find. Update.
625 * src/main.c: Include muscle_tab.h.
626 (main): Call muscle_init ().
627 * src/Makefile.am (bison_SOURCES): Echo modifications.
629 2001-09-02 Marc Autret <autret_m@epita.fr>
631 Now the files macro_tab.[ch] are named muscle_tab.[ch].
633 * src/muscle_tab.c, src/muscle_tab.h: Add files.
635 2001-09-02 Marc Autret <autret_m@epita.fr>
637 * src/macrotab.c, src/macrotab.h: Remove.
639 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
641 * src/reader.c (copy_guard): Use muscle to specify the `#line'
644 2001-09-01 Marc Autret <autret_m@epita.fr>
646 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
647 to an explicit value to activate the feature. We do it here.
649 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
651 * src/output.c (prepare): Delete the `filename' muscule insertion.
652 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
653 (parse_union_decl): Likewise.
654 * src/macrotab.c (macro_init): Initialize filename by infile.
656 2001-08-31 Marc Autret <autret_m@epita.fr>
658 * src/bison.simple (YYLSP_NEEDED): New definition.
659 * src/output.c (prepare): Add macro insertion of `locations_flag'
661 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
663 * src/output.c (prepare): Delete insertion of previous muscles,
664 and insert the `prefix' muscles.
665 * src/macrotab.c (macro_init): Likewise.
666 (macro_init): Initialization prefix directive by `yy'.
667 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
668 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
669 yylval, yydebug, yyerror, yynerrs and yyparse.
670 New directive `#define' to substitute yydebug, ... with option
673 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
675 * src/main.c (main): Standardize.
676 * src/output.c (output_table_data, output_parser): Likewise.
677 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
679 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
681 * src/reader.c (read_additionnal_code): Rename %%user_code to
683 * src/output.c (output): Rename %%declarations to %%prologue.
684 * src/bison.simple: Echo modifications.
686 2001-08-31 Marc Autret <autret_m@epita.fr>
688 * src/reader.c (readgram): CleanUp.
689 (output_token_defines): Likewise.
690 (packsymbols): Likewise.
692 * src/output.c (output): CPP-out useless code.
694 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
696 * src/reader.c (reader): Delete obsolete call to function
697 output_trailers and output_headers.
698 * src/output.h: Remove obsolete functions prototypes of output_headers
701 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
703 * src/main.c: Include macrotab.h.
704 * src/macrotab.h (macro_entry_s): Constify fields.
705 Adjust functions prototypes.
706 * src/macrotab.c (macro_insert): Constify key and value.
707 (macro_find): Constify key.
708 (macro_insert): Include 'xalloc.h'
709 (macro_insert): Use XMALLOC.
710 (macro_find): Constify return value.
711 * src/output.c (output_table_data): Rename table to table_data.
712 (output_parser): Constify macro_key, macro_value.
714 2001-08-30 Marc Autret <autret_m@epita.fr>
716 * src/reader.c (parse_skel_decl): New.
717 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
718 * src/lex.h (token_t): New token `tok_skel'.
719 * src/lex.c (percent_table): Add skeleton option entry.
722 2001-08-29 Marc Autret <autret_m@epita.fr>
724 * src/bison.simple: Add %%user_code directive at the end.
725 * src/reader.c (read_additionnal_code): New.
727 * src/output.c (output_program): Remove.
730 2001-08-28 Marc Autret <autret_m@epita.fr>
732 * src/output.c (output_actions): Clean up.
733 (output_gram): CPP-out useless code.
734 * src/reader.c (reader): Clean up, CPP-out useless code.
736 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
738 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
740 * src/bison.simple: Add `%%definitions'.
742 2001-08-28 Marc Autret <autret_m@epita.fr>
744 * config/depcomp: New file.
746 2001-08-27 Paul Eggert <eggert@twinsun.com>
748 * src/bison.simple (yyparse): Don't take the address of an
749 item before the start of an array, as that doesn't conform to
752 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
754 * src/output.c (output): Remove the initialization of the macro
755 obstack. It was done too late here.
757 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
759 (reader): Initialize the macro obstack here, since we need it to grow
760 '%define' directives.
762 * src/reader.h: Declare the macro obstack as extern.
764 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
766 * src/output.c (output_parser): Fix. Store single '%' characters in
767 the output obstack instead of throwing them away.
769 2001-08-27 Akim Demaille <akim@epita.fr>
771 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
773 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
775 * lib/Makefile.am: Adjust.
777 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
779 * src/bison.simple: Update and add '%%' directives.
781 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
783 * src/reader.c (reader): Remove calls to 'output_headers' and
784 'output_trailers'. Remove some C output.
785 (readgram): Disable a piece of code that was writing a default
786 definition for 'YYSTYPE'.
787 (reader_output_yylsp): Remove.
788 (packsymbols): Output token defintions to a macro.
789 (copy_definition): Disable C output.
791 * src/reader.c (parse_macro_decl): New function used to parse macro
793 (copy_string2): Put the body of copy_string into this new function.
794 Add a parameter to let the caller choose whether he wants to copy the
795 string delimiters or not.
796 (copy_string): Be a simple call to copy_string2 with the last argument
798 (read_declarations): Add case for macro definition.
799 (copy_identifier): New.
800 (parse_macro_decl): Read macro identifiers using copy_identifier
803 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
805 * src/output.c (prepare): Add prefixed names.
806 (output_parser): Output semantic actions.
807 (output_parser): Fix bug on '%%line' directives.
809 * src/output.c (output_headers): Remove. The C code printed by this
810 function should now be in the skeletons.
811 (output_trailers): Remove.
812 (output): Disable call to 'reader_output_yylsp'.
813 (output_rule_data): Do not output tables to the table obstack.
815 * src/output.c: Remove some C dedicated output.
816 Improve the use of macro and output obstacks.
817 (output_defines): Remove.
819 * src/output.c (output_token_translations): Associate 'translate'
820 table with a macro. No output to the table obstack.
821 (output_gram): Same for 'rhs' and 'prhs'.
822 (output_stos): Same for 'stos'.
823 (output_rule_data): Same for 'r1' and 'r2'.
824 (token_actions): Same for 'defact'.
825 (goto_actions): Same for 'defgoto'.
826 (output_base): Same for 'pact' and 'pgoto'.
827 (output_table): Same for 'table'.
828 (output_check): Same for 'check'.
830 * src/output.c (output_table_data): New function.
831 (output_short_table): Remove.
832 (output_short_or_char_table): Remove.
834 * src/output.c (output_parser): Replace most of the skeleton copy code
835 with something new. Skeletons are now processed character by character
836 rather than line by line, and Bison looks for '%%' macros. This is the
837 first step in making Bison's output process (a lot) more flexible.
838 (output_parser): Use the macro table.
840 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
842 * src/main.c (main): Initialize the macro table.
844 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
846 * src/lex.c (percent_table): Add tok_define.
847 * src/lex.h: Add tok_define.
849 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
851 * src/macrotab.c: New file.
852 * src/macrotab.h: New file.
853 * src/Makefile.am: Update.
855 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
857 * lib/hash.c: New file.
858 * lib/hash.h: New file.
859 * lib/Makefile.am: Update.
861 2001-08-15 Akim Demaille <akim@epita.fr>
865 2001-08-15 Marc Autret <autret_m@epita.fr>
867 * src/reader.c (readgram): Indent output macro YYSTYPE.
868 (packsymbols): Likewise.
869 (output_token_defines): Likewise.
870 * src/files.c: Standardize.
871 (compute_header_macro): New.
872 (defines_obstack_save): New. Use compute_header_macro.
873 (output_files): Update. Use defines_obstack_save.
875 2001-08-15 Akim Demaille <akim@epita.fr>
877 * doc/bison.texinfo (Table of Symbols): Document
880 2001-08-15 Akim Demaille <akim@epita.fr>
882 * missing: Update from CVS Automake.
883 * config/config.guess, config/config.sub, config/texinfo.tex:
886 2001-08-15 Akim Demaille <akim@epita.fr>
888 * Makefile.maint: Sync with CVS Autoconf.
890 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
892 * doc/bison.texinfo: Include GNU Free Documentation License from
894 * doc/fdl.texi: Add to package.
896 2001-08-14 Marc Autret <autret_m@epita.fr>
898 Turn on %{source,header}_extension features.
900 * src/lex.c (percent_table): Un-CPP out header_extension and
902 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
903 (compute_exts_from_src): Remove conditions. It restores priorities
906 2001-08-14 Marc Autret <autret_m@epita.fr>
908 * src/files.c (compute_base_names): Add extensions computing when
909 `--file-prefix' used.
910 Standardize function calls.
912 2001-08-13 Marc Autret <autret_m@epita.fr>
914 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
915 defining it (defined but null disables alloca).
917 2001-08-13 Marc Autret <autret_m@epita.fr>
919 * src/bison.simple (_yy_memcpy): CPP reformat.
921 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
923 * tests/atconfig.in (CPPFLAGS): Fix.
925 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
927 * doc/bison.texinfo: Include GNU General Public License from
929 * doc/gpl.texi: Add to package.
931 2001-08-10 Marc Autret <autret_m@epita.fr>
933 * src/print_graph.h: Fix.
934 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
936 2001-08-10 Akim Demaille <akim@epita.fr>
938 * src/system.h: Provide default declarations for stpcpy, strndup,
941 2001-08-10 Robert Anisko <anisko_r@epita.fr>
943 * doc/bison.texinfo (Locations): Update @$ stuff.
945 2001-08-09 Robert Anisko <anisko_r@epita.fr>
947 * src/bison.simple (YYLLOC_DEFAULT): Update.
950 2001-08-08 Marc Autret <autret_m@epita.fr>
952 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
953 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
954 Reported by Fabrice Bauzac.
956 2001-08-08 Marc Autret <autret_m@epita.fr>
958 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
959 * src/vcg.c (output_node): Fix.
960 * src/vcg.h: Cleanup.
961 * src/print_graph.c: Add comments.
962 (node_output_size): New global variable. Simplify the formatting of
963 the VCG graph output.
964 (print_actions): Unused code is now used. It notifies the final state
965 and no action states in the VCG graph. It also give the reduce actions.
966 The `shift and goto' edges are red and the `go to state' edges are
968 Get the current node name and node_obstack by argument.
969 (node_obstack): New variable.
970 (print_state): Manage node_obstack.
971 (print_core): Use node_obstack given by argument.
972 A node is not only computed here but in print_actions also.
973 (print_graph): CPP out useless code instead of commenting it.
975 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
977 * tests/atconfig.in (CPPFLAGS): Fix.
979 2001-08-07 Akim Demaille <akim@epita.fr>
981 * src/print_graph.c (quote): New.
982 (print_core): Use it.
984 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
986 * src/vcg.c (complain.h): Include it.
987 Unepitaize `return' invocations.
988 [NDEBUG] (main): Remove.
989 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
990 * src/files.c (open_files): Initialize graph_obstack.
991 * src/print_graph.c (print_actions): CPP out useless code.
992 (print_core): Don't output the last `\n' in labels.
994 * src/files.c (output_files): Output the VCG file.
995 * src/main.c (main): Invoke print_graph ();
997 2001-08-06 Marc Autret <autret_m@epita.fr>
999 Automaton VCG graph output.
1000 Using option ``-g'' or long option ``--graph'', you can generate
1001 a gram_filename.vcg file containing a VCG description of the LALR (1)
1002 automaton of your grammar.
1004 * src/main.c: Call to print_graph() function.
1005 * src/getargs.h: Update.
1006 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1007 (graph_flag): New flag.
1009 (getargs): Add case `g'.
1010 * src/files.c (graph_obstack): New obstack struct.
1011 (open_files): Initialize new obstack.
1012 (output_files): Saves graph_obstack if required.
1013 * src/files.h (graph_obstack): New extern declaration.
1014 * src/Makefile.am: Add new source files.
1016 2001-08-06 Marc Autret <autret_m@epita.fr>
1018 * src/print_graph.c, src/print_graph.h (graph): New.
1019 * src/vcg.h: New file.
1020 * src/vcg.c: New file, VCG graph handling.
1022 2001-08-06 Marc Autret <autret_m@epita.fr>
1024 Add of %source_extension and %header_extension which specify
1025 the source or/and the header output file extension.
1027 * src/files.c (compute_base_names): Remove initialisation of
1028 src_extension and header_extension.
1029 (compute_exts_from_gf): Update.
1030 (compute_exts_from_src): Update.
1031 (output_files): Update.
1032 * src/reader.c (parse_header_extension_decl): New.
1033 (parse_source_extension_decl): New.
1034 (read_declarations): New case statements for the new tokens.
1035 * src/lex.c (percent_table): Add entries for %source_extension
1036 and %header_extension.
1037 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1039 2001-08-06 Marc Autret <autret_m@epita.fr>
1041 * configure.in: Bump to 1.28c.
1042 * doc/bison.texinfo: Texinfo thingies.
1044 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1046 * tests/atconfig.in (CPPFLAGS): Add.
1047 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1049 2001-08-03 Akim Demaille <akim@epita.fr>
1053 2001-08-03 Akim Demaille <akim@epita.fr>
1055 * tests/Makefile.am (check-local): Ship testsuite.
1056 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1059 2001-08-03 Akim Demaille <akim@epita.fr>
1061 * configure.in: Try using -Wformat when compiling.
1063 2001-08-03 Akim Demaille <akim@epita.fr>
1065 * configure.in: Bump to 1.28b.
1067 2001-08-03 Akim Demaille <akim@epita.fr>
1069 * src/complain.c: Adjust strerror_r portability issues.
1071 2001-08-03 Akim Demaille <akim@epita.fr>
1075 2001-08-03 Akim Demaille <akim@epita.fr>
1077 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1078 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1079 * src/getargs.c: Include complain.h.
1080 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1081 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1083 2001-08-03 Akim Demaille <akim@epita.fr>
1085 * src/reader.c (readgram): Display hidden chars in error messages.
1087 2001-08-03 Akim Demaille <akim@epita.fr>
1089 Update to gettext 0.10.39.
1091 2001-08-03 Akim Demaille <akim@epita.fr>
1093 * lib/strspn.c: New.
1095 2001-08-01 Marc Autret <autret_m@epita.fr>
1097 * doc/bison.texinfo: Update.
1098 * doc/bison.1 (mandoc): Update.
1099 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1100 * src/files.c: Support output files extensions computing.
1101 (src_extension): New static variable.
1102 (header_extension): New static variable.
1104 (get_extension_index): New function, gets the index of an extension
1105 filename in a string.
1106 (compute_exts_from_gf): New function, computes extensions from the
1107 grammar file extension.
1108 (compute_exts_from_src): New functions, computes extensions from the
1109 C source file extension, file given by ``-o'' option.
1110 (compute_base_names): Update.
1111 (output_files): Update.
1113 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1115 * doc/bison.texi: Document @$.
1116 (Locations): New section.
1118 2001-07-18 Akim Demaille <akim@epita.fr>
1120 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1121 * config/prev-version.txt, config/move-if-change: New.
1122 * Makefile.am: Adjust.
1124 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1126 * src/bison.simple (yyparse): Suppress warning `comparaison
1127 between signed and unsigned'.
1129 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1131 * src/getargs.h (raw_flag): Remove.
1132 * src/getargs.c: Die on `-r'/`--raw'.
1133 * src/lex.c (parse_percent_token): Die on `%raw'.
1134 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1135 * tests/calc.at: Suppress test with option `--raw'.
1137 2001-07-14 Akim Demaille <akim@epita.fr>
1140 * configure.in: Require Autoconf 2.50.
1141 Update to gettext 0.10.38.
1143 2001-03-16 Akim Demaille <akim@epita.fr>
1145 * doc/bison.texinfo: ANSIfy the examples.
1147 2001-03-16 Akim Demaille <akim@epita.fr>
1149 * getargs.c (skeleton): New variable.
1150 (longopts): --skeleton is a new option.
1151 (shortopts, getargs): -S is a new option.
1152 * getargs.h: Declare skeleton.
1153 * output.c (output_parser): Use it.
1155 2001-03-16 Akim Demaille <akim@epita.fr>
1157 * m4/strerror_r.m4: New.
1158 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1159 * lib/error.h, lib/error.c: Update.
1161 2001-03-16 Akim Demaille <akim@epita.fr>
1163 * src/getargs.c (longopts): Clean up.
1165 2001-02-21 Akim Demaille <akim@epita.fr>
1167 * src/reader.c (gensym): `gensym_count' is your own.
1168 Use a static buf to create the symbol name, as token_buffer is no
1171 2001-02-08 Akim Demaille <akim@epita.fr>
1173 * src/conflicts.c (conflict_report): Be sure not to append to res
1174 between two calls, which could happen if both first sprintf were
1175 skipped, but not the first cp += strlen.
1177 2001-02-08 Akim Demaille <akim@epita.fr>
1179 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1180 New, from fileutils 4.0.37.
1181 * configure.in: Require Autoconf 2.49c. I took some time before
1182 making this decision. This is the only way out for portability
1183 issues in Bison, it would mean way too much duplicate effort to
1184 import in Bison features implemented in 2.49c since 2.13.
1185 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1187 2001-02-02 Akim Demaille <akim@epita.fr>
1189 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1190 * lib/xalloc.h, lib/xmalloc.c: Update.
1192 2001-01-19 Akim Demaille <akim@epita.fr>
1194 Get rid of the ad hoc handling of token_buffer in the scanner: use
1197 * src/lex.c (token_obstack): New.
1198 (init_lex): Initialize it. No longer call...
1199 (grow_token_buffer): this. Remove it.
1200 Adjust all the places which used it to use the obstack.
1202 2001-01-19 Akim Demaille <akim@epita.fr>
1204 * src/lex.h: Rename all the tokens:
1205 s/\bENDFILE\b/tok_eof/g;
1206 s/\bIDENTIFIER\b/tok_identifier/g;
1208 Let them be enums, not #define, to ease debugging.
1209 Adjust all the code.
1211 2001-01-18 Akim Demaille <akim@epita.fr>
1213 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1214 * src/lex.c (maxtoken, grow_token_buffer): Static.
1216 2001-01-18 Akim Demaille <akim@epita.fr>
1218 Since we now use obstacks, more % directives can be enabled.
1220 * src/lex.c (percent_table): Also accept `%yacc',
1221 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1223 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1224 instead of returning a token.
1225 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1226 * src/reader.c (read_declarations): Adjust.
1227 * src/files.c (open_files): Don't call `compute_base_names', don't
1228 compute `attrsfile' since they depend upon data which might be
1229 *in* the input file now.
1230 (output_files): Do it here.
1231 * src/output.c (output_headers): Document the fact that this patch
1232 introduces a guaranteed SEGV for semantic parsers.
1233 * doc/bison.texinfo: Document them.
1234 * tests/suite.at: Exercise these %options.
1236 2000-12-20 Akim Demaille <akim@epita.fr>
1238 Also handle the output file (--verbose) with obstacks.
1240 * files.c (foutput): Remove.
1241 (output_obstack): New.
1242 Adjust all dependencies.
1243 * src/conflicts.c: Return a string.
1244 * src/system.h (obstack_grow_string): Rename as...
1245 (obstack_sgrow): this. Be ready to work with non literals.
1246 (obstack_fgrow4): New.
1248 2000-12-20 Akim Demaille <akim@epita.fr>
1250 * src/files.c (open_files): Fix the computation of short_base_name
1251 in the case of `-o foo.tab.c'.
1253 2000-12-20 Akim Demaille <akim@epita.fr>
1255 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1256 (copy_dollar): Now that everything uses obstacks, get rid of the
1259 2000-12-20 Akim Demaille <akim@epita.fr>
1261 * src/files.c (open_files): Actually the `.output' file is based
1262 on the short_base_name, not base_name.
1263 * tests/suite.at (Checking output file names): Adjust.
1265 2000-12-20 Akim Demaille <akim@epita.fr>
1267 * src/bison.s1: Remove, we now use directly...
1268 * src/bison.simple: this.
1269 * src/Makefile.am: Use pkgdata instead of data.
1271 2000-12-20 Akim Demaille <akim@epita.fr>
1273 * src/files.c (guard_obstack): New.
1274 (open_files): Initialize it.
1275 (output_files): Dump it...
1276 * src/files.h: Export it.
1277 * src/reader.c (copy_guard): Use it.
1279 2000-12-19 Akim Demaille <akim@epita.fr>
1281 * src/files.c (outfile, defsfile, actfile): Removed as global
1283 (open_files): Don't compute them.
1284 (output_files): Adjust.
1285 (base_name, short_base_name): Be global.
1286 Adjust dependencies.
1288 2000-12-19 Akim Demaille <akim@epita.fr>
1290 * src/files.c (strsuffix): New.
1291 (stringappend): Be just like strcat but allocate.
1292 (base_names): Eve out from open_files.
1293 Try to simplify the rather hairy computation of base_name and
1295 (open_files): Use it.
1296 * tests/suite.at (Checking output file names): New test.
1298 2000-12-19 Akim Demaille <akim@epita.fr>
1300 * src/system.h (obstack_grow_literal_string): Rename as...
1301 (obstack_grow_string): this.
1302 * src/output.c (output_parser): Recognize `%% actions' instead of
1304 * src/bison.s1: s/$/%% actions/.
1305 * src/bison.hairy: Likewise.
1307 2000-12-19 Akim Demaille <akim@epita.fr>
1309 * src/output.c (output_parser): Compute the `#line' lines when
1311 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1312 Suggested by Hans Aberg.
1314 2000-12-19 Akim Demaille <akim@epita.fr>
1316 Let the handling of the skeleton files be local to the procedures
1319 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1321 (fparser, open_extra_files): Remove.
1322 (open_files, output_files): Don't take care of fparser.
1323 * src/files.h: Adjust.
1324 * src/output.c (output_parser): Open and close the file to the
1326 * src/reader.c (read_declarations): When %semantic_parser, open
1329 2000-12-19 Akim Demaille <akim@epita.fr>
1331 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1332 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1334 2000-12-19 Akim Demaille <akim@epita.fr>
1336 * src/files.c (open_files): Yipee! We no longer need all the code
1337 looking for `/tmp' since we have no tmp file.
1339 2000-12-19 Akim Demaille <akim@epita.fr>
1341 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1343 * src/files.c (open_files): Less dependency on MSDOS etc.
1345 2000-12-14 Akim Demaille <akim@epita.fr>
1347 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1348 Provide a default definition.
1349 Use it when executing the default @ action.
1350 * src/reader.c (reader_output_yylsp): No longer include
1351 `timestamp' and `text' in the default YYLTYPE.
1353 2000-12-12 Akim Demaille <akim@epita.fr>
1355 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1356 (copy_guard): Quote the file names.
1357 Reported by Laurent Mascherpa.
1359 2000-12-12 Akim Demaille <akim@epita.fr>
1361 * src/output.c (output_headers, output_program, output): Be sure
1362 to escape special characters when outputting filenames.
1363 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1364 (output_headers): Don't depend on them, Use ACTSTR.
1366 2000-11-17 Akim Demaille <akim@epita.fr>
1368 * lib/obstack.h: Formatting changes.
1369 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1370 prevents type checking.
1371 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1372 cast the value to (void *): assigning a `foo *' to a `void *'
1374 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1375 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1378 2000-11-17 Akim Demaille <akim@epita.fr>
1380 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1382 (suite.m4, regression.m4, calc.m4): these.
1383 * tests/atgeneral.m4: Update from CVS Autoconf.
1385 2000-11-17 Akim Demaille <akim@epita.fr>
1387 * tests/regression.m4 (%union and --defines): New test,
1388 demonstrating a current bug in the obstack implementation.
1390 2000-11-17 Akim Demaille <akim@epita.fr>
1392 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1394 Use them to declare the variables which are global or local to
1397 2000-11-17 Akim Demaille <akim@epita.fr>
1399 * acconfig.h: Remove, no longer used.
1401 2000-11-07 Akim Demaille <akim@epita.fr>
1403 * src: s/Copyright (C)/Copyright/g.
1405 2000-11-07 Akim Demaille <akim@epita.fr>
1407 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1409 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1411 2000-11-07 Akim Demaille <akim@epita.fr>
1413 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1414 Merge in a single CPP if/else.
1416 2000-11-07 Akim Demaille <akim@epita.fr>
1418 * src/output.c (output): Remove useless variables.
1419 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1420 argument `data' for consistency with the prototypes.
1422 (obstack_copy, obstack_copy0): Rename the second argument as
1423 `address' for consistency. Qualify it `const'.
1424 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1425 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1426 `const' their input argument (`data' or `address').
1427 Adjust the corresponding macros to include `const' in casts.
1429 2000-11-03 Akim Demaille <akim@epita.fr>
1431 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1432 s/PFILE1/BISON_HAIRY/.
1433 Adjust dependencies.
1435 2000-11-03 Akim Demaille <akim@epita.fr>
1437 For some reason, this was not applied.
1439 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1440 `unlink': it's no longer used.
1442 2000-11-03 Akim Demaille <akim@epita.fr>
1444 * src/files.c (skeleton_find): New function, eved out of...
1445 (open_files, open_extra_files): here.
1447 2000-11-03 Akim Demaille <akim@epita.fr>
1451 * src/files.c (obstack_save): New function.
1452 (done): Rename as...
1453 (output_files): this.
1455 * src/main.c (main): Don't use `atexit' to register `done', since
1456 it no longer has to remove tmp files, just call `output_files'
1457 when there are no errors.
1459 2000-11-02 Akim Demaille <akim@epita.fr>
1461 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1462 `unlink': it's no longer used.
1463 * src/files.h: Formatting changes.
1465 2000-11-02 Akim Demaille <akim@epita.fr>
1467 Remove the last uses of mktemp and unlink/delete.
1469 * src/files.c (fdefines, ftable): Removed.
1470 (defines_ostack, table_obstack): New.
1471 Adjust dependencies of the former into uses of the latter.
1472 * src/output.c (output_short_or_char_table, output_short_table):
1473 Convert to using obstacks.
1474 * src/reader.c (copy_comment2): Accept one FILE * and two
1476 (output_token_defines, reader_output_yylsp): Use obstacks.
1477 * src/system.h (obstack_fgrow3): New.
1479 2000-11-01 Akim Demaille <akim@epita.fr>
1481 Change each use of `fattrs' into a use of `attrs_obstack'.
1483 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1484 * src/files.c (fattrs): Remove.
1485 (attrs_obstack): New.
1486 Adjust all dependencies.
1487 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1489 2000-11-01 Akim Demaille <akim@epita.fr>
1492 Change each use of `faction' into a use of `action_obstack'.
1494 * lib/obstack.h, lib/obstack.c: New files.
1495 * src/files.c (faction): Remove.
1496 (action_obstack): New.
1497 Adjust all dependencies.
1499 2000-10-20 Akim Demaille <akim@epita.fr>
1501 * lib/quote.h (PARAMS): New macro. Use it.
1503 2000-10-16 Akim Demaille <akim@epita.fr>
1505 * src/output.c (output_short_or_char_table): New function.
1506 (output_short_table, output_token_translations): Use it.
1507 (goto_actions): Use output_short_table.
1509 2000-10-16 Akim Demaille <akim@epita.fr>
1511 * src/symtab.c (bucket_new): New function.
1514 * src/output.c (output_short_table): New argument to display the
1515 comment associated with the table.
1516 Adjust dependencies.
1517 (output_gram): Use it.
1518 (output_rule_data): Nicer output layout for YYTNAME.
1520 2000-10-16 Akim Demaille <akim@epita.fr>
1522 * src/lex.c (read_typename): New function.
1524 * src/reader.c (copy_dollar): Likewise.
1526 2000-10-16 Akim Demaille <akim@epita.fr>
1528 * src/reader.c (copy_comment2): Expect the input stream to be on
1529 the `/' which is suspected to open a comment, instead of being
1530 called after `//' or `/*' was read.
1531 (copy_comment, copy_definition, parse_union_decl, copy_action)
1532 (copy_guard): Adjust.
1534 2000-10-16 Akim Demaille <akim@epita.fr>
1536 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1537 `read_signed_integer'.
1539 2000-10-16 Akim Demaille <akim@epita.fr>
1541 * src/reader.c (copy_dollar): New function.
1542 (copy_guard, copy_action): Use it.
1544 2000-10-16 Akim Demaille <akim@epita.fr>
1546 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1547 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1548 New files, from Fileutils 4.0.27.
1549 * src/main.c (printable_version): Remove.
1550 * src/lex.c, src/reader.c: Use `quote'.
1552 2000-10-04 Akim Demaille <akim@epita.fr>
1554 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1556 2000-10-04 Akim Demaille <akim@epita.fr>
1558 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1560 2000-10-04 Akim Demaille <akim@epita.fr>
1562 When a literal string is used to define two different tokens,
1563 `bison -v' segfaults.
1564 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1566 * tests/regression.m4: New file.
1567 Include the core of the sample provided by Piotr Gackiewicz.
1568 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1571 2000-10-04 Akim Demaille <akim@epita.fr>
1573 * src/reader.c (parse_expect_decl): Keep `count' within the size
1577 2000-10-02 Paul Eggert <eggert@twinsun.com>
1579 * bison.s1 (yyparse): Assign the default value
1580 unconditionally, to avoid a GCC warning and make the parser a
1583 2000-10-02 Akim Demaille <akim@epita.fr>
1585 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1588 2000-10-02 Akim Demaille <akim@epita.fr>
1590 * src/derives.c, src/print.c, src/reduce.c: To ease the
1591 translation, move some `\n' out of the translated strings.
1593 2000-10-02 Akim Demaille <akim@epita.fr>
1595 The location tracking mechanism is precious for parse error
1596 messages. Nevertheless, it is enabled only when `@n' is used in
1597 the grammar, which is a different issue (you can use it in error
1598 message, but not in the grammar per se). Therefore, there should
1599 be another means to enable it.
1601 * src/getargs.c (getargs): Support `--locations'.
1603 * src/getargs.h (locationsflag): Export it.
1604 * src/lex.c (percent_table): Support `%locations'.
1605 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1606 with `locationsflag'.
1607 * doc/bison.texinfo: Document `--locations' and `%locations'.
1609 * tests/calc.m4: Test it.
1611 For regularity of the names, replace each
1612 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1613 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1614 In addition replace each `flag' with `_flag'.
1616 2000-10-02 Akim Demaille <akim@epita.fr>
1618 Also test parse error messages, including with YYERROR_VERBOSE.
1620 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1622 Use it to check the computations.
1623 Use it to check `nonassoc' is honored.
1624 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1625 `--yyerror-verbose'.
1626 (_AT_CHECK_CALC): Adjust to this option.
1627 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1629 2000-10-02 Akim Demaille <akim@epita.fr>
1631 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1632 the latter demonstrates a flaw in the handling of non debugging
1633 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1634 was used in order to simplify:
1650 unfortunately this leads to a CPP conflict when
1651 `--name-prefix=foo' is used since it produces `#define yydebug
1654 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1655 (YYDPRINTF): New macro.
1657 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1659 Also test `--verbose', `--defines' and `--name-prefix'.
1661 2000-10-02 Akim Demaille <akim@epita.fr>
1663 Improve the readability of the produced parsers.
1665 * src/bison.s1: Formatting changes.
1666 Improve the comment related to the `$' mark.
1667 (yydefault): Don't fall through to `yyresume': `goto' there.
1668 * src/output.c (output_parser): When the `$' is met, skip the end
1670 New variable, `number_of_dollar_signs', to check there's exactly
1671 one `$' in the parser skeleton.
1673 2000-10-02 Akim Demaille <akim@epita.fr>
1675 * lib/xstrdup.c: New file, from the fileutils.
1676 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1677 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1678 instead of strlen + xmalloc + strcpy.
1679 * src/symtab.c (copys): Remove, use xstrdup instead.
1681 2000-10-02 Akim Demaille <akim@epita.fr>
1683 * src/gram.h (associativity): New enum type which replaces the
1684 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1685 `right_assoc', `left_assoc' and `non_assoc'.
1686 Adjust all dependencies.
1687 * src/reader.c: Formatting changes.
1688 (LTYPESTR): Don't define it, use it as a literal in
1689 `reader_output_yylsp'.
1690 * src/symtab.h (symbol_class): New enum type which replaces the
1691 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1692 `sunknown', `stoken and `snterm'.
1694 2000-10-02 Akim Demaille <akim@epita.fr>
1696 * src/getargs.c (fixed_outfiles): Rename as...
1697 (yaccflag): for consistency and accuracy.
1698 Adjust dependencies.
1700 2000-10-02 Akim Demaille <akim@epita.fr>
1702 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1703 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1704 difficult and introduced a lot of core dump. It turns out that
1705 Bison used an implementation of `xmalloc' based on `calloc', and
1706 at various places it does depend upon the initialization to 0. I
1707 have not tried to isolate the pertinent places, and all the former
1708 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1709 someone should address this issue.
1711 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1712 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1714 Adjust dependencies.
1715 * src/warshall.h: New file.
1718 2000-10-02 Akim Demaille <akim@epita.fr>
1720 Various anti-`extern in *.c' changes.
1722 * src/system.h: Include `assert.h'.
1724 2000-10-02 Akim Demaille <akim@epita.fr>
1726 * src/state.h (nstates, final_state, first_state, first_shift)
1727 (first_reduction): Move their exportation from here...
1728 * src/LR0.h: to here.
1729 Adjust dependencies.
1730 * src/getargs.c (statisticsflag): New variable.
1731 Add support for `--statistics'.
1732 Adjust dependencies.
1734 Remove a lot of now useless `extern' statements in most files.
1736 2000-10-02 Akim Demaille <akim@epita.fr>
1738 * src/LR0.h: New file.
1741 2000-10-02 Akim Demaille <akim@epita.fr>
1743 * src/print.h: New file.
1745 * src/print.c: Formatting and ordering changes.
1746 (verbose, terse): Replace with...
1747 (print_results): this new function.
1748 Adjust dependencies.
1750 2000-10-02 Akim Demaille <akim@epita.fr>
1752 * src/conflicts.c (conflict_report): New function.
1753 (conflict_log, verbose_conflict_log): Replace with...
1754 (print_conflicts): this function.
1755 Adjust dependencies.
1756 * src/conflicts.h: New file.
1757 Propagate its inclusion.
1759 2000-10-02 Akim Demaille <akim@epita.fr>
1761 * src/nullable.h: New file.
1762 Propagate its inclusion.
1763 * src/nullable.c: Formatting changes.
1765 2000-10-02 Akim Demaille <akim@epita.fr>
1767 * src/reduce.h: New file.
1768 Propagate its inclusion.
1769 * src/reduce.c: Topological sort and other formatting changes.
1770 (bool, TRUE, FALSE): Move their definition to...
1771 * src/system.h: here.
1773 2000-10-02 Akim Demaille <akim@epita.fr>
1775 * src/files.c: Formatting changes.
1776 (tryopen, tryclose, openfiles): Rename as...
1777 (xfopen, xfclose, open_files): this.
1778 (stringappend): static.
1779 * src/files.h: Complete the list of exported symbols.
1782 2000-10-02 Akim Demaille <akim@epita.fr>
1784 * src/reader.h: New file.
1785 Propagate its use instead of tedious list of `extern' and
1787 * src/reader.c: Formatting changes, topological sort,
1790 2000-10-02 Akim Demaille <akim@epita.fr>
1792 * src/lex.h: Prototype `lex.c' exported functions.
1793 * src/reader.c: Adjust.
1794 * src/lex.c: Formatting changes.
1795 (safegetc): Rename as...
1798 2000-10-02 Akim Demaille <akim@epita.fr>
1800 * src/lalr.h: New file.
1801 Propagate its inclusion instead of prototypes and `extern'.
1802 * src/lalr.c: Formatting changes, topological sorting etc.
1804 2000-10-02 Akim Demaille <akim@epita.fr>
1806 * src/output.c (token_actions): Introduce a temporary array,
1807 YYDEFACT, that makes it possible for this function to use
1810 2000-10-02 Akim Demaille <akim@epita.fr>
1812 `user_toknums' is output as a `short[]' in `output.c', while it is
1813 defined as a `int[]' in `reader.c'. For consistency with the
1814 other output tables, `user_toknums' is now defined as a table of
1817 * src/reader.c (user_toknums): Be a short table instead of an int
1819 Adjust dependencies.
1821 Factor the short table outputs.
1823 * src/output.c (output_short_table): New function.
1824 * src/output.c (output_gram, output_stos, output_rule_data)
1825 (output_base, output_table, output_check): Use it.
1827 2000-10-02 Akim Demaille <akim@epita.fr>
1829 * src/output.c (output): Topological sort of the functions, in
1830 order to get rid of the `static' prototypes.
1831 No longer use `register'.
1832 * src/output.h: New file.
1833 Propagate its inclusion in files explicitly prototyping functions
1836 2000-09-21 Akim Demaille <akim@epita.fr>
1838 * src/atgeneral.m4: Update from Autoconf.
1840 2000-09-21 Akim Demaille <akim@epita.fr>
1842 * src/closure.h: New file.
1843 * src/closure.c: Formatting changes, topological sort over the
1844 functions, use of closure.h.
1845 (initialize_closure, finalize_closure): Rename as...
1846 (new_closure, free_closure): these. Adjust dependencies.
1847 * src/LR0.c: Formatting changes, topological sort, use of
1849 (initialize_states): Rename as...
1851 * src/Makefile.am (noinst_HEADERS): Adjust.
1853 2000-09-20 Akim Demaille <akim@epita.fr>
1855 * src/acconfig.h: Don't protect config.h against multiple
1857 Don't define PARAMS.
1858 * src/system.h: Define PARAMS.
1859 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1860 purpose of config.h. system.h must not try to fix wrong
1861 definitions in config.h.
1863 2000-09-20 Akim Demaille <akim@epita.fr>
1865 * src/derives.h: New file.
1866 * src/main.c, src/derives.h: Use it.
1868 * src/Makefile.am (noinst_HEADERS): Adjust.
1870 2000-09-20 Akim Demaille <akim@epita.fr>
1872 * tests/atgeneral.m4: Update from Autoconf.
1873 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1874 (AT_CHECK_CALC): New macros.
1875 Use these macros to test bison with options `', `--raw',
1876 `--debug', `--yacc', `--yacc --debug'.
1878 2000-09-19 Akim Demaille <akim@epita.fr>
1880 * src/output.c: Formatting changes.
1881 * src/machine.h: Remove, leaving its contents in...
1882 * src/system.h: here.
1884 Adjust all dependencies on stdio.h and machine.h.
1885 * src/getargs.h: New file.
1886 Let all `extern' declarations about getargs.c be replaced with
1887 inclusion of `getargs.h'.
1888 * src/Makefile.am (noinst_HEADERS): Adjust.
1890 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1892 (yyerror): Returns void, not int.
1893 * doc/bison.texinfo: Formatting changes.
1895 2000-09-19 Akim Demaille <akim@epita.fr>
1897 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1900 2000-09-18 Akim Demaille <akim@epita.fr>
1902 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1903 * src/Makefile.am (INCLUDES): Don't.
1904 Be ready to fetch headers in lib/.
1906 2000-09-18 Akim Demaille <akim@epita.fr>
1908 * doc/bison.texinfo: Update the copyright.
1909 ANSIfy and GNUify the examples.
1910 Remove the old menu.
1912 2000-09-18 Akim Demaille <akim@epita.fr>
1914 First set of tests: use the `calc' example from the documentation.
1916 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1917 is defined only when YYDEBUG is.
1918 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1919 * src/files.c (tryopen, tryclose): Formatting changes.
1920 Move to the top and be static.
1921 * src/reader.c (read_signed_integer): Likewise.
1922 * tests/calc.m4: New file.
1923 * Makefile.am, suite.m4: Adjust.
1924 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1926 2000-09-18 Akim Demaille <akim@epita.fr>
1928 Add support for an Autotest test suite for Bison.
1930 * m4/m4.m4, m4/atconfig.m4: New files.
1931 * m4/Makefile.am (EXTRA_DIST): Adjust.
1932 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1934 * src/getargs.c: Display a more standard --version message.
1935 * src/reader.c (reader): Formatting changes.
1936 No longer depend upon VERSION_STRING.
1937 * configure.in: No longer use `dnl'.
1938 Set up the test suite and the new directory `tests/.
1939 (VERSION_STRING): Remove.
1941 2000-04-14 Akim Demaille <akim@epita.fr>
1943 * src/reader.c (copy_comment2): New function, same as former
1944 `copy_comment', but outputs into two FILE *.
1945 (copy_comment): Use it.
1946 (parse_union_decl): Use it.
1947 (get_type, parse_start_decl): Use the same `invalid' message.
1948 (parse_start_decl, parse_union_decl): Use the same `multiple'
1950 (parse_union_decl, copy_guard, copy_action): Use the same
1951 `unmatched' message.
1952 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1954 2000-03-31 Akim Demaille <akim@epita.fr>
1956 * src/files.c (tryopen, tryclose): Move to the top.
1959 2000-03-31 Akim Demaille <akim@epita.fr>
1961 * src/main.c (main): Don't call `done', exit does it.
1963 2000-03-31 Akim Demaille <akim@epita.fr>
1965 * allocate.c: s/return (foo)/return foo/.
1968 * output.c: Likewise.
1969 * reader.c: Likewise.
1970 * symtab.c: Likewise.
1971 * vmsgetargs.c: Likewise.
1973 2000-03-31 Akim Demaille <akim@epita.fr>
1975 Clean up the error reporting functions.
1977 * src/report.c: New file.
1978 * src/report.h: Likewise.
1979 * src/Makefile.am: Adjust.
1980 * m4/error.m4: New file.
1981 * m4/Makefile.am: Adjust.
1982 * configure.in (jm_PREREQ_ERROR): Call it.
1983 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1985 (fatal, fatals): Remove. All callers use complain.c::fatal.
1986 (warn, warni, warns, warnss, warnss): Remove. All callers use
1987 complain.c::complain.
1988 (toomany): Remove, use fatal instead.
1989 * src/files.c (done): No argument, use complain_message_count.
1990 * src/main.c (main): Register `done' to `atexit'.
1992 * src/getargs.c (usage): More `fputs', less `fprintf'.
1994 2000-03-28 Akim Demaille <akim@epita.fr>
1996 * lib/: New directory.
1997 * Makefile.am (SUBDIRS): Adjust.
1998 * configure.in: Adjust.
1999 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2001 * src/alloca.c: Moved to lib/.
2002 * src/getopt.c: Likewise.
2003 * src/getopt1.c: Likewise.
2004 * src/getopt.h: Likewise.
2005 * src/ansi2knr.c: Likewise.
2006 * src/ansi2knr.1: Likewise.
2007 * src/Makefile.am: Adjust.
2008 * lib/Makefile.am: New file.
2010 2000-03-28 Akim Demaille <akim@epita.fr>
2012 * src/getargs.c (usage): Refresh the help message.
2014 2000-03-17 Akim Demaille <akim@epita.fr>
2016 * src/getopt1.c: Updated from textutils 2.0e
2017 * src/getopt.c: Likewise.
2018 * src/getopt.h: Likewise.
2020 2000-03-17 Akim Demaille <akim@epita.fr>
2022 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2023 the file name, not the whole `#line LINE FILE'.
2025 2000-03-17 Akim Demaille <akim@epita.fr>
2027 On syntax errors, report the token on which we choked.
2029 * src/bison.s1 (yyparse): In the label yyerrlab, when
2030 YYERROR_VERBOSE, add yychar in msg.
2032 2000-03-17 Akim Demaille <akim@epita.fr>
2034 * src/reader.c (copy_at): New function.
2035 (copy_guard): Use it.
2036 (copy_action): Use it.
2038 2000-03-17 Akim Demaille <akim@epita.fr>
2040 Be kind to translators, save some useless translations.
2042 * src/main.c (banner): New function.
2043 (fatal_banner): Use it.
2044 (warn_banner): Use it.
2046 2000-03-17 Akim Demaille <akim@epita.fr>
2048 * src/reader.c (copy_definition): Use copy_string and
2049 copy_comment. Removed now unused `match', `ended',
2051 (copy_comment, copy_string): Moved, to be visible from
2054 2000-03-17 Akim Demaille <akim@epita.fr>
2056 * src/reader.c (copy_string): Declare `static inline'. No
2057 problems with inline, since it is checked by configure.
2058 (copy_comment): Likewise.
2060 2000-03-17 Akim Demaille <akim@epita.fr>
2062 * src/reader.c (packsymbols): Formatting changes.
2064 2000-03-17 Akim Demaille <akim@epita.fr>
2066 * src/reader.c (copy_comment): New function, factored out from:
2067 (copy_action): Use it. Removed now unused `match', `ended',
2069 (copy_guard): Likewise.
2071 2000-03-17 Akim Demaille <akim@epita.fr>
2073 * src/reader.c (copy_string): New function, factored out from:
2074 (copy_action): Use it.
2075 (copy_guard): Likewise.
2077 2000-03-17 Akim Demaille <akim@epita.fr>
2079 Change the handling of @s so that they behave exactly like $s.
2080 There is now a pseudo variable @$ (readble and writable), location
2081 of the lhs of the rule (by default ranging from the location of
2082 the first symbol of the rhs, to the location of the last symbol,
2083 or, if the rhs is empty, YYLLOC).
2085 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2087 (yyparse): When providing a default semantic action, provide a
2088 default location action.
2089 (after the $): No longer change `*YYLSP', just stack YYLOC the
2090 same way you stack YYVAL.
2091 * src/reader.c (read_declarations): Use warns.
2092 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2093 (copy_action, case '@'): Likewise.
2094 Use a standard error message, to save useless work from
2097 2000-03-17 Akim Demaille <akim@epita.fr>
2099 * src/bison.s1: Formatting and cosmetics changes.
2100 * src/reader.c: Likewise.
2101 Update the Copyright notice.
2103 2000-03-17 Akim Demaille <akim@epita.fr>
2105 * src/bison.s1 (#line): All set to `#line' only, since the
2106 Makefile now handles them.
2108 2000-03-16 Akim Demaille <akim@epita.fr>
2110 * src/output.c (output_rule_data): Output the documentation of
2112 (Copyright notice): Update.
2115 2000-03-16 Akim Demaille <akim@epita.fr>
2117 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2118 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2119 One `#if YYDEBUG' remains, since it uses variables which are
2120 defined only if `YYDEBUG != 0'.
2122 2000-03-16 Akim Demaille <akim@epita.fr>
2124 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2125 and related variables so that the similarities are highlighted.
2127 2000-03-16 Akim Demaille <akim@epita.fr>
2129 * src/bison.s1: Properly indent CPP directives.
2131 2000-03-16 Akim Demaille <akim@epita.fr>
2133 * src/bison.s1: Properly indent the `alloca' CPP section.
2135 2000-03-16 Akim Demaille <akim@epita.fr>
2137 Do not hard code values of directories in `configure.in'.
2138 Update the `configure' tool chain.
2140 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2142 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2143 (AC_OUTPUT): Add m4/Makefile.
2144 Bump to bison 1.28a, 1.29 has never been released.
2145 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2146 handled via src/Makefile.am.
2147 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2148 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2150 * Makefile.am (SUBDIRS): Add m4.
2151 (ACLOCAL_AM_FLAGS): New variable.
2152 (AUTOMAKE_OPTIONS): Add check-news.
2153 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2154 the proper line number and file name.
2155 (DEFS): Propagate the location of bison library files and of the
2157 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2159 * acinclude.m4: Remove, replaced by the directory m4.
2160 * m4/Makefile.am (EXTRA_DIST): New variable.
2161 * m4/gettext.m4: New file, from the fileutils.
2162 * m4/lcmessage.m4: Likewise
2163 * m4/progtest.m4: Likewise.
2164 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2166 2000-03-10 Akim Demaille <akim@epita.fr>
2169 Formatting changes of various comments.
2170 Respect the GNU coding standards at various places.
2171 Don't use `_()' when no translation is needed.
2173 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2176 OS/2 honors TMPDIR environment variable.
2178 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2180 * doc/bison.texinfo: Tweaked spelling and grammar.
2182 Removed reference to price of printed copy.
2183 Mention BISON_SIMPLE and BISON_HAIRY.
2185 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2187 * configure.in, NEWS:
2188 Bison 1.29 released.
2190 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2192 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2193 Added reference card.
2195 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2197 * po/ru.po: Added Russian translation.
2199 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2201 * configure.in: Added Russian translation.
2203 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2205 * configure.in, NEWS, README:
2206 Released version 1.28.
2208 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2211 Squashed redefinition warning on some systems.
2213 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2214 Have configure build version string instead of relying on ANSI string
2217 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2219 * po/POTFILES.in: Got rid of version.c.
2221 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2223 * acconfig.h, configure.in:
2224 Have configure build version string instead of relying on ANSI string
2227 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2230 Dropped mention of `+' for long-named options.
2232 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2234 * src/files.c: Added <unistd.h> for unlink().
2236 * src/Makefile.am, src/system.h:
2239 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2241 * README: Added a FAQ list.
2243 * configure.in, acconfig.h:
2246 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2248 * doc/FAQ, doc/Makefile.am:
2251 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2253 * src/alloc.h, src/symtab.h, src/version.c:
2254 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2256 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2258 * src/.cvsignore, src/Makefile.am:
2259 Reorganized: sources in `src', documentation in `doc'.
2261 * src/lex.c (literalchar):
2262 fixed the code for escaping double quotes (thanks
2265 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2267 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2268 Adjusted paths to reflect directory reorganization.
2270 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2272 * doc/.cvsignore, doc/Makefile.am:
2273 Reorganized: sources in `src', documentation in `doc'.
2275 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2278 Updated AC_INIT file to reflect directory reorganization.
2280 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2281 Reorganized: sources in `src', documentation in `doc'.
2283 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2286 Don't declare calloc() and realloc() if not necessary.
2288 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2290 * configure.in, acconfig.h, acinclude.m4:
2291 Don't declare calloc() and realloc() if not necessary.
2293 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2295 * po/.cvsignore: Added i18n support.
2297 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2299 * acconfig.h, configure.in, Makefile.am:
2302 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2304 * src/bison.s1: Fixed #line numbers.
2306 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2308 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2309 Added PO files from Translation Project.
2311 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2314 Added support for non-ANSI compilers (ansi2knr).
2316 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2318 * configure.in: Bumped version number to 1.27.
2321 Added `bison.simple' to list of files removed by `make distclean'.
2323 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2325 * src/files.c, src/files.h:
2326 Defined locations of parser files in config.h instead of Makefile.
2328 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2330 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2331 Defined locations of parser files in config.h instead of Makefile.
2333 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2336 Removed inappropriate use of $< macro.
2338 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2340 * po/Makefile.in.in, po/POTFILES.in:
2341 Add `po' directory skeleton.
2343 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2345 * README: Document help-bison list.
2347 * configure.in: Add check for mkstemp().
2349 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2351 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2352 Hush a few compiler warnings.
2355 Add tryclose(), which verifies that fclose was successful.
2356 Hush a couple of compiler warnings.
2358 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2360 * Makefile.am, OChangeLog:
2361 ChangeLog is now automatically generated. Include the old version as
2364 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2366 * 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:
2369 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2371 * doc/bison.texinfo: Fix formatting glitch.
2373 * doc/bison.texinfo: Update FSF address.
2375 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2377 * acconfig.h: Update FSF address.
2379 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2382 Don't define PACKAGE here, since config.h defines it.
2384 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2386 * src/reader.c: Update copyright date.
2389 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2390 favor of output directly to stderr (avoids buffer overruns).
2392 * src/reader.c: Some checks for premature EOF.
2394 * 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:
2395 Use prototypes if the compiler understands them.
2397 * src/files.c: Honor TMPDIR on Unix hosts.
2398 Use prototypes if the compiler understands them.
2401 Fix a couple of buffer overrun bugs.
2402 Use prototypes if the compiler understands them.
2404 * src/system.h: Include unistd.h and ctype.h.
2405 Use #ifdef instead of #if for NLS symbols.
2407 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2409 * doc/bison.texinfo:
2410 Delete comment "consider using @set for edition number, etc..." since
2411 we now are doing so.
2413 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2416 Use prototypes if the compiler understands them.
2418 * NEWS: Document 1.26 highlights.
2420 * Makefile.am: Require Automake 1.3 or later.
2423 Use prototypes if the compiler understands them.
2425 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2428 Use VERSION symbol from automake for version number.
2430 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2432 * acconfig.h, configure.in, version.cin:
2433 Use VERSION symbol from automake for version number.
2435 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2438 Distribute original version of simple parser (bison.s1), not built
2439 version (bison.simple).
2441 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2443 * doc/bison.texinfo: Add info dir entry.
2445 * doc/bison.texinfo:
2446 Let automake put version number into documentation.
2448 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2450 * src/bison.cld, src/build.com, src/vmshlp.mar:
2451 Add non-RCS files from /gd/gnu/bison.
2453 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2456 Document the BISON_HAIRY and BISON_SIMPLE variables.
2458 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2460 * src/version.c: Build version.c automatically.
2463 Fix token numbering (used to start at 258, not 257).
2465 * src/system.h: Include config.h.
2467 * src/getargs.c: Update bug report address.
2469 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2470 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2472 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2475 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2477 * configure.in, version.cin:
2478 Build version.c automatically.
2480 * AUTHORS: Add AUTHORS file.
2482 * README: Update bug report address.
2485 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2487 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2490 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2492 * doc/bison.texinfo: Clean up some formatting.
2494 1998-05-05 Richard Stallman <rms@gnu.org>
2496 * doc/bison.texinfo:
2497 Explain better why to make a pure parser.
2499 1998-01-05 Richard Stallman <rms@gnu.org>
2501 * src/files.c (openfiles):
2502 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2503 find a temporary directory, if possible. Do not unlink files while
2506 1997-08-25 Richard Stallman <rms@gnu.org>
2508 * src/reader.c (stack_offset;):
2509 Change some warni to warns.
2511 * src/lex.c (literalchar): Use warns, not warni.
2513 1997-06-28 Richard Stallman <rms@gnu.org>
2515 * src/bison.s1: Add a Bison version comment.
2517 * src/main.c (fatal, warn, berror):
2520 1997-06-28 Richard Stallman <rms@gnu.org>
2522 * Makefile.in (bison_version): New variable.
2523 (dist): Use that variable.
2524 (bison.s1): Substitute the Bison version into bison.simple.
2526 * bison.simple: Add a Bison version comment.
2528 1997-06-18 Richard Stallman <rms@gnu.org>
2530 * src/main.c (fatal, warn, berror):
2531 Make error messages standard.
2532 (toomany): Improve error message text.
2534 * 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:
2535 new.h renamed to alloc.h.
2537 1997-06-18 Richard Stallman <rms@gnu.org>
2539 * Makefile.in: new.h renamed to alloc.h.
2541 1997-05-24 Richard Stallman <rms@gnu.org>
2543 * src/lex.c (literalchar):
2544 Fix the code for escaping \, " and '.
2546 (lex): Avoid trouble when there are many chars
2547 to discard in a char literal with just several chars in it.
2549 1997-05-17 Richard Stallman <rms@gnu.org>
2552 Use malloc, if using alloca is troublesome.
2553 (YYSTACK_USE_ALLOCA): New flag macro.
2554 Define it for some systems and compilers.
2555 (YYSTACK_ALLOC): New macro.
2556 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2557 If it was malloc'd, free it.
2559 1997-05-17 Richard Stallman <rms@gnu.org>
2562 Use malloc, if using alloca is troublesome.
2563 (YYSTACK_USE_ALLOCA): New flag macro.
2564 Define it for some systems and compilers.
2565 (YYSTACK_ALLOC): New macro.
2566 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2567 If it was malloc'd, free it.
2569 1997-04-23 Richard Stallman <rms@gnu.org>
2572 (alloca) [__hpux]: Always define as __builtin_alloca.
2574 1997-04-23 Richard Stallman <rms@gnu.org>
2577 (alloca) [__hpux]: Always define as __builtin_alloca.
2579 1997-04-22 Richard Stallman <rms@gnu.org>
2582 [__hpux]: Include alloca.h (right for HPUX 10)
2583 instead of declaring alloca (right for HPUX 9).
2585 * src/bison.s1 (__yy_memcpy):
2586 Declare arg `count' as unsigned int.
2587 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2589 1997-04-22 Richard Stallman <rms@gnu.org>
2592 [__hpux]: Include alloca.h (right for HPUX 10)
2593 instead of declaring alloca (right for HPUX 9).
2595 * bison.simple (__yy_memcpy):
2596 Declare arg `count' as unsigned int.
2597 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2599 1997-01-03 Richard Stallman <rms@gnu.org>
2601 * src/allocate.c: [__STDC__ or _MSC_VER]:
2602 Declare calloc and realloc to return void *.
2604 1997-01-02 Richard Stallman <rms@gnu.org>
2607 [_MSC_VER]: Include stdlib.h and process.h.
2608 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2610 * src/main.c (main): Return FAILURE as a value.
2611 (printable_version): Declare arg as int, not char.
2613 1997-01-02 Richard Stallman <rms@gnu.org>
2615 * Makefile.in (dist):
2616 Explicitly check for symlinks, and copy them.
2618 1996-12-19 Richard Stallman <rms@gnu.org>
2621 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2623 1996-12-18 Paul Eggert <eggert@gnu.org>
2625 * src/bison.s1 (yyparse):
2626 If __GNUC__ and YYPARSE_PARAM are both defined,
2627 declare yyparse to have a void * argument.
2629 1996-12-18 Paul Eggert <eggert@gnu.org>
2631 * bison.simple (yyparse):
2632 If __GNUC__ and YYPARSE_PARAM are both defined,
2633 declare yyparse to have a void * argument.
2635 1996-12-17 Richard Stallman <rms@gnu.org>
2637 * src/reduce.c (nbits): Add some casts.
2639 1996-08-12 Richard Stallman <rms@gnu.org>
2641 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2643 1996-08-12 Richard Stallman <rms@gnu.org>
2645 * bison.simple: Test _MSDOS as well as _MSDOS_.
2647 1996-07-31 Richard Stallman <rms@gnu.org>
2650 [__sun && __i386]: Include alloca.h.
2652 1996-07-31 Richard Stallman <rms@gnu.org>
2655 [__sun && __i386]: Include alloca.h.
2657 1996-07-30 Richard Stallman <rms@gnu.org>
2659 * src/bison.s1: Comment change.
2661 * src/bison.s1: Test _MSDOS_, not MSDOS.
2663 1996-07-30 Richard Stallman <rms@gnu.org>
2665 * bison.simple: Comment change.
2667 * bison.simple: Test _MSDOS_, not MSDOS.
2669 1996-06-01 Richard Stallman <rms@gnu.org>
2671 * 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:
2672 Insert `_' macro around many string constants.
2675 Insert `_' macro around many string constants.
2677 (main): Call setlocale, bindtextdomain and textdomain.
2679 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2680 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2681 [ENABLE_NLS]: Include libintl.h.
2682 [ENABLE_NLS] (gettext): Define.
2683 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2684 (N_, PACKAGE, LOCALEDIR): New macros.
2686 1996-06-01 Richard Stallman <rms@gnu.org>
2688 * POTFILES.in: New file.
2690 * Makefile.in (allocate.o):
2691 Define target explicitly.
2693 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2694 (LDFLAGS): Set to @LDFLAGS@.
2695 (configure): Run autoconf only if preceding `cd' succeeds.
2696 (bison.s1): Redirect output to temporary file then move the
2697 temporary to the target, rather than redirecting directly to bison.s1.
2698 (clean): Remove config.status and config.log.
2699 (distclean): Don't remove config.status here.
2701 1996-05-12 Richard Stallman <rms@gnu.org>
2704 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2706 1996-05-12 Richard Stallman <rms@gnu.org>
2709 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2711 1996-05-11 Richard Stallman <rms@gnu.org>
2713 * src/bison.s1 (__yy_memcpy):
2714 Really reorder the args, as was supposedly done on Feb 14 1995.
2715 (yyparse): Calls changed accordingly.
2717 1996-05-11 Richard Stallman <rms@gnu.org>
2719 * Makefile.in (dist): Don't use $(srcdir).
2721 * bison.simple (__yy_memcpy):
2722 Really reorder the args, as was supposedly done on Feb 14 1995.
2723 (yyparse): Calls changed accordingly.
2725 1996-01-27 Richard Stallman <rms@gnu.org>
2727 * src/output.c (output_rule_data):
2728 Test YYERROR_VERBOSE in the conditional
2729 around the definition of ttyname.
2731 1995-12-29 Richard Stallman <rms@gnu.org>
2734 Fix line numbers in #line commands.
2736 1995-12-29 Richard Stallman <rms@gnu.org>
2739 Fix line numbers in #line commands.
2741 1995-12-27 Richard Stallman <rms@gnu.org>
2743 * src/bison.s1 (YYPARSE_PARAM_DECL):
2744 In C++, make it always null.
2745 (YYPARSE_PARAM_ARG): New macro.
2746 (yyparse): Use YYPARSE_PARAM_ARG.
2748 1995-12-27 Richard Stallman <rms@gnu.org>
2750 * bison.simple (YYPARSE_PARAM_DECL):
2751 In C++, make it always null.
2752 (YYPARSE_PARAM_ARG): New macro.
2753 (yyparse): Use YYPARSE_PARAM_ARG.
2755 1995-11-29 Richard Stallman <rms@gnu.org>
2757 * doc/bison.texinfo:
2758 Describe literal string tokens, %raw, %no_lines, %token_table.
2760 1995-11-29 Daniel Hagerty <hag@gnu.org>
2762 * doc/bison.texinfo: Fixed update date
2764 1995-10-16 Richard Stallman <rms@gnu.org>
2766 * src/version.c: Version 1.25.
2768 1995-10-16 Richard Stallman <rms@gnu.org>
2770 * NEWS: *** empty log message ***
2772 1995-10-16 Richard Stallman <rms@gnu.org>
2774 * doc/bison.1, doc/bison.rnh:
2777 1995-10-15 Richard Stallman <rms@gnu.org>
2779 * src/vmsgetargs.c, src/getargs.c:
2780 Added -n, -k, and -raw switches.
2781 (noparserflag, toknumflag, rawtoknumflag): New variables.
2783 * src/symtab.h (SALIAS):
2784 New #define for adding aliases to %token.
2785 (struct bucket): Added `alias' field.
2787 * src/reduce.c (reduce_grammar):
2788 Revise error message.
2789 (print_notices): Remove final `.' from error message.
2791 * src/reader.c (reader_output_yylsp):
2793 (readgram): Use `#if 0' around code that accepted %command
2794 inside grammar rules: The documentation doesn't allow it,
2795 and it will fail since the %command processors scan for the next %.
2796 (parse_token_decl): Extended the %token
2797 declaration to allow a multi-character symbol as an alias.
2798 (parse_thong_decl): New function.
2799 (read_declarations): Added %thong declarations.
2800 (read_declarations): Handle NOOP to deal with allowing
2801 % declarations as another means to specify the flags.
2802 (readgram): Allow %prec prior to semantics embedded in a rule.
2803 (skip_to_char, read_declarations, copy_definition)
2804 (parse_token_decl, parse_start_decl, parse_type_decl)
2805 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2806 (get_type_name, copy_guard, copy_action, readgram)
2807 (get_type, packsymbols): Revised most error messages.
2808 Changed `fatal' to `warnxxx' to avoid aborting for error.
2809 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2810 (read_declarations): Improve the error message for
2811 an invalid character. Do not abort.
2812 (read_declarations, copy_guard, copy_action): Use
2813 printable_version to avoid unprintable characters in printed output.
2814 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2815 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2816 Allow the type of a non-terminal can be given
2817 more than once, as long as all specifications give the same type.
2820 (output_headers, output_trailers, output, output_gram)
2821 (output_rule_data): Implement noparserflag variable.
2822 Implement toknumflag variable.
2823 (output): Call reader_output_yylsp to output LTYPESTR.
2825 * src/main.c (main):
2826 If reader sees an error, don't process the grammar.
2827 (fatals): Updated to not use VARARGS1.
2828 (printable_version, int_to_string, warn, warni, warns, warnss)
2829 (warnsss): New error reporting functions. Avoid abort for error.
2832 Added THONG and NOOP for alias processing.
2833 Added SETOPT for the new code that allows setting options with %flags.
2836 Include getopt.h. Add some extern decls.
2837 (safegetc): New function to deal with EOF gracefully.
2838 (literalchar); new function to deal with reading \ escapes.
2839 (lex): Use literalchar.
2840 (lex): Implemented "..." tokens.
2841 (literalchar, lex, parse_percent_token): Made tokenbuffer
2842 always contain the token. This includes growing the token
2843 buffer while reading an integer.
2844 (parse_percent_token): Replaced if-else statement with percent_table.
2845 (parse_percent_token): Added % declarations as another
2846 way to specify the flags -n, -l, and -r. Also added hooks for
2847 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2848 major changes to files.c.
2849 (lex) Retain in the incoming stream a character following
2851 (skip_white_space, lex): Revised most error messages
2852 and changed fatal to warn to avoid aborting.
2853 (percent_table): Added %thong declarations.
2855 * src/gram.h: Comment changes.
2857 * src/files.c (openfiles, open_extra_files, done):
2859 and actfile file. Handle noparserflag. Both for -n switch.
2861 * src/conflicts.c (resolve_sr_conflict):
2862 Remove use of alloca.
2864 1995-06-01 Jim Meyering <meyering@gnu.org>
2866 * doc/bison.texinfo: *** empty log message ***
2868 1995-05-06 Richard Stallman <rms@gnu.org>
2870 * src/bison.s1: Comment change.
2872 1995-05-06 Richard Stallman <rms@gnu.org>
2874 * bison.simple: Comment change.
2876 1995-05-03 Richard Stallman <rms@gnu.org>
2878 * src/version.c: Version now 1.24.
2880 * src/bison.s1: Change distribution terms.
2882 * src/version.c: Version now 1.23.
2884 1995-05-03 Richard Stallman <rms@gnu.org>
2886 * doc/bison.texinfo:
2887 Rewrite "Conditions for Using Bison".
2888 Update version to 1.24.
2890 1995-05-03 Richard Stallman <rms@gnu.org>
2892 * bison.simple: Change distribution terms.
2894 1995-02-23 Richard Stallman <rms@gnu.org>
2896 * src/files.c: Test __VMS_POSIX as well as VMS.
2898 1995-02-14 Jim Meyering <meyering@gnu.org>
2900 * src/bison.s1 (__yy_memcpy):
2901 Renamed from __yy_bcopy to avoid
2902 confusion. Reverse FROM and TO arguments to be consistent with
2905 1995-02-14 Jim Meyering <meyering@gnu.org>
2907 * bison.simple (__yy_memcpy):
2908 Renamed from __yy_bcopy to avoid
2909 confusion. Reverse FROM and TO arguments to be consistent with
2912 1994-11-10 David J. MacKenzie <djm@gnu.org>
2918 * Makefile.in (DISTFILES): Include NEWS.
2920 * Makefile.in (DISTFILES):
2921 Include install-sh, not install.sh.
2923 * configure.in: Update to Autoconf v2 macro names.
2925 1994-10-05 David J. MacKenzie <djm@gnu.org>
2927 * Makefile.in: fix typo
2929 * Makefile.in (prefix, exec_prefix):
2930 Let configure set them.
2932 1994-09-28 David J. MacKenzie <djm@gnu.org>
2934 * Makefile.in: Set datadir to $(prefix)/share.
2936 1994-09-15 Richard Stallman <rms@gnu.org>
2939 Update copyright notice and GPL version.
2941 1994-09-15 Richard Stallman <rms@gnu.org>
2944 Update copyright notice and GPL version.
2946 1994-07-12 Richard Stallman <rms@gnu.org>
2948 * src/reduce.c, src/reader.c:
2951 1994-05-05 David J. MacKenzie <djm@gnu.org>
2953 * Makefile.in: entered into RCS
2955 1994-03-26 Richard Stallman <rms@gnu.org>
2957 * src/bison.s1: entered into RCS
2959 1994-03-26 Richard Stallman <rms@gnu.org>
2961 * bison.simple: entered into RCS
2963 1994-03-25 Richard Stallman <rms@gnu.org>
2965 * src/main.c: entered into RCS
2967 1994-03-24 Richard Stallman <rms@gnu.org>
2969 * src/conflicts.c: entered into RCS
2971 1994-01-02 Richard Stallman <rms@gnu.org>
2973 * Makefile.in: *** empty log message ***
2975 1993-11-21 Richard Stallman <rms@gnu.org>
2977 * src/bison.s1: *** empty log message ***
2979 1993-11-21 Richard Stallman <rms@gnu.org>
2981 * doc/bison.texinfo: entered into RCS
2983 * doc/bison.texinfo: *** empty log message ***
2985 1993-11-21 Richard Stallman <rms@gnu.org>
2987 * bison.simple: *** empty log message ***
2989 1993-10-25 David J. MacKenzie <djm@gnu.org>
2991 * doc/bison.texinfo: *** empty log message ***
2993 1993-10-19 Richard Stallman <rms@gnu.org>
2995 * src/bison.s1: *** empty log message ***
2997 1993-10-19 Richard Stallman <rms@gnu.org>
2999 * bison.simple: *** empty log message ***
3001 1993-10-14 Richard Stallman <rms@gnu.org>
3003 * src/bison.s1: *** empty log message ***
3005 1993-10-14 Richard Stallman <rms@gnu.org>
3007 * bison.simple: *** empty log message ***
3009 1993-09-14 David J. MacKenzie <djm@gnu.org>
3011 * doc/bison.texinfo: *** empty log message ***
3013 1993-09-13 Noah Friedman <friedman@gnu.org>
3015 * Makefile.in: *** empty log message ***
3017 1993-09-10 Richard Stallman <rms@gnu.org>
3019 * src/conflicts.c: *** empty log message ***
3021 * src/system.h: entered into RCS
3023 1993-09-10 Richard Stallman <rms@gnu.org>
3025 * doc/bison.1: entered into RCS
3027 1993-09-06 Noah Friedman <friedman@gnu.org>
3029 * src/version.c: entered into RCS
3031 1993-09-06 Noah Friedman <friedman@gnu.org>
3033 * Makefile.in: *** empty log message ***
3035 1993-07-30 David J. MacKenzie <djm@gnu.org>
3037 * Makefile.in: *** empty log message ***
3039 1993-07-24 Richard Stallman <rms@gnu.org>
3041 * src/bison.s1: *** empty log message ***
3043 1993-07-24 Richard Stallman <rms@gnu.org>
3045 * bison.simple: *** empty log message ***
3047 1993-07-08 David J. MacKenzie <djm@gnu.org>
3049 * Makefile.in: *** empty log message ***
3051 1993-07-04 Richard Stallman <rms@gnu.org>
3053 * src/bison.s1: *** empty log message ***
3055 1993-07-04 Richard Stallman <rms@gnu.org>
3057 * bison.simple: *** empty log message ***
3059 1993-06-26 David J. MacKenzie <djm@gnu.org>
3061 * src/getargs.c: entered into RCS
3063 1993-06-26 David J. MacKenzie <djm@gnu.org>
3065 * doc/bison.texinfo: *** empty log message ***
3067 * doc/bison.1: New file.
3069 1993-06-25 Richard Stallman <rms@gnu.org>
3071 * src/getargs.c: New file.
3073 1993-06-16 Richard Stallman <rms@gnu.org>
3075 * src/bison.s1: *** empty log message ***
3077 1993-06-16 Richard Stallman <rms@gnu.org>
3079 * bison.simple: *** empty log message ***
3081 1993-06-03 Richard Stallman <rms@gnu.org>
3083 * src/bison.s1: New file.
3085 1993-06-03 Richard Stallman <rms@gnu.org>
3087 * doc/bison.texinfo: *** empty log message ***
3089 1993-06-03 Richard Stallman <rms@gnu.org>
3091 * bison.simple: New file.
3093 1993-05-19 Richard Stallman <rms@gnu.org>
3095 * doc/bison.texinfo: New file.
3097 1993-05-07 Noah Friedman <friedman@gnu.org>
3099 * Makefile.in: *** empty log message ***
3101 1993-04-28 Noah Friedman <friedman@gnu.org>
3103 * src/reader.c: *** empty log message ***
3105 1993-04-23 Noah Friedman <friedman@gnu.org>
3107 * src/alloc.h: entered into RCS
3109 1993-04-20 David J. MacKenzie <djm@gnu.org>
3111 * src/version.c: *** empty log message ***
3113 * src/files.c, src/allocate.c:
3116 * src/reader.c: *** empty log message ***
3118 * src/lex.c: entered into RCS
3120 * src/conflicts.c: New file.
3122 * src/symtab.c: entered into RCS
3124 * src/alloc.h: New file.
3126 * src/LR0.c: entered into RCS
3128 1993-04-18 Noah Friedman <friedman@gnu.org>
3130 * src/reader.c: New file.
3132 * src/version.c: *** empty log message ***
3134 1993-04-18 Noah Friedman <friedman@gnu.org>
3136 * Makefile.in: *** empty log message ***
3138 1993-04-17 Noah Friedman <friedman@gnu.org>
3140 * Makefile.in: *** empty log message ***
3142 1993-04-15 Richard Stallman <rms@gnu.org>
3144 * src/main.c, src/files.c:
3147 1993-04-15 Noah Friedman <friedman@gnu.org>
3149 * configure.in: entered into RCS
3151 * configure.in: *** empty log message ***
3153 * configure.in: New file.
3155 1993-04-14 Richard Stallman <rms@gnu.org>
3157 * Makefile.in: New file.
3159 1993-04-13 Richard Stallman <rms@gnu.org>
3161 * src/version.c: New file.
3163 1993-03-25 Richard Stallman <rms@gnu.org>
3165 * src/output.c: entered into RCS
3167 1992-09-25 Richard Stallman <rms@gnu.org>
3169 * configure.bat: entered into RCS
3171 1992-06-22 Richard Stallman <rms@gnu.org>
3173 * src/vmsgetargs.c: entered into RCS
3175 1992-06-22 Richard Stallman <rms@gnu.org>
3177 * doc/bison.rnh: entered into RCS
3179 1992-04-20 David J. MacKenzie <djm@gnu.org>
3181 * README: entered into RCS
3183 1992-01-22 Richard Stallman <rms@gnu.org>
3185 * src/machine.h: entered into RCS
3187 1991-12-21 Richard Stallman <rms@gnu.org>
3189 * src/lalr.c, src/closure.c:
3192 1991-12-20 Richard Stallman <rms@gnu.org>
3194 * src/state.h: entered into RCS
3196 1991-12-18 Richard Stallman <rms@gnu.org>
3198 * src/print.c, src/nullable.c, src/derives.c:
3201 1991-11-03 David J. MacKenzie <djm@gnu.org>
3203 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3206 1988-09-09 Richard Stallman <rms@gnu.org>
3208 * src/bison.hairy: entered into RCS
3210 1987-12-16 Richard Stallman <rms@gnu.org>
3212 * REFERENCES: entered into RCS