1 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
3 * src/conflicts.c: Move global variables rrc_total and src_total ...
4 (print_conflicts): here.
5 * src/output.c (output): Free global variable user_toknums.
6 * src/lex.c (token_obstack): Become static.
8 2001-10-18 Akim Demaille <akim@epita.fr>
10 * tests/atlocal.in (GCC): Add.
11 * tests/calc.at: s/m4_match/m4_bmatch/.
12 s/m4_patsubst/m4_bpatsubst/.
13 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
14 * configure.in: AC_SUBST(GCC).
16 2001-10-14 Marc Autret <autret_m@epita.fr>
18 * src/options.c (create_long_option_table): Fix.
20 2001-10-10 Akim Demaille <akim@epita.fr>
22 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
24 2001-10-04 Akim Demaille <akim@epita.fr>
26 * src/reader.c (parse_union_decl): Push the caracters in
27 union_obstack, not attrs_obstack.
29 2001-10-04 Akim Demaille <akim@epita.fr>
31 Merge in the branch 1.29.
33 * src/reader.c (packsymbols): Use a temporary obstack for
34 `%%tokendef', since output_stack is already used elsewhere.
36 2001-10-02 Akim Demaille <akim@epita.fr>
40 2001-10-02 Akim Demaille <akim@epita.fr>
44 2001-10-02 Akim Demaille <akim@epita.fr>
46 * tests/regression.at (Invalid CPP headers): New.
47 From Alexander Belopolsky.
48 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
50 2001-10-02 Akim Demaille <akim@epita.fr>
52 * tests/regression.at (Invalid input): New.
53 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
56 2001-10-02 Akim Demaille <akim@epita.fr>
58 * tests/calc.at: Now that --debug works, the tests must be adjusted.
60 2001-10-02 Akim Demaille <akim@epita.fr>
62 * src/output.c (output_parser): Assert `skeleton'.
63 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
67 2001-10-01 Marc Autret <autret_m@epita.fr>
69 * src/lex.h: Echo modifications.
70 * src/lex.c (unlex): Parameter is now token_t.
73 2001-10-01 Marc Autret <autret_m@epita.fr>
75 * src/main.c: Include lex.h.
78 2001-09-29 Akim Demaille <akim@epita.fr>
80 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
82 2001-09-28 Akim Demaille <akim@epita.fr>
84 * tests/testsuite.at: Update to newer Autotest.
85 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
87 2001-09-27 Akim Demaille <akim@epita.fr>
89 Position independent wrapper.
91 * tests/bison: Remove.
92 * tests/bison.in: New.
93 * configure.in: Adjust.
95 2001-09-27 Paul Eggert <eggert@twinsun.com>
97 Port quotearg fixes from tar 1.13.24.
99 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
101 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
102 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
104 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
105 * m4/mbrtowc.m4: New file.
106 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
107 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
109 2001-09-27 Akim Demaille <akim@epita.fr>
113 2001-09-27 Akim Demaille <akim@epita.fr>
117 2001-09-25 Akim Demaille <akim@epita.fr>
119 * src/system.h: Include `xalloc.h'.
120 Remove it from the C files.
121 * src/files.c (output_files): Free the obstacks.
122 * src/lex.c (init_lex): Rename as...
125 * src/main.c (main): Use it.
127 2001-09-24 Marc Autret <autret_m@epita.fr>
129 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
130 to output informations in fout (FILE*).
131 (open_graph, close_graph): Likewise.
132 (output_graph, output_edge, output_node): Likewise.
133 * src/vcg.h: Update function prototypes.
134 * src/print_graph.c (print_graph): Open output graph file.
135 (print_actions): Adjust.
136 * src/files.h: Remove extern declaration.
137 * src/files.c: Remove graph_obstack declaration.
138 (open_files): Remove graph_obstack initialization.
139 (output_files): Remove graph_obstack saving.
141 2001-09-24 Marc Autret <autret_m@epita.fr>
143 * src/files.c (compute_output_file_names): Fix.
145 2001-09-24 Marc Autret <autret_m@epita.fr>,
146 Akim Demaille <akim@epita.fr>
148 * src/reader.c (reader): Remove call to free_symtab ().
149 * src/main.c (main): Call it here.
151 * src/conflicts.c (initialize_conflicts): Rename as...
152 (solve_conflicts): this.
153 * src/print.c (print_core, print_actions, print_state)
154 (print_grammar): Dump to a file instead a `output_obstack'.
155 (print_results): Dump `output_obstack', and then proceed with the
157 * src/files.c (compute_output_file_names, close_files): New.
158 (output_files): Adjust.
159 * src/main.c (main): Adjust.
161 2001-09-23 Marc Autret <autret_m@epita.fr>
163 * src/files.c (compute_header_macro): Computes header macro name
164 from spec_defines_file when given.
166 2001-09-23 Marc Autret <autret_m@epita.fr>
168 * src/files.c (output_files): Add default extensions.
170 2001-09-22 Akim Demaille <akim@epita.fr>
172 * src/conflicts.c (finalize_conflicts): Rename as...
173 (free_conflicts): this.
175 2001-09-22 Akim Demaille <akim@epita.fr>
177 * src/gram.c (gram_free): Rename back as...
179 (output_token_translations): Free `token_translations'.
180 * src/symtab.c (free_symtab): Free the tag field.
182 2001-09-22 Akim Demaille <akim@epita.fr>
184 Remove `translations' as it is always set to true.
186 * src/gram.h: Adjust.
187 * src/reader.c (packsymbols, parse_token_decl): Adjust
188 * src/print.c (print_grammar): Adjust.
189 * src/output.c (output_token_translations): Adjust.
190 * src/lex.c (lex): Adjust.
191 * src/gram.c: Be sure the set pointers to NULL.
192 (dummy): Rename as...
195 2001-09-22 Akim Demaille <akim@epita.fr>
197 * configure.in: Invoke AM_LIB_DMALLOC.
198 * src/system.h: Use dmalloc.
199 * src/LR0.c: Be sure to have pointers initialized to NULL.
200 (allocate_itemsets): Allocate kernel_items only if needed.
202 2001-09-22 Akim Demaille <akim@epita.fr>
204 * configure.in: Bump to 1.29b.
205 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
206 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
207 need xmalloc.c in calc.y.
210 2001-09-21 Akim Demaille <akim@epita.fr>
213 * Makefile.maint, config/config.guess, config/config.sub,
214 * config/missing: Update from masters.
215 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
217 * configure.in (ALL_LINGUAS): Add `tr'.
219 2001-09-21 Akim Demaille <akim@epita.fr>
221 * tests/Makefile.am (package.m4): Move to...
222 ($(srcdir)/$(TESTSUITE)): here.
224 2001-09-20 Akim Demaille <akim@epita.fr>
226 * src/complain.c: No longer try to be standalone: use system.h.
227 Don't assume __STDC__ is defined to 1. Just test if it is defined.
228 * src/complain.h: Likewise.
229 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
230 Remove the unused variable `n'.
231 From Albert Chin-A-Young.
233 2001-09-18 Marc Autret <autret_m@epita.fr>
235 * doc/bison.1: Update.
236 * doc/bison.texinfo (Bison Options): Update --defines and --graph
238 (Option Cross Key): Update.
241 2001-09-18 Marc Autret <autret_m@epita.fr>
243 * tests/regression.at: New test (comment in %union).
245 2001-09-18 Marc Autret <autret_m@epita.fr>
247 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
249 Reported by Keith Browne.
251 2001-09-18 Marc Autret <autret_m@epita.fr>
253 * tests/output.at: Add tests for --defines and --graph.
255 2001-09-18 Marc Autret <autret_m@epita.fr>
257 * tests/output.at: Removes tests of %{header,src}_extension features.
259 2001-09-18 Akim Demaille <akim@epita.fr>
261 * tests/Makefile.am (package.m4): New.
262 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
263 (_AT_CHECK_CALC_ERROR): Likewise.
264 Factor the `, ' part of verbose error messages.
266 2001-09-18 Marc Autret <autret_m@epita.fr>
268 * src/getargs.c (longopts): Declare --defines and --graph as options
269 with optional arguments.
270 * src/files.h: Add extern declarations.
271 * src/files.c (spec_graph_file, spec_defines_file): New.
272 (output_files): Update.
273 Remove CPP-outed code.
275 2001-09-18 Marc Autret <autret_m@epita.fr>
277 Turn off %{source,header}_extension feature.
279 * src/files.c (compute_exts_from_gf): Update.
280 (compute_exts_from_src): Update.
281 (output_files): CPP-out useless code.
282 * src/files.h: Remove {header,source}_extension extern declarations.
283 * src/reader.c (parse_dquoted_param): CPP-out.
284 (parse_header_extension_decl): Remove.
285 (parse_source_extension_decl): Remove.
286 (read_declarations): Remove cases tok_{hdrext,srcext}.
287 * src/lex.c (percent_table): Remove {header,source}_extension entries.
288 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
290 2001-09-10 Akim Demaille <akim@epita.fr>
292 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
293 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
294 (AT_CHECK_OUTPUT): this.
295 Merely check ls' exit status, its output is useless.
297 2001-09-10 Akim Demaille <akim@epita.fr>
299 * tests/calc.at: Use m4_match.
300 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
302 2001-09-10 Marc Autret <autret_m@epita.fr>,
303 Akim Demaille <akim@epita.fr>
305 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
307 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
309 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
310 * src/lex.h: Adjust prototype.
311 (token_t): Add `tok_undef'.
312 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
313 (parse_percent_token): Now returns token_t.
314 Add default statement in switch.
315 (lex): Separate `c' as an input variable, from the token_t result
317 (unlexed): Is a token_t.
319 2001-09-10 Akim Demaille <akim@epita.fr>
321 * configure.in: Bump to 1.29a.
323 2001-09-07 Akim Demaille <akim@epita.fr>
327 2001-08-30 Akim Demaille <akim@epita.fr>
329 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
330 * m4/atconfig.m4: Remove.
331 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
333 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
334 m4_if, m4_patsubst, and m4_regexp.
335 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
336 `input' file instead of echo.
338 2001-08-29 Akim Demaille <akim@epita.fr>
342 2001-08-29 Akim Demaille <akim@epita.fr>
346 2001-08-29 Paul Eggert <eggert@twinsun.com>
348 * src/bison.simple (yyparse): Don't take the address of an
349 item before the start of an array, as that doesn't conform to
352 2001-08-29 Robert Anisko <anisko_r@epita.fr>
354 * doc/bison.texinfo (Location Tracking Calc): New node.
356 2001-08-29 Paul Eggert <eggert@twinsun.com>
358 * src/output.c (output): Do not define const, as this now
359 causes more problems than it cures.
361 2001-08-29 Akim Demaille <akim@epita.fr>
363 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
365 Be sure to tag the `detailmenu'.
367 2001-08-29 Akim Demaille <akim@epita.fr>
369 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
370 download in a tmp dir.
372 2001-08-28 Marc Autret <autret_m@epita.fr>
374 * config/depcomp: New file.
376 2001-08-28 Marc Autret <autret_m@epita.fr>
378 * doc/bison.1 (mandoc): Adjust.
379 From Juan Manuel Guerrero.
381 2001-08-28 Marc Autret <autret_m@epita.fr>
383 * src/print_graph.c (print_state): Fix.
385 2001-08-27 Marc Autret <autret_m@epita.fr>
387 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
389 Echo modifications to the functions prototypes.
390 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
392 2001-08-27 Marc Autret <autret_m@epita.fr>
394 * src/vcg.c: Include `xalloc.h'.
395 (add_colorentry): New.
396 (add_classname): New.
398 * src/vcg.h: Add new prototypes.
400 2001-08-27 Akim Demaille <akim@epita.fr>
402 * Makefile.maint: Sync. again with CVS Autoconf.
404 2001-08-27 Akim Demaille <akim@epita.fr>
406 * Makefile.maint: Formatting changes.
407 (po-update, cvs-update, update): New targets.
410 2001-08-27 Akim Demaille <akim@epita.fr>
412 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
413 * Makefile.maint: Sync. with CVS Autoconf.
415 2001-08-27 Marc Autret <autret_m@epita.fr>
417 * src/vcg.h (struct infoname_s): New.
418 (struct colorentry_s): New.
419 (graph_s): New fields {vertical,horizontal}_order in structure.
420 Add `infoname' field.
421 Add `colorentry' field;
422 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
423 (G_HORIZONTAL_ORDER): New.
426 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
427 Add output of `infoname'.
428 Add output of `colorentry'.
430 2001-08-27 Marc Autret <autret_m@epita.fr>
432 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
433 This one shadowed a global parameter.
435 2001-08-24 Marc Autret <autret_m@epita.fr>
437 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
438 instead of `unsigned'.
439 (print_state): Do not call obstack_object_size () in obstack_grow ()
440 to avoid macro variables shadowing.
442 2001-08-23 Marc Autret <autret_m@epita.fr>
444 * src/lex.c (percent_table): Typo: s/naem/name/.
446 Normalize new options declarations.
448 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
450 * tests/suite.at: Exercise %header_extension and %source_extension.
452 2001-08-16 Marc Autret <autret_m@epita.fr>
454 * src/reader.c (parse_dquoted_param): New.
455 (parse_header_extension_decl): Use it.
456 (parse_source_extension_decl): Likewise.
458 2001-08-16 Marc Autret <autret_m@epita.fr>
460 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
461 (get_xxxx_str): Use assert () instead of complain ().
462 Remove return invokations in default cases.
463 (get_decision_str): Modify default behaviour. Remove second argument.
464 Echo modifications on calls.
467 2001-08-16 Marc Autret <autret_m@epita.fr>
469 * src/getargs.c (usage): Update with ``-g, --graph''.
471 2001-08-16 Marc Autret <autret_m@epita.fr>
473 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
474 (Option Cross Key): Likewise.
475 * doc/bison.1: Update.
477 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
479 * src/output.c (output_master_parser): Don't finish action_obstack.
480 (output_parser): Don't care about the muscle action, here.
481 (prepare): Copy the action_obstack in the action muscle.
482 (output): Free action_obstack.
484 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
486 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
487 will contain `%union' declaration.
488 (parse_union_decl): Delete #line directive output.
489 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
490 informations about %union.
491 (parse_union_decl): Copy the union_obstack in the muscle stype.
492 * src/bison.simple: Add new #line directive.
493 Add typdef %%stype YYSTYPE.
495 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
497 * src/bison.simple: Add new `#line' directive.
499 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
501 * src/bison.simple: New `#line' directive.
502 * src/output.c (output_parser): Support new dynamic muscle input_line.
504 2001-09-22 Marc Autret <autret_m@epita.fr>
506 * src/output.c (output_master_parser): New.
507 (output_parser): Be more re-entrant.
509 2001-09-21 Marc Autret <autret_m@epita.fr>
511 * src/reader.c (copy_definition, parse_union_decl): Update and use
513 (copy_action): Likewise.
514 Use obstack_1grow ().
515 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
517 2001-09-21 Marc Autret <autret_m@epita.fr>
519 * src/options.c (option_table): Adjust.
520 * src/lex.c (parse_percent_token): Fix.
522 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
524 * src/options.c (symtab.h): Include it, need by lex.h.
526 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
528 * src/lex.c (parse_percent_token): Change type of variable `tx', which
529 is now an option_table_struct*.
530 (option_strcmp): New function option_strcmp.
531 (parse_percent_token): Call option_strcmp.
532 * src/getargs.c (xalloc.h, options.h): Include it.
533 (getargs): Call create_long_option_table.
534 (getargs): Free longopts at the end of the function.
535 (shortopts): Move in options.c.
536 * src/options.c (create_long_option_table): New function. Convert
537 information from option_table to option structure.
538 * src/reader.c (options.h): Include it.
540 * src/Makefile.am: Adjust.
541 * src/options.c (option_table): Create from longopts and percent_table.
542 * src/getargs.c (longopts): Delete.
543 * src/lex.c (struct percent_table_struct): Delete.
544 (percent_table): Delete.
545 (options.h): Include it.
546 * src/options.c: Create.
547 * src/options.h: Create.
548 Declare enum opt_access_e.
549 Define struct option_table_struct.
551 2001-09-20 Marc Autret <autret_m@epita.fr>
553 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
556 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
558 * src/bison.simple: s/%%filename/%%skeleton.
559 * src/muscle_tab.c (getargs.h): Include it.
560 (muscle_init): Insert new muscle skeleton.
562 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
564 * src/output.c (output_parser): Delete unused variable actions_dumped.
566 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
568 * src/output.c (output): Delete call to reader_output_yylsp.
569 * src/reader.c (reader): Likewise.
570 * src/reader.h: Delete declaration of reader_output_yylsp.
572 2001-09-02 Marc Autret <autret_m@epita.fr>
574 * src/reader.c: Include muscle_tab.h.
575 (parse_union_decl): Update.
576 (parse_macro_decl): Rename parse_muscle_decl.
577 Update to use renamed functions and variable.
578 (read_declarations, copy_action, read_additionnal_code, : Updated
579 with correct variables and functions names.
580 (packsymbols, reader): Likewise.
582 * src/reader.h (muscle_obstack): Extern declaration update.
584 * src/output.c: Include muscle_tab.h
585 In all functions using macro_insert, change by using muscle_insert ().
586 (macro_obstack): Rename muscle_obstack.
587 Echo modifications in the whole file.
588 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
589 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
590 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
592 * src/muscle_tab.h: Update double inclusion macros.
593 (macro_entry_s): Rename muscle_entry_s.
596 * src/muscle_tab.c: Include muscle_tab.h.
597 Rename macro_tabble to muscle_table.
598 (mhash1, mhash2, mcmp): Use muscle_entry.
599 (macro_init): Rename muscle_init. Update.
600 (macro_insert): Rename muscle_insert. Update.
601 (macro_find): Rename muscle_find. Update.
603 * src/main.c: Include muscle_tab.h.
604 (main): Call muscle_init ().
605 * src/Makefile.am (bison_SOURCES): Echo modifications.
607 2001-09-02 Marc Autret <autret_m@epita.fr>
609 Now the files macro_tab.[ch] are named muscle_tab.[ch].
611 * src/muscle_tab.c, src/muscle_tab.h: Add files.
613 2001-09-02 Marc Autret <autret_m@epita.fr>
615 * src/macrotab.c, src/macrotab.h: Remove.
617 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
619 * src/reader.c (copy_guard): Use muscle to specify the `#line'
622 2001-09-01 Marc Autret <autret_m@epita.fr>
624 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
625 to an explicit value to activate the feature. We do it here.
627 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
629 * src/output.c (prepare): Delete the `filename' muscule insertion.
630 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
631 (parse_union_decl): Likewise.
632 * src/macrotab.c (macro_init): Initialize filename by infile.
634 2001-08-31 Marc Autret <autret_m@epita.fr>
636 * src/bison.simple (YYLSP_NEEDED): New definition.
637 * src/output.c (prepare): Add macro insertion of `locations_flag'
639 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
641 * src/output.c (prepare): Delete insertion of previous muscles,
642 and insert the `prefix' muscles.
643 * src/macrotab.c (macro_init): Likewise.
644 (macro_init): Initialization prefix directive by `yy'.
645 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
646 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
647 yylval, yydebug, yyerror, yynerrs and yyparse.
648 New directive `#define' to substitute yydebug, ... with option
651 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
653 * src/main.c (main): Standardize.
654 * src/output.c (output_table_data, output_parser): Likewise.
655 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
657 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
659 * src/reader.c (read_additionnal_code): Rename %%user_code to
661 * src/output.c (output): Rename %%declarations to %%prologue.
662 * src/bison.simple: Echo modifications.
664 2001-08-31 Marc Autret <autret_m@epita.fr>
666 * src/reader.c (readgram): CleanUp.
667 (output_token_defines): Likewise.
668 (packsymbols): Likewise.
670 * src/output.c (output): CPP-out useless code.
672 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
674 * src/reader.c (reader): Delete obsolete call to function
675 output_trailers and output_headers.
676 * src/output.h: Remove obsolete functions prototypes of output_headers
679 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
681 * src/main.c: Include macrotab.h.
682 * src/macrotab.h (macro_entry_s): Constify fields.
683 Adjust functions prototypes.
684 * src/macrotab.c (macro_insert): Constify key and value.
685 (macro_find): Constify key.
686 (macro_insert): Include 'xalloc.h'
687 (macro_insert): Use XMALLOC.
688 (macro_find): Constify return value.
689 * src/output.c (output_table_data): Rename table to table_data.
690 (output_parser): Constify macro_key, macro_value.
692 2001-08-30 Marc Autret <autret_m@epita.fr>
694 * src/reader.c (parse_skel_decl): New.
695 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
696 * src/lex.h (token_t): New token `tok_skel'.
697 * src/lex.c (percent_table): Add skeleton option entry.
700 2001-08-29 Marc Autret <autret_m@epita.fr>
702 * src/bison.simple: Add %%user_code directive at the end.
703 * src/reader.c (read_additionnal_code): New.
705 * src/output.c (output_program): Remove.
708 2001-08-28 Marc Autret <autret_m@epita.fr>
710 * src/output.c (output_actions): Clean up.
711 (output_gram): CPP-out useless code.
712 * src/reader.c (reader): Clean up, CPP-out useless code.
714 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
716 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
718 * src/bison.simple: Add `%%definitions'.
720 2001-08-28 Marc Autret <autret_m@epita.fr>
722 * config/depcomp: New file.
724 2001-08-27 Paul Eggert <eggert@twinsun.com>
726 * src/bison.simple (yyparse): Don't take the address of an
727 item before the start of an array, as that doesn't conform to
730 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
732 * src/output.c (output): Remove the initialization of the macro
733 obstack. It was done too late here.
735 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
737 (reader): Initialize the macro obstack here, since we need it to grow
738 '%define' directives.
740 * src/reader.h: Declare the macro obstack as extern.
742 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
744 * src/output.c (output_parser): Fix. Store single '%' characters in
745 the output obstack instead of throwing them away.
747 2001-08-27 Akim Demaille <akim@epita.fr>
749 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
751 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
753 * lib/Makefile.am: Adjust.
755 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
757 * src/bison.simple: Update and add '%%' directives.
759 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
761 * src/reader.c (reader): Remove calls to 'output_headers' and
762 'output_trailers'. Remove some C output.
763 (readgram): Disable a piece of code that was writing a default
764 definition for 'YYSTYPE'.
765 (reader_output_yylsp): Remove.
766 (packsymbols): Output token defintions to a macro.
767 (copy_definition): Disable C output.
769 * src/reader.c (parse_macro_decl): New function used to parse macro
771 (copy_string2): Put the body of copy_string into this new function.
772 Add a parameter to let the caller choose whether he wants to copy the
773 string delimiters or not.
774 (copy_string): Be a simple call to copy_string2 with the last argument
776 (read_declarations): Add case for macro definition.
777 (copy_identifier): New.
778 (parse_macro_decl): Read macro identifiers using copy_identifier
781 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
783 * src/output.c (prepare): Add prefixed names.
784 (output_parser): Output semantic actions.
785 (output_parser): Fix bug on '%%line' directives.
787 * src/output.c (output_headers): Remove. The C code printed by this
788 function should now be in the skeletons.
789 (output_trailers): Remove.
790 (output): Disable call to 'reader_output_yylsp'.
791 (output_rule_data): Do not output tables to the table obstack.
793 * src/output.c: Remove some C dedicated output.
794 Improve the use of macro and output obstacks.
795 (output_defines): Remove.
797 * src/output.c (output_token_translations): Associate 'translate'
798 table with a macro. No output to the table obstack.
799 (output_gram): Same for 'rhs' and 'prhs'.
800 (output_stos): Same for 'stos'.
801 (output_rule_data): Same for 'r1' and 'r2'.
802 (token_actions): Same for 'defact'.
803 (goto_actions): Same for 'defgoto'.
804 (output_base): Same for 'pact' and 'pgoto'.
805 (output_table): Same for 'table'.
806 (output_check): Same for 'check'.
808 * src/output.c (output_table_data): New function.
809 (output_short_table): Remove.
810 (output_short_or_char_table): Remove.
812 * src/output.c (output_parser): Replace most of the skeleton copy code
813 with something new. Skeletons are now processed character by character
814 rather than line by line, and Bison looks for '%%' macros. This is the
815 first step in making Bison's output process (a lot) more flexible.
816 (output_parser): Use the macro table.
818 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
820 * src/main.c (main): Initialize the macro table.
822 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
824 * src/lex.c (percent_table): Add tok_define.
825 * src/lex.h: Add tok_define.
827 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
829 * src/macrotab.c: New file.
830 * src/macrotab.h: New file.
831 * src/Makefile.am: Update.
833 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
835 * lib/hash.c: New file.
836 * lib/hash.h: New file.
837 * lib/Makefile.am: Update.
839 2001-08-15 Akim Demaille <akim@epita.fr>
843 2001-08-15 Marc Autret <autret_m@epita.fr>
845 * src/reader.c (readgram): Indent output macro YYSTYPE.
846 (packsymbols): Likewise.
847 (output_token_defines): Likewise.
848 * src/files.c: Standardize.
849 (compute_header_macro): New.
850 (defines_obstack_save): New. Use compute_header_macro.
851 (output_files): Update. Use defines_obstack_save.
853 2001-08-15 Akim Demaille <akim@epita.fr>
855 * doc/bison.texinfo (Table of Symbols): Document
858 2001-08-15 Akim Demaille <akim@epita.fr>
860 * missing: Update from CVS Automake.
861 * config/config.guess, config/config.sub, config/texinfo.tex:
864 2001-08-15 Akim Demaille <akim@epita.fr>
866 * Makefile.maint: Sync with CVS Autoconf.
868 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
870 * doc/bison.texinfo: Include GNU Free Documentation License from
872 * doc/fdl.texi: Add to package.
874 2001-08-14 Marc Autret <autret_m@epita.fr>
876 Turn on %{source,header}_extension features.
878 * src/lex.c (percent_table): Un-CPP out header_extension and
880 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
881 (compute_exts_from_src): Remove conditions. It restores priorities
884 2001-08-14 Marc Autret <autret_m@epita.fr>
886 * src/files.c (compute_base_names): Add extensions computing when
887 `--file-prefix' used.
888 Standardize function calls.
890 2001-08-13 Marc Autret <autret_m@epita.fr>
892 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
893 defining it (defined but null disables alloca).
895 2001-08-13 Marc Autret <autret_m@epita.fr>
897 * src/bison.simple (_yy_memcpy): CPP reformat.
899 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
901 * tests/atconfig.in (CPPFLAGS): Fix.
903 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
905 * doc/bison.texinfo: Include GNU General Public License from
907 * doc/gpl.texi: Add to package.
909 2001-08-10 Marc Autret <autret_m@epita.fr>
911 * src/print_graph.h: Fix.
912 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
914 2001-08-10 Akim Demaille <akim@epita.fr>
916 * src/system.h: Provide default declarations for stpcpy, strndup,
919 2001-08-10 Robert Anisko <anisko_r@epita.fr>
921 * doc/bison.texinfo (Locations): Update @$ stuff.
923 2001-08-09 Robert Anisko <anisko_r@epita.fr>
925 * src/bison.simple (YYLLOC_DEFAULT): Update.
928 2001-08-08 Marc Autret <autret_m@epita.fr>
930 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
931 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
932 Reported by Fabrice Bauzac.
934 2001-08-08 Marc Autret <autret_m@epita.fr>
936 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
937 * src/vcg.c (output_node): Fix.
938 * src/vcg.h: Cleanup.
939 * src/print_graph.c: Add comments.
940 (node_output_size): New global variable. Simplify the formatting of
941 the VCG graph output.
942 (print_actions): Unused code is now used. It notifies the final state
943 and no action states in the VCG graph. It also give the reduce actions.
944 The `shift and goto' edges are red and the `go to state' edges are
946 Get the current node name and node_obstack by argument.
947 (node_obstack): New variable.
948 (print_state): Manage node_obstack.
949 (print_core): Use node_obstack given by argument.
950 A node is not only computed here but in print_actions also.
951 (print_graph): CPP out useless code instead of commenting it.
953 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
955 * tests/atconfig.in (CPPFLAGS): Fix.
957 2001-08-07 Akim Demaille <akim@epita.fr>
959 * src/print_graph.c (quote): New.
960 (print_core): Use it.
962 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
964 * src/vcg.c (complain.h): Include it.
965 Unepitaize `return' invocations.
966 [NDEBUG] (main): Remove.
967 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
968 * src/files.c (open_files): Initialize graph_obstack.
969 * src/print_graph.c (print_actions): CPP out useless code.
970 (print_core): Don't output the last `\n' in labels.
972 * src/files.c (output_files): Output the VCG file.
973 * src/main.c (main): Invoke print_graph ();
975 2001-08-06 Marc Autret <autret_m@epita.fr>
977 Automaton VCG graph output.
978 Using option ``-g'' or long option ``--graph'', you can generate
979 a gram_filename.vcg file containing a VCG description of the LALR (1)
980 automaton of your grammar.
982 * src/main.c: Call to print_graph() function.
983 * src/getargs.h: Update.
984 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
985 (graph_flag): New flag.
987 (getargs): Add case `g'.
988 * src/files.c (graph_obstack): New obstack struct.
989 (open_files): Initialize new obstack.
990 (output_files): Saves graph_obstack if required.
991 * src/files.h (graph_obstack): New extern declaration.
992 * src/Makefile.am: Add new source files.
994 2001-08-06 Marc Autret <autret_m@epita.fr>
996 * src/print_graph.c, src/print_graph.h (graph): New.
997 * src/vcg.h: New file.
998 * src/vcg.c: New file, VCG graph handling.
1000 2001-08-06 Marc Autret <autret_m@epita.fr>
1002 Add of %source_extension and %header_extension which specify
1003 the source or/and the header output file extension.
1005 * src/files.c (compute_base_names): Remove initialisation of
1006 src_extension and header_extension.
1007 (compute_exts_from_gf): Update.
1008 (compute_exts_from_src): Update.
1009 (output_files): Update.
1010 * src/reader.c (parse_header_extension_decl): New.
1011 (parse_source_extension_decl): New.
1012 (read_declarations): New case statements for the new tokens.
1013 * src/lex.c (percent_table): Add entries for %source_extension
1014 and %header_extension.
1015 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1017 2001-08-06 Marc Autret <autret_m@epita.fr>
1019 * configure.in: Bump to 1.28c.
1020 * doc/bison.texinfo: Texinfo thingies.
1022 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1024 * tests/atconfig.in (CPPFLAGS): Add.
1025 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1027 2001-08-03 Akim Demaille <akim@epita.fr>
1031 2001-08-03 Akim Demaille <akim@epita.fr>
1033 * tests/Makefile.am (check-local): Ship testsuite.
1034 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1037 2001-08-03 Akim Demaille <akim@epita.fr>
1039 * configure.in: Try using -Wformat when compiling.
1041 2001-08-03 Akim Demaille <akim@epita.fr>
1043 * configure.in: Bump to 1.28b.
1045 2001-08-03 Akim Demaille <akim@epita.fr>
1047 * src/complain.c: Adjust strerror_r portability issues.
1049 2001-08-03 Akim Demaille <akim@epita.fr>
1053 2001-08-03 Akim Demaille <akim@epita.fr>
1055 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1056 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1057 * src/getargs.c: Include complain.h.
1058 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1059 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1061 2001-08-03 Akim Demaille <akim@epita.fr>
1063 * src/reader.c (readgram): Display hidden chars in error messages.
1065 2001-08-03 Akim Demaille <akim@epita.fr>
1067 Update to gettext 0.10.39.
1069 2001-08-03 Akim Demaille <akim@epita.fr>
1071 * lib/strspn.c: New.
1073 2001-08-01 Marc Autret <autret_m@epita.fr>
1075 * doc/bison.texinfo: Update.
1076 * doc/bison.1 (mandoc): Update.
1077 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1078 * src/files.c: Support output files extensions computing.
1079 (src_extension): New static variable.
1080 (header_extension): New static variable.
1082 (get_extension_index): New function, gets the index of an extension
1083 filename in a string.
1084 (compute_exts_from_gf): New function, computes extensions from the
1085 grammar file extension.
1086 (compute_exts_from_src): New functions, computes extensions from the
1087 C source file extension, file given by ``-o'' option.
1088 (compute_base_names): Update.
1089 (output_files): Update.
1091 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1093 * doc/bison.texi: Document @$.
1094 (Locations): New section.
1096 2001-07-18 Akim Demaille <akim@epita.fr>
1098 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1099 * config/prev-version.txt, config/move-if-change: New.
1100 * Makefile.am: Adjust.
1102 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1104 * src/bison.simple (yyparse): Suppress warning `comparaison
1105 between signed and unsigned'.
1107 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1109 * src/getargs.h (raw_flag): Remove.
1110 * src/getargs.c: Die on `-r'/`--raw'.
1111 * src/lex.c (parse_percent_token): Die on `%raw'.
1112 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1113 * tests/calc.at: Suppress test with option `--raw'.
1115 2001-07-14 Akim Demaille <akim@epita.fr>
1118 * configure.in: Require Autoconf 2.50.
1119 Update to gettext 0.10.38.
1121 2001-03-16 Akim Demaille <akim@epita.fr>
1123 * doc/bison.texinfo: ANSIfy the examples.
1125 2001-03-16 Akim Demaille <akim@epita.fr>
1127 * getargs.c (skeleton): New variable.
1128 (longopts): --skeleton is a new option.
1129 (shortopts, getargs): -S is a new option.
1130 * getargs.h: Declare skeleton.
1131 * output.c (output_parser): Use it.
1133 2001-03-16 Akim Demaille <akim@epita.fr>
1135 * m4/strerror_r.m4: New.
1136 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1137 * lib/error.h, lib/error.c: Update.
1139 2001-03-16 Akim Demaille <akim@epita.fr>
1141 * src/getargs.c (longopts): Clean up.
1143 2001-02-21 Akim Demaille <akim@epita.fr>
1145 * src/reader.c (gensym): `gensym_count' is your own.
1146 Use a static buf to create the symbol name, as token_buffer is no
1149 2001-02-08 Akim Demaille <akim@epita.fr>
1151 * src/conflicts.c (conflict_report): Be sure not to append to res
1152 between two calls, which could happen if both first sprintf were
1153 skipped, but not the first cp += strlen.
1155 2001-02-08 Akim Demaille <akim@epita.fr>
1157 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1158 New, from fileutils 4.0.37.
1159 * configure.in: Require Autoconf 2.49c. I took some time before
1160 making this decision. This is the only way out for portability
1161 issues in Bison, it would mean way too much duplicate effort to
1162 import in Bison features implemented in 2.49c since 2.13.
1163 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1165 2001-02-02 Akim Demaille <akim@epita.fr>
1167 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1168 * lib/xalloc.h, lib/xmalloc.c: Update.
1170 2001-01-19 Akim Demaille <akim@epita.fr>
1172 Get rid of the ad hoc handling of token_buffer in the scanner: use
1175 * src/lex.c (token_obstack): New.
1176 (init_lex): Initialize it. No longer call...
1177 (grow_token_buffer): this. Remove it.
1178 Adjust all the places which used it to use the obstack.
1180 2001-01-19 Akim Demaille <akim@epita.fr>
1182 * src/lex.h: Rename all the tokens:
1183 s/\bENDFILE\b/tok_eof/g;
1184 s/\bIDENTIFIER\b/tok_identifier/g;
1186 Let them be enums, not #define, to ease debugging.
1187 Adjust all the code.
1189 2001-01-18 Akim Demaille <akim@epita.fr>
1191 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1192 * src/lex.c (maxtoken, grow_token_buffer): Static.
1194 2001-01-18 Akim Demaille <akim@epita.fr>
1196 Since we now use obstacks, more % directives can be enabled.
1198 * src/lex.c (percent_table): Also accept `%yacc',
1199 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1201 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1202 instead of returning a token.
1203 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1204 * src/reader.c (read_declarations): Adjust.
1205 * src/files.c (open_files): Don't call `compute_base_names', don't
1206 compute `attrsfile' since they depend upon data which might be
1207 *in* the input file now.
1208 (output_files): Do it here.
1209 * src/output.c (output_headers): Document the fact that this patch
1210 introduces a guaranteed SEGV for semantic parsers.
1211 * doc/bison.texinfo: Document them.
1212 * tests/suite.at: Exercise these %options.
1214 2000-12-20 Akim Demaille <akim@epita.fr>
1216 Also handle the output file (--verbose) with obstacks.
1218 * files.c (foutput): Remove.
1219 (output_obstack): New.
1220 Adjust all dependencies.
1221 * src/conflicts.c: Return a string.
1222 * src/system.h (obstack_grow_string): Rename as...
1223 (obstack_sgrow): this. Be ready to work with non literals.
1224 (obstack_fgrow4): New.
1226 2000-12-20 Akim Demaille <akim@epita.fr>
1228 * src/files.c (open_files): Fix the computation of short_base_name
1229 in the case of `-o foo.tab.c'.
1231 2000-12-20 Akim Demaille <akim@epita.fr>
1233 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1234 (copy_dollar): Now that everything uses obstacks, get rid of the
1237 2000-12-20 Akim Demaille <akim@epita.fr>
1239 * src/files.c (open_files): Actually the `.output' file is based
1240 on the short_base_name, not base_name.
1241 * tests/suite.at (Checking output file names): Adjust.
1243 2000-12-20 Akim Demaille <akim@epita.fr>
1245 * src/bison.s1: Remove, we now use directly...
1246 * src/bison.simple: this.
1247 * src/Makefile.am: Use pkgdata instead of data.
1249 2000-12-20 Akim Demaille <akim@epita.fr>
1251 * src/files.c (guard_obstack): New.
1252 (open_files): Initialize it.
1253 (output_files): Dump it...
1254 * src/files.h: Export it.
1255 * src/reader.c (copy_guard): Use it.
1257 2000-12-19 Akim Demaille <akim@epita.fr>
1259 * src/files.c (outfile, defsfile, actfile): Removed as global
1261 (open_files): Don't compute them.
1262 (output_files): Adjust.
1263 (base_name, short_base_name): Be global.
1264 Adjust dependencies.
1266 2000-12-19 Akim Demaille <akim@epita.fr>
1268 * src/files.c (strsuffix): New.
1269 (stringappend): Be just like strcat but allocate.
1270 (base_names): Eve out from open_files.
1271 Try to simplify the rather hairy computation of base_name and
1273 (open_files): Use it.
1274 * tests/suite.at (Checking output file names): New test.
1276 2000-12-19 Akim Demaille <akim@epita.fr>
1278 * src/system.h (obstack_grow_literal_string): Rename as...
1279 (obstack_grow_string): this.
1280 * src/output.c (output_parser): Recognize `%% actions' instead of
1282 * src/bison.s1: s/$/%% actions/.
1283 * src/bison.hairy: Likewise.
1285 2000-12-19 Akim Demaille <akim@epita.fr>
1287 * src/output.c (output_parser): Compute the `#line' lines when
1289 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1290 Suggested by Hans Aberg.
1292 2000-12-19 Akim Demaille <akim@epita.fr>
1294 Let the handling of the skeleton files be local to the procedures
1297 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1299 (fparser, open_extra_files): Remove.
1300 (open_files, output_files): Don't take care of fparser.
1301 * src/files.h: Adjust.
1302 * src/output.c (output_parser): Open and close the file to the
1304 * src/reader.c (read_declarations): When %semantic_parser, open
1307 2000-12-19 Akim Demaille <akim@epita.fr>
1309 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1310 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1312 2000-12-19 Akim Demaille <akim@epita.fr>
1314 * src/files.c (open_files): Yipee! We no longer need all the code
1315 looking for `/tmp' since we have no tmp file.
1317 2000-12-19 Akim Demaille <akim@epita.fr>
1319 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1321 * src/files.c (open_files): Less dependency on MSDOS etc.
1323 2000-12-14 Akim Demaille <akim@epita.fr>
1325 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1326 Provide a default definition.
1327 Use it when executing the default @ action.
1328 * src/reader.c (reader_output_yylsp): No longer include
1329 `timestamp' and `text' in the default YYLTYPE.
1331 2000-12-12 Akim Demaille <akim@epita.fr>
1333 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1334 (copy_guard): Quote the file names.
1335 Reported by Laurent Mascherpa.
1337 2000-12-12 Akim Demaille <akim@epita.fr>
1339 * src/output.c (output_headers, output_program, output): Be sure
1340 to escape special characters when outputting filenames.
1341 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1342 (output_headers): Don't depend on them, Use ACTSTR.
1344 2000-11-17 Akim Demaille <akim@epita.fr>
1346 * lib/obstack.h: Formatting changes.
1347 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1348 prevents type checking.
1349 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1350 cast the value to (void *): assigning a `foo *' to a `void *'
1352 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1353 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1356 2000-11-17 Akim Demaille <akim@epita.fr>
1358 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1360 (suite.m4, regression.m4, calc.m4): these.
1361 * tests/atgeneral.m4: Update from CVS Autoconf.
1363 2000-11-17 Akim Demaille <akim@epita.fr>
1365 * tests/regression.m4 (%union and --defines): New test,
1366 demonstrating a current bug in the obstack implementation.
1368 2000-11-17 Akim Demaille <akim@epita.fr>
1370 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1372 Use them to declare the variables which are global or local to
1375 2000-11-17 Akim Demaille <akim@epita.fr>
1377 * acconfig.h: Remove, no longer used.
1379 2000-11-07 Akim Demaille <akim@epita.fr>
1381 * src: s/Copyright (C)/Copyright/g.
1383 2000-11-07 Akim Demaille <akim@epita.fr>
1385 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1387 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1389 2000-11-07 Akim Demaille <akim@epita.fr>
1391 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1392 Merge in a single CPP if/else.
1394 2000-11-07 Akim Demaille <akim@epita.fr>
1396 * src/output.c (output): Remove useless variables.
1397 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1398 argument `data' for consistency with the prototypes.
1400 (obstack_copy, obstack_copy0): Rename the second argument as
1401 `address' for consistency. Qualify it `const'.
1402 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1403 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1404 `const' their input argument (`data' or `address').
1405 Adjust the corresponding macros to include `const' in casts.
1407 2000-11-03 Akim Demaille <akim@epita.fr>
1409 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1410 s/PFILE1/BISON_HAIRY/.
1411 Adjust dependencies.
1413 2000-11-03 Akim Demaille <akim@epita.fr>
1415 For some reason, this was not applied.
1417 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1418 `unlink': it's no longer used.
1420 2000-11-03 Akim Demaille <akim@epita.fr>
1422 * src/files.c (skeleton_find): New function, eved out of...
1423 (open_files, open_extra_files): here.
1425 2000-11-03 Akim Demaille <akim@epita.fr>
1429 * src/files.c (obstack_save): New function.
1430 (done): Rename as...
1431 (output_files): this.
1433 * src/main.c (main): Don't use `atexit' to register `done', since
1434 it no longer has to remove tmp files, just call `output_files'
1435 when there are no errors.
1437 2000-11-02 Akim Demaille <akim@epita.fr>
1439 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1440 `unlink': it's no longer used.
1441 * src/files.h: Formatting changes.
1443 2000-11-02 Akim Demaille <akim@epita.fr>
1445 Remove the last uses of mktemp and unlink/delete.
1447 * src/files.c (fdefines, ftable): Removed.
1448 (defines_ostack, table_obstack): New.
1449 Adjust dependencies of the former into uses of the latter.
1450 * src/output.c (output_short_or_char_table, output_short_table):
1451 Convert to using obstacks.
1452 * src/reader.c (copy_comment2): Accept one FILE * and two
1454 (output_token_defines, reader_output_yylsp): Use obstacks.
1455 * src/system.h (obstack_fgrow3): New.
1457 2000-11-01 Akim Demaille <akim@epita.fr>
1459 Change each use of `fattrs' into a use of `attrs_obstack'.
1461 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1462 * src/files.c (fattrs): Remove.
1463 (attrs_obstack): New.
1464 Adjust all dependencies.
1465 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1467 2000-11-01 Akim Demaille <akim@epita.fr>
1470 Change each use of `faction' into a use of `action_obstack'.
1472 * lib/obstack.h, lib/obstack.c: New files.
1473 * src/files.c (faction): Remove.
1474 (action_obstack): New.
1475 Adjust all dependencies.
1477 2000-10-20 Akim Demaille <akim@epita.fr>
1479 * lib/quote.h (PARAMS): New macro. Use it.
1481 2000-10-16 Akim Demaille <akim@epita.fr>
1483 * src/output.c (output_short_or_char_table): New function.
1484 (output_short_table, output_token_translations): Use it.
1485 (goto_actions): Use output_short_table.
1487 2000-10-16 Akim Demaille <akim@epita.fr>
1489 * src/symtab.c (bucket_new): New function.
1492 * src/output.c (output_short_table): New argument to display the
1493 comment associated with the table.
1494 Adjust dependencies.
1495 (output_gram): Use it.
1496 (output_rule_data): Nicer output layout for YYTNAME.
1498 2000-10-16 Akim Demaille <akim@epita.fr>
1500 * src/lex.c (read_typename): New function.
1502 * src/reader.c (copy_dollar): Likewise.
1504 2000-10-16 Akim Demaille <akim@epita.fr>
1506 * src/reader.c (copy_comment2): Expect the input stream to be on
1507 the `/' which is suspected to open a comment, instead of being
1508 called after `//' or `/*' was read.
1509 (copy_comment, copy_definition, parse_union_decl, copy_action)
1510 (copy_guard): Adjust.
1512 2000-10-16 Akim Demaille <akim@epita.fr>
1514 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1515 `read_signed_integer'.
1517 2000-10-16 Akim Demaille <akim@epita.fr>
1519 * src/reader.c (copy_dollar): New function.
1520 (copy_guard, copy_action): Use it.
1522 2000-10-16 Akim Demaille <akim@epita.fr>
1524 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1525 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1526 New files, from Fileutils 4.0.27.
1527 * src/main.c (printable_version): Remove.
1528 * src/lex.c, src/reader.c: Use `quote'.
1530 2000-10-04 Akim Demaille <akim@epita.fr>
1532 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1534 2000-10-04 Akim Demaille <akim@epita.fr>
1536 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1538 2000-10-04 Akim Demaille <akim@epita.fr>
1540 When a literal string is used to define two different tokens,
1541 `bison -v' segfaults.
1542 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1544 * tests/regression.m4: New file.
1545 Include the core of the sample provided by Piotr Gackiewicz.
1546 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1549 2000-10-04 Akim Demaille <akim@epita.fr>
1551 * src/reader.c (parse_expect_decl): Keep `count' within the size
1555 2000-10-02 Paul Eggert <eggert@twinsun.com>
1557 * bison.s1 (yyparse): Assign the default value
1558 unconditionally, to avoid a GCC warning and make the parser a
1561 2000-10-02 Akim Demaille <akim@epita.fr>
1563 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1566 2000-10-02 Akim Demaille <akim@epita.fr>
1568 * src/derives.c, src/print.c, src/reduce.c: To ease the
1569 translation, move some `\n' out of the translated strings.
1571 2000-10-02 Akim Demaille <akim@epita.fr>
1573 The location tracking mechanism is precious for parse error
1574 messages. Nevertheless, it is enabled only when `@n' is used in
1575 the grammar, which is a different issue (you can use it in error
1576 message, but not in the grammar per se). Therefore, there should
1577 be another means to enable it.
1579 * src/getargs.c (getargs): Support `--locations'.
1581 * src/getargs.h (locationsflag): Export it.
1582 * src/lex.c (percent_table): Support `%locations'.
1583 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1584 with `locationsflag'.
1585 * doc/bison.texinfo: Document `--locations' and `%locations'.
1587 * tests/calc.m4: Test it.
1589 For regularity of the names, replace each
1590 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1591 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1592 In addition replace each `flag' with `_flag'.
1594 2000-10-02 Akim Demaille <akim@epita.fr>
1596 Also test parse error messages, including with YYERROR_VERBOSE.
1598 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1600 Use it to check the computations.
1601 Use it to check `nonassoc' is honored.
1602 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1603 `--yyerror-verbose'.
1604 (_AT_CHECK_CALC): Adjust to this option.
1605 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1607 2000-10-02 Akim Demaille <akim@epita.fr>
1609 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1610 the latter demonstrates a flaw in the handling of non debugging
1611 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1612 was used in order to simplify:
1628 unfortunately this leads to a CPP conflict when
1629 `--name-prefix=foo' is used since it produces `#define yydebug
1632 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1633 (YYDPRINTF): New macro.
1635 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1637 Also test `--verbose', `--defines' and `--name-prefix'.
1639 2000-10-02 Akim Demaille <akim@epita.fr>
1641 Improve the readability of the produced parsers.
1643 * src/bison.s1: Formatting changes.
1644 Improve the comment related to the `$' mark.
1645 (yydefault): Don't fall through to `yyresume': `goto' there.
1646 * src/output.c (output_parser): When the `$' is met, skip the end
1648 New variable, `number_of_dollar_signs', to check there's exactly
1649 one `$' in the parser skeleton.
1651 2000-10-02 Akim Demaille <akim@epita.fr>
1653 * lib/xstrdup.c: New file, from the fileutils.
1654 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1655 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1656 instead of strlen + xmalloc + strcpy.
1657 * src/symtab.c (copys): Remove, use xstrdup instead.
1659 2000-10-02 Akim Demaille <akim@epita.fr>
1661 * src/gram.h (associativity): New enum type which replaces the
1662 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1663 `right_assoc', `left_assoc' and `non_assoc'.
1664 Adjust all dependencies.
1665 * src/reader.c: Formatting changes.
1666 (LTYPESTR): Don't define it, use it as a literal in
1667 `reader_output_yylsp'.
1668 * src/symtab.h (symbol_class): New enum type which replaces the
1669 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1670 `sunknown', `stoken and `snterm'.
1672 2000-10-02 Akim Demaille <akim@epita.fr>
1674 * src/getargs.c (fixed_outfiles): Rename as...
1675 (yaccflag): for consistency and accuracy.
1676 Adjust dependencies.
1678 2000-10-02 Akim Demaille <akim@epita.fr>
1680 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1681 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1682 difficult and introduced a lot of core dump. It turns out that
1683 Bison used an implementation of `xmalloc' based on `calloc', and
1684 at various places it does depend upon the initialization to 0. I
1685 have not tried to isolate the pertinent places, and all the former
1686 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1687 someone should address this issue.
1689 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1690 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1692 Adjust dependencies.
1693 * src/warshall.h: New file.
1696 2000-10-02 Akim Demaille <akim@epita.fr>
1698 Various anti-`extern in *.c' changes.
1700 * src/system.h: Include `assert.h'.
1702 2000-10-02 Akim Demaille <akim@epita.fr>
1704 * src/state.h (nstates, final_state, first_state, first_shift)
1705 (first_reduction): Move their exportation from here...
1706 * src/LR0.h: to here.
1707 Adjust dependencies.
1708 * src/getargs.c (statisticsflag): New variable.
1709 Add support for `--statistics'.
1710 Adjust dependencies.
1712 Remove a lot of now useless `extern' statements in most files.
1714 2000-10-02 Akim Demaille <akim@epita.fr>
1716 * src/LR0.h: New file.
1719 2000-10-02 Akim Demaille <akim@epita.fr>
1721 * src/print.h: New file.
1723 * src/print.c: Formatting and ordering changes.
1724 (verbose, terse): Replace with...
1725 (print_results): this new function.
1726 Adjust dependencies.
1728 2000-10-02 Akim Demaille <akim@epita.fr>
1730 * src/conflicts.c (conflict_report): New function.
1731 (conflict_log, verbose_conflict_log): Replace with...
1732 (print_conflicts): this function.
1733 Adjust dependencies.
1734 * src/conflicts.h: New file.
1735 Propagate its inclusion.
1737 2000-10-02 Akim Demaille <akim@epita.fr>
1739 * src/nullable.h: New file.
1740 Propagate its inclusion.
1741 * src/nullable.c: Formatting changes.
1743 2000-10-02 Akim Demaille <akim@epita.fr>
1745 * src/reduce.h: New file.
1746 Propagate its inclusion.
1747 * src/reduce.c: Topological sort and other formatting changes.
1748 (bool, TRUE, FALSE): Move their definition to...
1749 * src/system.h: here.
1751 2000-10-02 Akim Demaille <akim@epita.fr>
1753 * src/files.c: Formatting changes.
1754 (tryopen, tryclose, openfiles): Rename as...
1755 (xfopen, xfclose, open_files): this.
1756 (stringappend): static.
1757 * src/files.h: Complete the list of exported symbols.
1760 2000-10-02 Akim Demaille <akim@epita.fr>
1762 * src/reader.h: New file.
1763 Propagate its use instead of tedious list of `extern' and
1765 * src/reader.c: Formatting changes, topological sort,
1768 2000-10-02 Akim Demaille <akim@epita.fr>
1770 * src/lex.h: Prototype `lex.c' exported functions.
1771 * src/reader.c: Adjust.
1772 * src/lex.c: Formatting changes.
1773 (safegetc): Rename as...
1776 2000-10-02 Akim Demaille <akim@epita.fr>
1778 * src/lalr.h: New file.
1779 Propagate its inclusion instead of prototypes and `extern'.
1780 * src/lalr.c: Formatting changes, topological sorting etc.
1782 2000-10-02 Akim Demaille <akim@epita.fr>
1784 * src/output.c (token_actions): Introduce a temporary array,
1785 YYDEFACT, that makes it possible for this function to use
1788 2000-10-02 Akim Demaille <akim@epita.fr>
1790 `user_toknums' is output as a `short[]' in `output.c', while it is
1791 defined as a `int[]' in `reader.c'. For consistency with the
1792 other output tables, `user_toknums' is now defined as a table of
1795 * src/reader.c (user_toknums): Be a short table instead of an int
1797 Adjust dependencies.
1799 Factor the short table outputs.
1801 * src/output.c (output_short_table): New function.
1802 * src/output.c (output_gram, output_stos, output_rule_data)
1803 (output_base, output_table, output_check): Use it.
1805 2000-10-02 Akim Demaille <akim@epita.fr>
1807 * src/output.c (output): Topological sort of the functions, in
1808 order to get rid of the `static' prototypes.
1809 No longer use `register'.
1810 * src/output.h: New file.
1811 Propagate its inclusion in files explicitly prototyping functions
1814 2000-09-21 Akim Demaille <akim@epita.fr>
1816 * src/atgeneral.m4: Update from Autoconf.
1818 2000-09-21 Akim Demaille <akim@epita.fr>
1820 * src/closure.h: New file.
1821 * src/closure.c: Formatting changes, topological sort over the
1822 functions, use of closure.h.
1823 (initialize_closure, finalize_closure): Rename as...
1824 (new_closure, free_closure): these. Adjust dependencies.
1825 * src/LR0.c: Formatting changes, topological sort, use of
1827 (initialize_states): Rename as...
1829 * src/Makefile.am (noinst_HEADERS): Adjust.
1831 2000-09-20 Akim Demaille <akim@epita.fr>
1833 * src/acconfig.h: Don't protect config.h against multiple
1835 Don't define PARAMS.
1836 * src/system.h: Define PARAMS.
1837 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1838 purpose of config.h. system.h must not try to fix wrong
1839 definitions in config.h.
1841 2000-09-20 Akim Demaille <akim@epita.fr>
1843 * src/derives.h: New file.
1844 * src/main.c, src/derives.h: Use it.
1846 * src/Makefile.am (noinst_HEADERS): Adjust.
1848 2000-09-20 Akim Demaille <akim@epita.fr>
1850 * tests/atgeneral.m4: Update from Autoconf.
1851 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1852 (AT_CHECK_CALC): New macros.
1853 Use these macros to test bison with options `', `--raw',
1854 `--debug', `--yacc', `--yacc --debug'.
1856 2000-09-19 Akim Demaille <akim@epita.fr>
1858 * src/output.c: Formatting changes.
1859 * src/machine.h: Remove, leaving its contents in...
1860 * src/system.h: here.
1862 Adjust all dependencies on stdio.h and machine.h.
1863 * src/getargs.h: New file.
1864 Let all `extern' declarations about getargs.c be replaced with
1865 inclusion of `getargs.h'.
1866 * src/Makefile.am (noinst_HEADERS): Adjust.
1868 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1870 (yyerror): Returns void, not int.
1871 * doc/bison.texinfo: Formatting changes.
1873 2000-09-19 Akim Demaille <akim@epita.fr>
1875 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1878 2000-09-18 Akim Demaille <akim@epita.fr>
1880 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1881 * src/Makefile.am (INCLUDES): Don't.
1882 Be ready to fetch headers in lib/.
1884 2000-09-18 Akim Demaille <akim@epita.fr>
1886 * doc/bison.texinfo: Update the copyright.
1887 ANSIfy and GNUify the examples.
1888 Remove the old menu.
1890 2000-09-18 Akim Demaille <akim@epita.fr>
1892 First set of tests: use the `calc' example from the documentation.
1894 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1895 is defined only when YYDEBUG is.
1896 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1897 * src/files.c (tryopen, tryclose): Formatting changes.
1898 Move to the top and be static.
1899 * src/reader.c (read_signed_integer): Likewise.
1900 * tests/calc.m4: New file.
1901 * Makefile.am, suite.m4: Adjust.
1902 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1904 2000-09-18 Akim Demaille <akim@epita.fr>
1906 Add support for an Autotest test suite for Bison.
1908 * m4/m4.m4, m4/atconfig.m4: New files.
1909 * m4/Makefile.am (EXTRA_DIST): Adjust.
1910 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1912 * src/getargs.c: Display a more standard --version message.
1913 * src/reader.c (reader): Formatting changes.
1914 No longer depend upon VERSION_STRING.
1915 * configure.in: No longer use `dnl'.
1916 Set up the test suite and the new directory `tests/.
1917 (VERSION_STRING): Remove.
1919 2000-04-14 Akim Demaille <akim@epita.fr>
1921 * src/reader.c (copy_comment2): New function, same as former
1922 `copy_comment', but outputs into two FILE *.
1923 (copy_comment): Use it.
1924 (parse_union_decl): Use it.
1925 (get_type, parse_start_decl): Use the same `invalid' message.
1926 (parse_start_decl, parse_union_decl): Use the same `multiple'
1928 (parse_union_decl, copy_guard, copy_action): Use the same
1929 `unmatched' message.
1930 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1932 2000-03-31 Akim Demaille <akim@epita.fr>
1934 * src/files.c (tryopen, tryclose): Move to the top.
1937 2000-03-31 Akim Demaille <akim@epita.fr>
1939 * src/main.c (main): Don't call `done', exit does it.
1941 2000-03-31 Akim Demaille <akim@epita.fr>
1943 * allocate.c: s/return (foo)/return foo/.
1946 * output.c: Likewise.
1947 * reader.c: Likewise.
1948 * symtab.c: Likewise.
1949 * vmsgetargs.c: Likewise.
1951 2000-03-31 Akim Demaille <akim@epita.fr>
1953 Clean up the error reporting functions.
1955 * src/report.c: New file.
1956 * src/report.h: Likewise.
1957 * src/Makefile.am: Adjust.
1958 * m4/error.m4: New file.
1959 * m4/Makefile.am: Adjust.
1960 * configure.in (jm_PREREQ_ERROR): Call it.
1961 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1963 (fatal, fatals): Remove. All callers use complain.c::fatal.
1964 (warn, warni, warns, warnss, warnss): Remove. All callers use
1965 complain.c::complain.
1966 (toomany): Remove, use fatal instead.
1967 * src/files.c (done): No argument, use complain_message_count.
1968 * src/main.c (main): Register `done' to `atexit'.
1970 * src/getargs.c (usage): More `fputs', less `fprintf'.
1972 2000-03-28 Akim Demaille <akim@epita.fr>
1974 * lib/: New directory.
1975 * Makefile.am (SUBDIRS): Adjust.
1976 * configure.in: Adjust.
1977 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1979 * src/alloca.c: Moved to lib/.
1980 * src/getopt.c: Likewise.
1981 * src/getopt1.c: Likewise.
1982 * src/getopt.h: Likewise.
1983 * src/ansi2knr.c: Likewise.
1984 * src/ansi2knr.1: Likewise.
1985 * src/Makefile.am: Adjust.
1986 * lib/Makefile.am: New file.
1988 2000-03-28 Akim Demaille <akim@epita.fr>
1990 * src/getargs.c (usage): Refresh the help message.
1992 2000-03-17 Akim Demaille <akim@epita.fr>
1994 * src/getopt1.c: Updated from textutils 2.0e
1995 * src/getopt.c: Likewise.
1996 * src/getopt.h: Likewise.
1998 2000-03-17 Akim Demaille <akim@epita.fr>
2000 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2001 the file name, not the whole `#line LINE FILE'.
2003 2000-03-17 Akim Demaille <akim@epita.fr>
2005 On syntax errors, report the token on which we choked.
2007 * src/bison.s1 (yyparse): In the label yyerrlab, when
2008 YYERROR_VERBOSE, add yychar in msg.
2010 2000-03-17 Akim Demaille <akim@epita.fr>
2012 * src/reader.c (copy_at): New function.
2013 (copy_guard): Use it.
2014 (copy_action): Use it.
2016 2000-03-17 Akim Demaille <akim@epita.fr>
2018 Be kind to translators, save some useless translations.
2020 * src/main.c (banner): New function.
2021 (fatal_banner): Use it.
2022 (warn_banner): Use it.
2024 2000-03-17 Akim Demaille <akim@epita.fr>
2026 * src/reader.c (copy_definition): Use copy_string and
2027 copy_comment. Removed now unused `match', `ended',
2029 (copy_comment, copy_string): Moved, to be visible from
2032 2000-03-17 Akim Demaille <akim@epita.fr>
2034 * src/reader.c (copy_string): Declare `static inline'. No
2035 problems with inline, since it is checked by configure.
2036 (copy_comment): Likewise.
2038 2000-03-17 Akim Demaille <akim@epita.fr>
2040 * src/reader.c (packsymbols): Formatting changes.
2042 2000-03-17 Akim Demaille <akim@epita.fr>
2044 * src/reader.c (copy_comment): New function, factored out from:
2045 (copy_action): Use it. Removed now unused `match', `ended',
2047 (copy_guard): Likewise.
2049 2000-03-17 Akim Demaille <akim@epita.fr>
2051 * src/reader.c (copy_string): New function, factored out from:
2052 (copy_action): Use it.
2053 (copy_guard): Likewise.
2055 2000-03-17 Akim Demaille <akim@epita.fr>
2057 Change the handling of @s so that they behave exactly like $s.
2058 There is now a pseudo variable @$ (readble and writable), location
2059 of the lhs of the rule (by default ranging from the location of
2060 the first symbol of the rhs, to the location of the last symbol,
2061 or, if the rhs is empty, YYLLOC).
2063 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2065 (yyparse): When providing a default semantic action, provide a
2066 default location action.
2067 (after the $): No longer change `*YYLSP', just stack YYLOC the
2068 same way you stack YYVAL.
2069 * src/reader.c (read_declarations): Use warns.
2070 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2071 (copy_action, case '@'): Likewise.
2072 Use a standard error message, to save useless work from
2075 2000-03-17 Akim Demaille <akim@epita.fr>
2077 * src/bison.s1: Formatting and cosmetics changes.
2078 * src/reader.c: Likewise.
2079 Update the Copyright notice.
2081 2000-03-17 Akim Demaille <akim@epita.fr>
2083 * src/bison.s1 (#line): All set to `#line' only, since the
2084 Makefile now handles them.
2086 2000-03-16 Akim Demaille <akim@epita.fr>
2088 * src/output.c (output_rule_data): Output the documentation of
2090 (Copyright notice): Update.
2093 2000-03-16 Akim Demaille <akim@epita.fr>
2095 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2096 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2097 One `#if YYDEBUG' remains, since it uses variables which are
2098 defined only if `YYDEBUG != 0'.
2100 2000-03-16 Akim Demaille <akim@epita.fr>
2102 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2103 and related variables so that the similarities are highlighted.
2105 2000-03-16 Akim Demaille <akim@epita.fr>
2107 * src/bison.s1: Properly indent CPP directives.
2109 2000-03-16 Akim Demaille <akim@epita.fr>
2111 * src/bison.s1: Properly indent the `alloca' CPP section.
2113 2000-03-16 Akim Demaille <akim@epita.fr>
2115 Do not hard code values of directories in `configure.in'.
2116 Update the `configure' tool chain.
2118 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2120 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2121 (AC_OUTPUT): Add m4/Makefile.
2122 Bump to bison 1.28a, 1.29 has never been released.
2123 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2124 handled via src/Makefile.am.
2125 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2126 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2128 * Makefile.am (SUBDIRS): Add m4.
2129 (ACLOCAL_AM_FLAGS): New variable.
2130 (AUTOMAKE_OPTIONS): Add check-news.
2131 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2132 the proper line number and file name.
2133 (DEFS): Propagate the location of bison library files and of the
2135 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2137 * acinclude.m4: Remove, replaced by the directory m4.
2138 * m4/Makefile.am (EXTRA_DIST): New variable.
2139 * m4/gettext.m4: New file, from the fileutils.
2140 * m4/lcmessage.m4: Likewise
2141 * m4/progtest.m4: Likewise.
2142 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2144 2000-03-10 Akim Demaille <akim@epita.fr>
2147 Formatting changes of various comments.
2148 Respect the GNU coding standards at various places.
2149 Don't use `_()' when no translation is needed.
2151 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2154 OS/2 honors TMPDIR environment variable.
2156 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2158 * doc/bison.texinfo: Tweaked spelling and grammar.
2160 Removed reference to price of printed copy.
2161 Mention BISON_SIMPLE and BISON_HAIRY.
2163 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2165 * configure.in, NEWS:
2166 Bison 1.29 released.
2168 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2170 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2171 Added reference card.
2173 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2175 * po/ru.po: Added Russian translation.
2177 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2179 * configure.in: Added Russian translation.
2181 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2183 * configure.in, NEWS, README:
2184 Released version 1.28.
2186 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2189 Squashed redefinition warning on some systems.
2191 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2192 Have configure build version string instead of relying on ANSI string
2195 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2197 * po/POTFILES.in: Got rid of version.c.
2199 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2201 * acconfig.h, configure.in:
2202 Have configure build version string instead of relying on ANSI string
2205 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2208 Dropped mention of `+' for long-named options.
2210 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2212 * src/files.c: Added <unistd.h> for unlink().
2214 * src/Makefile.am, src/system.h:
2217 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2219 * README: Added a FAQ list.
2221 * configure.in, acconfig.h:
2224 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2226 * doc/FAQ, doc/Makefile.am:
2229 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2231 * src/alloc.h, src/symtab.h, src/version.c:
2232 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2234 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2236 * src/.cvsignore, src/Makefile.am:
2237 Reorganized: sources in `src', documentation in `doc'.
2239 * src/lex.c (literalchar):
2240 fixed the code for escaping double quotes (thanks
2243 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2245 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2246 Adjusted paths to reflect directory reorganization.
2248 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2250 * doc/.cvsignore, doc/Makefile.am:
2251 Reorganized: sources in `src', documentation in `doc'.
2253 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2256 Updated AC_INIT file to reflect directory reorganization.
2258 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2259 Reorganized: sources in `src', documentation in `doc'.
2261 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2264 Don't declare calloc() and realloc() if not necessary.
2266 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2268 * configure.in, acconfig.h, acinclude.m4:
2269 Don't declare calloc() and realloc() if not necessary.
2271 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2273 * po/.cvsignore: Added i18n support.
2275 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2277 * acconfig.h, configure.in, Makefile.am:
2280 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2282 * src/bison.s1: Fixed #line numbers.
2284 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2286 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2287 Added PO files from Translation Project.
2289 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2292 Added support for non-ANSI compilers (ansi2knr).
2294 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2296 * configure.in: Bumped version number to 1.27.
2299 Added `bison.simple' to list of files removed by `make distclean'.
2301 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2303 * src/files.c, src/files.h:
2304 Defined locations of parser files in config.h instead of Makefile.
2306 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2308 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2309 Defined locations of parser files in config.h instead of Makefile.
2311 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2314 Removed inappropriate use of $< macro.
2316 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2318 * po/Makefile.in.in, po/POTFILES.in:
2319 Add `po' directory skeleton.
2321 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2323 * README: Document help-bison list.
2325 * configure.in: Add check for mkstemp().
2327 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2329 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2330 Hush a few compiler warnings.
2333 Add tryclose(), which verifies that fclose was successful.
2334 Hush a couple of compiler warnings.
2336 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2338 * Makefile.am, OChangeLog:
2339 ChangeLog is now automatically generated. Include the old version as
2342 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2344 * 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:
2347 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2349 * doc/bison.texinfo: Fix formatting glitch.
2351 * doc/bison.texinfo: Update FSF address.
2353 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2355 * acconfig.h: Update FSF address.
2357 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2360 Don't define PACKAGE here, since config.h defines it.
2362 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2364 * src/reader.c: Update copyright date.
2367 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2368 favor of output directly to stderr (avoids buffer overruns).
2370 * src/reader.c: Some checks for premature EOF.
2372 * 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:
2373 Use prototypes if the compiler understands them.
2375 * src/files.c: Honor TMPDIR on Unix hosts.
2376 Use prototypes if the compiler understands them.
2379 Fix a couple of buffer overrun bugs.
2380 Use prototypes if the compiler understands them.
2382 * src/system.h: Include unistd.h and ctype.h.
2383 Use #ifdef instead of #if for NLS symbols.
2385 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2387 * doc/bison.texinfo:
2388 Delete comment "consider using @set for edition number, etc..." since
2389 we now are doing so.
2391 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2394 Use prototypes if the compiler understands them.
2396 * NEWS: Document 1.26 highlights.
2398 * Makefile.am: Require Automake 1.3 or later.
2401 Use prototypes if the compiler understands them.
2403 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2406 Use VERSION symbol from automake for version number.
2408 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2410 * acconfig.h, configure.in, version.cin:
2411 Use VERSION symbol from automake for version number.
2413 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2416 Distribute original version of simple parser (bison.s1), not built
2417 version (bison.simple).
2419 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2421 * doc/bison.texinfo: Add info dir entry.
2423 * doc/bison.texinfo:
2424 Let automake put version number into documentation.
2426 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2428 * src/bison.cld, src/build.com, src/vmshlp.mar:
2429 Add non-RCS files from /gd/gnu/bison.
2431 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2434 Document the BISON_HAIRY and BISON_SIMPLE variables.
2436 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2438 * src/version.c: Build version.c automatically.
2441 Fix token numbering (used to start at 258, not 257).
2443 * src/system.h: Include config.h.
2445 * src/getargs.c: Update bug report address.
2447 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2448 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2450 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2453 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2455 * configure.in, version.cin:
2456 Build version.c automatically.
2458 * AUTHORS: Add AUTHORS file.
2460 * README: Update bug report address.
2463 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2465 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2468 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2470 * doc/bison.texinfo: Clean up some formatting.
2472 1998-05-05 Richard Stallman <rms@gnu.org>
2474 * doc/bison.texinfo:
2475 Explain better why to make a pure parser.
2477 1998-01-05 Richard Stallman <rms@gnu.org>
2479 * src/files.c (openfiles):
2480 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2481 find a temporary directory, if possible. Do not unlink files while
2484 1997-08-25 Richard Stallman <rms@gnu.org>
2486 * src/reader.c (stack_offset;):
2487 Change some warni to warns.
2489 * src/lex.c (literalchar): Use warns, not warni.
2491 1997-06-28 Richard Stallman <rms@gnu.org>
2493 * src/bison.s1: Add a Bison version comment.
2495 * src/main.c (fatal, warn, berror):
2498 1997-06-28 Richard Stallman <rms@gnu.org>
2500 * Makefile.in (bison_version): New variable.
2501 (dist): Use that variable.
2502 (bison.s1): Substitute the Bison version into bison.simple.
2504 * bison.simple: Add a Bison version comment.
2506 1997-06-18 Richard Stallman <rms@gnu.org>
2508 * src/main.c (fatal, warn, berror):
2509 Make error messages standard.
2510 (toomany): Improve error message text.
2512 * 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:
2513 new.h renamed to alloc.h.
2515 1997-06-18 Richard Stallman <rms@gnu.org>
2517 * Makefile.in: new.h renamed to alloc.h.
2519 1997-05-24 Richard Stallman <rms@gnu.org>
2521 * src/lex.c (literalchar):
2522 Fix the code for escaping \, " and '.
2524 (lex): Avoid trouble when there are many chars
2525 to discard in a char literal with just several chars in it.
2527 1997-05-17 Richard Stallman <rms@gnu.org>
2530 Use malloc, if using alloca is troublesome.
2531 (YYSTACK_USE_ALLOCA): New flag macro.
2532 Define it for some systems and compilers.
2533 (YYSTACK_ALLOC): New macro.
2534 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2535 If it was malloc'd, free it.
2537 1997-05-17 Richard Stallman <rms@gnu.org>
2540 Use malloc, if using alloca is troublesome.
2541 (YYSTACK_USE_ALLOCA): New flag macro.
2542 Define it for some systems and compilers.
2543 (YYSTACK_ALLOC): New macro.
2544 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2545 If it was malloc'd, free it.
2547 1997-04-23 Richard Stallman <rms@gnu.org>
2550 (alloca) [__hpux]: Always define as __builtin_alloca.
2552 1997-04-23 Richard Stallman <rms@gnu.org>
2555 (alloca) [__hpux]: Always define as __builtin_alloca.
2557 1997-04-22 Richard Stallman <rms@gnu.org>
2560 [__hpux]: Include alloca.h (right for HPUX 10)
2561 instead of declaring alloca (right for HPUX 9).
2563 * src/bison.s1 (__yy_memcpy):
2564 Declare arg `count' as unsigned int.
2565 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2567 1997-04-22 Richard Stallman <rms@gnu.org>
2570 [__hpux]: Include alloca.h (right for HPUX 10)
2571 instead of declaring alloca (right for HPUX 9).
2573 * bison.simple (__yy_memcpy):
2574 Declare arg `count' as unsigned int.
2575 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2577 1997-01-03 Richard Stallman <rms@gnu.org>
2579 * src/allocate.c: [__STDC__ or _MSC_VER]:
2580 Declare calloc and realloc to return void *.
2582 1997-01-02 Richard Stallman <rms@gnu.org>
2585 [_MSC_VER]: Include stdlib.h and process.h.
2586 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2588 * src/main.c (main): Return FAILURE as a value.
2589 (printable_version): Declare arg as int, not char.
2591 1997-01-02 Richard Stallman <rms@gnu.org>
2593 * Makefile.in (dist):
2594 Explicitly check for symlinks, and copy them.
2596 1996-12-19 Richard Stallman <rms@gnu.org>
2599 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2601 1996-12-18 Paul Eggert <eggert@gnu.org>
2603 * src/bison.s1 (yyparse):
2604 If __GNUC__ and YYPARSE_PARAM are both defined,
2605 declare yyparse to have a void * argument.
2607 1996-12-18 Paul Eggert <eggert@gnu.org>
2609 * bison.simple (yyparse):
2610 If __GNUC__ and YYPARSE_PARAM are both defined,
2611 declare yyparse to have a void * argument.
2613 1996-12-17 Richard Stallman <rms@gnu.org>
2615 * src/reduce.c (nbits): Add some casts.
2617 1996-08-12 Richard Stallman <rms@gnu.org>
2619 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2621 1996-08-12 Richard Stallman <rms@gnu.org>
2623 * bison.simple: Test _MSDOS as well as _MSDOS_.
2625 1996-07-31 Richard Stallman <rms@gnu.org>
2628 [__sun && __i386]: Include alloca.h.
2630 1996-07-31 Richard Stallman <rms@gnu.org>
2633 [__sun && __i386]: Include alloca.h.
2635 1996-07-30 Richard Stallman <rms@gnu.org>
2637 * src/bison.s1: Comment change.
2639 * src/bison.s1: Test _MSDOS_, not MSDOS.
2641 1996-07-30 Richard Stallman <rms@gnu.org>
2643 * bison.simple: Comment change.
2645 * bison.simple: Test _MSDOS_, not MSDOS.
2647 1996-06-01 Richard Stallman <rms@gnu.org>
2649 * 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:
2650 Insert `_' macro around many string constants.
2653 Insert `_' macro around many string constants.
2655 (main): Call setlocale, bindtextdomain and textdomain.
2657 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2658 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2659 [ENABLE_NLS]: Include libintl.h.
2660 [ENABLE_NLS] (gettext): Define.
2661 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2662 (N_, PACKAGE, LOCALEDIR): New macros.
2664 1996-06-01 Richard Stallman <rms@gnu.org>
2666 * POTFILES.in: New file.
2668 * Makefile.in (allocate.o):
2669 Define target explicitly.
2671 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2672 (LDFLAGS): Set to @LDFLAGS@.
2673 (configure): Run autoconf only if preceding `cd' succeeds.
2674 (bison.s1): Redirect output to temporary file then move the
2675 temporary to the target, rather than redirecting directly to bison.s1.
2676 (clean): Remove config.status and config.log.
2677 (distclean): Don't remove config.status here.
2679 1996-05-12 Richard Stallman <rms@gnu.org>
2682 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2684 1996-05-12 Richard Stallman <rms@gnu.org>
2687 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2689 1996-05-11 Richard Stallman <rms@gnu.org>
2691 * src/bison.s1 (__yy_memcpy):
2692 Really reorder the args, as was supposedly done on Feb 14 1995.
2693 (yyparse): Calls changed accordingly.
2695 1996-05-11 Richard Stallman <rms@gnu.org>
2697 * Makefile.in (dist): Don't use $(srcdir).
2699 * bison.simple (__yy_memcpy):
2700 Really reorder the args, as was supposedly done on Feb 14 1995.
2701 (yyparse): Calls changed accordingly.
2703 1996-01-27 Richard Stallman <rms@gnu.org>
2705 * src/output.c (output_rule_data):
2706 Test YYERROR_VERBOSE in the conditional
2707 around the definition of ttyname.
2709 1995-12-29 Richard Stallman <rms@gnu.org>
2712 Fix line numbers in #line commands.
2714 1995-12-29 Richard Stallman <rms@gnu.org>
2717 Fix line numbers in #line commands.
2719 1995-12-27 Richard Stallman <rms@gnu.org>
2721 * src/bison.s1 (YYPARSE_PARAM_DECL):
2722 In C++, make it always null.
2723 (YYPARSE_PARAM_ARG): New macro.
2724 (yyparse): Use YYPARSE_PARAM_ARG.
2726 1995-12-27 Richard Stallman <rms@gnu.org>
2728 * bison.simple (YYPARSE_PARAM_DECL):
2729 In C++, make it always null.
2730 (YYPARSE_PARAM_ARG): New macro.
2731 (yyparse): Use YYPARSE_PARAM_ARG.
2733 1995-11-29 Richard Stallman <rms@gnu.org>
2735 * doc/bison.texinfo:
2736 Describe literal string tokens, %raw, %no_lines, %token_table.
2738 1995-11-29 Daniel Hagerty <hag@gnu.org>
2740 * doc/bison.texinfo: Fixed update date
2742 1995-10-16 Richard Stallman <rms@gnu.org>
2744 * src/version.c: Version 1.25.
2746 1995-10-16 Richard Stallman <rms@gnu.org>
2748 * NEWS: *** empty log message ***
2750 1995-10-16 Richard Stallman <rms@gnu.org>
2752 * doc/bison.1, doc/bison.rnh:
2755 1995-10-15 Richard Stallman <rms@gnu.org>
2757 * src/vmsgetargs.c, src/getargs.c:
2758 Added -n, -k, and -raw switches.
2759 (noparserflag, toknumflag, rawtoknumflag): New variables.
2761 * src/symtab.h (SALIAS):
2762 New #define for adding aliases to %token.
2763 (struct bucket): Added `alias' field.
2765 * src/reduce.c (reduce_grammar):
2766 Revise error message.
2767 (print_notices): Remove final `.' from error message.
2769 * src/reader.c (reader_output_yylsp):
2771 (readgram): Use `#if 0' around code that accepted %command
2772 inside grammar rules: The documentation doesn't allow it,
2773 and it will fail since the %command processors scan for the next %.
2774 (parse_token_decl): Extended the %token
2775 declaration to allow a multi-character symbol as an alias.
2776 (parse_thong_decl): New function.
2777 (read_declarations): Added %thong declarations.
2778 (read_declarations): Handle NOOP to deal with allowing
2779 % declarations as another means to specify the flags.
2780 (readgram): Allow %prec prior to semantics embedded in a rule.
2781 (skip_to_char, read_declarations, copy_definition)
2782 (parse_token_decl, parse_start_decl, parse_type_decl)
2783 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2784 (get_type_name, copy_guard, copy_action, readgram)
2785 (get_type, packsymbols): Revised most error messages.
2786 Changed `fatal' to `warnxxx' to avoid aborting for error.
2787 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2788 (read_declarations): Improve the error message for
2789 an invalid character. Do not abort.
2790 (read_declarations, copy_guard, copy_action): Use
2791 printable_version to avoid unprintable characters in printed output.
2792 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2793 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2794 Allow the type of a non-terminal can be given
2795 more than once, as long as all specifications give the same type.
2798 (output_headers, output_trailers, output, output_gram)
2799 (output_rule_data): Implement noparserflag variable.
2800 Implement toknumflag variable.
2801 (output): Call reader_output_yylsp to output LTYPESTR.
2803 * src/main.c (main):
2804 If reader sees an error, don't process the grammar.
2805 (fatals): Updated to not use VARARGS1.
2806 (printable_version, int_to_string, warn, warni, warns, warnss)
2807 (warnsss): New error reporting functions. Avoid abort for error.
2810 Added THONG and NOOP for alias processing.
2811 Added SETOPT for the new code that allows setting options with %flags.
2814 Include getopt.h. Add some extern decls.
2815 (safegetc): New function to deal with EOF gracefully.
2816 (literalchar); new function to deal with reading \ escapes.
2817 (lex): Use literalchar.
2818 (lex): Implemented "..." tokens.
2819 (literalchar, lex, parse_percent_token): Made tokenbuffer
2820 always contain the token. This includes growing the token
2821 buffer while reading an integer.
2822 (parse_percent_token): Replaced if-else statement with percent_table.
2823 (parse_percent_token): Added % declarations as another
2824 way to specify the flags -n, -l, and -r. Also added hooks for
2825 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2826 major changes to files.c.
2827 (lex) Retain in the incoming stream a character following
2829 (skip_white_space, lex): Revised most error messages
2830 and changed fatal to warn to avoid aborting.
2831 (percent_table): Added %thong declarations.
2833 * src/gram.h: Comment changes.
2835 * src/files.c (openfiles, open_extra_files, done):
2837 and actfile file. Handle noparserflag. Both for -n switch.
2839 * src/conflicts.c (resolve_sr_conflict):
2840 Remove use of alloca.
2842 1995-06-01 Jim Meyering <meyering@gnu.org>
2844 * doc/bison.texinfo: *** empty log message ***
2846 1995-05-06 Richard Stallman <rms@gnu.org>
2848 * src/bison.s1: Comment change.
2850 1995-05-06 Richard Stallman <rms@gnu.org>
2852 * bison.simple: Comment change.
2854 1995-05-03 Richard Stallman <rms@gnu.org>
2856 * src/version.c: Version now 1.24.
2858 * src/bison.s1: Change distribution terms.
2860 * src/version.c: Version now 1.23.
2862 1995-05-03 Richard Stallman <rms@gnu.org>
2864 * doc/bison.texinfo:
2865 Rewrite "Conditions for Using Bison".
2866 Update version to 1.24.
2868 1995-05-03 Richard Stallman <rms@gnu.org>
2870 * bison.simple: Change distribution terms.
2872 1995-02-23 Richard Stallman <rms@gnu.org>
2874 * src/files.c: Test __VMS_POSIX as well as VMS.
2876 1995-02-14 Jim Meyering <meyering@gnu.org>
2878 * src/bison.s1 (__yy_memcpy):
2879 Renamed from __yy_bcopy to avoid
2880 confusion. Reverse FROM and TO arguments to be consistent with
2883 1995-02-14 Jim Meyering <meyering@gnu.org>
2885 * bison.simple (__yy_memcpy):
2886 Renamed from __yy_bcopy to avoid
2887 confusion. Reverse FROM and TO arguments to be consistent with
2890 1994-11-10 David J. MacKenzie <djm@gnu.org>
2896 * Makefile.in (DISTFILES): Include NEWS.
2898 * Makefile.in (DISTFILES):
2899 Include install-sh, not install.sh.
2901 * configure.in: Update to Autoconf v2 macro names.
2903 1994-10-05 David J. MacKenzie <djm@gnu.org>
2905 * Makefile.in: fix typo
2907 * Makefile.in (prefix, exec_prefix):
2908 Let configure set them.
2910 1994-09-28 David J. MacKenzie <djm@gnu.org>
2912 * Makefile.in: Set datadir to $(prefix)/share.
2914 1994-09-15 Richard Stallman <rms@gnu.org>
2917 Update copyright notice and GPL version.
2919 1994-09-15 Richard Stallman <rms@gnu.org>
2922 Update copyright notice and GPL version.
2924 1994-07-12 Richard Stallman <rms@gnu.org>
2926 * src/reduce.c, src/reader.c:
2929 1994-05-05 David J. MacKenzie <djm@gnu.org>
2931 * Makefile.in: entered into RCS
2933 1994-03-26 Richard Stallman <rms@gnu.org>
2935 * src/bison.s1: entered into RCS
2937 1994-03-26 Richard Stallman <rms@gnu.org>
2939 * bison.simple: entered into RCS
2941 1994-03-25 Richard Stallman <rms@gnu.org>
2943 * src/main.c: entered into RCS
2945 1994-03-24 Richard Stallman <rms@gnu.org>
2947 * src/conflicts.c: entered into RCS
2949 1994-01-02 Richard Stallman <rms@gnu.org>
2951 * Makefile.in: *** empty log message ***
2953 1993-11-21 Richard Stallman <rms@gnu.org>
2955 * src/bison.s1: *** empty log message ***
2957 1993-11-21 Richard Stallman <rms@gnu.org>
2959 * doc/bison.texinfo: entered into RCS
2961 * doc/bison.texinfo: *** empty log message ***
2963 1993-11-21 Richard Stallman <rms@gnu.org>
2965 * bison.simple: *** empty log message ***
2967 1993-10-25 David J. MacKenzie <djm@gnu.org>
2969 * doc/bison.texinfo: *** empty log message ***
2971 1993-10-19 Richard Stallman <rms@gnu.org>
2973 * src/bison.s1: *** empty log message ***
2975 1993-10-19 Richard Stallman <rms@gnu.org>
2977 * bison.simple: *** empty log message ***
2979 1993-10-14 Richard Stallman <rms@gnu.org>
2981 * src/bison.s1: *** empty log message ***
2983 1993-10-14 Richard Stallman <rms@gnu.org>
2985 * bison.simple: *** empty log message ***
2987 1993-09-14 David J. MacKenzie <djm@gnu.org>
2989 * doc/bison.texinfo: *** empty log message ***
2991 1993-09-13 Noah Friedman <friedman@gnu.org>
2993 * Makefile.in: *** empty log message ***
2995 1993-09-10 Richard Stallman <rms@gnu.org>
2997 * src/conflicts.c: *** empty log message ***
2999 * src/system.h: entered into RCS
3001 1993-09-10 Richard Stallman <rms@gnu.org>
3003 * doc/bison.1: entered into RCS
3005 1993-09-06 Noah Friedman <friedman@gnu.org>
3007 * src/version.c: entered into RCS
3009 1993-09-06 Noah Friedman <friedman@gnu.org>
3011 * Makefile.in: *** empty log message ***
3013 1993-07-30 David J. MacKenzie <djm@gnu.org>
3015 * Makefile.in: *** empty log message ***
3017 1993-07-24 Richard Stallman <rms@gnu.org>
3019 * src/bison.s1: *** empty log message ***
3021 1993-07-24 Richard Stallman <rms@gnu.org>
3023 * bison.simple: *** empty log message ***
3025 1993-07-08 David J. MacKenzie <djm@gnu.org>
3027 * Makefile.in: *** empty log message ***
3029 1993-07-04 Richard Stallman <rms@gnu.org>
3031 * src/bison.s1: *** empty log message ***
3033 1993-07-04 Richard Stallman <rms@gnu.org>
3035 * bison.simple: *** empty log message ***
3037 1993-06-26 David J. MacKenzie <djm@gnu.org>
3039 * src/getargs.c: entered into RCS
3041 1993-06-26 David J. MacKenzie <djm@gnu.org>
3043 * doc/bison.texinfo: *** empty log message ***
3045 * doc/bison.1: New file.
3047 1993-06-25 Richard Stallman <rms@gnu.org>
3049 * src/getargs.c: New file.
3051 1993-06-16 Richard Stallman <rms@gnu.org>
3053 * src/bison.s1: *** empty log message ***
3055 1993-06-16 Richard Stallman <rms@gnu.org>
3057 * bison.simple: *** empty log message ***
3059 1993-06-03 Richard Stallman <rms@gnu.org>
3061 * src/bison.s1: New file.
3063 1993-06-03 Richard Stallman <rms@gnu.org>
3065 * doc/bison.texinfo: *** empty log message ***
3067 1993-06-03 Richard Stallman <rms@gnu.org>
3069 * bison.simple: New file.
3071 1993-05-19 Richard Stallman <rms@gnu.org>
3073 * doc/bison.texinfo: New file.
3075 1993-05-07 Noah Friedman <friedman@gnu.org>
3077 * Makefile.in: *** empty log message ***
3079 1993-04-28 Noah Friedman <friedman@gnu.org>
3081 * src/reader.c: *** empty log message ***
3083 1993-04-23 Noah Friedman <friedman@gnu.org>
3085 * src/alloc.h: entered into RCS
3087 1993-04-20 David J. MacKenzie <djm@gnu.org>
3089 * src/version.c: *** empty log message ***
3091 * src/files.c, src/allocate.c:
3094 * src/reader.c: *** empty log message ***
3096 * src/lex.c: entered into RCS
3098 * src/conflicts.c: New file.
3100 * src/symtab.c: entered into RCS
3102 * src/alloc.h: New file.
3104 * src/LR0.c: entered into RCS
3106 1993-04-18 Noah Friedman <friedman@gnu.org>
3108 * src/reader.c: New file.
3110 * src/version.c: *** empty log message ***
3112 1993-04-18 Noah Friedman <friedman@gnu.org>
3114 * Makefile.in: *** empty log message ***
3116 1993-04-17 Noah Friedman <friedman@gnu.org>
3118 * Makefile.in: *** empty log message ***
3120 1993-04-15 Richard Stallman <rms@gnu.org>
3122 * src/main.c, src/files.c:
3125 1993-04-15 Noah Friedman <friedman@gnu.org>
3127 * configure.in: entered into RCS
3129 * configure.in: *** empty log message ***
3131 * configure.in: New file.
3133 1993-04-14 Richard Stallman <rms@gnu.org>
3135 * Makefile.in: New file.
3137 1993-04-13 Richard Stallman <rms@gnu.org>
3139 * src/version.c: New file.
3141 1993-03-25 Richard Stallman <rms@gnu.org>
3143 * src/output.c: entered into RCS
3145 1992-09-25 Richard Stallman <rms@gnu.org>
3147 * configure.bat: entered into RCS
3149 1992-06-22 Richard Stallman <rms@gnu.org>
3151 * src/vmsgetargs.c: entered into RCS
3153 1992-06-22 Richard Stallman <rms@gnu.org>
3155 * doc/bison.rnh: entered into RCS
3157 1992-04-20 David J. MacKenzie <djm@gnu.org>
3159 * README: entered into RCS
3161 1992-01-22 Richard Stallman <rms@gnu.org>
3163 * src/machine.h: entered into RCS
3165 1991-12-21 Richard Stallman <rms@gnu.org>
3167 * src/lalr.c, src/closure.c:
3170 1991-12-20 Richard Stallman <rms@gnu.org>
3172 * src/state.h: entered into RCS
3174 1991-12-18 Richard Stallman <rms@gnu.org>
3176 * src/print.c, src/nullable.c, src/derives.c:
3179 1991-11-03 David J. MacKenzie <djm@gnu.org>
3181 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3184 1988-09-09 Richard Stallman <rms@gnu.org>
3186 * src/bison.hairy: entered into RCS
3188 1987-12-16 Richard Stallman <rms@gnu.org>
3190 * REFERENCES: entered into RCS