1 2001-10-04 Akim Demaille <akim@epita.fr>
3 Merge in the branch 1.29.
5 * src/reader.c (packsymbols): Use a temporary obstack for
6 `%%tokendef', since output_stack is already used elsewhere.
8 2001-10-02 Akim Demaille <akim@epita.fr>
12 2001-10-02 Akim Demaille <akim@epita.fr>
16 2001-10-02 Akim Demaille <akim@epita.fr>
18 * tests/regression.at (Invalid CPP headers): New.
19 From Alexander Belopolsky.
20 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
22 2001-10-02 Akim Demaille <akim@epita.fr>
24 * tests/regression.at (Invalid input): New.
25 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
28 2001-10-02 Akim Demaille <akim@epita.fr>
30 * tests/calc.at: Now that --debug works, the tests must be adjusted.
32 2001-10-02 Akim Demaille <akim@epita.fr>
34 * src/output.c (output_parser): Assert `skeleton'.
35 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
39 2001-10-01 Marc Autret <autret_m@epita.fr>
41 * src/lex.h: Echo modifications.
42 * src/lex.c (unlex): Parameter is now token_t.
45 2001-10-01 Marc Autret <autret_m@epita.fr>
47 * src/main.c: Include lex.h.
50 2001-09-29 Akim Demaille <akim@epita.fr>
52 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
54 2001-09-28 Akim Demaille <akim@epita.fr>
56 * tests/testsuite.at: Update to newer Autotest.
57 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
59 2001-09-27 Akim Demaille <akim@epita.fr>
61 Position independent wrapper.
63 * tests/bison: Remove.
64 * tests/bison.in: New.
65 * configure.in: Adjust.
67 2001-09-27 Paul Eggert <eggert@twinsun.com>
69 Port quotearg fixes from tar 1.13.24.
71 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
73 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
77 * m4/mbrtowc.m4: New file.
78 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
79 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
81 2001-09-27 Akim Demaille <akim@epita.fr>
85 2001-09-27 Akim Demaille <akim@epita.fr>
89 2001-09-25 Akim Demaille <akim@epita.fr>
91 * src/system.h: Include `xalloc.h'.
92 Remove it from the C files.
93 * src/files.c (output_files): Free the obstacks.
94 * src/lex.c (init_lex): Rename as...
97 * src/main.c (main): Use it.
99 2001-09-24 Marc Autret <autret_m@epita.fr>
101 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
102 to output informations in fout (FILE*).
103 (open_graph, close_graph): Likewise.
104 (output_graph, output_edge, output_node): Likewise.
105 * src/vcg.h: Update function prototypes.
106 * src/print_graph.c (print_graph): Open output graph file.
107 (print_actions): Adjust.
108 * src/files.h: Remove extern declaration.
109 * src/files.c: Remove graph_obstack declaration.
110 (open_files): Remove graph_obstack initialization.
111 (output_files): Remove graph_obstack saving.
113 2001-09-24 Marc Autret <autret_m@epita.fr>
115 * src/files.c (compute_output_file_names): Fix.
117 2001-09-24 Marc Autret <autret_m@epita.fr>,
118 Akim Demaille <akim@epita.fr>
120 * src/reader.c (reader): Remove call to free_symtab ().
121 * src/main.c (main): Call it here.
123 * src/conflicts.c (initialize_conflicts): Rename as...
124 (solve_conflicts): this.
125 * src/print.c (print_core, print_actions, print_state)
126 (print_grammar): Dump to a file instead a `output_obstack'.
127 (print_results): Dump `output_obstack', and then proceed with the
129 * src/files.c (compute_output_file_names, close_files): New.
130 (output_files): Adjust.
131 * src/main.c (main): Adjust.
133 2001-09-23 Marc Autret <autret_m@epita.fr>
135 * src/files.c (compute_header_macro): Computes header macro name
136 from spec_defines_file when given.
138 2001-09-23 Marc Autret <autret_m@epita.fr>
140 * src/files.c (output_files): Add default extensions.
142 2001-09-22 Akim Demaille <akim@epita.fr>
144 * src/conflicts.c (finalize_conflicts): Rename as...
145 (free_conflicts): this.
147 2001-09-22 Akim Demaille <akim@epita.fr>
149 * src/gram.c (gram_free): Rename back as...
151 (output_token_translations): Free `token_translations'.
152 * src/symtab.c (free_symtab): Free the tag field.
154 2001-09-22 Akim Demaille <akim@epita.fr>
156 Remove `translations' as it is always set to true.
158 * src/gram.h: Adjust.
159 * src/reader.c (packsymbols, parse_token_decl): Adjust
160 * src/print.c (print_grammar): Adjust.
161 * src/output.c (output_token_translations): Adjust.
162 * src/lex.c (lex): Adjust.
163 * src/gram.c: Be sure the set pointers to NULL.
164 (dummy): Rename as...
167 2001-09-22 Akim Demaille <akim@epita.fr>
169 * configure.in: Invoke AM_LIB_DMALLOC.
170 * src/system.h: Use dmalloc.
171 * src/LR0.c: Be sure to have pointers initialized to NULL.
172 (allocate_itemsets): Allocate kernel_items only if needed.
174 2001-09-22 Akim Demaille <akim@epita.fr>
176 * configure.in: Bump to 1.29b.
177 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
178 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
179 need xmalloc.c in calc.y.
182 2001-09-21 Akim Demaille <akim@epita.fr>
185 * Makefile.maint, config/config.guess, config/config.sub,
186 * config/missing: Update from masters.
187 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
189 * configure.in (ALL_LINGUAS): Add `tr'.
191 2001-09-21 Akim Demaille <akim@epita.fr>
193 * tests/Makefile.am (package.m4): Move to...
194 ($(srcdir)/$(TESTSUITE)): here.
196 2001-09-20 Akim Demaille <akim@epita.fr>
198 * src/complain.c: No longer try to be standalone: use system.h.
199 Don't assume __STDC__ is defined to 1. Just test if it is defined.
200 * src/complain.h: Likewise.
201 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
202 Remove the unused variable `n'.
203 From Albert Chin-A-Young.
205 2001-09-18 Marc Autret <autret_m@epita.fr>
207 * doc/bison.1: Update.
208 * doc/bison.texinfo (Bison Options): Update --defines and --graph
210 (Option Cross Key): Update.
213 2001-09-18 Marc Autret <autret_m@epita.fr>
215 * tests/regression.at: New test (comment in %union).
217 2001-09-18 Marc Autret <autret_m@epita.fr>
219 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
221 Reported by Keith Browne.
223 2001-09-18 Marc Autret <autret_m@epita.fr>
225 * tests/output.at: Add tests for --defines and --graph.
227 2001-09-18 Marc Autret <autret_m@epita.fr>
229 * tests/output.at: Removes tests of %{header,src}_extension features.
231 2001-09-18 Akim Demaille <akim@epita.fr>
233 * tests/Makefile.am (package.m4): New.
234 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
235 (_AT_CHECK_CALC_ERROR): Likewise.
236 Factor the `, ' part of verbose error messages.
238 2001-09-18 Marc Autret <autret_m@epita.fr>
240 * src/getargs.c (longopts): Declare --defines and --graph as options
241 with optional arguments.
242 * src/files.h: Add extern declarations.
243 * src/files.c (spec_graph_file, spec_defines_file): New.
244 (output_files): Update.
245 Remove CPP-outed code.
247 2001-09-18 Marc Autret <autret_m@epita.fr>
249 Turn off %{source,header}_extension feature.
251 * src/files.c (compute_exts_from_gf): Update.
252 (compute_exts_from_src): Update.
253 (output_files): CPP-out useless code.
254 * src/files.h: Remove {header,source}_extension extern declarations.
255 * src/reader.c (parse_dquoted_param): CPP-out.
256 (parse_header_extension_decl): Remove.
257 (parse_source_extension_decl): Remove.
258 (read_declarations): Remove cases tok_{hdrext,srcext}.
259 * src/lex.c (percent_table): Remove {header,source}_extension entries.
260 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
262 2001-09-10 Akim Demaille <akim@epita.fr>
264 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
265 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
266 (AT_CHECK_OUTPUT): this.
267 Merely check ls' exit status, its output is useless.
269 2001-09-10 Akim Demaille <akim@epita.fr>
271 * tests/calc.at: Use m4_match.
272 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
274 2001-09-10 Marc Autret <autret_m@epita.fr>,
275 Akim Demaille <akim@epita.fr>
277 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
279 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
281 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
282 * src/lex.h: Adjust prototype.
283 (token_t): Add `tok_undef'.
284 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
285 (parse_percent_token): Now returns token_t.
286 Add default statement in switch.
287 (lex): Separate `c' as an input variable, from the token_t result
289 (unlexed): Is a token_t.
291 2001-09-10 Akim Demaille <akim@epita.fr>
293 * configure.in: Bump to 1.29a.
295 2001-09-07 Akim Demaille <akim@epita.fr>
299 2001-08-30 Akim Demaille <akim@epita.fr>
301 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
302 * m4/atconfig.m4: Remove.
303 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
305 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
306 m4_if, m4_patsubst, and m4_regexp.
307 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
308 `input' file instead of echo.
310 2001-08-29 Akim Demaille <akim@epita.fr>
314 2001-08-29 Akim Demaille <akim@epita.fr>
318 2001-08-29 Paul Eggert <eggert@twinsun.com>
320 * src/bison.simple (yyparse): Don't take the address of an
321 item before the start of an array, as that doesn't conform to
324 2001-08-29 Robert Anisko <anisko_r@epita.fr>
326 * doc/bison.texinfo (Location Tracking Calc): New node.
328 2001-08-29 Paul Eggert <eggert@twinsun.com>
330 * src/output.c (output): Do not define const, as this now
331 causes more problems than it cures.
333 2001-08-29 Akim Demaille <akim@epita.fr>
335 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
337 Be sure to tag the `detailmenu'.
339 2001-08-29 Akim Demaille <akim@epita.fr>
341 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
342 download in a tmp dir.
344 2001-08-28 Marc Autret <autret_m@epita.fr>
346 * config/depcomp: New file.
348 2001-08-28 Marc Autret <autret_m@epita.fr>
350 * doc/bison.1 (mandoc): Adjust.
351 From Juan Manuel Guerrero.
353 2001-08-28 Marc Autret <autret_m@epita.fr>
355 * src/print_graph.c (print_state): Fix.
357 2001-08-27 Marc Autret <autret_m@epita.fr>
359 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
361 Echo modifications to the functions prototypes.
362 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
364 2001-08-27 Marc Autret <autret_m@epita.fr>
366 * src/vcg.c: Include `xalloc.h'.
367 (add_colorentry): New.
368 (add_classname): New.
370 * src/vcg.h: Add new prototypes.
372 2001-08-27 Akim Demaille <akim@epita.fr>
374 * Makefile.maint: Sync. again with CVS Autoconf.
376 2001-08-27 Akim Demaille <akim@epita.fr>
378 * Makefile.maint: Formatting changes.
379 (po-update, cvs-update, update): New targets.
382 2001-08-27 Akim Demaille <akim@epita.fr>
384 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
385 * Makefile.maint: Sync. with CVS Autoconf.
387 2001-08-27 Marc Autret <autret_m@epita.fr>
389 * src/vcg.h (struct infoname_s): New.
390 (struct colorentry_s): New.
391 (graph_s): New fields {vertical,horizontal}_order in structure.
392 Add `infoname' field.
393 Add `colorentry' field;
394 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
395 (G_HORIZONTAL_ORDER): New.
398 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
399 Add output of `infoname'.
400 Add output of `colorentry'.
402 2001-08-27 Marc Autret <autret_m@epita.fr>
404 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
405 This one shadowed a global parameter.
407 2001-08-24 Marc Autret <autret_m@epita.fr>
409 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
410 instead of `unsigned'.
411 (print_state): Do not call obstack_object_size () in obstack_grow ()
412 to avoid macro variables shadowing.
414 2001-08-23 Marc Autret <autret_m@epita.fr>
416 * src/lex.c (percent_table): Typo: s/naem/name/.
418 Normalize new options declarations.
420 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
422 * tests/suite.at: Exercise %header_extension and %source_extension.
424 2001-08-16 Marc Autret <autret_m@epita.fr>
426 * src/reader.c (parse_dquoted_param): New.
427 (parse_header_extension_decl): Use it.
428 (parse_source_extension_decl): Likewise.
430 2001-08-16 Marc Autret <autret_m@epita.fr>
432 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
433 (get_xxxx_str): Use assert () instead of complain ().
434 Remove return invokations in default cases.
435 (get_decision_str): Modify default behaviour. Remove second argument.
436 Echo modifications on calls.
439 2001-08-16 Marc Autret <autret_m@epita.fr>
441 * src/getargs.c (usage): Update with ``-g, --graph''.
443 2001-08-16 Marc Autret <autret_m@epita.fr>
445 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
446 (Option Cross Key): Likewise.
447 * doc/bison.1: Update.
449 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
451 * src/output.c (output_master_parser): Don't finish action_obstack.
452 (output_parser): Don't care about the muscle action, here.
453 (prepare): Copy the action_obstack in the action muscle.
454 (output): Free action_obstack.
456 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
458 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
459 will contain `%union' declaration.
460 (parse_union_decl): Delete #line directive output.
461 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
462 informations about %union.
463 (parse_union_decl): Copy the union_obstack in the muscle stype.
464 * src/bison.simple: Add new #line directive.
465 Add typdef %%stype YYSTYPE.
467 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
469 * src/bison.simple: Add new `#line' directive.
471 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
473 * src/bison.simple: New `#line' directive.
474 * src/output.c (output_parser): Support new dynamic muscle input_line.
476 2001-09-22 Marc Autret <autret_m@epita.fr>
478 * src/output.c (output_master_parser): New.
479 (output_parser): Be more re-entrant.
481 2001-09-21 Marc Autret <autret_m@epita.fr>
483 * src/reader.c (copy_definition, parse_union_decl): Update and use
485 (copy_action): Likewise.
486 Use obstack_1grow ().
487 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
489 2001-09-21 Marc Autret <autret_m@epita.fr>
491 * src/options.c (option_table): Adjust.
492 * src/lex.c (parse_percent_token): Fix.
494 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
496 * src/options.c (symtab.h): Include it, need by lex.h.
498 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
500 * src/lex.c (parse_percent_token): Change type of variable `tx', which
501 is now an option_table_struct*.
502 (option_strcmp): New function option_strcmp.
503 (parse_percent_token): Call option_strcmp.
504 * src/getargs.c (xalloc.h, options.h): Include it.
505 (getargs): Call create_long_option_table.
506 (getargs): Free longopts at the end of the function.
507 (shortopts): Move in options.c.
508 * src/options.c (create_long_option_table): New function. Convert
509 information from option_table to option structure.
510 * src/reader.c (options.h): Include it.
512 * src/Makefile.am: Adjust.
513 * src/options.c (option_table): Create from longopts and percent_table.
514 * src/getargs.c (longopts): Delete.
515 * src/lex.c (struct percent_table_struct): Delete.
516 (percent_table): Delete.
517 (options.h): Include it.
518 * src/options.c: Create.
519 * src/options.h: Create.
520 Declare enum opt_access_e.
521 Define struct option_table_struct.
523 2001-09-20 Marc Autret <autret_m@epita.fr>
525 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
528 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
530 * src/bison.simple: s/%%filename/%%skeleton.
531 * src/muscle_tab.c (getargs.h): Include it.
532 (muscle_init): Insert new muscle skeleton.
534 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
536 * src/output.c (output_parser): Delete unused variable actions_dumped.
538 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
540 * src/output.c (output): Delete call to reader_output_yylsp.
541 * src/reader.c (reader): Likewise.
542 * src/reader.h: Delete declaration of reader_output_yylsp.
544 2001-09-02 Marc Autret <autret_m@epita.fr>
546 * src/reader.c: Include muscle_tab.h.
547 (parse_union_decl): Update.
548 (parse_macro_decl): Rename parse_muscle_decl.
549 Update to use renamed functions and variable.
550 (read_declarations, copy_action, read_additionnal_code, : Updated
551 with correct variables and functions names.
552 (packsymbols, reader): Likewise.
554 * src/reader.h (muscle_obstack): Extern declaration update.
556 * src/output.c: Include muscle_tab.h
557 In all functions using macro_insert, change by using muscle_insert ().
558 (macro_obstack): Rename muscle_obstack.
559 Echo modifications in the whole file.
560 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
561 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
562 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
564 * src/muscle_tab.h: Update double inclusion macros.
565 (macro_entry_s): Rename muscle_entry_s.
568 * src/muscle_tab.c: Include muscle_tab.h.
569 Rename macro_tabble to muscle_table.
570 (mhash1, mhash2, mcmp): Use muscle_entry.
571 (macro_init): Rename muscle_init. Update.
572 (macro_insert): Rename muscle_insert. Update.
573 (macro_find): Rename muscle_find. Update.
575 * src/main.c: Include muscle_tab.h.
576 (main): Call muscle_init ().
577 * src/Makefile.am (bison_SOURCES): Echo modifications.
579 2001-09-02 Marc Autret <autret_m@epita.fr>
581 Now the files macro_tab.[ch] are named muscle_tab.[ch].
583 * src/muscle_tab.c, src/muscle_tab.h: Add files.
585 2001-09-02 Marc Autret <autret_m@epita.fr>
587 * src/macrotab.c, src/macrotab.h: Remove.
589 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
591 * src/reader.c (copy_guard): Use muscle to specify the `#line'
594 2001-09-01 Marc Autret <autret_m@epita.fr>
596 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
597 to an explicit value to activate the feature. We do it here.
599 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
601 * src/output.c (prepare): Delete the `filename' muscule insertion.
602 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
603 (parse_union_decl): Likewise.
604 * src/macrotab.c (macro_init): Initialize filename by infile.
606 2001-08-31 Marc Autret <autret_m@epita.fr>
608 * src/bison.simple (YYLSP_NEEDED): New definition.
609 * src/output.c (prepare): Add macro insertion of `locations_flag'
611 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
613 * src/output.c (prepare): Delete insertion of previous muscles,
614 and insert the `prefix' muscles.
615 * src/macrotab.c (macro_init): Likewise.
616 (macro_init): Initialization prefix directive by `yy'.
617 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
618 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
619 yylval, yydebug, yyerror, yynerrs and yyparse.
620 New directive `#define' to substitute yydebug, ... with option
623 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
625 * src/main.c (main): Standardize.
626 * src/output.c (output_table_data, output_parser): Likewise.
627 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
629 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
631 * src/reader.c (read_additionnal_code): Rename %%user_code to
633 * src/output.c (output): Rename %%declarations to %%prologue.
634 * src/bison.simple: Echo modifications.
636 2001-08-31 Marc Autret <autret_m@epita.fr>
638 * src/reader.c (readgram): CleanUp.
639 (output_token_defines): Likewise.
640 (packsymbols): Likewise.
642 * src/output.c (output): CPP-out useless code.
644 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
646 * src/reader.c (reader): Delete obsolete call to function
647 output_trailers and output_headers.
648 * src/output.h: Remove obsolete functions prototypes of output_headers
651 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
653 * src/main.c: Include macrotab.h.
654 * src/macrotab.h (macro_entry_s): Constify fields.
655 Adjust functions prototypes.
656 * src/macrotab.c (macro_insert): Constify key and value.
657 (macro_find): Constify key.
658 (macro_insert): Include 'xalloc.h'
659 (macro_insert): Use XMALLOC.
660 (macro_find): Constify return value.
661 * src/output.c (output_table_data): Rename table to table_data.
662 (output_parser): Constify macro_key, macro_value.
664 2001-08-30 Marc Autret <autret_m@epita.fr>
666 * src/reader.c (parse_skel_decl): New.
667 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
668 * src/lex.h (token_t): New token `tok_skel'.
669 * src/lex.c (percent_table): Add skeleton option entry.
672 2001-08-29 Marc Autret <autret_m@epita.fr>
674 * src/bison.simple: Add %%user_code directive at the end.
675 * src/reader.c (read_additionnal_code): New.
677 * src/output.c (output_program): Remove.
680 2001-08-28 Marc Autret <autret_m@epita.fr>
682 * src/output.c (output_actions): Clean up.
683 (output_gram): CPP-out useless code.
684 * src/reader.c (reader): Clean up, CPP-out useless code.
686 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
688 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
690 * src/bison.simple: Add `%%definitions'.
692 2001-08-28 Marc Autret <autret_m@epita.fr>
694 * config/depcomp: New file.
696 2001-08-27 Paul Eggert <eggert@twinsun.com>
698 * src/bison.simple (yyparse): Don't take the address of an
699 item before the start of an array, as that doesn't conform to
702 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
704 * src/output.c (output): Remove the initialization of the macro
705 obstack. It was done too late here.
707 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
709 (reader): Initialize the macro obstack here, since we need it to grow
710 '%define' directives.
712 * src/reader.h: Declare the macro obstack as extern.
714 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
716 * src/output.c (output_parser): Fix. Store single '%' characters in
717 the output obstack instead of throwing them away.
719 2001-08-27 Akim Demaille <akim@epita.fr>
721 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
723 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
725 * lib/Makefile.am: Adjust.
727 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
729 * src/bison.simple: Update and add '%%' directives.
731 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
733 * src/reader.c (reader): Remove calls to 'output_headers' and
734 'output_trailers'. Remove some C output.
735 (readgram): Disable a piece of code that was writing a default
736 definition for 'YYSTYPE'.
737 (reader_output_yylsp): Remove.
738 (packsymbols): Output token defintions to a macro.
739 (copy_definition): Disable C output.
741 * src/reader.c (parse_macro_decl): New function used to parse macro
743 (copy_string2): Put the body of copy_string into this new function.
744 Add a parameter to let the caller choose whether he wants to copy the
745 string delimiters or not.
746 (copy_string): Be a simple call to copy_string2 with the last argument
748 (read_declarations): Add case for macro definition.
749 (copy_identifier): New.
750 (parse_macro_decl): Read macro identifiers using copy_identifier
753 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
755 * src/output.c (prepare): Add prefixed names.
756 (output_parser): Output semantic actions.
757 (output_parser): Fix bug on '%%line' directives.
759 * src/output.c (output_headers): Remove. The C code printed by this
760 function should now be in the skeletons.
761 (output_trailers): Remove.
762 (output): Disable call to 'reader_output_yylsp'.
763 (output_rule_data): Do not output tables to the table obstack.
765 * src/output.c: Remove some C dedicated output.
766 Improve the use of macro and output obstacks.
767 (output_defines): Remove.
769 * src/output.c (output_token_translations): Associate 'translate'
770 table with a macro. No output to the table obstack.
771 (output_gram): Same for 'rhs' and 'prhs'.
772 (output_stos): Same for 'stos'.
773 (output_rule_data): Same for 'r1' and 'r2'.
774 (token_actions): Same for 'defact'.
775 (goto_actions): Same for 'defgoto'.
776 (output_base): Same for 'pact' and 'pgoto'.
777 (output_table): Same for 'table'.
778 (output_check): Same for 'check'.
780 * src/output.c (output_table_data): New function.
781 (output_short_table): Remove.
782 (output_short_or_char_table): Remove.
784 * src/output.c (output_parser): Replace most of the skeleton copy code
785 with something new. Skeletons are now processed character by character
786 rather than line by line, and Bison looks for '%%' macros. This is the
787 first step in making Bison's output process (a lot) more flexible.
788 (output_parser): Use the macro table.
790 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
792 * src/main.c (main): Initialize the macro table.
794 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
796 * src/lex.c (percent_table): Add tok_define.
797 * src/lex.h: Add tok_define.
799 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
801 * src/macrotab.c: New file.
802 * src/macrotab.h: New file.
803 * src/Makefile.am: Update.
805 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
807 * lib/hash.c: New file.
808 * lib/hash.h: New file.
809 * lib/Makefile.am: Update.
811 2001-08-15 Akim Demaille <akim@epita.fr>
815 2001-08-15 Marc Autret <autret_m@epita.fr>
817 * src/reader.c (readgram): Indent output macro YYSTYPE.
818 (packsymbols): Likewise.
819 (output_token_defines): Likewise.
820 * src/files.c: Standardize.
821 (compute_header_macro): New.
822 (defines_obstack_save): New. Use compute_header_macro.
823 (output_files): Update. Use defines_obstack_save.
825 2001-08-15 Akim Demaille <akim@epita.fr>
827 * doc/bison.texinfo (Table of Symbols): Document
830 2001-08-15 Akim Demaille <akim@epita.fr>
832 * missing: Update from CVS Automake.
833 * config/config.guess, config/config.sub, config/texinfo.tex:
836 2001-08-15 Akim Demaille <akim@epita.fr>
838 * Makefile.maint: Sync with CVS Autoconf.
840 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
842 * doc/bison.texinfo: Include GNU Free Documentation License from
844 * doc/fdl.texi: Add to package.
846 2001-08-14 Marc Autret <autret_m@epita.fr>
848 Turn on %{source,header}_extension features.
850 * src/lex.c (percent_table): Un-CPP out header_extension and
852 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
853 (compute_exts_from_src): Remove conditions. It restores priorities
856 2001-08-14 Marc Autret <autret_m@epita.fr>
858 * src/files.c (compute_base_names): Add extensions computing when
859 `--file-prefix' used.
860 Standardize function calls.
862 2001-08-13 Marc Autret <autret_m@epita.fr>
864 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
865 defining it (defined but null disables alloca).
867 2001-08-13 Marc Autret <autret_m@epita.fr>
869 * src/bison.simple (_yy_memcpy): CPP reformat.
871 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
873 * tests/atconfig.in (CPPFLAGS): Fix.
875 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
877 * doc/bison.texinfo: Include GNU General Public License from
879 * doc/gpl.texi: Add to package.
881 2001-08-10 Marc Autret <autret_m@epita.fr>
883 * src/print_graph.h: Fix.
884 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
886 2001-08-10 Akim Demaille <akim@epita.fr>
888 * src/system.h: Provide default declarations for stpcpy, strndup,
891 2001-08-10 Robert Anisko <anisko_r@epita.fr>
893 * doc/bison.texinfo (Locations): Update @$ stuff.
895 2001-08-09 Robert Anisko <anisko_r@epita.fr>
897 * src/bison.simple (YYLLOC_DEFAULT): Update.
900 2001-08-08 Marc Autret <autret_m@epita.fr>
902 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
903 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
904 Reported by Fabrice Bauzac.
906 2001-08-08 Marc Autret <autret_m@epita.fr>
908 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
909 * src/vcg.c (output_node): Fix.
910 * src/vcg.h: Cleanup.
911 * src/print_graph.c: Add comments.
912 (node_output_size): New global variable. Simplify the formatting of
913 the VCG graph output.
914 (print_actions): Unused code is now used. It notifies the final state
915 and no action states in the VCG graph. It also give the reduce actions.
916 The `shift and goto' edges are red and the `go to state' edges are
918 Get the current node name and node_obstack by argument.
919 (node_obstack): New variable.
920 (print_state): Manage node_obstack.
921 (print_core): Use node_obstack given by argument.
922 A node is not only computed here but in print_actions also.
923 (print_graph): CPP out useless code instead of commenting it.
925 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
927 * tests/atconfig.in (CPPFLAGS): Fix.
929 2001-08-07 Akim Demaille <akim@epita.fr>
931 * src/print_graph.c (quote): New.
932 (print_core): Use it.
934 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
936 * src/vcg.c (complain.h): Include it.
937 Unepitaize `return' invocations.
938 [NDEBUG] (main): Remove.
939 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
940 * src/files.c (open_files): Initialize graph_obstack.
941 * src/print_graph.c (print_actions): CPP out useless code.
942 (print_core): Don't output the last `\n' in labels.
944 * src/files.c (output_files): Output the VCG file.
945 * src/main.c (main): Invoke print_graph ();
947 2001-08-06 Marc Autret <autret_m@epita.fr>
949 Automaton VCG graph output.
950 Using option ``-g'' or long option ``--graph'', you can generate
951 a gram_filename.vcg file containing a VCG description of the LALR (1)
952 automaton of your grammar.
954 * src/main.c: Call to print_graph() function.
955 * src/getargs.h: Update.
956 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
957 (graph_flag): New flag.
959 (getargs): Add case `g'.
960 * src/files.c (graph_obstack): New obstack struct.
961 (open_files): Initialize new obstack.
962 (output_files): Saves graph_obstack if required.
963 * src/files.h (graph_obstack): New extern declaration.
964 * src/Makefile.am: Add new source files.
966 2001-08-06 Marc Autret <autret_m@epita.fr>
968 * src/print_graph.c, src/print_graph.h (graph): New.
969 * src/vcg.h: New file.
970 * src/vcg.c: New file, VCG graph handling.
972 2001-08-06 Marc Autret <autret_m@epita.fr>
974 Add of %source_extension and %header_extension which specify
975 the source or/and the header output file extension.
977 * src/files.c (compute_base_names): Remove initialisation of
978 src_extension and header_extension.
979 (compute_exts_from_gf): Update.
980 (compute_exts_from_src): Update.
981 (output_files): Update.
982 * src/reader.c (parse_header_extension_decl): New.
983 (parse_source_extension_decl): New.
984 (read_declarations): New case statements for the new tokens.
985 * src/lex.c (percent_table): Add entries for %source_extension
986 and %header_extension.
987 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
989 2001-08-06 Marc Autret <autret_m@epita.fr>
991 * configure.in: Bump to 1.28c.
992 * doc/bison.texinfo: Texinfo thingies.
994 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
996 * tests/atconfig.in (CPPFLAGS): Add.
997 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
999 2001-08-03 Akim Demaille <akim@epita.fr>
1003 2001-08-03 Akim Demaille <akim@epita.fr>
1005 * tests/Makefile.am (check-local): Ship testsuite.
1006 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1009 2001-08-03 Akim Demaille <akim@epita.fr>
1011 * configure.in: Try using -Wformat when compiling.
1013 2001-08-03 Akim Demaille <akim@epita.fr>
1015 * configure.in: Bump to 1.28b.
1017 2001-08-03 Akim Demaille <akim@epita.fr>
1019 * src/complain.c: Adjust strerror_r portability issues.
1021 2001-08-03 Akim Demaille <akim@epita.fr>
1025 2001-08-03 Akim Demaille <akim@epita.fr>
1027 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1028 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1029 * src/getargs.c: Include complain.h.
1030 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1031 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1033 2001-08-03 Akim Demaille <akim@epita.fr>
1035 * src/reader.c (readgram): Display hidden chars in error messages.
1037 2001-08-03 Akim Demaille <akim@epita.fr>
1039 Update to gettext 0.10.39.
1041 2001-08-03 Akim Demaille <akim@epita.fr>
1043 * lib/strspn.c: New.
1045 2001-08-01 Marc Autret <autret_m@epita.fr>
1047 * doc/bison.texinfo: Update.
1048 * doc/bison.1 (mandoc): Update.
1049 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1050 * src/files.c: Support output files extensions computing.
1051 (src_extension): New static variable.
1052 (header_extension): New static variable.
1054 (get_extension_index): New function, gets the index of an extension
1055 filename in a string.
1056 (compute_exts_from_gf): New function, computes extensions from the
1057 grammar file extension.
1058 (compute_exts_from_src): New functions, computes extensions from the
1059 C source file extension, file given by ``-o'' option.
1060 (compute_base_names): Update.
1061 (output_files): Update.
1063 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1065 * doc/bison.texi: Document @$.
1066 (Locations): New section.
1068 2001-07-18 Akim Demaille <akim@epita.fr>
1070 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1071 * config/prev-version.txt, config/move-if-change: New.
1072 * Makefile.am: Adjust.
1074 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1076 * src/bison.simple (yyparse): Suppress warning `comparaison
1077 between signed and unsigned'.
1079 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1081 * src/getargs.h (raw_flag): Remove.
1082 * src/getargs.c: Die on `-r'/`--raw'.
1083 * src/lex.c (parse_percent_token): Die on `%raw'.
1084 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1085 * tests/calc.at: Suppress test with option `--raw'.
1087 2001-07-14 Akim Demaille <akim@epita.fr>
1090 * configure.in: Require Autoconf 2.50.
1091 Update to gettext 0.10.38.
1093 2001-03-16 Akim Demaille <akim@epita.fr>
1095 * doc/bison.texinfo: ANSIfy the examples.
1097 2001-03-16 Akim Demaille <akim@epita.fr>
1099 * getargs.c (skeleton): New variable.
1100 (longopts): --skeleton is a new option.
1101 (shortopts, getargs): -S is a new option.
1102 * getargs.h: Declare skeleton.
1103 * output.c (output_parser): Use it.
1105 2001-03-16 Akim Demaille <akim@epita.fr>
1107 * m4/strerror_r.m4: New.
1108 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1109 * lib/error.h, lib/error.c: Update.
1111 2001-03-16 Akim Demaille <akim@epita.fr>
1113 * src/getargs.c (longopts): Clean up.
1115 2001-02-21 Akim Demaille <akim@epita.fr>
1117 * src/reader.c (gensym): `gensym_count' is your own.
1118 Use a static buf to create the symbol name, as token_buffer is no
1121 2001-02-08 Akim Demaille <akim@epita.fr>
1123 * src/conflicts.c (conflict_report): Be sure not to append to res
1124 between two calls, which could happen if both first sprintf were
1125 skipped, but not the first cp += strlen.
1127 2001-02-08 Akim Demaille <akim@epita.fr>
1129 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1130 New, from fileutils 4.0.37.
1131 * configure.in: Require Autoconf 2.49c. I took some time before
1132 making this decision. This is the only way out for portability
1133 issues in Bison, it would mean way too much duplicate effort to
1134 import in Bison features implemented in 2.49c since 2.13.
1135 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1137 2001-02-02 Akim Demaille <akim@epita.fr>
1139 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1140 * lib/xalloc.h, lib/xmalloc.c: Update.
1142 2001-01-19 Akim Demaille <akim@epita.fr>
1144 Get rid of the ad hoc handling of token_buffer in the scanner: use
1147 * src/lex.c (token_obstack): New.
1148 (init_lex): Initialize it. No longer call...
1149 (grow_token_buffer): this. Remove it.
1150 Adjust all the places which used it to use the obstack.
1152 2001-01-19 Akim Demaille <akim@epita.fr>
1154 * src/lex.h: Rename all the tokens:
1155 s/\bENDFILE\b/tok_eof/g;
1156 s/\bIDENTIFIER\b/tok_identifier/g;
1158 Let them be enums, not #define, to ease debugging.
1159 Adjust all the code.
1161 2001-01-18 Akim Demaille <akim@epita.fr>
1163 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1164 * src/lex.c (maxtoken, grow_token_buffer): Static.
1166 2001-01-18 Akim Demaille <akim@epita.fr>
1168 Since we now use obstacks, more % directives can be enabled.
1170 * src/lex.c (percent_table): Also accept `%yacc',
1171 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1173 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1174 instead of returning a token.
1175 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1176 * src/reader.c (read_declarations): Adjust.
1177 * src/files.c (open_files): Don't call `compute_base_names', don't
1178 compute `attrsfile' since they depend upon data which might be
1179 *in* the input file now.
1180 (output_files): Do it here.
1181 * src/output.c (output_headers): Document the fact that this patch
1182 introduces a guaranteed SEGV for semantic parsers.
1183 * doc/bison.texinfo: Document them.
1184 * tests/suite.at: Exercise these %options.
1186 2000-12-20 Akim Demaille <akim@epita.fr>
1188 Also handle the output file (--verbose) with obstacks.
1190 * files.c (foutput): Remove.
1191 (output_obstack): New.
1192 Adjust all dependencies.
1193 * src/conflicts.c: Return a string.
1194 * src/system.h (obstack_grow_string): Rename as...
1195 (obstack_sgrow): this. Be ready to work with non literals.
1196 (obstack_fgrow4): New.
1198 2000-12-20 Akim Demaille <akim@epita.fr>
1200 * src/files.c (open_files): Fix the computation of short_base_name
1201 in the case of `-o foo.tab.c'.
1203 2000-12-20 Akim Demaille <akim@epita.fr>
1205 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1206 (copy_dollar): Now that everything uses obstacks, get rid of the
1209 2000-12-20 Akim Demaille <akim@epita.fr>
1211 * src/files.c (open_files): Actually the `.output' file is based
1212 on the short_base_name, not base_name.
1213 * tests/suite.at (Checking output file names): Adjust.
1215 2000-12-20 Akim Demaille <akim@epita.fr>
1217 * src/bison.s1: Remove, we now use directly...
1218 * src/bison.simple: this.
1219 * src/Makefile.am: Use pkgdata instead of data.
1221 2000-12-20 Akim Demaille <akim@epita.fr>
1223 * src/files.c (guard_obstack): New.
1224 (open_files): Initialize it.
1225 (output_files): Dump it...
1226 * src/files.h: Export it.
1227 * src/reader.c (copy_guard): Use it.
1229 2000-12-19 Akim Demaille <akim@epita.fr>
1231 * src/files.c (outfile, defsfile, actfile): Removed as global
1233 (open_files): Don't compute them.
1234 (output_files): Adjust.
1235 (base_name, short_base_name): Be global.
1236 Adjust dependencies.
1238 2000-12-19 Akim Demaille <akim@epita.fr>
1240 * src/files.c (strsuffix): New.
1241 (stringappend): Be just like strcat but allocate.
1242 (base_names): Eve out from open_files.
1243 Try to simplify the rather hairy computation of base_name and
1245 (open_files): Use it.
1246 * tests/suite.at (Checking output file names): New test.
1248 2000-12-19 Akim Demaille <akim@epita.fr>
1250 * src/system.h (obstack_grow_literal_string): Rename as...
1251 (obstack_grow_string): this.
1252 * src/output.c (output_parser): Recognize `%% actions' instead of
1254 * src/bison.s1: s/$/%% actions/.
1255 * src/bison.hairy: Likewise.
1257 2000-12-19 Akim Demaille <akim@epita.fr>
1259 * src/output.c (output_parser): Compute the `#line' lines when
1261 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1262 Suggested by Hans Aberg.
1264 2000-12-19 Akim Demaille <akim@epita.fr>
1266 Let the handling of the skeleton files be local to the procedures
1269 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1271 (fparser, open_extra_files): Remove.
1272 (open_files, output_files): Don't take care of fparser.
1273 * src/files.h: Adjust.
1274 * src/output.c (output_parser): Open and close the file to the
1276 * src/reader.c (read_declarations): When %semantic_parser, open
1279 2000-12-19 Akim Demaille <akim@epita.fr>
1281 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1282 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1284 2000-12-19 Akim Demaille <akim@epita.fr>
1286 * src/files.c (open_files): Yipee! We no longer need all the code
1287 looking for `/tmp' since we have no tmp file.
1289 2000-12-19 Akim Demaille <akim@epita.fr>
1291 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1293 * src/files.c (open_files): Less dependency on MSDOS etc.
1295 2000-12-14 Akim Demaille <akim@epita.fr>
1297 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1298 Provide a default definition.
1299 Use it when executing the default @ action.
1300 * src/reader.c (reader_output_yylsp): No longer include
1301 `timestamp' and `text' in the default YYLTYPE.
1303 2000-12-12 Akim Demaille <akim@epita.fr>
1305 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1306 (copy_guard): Quote the file names.
1307 Reported by Laurent Mascherpa.
1309 2000-12-12 Akim Demaille <akim@epita.fr>
1311 * src/output.c (output_headers, output_program, output): Be sure
1312 to escape special characters when outputting filenames.
1313 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1314 (output_headers): Don't depend on them, Use ACTSTR.
1316 2000-11-17 Akim Demaille <akim@epita.fr>
1318 * lib/obstack.h: Formatting changes.
1319 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1320 prevents type checking.
1321 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1322 cast the value to (void *): assigning a `foo *' to a `void *'
1324 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1325 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1328 2000-11-17 Akim Demaille <akim@epita.fr>
1330 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1332 (suite.m4, regression.m4, calc.m4): these.
1333 * tests/atgeneral.m4: Update from CVS Autoconf.
1335 2000-11-17 Akim Demaille <akim@epita.fr>
1337 * tests/regression.m4 (%union and --defines): New test,
1338 demonstrating a current bug in the obstack implementation.
1340 2000-11-17 Akim Demaille <akim@epita.fr>
1342 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1344 Use them to declare the variables which are global or local to
1347 2000-11-17 Akim Demaille <akim@epita.fr>
1349 * acconfig.h: Remove, no longer used.
1351 2000-11-07 Akim Demaille <akim@epita.fr>
1353 * src: s/Copyright (C)/Copyright/g.
1355 2000-11-07 Akim Demaille <akim@epita.fr>
1357 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1359 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1361 2000-11-07 Akim Demaille <akim@epita.fr>
1363 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1364 Merge in a single CPP if/else.
1366 2000-11-07 Akim Demaille <akim@epita.fr>
1368 * src/output.c (output): Remove useless variables.
1369 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1370 argument `data' for consistency with the prototypes.
1372 (obstack_copy, obstack_copy0): Rename the second argument as
1373 `address' for consistency. Qualify it `const'.
1374 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1375 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1376 `const' their input argument (`data' or `address').
1377 Adjust the corresponding macros to include `const' in casts.
1379 2000-11-03 Akim Demaille <akim@epita.fr>
1381 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1382 s/PFILE1/BISON_HAIRY/.
1383 Adjust dependencies.
1385 2000-11-03 Akim Demaille <akim@epita.fr>
1387 For some reason, this was not applied.
1389 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1390 `unlink': it's no longer used.
1392 2000-11-03 Akim Demaille <akim@epita.fr>
1394 * src/files.c (skeleton_find): New function, eved out of...
1395 (open_files, open_extra_files): here.
1397 2000-11-03 Akim Demaille <akim@epita.fr>
1401 * src/files.c (obstack_save): New function.
1402 (done): Rename as...
1403 (output_files): this.
1405 * src/main.c (main): Don't use `atexit' to register `done', since
1406 it no longer has to remove tmp files, just call `output_files'
1407 when there are no errors.
1409 2000-11-02 Akim Demaille <akim@epita.fr>
1411 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1412 `unlink': it's no longer used.
1413 * src/files.h: Formatting changes.
1415 2000-11-02 Akim Demaille <akim@epita.fr>
1417 Remove the last uses of mktemp and unlink/delete.
1419 * src/files.c (fdefines, ftable): Removed.
1420 (defines_ostack, table_obstack): New.
1421 Adjust dependencies of the former into uses of the latter.
1422 * src/output.c (output_short_or_char_table, output_short_table):
1423 Convert to using obstacks.
1424 * src/reader.c (copy_comment2): Accept one FILE * and two
1426 (output_token_defines, reader_output_yylsp): Use obstacks.
1427 * src/system.h (obstack_fgrow3): New.
1429 2000-11-01 Akim Demaille <akim@epita.fr>
1431 Change each use of `fattrs' into a use of `attrs_obstack'.
1433 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1434 * src/files.c (fattrs): Remove.
1435 (attrs_obstack): New.
1436 Adjust all dependencies.
1437 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1439 2000-11-01 Akim Demaille <akim@epita.fr>
1442 Change each use of `faction' into a use of `action_obstack'.
1444 * lib/obstack.h, lib/obstack.c: New files.
1445 * src/files.c (faction): Remove.
1446 (action_obstack): New.
1447 Adjust all dependencies.
1449 2000-10-20 Akim Demaille <akim@epita.fr>
1451 * lib/quote.h (PARAMS): New macro. Use it.
1453 2000-10-16 Akim Demaille <akim@epita.fr>
1455 * src/output.c (output_short_or_char_table): New function.
1456 (output_short_table, output_token_translations): Use it.
1457 (goto_actions): Use output_short_table.
1459 2000-10-16 Akim Demaille <akim@epita.fr>
1461 * src/symtab.c (bucket_new): New function.
1464 * src/output.c (output_short_table): New argument to display the
1465 comment associated with the table.
1466 Adjust dependencies.
1467 (output_gram): Use it.
1468 (output_rule_data): Nicer output layout for YYTNAME.
1470 2000-10-16 Akim Demaille <akim@epita.fr>
1472 * src/lex.c (read_typename): New function.
1474 * src/reader.c (copy_dollar): Likewise.
1476 2000-10-16 Akim Demaille <akim@epita.fr>
1478 * src/reader.c (copy_comment2): Expect the input stream to be on
1479 the `/' which is suspected to open a comment, instead of being
1480 called after `//' or `/*' was read.
1481 (copy_comment, copy_definition, parse_union_decl, copy_action)
1482 (copy_guard): Adjust.
1484 2000-10-16 Akim Demaille <akim@epita.fr>
1486 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1487 `read_signed_integer'.
1489 2000-10-16 Akim Demaille <akim@epita.fr>
1491 * src/reader.c (copy_dollar): New function.
1492 (copy_guard, copy_action): Use it.
1494 2000-10-16 Akim Demaille <akim@epita.fr>
1496 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1497 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1498 New files, from Fileutils 4.0.27.
1499 * src/main.c (printable_version): Remove.
1500 * src/lex.c, src/reader.c: Use `quote'.
1502 2000-10-04 Akim Demaille <akim@epita.fr>
1504 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1506 2000-10-04 Akim Demaille <akim@epita.fr>
1508 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1510 2000-10-04 Akim Demaille <akim@epita.fr>
1512 When a literal string is used to define two different tokens,
1513 `bison -v' segfaults.
1514 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1516 * tests/regression.m4: New file.
1517 Include the core of the sample provided by Piotr Gackiewicz.
1518 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1521 2000-10-04 Akim Demaille <akim@epita.fr>
1523 * src/reader.c (parse_expect_decl): Keep `count' within the size
1527 2000-10-02 Paul Eggert <eggert@twinsun.com>
1529 * bison.s1 (yyparse): Assign the default value
1530 unconditionally, to avoid a GCC warning and make the parser a
1533 2000-10-02 Akim Demaille <akim@epita.fr>
1535 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1538 2000-10-02 Akim Demaille <akim@epita.fr>
1540 * src/derives.c, src/print.c, src/reduce.c: To ease the
1541 translation, move some `\n' out of the translated strings.
1543 2000-10-02 Akim Demaille <akim@epita.fr>
1545 The location tracking mechanism is precious for parse error
1546 messages. Nevertheless, it is enabled only when `@n' is used in
1547 the grammar, which is a different issue (you can use it in error
1548 message, but not in the grammar per se). Therefore, there should
1549 be another means to enable it.
1551 * src/getargs.c (getargs): Support `--locations'.
1553 * src/getargs.h (locationsflag): Export it.
1554 * src/lex.c (percent_table): Support `%locations'.
1555 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1556 with `locationsflag'.
1557 * doc/bison.texinfo: Document `--locations' and `%locations'.
1559 * tests/calc.m4: Test it.
1561 For regularity of the names, replace each
1562 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1563 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1564 In addition replace each `flag' with `_flag'.
1566 2000-10-02 Akim Demaille <akim@epita.fr>
1568 Also test parse error messages, including with YYERROR_VERBOSE.
1570 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1572 Use it to check the computations.
1573 Use it to check `nonassoc' is honored.
1574 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1575 `--yyerror-verbose'.
1576 (_AT_CHECK_CALC): Adjust to this option.
1577 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1579 2000-10-02 Akim Demaille <akim@epita.fr>
1581 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1582 the latter demonstrates a flaw in the handling of non debugging
1583 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1584 was used in order to simplify:
1600 unfortunately this leads to a CPP conflict when
1601 `--name-prefix=foo' is used since it produces `#define yydebug
1604 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1605 (YYDPRINTF): New macro.
1607 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1609 Also test `--verbose', `--defines' and `--name-prefix'.
1611 2000-10-02 Akim Demaille <akim@epita.fr>
1613 Improve the readability of the produced parsers.
1615 * src/bison.s1: Formatting changes.
1616 Improve the comment related to the `$' mark.
1617 (yydefault): Don't fall through to `yyresume': `goto' there.
1618 * src/output.c (output_parser): When the `$' is met, skip the end
1620 New variable, `number_of_dollar_signs', to check there's exactly
1621 one `$' in the parser skeleton.
1623 2000-10-02 Akim Demaille <akim@epita.fr>
1625 * lib/xstrdup.c: New file, from the fileutils.
1626 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1627 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1628 instead of strlen + xmalloc + strcpy.
1629 * src/symtab.c (copys): Remove, use xstrdup instead.
1631 2000-10-02 Akim Demaille <akim@epita.fr>
1633 * src/gram.h (associativity): New enum type which replaces the
1634 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1635 `right_assoc', `left_assoc' and `non_assoc'.
1636 Adjust all dependencies.
1637 * src/reader.c: Formatting changes.
1638 (LTYPESTR): Don't define it, use it as a literal in
1639 `reader_output_yylsp'.
1640 * src/symtab.h (symbol_class): New enum type which replaces the
1641 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1642 `sunknown', `stoken and `snterm'.
1644 2000-10-02 Akim Demaille <akim@epita.fr>
1646 * src/getargs.c (fixed_outfiles): Rename as...
1647 (yaccflag): for consistency and accuracy.
1648 Adjust dependencies.
1650 2000-10-02 Akim Demaille <akim@epita.fr>
1652 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1653 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1654 difficult and introduced a lot of core dump. It turns out that
1655 Bison used an implementation of `xmalloc' based on `calloc', and
1656 at various places it does depend upon the initialization to 0. I
1657 have not tried to isolate the pertinent places, and all the former
1658 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1659 someone should address this issue.
1661 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1662 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1664 Adjust dependencies.
1665 * src/warshall.h: New file.
1668 2000-10-02 Akim Demaille <akim@epita.fr>
1670 Various anti-`extern in *.c' changes.
1672 * src/system.h: Include `assert.h'.
1674 2000-10-02 Akim Demaille <akim@epita.fr>
1676 * src/state.h (nstates, final_state, first_state, first_shift)
1677 (first_reduction): Move their exportation from here...
1678 * src/LR0.h: to here.
1679 Adjust dependencies.
1680 * src/getargs.c (statisticsflag): New variable.
1681 Add support for `--statistics'.
1682 Adjust dependencies.
1684 Remove a lot of now useless `extern' statements in most files.
1686 2000-10-02 Akim Demaille <akim@epita.fr>
1688 * src/LR0.h: New file.
1691 2000-10-02 Akim Demaille <akim@epita.fr>
1693 * src/print.h: New file.
1695 * src/print.c: Formatting and ordering changes.
1696 (verbose, terse): Replace with...
1697 (print_results): this new function.
1698 Adjust dependencies.
1700 2000-10-02 Akim Demaille <akim@epita.fr>
1702 * src/conflicts.c (conflict_report): New function.
1703 (conflict_log, verbose_conflict_log): Replace with...
1704 (print_conflicts): this function.
1705 Adjust dependencies.
1706 * src/conflicts.h: New file.
1707 Propagate its inclusion.
1709 2000-10-02 Akim Demaille <akim@epita.fr>
1711 * src/nullable.h: New file.
1712 Propagate its inclusion.
1713 * src/nullable.c: Formatting changes.
1715 2000-10-02 Akim Demaille <akim@epita.fr>
1717 * src/reduce.h: New file.
1718 Propagate its inclusion.
1719 * src/reduce.c: Topological sort and other formatting changes.
1720 (bool, TRUE, FALSE): Move their definition to...
1721 * src/system.h: here.
1723 2000-10-02 Akim Demaille <akim@epita.fr>
1725 * src/files.c: Formatting changes.
1726 (tryopen, tryclose, openfiles): Rename as...
1727 (xfopen, xfclose, open_files): this.
1728 (stringappend): static.
1729 * src/files.h: Complete the list of exported symbols.
1732 2000-10-02 Akim Demaille <akim@epita.fr>
1734 * src/reader.h: New file.
1735 Propagate its use instead of tedious list of `extern' and
1737 * src/reader.c: Formatting changes, topological sort,
1740 2000-10-02 Akim Demaille <akim@epita.fr>
1742 * src/lex.h: Prototype `lex.c' exported functions.
1743 * src/reader.c: Adjust.
1744 * src/lex.c: Formatting changes.
1745 (safegetc): Rename as...
1748 2000-10-02 Akim Demaille <akim@epita.fr>
1750 * src/lalr.h: New file.
1751 Propagate its inclusion instead of prototypes and `extern'.
1752 * src/lalr.c: Formatting changes, topological sorting etc.
1754 2000-10-02 Akim Demaille <akim@epita.fr>
1756 * src/output.c (token_actions): Introduce a temporary array,
1757 YYDEFACT, that makes it possible for this function to use
1760 2000-10-02 Akim Demaille <akim@epita.fr>
1762 `user_toknums' is output as a `short[]' in `output.c', while it is
1763 defined as a `int[]' in `reader.c'. For consistency with the
1764 other output tables, `user_toknums' is now defined as a table of
1767 * src/reader.c (user_toknums): Be a short table instead of an int
1769 Adjust dependencies.
1771 Factor the short table outputs.
1773 * src/output.c (output_short_table): New function.
1774 * src/output.c (output_gram, output_stos, output_rule_data)
1775 (output_base, output_table, output_check): Use it.
1777 2000-10-02 Akim Demaille <akim@epita.fr>
1779 * src/output.c (output): Topological sort of the functions, in
1780 order to get rid of the `static' prototypes.
1781 No longer use `register'.
1782 * src/output.h: New file.
1783 Propagate its inclusion in files explicitly prototyping functions
1786 2000-09-21 Akim Demaille <akim@epita.fr>
1788 * src/atgeneral.m4: Update from Autoconf.
1790 2000-09-21 Akim Demaille <akim@epita.fr>
1792 * src/closure.h: New file.
1793 * src/closure.c: Formatting changes, topological sort over the
1794 functions, use of closure.h.
1795 (initialize_closure, finalize_closure): Rename as...
1796 (new_closure, free_closure): these. Adjust dependencies.
1797 * src/LR0.c: Formatting changes, topological sort, use of
1799 (initialize_states): Rename as...
1801 * src/Makefile.am (noinst_HEADERS): Adjust.
1803 2000-09-20 Akim Demaille <akim@epita.fr>
1805 * src/acconfig.h: Don't protect config.h against multiple
1807 Don't define PARAMS.
1808 * src/system.h: Define PARAMS.
1809 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1810 purpose of config.h. system.h must not try to fix wrong
1811 definitions in config.h.
1813 2000-09-20 Akim Demaille <akim@epita.fr>
1815 * src/derives.h: New file.
1816 * src/main.c, src/derives.h: Use it.
1818 * src/Makefile.am (noinst_HEADERS): Adjust.
1820 2000-09-20 Akim Demaille <akim@epita.fr>
1822 * tests/atgeneral.m4: Update from Autoconf.
1823 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1824 (AT_CHECK_CALC): New macros.
1825 Use these macros to test bison with options `', `--raw',
1826 `--debug', `--yacc', `--yacc --debug'.
1828 2000-09-19 Akim Demaille <akim@epita.fr>
1830 * src/output.c: Formatting changes.
1831 * src/machine.h: Remove, leaving its contents in...
1832 * src/system.h: here.
1834 Adjust all dependencies on stdio.h and machine.h.
1835 * src/getargs.h: New file.
1836 Let all `extern' declarations about getargs.c be replaced with
1837 inclusion of `getargs.h'.
1838 * src/Makefile.am (noinst_HEADERS): Adjust.
1840 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1842 (yyerror): Returns void, not int.
1843 * doc/bison.texinfo: Formatting changes.
1845 2000-09-19 Akim Demaille <akim@epita.fr>
1847 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1850 2000-09-18 Akim Demaille <akim@epita.fr>
1852 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1853 * src/Makefile.am (INCLUDES): Don't.
1854 Be ready to fetch headers in lib/.
1856 2000-09-18 Akim Demaille <akim@epita.fr>
1858 * doc/bison.texinfo: Update the copyright.
1859 ANSIfy and GNUify the examples.
1860 Remove the old menu.
1862 2000-09-18 Akim Demaille <akim@epita.fr>
1864 First set of tests: use the `calc' example from the documentation.
1866 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1867 is defined only when YYDEBUG is.
1868 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1869 * src/files.c (tryopen, tryclose): Formatting changes.
1870 Move to the top and be static.
1871 * src/reader.c (read_signed_integer): Likewise.
1872 * tests/calc.m4: New file.
1873 * Makefile.am, suite.m4: Adjust.
1874 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1876 2000-09-18 Akim Demaille <akim@epita.fr>
1878 Add support for an Autotest test suite for Bison.
1880 * m4/m4.m4, m4/atconfig.m4: New files.
1881 * m4/Makefile.am (EXTRA_DIST): Adjust.
1882 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1884 * src/getargs.c: Display a more standard --version message.
1885 * src/reader.c (reader): Formatting changes.
1886 No longer depend upon VERSION_STRING.
1887 * configure.in: No longer use `dnl'.
1888 Set up the test suite and the new directory `tests/.
1889 (VERSION_STRING): Remove.
1891 2000-04-14 Akim Demaille <akim@epita.fr>
1893 * src/reader.c (copy_comment2): New function, same as former
1894 `copy_comment', but outputs into two FILE *.
1895 (copy_comment): Use it.
1896 (parse_union_decl): Use it.
1897 (get_type, parse_start_decl): Use the same `invalid' message.
1898 (parse_start_decl, parse_union_decl): Use the same `multiple'
1900 (parse_union_decl, copy_guard, copy_action): Use the same
1901 `unmatched' message.
1902 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1904 2000-03-31 Akim Demaille <akim@epita.fr>
1906 * src/files.c (tryopen, tryclose): Move to the top.
1909 2000-03-31 Akim Demaille <akim@epita.fr>
1911 * src/main.c (main): Don't call `done', exit does it.
1913 2000-03-31 Akim Demaille <akim@epita.fr>
1915 * allocate.c: s/return (foo)/return foo/.
1918 * output.c: Likewise.
1919 * reader.c: Likewise.
1920 * symtab.c: Likewise.
1921 * vmsgetargs.c: Likewise.
1923 2000-03-31 Akim Demaille <akim@epita.fr>
1925 Clean up the error reporting functions.
1927 * src/report.c: New file.
1928 * src/report.h: Likewise.
1929 * src/Makefile.am: Adjust.
1930 * m4/error.m4: New file.
1931 * m4/Makefile.am: Adjust.
1932 * configure.in (jm_PREREQ_ERROR): Call it.
1933 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1935 (fatal, fatals): Remove. All callers use complain.c::fatal.
1936 (warn, warni, warns, warnss, warnss): Remove. All callers use
1937 complain.c::complain.
1938 (toomany): Remove, use fatal instead.
1939 * src/files.c (done): No argument, use complain_message_count.
1940 * src/main.c (main): Register `done' to `atexit'.
1942 * src/getargs.c (usage): More `fputs', less `fprintf'.
1944 2000-03-28 Akim Demaille <akim@epita.fr>
1946 * lib/: New directory.
1947 * Makefile.am (SUBDIRS): Adjust.
1948 * configure.in: Adjust.
1949 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1951 * src/alloca.c: Moved to lib/.
1952 * src/getopt.c: Likewise.
1953 * src/getopt1.c: Likewise.
1954 * src/getopt.h: Likewise.
1955 * src/ansi2knr.c: Likewise.
1956 * src/ansi2knr.1: Likewise.
1957 * src/Makefile.am: Adjust.
1958 * lib/Makefile.am: New file.
1960 2000-03-28 Akim Demaille <akim@epita.fr>
1962 * src/getargs.c (usage): Refresh the help message.
1964 2000-03-17 Akim Demaille <akim@epita.fr>
1966 * src/getopt1.c: Updated from textutils 2.0e
1967 * src/getopt.c: Likewise.
1968 * src/getopt.h: Likewise.
1970 2000-03-17 Akim Demaille <akim@epita.fr>
1972 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1973 the file name, not the whole `#line LINE FILE'.
1975 2000-03-17 Akim Demaille <akim@epita.fr>
1977 On syntax errors, report the token on which we choked.
1979 * src/bison.s1 (yyparse): In the label yyerrlab, when
1980 YYERROR_VERBOSE, add yychar in msg.
1982 2000-03-17 Akim Demaille <akim@epita.fr>
1984 * src/reader.c (copy_at): New function.
1985 (copy_guard): Use it.
1986 (copy_action): Use it.
1988 2000-03-17 Akim Demaille <akim@epita.fr>
1990 Be kind to translators, save some useless translations.
1992 * src/main.c (banner): New function.
1993 (fatal_banner): Use it.
1994 (warn_banner): Use it.
1996 2000-03-17 Akim Demaille <akim@epita.fr>
1998 * src/reader.c (copy_definition): Use copy_string and
1999 copy_comment. Removed now unused `match', `ended',
2001 (copy_comment, copy_string): Moved, to be visible from
2004 2000-03-17 Akim Demaille <akim@epita.fr>
2006 * src/reader.c (copy_string): Declare `static inline'. No
2007 problems with inline, since it is checked by configure.
2008 (copy_comment): Likewise.
2010 2000-03-17 Akim Demaille <akim@epita.fr>
2012 * src/reader.c (packsymbols): Formatting changes.
2014 2000-03-17 Akim Demaille <akim@epita.fr>
2016 * src/reader.c (copy_comment): New function, factored out from:
2017 (copy_action): Use it. Removed now unused `match', `ended',
2019 (copy_guard): Likewise.
2021 2000-03-17 Akim Demaille <akim@epita.fr>
2023 * src/reader.c (copy_string): New function, factored out from:
2024 (copy_action): Use it.
2025 (copy_guard): Likewise.
2027 2000-03-17 Akim Demaille <akim@epita.fr>
2029 Change the handling of @s so that they behave exactly like $s.
2030 There is now a pseudo variable @$ (readble and writable), location
2031 of the lhs of the rule (by default ranging from the location of
2032 the first symbol of the rhs, to the location of the last symbol,
2033 or, if the rhs is empty, YYLLOC).
2035 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2037 (yyparse): When providing a default semantic action, provide a
2038 default location action.
2039 (after the $): No longer change `*YYLSP', just stack YYLOC the
2040 same way you stack YYVAL.
2041 * src/reader.c (read_declarations): Use warns.
2042 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2043 (copy_action, case '@'): Likewise.
2044 Use a standard error message, to save useless work from
2047 2000-03-17 Akim Demaille <akim@epita.fr>
2049 * src/bison.s1: Formatting and cosmetics changes.
2050 * src/reader.c: Likewise.
2051 Update the Copyright notice.
2053 2000-03-17 Akim Demaille <akim@epita.fr>
2055 * src/bison.s1 (#line): All set to `#line' only, since the
2056 Makefile now handles them.
2058 2000-03-16 Akim Demaille <akim@epita.fr>
2060 * src/output.c (output_rule_data): Output the documentation of
2062 (Copyright notice): Update.
2065 2000-03-16 Akim Demaille <akim@epita.fr>
2067 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2068 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2069 One `#if YYDEBUG' remains, since it uses variables which are
2070 defined only if `YYDEBUG != 0'.
2072 2000-03-16 Akim Demaille <akim@epita.fr>
2074 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2075 and related variables so that the similarities are highlighted.
2077 2000-03-16 Akim Demaille <akim@epita.fr>
2079 * src/bison.s1: Properly indent CPP directives.
2081 2000-03-16 Akim Demaille <akim@epita.fr>
2083 * src/bison.s1: Properly indent the `alloca' CPP section.
2085 2000-03-16 Akim Demaille <akim@epita.fr>
2087 Do not hard code values of directories in `configure.in'.
2088 Update the `configure' tool chain.
2090 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2092 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2093 (AC_OUTPUT): Add m4/Makefile.
2094 Bump to bison 1.28a, 1.29 has never been released.
2095 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2096 handled via src/Makefile.am.
2097 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2098 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2100 * Makefile.am (SUBDIRS): Add m4.
2101 (ACLOCAL_AM_FLAGS): New variable.
2102 (AUTOMAKE_OPTIONS): Add check-news.
2103 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2104 the proper line number and file name.
2105 (DEFS): Propagate the location of bison library files and of the
2107 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2109 * acinclude.m4: Remove, replaced by the directory m4.
2110 * m4/Makefile.am (EXTRA_DIST): New variable.
2111 * m4/gettext.m4: New file, from the fileutils.
2112 * m4/lcmessage.m4: Likewise
2113 * m4/progtest.m4: Likewise.
2114 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2116 2000-03-10 Akim Demaille <akim@epita.fr>
2119 Formatting changes of various comments.
2120 Respect the GNU coding standards at various places.
2121 Don't use `_()' when no translation is needed.
2123 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2126 OS/2 honors TMPDIR environment variable.
2128 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2130 * doc/bison.texinfo: Tweaked spelling and grammar.
2132 Removed reference to price of printed copy.
2133 Mention BISON_SIMPLE and BISON_HAIRY.
2135 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2137 * configure.in, NEWS:
2138 Bison 1.29 released.
2140 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2142 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2143 Added reference card.
2145 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2147 * po/ru.po: Added Russian translation.
2149 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2151 * configure.in: Added Russian translation.
2153 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2155 * configure.in, NEWS, README:
2156 Released version 1.28.
2158 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2161 Squashed redefinition warning on some systems.
2163 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2164 Have configure build version string instead of relying on ANSI string
2167 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2169 * po/POTFILES.in: Got rid of version.c.
2171 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2173 * acconfig.h, configure.in:
2174 Have configure build version string instead of relying on ANSI string
2177 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2180 Dropped mention of `+' for long-named options.
2182 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2184 * src/files.c: Added <unistd.h> for unlink().
2186 * src/Makefile.am, src/system.h:
2189 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2191 * README: Added a FAQ list.
2193 * configure.in, acconfig.h:
2196 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2198 * doc/FAQ, doc/Makefile.am:
2201 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2203 * src/alloc.h, src/symtab.h, src/version.c:
2204 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2206 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2208 * src/.cvsignore, src/Makefile.am:
2209 Reorganized: sources in `src', documentation in `doc'.
2211 * src/lex.c (literalchar):
2212 fixed the code for escaping double quotes (thanks
2215 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2217 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2218 Adjusted paths to reflect directory reorganization.
2220 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2222 * doc/.cvsignore, doc/Makefile.am:
2223 Reorganized: sources in `src', documentation in `doc'.
2225 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2228 Updated AC_INIT file to reflect directory reorganization.
2230 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2231 Reorganized: sources in `src', documentation in `doc'.
2233 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2236 Don't declare calloc() and realloc() if not necessary.
2238 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2240 * configure.in, acconfig.h, acinclude.m4:
2241 Don't declare calloc() and realloc() if not necessary.
2243 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2245 * po/.cvsignore: Added i18n support.
2247 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2249 * acconfig.h, configure.in, Makefile.am:
2252 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2254 * src/bison.s1: Fixed #line numbers.
2256 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2258 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2259 Added PO files from Translation Project.
2261 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2264 Added support for non-ANSI compilers (ansi2knr).
2266 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2268 * configure.in: Bumped version number to 1.27.
2271 Added `bison.simple' to list of files removed by `make distclean'.
2273 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2275 * src/files.c, src/files.h:
2276 Defined locations of parser files in config.h instead of Makefile.
2278 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2280 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2281 Defined locations of parser files in config.h instead of Makefile.
2283 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2286 Removed inappropriate use of $< macro.
2288 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2290 * po/Makefile.in.in, po/POTFILES.in:
2291 Add `po' directory skeleton.
2293 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2295 * README: Document help-bison list.
2297 * configure.in: Add check for mkstemp().
2299 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2301 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2302 Hush a few compiler warnings.
2305 Add tryclose(), which verifies that fclose was successful.
2306 Hush a couple of compiler warnings.
2308 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2310 * Makefile.am, OChangeLog:
2311 ChangeLog is now automatically generated. Include the old version as
2314 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2316 * 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:
2319 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2321 * doc/bison.texinfo: Fix formatting glitch.
2323 * doc/bison.texinfo: Update FSF address.
2325 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2327 * acconfig.h: Update FSF address.
2329 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2332 Don't define PACKAGE here, since config.h defines it.
2334 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2336 * src/reader.c: Update copyright date.
2339 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2340 favor of output directly to stderr (avoids buffer overruns).
2342 * src/reader.c: Some checks for premature EOF.
2344 * 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:
2345 Use prototypes if the compiler understands them.
2347 * src/files.c: Honor TMPDIR on Unix hosts.
2348 Use prototypes if the compiler understands them.
2351 Fix a couple of buffer overrun bugs.
2352 Use prototypes if the compiler understands them.
2354 * src/system.h: Include unistd.h and ctype.h.
2355 Use #ifdef instead of #if for NLS symbols.
2357 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2359 * doc/bison.texinfo:
2360 Delete comment "consider using @set for edition number, etc..." since
2361 we now are doing so.
2363 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2366 Use prototypes if the compiler understands them.
2368 * NEWS: Document 1.26 highlights.
2370 * Makefile.am: Require Automake 1.3 or later.
2373 Use prototypes if the compiler understands them.
2375 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2378 Use VERSION symbol from automake for version number.
2380 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2382 * acconfig.h, configure.in, version.cin:
2383 Use VERSION symbol from automake for version number.
2385 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2388 Distribute original version of simple parser (bison.s1), not built
2389 version (bison.simple).
2391 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2393 * doc/bison.texinfo: Add info dir entry.
2395 * doc/bison.texinfo:
2396 Let automake put version number into documentation.
2398 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2400 * src/bison.cld, src/build.com, src/vmshlp.mar:
2401 Add non-RCS files from /gd/gnu/bison.
2403 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2406 Document the BISON_HAIRY and BISON_SIMPLE variables.
2408 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2410 * src/version.c: Build version.c automatically.
2413 Fix token numbering (used to start at 258, not 257).
2415 * src/system.h: Include config.h.
2417 * src/getargs.c: Update bug report address.
2419 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2420 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2422 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2425 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2427 * configure.in, version.cin:
2428 Build version.c automatically.
2430 * AUTHORS: Add AUTHORS file.
2432 * README: Update bug report address.
2435 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2437 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2440 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2442 * doc/bison.texinfo: Clean up some formatting.
2444 1998-05-05 Richard Stallman <rms@gnu.org>
2446 * doc/bison.texinfo:
2447 Explain better why to make a pure parser.
2449 1998-01-05 Richard Stallman <rms@gnu.org>
2451 * src/files.c (openfiles):
2452 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2453 find a temporary directory, if possible. Do not unlink files while
2456 1997-08-25 Richard Stallman <rms@gnu.org>
2458 * src/reader.c (stack_offset;):
2459 Change some warni to warns.
2461 * src/lex.c (literalchar): Use warns, not warni.
2463 1997-06-28 Richard Stallman <rms@gnu.org>
2465 * src/bison.s1: Add a Bison version comment.
2467 * src/main.c (fatal, warn, berror):
2470 1997-06-28 Richard Stallman <rms@gnu.org>
2472 * Makefile.in (bison_version): New variable.
2473 (dist): Use that variable.
2474 (bison.s1): Substitute the Bison version into bison.simple.
2476 * bison.simple: Add a Bison version comment.
2478 1997-06-18 Richard Stallman <rms@gnu.org>
2480 * src/main.c (fatal, warn, berror):
2481 Make error messages standard.
2482 (toomany): Improve error message text.
2484 * 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:
2485 new.h renamed to alloc.h.
2487 1997-06-18 Richard Stallman <rms@gnu.org>
2489 * Makefile.in: new.h renamed to alloc.h.
2491 1997-05-24 Richard Stallman <rms@gnu.org>
2493 * src/lex.c (literalchar):
2494 Fix the code for escaping \, " and '.
2496 (lex): Avoid trouble when there are many chars
2497 to discard in a char literal with just several chars in it.
2499 1997-05-17 Richard Stallman <rms@gnu.org>
2502 Use malloc, if using alloca is troublesome.
2503 (YYSTACK_USE_ALLOCA): New flag macro.
2504 Define it for some systems and compilers.
2505 (YYSTACK_ALLOC): New macro.
2506 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2507 If it was malloc'd, free it.
2509 1997-05-17 Richard Stallman <rms@gnu.org>
2512 Use malloc, if using alloca is troublesome.
2513 (YYSTACK_USE_ALLOCA): New flag macro.
2514 Define it for some systems and compilers.
2515 (YYSTACK_ALLOC): New macro.
2516 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2517 If it was malloc'd, free it.
2519 1997-04-23 Richard Stallman <rms@gnu.org>
2522 (alloca) [__hpux]: Always define as __builtin_alloca.
2524 1997-04-23 Richard Stallman <rms@gnu.org>
2527 (alloca) [__hpux]: Always define as __builtin_alloca.
2529 1997-04-22 Richard Stallman <rms@gnu.org>
2532 [__hpux]: Include alloca.h (right for HPUX 10)
2533 instead of declaring alloca (right for HPUX 9).
2535 * src/bison.s1 (__yy_memcpy):
2536 Declare arg `count' as unsigned int.
2537 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2539 1997-04-22 Richard Stallman <rms@gnu.org>
2542 [__hpux]: Include alloca.h (right for HPUX 10)
2543 instead of declaring alloca (right for HPUX 9).
2545 * bison.simple (__yy_memcpy):
2546 Declare arg `count' as unsigned int.
2547 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2549 1997-01-03 Richard Stallman <rms@gnu.org>
2551 * src/allocate.c: [__STDC__ or _MSC_VER]:
2552 Declare calloc and realloc to return void *.
2554 1997-01-02 Richard Stallman <rms@gnu.org>
2557 [_MSC_VER]: Include stdlib.h and process.h.
2558 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2560 * src/main.c (main): Return FAILURE as a value.
2561 (printable_version): Declare arg as int, not char.
2563 1997-01-02 Richard Stallman <rms@gnu.org>
2565 * Makefile.in (dist):
2566 Explicitly check for symlinks, and copy them.
2568 1996-12-19 Richard Stallman <rms@gnu.org>
2571 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2573 1996-12-18 Paul Eggert <eggert@gnu.org>
2575 * src/bison.s1 (yyparse):
2576 If __GNUC__ and YYPARSE_PARAM are both defined,
2577 declare yyparse to have a void * argument.
2579 1996-12-18 Paul Eggert <eggert@gnu.org>
2581 * bison.simple (yyparse):
2582 If __GNUC__ and YYPARSE_PARAM are both defined,
2583 declare yyparse to have a void * argument.
2585 1996-12-17 Richard Stallman <rms@gnu.org>
2587 * src/reduce.c (nbits): Add some casts.
2589 1996-08-12 Richard Stallman <rms@gnu.org>
2591 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2593 1996-08-12 Richard Stallman <rms@gnu.org>
2595 * bison.simple: Test _MSDOS as well as _MSDOS_.
2597 1996-07-31 Richard Stallman <rms@gnu.org>
2600 [__sun && __i386]: Include alloca.h.
2602 1996-07-31 Richard Stallman <rms@gnu.org>
2605 [__sun && __i386]: Include alloca.h.
2607 1996-07-30 Richard Stallman <rms@gnu.org>
2609 * src/bison.s1: Comment change.
2611 * src/bison.s1: Test _MSDOS_, not MSDOS.
2613 1996-07-30 Richard Stallman <rms@gnu.org>
2615 * bison.simple: Comment change.
2617 * bison.simple: Test _MSDOS_, not MSDOS.
2619 1996-06-01 Richard Stallman <rms@gnu.org>
2621 * 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:
2622 Insert `_' macro around many string constants.
2625 Insert `_' macro around many string constants.
2627 (main): Call setlocale, bindtextdomain and textdomain.
2629 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2630 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2631 [ENABLE_NLS]: Include libintl.h.
2632 [ENABLE_NLS] (gettext): Define.
2633 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2634 (N_, PACKAGE, LOCALEDIR): New macros.
2636 1996-06-01 Richard Stallman <rms@gnu.org>
2638 * POTFILES.in: New file.
2640 * Makefile.in (allocate.o):
2641 Define target explicitly.
2643 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2644 (LDFLAGS): Set to @LDFLAGS@.
2645 (configure): Run autoconf only if preceding `cd' succeeds.
2646 (bison.s1): Redirect output to temporary file then move the
2647 temporary to the target, rather than redirecting directly to bison.s1.
2648 (clean): Remove config.status and config.log.
2649 (distclean): Don't remove config.status here.
2651 1996-05-12 Richard Stallman <rms@gnu.org>
2654 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2656 1996-05-12 Richard Stallman <rms@gnu.org>
2659 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2661 1996-05-11 Richard Stallman <rms@gnu.org>
2663 * src/bison.s1 (__yy_memcpy):
2664 Really reorder the args, as was supposedly done on Feb 14 1995.
2665 (yyparse): Calls changed accordingly.
2667 1996-05-11 Richard Stallman <rms@gnu.org>
2669 * Makefile.in (dist): Don't use $(srcdir).
2671 * bison.simple (__yy_memcpy):
2672 Really reorder the args, as was supposedly done on Feb 14 1995.
2673 (yyparse): Calls changed accordingly.
2675 1996-01-27 Richard Stallman <rms@gnu.org>
2677 * src/output.c (output_rule_data):
2678 Test YYERROR_VERBOSE in the conditional
2679 around the definition of ttyname.
2681 1995-12-29 Richard Stallman <rms@gnu.org>
2684 Fix line numbers in #line commands.
2686 1995-12-29 Richard Stallman <rms@gnu.org>
2689 Fix line numbers in #line commands.
2691 1995-12-27 Richard Stallman <rms@gnu.org>
2693 * src/bison.s1 (YYPARSE_PARAM_DECL):
2694 In C++, make it always null.
2695 (YYPARSE_PARAM_ARG): New macro.
2696 (yyparse): Use YYPARSE_PARAM_ARG.
2698 1995-12-27 Richard Stallman <rms@gnu.org>
2700 * bison.simple (YYPARSE_PARAM_DECL):
2701 In C++, make it always null.
2702 (YYPARSE_PARAM_ARG): New macro.
2703 (yyparse): Use YYPARSE_PARAM_ARG.
2705 1995-11-29 Richard Stallman <rms@gnu.org>
2707 * doc/bison.texinfo:
2708 Describe literal string tokens, %raw, %no_lines, %token_table.
2710 1995-11-29 Daniel Hagerty <hag@gnu.org>
2712 * doc/bison.texinfo: Fixed update date
2714 1995-10-16 Richard Stallman <rms@gnu.org>
2716 * src/version.c: Version 1.25.
2718 1995-10-16 Richard Stallman <rms@gnu.org>
2720 * NEWS: *** empty log message ***
2722 1995-10-16 Richard Stallman <rms@gnu.org>
2724 * doc/bison.1, doc/bison.rnh:
2727 1995-10-15 Richard Stallman <rms@gnu.org>
2729 * src/vmsgetargs.c, src/getargs.c:
2730 Added -n, -k, and -raw switches.
2731 (noparserflag, toknumflag, rawtoknumflag): New variables.
2733 * src/symtab.h (SALIAS):
2734 New #define for adding aliases to %token.
2735 (struct bucket): Added `alias' field.
2737 * src/reduce.c (reduce_grammar):
2738 Revise error message.
2739 (print_notices): Remove final `.' from error message.
2741 * src/reader.c (reader_output_yylsp):
2743 (readgram): Use `#if 0' around code that accepted %command
2744 inside grammar rules: The documentation doesn't allow it,
2745 and it will fail since the %command processors scan for the next %.
2746 (parse_token_decl): Extended the %token
2747 declaration to allow a multi-character symbol as an alias.
2748 (parse_thong_decl): New function.
2749 (read_declarations): Added %thong declarations.
2750 (read_declarations): Handle NOOP to deal with allowing
2751 % declarations as another means to specify the flags.
2752 (readgram): Allow %prec prior to semantics embedded in a rule.
2753 (skip_to_char, read_declarations, copy_definition)
2754 (parse_token_decl, parse_start_decl, parse_type_decl)
2755 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2756 (get_type_name, copy_guard, copy_action, readgram)
2757 (get_type, packsymbols): Revised most error messages.
2758 Changed `fatal' to `warnxxx' to avoid aborting for error.
2759 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2760 (read_declarations): Improve the error message for
2761 an invalid character. Do not abort.
2762 (read_declarations, copy_guard, copy_action): Use
2763 printable_version to avoid unprintable characters in printed output.
2764 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2765 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2766 Allow the type of a non-terminal can be given
2767 more than once, as long as all specifications give the same type.
2770 (output_headers, output_trailers, output, output_gram)
2771 (output_rule_data): Implement noparserflag variable.
2772 Implement toknumflag variable.
2773 (output): Call reader_output_yylsp to output LTYPESTR.
2775 * src/main.c (main):
2776 If reader sees an error, don't process the grammar.
2777 (fatals): Updated to not use VARARGS1.
2778 (printable_version, int_to_string, warn, warni, warns, warnss)
2779 (warnsss): New error reporting functions. Avoid abort for error.
2782 Added THONG and NOOP for alias processing.
2783 Added SETOPT for the new code that allows setting options with %flags.
2786 Include getopt.h. Add some extern decls.
2787 (safegetc): New function to deal with EOF gracefully.
2788 (literalchar); new function to deal with reading \ escapes.
2789 (lex): Use literalchar.
2790 (lex): Implemented "..." tokens.
2791 (literalchar, lex, parse_percent_token): Made tokenbuffer
2792 always contain the token. This includes growing the token
2793 buffer while reading an integer.
2794 (parse_percent_token): Replaced if-else statement with percent_table.
2795 (parse_percent_token): Added % declarations as another
2796 way to specify the flags -n, -l, and -r. Also added hooks for
2797 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2798 major changes to files.c.
2799 (lex) Retain in the incoming stream a character following
2801 (skip_white_space, lex): Revised most error messages
2802 and changed fatal to warn to avoid aborting.
2803 (percent_table): Added %thong declarations.
2805 * src/gram.h: Comment changes.
2807 * src/files.c (openfiles, open_extra_files, done):
2809 and actfile file. Handle noparserflag. Both for -n switch.
2811 * src/conflicts.c (resolve_sr_conflict):
2812 Remove use of alloca.
2814 1995-06-01 Jim Meyering <meyering@gnu.org>
2816 * doc/bison.texinfo: *** empty log message ***
2818 1995-05-06 Richard Stallman <rms@gnu.org>
2820 * src/bison.s1: Comment change.
2822 1995-05-06 Richard Stallman <rms@gnu.org>
2824 * bison.simple: Comment change.
2826 1995-05-03 Richard Stallman <rms@gnu.org>
2828 * src/version.c: Version now 1.24.
2830 * src/bison.s1: Change distribution terms.
2832 * src/version.c: Version now 1.23.
2834 1995-05-03 Richard Stallman <rms@gnu.org>
2836 * doc/bison.texinfo:
2837 Rewrite "Conditions for Using Bison".
2838 Update version to 1.24.
2840 1995-05-03 Richard Stallman <rms@gnu.org>
2842 * bison.simple: Change distribution terms.
2844 1995-02-23 Richard Stallman <rms@gnu.org>
2846 * src/files.c: Test __VMS_POSIX as well as VMS.
2848 1995-02-14 Jim Meyering <meyering@gnu.org>
2850 * src/bison.s1 (__yy_memcpy):
2851 Renamed from __yy_bcopy to avoid
2852 confusion. Reverse FROM and TO arguments to be consistent with
2855 1995-02-14 Jim Meyering <meyering@gnu.org>
2857 * bison.simple (__yy_memcpy):
2858 Renamed from __yy_bcopy to avoid
2859 confusion. Reverse FROM and TO arguments to be consistent with
2862 1994-11-10 David J. MacKenzie <djm@gnu.org>
2868 * Makefile.in (DISTFILES): Include NEWS.
2870 * Makefile.in (DISTFILES):
2871 Include install-sh, not install.sh.
2873 * configure.in: Update to Autoconf v2 macro names.
2875 1994-10-05 David J. MacKenzie <djm@gnu.org>
2877 * Makefile.in: fix typo
2879 * Makefile.in (prefix, exec_prefix):
2880 Let configure set them.
2882 1994-09-28 David J. MacKenzie <djm@gnu.org>
2884 * Makefile.in: Set datadir to $(prefix)/share.
2886 1994-09-15 Richard Stallman <rms@gnu.org>
2889 Update copyright notice and GPL version.
2891 1994-09-15 Richard Stallman <rms@gnu.org>
2894 Update copyright notice and GPL version.
2896 1994-07-12 Richard Stallman <rms@gnu.org>
2898 * src/reduce.c, src/reader.c:
2901 1994-05-05 David J. MacKenzie <djm@gnu.org>
2903 * Makefile.in: entered into RCS
2905 1994-03-26 Richard Stallman <rms@gnu.org>
2907 * src/bison.s1: entered into RCS
2909 1994-03-26 Richard Stallman <rms@gnu.org>
2911 * bison.simple: entered into RCS
2913 1994-03-25 Richard Stallman <rms@gnu.org>
2915 * src/main.c: entered into RCS
2917 1994-03-24 Richard Stallman <rms@gnu.org>
2919 * src/conflicts.c: entered into RCS
2921 1994-01-02 Richard Stallman <rms@gnu.org>
2923 * Makefile.in: *** empty log message ***
2925 1993-11-21 Richard Stallman <rms@gnu.org>
2927 * src/bison.s1: *** empty log message ***
2929 1993-11-21 Richard Stallman <rms@gnu.org>
2931 * doc/bison.texinfo: entered into RCS
2933 * doc/bison.texinfo: *** empty log message ***
2935 1993-11-21 Richard Stallman <rms@gnu.org>
2937 * bison.simple: *** empty log message ***
2939 1993-10-25 David J. MacKenzie <djm@gnu.org>
2941 * doc/bison.texinfo: *** empty log message ***
2943 1993-10-19 Richard Stallman <rms@gnu.org>
2945 * src/bison.s1: *** empty log message ***
2947 1993-10-19 Richard Stallman <rms@gnu.org>
2949 * bison.simple: *** empty log message ***
2951 1993-10-14 Richard Stallman <rms@gnu.org>
2953 * src/bison.s1: *** empty log message ***
2955 1993-10-14 Richard Stallman <rms@gnu.org>
2957 * bison.simple: *** empty log message ***
2959 1993-09-14 David J. MacKenzie <djm@gnu.org>
2961 * doc/bison.texinfo: *** empty log message ***
2963 1993-09-13 Noah Friedman <friedman@gnu.org>
2965 * Makefile.in: *** empty log message ***
2967 1993-09-10 Richard Stallman <rms@gnu.org>
2969 * src/conflicts.c: *** empty log message ***
2971 * src/system.h: entered into RCS
2973 1993-09-10 Richard Stallman <rms@gnu.org>
2975 * doc/bison.1: entered into RCS
2977 1993-09-06 Noah Friedman <friedman@gnu.org>
2979 * src/version.c: entered into RCS
2981 1993-09-06 Noah Friedman <friedman@gnu.org>
2983 * Makefile.in: *** empty log message ***
2985 1993-07-30 David J. MacKenzie <djm@gnu.org>
2987 * Makefile.in: *** empty log message ***
2989 1993-07-24 Richard Stallman <rms@gnu.org>
2991 * src/bison.s1: *** empty log message ***
2993 1993-07-24 Richard Stallman <rms@gnu.org>
2995 * bison.simple: *** empty log message ***
2997 1993-07-08 David J. MacKenzie <djm@gnu.org>
2999 * Makefile.in: *** empty log message ***
3001 1993-07-04 Richard Stallman <rms@gnu.org>
3003 * src/bison.s1: *** empty log message ***
3005 1993-07-04 Richard Stallman <rms@gnu.org>
3007 * bison.simple: *** empty log message ***
3009 1993-06-26 David J. MacKenzie <djm@gnu.org>
3011 * src/getargs.c: entered into RCS
3013 1993-06-26 David J. MacKenzie <djm@gnu.org>
3015 * doc/bison.texinfo: *** empty log message ***
3017 * doc/bison.1: New file.
3019 1993-06-25 Richard Stallman <rms@gnu.org>
3021 * src/getargs.c: New file.
3023 1993-06-16 Richard Stallman <rms@gnu.org>
3025 * src/bison.s1: *** empty log message ***
3027 1993-06-16 Richard Stallman <rms@gnu.org>
3029 * bison.simple: *** empty log message ***
3031 1993-06-03 Richard Stallman <rms@gnu.org>
3033 * src/bison.s1: New file.
3035 1993-06-03 Richard Stallman <rms@gnu.org>
3037 * doc/bison.texinfo: *** empty log message ***
3039 1993-06-03 Richard Stallman <rms@gnu.org>
3041 * bison.simple: New file.
3043 1993-05-19 Richard Stallman <rms@gnu.org>
3045 * doc/bison.texinfo: New file.
3047 1993-05-07 Noah Friedman <friedman@gnu.org>
3049 * Makefile.in: *** empty log message ***
3051 1993-04-28 Noah Friedman <friedman@gnu.org>
3053 * src/reader.c: *** empty log message ***
3055 1993-04-23 Noah Friedman <friedman@gnu.org>
3057 * src/alloc.h: entered into RCS
3059 1993-04-20 David J. MacKenzie <djm@gnu.org>
3061 * src/version.c: *** empty log message ***
3063 * src/files.c, src/allocate.c:
3066 * src/reader.c: *** empty log message ***
3068 * src/lex.c: entered into RCS
3070 * src/conflicts.c: New file.
3072 * src/symtab.c: entered into RCS
3074 * src/alloc.h: New file.
3076 * src/LR0.c: entered into RCS
3078 1993-04-18 Noah Friedman <friedman@gnu.org>
3080 * src/reader.c: New file.
3082 * src/version.c: *** empty log message ***
3084 1993-04-18 Noah Friedman <friedman@gnu.org>
3086 * Makefile.in: *** empty log message ***
3088 1993-04-17 Noah Friedman <friedman@gnu.org>
3090 * Makefile.in: *** empty log message ***
3092 1993-04-15 Richard Stallman <rms@gnu.org>
3094 * src/main.c, src/files.c:
3097 1993-04-15 Noah Friedman <friedman@gnu.org>
3099 * configure.in: entered into RCS
3101 * configure.in: *** empty log message ***
3103 * configure.in: New file.
3105 1993-04-14 Richard Stallman <rms@gnu.org>
3107 * Makefile.in: New file.
3109 1993-04-13 Richard Stallman <rms@gnu.org>
3111 * src/version.c: New file.
3113 1993-03-25 Richard Stallman <rms@gnu.org>
3115 * src/output.c: entered into RCS
3117 1992-09-25 Richard Stallman <rms@gnu.org>
3119 * configure.bat: entered into RCS
3121 1992-06-22 Richard Stallman <rms@gnu.org>
3123 * src/vmsgetargs.c: entered into RCS
3125 1992-06-22 Richard Stallman <rms@gnu.org>
3127 * doc/bison.rnh: entered into RCS
3129 1992-04-20 David J. MacKenzie <djm@gnu.org>
3131 * README: entered into RCS
3133 1992-01-22 Richard Stallman <rms@gnu.org>
3135 * src/machine.h: entered into RCS
3137 1991-12-21 Richard Stallman <rms@gnu.org>
3139 * src/lalr.c, src/closure.c:
3142 1991-12-20 Richard Stallman <rms@gnu.org>
3144 * src/state.h: entered into RCS
3146 1991-12-18 Richard Stallman <rms@gnu.org>
3148 * src/print.c, src/nullable.c, src/derives.c:
3151 1991-11-03 David J. MacKenzie <djm@gnu.org>
3153 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3156 1988-09-09 Richard Stallman <rms@gnu.org>
3158 * src/bison.hairy: entered into RCS
3160 1987-12-16 Richard Stallman <rms@gnu.org>
3162 * REFERENCES: entered into RCS