1 2001-09-22 Akim Demaille <akim@epita.fr>
3 * configure.in: Invoke AM_LIB_DMALLOC.
4 * src/system.h: Use dmalloc.
5 * src/LR0.c: Be sure to have pointers initialized to NULL.
6 (allocate_itemsets): Allocate kernel_items only if needed.
8 2001-09-22 Akim Demaille <akim@epita.fr>
10 * configure.in: Bump to 1.29b.
11 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
12 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
13 need xmalloc.c in calc.y.
16 2001-09-21 Akim Demaille <akim@epita.fr>
19 * Makefile.maint, config/config.guess, config/config.sub,
20 * config/missing: Update from masters.
21 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
23 * configure.in (ALL_LINGUAS): Add `tr'.
25 2001-09-21 Akim Demaille <akim@epita.fr>
27 * tests/Makefile.am (package.m4): Move to...
28 ($(srcdir)/$(TESTSUITE)): here.
30 2001-09-20 Akim Demaille <akim@epita.fr>
32 * src/complain.c: No longer try to be standalone: use system.h.
33 Don't assume __STDC__ is defined to 1. Just test if it is defined.
34 * src/complain.h: Likewise.
35 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
36 Remove the unused variable `n'.
37 From Albert Chin-A-Young.
39 2001-09-18 Marc Autret <autret_m@epita.fr>
41 * doc/bison.1: Update.
42 * doc/bison.texinfo (Bison Options): Update --defines and --graph
44 (Option Cross Key): Update.
47 2001-09-18 Marc Autret <autret_m@epita.fr>
49 * tests/regression.at: New test (comment in %union).
51 2001-09-18 Marc Autret <autret_m@epita.fr>
53 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
55 Reported by Keith Browne.
57 2001-09-18 Marc Autret <autret_m@epita.fr>
59 * tests/output.at: Add tests for --defines and --graph.
61 2001-09-18 Marc Autret <autret_m@epita.fr>
63 * tests/output.at: Removes tests of %{header,src}_extension features.
65 2001-09-18 Akim Demaille <akim@epita.fr>
67 * tests/Makefile.am (package.m4): New.
68 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
69 (_AT_CHECK_CALC_ERROR): Likewise.
70 Factor the `, ' part of verbose error messages.
72 2001-09-18 Marc Autret <autret_m@epita.fr>
74 * src/getargs.c (longopts): Declare --defines and --graph as options
75 with optional arguments.
76 * src/files.h: Add extern declarations.
77 * src/files.c (spec_graph_file, spec_defines_file): New.
78 (output_files): Update.
79 Remove CPP-outed code.
81 2001-09-18 Marc Autret <autret_m@epita.fr>
83 Turn off %{source,header}_extension feature.
85 * src/files.c (compute_exts_from_gf): Update.
86 (compute_exts_from_src): Update.
87 (output_files): CPP-out useless code.
88 * src/files.h: Remove {header,source}_extension extern declarations.
89 * src/reader.c (parse_dquoted_param): CPP-out.
90 (parse_header_extension_decl): Remove.
91 (parse_source_extension_decl): Remove.
92 (read_declarations): Remove cases tok_{hdrext,srcext}.
93 * src/lex.c (percent_table): Remove {header,source}_extension entries.
94 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
96 2001-09-10 Akim Demaille <akim@epita.fr>
98 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
99 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
100 (AT_CHECK_OUTPUT): this.
101 Merely check ls' exit status, its output is useless.
103 2001-09-10 Akim Demaille <akim@epita.fr>
105 * tests/calc.at: Use m4_match.
106 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
108 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
110 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
112 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
114 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
115 * src/lex.h: Adjust prototype.
116 (token_t): Add `tok_undef'.
117 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
118 (parse_percent_token): Now returns token_t.
119 Add default statement in switch.
120 (lex): Separate `c' as an input variable, from the token_t result
122 (unlexed): Is a token_t.
124 2001-09-10 Akim Demaille <akim@epita.fr>
126 * configure.in: Bump to 1.29a.
128 2001-09-07 Akim Demaille <akim@epita.fr>
132 2001-08-30 Akim Demaille <akim@epita.fr>
134 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
135 * m4/atconfig.m4: Remove.
136 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
138 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
139 m4_if, m4_patsubst, and m4_regexp.
140 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
141 `input' file instead of echo.
143 2001-08-29 Akim Demaille <akim@epita.fr>
147 2001-08-29 Akim Demaille <akim@epita.fr>
151 2001-08-29 Paul Eggert <eggert@twinsun.com>
153 * src/bison.simple (yyparse): Don't take the address of an
154 item before the start of an array, as that doesn't conform to
157 2001-08-29 Robert Anisko <anisko_r@epita.fr>
159 * doc/bison.texinfo (Location Tracking Calc): New node.
161 2001-08-29 Paul Eggert <eggert@twinsun.com>
163 * src/output.c (output): Do not define const, as this now
164 causes more problems than it cures.
166 2001-08-29 Akim Demaille <akim@epita.fr>
168 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
170 Be sure to tag the `detailmenu'.
172 2001-08-29 Akim Demaille <akim@epita.fr>
174 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
175 download in a tmp dir.
177 2001-08-28 Marc Autret <autret_m@epita.fr>
179 * config/depcomp: New file.
181 2001-08-28 Marc Autret <autret_m@epita.fr>
183 * doc/bison.1 (mandoc): Adjust.
184 From Juan Manuel Guerrero.
186 2001-08-28 Marc Autret <autret_m@epita.fr>
188 * src/print_graph.c (print_state): Fix.
190 2001-08-27 Marc Autret <autret_m@epita.fr>
192 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
194 Echo modifications to the functions prototypes.
195 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
197 2001-08-27 Marc Autret <autret_m@epita.fr>
199 * src/vcg.c: Include `xalloc.h'.
200 (add_colorentry): New.
201 (add_classname): New.
203 * src/vcg.h: Add new prototypes.
205 2001-08-27 Akim Demaille <akim@epita.fr>
207 * Makefile.maint: Sync. again with CVS Autoconf.
209 2001-08-27 Akim Demaille <akim@epita.fr>
211 * Makefile.maint: Formatting changes.
212 (po-update, cvs-update, update): New targets.
215 2001-08-27 Akim Demaille <akim@epita.fr>
217 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
218 * Makefile.maint: Sync. with CVS Autoconf.
220 2001-08-27 Marc Autret <autret_m@epita.fr>
222 * src/vcg.h (struct infoname_s): New.
223 (struct colorentry_s): New.
224 (graph_s): New fields {vertical,horizontal}_order in structure.
225 Add `infoname' field.
226 Add `colorentry' field;
227 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
228 (G_HORIZONTAL_ORDER): New.
231 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
232 Add output of `infoname'.
233 Add output of `colorentry'.
235 2001-08-27 Marc Autret <autret_m@epita.fr>
237 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
238 This one shadowed a global parameter.
240 2001-08-24 Marc Autret <autret_m@epita.fr>
242 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
243 instead of `unsigned'.
244 (print_state): Do not call obstack_object_size () in obstack_grow ()
245 to avoid macro variables shadowing.
247 2001-08-23 Marc Autret <autret_m@epita.fr>
249 * src/lex.c (percent_table): Typo: s/naem/name/.
251 Normalize new options declarations.
253 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
255 * tests/suite.at: Exercise %header_extension and %source_extension.
257 2001-08-16 Marc Autret <autret_m@epita.fr>
259 * src/reader.c (parse_dquoted_param): New.
260 (parse_header_extension_decl): Use it.
261 (parse_source_extension_decl): Likewise.
263 2001-08-16 Marc Autret <autret_m@epita.fr>
265 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
266 (get_xxxx_str): Use assert () instead of complain ().
267 Remove return invokations in default cases.
268 (get_decision_str): Modify default behaviour. Remove second argument.
269 Echo modifications on calls.
272 2001-08-16 Marc Autret <autret_m@epita.fr>
274 * src/getargs.c (usage): Update with ``-g, --graph''.
276 2001-08-16 Marc Autret <autret_m@epita.fr>
278 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
279 (Option Cross Key): Likewise.
280 * doc/bison.1: Update.
282 2001-08-15 Akim Demaille <akim@epita.fr>
286 2001-08-15 Marc Autret <autret_m@epita.fr>
288 * src/reader.c (readgram): Indent output macro YYSTYPE.
289 (packsymbols): Likewise.
290 (output_token_defines): Likewise.
291 * src/files.c: Standardize.
292 (compute_header_macro): New.
293 (defines_obstack_save): New. Use compute_header_macro.
294 (output_files): Update. Use defines_obstack_save.
296 2001-08-15 Akim Demaille <akim@epita.fr>
298 * doc/bison.texinfo (Table of Symbols): Document
301 2001-08-15 Akim Demaille <akim@epita.fr>
303 * missing: Update from CVS Automake.
304 * config/config.guess, config/config.sub, config/texinfo.tex:
307 2001-08-15 Akim Demaille <akim@epita.fr>
309 * Makefile.maint: Sync with CVS Autoconf.
311 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
313 * doc/bison.texinfo: Include GNU Free Documentation License from
315 * doc/fdl.texi: Add to package.
317 2001-08-14 Marc Autret <autret_m@epita.fr>
319 Turn on %{source,header}_extension features.
321 * src/lex.c (percent_table): Un-CPP out header_extension and
323 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
324 (compute_exts_from_src): Remove conditions. It restores priorities
327 2001-08-14 Marc Autret <autret_m@epita.fr>
329 * src/files.c (compute_base_names): Add extensions computing when
330 `--file-prefix' used.
331 Standardize function calls.
333 2001-08-13 Marc Autret <autret_m@epita.fr>
335 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
336 defining it (defined but null disables alloca).
338 2001-08-13 Marc Autret <autret_m@epita.fr>
340 * src/bison.simple (_yy_memcpy): CPP reformat.
342 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
344 * tests/atconfig.in (CPPFLAGS): Fix.
346 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
348 * doc/bison.texinfo: Include GNU General Public License from
350 * doc/gpl.texi: Add to package.
352 2001-08-10 Marc Autret <autret_m@epita.fr>
354 * src/print_graph.h: Fix.
355 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
357 2001-08-10 Akim Demaille <akim@epita.fr>
359 * src/system.h: Provide default declarations for stpcpy, strndup,
362 2001-08-10 Robert Anisko <anisko_r@epita.fr>
364 * doc/bison.texinfo (Locations): Update @$ stuff.
366 2001-08-09 Robert Anisko <anisko_r@epita.fr>
368 * src/bison.simple (YYLLOC_DEFAULT): Update.
371 2001-08-08 Marc Autret <autret_m@epita.fr>
373 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
374 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
375 Reported by Fabrice Bauzac.
377 2001-08-08 Marc Autret <autret_m@epita.fr>
379 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
380 * src/vcg.c (output_node): Fix.
381 * src/vcg.h: Cleanup.
382 * src/print_graph.c: Add comments.
383 (node_output_size): New global variable. Simplify the formatting of
384 the VCG graph output.
385 (print_actions): Unused code is now used. It notifies the final state
386 and no action states in the VCG graph. It also give the reduce actions.
387 The `shift and goto' edges are red and the `go to state' edges are
389 Get the current node name and node_obstack by argument.
390 (node_obstack): New variable.
391 (print_state): Manage node_obstack.
392 (print_core): Use node_obstack given by argument.
393 A node is not only computed here but in print_actions also.
394 (print_graph): CPP out useless code instead of commenting it.
396 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
398 * tests/atconfig.in (CPPFLAGS): Fix.
400 2001-08-07 Akim Demaille <akim@epita.fr>
402 * src/print_graph.c (quote): New.
403 (print_core): Use it.
405 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
407 * src/vcg.c (complain.h): Include it.
408 Unepitaize `return' invocations.
409 [NDEBUG] (main): Remove.
410 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
411 * src/files.c (open_files): Initialize graph_obstack.
412 * src/print_graph.c (print_actions): CPP out useless code.
413 (print_core): Don't output the last `\n' in labels.
415 * src/files.c (output_files): Output the VCG file.
416 * src/main.c (main): Invoke print_graph ();
418 2001-08-06 Marc Autret <autret_m@epita.fr>
420 Automaton VCG graph output.
421 Using option ``-g'' or long option ``--graph'', you can generate
422 a gram_filename.vcg file containing a VCG description of the LALR (1)
423 automaton of your grammar.
425 * src/main.c: Call to print_graph() function.
426 * src/getargs.h: Update.
427 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
428 (graph_flag): New flag.
430 (getargs): Add case `g'.
431 * src/files.c (graph_obstack): New obstack struct.
432 (open_files): Initialize new obstack.
433 (output_files): Saves graph_obstack if required.
434 * src/files.h (graph_obstack): New extern declaration.
435 * src/Makefile.am: Add new source files.
437 2001-08-06 Marc Autret <autret_m@epita.fr>
439 * src/print_graph.c, src/print_graph.h (graph): New.
440 * src/vcg.h: New file.
441 * src/vcg.c: New file, VCG graph handling.
443 2001-08-06 Marc Autret <autret_m@epita.fr>
445 Add of %source_extension and %header_extension which specify
446 the source or/and the header output file extension.
448 * src/files.c (compute_base_names): Remove initialisation of
449 src_extension and header_extension.
450 (compute_exts_from_gf): Update.
451 (compute_exts_from_src): Update.
452 (output_files): Update.
453 * src/reader.c (parse_header_extension_decl): New.
454 (parse_source_extension_decl): New.
455 (read_declarations): New case statements for the new tokens.
456 * src/lex.c (percent_table): Add entries for %source_extension
457 and %header_extension.
458 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
460 2001-08-06 Marc Autret <autret_m@epita.fr>
462 * configure.in: Bump to 1.28c.
463 * doc/bison.texinfo: Texinfo thingies.
465 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
467 * tests/atconfig.in (CPPFLAGS): Add.
468 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
470 2001-08-03 Akim Demaille <akim@epita.fr>
474 2001-08-03 Akim Demaille <akim@epita.fr>
476 * tests/Makefile.am (check-local): Ship testsuite.
477 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
480 2001-08-03 Akim Demaille <akim@epita.fr>
482 * configure.in: Try using -Wformat when compiling.
484 2001-08-03 Akim Demaille <akim@epita.fr>
486 * configure.in: Bump to 1.28b.
488 2001-08-03 Akim Demaille <akim@epita.fr>
490 * src/complain.c: Adjust strerror_r portability issues.
492 2001-08-03 Akim Demaille <akim@epita.fr>
496 2001-08-03 Akim Demaille <akim@epita.fr>
498 * src/getargs.c, src/getarg.h (skeleton)): Constify.
499 * src/lex.c (literalchar): Avoid name clashes on `buf'.
500 * src/getargs.c: Include complain.h.
501 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
502 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
504 2001-08-03 Akim Demaille <akim@epita.fr>
506 * src/reader.c (readgram): Display hidden chars in error messages.
508 2001-08-03 Akim Demaille <akim@epita.fr>
510 Update to gettext 0.10.39.
512 2001-08-03 Akim Demaille <akim@epita.fr>
516 2001-08-01 Marc Autret <autret_m@epita.fr>
518 * doc/bison.texinfo: Update.
519 * doc/bison.1 (mandoc): Update.
520 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
521 * src/files.c: Support output files extensions computing.
522 (src_extension): New static variable.
523 (header_extension): New static variable.
525 (get_extension_index): New function, gets the index of an extension
526 filename in a string.
527 (compute_exts_from_gf): New function, computes extensions from the
528 grammar file extension.
529 (compute_exts_from_src): New functions, computes extensions from the
530 C source file extension, file given by ``-o'' option.
531 (compute_base_names): Update.
532 (output_files): Update.
534 2001-08-01 Robert Anisko <anisko_r@epita.fr>
536 * doc/bison.texi: Document @$.
537 (Locations): New section.
539 2001-07-18 Akim Demaille <akim@epita.fr>
541 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
542 * config/prev-version.txt, config/move-if-change: New.
543 * Makefile.am: Adjust.
545 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
547 * src/bison.simple (yyparse): Suppress warning `comparaison
548 between signed and unsigned'.
550 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
552 * src/getargs.h (raw_flag): Remove.
553 * src/getargs.c: Die on `-r'/`--raw'.
554 * src/lex.c (parse_percent_token): Die on `%raw'.
555 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
556 * tests/calc.at: Suppress test with option `--raw'.
558 2001-07-14 Akim Demaille <akim@epita.fr>
561 * configure.in: Require Autoconf 2.50.
562 Update to gettext 0.10.38.
564 2001-03-16 Akim Demaille <akim@epita.fr>
566 * doc/bison.texinfo: ANSIfy the examples.
568 2001-03-16 Akim Demaille <akim@epita.fr>
570 * getargs.c (skeleton): New variable.
571 (longopts): --skeleton is a new option.
572 (shortopts, getargs): -S is a new option.
573 * getargs.h: Declare skeleton.
574 * output.c (output_parser): Use it.
576 2001-03-16 Akim Demaille <akim@epita.fr>
578 * m4/strerror_r.m4: New.
579 * m4/error.m4: Run AC_FUNC_STRERROR_R.
580 * lib/error.h, lib/error.c: Update.
582 2001-03-16 Akim Demaille <akim@epita.fr>
584 * src/getargs.c (longopts): Clean up.
586 2001-02-21 Akim Demaille <akim@epita.fr>
588 * src/reader.c (gensym): `gensym_count' is your own.
589 Use a static buf to create the symbol name, as token_buffer is no
592 2001-02-08 Akim Demaille <akim@epita.fr>
594 * src/conflicts.c (conflict_report): Be sure not to append to res
595 between two calls, which could happen if both first sprintf were
596 skipped, but not the first cp += strlen.
598 2001-02-08 Akim Demaille <akim@epita.fr>
600 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
601 New, from fileutils 4.0.37.
602 * configure.in: Require Autoconf 2.49c. I took some time before
603 making this decision. This is the only way out for portability
604 issues in Bison, it would mean way too much duplicate effort to
605 import in Bison features implemented in 2.49c since 2.13.
606 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
608 2001-02-02 Akim Demaille <akim@epita.fr>
610 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
611 * lib/xalloc.h, lib/xmalloc.c: Update.
613 2001-01-19 Akim Demaille <akim@epita.fr>
615 Get rid of the ad hoc handling of token_buffer in the scanner: use
618 * src/lex.c (token_obstack): New.
619 (init_lex): Initialize it. No longer call...
620 (grow_token_buffer): this. Remove it.
621 Adjust all the places which used it to use the obstack.
623 2001-01-19 Akim Demaille <akim@epita.fr>
625 * src/lex.h: Rename all the tokens:
626 s/\bENDFILE\b/tok_eof/g;
627 s/\bIDENTIFIER\b/tok_identifier/g;
629 Let them be enums, not #define, to ease debugging.
632 2001-01-18 Akim Demaille <akim@epita.fr>
634 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
635 * src/lex.c (maxtoken, grow_token_buffer): Static.
637 2001-01-18 Akim Demaille <akim@epita.fr>
639 Since we now use obstacks, more % directives can be enabled.
641 * src/lex.c (percent_table): Also accept `%yacc',
642 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
644 Handle the actions for `%semantic_parser' and `%pure_parser' here,
645 instead of returning a token.
646 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
647 * src/reader.c (read_declarations): Adjust.
648 * src/files.c (open_files): Don't call `compute_base_names', don't
649 compute `attrsfile' since they depend upon data which might be
650 *in* the input file now.
651 (output_files): Do it here.
652 * src/output.c (output_headers): Document the fact that this patch
653 introduces a guaranteed SEGV for semantic parsers.
654 * doc/bison.texinfo: Document them.
655 * tests/suite.at: Exercise these %options.
657 2000-12-20 Akim Demaille <akim@epita.fr>
659 Also handle the output file (--verbose) with obstacks.
661 * files.c (foutput): Remove.
662 (output_obstack): New.
663 Adjust all dependencies.
664 * src/conflicts.c: Return a string.
665 * src/system.h (obstack_grow_string): Rename as...
666 (obstack_sgrow): this. Be ready to work with non literals.
667 (obstack_fgrow4): New.
669 2000-12-20 Akim Demaille <akim@epita.fr>
671 * src/files.c (open_files): Fix the computation of short_base_name
672 in the case of `-o foo.tab.c'.
674 2000-12-20 Akim Demaille <akim@epita.fr>
676 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
677 (copy_dollar): Now that everything uses obstacks, get rid of the
680 2000-12-20 Akim Demaille <akim@epita.fr>
682 * src/files.c (open_files): Actually the `.output' file is based
683 on the short_base_name, not base_name.
684 * tests/suite.at (Checking output file names): Adjust.
686 2000-12-20 Akim Demaille <akim@epita.fr>
688 * src/bison.s1: Remove, we now use directly...
689 * src/bison.simple: this.
690 * src/Makefile.am: Use pkgdata instead of data.
692 2000-12-20 Akim Demaille <akim@epita.fr>
694 * src/files.c (guard_obstack): New.
695 (open_files): Initialize it.
696 (output_files): Dump it...
697 * src/files.h: Export it.
698 * src/reader.c (copy_guard): Use it.
700 2000-12-19 Akim Demaille <akim@epita.fr>
702 * src/files.c (outfile, defsfile, actfile): Removed as global
704 (open_files): Don't compute them.
705 (output_files): Adjust.
706 (base_name, short_base_name): Be global.
709 2000-12-19 Akim Demaille <akim@epita.fr>
711 * src/files.c (strsuffix): New.
712 (stringappend): Be just like strcat but allocate.
713 (base_names): Eve out from open_files.
714 Try to simplify the rather hairy computation of base_name and
716 (open_files): Use it.
717 * tests/suite.at (Checking output file names): New test.
719 2000-12-19 Akim Demaille <akim@epita.fr>
721 * src/system.h (obstack_grow_literal_string): Rename as...
722 (obstack_grow_string): this.
723 * src/output.c (output_parser): Recognize `%% actions' instead of
725 * src/bison.s1: s/$/%% actions/.
726 * src/bison.hairy: Likewise.
728 2000-12-19 Akim Demaille <akim@epita.fr>
730 * src/output.c (output_parser): Compute the `#line' lines when
732 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
733 Suggested by Hans Aberg.
735 2000-12-19 Akim Demaille <akim@epita.fr>
737 Let the handling of the skeleton files be local to the procedures
740 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
742 (fparser, open_extra_files): Remove.
743 (open_files, output_files): Don't take care of fparser.
744 * src/files.h: Adjust.
745 * src/output.c (output_parser): Open and close the file to the
747 * src/reader.c (read_declarations): When %semantic_parser, open
750 2000-12-19 Akim Demaille <akim@epita.fr>
752 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
753 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
755 2000-12-19 Akim Demaille <akim@epita.fr>
757 * src/files.c (open_files): Yipee! We no longer need all the code
758 looking for `/tmp' since we have no tmp file.
760 2000-12-19 Akim Demaille <akim@epita.fr>
762 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
764 * src/files.c (open_files): Less dependency on MSDOS etc.
766 2000-12-14 Akim Demaille <akim@epita.fr>
768 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
769 Provide a default definition.
770 Use it when executing the default @ action.
771 * src/reader.c (reader_output_yylsp): No longer include
772 `timestamp' and `text' in the default YYLTYPE.
774 2000-12-12 Akim Demaille <akim@epita.fr>
776 * src/reader.c (copy_definition, parse_union_decl, copy_action)
777 (copy_guard): Quote the file names.
778 Reported by Laurent Mascherpa.
780 2000-12-12 Akim Demaille <akim@epita.fr>
782 * src/output.c (output_headers, output_program, output): Be sure
783 to escape special characters when outputting filenames.
784 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
785 (output_headers): Don't depend on them, Use ACTSTR.
787 2000-11-17 Akim Demaille <akim@epita.fr>
789 * lib/obstack.h: Formatting changes.
790 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
791 prevents type checking.
792 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
793 cast the value to (void *): assigning a `foo *' to a `void *'
795 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
796 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
799 2000-11-17 Akim Demaille <akim@epita.fr>
801 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
803 (suite.m4, regression.m4, calc.m4): these.
804 * tests/atgeneral.m4: Update from CVS Autoconf.
806 2000-11-17 Akim Demaille <akim@epita.fr>
808 * tests/regression.m4 (%union and --defines): New test,
809 demonstrating a current bug in the obstack implementation.
811 2000-11-17 Akim Demaille <akim@epita.fr>
813 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
815 Use them to declare the variables which are global or local to
818 2000-11-17 Akim Demaille <akim@epita.fr>
820 * acconfig.h: Remove, no longer used.
822 2000-11-07 Akim Demaille <akim@epita.fr>
824 * src: s/Copyright (C)/Copyright/g.
826 2000-11-07 Akim Demaille <akim@epita.fr>
828 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
830 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
832 2000-11-07 Akim Demaille <akim@epita.fr>
834 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
835 Merge in a single CPP if/else.
837 2000-11-07 Akim Demaille <akim@epita.fr>
839 * src/output.c (output): Remove useless variables.
840 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
841 argument `data' for consistency with the prototypes.
843 (obstack_copy, obstack_copy0): Rename the second argument as
844 `address' for consistency. Qualify it `const'.
845 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
846 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
847 `const' their input argument (`data' or `address').
848 Adjust the corresponding macros to include `const' in casts.
850 2000-11-03 Akim Demaille <akim@epita.fr>
852 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
853 s/PFILE1/BISON_HAIRY/.
856 2000-11-03 Akim Demaille <akim@epita.fr>
858 For some reason, this was not applied.
860 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
861 `unlink': it's no longer used.
863 2000-11-03 Akim Demaille <akim@epita.fr>
865 * src/files.c (skeleton_find): New function, eved out of...
866 (open_files, open_extra_files): here.
868 2000-11-03 Akim Demaille <akim@epita.fr>
872 * src/files.c (obstack_save): New function.
874 (output_files): this.
876 * src/main.c (main): Don't use `atexit' to register `done', since
877 it no longer has to remove tmp files, just call `output_files'
878 when there are no errors.
880 2000-11-02 Akim Demaille <akim@epita.fr>
882 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
883 `unlink': it's no longer used.
884 * src/files.h: Formatting changes.
886 2000-11-02 Akim Demaille <akim@epita.fr>
888 Remove the last uses of mktemp and unlink/delete.
890 * src/files.c (fdefines, ftable): Removed.
891 (defines_ostack, table_obstack): New.
892 Adjust dependencies of the former into uses of the latter.
893 * src/output.c (output_short_or_char_table, output_short_table):
894 Convert to using obstacks.
895 * src/reader.c (copy_comment2): Accept one FILE * and two
897 (output_token_defines, reader_output_yylsp): Use obstacks.
898 * src/system.h (obstack_fgrow3): New.
900 2000-11-01 Akim Demaille <akim@epita.fr>
902 Change each use of `fattrs' into a use of `attrs_obstack'.
904 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
905 * src/files.c (fattrs): Remove.
906 (attrs_obstack): New.
907 Adjust all dependencies.
908 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
910 2000-11-01 Akim Demaille <akim@epita.fr>
913 Change each use of `faction' into a use of `action_obstack'.
915 * lib/obstack.h, lib/obstack.c: New files.
916 * src/files.c (faction): Remove.
917 (action_obstack): New.
918 Adjust all dependencies.
920 2000-10-20 Akim Demaille <akim@epita.fr>
922 * lib/quote.h (PARAMS): New macro. Use it.
924 2000-10-16 Akim Demaille <akim@epita.fr>
926 * src/output.c (output_short_or_char_table): New function.
927 (output_short_table, output_token_translations): Use it.
928 (goto_actions): Use output_short_table.
930 2000-10-16 Akim Demaille <akim@epita.fr>
932 * src/symtab.c (bucket_new): New function.
935 * src/output.c (output_short_table): New argument to display the
936 comment associated with the table.
938 (output_gram): Use it.
939 (output_rule_data): Nicer output layout for YYTNAME.
941 2000-10-16 Akim Demaille <akim@epita.fr>
943 * src/lex.c (read_typename): New function.
945 * src/reader.c (copy_dollar): Likewise.
947 2000-10-16 Akim Demaille <akim@epita.fr>
949 * src/reader.c (copy_comment2): Expect the input stream to be on
950 the `/' which is suspected to open a comment, instead of being
951 called after `//' or `/*' was read.
952 (copy_comment, copy_definition, parse_union_decl, copy_action)
953 (copy_guard): Adjust.
955 2000-10-16 Akim Demaille <akim@epita.fr>
957 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
958 `read_signed_integer'.
960 2000-10-16 Akim Demaille <akim@epita.fr>
962 * src/reader.c (copy_dollar): New function.
963 (copy_guard, copy_action): Use it.
965 2000-10-16 Akim Demaille <akim@epita.fr>
967 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
968 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
969 New files, from Fileutils 4.0.27.
970 * src/main.c (printable_version): Remove.
971 * src/lex.c, src/reader.c: Use `quote'.
973 2000-10-04 Akim Demaille <akim@epita.fr>
975 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
977 2000-10-04 Akim Demaille <akim@epita.fr>
979 * doc/bison.texinfo: Various typos spotted by Neil Booth.
981 2000-10-04 Akim Demaille <akim@epita.fr>
983 When a literal string is used to define two different tokens,
984 `bison -v' segfaults.
985 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
987 * tests/regression.m4: New file.
988 Include the core of the sample provided by Piotr Gackiewicz.
989 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
992 2000-10-04 Akim Demaille <akim@epita.fr>
994 * src/reader.c (parse_expect_decl): Keep `count' within the size
998 2000-10-02 Paul Eggert <eggert@twinsun.com>
1000 * bison.s1 (yyparse): Assign the default value
1001 unconditionally, to avoid a GCC warning and make the parser a
1004 2000-10-02 Akim Demaille <akim@epita.fr>
1006 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1009 2000-10-02 Akim Demaille <akim@epita.fr>
1011 * src/derives.c, src/print.c, src/reduce.c: To ease the
1012 translation, move some `\n' out of the translated strings.
1014 2000-10-02 Akim Demaille <akim@epita.fr>
1016 The location tracking mechanism is precious for parse error
1017 messages. Nevertheless, it is enabled only when `@n' is used in
1018 the grammar, which is a different issue (you can use it in error
1019 message, but not in the grammar per se). Therefore, there should
1020 be another means to enable it.
1022 * src/getargs.c (getargs): Support `--locations'.
1024 * src/getargs.h (locationsflag): Export it.
1025 * src/lex.c (percent_table): Support `%locations'.
1026 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1027 with `locationsflag'.
1028 * doc/bison.texinfo: Document `--locations' and `%locations'.
1030 * tests/calc.m4: Test it.
1032 For regularity of the names, replace each
1033 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1034 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1035 In addition replace each `flag' with `_flag'.
1037 2000-10-02 Akim Demaille <akim@epita.fr>
1039 Also test parse error messages, including with YYERROR_VERBOSE.
1041 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1043 Use it to check the computations.
1044 Use it to check `nonassoc' is honored.
1045 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1046 `--yyerror-verbose'.
1047 (_AT_CHECK_CALC): Adjust to this option.
1048 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1050 2000-10-02 Akim Demaille <akim@epita.fr>
1052 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1053 the latter demonstrates a flaw in the handling of non debugging
1054 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1055 was used in order to simplify:
1071 unfortunately this leads to a CPP conflict when
1072 `--name-prefix=foo' is used since it produces `#define yydebug
1075 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1076 (YYDPRINTF): New macro.
1078 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1080 Also test `--verbose', `--defines' and `--name-prefix'.
1082 2000-10-02 Akim Demaille <akim@epita.fr>
1084 Improve the readability of the produced parsers.
1086 * src/bison.s1: Formatting changes.
1087 Improve the comment related to the `$' mark.
1088 (yydefault): Don't fall through to `yyresume': `goto' there.
1089 * src/output.c (output_parser): When the `$' is met, skip the end
1091 New variable, `number_of_dollar_signs', to check there's exactly
1092 one `$' in the parser skeleton.
1094 2000-10-02 Akim Demaille <akim@epita.fr>
1096 * lib/xstrdup.c: New file, from the fileutils.
1097 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1098 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1099 instead of strlen + xmalloc + strcpy.
1100 * src/symtab.c (copys): Remove, use xstrdup instead.
1102 2000-10-02 Akim Demaille <akim@epita.fr>
1104 * src/gram.h (associativity): New enum type which replaces the
1105 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1106 `right_assoc', `left_assoc' and `non_assoc'.
1107 Adjust all dependencies.
1108 * src/reader.c: Formatting changes.
1109 (LTYPESTR): Don't define it, use it as a literal in
1110 `reader_output_yylsp'.
1111 * src/symtab.h (symbol_class): New enum type which replaces the
1112 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1113 `sunknown', `stoken and `snterm'.
1115 2000-10-02 Akim Demaille <akim@epita.fr>
1117 * src/getargs.c (fixed_outfiles): Rename as...
1118 (yaccflag): for consistency and accuracy.
1119 Adjust dependencies.
1121 2000-10-02 Akim Demaille <akim@epita.fr>
1123 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1124 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1125 difficult and introduced a lot of core dump. It turns out that
1126 Bison used an implementation of `xmalloc' based on `calloc', and
1127 at various places it does depend upon the initialization to 0. I
1128 have not tried to isolate the pertinent places, and all the former
1129 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1130 someone should address this issue.
1132 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1133 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1135 Adjust dependencies.
1136 * src/warshall.h: New file.
1139 2000-10-02 Akim Demaille <akim@epita.fr>
1141 Various anti-`extern in *.c' changes.
1143 * src/system.h: Include `assert.h'.
1145 2000-10-02 Akim Demaille <akim@epita.fr>
1147 * src/state.h (nstates, final_state, first_state, first_shift)
1148 (first_reduction): Move their exportation from here...
1149 * src/LR0.h: to here.
1150 Adjust dependencies.
1151 * src/getargs.c (statisticsflag): New variable.
1152 Add support for `--statistics'.
1153 Adjust dependencies.
1155 Remove a lot of now useless `extern' statements in most files.
1157 2000-10-02 Akim Demaille <akim@epita.fr>
1159 * src/LR0.h: New file.
1162 2000-10-02 Akim Demaille <akim@epita.fr>
1164 * src/print.h: New file.
1166 * src/print.c: Formatting and ordering changes.
1167 (verbose, terse): Replace with...
1168 (print_results): this new function.
1169 Adjust dependencies.
1171 2000-10-02 Akim Demaille <akim@epita.fr>
1173 * src/conflicts.c (conflict_report): New function.
1174 (conflict_log, verbose_conflict_log): Replace with...
1175 (print_conflicts): this function.
1176 Adjust dependencies.
1177 * src/conflicts.h: New file.
1178 Propagate its inclusion.
1180 2000-10-02 Akim Demaille <akim@epita.fr>
1182 * src/nullable.h: New file.
1183 Propagate its inclusion.
1184 * src/nullable.c: Formatting changes.
1186 2000-10-02 Akim Demaille <akim@epita.fr>
1188 * src/reduce.h: New file.
1189 Propagate its inclusion.
1190 * src/reduce.c: Topological sort and other formatting changes.
1191 (bool, TRUE, FALSE): Move their definition to...
1192 * src/system.h: here.
1194 2000-10-02 Akim Demaille <akim@epita.fr>
1196 * src/files.c: Formatting changes.
1197 (tryopen, tryclose, openfiles): Rename as...
1198 (xfopen, xfclose, open_files): this.
1199 (stringappend): static.
1200 * src/files.h: Complete the list of exported symbols.
1203 2000-10-02 Akim Demaille <akim@epita.fr>
1205 * src/reader.h: New file.
1206 Propagate its use instead of tedious list of `extern' and
1208 * src/reader.c: Formatting changes, topological sort,
1211 2000-10-02 Akim Demaille <akim@epita.fr>
1213 * src/lex.h: Prototype `lex.c' exported functions.
1214 * src/reader.c: Adjust.
1215 * src/lex.c: Formatting changes.
1216 (safegetc): Rename as...
1219 2000-10-02 Akim Demaille <akim@epita.fr>
1221 * src/lalr.h: New file.
1222 Propagate its inclusion instead of prototypes and `extern'.
1223 * src/lalr.c: Formatting changes, topological sorting etc.
1225 2000-10-02 Akim Demaille <akim@epita.fr>
1227 * src/output.c (token_actions): Introduce a temporary array,
1228 YYDEFACT, that makes it possible for this function to use
1231 2000-10-02 Akim Demaille <akim@epita.fr>
1233 `user_toknums' is output as a `short[]' in `output.c', while it is
1234 defined as a `int[]' in `reader.c'. For consistency with the
1235 other output tables, `user_toknums' is now defined as a table of
1238 * src/reader.c (user_toknums): Be a short table instead of an int
1240 Adjust dependencies.
1242 Factor the short table outputs.
1244 * src/output.c (output_short_table): New function.
1245 * src/output.c (output_gram, output_stos, output_rule_data)
1246 (output_base, output_table, output_check): Use it.
1248 2000-10-02 Akim Demaille <akim@epita.fr>
1250 * src/output.c (output): Topological sort of the functions, in
1251 order to get rid of the `static' prototypes.
1252 No longer use `register'.
1253 * src/output.h: New file.
1254 Propagate its inclusion in files explicitly prototyping functions
1257 2000-09-21 Akim Demaille <akim@epita.fr>
1259 * src/atgeneral.m4: Update from Autoconf.
1261 2000-09-21 Akim Demaille <akim@epita.fr>
1263 * src/closure.h: New file.
1264 * src/closure.c: Formatting changes, topological sort over the
1265 functions, use of closure.h.
1266 (initialize_closure, finalize_closure): Rename as...
1267 (new_closure, free_closure): these. Adjust dependencies.
1268 * src/LR0.c: Formatting changes, topological sort, use of
1270 (initialize_states): Rename as...
1272 * src/Makefile.am (noinst_HEADERS): Adjust.
1274 2000-09-20 Akim Demaille <akim@epita.fr>
1276 * src/acconfig.h: Don't protect config.h against multiple
1278 Don't define PARAMS.
1279 * src/system.h: Define PARAMS.
1280 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1281 purpose of config.h. system.h must not try to fix wrong
1282 definitions in config.h.
1284 2000-09-20 Akim Demaille <akim@epita.fr>
1286 * src/derives.h: New file.
1287 * src/main.c, src/derives.h: Use it.
1289 * src/Makefile.am (noinst_HEADERS): Adjust.
1291 2000-09-20 Akim Demaille <akim@epita.fr>
1293 * tests/atgeneral.m4: Update from Autoconf.
1294 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1295 (AT_CHECK_CALC): New macros.
1296 Use these macros to test bison with options `', `--raw',
1297 `--debug', `--yacc', `--yacc --debug'.
1299 2000-09-19 Akim Demaille <akim@epita.fr>
1301 * src/output.c: Formatting changes.
1302 * src/machine.h: Remove, leaving its contents in...
1303 * src/system.h: here.
1305 Adjust all dependencies on stdio.h and machine.h.
1306 * src/getargs.h: New file.
1307 Let all `extern' declarations about getargs.c be replaced with
1308 inclusion of `getargs.h'.
1309 * src/Makefile.am (noinst_HEADERS): Adjust.
1311 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1313 (yyerror): Returns void, not int.
1314 * doc/bison.texinfo: Formatting changes.
1316 2000-09-19 Akim Demaille <akim@epita.fr>
1318 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1321 2000-09-18 Akim Demaille <akim@epita.fr>
1323 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1324 * src/Makefile.am (INCLUDES): Don't.
1325 Be ready to fetch headers in lib/.
1327 2000-09-18 Akim Demaille <akim@epita.fr>
1329 * doc/bison.texinfo: Update the copyright.
1330 ANSIfy and GNUify the examples.
1331 Remove the old menu.
1333 2000-09-18 Akim Demaille <akim@epita.fr>
1335 First set of tests: use the `calc' example from the documentation.
1337 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1338 is defined only when YYDEBUG is.
1339 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1340 * src/files.c (tryopen, tryclose): Formatting changes.
1341 Move to the top and be static.
1342 * src/reader.c (read_signed_integer): Likewise.
1343 * tests/calc.m4: New file.
1344 * Makefile.am, suite.m4: Adjust.
1345 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1347 2000-09-18 Akim Demaille <akim@epita.fr>
1349 Add support for an Autotest test suite for Bison.
1351 * m4/m4.m4, m4/atconfig.m4: New files.
1352 * m4/Makefile.am (EXTRA_DIST): Adjust.
1353 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1355 * src/getargs.c: Display a more standard --version message.
1356 * src/reader.c (reader): Formatting changes.
1357 No longer depend upon VERSION_STRING.
1358 * configure.in: No longer use `dnl'.
1359 Set up the test suite and the new directory `tests/.
1360 (VERSION_STRING): Remove.
1362 2000-04-14 Akim Demaille <akim@epita.fr>
1364 * src/reader.c (copy_comment2): New function, same as former
1365 `copy_comment', but outputs into two FILE *.
1366 (copy_comment): Use it.
1367 (parse_union_decl): Use it.
1368 (get_type, parse_start_decl): Use the same `invalid' message.
1369 (parse_start_decl, parse_union_decl): Use the same `multiple'
1371 (parse_union_decl, copy_guard, copy_action): Use the same
1372 `unmatched' message.
1373 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1375 2000-03-31 Akim Demaille <akim@epita.fr>
1377 * src/files.c (tryopen, tryclose): Move to the top.
1380 2000-03-31 Akim Demaille <akim@epita.fr>
1382 * src/main.c (main): Don't call `done', exit does it.
1384 2000-03-31 Akim Demaille <akim@epita.fr>
1386 * allocate.c: s/return (foo)/return foo/.
1389 * output.c: Likewise.
1390 * reader.c: Likewise.
1391 * symtab.c: Likewise.
1392 * vmsgetargs.c: Likewise.
1394 2000-03-31 Akim Demaille <akim@epita.fr>
1396 Clean up the error reporting functions.
1398 * src/report.c: New file.
1399 * src/report.h: Likewise.
1400 * src/Makefile.am: Adjust.
1401 * m4/error.m4: New file.
1402 * m4/Makefile.am: Adjust.
1403 * configure.in (jm_PREREQ_ERROR): Call it.
1404 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1406 (fatal, fatals): Remove. All callers use complain.c::fatal.
1407 (warn, warni, warns, warnss, warnss): Remove. All callers use
1408 complain.c::complain.
1409 (toomany): Remove, use fatal instead.
1410 * src/files.c (done): No argument, use complain_message_count.
1411 * src/main.c (main): Register `done' to `atexit'.
1413 * src/getargs.c (usage): More `fputs', less `fprintf'.
1415 2000-03-28 Akim Demaille <akim@epita.fr>
1417 * lib/: New directory.
1418 * Makefile.am (SUBDIRS): Adjust.
1419 * configure.in: Adjust.
1420 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1422 * src/alloca.c: Moved to lib/.
1423 * src/getopt.c: Likewise.
1424 * src/getopt1.c: Likewise.
1425 * src/getopt.h: Likewise.
1426 * src/ansi2knr.c: Likewise.
1427 * src/ansi2knr.1: Likewise.
1428 * src/Makefile.am: Adjust.
1429 * lib/Makefile.am: New file.
1431 2000-03-28 Akim Demaille <akim@epita.fr>
1433 * src/getargs.c (usage): Refresh the help message.
1435 2000-03-17 Akim Demaille <akim@epita.fr>
1437 * src/getopt1.c: Updated from textutils 2.0e
1438 * src/getopt.c: Likewise.
1439 * src/getopt.h: Likewise.
1441 2000-03-17 Akim Demaille <akim@epita.fr>
1443 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1444 the file name, not the whole `#line LINE FILE'.
1446 2000-03-17 Akim Demaille <akim@epita.fr>
1448 On syntax errors, report the token on which we choked.
1450 * src/bison.s1 (yyparse): In the label yyerrlab, when
1451 YYERROR_VERBOSE, add yychar in msg.
1453 2000-03-17 Akim Demaille <akim@epita.fr>
1455 * src/reader.c (copy_at): New function.
1456 (copy_guard): Use it.
1457 (copy_action): Use it.
1459 2000-03-17 Akim Demaille <akim@epita.fr>
1461 Be kind to translators, save some useless translations.
1463 * src/main.c (banner): New function.
1464 (fatal_banner): Use it.
1465 (warn_banner): Use it.
1467 2000-03-17 Akim Demaille <akim@epita.fr>
1469 * src/reader.c (copy_definition): Use copy_string and
1470 copy_comment. Removed now unused `match', `ended',
1472 (copy_comment, copy_string): Moved, to be visible from
1475 2000-03-17 Akim Demaille <akim@epita.fr>
1477 * src/reader.c (copy_string): Declare `static inline'. No
1478 problems with inline, since it is checked by configure.
1479 (copy_comment): Likewise.
1481 2000-03-17 Akim Demaille <akim@epita.fr>
1483 * src/reader.c (packsymbols): Formatting changes.
1485 2000-03-17 Akim Demaille <akim@epita.fr>
1487 * src/reader.c (copy_comment): New function, factored out from:
1488 (copy_action): Use it. Removed now unused `match', `ended',
1490 (copy_guard): Likewise.
1492 2000-03-17 Akim Demaille <akim@epita.fr>
1494 * src/reader.c (copy_string): New function, factored out from:
1495 (copy_action): Use it.
1496 (copy_guard): Likewise.
1498 2000-03-17 Akim Demaille <akim@epita.fr>
1500 Change the handling of @s so that they behave exactly like $s.
1501 There is now a pseudo variable @$ (readble and writable), location
1502 of the lhs of the rule (by default ranging from the location of
1503 the first symbol of the rhs, to the location of the last symbol,
1504 or, if the rhs is empty, YYLLOC).
1506 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1508 (yyparse): When providing a default semantic action, provide a
1509 default location action.
1510 (after the $): No longer change `*YYLSP', just stack YYLOC the
1511 same way you stack YYVAL.
1512 * src/reader.c (read_declarations): Use warns.
1513 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1514 (copy_action, case '@'): Likewise.
1515 Use a standard error message, to save useless work from
1518 2000-03-17 Akim Demaille <akim@epita.fr>
1520 * src/bison.s1: Formatting and cosmetics changes.
1521 * src/reader.c: Likewise.
1522 Update the Copyright notice.
1524 2000-03-17 Akim Demaille <akim@epita.fr>
1526 * src/bison.s1 (#line): All set to `#line' only, since the
1527 Makefile now handles them.
1529 2000-03-16 Akim Demaille <akim@epita.fr>
1531 * src/output.c (output_rule_data): Output the documentation of
1533 (Copyright notice): Update.
1536 2000-03-16 Akim Demaille <akim@epita.fr>
1538 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1539 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1540 One `#if YYDEBUG' remains, since it uses variables which are
1541 defined only if `YYDEBUG != 0'.
1543 2000-03-16 Akim Demaille <akim@epita.fr>
1545 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1546 and related variables so that the similarities are highlighted.
1548 2000-03-16 Akim Demaille <akim@epita.fr>
1550 * src/bison.s1: Properly indent CPP directives.
1552 2000-03-16 Akim Demaille <akim@epita.fr>
1554 * src/bison.s1: Properly indent the `alloca' CPP section.
1556 2000-03-16 Akim Demaille <akim@epita.fr>
1558 Do not hard code values of directories in `configure.in'.
1559 Update the `configure' tool chain.
1561 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1563 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1564 (AC_OUTPUT): Add m4/Makefile.
1565 Bump to bison 1.28a, 1.29 has never been released.
1566 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1567 handled via src/Makefile.am.
1568 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1569 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1571 * Makefile.am (SUBDIRS): Add m4.
1572 (ACLOCAL_AM_FLAGS): New variable.
1573 (AUTOMAKE_OPTIONS): Add check-news.
1574 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1575 the proper line number and file name.
1576 (DEFS): Propagate the location of bison library files and of the
1578 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1580 * acinclude.m4: Remove, replaced by the directory m4.
1581 * m4/Makefile.am (EXTRA_DIST): New variable.
1582 * m4/gettext.m4: New file, from the fileutils.
1583 * m4/lcmessage.m4: Likewise
1584 * m4/progtest.m4: Likewise.
1585 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1587 2000-03-10 Akim Demaille <akim@epita.fr>
1590 Formatting changes of various comments.
1591 Respect the GNU coding standards at various places.
1592 Don't use `_()' when no translation is needed.
1594 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1597 OS/2 honors TMPDIR environment variable.
1599 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1601 * doc/bison.texinfo: Tweaked spelling and grammar.
1603 Removed reference to price of printed copy.
1604 Mention BISON_SIMPLE and BISON_HAIRY.
1606 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1608 * configure.in, NEWS:
1609 Bison 1.29 released.
1611 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1613 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1614 Added reference card.
1616 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1618 * po/ru.po: Added Russian translation.
1620 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1622 * configure.in: Added Russian translation.
1624 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1626 * configure.in, NEWS, README:
1627 Released version 1.28.
1629 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1632 Squashed redefinition warning on some systems.
1634 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1635 Have configure build version string instead of relying on ANSI string
1638 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1640 * po/POTFILES.in: Got rid of version.c.
1642 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1644 * acconfig.h, configure.in:
1645 Have configure build version string instead of relying on ANSI string
1648 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1651 Dropped mention of `+' for long-named options.
1653 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1655 * src/files.c: Added <unistd.h> for unlink().
1657 * src/Makefile.am, src/system.h:
1660 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1662 * README: Added a FAQ list.
1664 * configure.in, acconfig.h:
1667 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1669 * doc/FAQ, doc/Makefile.am:
1672 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1674 * src/alloc.h, src/symtab.h, src/version.c:
1675 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1677 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1679 * src/.cvsignore, src/Makefile.am:
1680 Reorganized: sources in `src', documentation in `doc'.
1682 * src/lex.c (literalchar):
1683 fixed the code for escaping double quotes (thanks
1686 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1688 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1689 Adjusted paths to reflect directory reorganization.
1691 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1693 * doc/.cvsignore, doc/Makefile.am:
1694 Reorganized: sources in `src', documentation in `doc'.
1696 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1699 Updated AC_INIT file to reflect directory reorganization.
1701 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1702 Reorganized: sources in `src', documentation in `doc'.
1704 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1707 Don't declare calloc() and realloc() if not necessary.
1709 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1711 * configure.in, acconfig.h, acinclude.m4:
1712 Don't declare calloc() and realloc() if not necessary.
1714 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1716 * po/.cvsignore: Added i18n support.
1718 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1720 * acconfig.h, configure.in, Makefile.am:
1723 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1725 * src/bison.s1: Fixed #line numbers.
1727 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1729 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1730 Added PO files from Translation Project.
1732 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1735 Added support for non-ANSI compilers (ansi2knr).
1737 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1739 * configure.in: Bumped version number to 1.27.
1742 Added `bison.simple' to list of files removed by `make distclean'.
1744 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1746 * src/files.c, src/files.h:
1747 Defined locations of parser files in config.h instead of Makefile.
1749 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1751 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1752 Defined locations of parser files in config.h instead of Makefile.
1754 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1757 Removed inappropriate use of $< macro.
1759 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1761 * po/Makefile.in.in, po/POTFILES.in:
1762 Add `po' directory skeleton.
1764 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1766 * README: Document help-bison list.
1768 * configure.in: Add check for mkstemp().
1770 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1772 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1773 Hush a few compiler warnings.
1776 Add tryclose(), which verifies that fclose was successful.
1777 Hush a couple of compiler warnings.
1779 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1781 * Makefile.am, OChangeLog:
1782 ChangeLog is now automatically generated. Include the old version as
1785 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1787 * 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:
1790 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1792 * doc/bison.texinfo: Fix formatting glitch.
1794 * doc/bison.texinfo: Update FSF address.
1796 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1798 * acconfig.h: Update FSF address.
1800 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1803 Don't define PACKAGE here, since config.h defines it.
1805 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1807 * src/reader.c: Update copyright date.
1810 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1811 favor of output directly to stderr (avoids buffer overruns).
1813 * src/reader.c: Some checks for premature EOF.
1815 * 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:
1816 Use prototypes if the compiler understands them.
1818 * src/files.c: Honor TMPDIR on Unix hosts.
1819 Use prototypes if the compiler understands them.
1822 Fix a couple of buffer overrun bugs.
1823 Use prototypes if the compiler understands them.
1825 * src/system.h: Include unistd.h and ctype.h.
1826 Use #ifdef instead of #if for NLS symbols.
1828 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1830 * doc/bison.texinfo:
1831 Delete comment "consider using @set for edition number, etc..." since
1832 we now are doing so.
1834 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1837 Use prototypes if the compiler understands them.
1839 * NEWS: Document 1.26 highlights.
1841 * Makefile.am: Require Automake 1.3 or later.
1844 Use prototypes if the compiler understands them.
1846 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1849 Use VERSION symbol from automake for version number.
1851 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1853 * acconfig.h, configure.in, version.cin:
1854 Use VERSION symbol from automake for version number.
1856 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1859 Distribute original version of simple parser (bison.s1), not built
1860 version (bison.simple).
1862 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1864 * doc/bison.texinfo: Add info dir entry.
1866 * doc/bison.texinfo:
1867 Let automake put version number into documentation.
1869 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1871 * src/bison.cld, src/build.com, src/vmshlp.mar:
1872 Add non-RCS files from /gd/gnu/bison.
1874 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1877 Document the BISON_HAIRY and BISON_SIMPLE variables.
1879 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1881 * src/version.c: Build version.c automatically.
1884 Fix token numbering (used to start at 258, not 257).
1886 * src/system.h: Include config.h.
1888 * src/getargs.c: Update bug report address.
1890 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1891 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1893 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1896 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1898 * configure.in, version.cin:
1899 Build version.c automatically.
1901 * AUTHORS: Add AUTHORS file.
1903 * README: Update bug report address.
1906 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1908 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1911 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1913 * doc/bison.texinfo: Clean up some formatting.
1915 1998-05-05 Richard Stallman <rms@gnu.org>
1917 * doc/bison.texinfo:
1918 Explain better why to make a pure parser.
1920 1998-01-05 Richard Stallman <rms@gnu.org>
1922 * src/files.c (openfiles):
1923 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1924 find a temporary directory, if possible. Do not unlink files while
1927 1997-08-25 Richard Stallman <rms@gnu.org>
1929 * src/reader.c (stack_offset;):
1930 Change some warni to warns.
1932 * src/lex.c (literalchar): Use warns, not warni.
1934 1997-06-28 Richard Stallman <rms@gnu.org>
1936 * src/bison.s1: Add a Bison version comment.
1938 * src/main.c (fatal, warn, berror):
1941 1997-06-28 Richard Stallman <rms@gnu.org>
1943 * Makefile.in (bison_version): New variable.
1944 (dist): Use that variable.
1945 (bison.s1): Substitute the Bison version into bison.simple.
1947 * bison.simple: Add a Bison version comment.
1949 1997-06-18 Richard Stallman <rms@gnu.org>
1951 * src/main.c (fatal, warn, berror):
1952 Make error messages standard.
1953 (toomany): Improve error message text.
1955 * 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:
1956 new.h renamed to alloc.h.
1958 1997-06-18 Richard Stallman <rms@gnu.org>
1960 * Makefile.in: new.h renamed to alloc.h.
1962 1997-05-24 Richard Stallman <rms@gnu.org>
1964 * src/lex.c (literalchar):
1965 Fix the code for escaping \, " and '.
1967 (lex): Avoid trouble when there are many chars
1968 to discard in a char literal with just several chars in it.
1970 1997-05-17 Richard Stallman <rms@gnu.org>
1973 Use malloc, if using alloca is troublesome.
1974 (YYSTACK_USE_ALLOCA): New flag macro.
1975 Define it for some systems and compilers.
1976 (YYSTACK_ALLOC): New macro.
1977 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1978 If it was malloc'd, free it.
1980 1997-05-17 Richard Stallman <rms@gnu.org>
1983 Use malloc, if using alloca is troublesome.
1984 (YYSTACK_USE_ALLOCA): New flag macro.
1985 Define it for some systems and compilers.
1986 (YYSTACK_ALLOC): New macro.
1987 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1988 If it was malloc'd, free it.
1990 1997-04-23 Richard Stallman <rms@gnu.org>
1993 (alloca) [__hpux]: Always define as __builtin_alloca.
1995 1997-04-23 Richard Stallman <rms@gnu.org>
1998 (alloca) [__hpux]: Always define as __builtin_alloca.
2000 1997-04-22 Richard Stallman <rms@gnu.org>
2003 [__hpux]: Include alloca.h (right for HPUX 10)
2004 instead of declaring alloca (right for HPUX 9).
2006 * src/bison.s1 (__yy_memcpy):
2007 Declare arg `count' as unsigned int.
2008 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2010 1997-04-22 Richard Stallman <rms@gnu.org>
2013 [__hpux]: Include alloca.h (right for HPUX 10)
2014 instead of declaring alloca (right for HPUX 9).
2016 * bison.simple (__yy_memcpy):
2017 Declare arg `count' as unsigned int.
2018 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2020 1997-01-03 Richard Stallman <rms@gnu.org>
2022 * src/allocate.c: [__STDC__ or _MSC_VER]:
2023 Declare calloc and realloc to return void *.
2025 1997-01-02 Richard Stallman <rms@gnu.org>
2028 [_MSC_VER]: Include stdlib.h and process.h.
2029 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2031 * src/main.c (main): Return FAILURE as a value.
2032 (printable_version): Declare arg as int, not char.
2034 1997-01-02 Richard Stallman <rms@gnu.org>
2036 * Makefile.in (dist):
2037 Explicitly check for symlinks, and copy them.
2039 1996-12-19 Richard Stallman <rms@gnu.org>
2042 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2044 1996-12-18 Paul Eggert <eggert@gnu.org>
2046 * src/bison.s1 (yyparse):
2047 If __GNUC__ and YYPARSE_PARAM are both defined,
2048 declare yyparse to have a void * argument.
2050 1996-12-18 Paul Eggert <eggert@gnu.org>
2052 * bison.simple (yyparse):
2053 If __GNUC__ and YYPARSE_PARAM are both defined,
2054 declare yyparse to have a void * argument.
2056 1996-12-17 Richard Stallman <rms@gnu.org>
2058 * src/reduce.c (nbits): Add some casts.
2060 1996-08-12 Richard Stallman <rms@gnu.org>
2062 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2064 1996-08-12 Richard Stallman <rms@gnu.org>
2066 * bison.simple: Test _MSDOS as well as _MSDOS_.
2068 1996-07-31 Richard Stallman <rms@gnu.org>
2071 [__sun && __i386]: Include alloca.h.
2073 1996-07-31 Richard Stallman <rms@gnu.org>
2076 [__sun && __i386]: Include alloca.h.
2078 1996-07-30 Richard Stallman <rms@gnu.org>
2080 * src/bison.s1: Comment change.
2082 * src/bison.s1: Test _MSDOS_, not MSDOS.
2084 1996-07-30 Richard Stallman <rms@gnu.org>
2086 * bison.simple: Comment change.
2088 * bison.simple: Test _MSDOS_, not MSDOS.
2090 1996-06-01 Richard Stallman <rms@gnu.org>
2092 * 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:
2093 Insert `_' macro around many string constants.
2096 Insert `_' macro around many string constants.
2098 (main): Call setlocale, bindtextdomain and textdomain.
2100 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2101 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2102 [ENABLE_NLS]: Include libintl.h.
2103 [ENABLE_NLS] (gettext): Define.
2104 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2105 (N_, PACKAGE, LOCALEDIR): New macros.
2107 1996-06-01 Richard Stallman <rms@gnu.org>
2109 * POTFILES.in: New file.
2111 * Makefile.in (allocate.o):
2112 Define target explicitly.
2114 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2115 (LDFLAGS): Set to @LDFLAGS@.
2116 (configure): Run autoconf only if preceding `cd' succeeds.
2117 (bison.s1): Redirect output to temporary file then move the
2118 temporary to the target, rather than redirecting directly to bison.s1.
2119 (clean): Remove config.status and config.log.
2120 (distclean): Don't remove config.status here.
2122 1996-05-12 Richard Stallman <rms@gnu.org>
2125 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2127 1996-05-12 Richard Stallman <rms@gnu.org>
2130 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2132 1996-05-11 Richard Stallman <rms@gnu.org>
2134 * src/bison.s1 (__yy_memcpy):
2135 Really reorder the args, as was supposedly done on Feb 14 1995.
2136 (yyparse): Calls changed accordingly.
2138 1996-05-11 Richard Stallman <rms@gnu.org>
2140 * Makefile.in (dist): Don't use $(srcdir).
2142 * bison.simple (__yy_memcpy):
2143 Really reorder the args, as was supposedly done on Feb 14 1995.
2144 (yyparse): Calls changed accordingly.
2146 1996-01-27 Richard Stallman <rms@gnu.org>
2148 * src/output.c (output_rule_data):
2149 Test YYERROR_VERBOSE in the conditional
2150 around the definition of ttyname.
2152 1995-12-29 Richard Stallman <rms@gnu.org>
2155 Fix line numbers in #line commands.
2157 1995-12-29 Richard Stallman <rms@gnu.org>
2160 Fix line numbers in #line commands.
2162 1995-12-27 Richard Stallman <rms@gnu.org>
2164 * src/bison.s1 (YYPARSE_PARAM_DECL):
2165 In C++, make it always null.
2166 (YYPARSE_PARAM_ARG): New macro.
2167 (yyparse): Use YYPARSE_PARAM_ARG.
2169 1995-12-27 Richard Stallman <rms@gnu.org>
2171 * bison.simple (YYPARSE_PARAM_DECL):
2172 In C++, make it always null.
2173 (YYPARSE_PARAM_ARG): New macro.
2174 (yyparse): Use YYPARSE_PARAM_ARG.
2176 1995-11-29 Richard Stallman <rms@gnu.org>
2178 * doc/bison.texinfo:
2179 Describe literal string tokens, %raw, %no_lines, %token_table.
2181 1995-11-29 Daniel Hagerty <hag@gnu.org>
2183 * doc/bison.texinfo: Fixed update date
2185 1995-10-16 Richard Stallman <rms@gnu.org>
2187 * src/version.c: Version 1.25.
2189 1995-10-16 Richard Stallman <rms@gnu.org>
2191 * NEWS: *** empty log message ***
2193 1995-10-16 Richard Stallman <rms@gnu.org>
2195 * doc/bison.1, doc/bison.rnh:
2198 1995-10-15 Richard Stallman <rms@gnu.org>
2200 * src/vmsgetargs.c, src/getargs.c:
2201 Added -n, -k, and -raw switches.
2202 (noparserflag, toknumflag, rawtoknumflag): New variables.
2204 * src/symtab.h (SALIAS):
2205 New #define for adding aliases to %token.
2206 (struct bucket): Added `alias' field.
2208 * src/reduce.c (reduce_grammar):
2209 Revise error message.
2210 (print_notices): Remove final `.' from error message.
2212 * src/reader.c (reader_output_yylsp):
2214 (readgram): Use `#if 0' around code that accepted %command
2215 inside grammar rules: The documentation doesn't allow it,
2216 and it will fail since the %command processors scan for the next %.
2217 (parse_token_decl): Extended the %token
2218 declaration to allow a multi-character symbol as an alias.
2219 (parse_thong_decl): New function.
2220 (read_declarations): Added %thong declarations.
2221 (read_declarations): Handle NOOP to deal with allowing
2222 % declarations as another means to specify the flags.
2223 (readgram): Allow %prec prior to semantics embedded in a rule.
2224 (skip_to_char, read_declarations, copy_definition)
2225 (parse_token_decl, parse_start_decl, parse_type_decl)
2226 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2227 (get_type_name, copy_guard, copy_action, readgram)
2228 (get_type, packsymbols): Revised most error messages.
2229 Changed `fatal' to `warnxxx' to avoid aborting for error.
2230 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2231 (read_declarations): Improve the error message for
2232 an invalid character. Do not abort.
2233 (read_declarations, copy_guard, copy_action): Use
2234 printable_version to avoid unprintable characters in printed output.
2235 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2236 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2237 Allow the type of a non-terminal can be given
2238 more than once, as long as all specifications give the same type.
2241 (output_headers, output_trailers, output, output_gram)
2242 (output_rule_data): Implement noparserflag variable.
2243 Implement toknumflag variable.
2244 (output): Call reader_output_yylsp to output LTYPESTR.
2246 * src/main.c (main):
2247 If reader sees an error, don't process the grammar.
2248 (fatals): Updated to not use VARARGS1.
2249 (printable_version, int_to_string, warn, warni, warns, warnss)
2250 (warnsss): New error reporting functions. Avoid abort for error.
2253 Added THONG and NOOP for alias processing.
2254 Added SETOPT for the new code that allows setting options with %flags.
2257 Include getopt.h. Add some extern decls.
2258 (safegetc): New function to deal with EOF gracefully.
2259 (literalchar); new function to deal with reading \ escapes.
2260 (lex): Use literalchar.
2261 (lex): Implemented "..." tokens.
2262 (literalchar, lex, parse_percent_token): Made tokenbuffer
2263 always contain the token. This includes growing the token
2264 buffer while reading an integer.
2265 (parse_percent_token): Replaced if-else statement with percent_table.
2266 (parse_percent_token): Added % declarations as another
2267 way to specify the flags -n, -l, and -r. Also added hooks for
2268 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2269 major changes to files.c.
2270 (lex) Retain in the incoming stream a character following
2272 (skip_white_space, lex): Revised most error messages
2273 and changed fatal to warn to avoid aborting.
2274 (percent_table): Added %thong declarations.
2276 * src/gram.h: Comment changes.
2278 * src/files.c (openfiles, open_extra_files, done):
2280 and actfile file. Handle noparserflag. Both for -n switch.
2282 * src/conflicts.c (resolve_sr_conflict):
2283 Remove use of alloca.
2285 1995-06-01 Jim Meyering <meyering@gnu.org>
2287 * doc/bison.texinfo: *** empty log message ***
2289 1995-05-06 Richard Stallman <rms@gnu.org>
2291 * src/bison.s1: Comment change.
2293 1995-05-06 Richard Stallman <rms@gnu.org>
2295 * bison.simple: Comment change.
2297 1995-05-03 Richard Stallman <rms@gnu.org>
2299 * src/version.c: Version now 1.24.
2301 * src/bison.s1: Change distribution terms.
2303 * src/version.c: Version now 1.23.
2305 1995-05-03 Richard Stallman <rms@gnu.org>
2307 * doc/bison.texinfo:
2308 Rewrite "Conditions for Using Bison".
2309 Update version to 1.24.
2311 1995-05-03 Richard Stallman <rms@gnu.org>
2313 * bison.simple: Change distribution terms.
2315 1995-02-23 Richard Stallman <rms@gnu.org>
2317 * src/files.c: Test __VMS_POSIX as well as VMS.
2319 1995-02-14 Jim Meyering <meyering@gnu.org>
2321 * src/bison.s1 (__yy_memcpy):
2322 Renamed from __yy_bcopy to avoid
2323 confusion. Reverse FROM and TO arguments to be consistent with
2326 1995-02-14 Jim Meyering <meyering@gnu.org>
2328 * bison.simple (__yy_memcpy):
2329 Renamed from __yy_bcopy to avoid
2330 confusion. Reverse FROM and TO arguments to be consistent with
2333 1994-11-10 David J. MacKenzie <djm@gnu.org>
2339 * Makefile.in (DISTFILES): Include NEWS.
2341 * Makefile.in (DISTFILES):
2342 Include install-sh, not install.sh.
2344 * configure.in: Update to Autoconf v2 macro names.
2346 1994-10-05 David J. MacKenzie <djm@gnu.org>
2348 * Makefile.in: fix typo
2350 * Makefile.in (prefix, exec_prefix):
2351 Let configure set them.
2353 1994-09-28 David J. MacKenzie <djm@gnu.org>
2355 * Makefile.in: Set datadir to $(prefix)/share.
2357 1994-09-15 Richard Stallman <rms@gnu.org>
2360 Update copyright notice and GPL version.
2362 1994-09-15 Richard Stallman <rms@gnu.org>
2365 Update copyright notice and GPL version.
2367 1994-07-12 Richard Stallman <rms@gnu.org>
2369 * src/reduce.c, src/reader.c:
2372 1994-05-05 David J. MacKenzie <djm@gnu.org>
2374 * Makefile.in: entered into RCS
2376 1994-03-26 Richard Stallman <rms@gnu.org>
2378 * src/bison.s1: entered into RCS
2380 1994-03-26 Richard Stallman <rms@gnu.org>
2382 * bison.simple: entered into RCS
2384 1994-03-25 Richard Stallman <rms@gnu.org>
2386 * src/main.c: entered into RCS
2388 1994-03-24 Richard Stallman <rms@gnu.org>
2390 * src/conflicts.c: entered into RCS
2392 1994-01-02 Richard Stallman <rms@gnu.org>
2394 * Makefile.in: *** empty log message ***
2396 1993-11-21 Richard Stallman <rms@gnu.org>
2398 * src/bison.s1: *** empty log message ***
2400 1993-11-21 Richard Stallman <rms@gnu.org>
2402 * doc/bison.texinfo: entered into RCS
2404 * doc/bison.texinfo: *** empty log message ***
2406 1993-11-21 Richard Stallman <rms@gnu.org>
2408 * bison.simple: *** empty log message ***
2410 1993-10-25 David J. MacKenzie <djm@gnu.org>
2412 * doc/bison.texinfo: *** empty log message ***
2414 1993-10-19 Richard Stallman <rms@gnu.org>
2416 * src/bison.s1: *** empty log message ***
2418 1993-10-19 Richard Stallman <rms@gnu.org>
2420 * bison.simple: *** empty log message ***
2422 1993-10-14 Richard Stallman <rms@gnu.org>
2424 * src/bison.s1: *** empty log message ***
2426 1993-10-14 Richard Stallman <rms@gnu.org>
2428 * bison.simple: *** empty log message ***
2430 1993-09-14 David J. MacKenzie <djm@gnu.org>
2432 * doc/bison.texinfo: *** empty log message ***
2434 1993-09-13 Noah Friedman <friedman@gnu.org>
2436 * Makefile.in: *** empty log message ***
2438 1993-09-10 Richard Stallman <rms@gnu.org>
2440 * src/conflicts.c: *** empty log message ***
2442 * src/system.h: entered into RCS
2444 1993-09-10 Richard Stallman <rms@gnu.org>
2446 * doc/bison.1: entered into RCS
2448 1993-09-06 Noah Friedman <friedman@gnu.org>
2450 * src/version.c: entered into RCS
2452 1993-09-06 Noah Friedman <friedman@gnu.org>
2454 * Makefile.in: *** empty log message ***
2456 1993-07-30 David J. MacKenzie <djm@gnu.org>
2458 * Makefile.in: *** empty log message ***
2460 1993-07-24 Richard Stallman <rms@gnu.org>
2462 * src/bison.s1: *** empty log message ***
2464 1993-07-24 Richard Stallman <rms@gnu.org>
2466 * bison.simple: *** empty log message ***
2468 1993-07-08 David J. MacKenzie <djm@gnu.org>
2470 * Makefile.in: *** empty log message ***
2472 1993-07-04 Richard Stallman <rms@gnu.org>
2474 * src/bison.s1: *** empty log message ***
2476 1993-07-04 Richard Stallman <rms@gnu.org>
2478 * bison.simple: *** empty log message ***
2480 1993-06-26 David J. MacKenzie <djm@gnu.org>
2482 * src/getargs.c: entered into RCS
2484 1993-06-26 David J. MacKenzie <djm@gnu.org>
2486 * doc/bison.texinfo: *** empty log message ***
2488 * doc/bison.1: New file.
2490 1993-06-25 Richard Stallman <rms@gnu.org>
2492 * src/getargs.c: New file.
2494 1993-06-16 Richard Stallman <rms@gnu.org>
2496 * src/bison.s1: *** empty log message ***
2498 1993-06-16 Richard Stallman <rms@gnu.org>
2500 * bison.simple: *** empty log message ***
2502 1993-06-03 Richard Stallman <rms@gnu.org>
2504 * src/bison.s1: New file.
2506 1993-06-03 Richard Stallman <rms@gnu.org>
2508 * doc/bison.texinfo: *** empty log message ***
2510 1993-06-03 Richard Stallman <rms@gnu.org>
2512 * bison.simple: New file.
2514 1993-05-19 Richard Stallman <rms@gnu.org>
2516 * doc/bison.texinfo: New file.
2518 1993-05-07 Noah Friedman <friedman@gnu.org>
2520 * Makefile.in: *** empty log message ***
2522 1993-04-28 Noah Friedman <friedman@gnu.org>
2524 * src/reader.c: *** empty log message ***
2526 1993-04-23 Noah Friedman <friedman@gnu.org>
2528 * src/alloc.h: entered into RCS
2530 1993-04-20 David J. MacKenzie <djm@gnu.org>
2532 * src/version.c: *** empty log message ***
2534 * src/files.c, src/allocate.c:
2537 * src/reader.c: *** empty log message ***
2539 * src/lex.c: entered into RCS
2541 * src/conflicts.c: New file.
2543 * src/symtab.c: entered into RCS
2545 * src/alloc.h: New file.
2547 * src/LR0.c: entered into RCS
2549 1993-04-18 Noah Friedman <friedman@gnu.org>
2551 * src/reader.c: New file.
2553 * src/version.c: *** empty log message ***
2555 1993-04-18 Noah Friedman <friedman@gnu.org>
2557 * Makefile.in: *** empty log message ***
2559 1993-04-17 Noah Friedman <friedman@gnu.org>
2561 * Makefile.in: *** empty log message ***
2563 1993-04-15 Richard Stallman <rms@gnu.org>
2565 * src/main.c, src/files.c:
2568 1993-04-15 Noah Friedman <friedman@gnu.org>
2570 * configure.in: entered into RCS
2572 * configure.in: *** empty log message ***
2574 * configure.in: New file.
2576 1993-04-14 Richard Stallman <rms@gnu.org>
2578 * Makefile.in: New file.
2580 1993-04-13 Richard Stallman <rms@gnu.org>
2582 * src/version.c: New file.
2584 1993-03-25 Richard Stallman <rms@gnu.org>
2586 * src/output.c: entered into RCS
2588 1992-09-25 Richard Stallman <rms@gnu.org>
2590 * configure.bat: entered into RCS
2592 1992-06-22 Richard Stallman <rms@gnu.org>
2594 * src/vmsgetargs.c: entered into RCS
2596 1992-06-22 Richard Stallman <rms@gnu.org>
2598 * doc/bison.rnh: entered into RCS
2600 1992-04-20 David J. MacKenzie <djm@gnu.org>
2602 * README: entered into RCS
2604 1992-01-22 Richard Stallman <rms@gnu.org>
2606 * src/machine.h: entered into RCS
2608 1991-12-21 Richard Stallman <rms@gnu.org>
2610 * src/lalr.c, src/closure.c:
2613 1991-12-20 Richard Stallman <rms@gnu.org>
2615 * src/state.h: entered into RCS
2617 1991-12-18 Richard Stallman <rms@gnu.org>
2619 * src/print.c, src/nullable.c, src/derives.c:
2622 1991-11-03 David J. MacKenzie <djm@gnu.org>
2624 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2627 1988-09-09 Richard Stallman <rms@gnu.org>
2629 * src/bison.hairy: entered into RCS
2631 1987-12-16 Richard Stallman <rms@gnu.org>
2633 * REFERENCES: entered into RCS