1 2000-12-20 Akim Demaille <akim@epita.fr>
3 * src/files.c (guard_obstack): New.
4 (open_files): Initialize it.
5 (output_files): Dump it...
6 * src/files.h: Export it.
7 * src/reader.c (copy_guard): Use it.
9 2000-12-19 Akim Demaille <akim@epita.fr>
11 * src/files.c (outfile, defsfile, actfile): Removed as global
13 (open_files): Don't compute them.
14 (output_files): Adjust.
15 (base_name, short_base_name): Be global.
18 2000-12-19 Akim Demaille <akim@epita.fr>
20 * src/files.c (strsuffix): New.
21 (stringappend): Be just like strcat but allocate.
22 (base_names): Eve out from open_files.
23 Try to simplify the rather hairy computation of base_name and
26 * tests/suite.at (Checking output file names): New test.
28 2000-12-19 Akim Demaille <akim@epita.fr>
30 * src/system.h (obstack_grow_literal_string): Rename as...
31 (obstack_grow_string): this.
32 * src/output.c (output_parser): Recognize `%% actions' instead of
34 * src/bison.s1: s/$/%% actions/.
35 * src/bison.hairy: Likewise.
37 2000-12-19 Akim Demaille <akim@epita.fr>
39 * src/output.c (output_parser): Compute the `#line' lines when
41 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
42 Suggested by Hans Aberg.
44 2000-12-19 Akim Demaille <akim@epita.fr>
46 Let the handling of the skeleton files be local to the procedures
49 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
51 (fparser, open_extra_files): Remove.
52 (open_files, output_files): Don't take care of fparser.
53 * src/files.h: Adjust.
54 * src/output.c (output_parser): Open and close the file to the
56 * src/reader.c (read_declarations): When %semantic_parser, open
59 2000-12-19 Akim Demaille <akim@epita.fr>
61 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
62 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
64 2000-12-19 Akim Demaille <akim@epita.fr>
66 * src/files.c (open_files): Yipee! We no longer need all the code
67 looking for `/tmp' since we have no tmp file.
69 2000-12-19 Akim Demaille <akim@epita.fr>
71 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
73 * src/files.c (open_files): Less dependency on MSDOS etc.
75 2000-12-14 Akim Demaille <akim@epita.fr>
77 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
78 Provide a default definition.
79 Use it when executing the default @ action.
80 * src/reader.c (reader_output_yylsp): No longer include
81 `timestamp' and `text' in the default YYLTYPE.
83 2000-12-12 Akim Demaille <akim@epita.fr>
85 * src/reader.c (copy_definition, parse_union_decl, copy_action)
86 (copy_guard): Quote the file names.
87 Reported by Laurent Mascherpa.
89 2000-12-12 Akim Demaille <akim@epita.fr>
91 * src/output.c (output_headers, output_program, output): Be sure
92 to escape special characters when outputting filenames.
93 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
94 (output_headers): Don't depend on them, Use ACTSTR.
96 2000-11-17 Akim Demaille <akim@epita.fr>
98 * lib/obstack.h: Formatting changes.
99 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
100 prevents type checking.
101 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
102 cast the value to (void *): assigning a `foo *' to a `void *'
104 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
105 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
108 2000-11-17 Akim Demaille <akim@epita.fr>
110 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
112 (suite.m4, regression.m4, calc.m4): these.
113 * tests/atgeneral.m4: Update from CVS Autoconf.
115 2000-11-17 Akim Demaille <akim@epita.fr>
117 * tests/regression.m4 (%union and --defines): New test,
118 demonstrating a current bug in the obstack implementation.
120 2000-11-17 Akim Demaille <akim@epita.fr>
122 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
124 Use them to declare the variables which are global or local to
127 2000-11-17 Akim Demaille <akim@epita.fr>
129 * acconfig.h: Remove, no longer used.
131 2000-11-07 Akim Demaille <akim@epita.fr>
133 * src: s/Copyright (C)/Copyright/g.
135 2000-11-07 Akim Demaille <akim@epita.fr>
137 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
139 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
141 2000-11-07 Akim Demaille <akim@epita.fr>
143 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
144 Merge in a single CPP if/else.
146 2000-11-07 Akim Demaille <akim@epita.fr>
148 * src/output.c (output): Remove useless variables.
149 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
150 argument `data' for consistency with the prototypes.
152 (obstack_copy, obstack_copy0): Rename the second argument as
153 `address' for consistency. Qualify it `const'.
154 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
155 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
156 `const' their input argument (`data' or `address').
157 Adjust the corresponding macros to include `const' in casts.
159 2000-11-03 Akim Demaille <akim@epita.fr>
161 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
162 s/PFILE1/BISON_HAIRY/.
165 2000-11-03 Akim Demaille <akim@epita.fr>
167 For some reason, this was not applied.
169 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
170 `unlink': it's no longer used.
172 2000-11-03 Akim Demaille <akim@epita.fr>
174 * src/files.c (skeleton_find): New function, eved out of...
175 (open_files, open_extra_files): here.
177 2000-11-03 Akim Demaille <akim@epita.fr>
181 * src/files.c (obstack_save): New function.
183 (output_files): this.
185 * src/main.c (main): Don't use `atexit' to register `done', since
186 it no longer has to remove tmp files, just call `output_files'
187 when there are no errors.
189 2000-11-02 Akim Demaille <akim@epita.fr>
191 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
192 `unlink': it's no longer used.
193 * src/files.h: Formatting changes.
195 2000-11-02 Akim Demaille <akim@epita.fr>
197 Remove the last uses of mktemp and unlink/delete.
199 * src/files.c (fdefines, ftable): Removed.
200 (defines_ostack, table_obstack): New.
201 Adjust dependencies of the former into uses of the latter.
202 * src/output.c (output_short_or_char_table, output_short_table):
203 Convert to using obstacks.
204 * src/reader.c (copy_comment2): Accept one FILE * and two
206 (output_token_defines, reader_output_yylsp): Use obstacks.
207 * src/system.h (obstack_fgrow3): New.
209 2000-11-01 Akim Demaille <akim@epita.fr>
211 Change each use of `fattrs' into a use of `attrs_obstack'.
213 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
214 * src/files.c (fattrs): Remove.
215 (attrs_obstack): New.
216 Adjust all dependencies.
217 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
219 2000-11-01 Akim Demaille <akim@epita.fr>
222 Change each use of `faction' into a use of `action_obstack'.
224 * lib/obstack.h, lib/obstack.c: New files.
225 * src/files.c (faction): Remove.
226 (action_obstack): New.
227 Adjust all dependencies.
229 2000-10-20 Akim Demaille <akim@epita.fr>
231 * lib/quote.h (PARAMS): New macro. Use it.
233 2000-10-16 Akim Demaille <akim@epita.fr>
235 * src/output.c (output_short_or_char_table): New function.
236 (output_short_table, output_token_translations): Use it.
237 (goto_actions): Use output_short_table.
239 2000-10-16 Akim Demaille <akim@epita.fr>
241 * src/symtab.c (bucket_new): New function.
244 * src/output.c (output_short_table): New argument to display the
245 comment associated with the table.
247 (output_gram): Use it.
248 (output_rule_data): Nicer output layout for YYTNAME.
250 2000-10-16 Akim Demaille <akim@epita.fr>
252 * src/lex.c (read_typename): New function.
254 * src/reader.c (copy_dollar): Likewise.
256 2000-10-16 Akim Demaille <akim@epita.fr>
258 * src/reader.c (copy_comment2): Expect the input stream to be on
259 the `/' which is suspected to open a comment, instead of being
260 called after `//' or `/*' was read.
261 (copy_comment, copy_definition, parse_union_decl, copy_action)
262 (copy_guard): Adjust.
264 2000-10-16 Akim Demaille <akim@epita.fr>
266 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
267 `read_signed_integer'.
269 2000-10-16 Akim Demaille <akim@epita.fr>
271 * src/reader.c (copy_dollar): New function.
272 (copy_guard, copy_action): Use it.
274 2000-10-16 Akim Demaille <akim@epita.fr>
276 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
277 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
278 New files, from Fileutils 4.0.27.
279 * src/main.c (printable_version): Remove.
280 * src/lex.c, src/reader.c: Use `quote'.
282 2000-10-04 Akim Demaille <akim@epita.fr>
284 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
286 2000-10-04 Akim Demaille <akim@epita.fr>
288 * doc/bison.texinfo: Various typos spotted by Neil Booth.
290 2000-10-04 Akim Demaille <akim@epita.fr>
292 When a literal string is used to define two different tokens,
293 `bison -v' segfaults.
294 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
296 * tests/regression.m4: New file.
297 Include the core of the sample provided by Piotr Gackiewicz.
298 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
301 2000-10-04 Akim Demaille <akim@epita.fr>
303 * src/reader.c (parse_expect_decl): Keep `count' within the size
307 2000-10-02 Paul Eggert <eggert@twinsun.com>
309 * bison.s1 (yyparse): Assign the default value
310 unconditionally, to avoid a GCC warning and make the parser a
313 2000-10-02 Akim Demaille <akim@epita.fr>
315 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
318 2000-10-02 Akim Demaille <akim@epita.fr>
320 * src/derives.c, src/print.c, src/reduce.c: To ease the
321 translation, move some `\n' out of the translated strings.
323 2000-10-02 Akim Demaille <akim@epita.fr>
325 The location tracking mechanism is precious for parse error
326 messages. Nevertheless, it is enabled only when `@n' is used in
327 the grammar, which is a different issue (you can use it in error
328 message, but not in the grammar per se). Therefore, there should
329 be another means to enable it.
331 * src/getargs.c (getargs): Support `--locations'.
333 * src/getargs.h (locationsflag): Export it.
334 * src/lex.c (percent_table): Support `%locations'.
335 * src/reader.c (yylsp_needed): Remove this variable, now replaced
336 with `locationsflag'.
337 * doc/bison.texinfo: Document `--locations' and `%locations'.
339 * tests/calc.m4: Test it.
341 For regularity of the names, replace each
342 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
343 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
344 In addition replace each `flag' with `_flag'.
346 2000-10-02 Akim Demaille <akim@epita.fr>
348 Also test parse error messages, including with YYERROR_VERBOSE.
350 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
352 Use it to check the computations.
353 Use it to check `nonassoc' is honored.
354 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
356 (_AT_CHECK_CALC): Adjust to this option.
357 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
359 2000-10-02 Akim Demaille <akim@epita.fr>
361 Test also `--verbose', `--defines' and `--name-prefix'. Testing
362 the latter demonstrates a flaw in the handling of non debugging
363 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
364 was used in order to simplify:
380 unfortunately this leads to a CPP conflict when
381 `--name-prefix=foo' is used since it produces `#define yydebug
384 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
385 (YYDPRINTF): New macro.
387 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
389 Also test `--verbose', `--defines' and `--name-prefix'.
391 2000-10-02 Akim Demaille <akim@epita.fr>
393 Improve the readability of the produced parsers.
395 * src/bison.s1: Formatting changes.
396 Improve the comment related to the `$' mark.
397 (yydefault): Don't fall through to `yyresume': `goto' there.
398 * src/output.c (output_parser): When the `$' is met, skip the end
400 New variable, `number_of_dollar_signs', to check there's exactly
401 one `$' in the parser skeleton.
403 2000-10-02 Akim Demaille <akim@epita.fr>
405 * lib/xstrdup.c: New file, from the fileutils.
406 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
407 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
408 instead of strlen + xmalloc + strcpy.
409 * src/symtab.c (copys): Remove, use xstrdup instead.
411 2000-10-02 Akim Demaille <akim@epita.fr>
413 * src/gram.h (associativity): New enum type which replaces the
414 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
415 `right_assoc', `left_assoc' and `non_assoc'.
416 Adjust all dependencies.
417 * src/reader.c: Formatting changes.
418 (LTYPESTR): Don't define it, use it as a literal in
419 `reader_output_yylsp'.
420 * src/symtab.h (symbol_class): New enum type which replaces the
421 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
422 `sunknown', `stoken and `snterm'.
424 2000-10-02 Akim Demaille <akim@epita.fr>
426 * src/getargs.c (fixed_outfiles): Rename as...
427 (yaccflag): for consistency and accuracy.
430 2000-10-02 Akim Demaille <akim@epita.fr>
432 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
433 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
434 difficult and introduced a lot of core dump. It turns out that
435 Bison used an implementation of `xmalloc' based on `calloc', and
436 at various places it does depend upon the initialization to 0. I
437 have not tried to isolate the pertinent places, and all the former
438 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
439 someone should address this issue.
441 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
442 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
445 * src/warshall.h: New file.
448 2000-10-02 Akim Demaille <akim@epita.fr>
450 Various anti-`extern in *.c' changes.
452 * src/system.h: Include `assert.h'.
454 2000-10-02 Akim Demaille <akim@epita.fr>
456 * src/state.h (nstates, final_state, first_state, first_shift)
457 (first_reduction): Move their exportation from here...
458 * src/LR0.h: to here.
460 * src/getargs.c (statisticsflag): New variable.
461 Add support for `--statistics'.
464 Remove a lot of now useless `extern' statements in most files.
466 2000-10-02 Akim Demaille <akim@epita.fr>
468 * src/LR0.h: New file.
471 2000-10-02 Akim Demaille <akim@epita.fr>
473 * src/print.h: New file.
475 * src/print.c: Formatting and ordering changes.
476 (verbose, terse): Replace with...
477 (print_results): this new function.
480 2000-10-02 Akim Demaille <akim@epita.fr>
482 * src/conflicts.c (conflict_report): New function.
483 (conflict_log, verbose_conflict_log): Replace with...
484 (print_conflicts): this function.
486 * src/conflicts.h: New file.
487 Propagate its inclusion.
489 2000-10-02 Akim Demaille <akim@epita.fr>
491 * src/nullable.h: New file.
492 Propagate its inclusion.
493 * src/nullable.c: Formatting changes.
495 2000-10-02 Akim Demaille <akim@epita.fr>
497 * src/reduce.h: New file.
498 Propagate its inclusion.
499 * src/reduce.c: Topological sort and other formatting changes.
500 (bool, TRUE, FALSE): Move their definition to...
501 * src/system.h: here.
503 2000-10-02 Akim Demaille <akim@epita.fr>
505 * src/files.c: Formatting changes.
506 (tryopen, tryclose, openfiles): Rename as...
507 (xfopen, xfclose, open_files): this.
508 (stringappend): static.
509 * src/files.h: Complete the list of exported symbols.
512 2000-10-02 Akim Demaille <akim@epita.fr>
514 * src/reader.h: New file.
515 Propagate its use instead of tedious list of `extern' and
517 * src/reader.c: Formatting changes, topological sort,
520 2000-10-02 Akim Demaille <akim@epita.fr>
522 * src/lex.h: Prototype `lex.c' exported functions.
523 * src/reader.c: Adjust.
524 * src/lex.c: Formatting changes.
525 (safegetc): Rename as...
528 2000-10-02 Akim Demaille <akim@epita.fr>
530 * src/lalr.h: New file.
531 Propagate its inclusion instead of prototypes and `extern'.
532 * src/lalr.c: Formatting changes, topological sorting etc.
534 2000-10-02 Akim Demaille <akim@epita.fr>
536 * src/output.c (token_actions): Introduce a temporary array,
537 YYDEFACT, that makes it possible for this function to use
540 2000-10-02 Akim Demaille <akim@epita.fr>
542 `user_toknums' is output as a `short[]' in `output.c', while it is
543 defined as a `int[]' in `reader.c'. For consistency with the
544 other output tables, `user_toknums' is now defined as a table of
547 * src/reader.c (user_toknums): Be a short table instead of an int
551 Factor the short table outputs.
553 * src/output.c (output_short_table): New function.
554 * src/output.c (output_gram, output_stos, output_rule_data)
555 (output_base, output_table, output_check): Use it.
557 2000-10-02 Akim Demaille <akim@epita.fr>
559 * src/output.c (output): Topological sort of the functions, in
560 order to get rid of the `static' prototypes.
561 No longer use `register'.
562 * src/output.h: New file.
563 Propagate its inclusion in files explicitly prototyping functions
566 2000-09-21 Akim Demaille <akim@epita.fr>
568 * src/atgeneral.m4: Update from Autoconf.
570 2000-09-21 Akim Demaille <akim@epita.fr>
572 * src/closure.h: New file.
573 * src/closure.c: Formatting changes, topological sort over the
574 functions, use of closure.h.
575 (initialize_closure, finalize_closure): Rename as...
576 (new_closure, free_closure): these. Adjust dependencies.
577 * src/LR0.c: Formatting changes, topological sort, use of
579 (initialize_states): Rename as...
581 * src/Makefile.am (noinst_HEADERS): Adjust.
583 2000-09-20 Akim Demaille <akim@epita.fr>
585 * src/acconfig.h: Don't protect config.h against multiple
588 * src/system.h: Define PARAMS.
589 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
590 purpose of config.h. system.h must not try to fix wrong
591 definitions in config.h.
593 2000-09-20 Akim Demaille <akim@epita.fr>
595 * src/derives.h: New file.
596 * src/main.c, src/derives.h: Use it.
598 * src/Makefile.am (noinst_HEADERS): Adjust.
600 2000-09-20 Akim Demaille <akim@epita.fr>
602 * tests/atgeneral.m4: Update from Autoconf.
603 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
604 (AT_CHECK_CALC): New macros.
605 Use these macros to test bison with options `', `--raw',
606 `--debug', `--yacc', `--yacc --debug'.
608 2000-09-19 Akim Demaille <akim@epita.fr>
610 * src/output.c: Formatting changes.
611 * src/machine.h: Remove, leaving its contents in...
612 * src/system.h: here.
614 Adjust all dependencies on stdio.h and machine.h.
615 * src/getargs.h: New file.
616 Let all `extern' declarations about getargs.c be replaced with
617 inclusion of `getargs.h'.
618 * src/Makefile.am (noinst_HEADERS): Adjust.
620 * tests/calc.m4 (yyin): Be initialized in main, not on the global
622 (yyerror): Returns void, not int.
623 * doc/bison.texinfo: Formatting changes.
625 2000-09-19 Akim Demaille <akim@epita.fr>
627 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
630 2000-09-18 Akim Demaille <akim@epita.fr>
632 * configure.in: Append WARNING_CFLAGS to CFLAGS.
633 * src/Makefile.am (INCLUDES): Don't.
634 Be ready to fetch headers in lib/.
636 2000-09-18 Akim Demaille <akim@epita.fr>
638 * doc/bison.texinfo: Update the copyright.
639 ANSIfy and GNUify the examples.
642 2000-09-18 Akim Demaille <akim@epita.fr>
644 First set of tests: use the `calc' example from the documentation.
646 * src/bison.s1 (yyparse): Condition the code using `yytname' which
647 is defined only when YYDEBUG is.
648 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
649 * src/files.c (tryopen, tryclose): Formatting changes.
650 Move to the top and be static.
651 * src/reader.c (read_signed_integer): Likewise.
652 * tests/calc.m4: New file.
653 * Makefile.am, suite.m4: Adjust.
654 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
656 2000-09-18 Akim Demaille <akim@epita.fr>
658 Add support for an Autotest test suite for Bison.
660 * m4/m4.m4, m4/atconfig.m4: New files.
661 * m4/Makefile.am (EXTRA_DIST): Adjust.
662 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
664 * src/getargs.c: Display a more standard --version message.
665 * src/reader.c (reader): Formatting changes.
666 No longer depend upon VERSION_STRING.
667 * configure.in: No longer use `dnl'.
668 Set up the test suite and the new directory `tests/.
669 (VERSION_STRING): Remove.
671 2000-04-14 Akim Demaille <akim@epita.fr>
673 * src/reader.c (copy_comment2): New function, same as former
674 `copy_comment', but outputs into two FILE *.
675 (copy_comment): Use it.
676 (parse_union_decl): Use it.
677 (get_type, parse_start_decl): Use the same `invalid' message.
678 (parse_start_decl, parse_union_decl): Use the same `multiple'
680 (parse_union_decl, copy_guard, copy_action): Use the same
682 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
684 2000-03-31 Akim Demaille <akim@epita.fr>
686 * src/files.c (tryopen, tryclose): Move to the top.
689 2000-03-31 Akim Demaille <akim@epita.fr>
691 * src/main.c (main): Don't call `done', exit does it.
693 2000-03-31 Akim Demaille <akim@epita.fr>
695 * allocate.c: s/return (foo)/return foo/.
698 * output.c: Likewise.
699 * reader.c: Likewise.
700 * symtab.c: Likewise.
701 * vmsgetargs.c: Likewise.
703 2000-03-31 Akim Demaille <akim@epita.fr>
705 Clean up the error reporting functions.
707 * src/report.c: New file.
708 * src/report.h: Likewise.
709 * src/Makefile.am: Adjust.
710 * m4/error.m4: New file.
711 * m4/Makefile.am: Adjust.
712 * configure.in (jm_PREREQ_ERROR): Call it.
713 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
715 (fatal, fatals): Remove. All callers use complain.c::fatal.
716 (warn, warni, warns, warnss, warnss): Remove. All callers use
717 complain.c::complain.
718 (toomany): Remove, use fatal instead.
719 * src/files.c (done): No argument, use complain_message_count.
720 * src/main.c (main): Register `done' to `atexit'.
722 * src/getargs.c (usage): More `fputs', less `fprintf'.
724 2000-03-28 Akim Demaille <akim@epita.fr>
726 * lib/: New directory.
727 * Makefile.am (SUBDIRS): Adjust.
728 * configure.in: Adjust.
729 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
731 * src/alloca.c: Moved to lib/.
732 * src/getopt.c: Likewise.
733 * src/getopt1.c: Likewise.
734 * src/getopt.h: Likewise.
735 * src/ansi2knr.c: Likewise.
736 * src/ansi2knr.1: Likewise.
737 * src/Makefile.am: Adjust.
738 * lib/Makefile.am: New file.
740 2000-03-28 Akim Demaille <akim@epita.fr>
742 * src/getargs.c (usage): Refresh the help message.
744 2000-03-17 Akim Demaille <akim@epita.fr>
746 * src/getopt1.c: Updated from textutils 2.0e
747 * src/getopt.c: Likewise.
748 * src/getopt.h: Likewise.
750 2000-03-17 Akim Demaille <akim@epita.fr>
752 * src/Makefile.am (bison.simple): Fix the awk program: quote only
753 the file name, not the whole `#line LINE FILE'.
755 2000-03-17 Akim Demaille <akim@epita.fr>
757 On syntax errors, report the token on which we choked.
759 * src/bison.s1 (yyparse): In the label yyerrlab, when
760 YYERROR_VERBOSE, add yychar in msg.
762 2000-03-17 Akim Demaille <akim@epita.fr>
764 * src/reader.c (copy_at): New function.
765 (copy_guard): Use it.
766 (copy_action): Use it.
768 2000-03-17 Akim Demaille <akim@epita.fr>
770 Be kind to translators, save some useless translations.
772 * src/main.c (banner): New function.
773 (fatal_banner): Use it.
774 (warn_banner): Use it.
776 2000-03-17 Akim Demaille <akim@epita.fr>
778 * src/reader.c (copy_definition): Use copy_string and
779 copy_comment. Removed now unused `match', `ended',
781 (copy_comment, copy_string): Moved, to be visible from
784 2000-03-17 Akim Demaille <akim@epita.fr>
786 * src/reader.c (copy_string): Declare `static inline'. No
787 problems with inline, since it is checked by configure.
788 (copy_comment): Likewise.
790 2000-03-17 Akim Demaille <akim@epita.fr>
792 * src/reader.c (packsymbols): Formatting changes.
794 2000-03-17 Akim Demaille <akim@epita.fr>
796 * src/reader.c (copy_comment): New function, factored out from:
797 (copy_action): Use it. Removed now unused `match', `ended',
799 (copy_guard): Likewise.
801 2000-03-17 Akim Demaille <akim@epita.fr>
803 * src/reader.c (copy_string): New function, factored out from:
804 (copy_action): Use it.
805 (copy_guard): Likewise.
807 2000-03-17 Akim Demaille <akim@epita.fr>
809 Change the handling of @s so that they behave exactly like $s.
810 There is now a pseudo variable @$ (readble and writable), location
811 of the lhs of the rule (by default ranging from the location of
812 the first symbol of the rhs, to the location of the last symbol,
813 or, if the rhs is empty, YYLLOC).
815 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
817 (yyparse): When providing a default semantic action, provide a
818 default location action.
819 (after the $): No longer change `*YYLSP', just stack YYLOC the
820 same way you stack YYVAL.
821 * src/reader.c (read_declarations): Use warns.
822 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
823 (copy_action, case '@'): Likewise.
824 Use a standard error message, to save useless work from
827 2000-03-17 Akim Demaille <akim@epita.fr>
829 * src/bison.s1: Formatting and cosmetics changes.
830 * src/reader.c: Likewise.
831 Update the Copyright notice.
833 2000-03-17 Akim Demaille <akim@epita.fr>
835 * src/bison.s1 (#line): All set to `#line' only, since the
836 Makefile now handles them.
838 2000-03-16 Akim Demaille <akim@epita.fr>
840 * src/output.c (output_rule_data): Output the documentation of
842 (Copyright notice): Update.
845 2000-03-16 Akim Demaille <akim@epita.fr>
847 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
848 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
849 One `#if YYDEBUG' remains, since it uses variables which are
850 defined only if `YYDEBUG != 0'.
852 2000-03-16 Akim Demaille <akim@epita.fr>
854 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
855 and related variables so that the similarities are highlighted.
857 2000-03-16 Akim Demaille <akim@epita.fr>
859 * src/bison.s1: Properly indent CPP directives.
861 2000-03-16 Akim Demaille <akim@epita.fr>
863 * src/bison.s1: Properly indent the `alloca' CPP section.
865 2000-03-16 Akim Demaille <akim@epita.fr>
867 Do not hard code values of directories in `configure.in'.
868 Update the `configure' tool chain.
870 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
872 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
873 (AC_OUTPUT): Add m4/Makefile.
874 Bump to bison 1.28a, 1.29 has never been released.
875 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
876 handled via src/Makefile.am.
877 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
878 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
880 * Makefile.am (SUBDIRS): Add m4.
881 (ACLOCAL_AM_FLAGS): New variable.
882 (AUTOMAKE_OPTIONS): Add check-news.
883 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
884 the proper line number and file name.
885 (DEFS): Propagate the location of bison library files and of the
887 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
889 * acinclude.m4: Remove, replaced by the directory m4.
890 * m4/Makefile.am (EXTRA_DIST): New variable.
891 * m4/gettext.m4: New file, from the fileutils.
892 * m4/lcmessage.m4: Likewise
893 * m4/progtest.m4: Likewise.
894 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
896 2000-03-10 Akim Demaille <akim@epita.fr>
899 Formatting changes of various comments.
900 Respect the GNU coding standards at various places.
901 Don't use `_()' when no translation is needed.
903 1999-12-13 Jesse Thilo <jthilo@gnu.org>
906 OS/2 honors TMPDIR environment variable.
908 1999-12-13 Jesse Thilo <jthilo@gnu.org>
910 * doc/bison.texinfo: Tweaked spelling and grammar.
912 Removed reference to price of printed copy.
913 Mention BISON_SIMPLE and BISON_HAIRY.
915 1999-12-13 Jesse Thilo <jthilo@gnu.org>
917 * configure.in, NEWS:
920 1999-10-27 Jesse Thilo <jthilo@gnu.org>
922 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
923 Added reference card.
925 1999-07-26 Jesse Thilo <jthilo@gnu.org>
927 * po/ru.po: Added Russian translation.
929 1999-07-26 Jesse Thilo <jthilo@gnu.org>
931 * configure.in: Added Russian translation.
933 1999-07-06 Jesse Thilo <jthilo@gnu.org>
935 * configure.in, NEWS, README:
936 Released version 1.28.
938 1999-06-14 Jesse Thilo <jthilo@gnu.org>
941 Squashed redefinition warning on some systems.
943 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
944 Have configure build version string instead of relying on ANSI string
947 1999-06-14 Jesse Thilo <jthilo@gnu.org>
949 * po/POTFILES.in: Got rid of version.c.
951 1999-06-14 Jesse Thilo <jthilo@gnu.org>
953 * acconfig.h, configure.in:
954 Have configure build version string instead of relying on ANSI string
957 1999-06-08 Jesse Thilo <jthilo@gnu.org>
960 Dropped mention of `+' for long-named options.
962 1999-05-30 Jesse Thilo <jthilo@gnu.org>
964 * src/files.c: Added <unistd.h> for unlink().
966 * src/Makefile.am, src/system.h:
969 1999-05-30 Jesse Thilo <jthilo@gnu.org>
971 * README: Added a FAQ list.
973 * configure.in, acconfig.h:
976 1999-05-30 Jesse Thilo <jthilo@gnu.org>
978 * doc/FAQ, doc/Makefile.am:
981 1999-05-19 Jesse Thilo <jthilo@gnu.org>
983 * src/alloc.h, src/symtab.h, src/version.c:
984 Protected inclusion of "config.h" with HAVE_CONFIG_H.
986 1999-04-18 Jesse Thilo <jthilo@gnu.org>
988 * src/.cvsignore, src/Makefile.am:
989 Reorganized: sources in `src', documentation in `doc'.
991 * src/lex.c (literalchar):
992 fixed the code for escaping double quotes (thanks
995 1999-04-18 Jesse Thilo <jthilo@gnu.org>
997 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
998 Adjusted paths to reflect directory reorganization.
1000 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1002 * doc/.cvsignore, doc/Makefile.am:
1003 Reorganized: sources in `src', documentation in `doc'.
1005 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1008 Updated AC_INIT file to reflect directory reorganization.
1010 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1011 Reorganized: sources in `src', documentation in `doc'.
1013 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1016 Don't declare calloc() and realloc() if not necessary.
1018 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1020 * configure.in, acconfig.h, acinclude.m4:
1021 Don't declare calloc() and realloc() if not necessary.
1023 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1025 * po/.cvsignore: Added i18n support.
1027 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1029 * acconfig.h, configure.in, Makefile.am:
1032 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1034 * src/bison.s1: Fixed #line numbers.
1036 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1038 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1039 Added PO files from Translation Project.
1041 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1044 Added support for non-ANSI compilers (ansi2knr).
1046 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1048 * configure.in: Bumped version number to 1.27.
1051 Added `bison.simple' to list of files removed by `make distclean'.
1053 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1055 * src/files.c, src/files.h:
1056 Defined locations of parser files in config.h instead of Makefile.
1058 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1060 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1061 Defined locations of parser files in config.h instead of Makefile.
1063 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1066 Removed inappropriate use of $< macro.
1068 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1070 * po/Makefile.in.in, po/POTFILES.in:
1071 Add `po' directory skeleton.
1073 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1075 * README: Document help-bison list.
1077 * configure.in: Add check for mkstemp().
1079 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1081 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1082 Hush a few compiler warnings.
1085 Add tryclose(), which verifies that fclose was successful.
1086 Hush a couple of compiler warnings.
1088 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1090 * Makefile.am, OChangeLog:
1091 ChangeLog is now automatically generated. Include the old version as
1094 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1096 * 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:
1099 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1101 * doc/bison.texinfo: Fix formatting glitch.
1103 * doc/bison.texinfo: Update FSF address.
1105 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1107 * acconfig.h: Update FSF address.
1109 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1112 Don't define PACKAGE here, since config.h defines it.
1114 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1116 * src/reader.c: Update copyright date.
1119 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1120 favor of output directly to stderr (avoids buffer overruns).
1122 * src/reader.c: Some checks for premature EOF.
1124 * 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:
1125 Use prototypes if the compiler understands them.
1127 * src/files.c: Honor TMPDIR on Unix hosts.
1128 Use prototypes if the compiler understands them.
1131 Fix a couple of buffer overrun bugs.
1132 Use prototypes if the compiler understands them.
1134 * src/system.h: Include unistd.h and ctype.h.
1135 Use #ifdef instead of #if for NLS symbols.
1137 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1139 * doc/bison.texinfo:
1140 Delete comment "consider using @set for edition number, etc..." since
1141 we now are doing so.
1143 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1146 Use prototypes if the compiler understands them.
1148 * NEWS: Document 1.26 highlights.
1150 * Makefile.am: Require Automake 1.3 or later.
1153 Use prototypes if the compiler understands them.
1155 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1158 Use VERSION symbol from automake for version number.
1160 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1162 * acconfig.h, configure.in, version.cin:
1163 Use VERSION symbol from automake for version number.
1165 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1168 Distribute original version of simple parser (bison.s1), not built
1169 version (bison.simple).
1171 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1173 * doc/bison.texinfo: Add info dir entry.
1175 * doc/bison.texinfo:
1176 Let automake put version number into documentation.
1178 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1180 * src/bison.cld, src/build.com, src/vmshlp.mar:
1181 Add non-RCS files from /gd/gnu/bison.
1183 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1186 Document the BISON_HAIRY and BISON_SIMPLE variables.
1188 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1190 * src/version.c: Build version.c automatically.
1193 Fix token numbering (used to start at 258, not 257).
1195 * src/system.h: Include config.h.
1197 * src/getargs.c: Update bug report address.
1199 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1200 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1202 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1205 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1207 * configure.in, version.cin:
1208 Build version.c automatically.
1210 * AUTHORS: Add AUTHORS file.
1212 * README: Update bug report address.
1215 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1217 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1220 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1222 * doc/bison.texinfo: Clean up some formatting.
1224 1998-05-05 Richard Stallman <rms@gnu.org>
1226 * doc/bison.texinfo:
1227 Explain better why to make a pure parser.
1229 1998-01-05 Richard Stallman <rms@gnu.org>
1231 * src/files.c (openfiles):
1232 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1233 find a temporary directory, if possible. Do not unlink files while
1236 1997-08-25 Richard Stallman <rms@gnu.org>
1238 * src/reader.c (stack_offset;):
1239 Change some warni to warns.
1241 * src/lex.c (literalchar): Use warns, not warni.
1243 1997-06-28 Richard Stallman <rms@gnu.org>
1245 * src/bison.s1: Add a Bison version comment.
1247 * src/main.c (fatal, warn, berror):
1250 1997-06-28 Richard Stallman <rms@gnu.org>
1252 * Makefile.in (bison_version): New variable.
1253 (dist): Use that variable.
1254 (bison.s1): Substitute the Bison version into bison.simple.
1256 * bison.simple: Add a Bison version comment.
1258 1997-06-18 Richard Stallman <rms@gnu.org>
1260 * src/main.c (fatal, warn, berror):
1261 Make error messages standard.
1262 (toomany): Improve error message text.
1264 * 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:
1265 new.h renamed to alloc.h.
1267 1997-06-18 Richard Stallman <rms@gnu.org>
1269 * Makefile.in: new.h renamed to alloc.h.
1271 1997-05-24 Richard Stallman <rms@gnu.org>
1273 * src/lex.c (literalchar):
1274 Fix the code for escaping \, " and '.
1276 (lex): Avoid trouble when there are many chars
1277 to discard in a char literal with just several chars in it.
1279 1997-05-17 Richard Stallman <rms@gnu.org>
1282 Use malloc, if using alloca is troublesome.
1283 (YYSTACK_USE_ALLOCA): New flag macro.
1284 Define it for some systems and compilers.
1285 (YYSTACK_ALLOC): New macro.
1286 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1287 If it was malloc'd, free it.
1289 1997-05-17 Richard Stallman <rms@gnu.org>
1292 Use malloc, if using alloca is troublesome.
1293 (YYSTACK_USE_ALLOCA): New flag macro.
1294 Define it for some systems and compilers.
1295 (YYSTACK_ALLOC): New macro.
1296 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1297 If it was malloc'd, free it.
1299 1997-04-23 Richard Stallman <rms@gnu.org>
1302 (alloca) [__hpux]: Always define as __builtin_alloca.
1304 1997-04-23 Richard Stallman <rms@gnu.org>
1307 (alloca) [__hpux]: Always define as __builtin_alloca.
1309 1997-04-22 Richard Stallman <rms@gnu.org>
1312 [__hpux]: Include alloca.h (right for HPUX 10)
1313 instead of declaring alloca (right for HPUX 9).
1315 * src/bison.s1 (__yy_memcpy):
1316 Declare arg `count' as unsigned int.
1317 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1319 1997-04-22 Richard Stallman <rms@gnu.org>
1322 [__hpux]: Include alloca.h (right for HPUX 10)
1323 instead of declaring alloca (right for HPUX 9).
1325 * bison.simple (__yy_memcpy):
1326 Declare arg `count' as unsigned int.
1327 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1329 1997-01-03 Richard Stallman <rms@gnu.org>
1331 * src/allocate.c: [__STDC__ or _MSC_VER]:
1332 Declare calloc and realloc to return void *.
1334 1997-01-02 Richard Stallman <rms@gnu.org>
1337 [_MSC_VER]: Include stdlib.h and process.h.
1338 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1340 * src/main.c (main): Return FAILURE as a value.
1341 (printable_version): Declare arg as int, not char.
1343 1997-01-02 Richard Stallman <rms@gnu.org>
1345 * Makefile.in (dist):
1346 Explicitly check for symlinks, and copy them.
1348 1996-12-19 Richard Stallman <rms@gnu.org>
1351 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1353 1996-12-18 Paul Eggert <eggert@gnu.org>
1355 * src/bison.s1 (yyparse):
1356 If __GNUC__ and YYPARSE_PARAM are both defined,
1357 declare yyparse to have a void * argument.
1359 1996-12-18 Paul Eggert <eggert@gnu.org>
1361 * bison.simple (yyparse):
1362 If __GNUC__ and YYPARSE_PARAM are both defined,
1363 declare yyparse to have a void * argument.
1365 1996-12-17 Richard Stallman <rms@gnu.org>
1367 * src/reduce.c (nbits): Add some casts.
1369 1996-08-12 Richard Stallman <rms@gnu.org>
1371 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1373 1996-08-12 Richard Stallman <rms@gnu.org>
1375 * bison.simple: Test _MSDOS as well as _MSDOS_.
1377 1996-07-31 Richard Stallman <rms@gnu.org>
1380 [__sun && __i386]: Include alloca.h.
1382 1996-07-31 Richard Stallman <rms@gnu.org>
1385 [__sun && __i386]: Include alloca.h.
1387 1996-07-30 Richard Stallman <rms@gnu.org>
1389 * src/bison.s1: Comment change.
1391 * src/bison.s1: Test _MSDOS_, not MSDOS.
1393 1996-07-30 Richard Stallman <rms@gnu.org>
1395 * bison.simple: Comment change.
1397 * bison.simple: Test _MSDOS_, not MSDOS.
1399 1996-06-01 Richard Stallman <rms@gnu.org>
1401 * 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:
1402 Insert `_' macro around many string constants.
1405 Insert `_' macro around many string constants.
1407 (main): Call setlocale, bindtextdomain and textdomain.
1409 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1410 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1411 [ENABLE_NLS]: Include libintl.h.
1412 [ENABLE_NLS] (gettext): Define.
1413 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1414 (N_, PACKAGE, LOCALEDIR): New macros.
1416 1996-06-01 Richard Stallman <rms@gnu.org>
1418 * POTFILES.in: New file.
1420 * Makefile.in (allocate.o):
1421 Define target explicitly.
1423 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1424 (LDFLAGS): Set to @LDFLAGS@.
1425 (configure): Run autoconf only if preceding `cd' succeeds.
1426 (bison.s1): Redirect output to temporary file then move the
1427 temporary to the target, rather than redirecting directly to bison.s1.
1428 (clean): Remove config.status and config.log.
1429 (distclean): Don't remove config.status here.
1431 1996-05-12 Richard Stallman <rms@gnu.org>
1434 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1436 1996-05-12 Richard Stallman <rms@gnu.org>
1439 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1441 1996-05-11 Richard Stallman <rms@gnu.org>
1443 * src/bison.s1 (__yy_memcpy):
1444 Really reorder the args, as was supposedly done on Feb 14 1995.
1445 (yyparse): Calls changed accordingly.
1447 1996-05-11 Richard Stallman <rms@gnu.org>
1449 * Makefile.in (dist): Don't use $(srcdir).
1451 * bison.simple (__yy_memcpy):
1452 Really reorder the args, as was supposedly done on Feb 14 1995.
1453 (yyparse): Calls changed accordingly.
1455 1996-01-27 Richard Stallman <rms@gnu.org>
1457 * src/output.c (output_rule_data):
1458 Test YYERROR_VERBOSE in the conditional
1459 around the definition of ttyname.
1461 1995-12-29 Richard Stallman <rms@gnu.org>
1464 Fix line numbers in #line commands.
1466 1995-12-29 Richard Stallman <rms@gnu.org>
1469 Fix line numbers in #line commands.
1471 1995-12-27 Richard Stallman <rms@gnu.org>
1473 * src/bison.s1 (YYPARSE_PARAM_DECL):
1474 In C++, make it always null.
1475 (YYPARSE_PARAM_ARG): New macro.
1476 (yyparse): Use YYPARSE_PARAM_ARG.
1478 1995-12-27 Richard Stallman <rms@gnu.org>
1480 * bison.simple (YYPARSE_PARAM_DECL):
1481 In C++, make it always null.
1482 (YYPARSE_PARAM_ARG): New macro.
1483 (yyparse): Use YYPARSE_PARAM_ARG.
1485 1995-11-29 Richard Stallman <rms@gnu.org>
1487 * doc/bison.texinfo:
1488 Describe literal string tokens, %raw, %no_lines, %token_table.
1490 1995-11-29 Daniel Hagerty <hag@gnu.org>
1492 * doc/bison.texinfo: Fixed update date
1494 1995-10-16 Richard Stallman <rms@gnu.org>
1496 * src/version.c: Version 1.25.
1498 1995-10-16 Richard Stallman <rms@gnu.org>
1500 * NEWS: *** empty log message ***
1502 1995-10-16 Richard Stallman <rms@gnu.org>
1504 * doc/bison.1, doc/bison.rnh:
1507 1995-10-15 Richard Stallman <rms@gnu.org>
1509 * src/vmsgetargs.c, src/getargs.c:
1510 Added -n, -k, and -raw switches.
1511 (noparserflag, toknumflag, rawtoknumflag): New variables.
1513 * src/symtab.h (SALIAS):
1514 New #define for adding aliases to %token.
1515 (struct bucket): Added `alias' field.
1517 * src/reduce.c (reduce_grammar):
1518 Revise error message.
1519 (print_notices): Remove final `.' from error message.
1521 * src/reader.c (reader_output_yylsp):
1523 (readgram): Use `#if 0' around code that accepted %command
1524 inside grammar rules: The documentation doesn't allow it,
1525 and it will fail since the %command processors scan for the next %.
1526 (parse_token_decl): Extended the %token
1527 declaration to allow a multi-character symbol as an alias.
1528 (parse_thong_decl): New function.
1529 (read_declarations): Added %thong declarations.
1530 (read_declarations): Handle NOOP to deal with allowing
1531 % declarations as another means to specify the flags.
1532 (readgram): Allow %prec prior to semantics embedded in a rule.
1533 (skip_to_char, read_declarations, copy_definition)
1534 (parse_token_decl, parse_start_decl, parse_type_decl)
1535 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1536 (get_type_name, copy_guard, copy_action, readgram)
1537 (get_type, packsymbols): Revised most error messages.
1538 Changed `fatal' to `warnxxx' to avoid aborting for error.
1539 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1540 (read_declarations): Improve the error message for
1541 an invalid character. Do not abort.
1542 (read_declarations, copy_guard, copy_action): Use
1543 printable_version to avoid unprintable characters in printed output.
1544 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1545 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1546 Allow the type of a non-terminal can be given
1547 more than once, as long as all specifications give the same type.
1550 (output_headers, output_trailers, output, output_gram)
1551 (output_rule_data): Implement noparserflag variable.
1552 Implement toknumflag variable.
1553 (output): Call reader_output_yylsp to output LTYPESTR.
1555 * src/main.c (main):
1556 If reader sees an error, don't process the grammar.
1557 (fatals): Updated to not use VARARGS1.
1558 (printable_version, int_to_string, warn, warni, warns, warnss)
1559 (warnsss): New error reporting functions. Avoid abort for error.
1562 Added THONG and NOOP for alias processing.
1563 Added SETOPT for the new code that allows setting options with %flags.
1566 Include getopt.h. Add some extern decls.
1567 (safegetc): New function to deal with EOF gracefully.
1568 (literalchar); new function to deal with reading \ escapes.
1569 (lex): Use literalchar.
1570 (lex): Implemented "..." tokens.
1571 (literalchar, lex, parse_percent_token): Made tokenbuffer
1572 always contain the token. This includes growing the token
1573 buffer while reading an integer.
1574 (parse_percent_token): Replaced if-else statement with percent_table.
1575 (parse_percent_token): Added % declarations as another
1576 way to specify the flags -n, -l, and -r. Also added hooks for
1577 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1578 major changes to files.c.
1579 (lex) Retain in the incoming stream a character following
1581 (skip_white_space, lex): Revised most error messages
1582 and changed fatal to warn to avoid aborting.
1583 (percent_table): Added %thong declarations.
1585 * src/gram.h: Comment changes.
1587 * src/files.c (openfiles, open_extra_files, done):
1589 and actfile file. Handle noparserflag. Both for -n switch.
1591 * src/conflicts.c (resolve_sr_conflict):
1592 Remove use of alloca.
1594 1995-06-01 Jim Meyering <meyering@gnu.org>
1596 * doc/bison.texinfo: *** empty log message ***
1598 1995-05-06 Richard Stallman <rms@gnu.org>
1600 * src/bison.s1: Comment change.
1602 1995-05-06 Richard Stallman <rms@gnu.org>
1604 * bison.simple: Comment change.
1606 1995-05-03 Richard Stallman <rms@gnu.org>
1608 * src/version.c: Version now 1.24.
1610 * src/bison.s1: Change distribution terms.
1612 * src/version.c: Version now 1.23.
1614 1995-05-03 Richard Stallman <rms@gnu.org>
1616 * doc/bison.texinfo:
1617 Rewrite "Conditions for Using Bison".
1618 Update version to 1.24.
1620 1995-05-03 Richard Stallman <rms@gnu.org>
1622 * bison.simple: Change distribution terms.
1624 1995-02-23 Richard Stallman <rms@gnu.org>
1626 * src/files.c: Test __VMS_POSIX as well as VMS.
1628 1995-02-14 Jim Meyering <meyering@gnu.org>
1630 * src/bison.s1 (__yy_memcpy):
1631 Renamed from __yy_bcopy to avoid
1632 confusion. Reverse FROM and TO arguments to be consistent with
1635 1995-02-14 Jim Meyering <meyering@gnu.org>
1637 * bison.simple (__yy_memcpy):
1638 Renamed from __yy_bcopy to avoid
1639 confusion. Reverse FROM and TO arguments to be consistent with
1642 1994-11-10 David J. MacKenzie <djm@gnu.org>
1648 * Makefile.in (DISTFILES): Include NEWS.
1650 * Makefile.in (DISTFILES):
1651 Include install-sh, not install.sh.
1653 * configure.in: Update to Autoconf v2 macro names.
1655 1994-10-05 David J. MacKenzie <djm@gnu.org>
1657 * Makefile.in: fix typo
1659 * Makefile.in (prefix, exec_prefix):
1660 Let configure set them.
1662 1994-09-28 David J. MacKenzie <djm@gnu.org>
1664 * Makefile.in: Set datadir to $(prefix)/share.
1666 1994-09-15 Richard Stallman <rms@gnu.org>
1669 Update copyright notice and GPL version.
1671 1994-09-15 Richard Stallman <rms@gnu.org>
1674 Update copyright notice and GPL version.
1676 1994-07-12 Richard Stallman <rms@gnu.org>
1678 * src/reduce.c, src/reader.c:
1681 1994-05-05 David J. MacKenzie <djm@gnu.org>
1683 * Makefile.in: entered into RCS
1685 1994-03-26 Richard Stallman <rms@gnu.org>
1687 * src/bison.s1: entered into RCS
1689 1994-03-26 Richard Stallman <rms@gnu.org>
1691 * bison.simple: entered into RCS
1693 1994-03-25 Richard Stallman <rms@gnu.org>
1695 * src/main.c: entered into RCS
1697 1994-03-24 Richard Stallman <rms@gnu.org>
1699 * src/conflicts.c: entered into RCS
1701 1994-01-02 Richard Stallman <rms@gnu.org>
1703 * Makefile.in: *** empty log message ***
1705 1993-11-21 Richard Stallman <rms@gnu.org>
1707 * src/bison.s1: *** empty log message ***
1709 1993-11-21 Richard Stallman <rms@gnu.org>
1711 * doc/bison.texinfo: entered into RCS
1713 * doc/bison.texinfo: *** empty log message ***
1715 1993-11-21 Richard Stallman <rms@gnu.org>
1717 * bison.simple: *** empty log message ***
1719 1993-10-25 David J. MacKenzie <djm@gnu.org>
1721 * doc/bison.texinfo: *** empty log message ***
1723 1993-10-19 Richard Stallman <rms@gnu.org>
1725 * src/bison.s1: *** empty log message ***
1727 1993-10-19 Richard Stallman <rms@gnu.org>
1729 * bison.simple: *** empty log message ***
1731 1993-10-14 Richard Stallman <rms@gnu.org>
1733 * src/bison.s1: *** empty log message ***
1735 1993-10-14 Richard Stallman <rms@gnu.org>
1737 * bison.simple: *** empty log message ***
1739 1993-09-14 David J. MacKenzie <djm@gnu.org>
1741 * doc/bison.texinfo: *** empty log message ***
1743 1993-09-13 Noah Friedman <friedman@gnu.org>
1745 * Makefile.in: *** empty log message ***
1747 1993-09-10 Richard Stallman <rms@gnu.org>
1749 * src/conflicts.c: *** empty log message ***
1751 * src/system.h: entered into RCS
1753 1993-09-10 Richard Stallman <rms@gnu.org>
1755 * doc/bison.1: entered into RCS
1757 1993-09-06 Noah Friedman <friedman@gnu.org>
1759 * src/version.c: entered into RCS
1761 1993-09-06 Noah Friedman <friedman@gnu.org>
1763 * Makefile.in: *** empty log message ***
1765 1993-07-30 David J. MacKenzie <djm@gnu.org>
1767 * Makefile.in: *** empty log message ***
1769 1993-07-24 Richard Stallman <rms@gnu.org>
1771 * src/bison.s1: *** empty log message ***
1773 1993-07-24 Richard Stallman <rms@gnu.org>
1775 * bison.simple: *** empty log message ***
1777 1993-07-08 David J. MacKenzie <djm@gnu.org>
1779 * Makefile.in: *** empty log message ***
1781 1993-07-04 Richard Stallman <rms@gnu.org>
1783 * src/bison.s1: *** empty log message ***
1785 1993-07-04 Richard Stallman <rms@gnu.org>
1787 * bison.simple: *** empty log message ***
1789 1993-06-26 David J. MacKenzie <djm@gnu.org>
1791 * src/getargs.c: entered into RCS
1793 1993-06-26 David J. MacKenzie <djm@gnu.org>
1795 * doc/bison.texinfo: *** empty log message ***
1797 * doc/bison.1: New file.
1799 1993-06-25 Richard Stallman <rms@gnu.org>
1801 * src/getargs.c: New file.
1803 1993-06-16 Richard Stallman <rms@gnu.org>
1805 * src/bison.s1: *** empty log message ***
1807 1993-06-16 Richard Stallman <rms@gnu.org>
1809 * bison.simple: *** empty log message ***
1811 1993-06-03 Richard Stallman <rms@gnu.org>
1813 * src/bison.s1: New file.
1815 1993-06-03 Richard Stallman <rms@gnu.org>
1817 * doc/bison.texinfo: *** empty log message ***
1819 1993-06-03 Richard Stallman <rms@gnu.org>
1821 * bison.simple: New file.
1823 1993-05-19 Richard Stallman <rms@gnu.org>
1825 * doc/bison.texinfo: New file.
1827 1993-05-07 Noah Friedman <friedman@gnu.org>
1829 * Makefile.in: *** empty log message ***
1831 1993-04-28 Noah Friedman <friedman@gnu.org>
1833 * src/reader.c: *** empty log message ***
1835 1993-04-23 Noah Friedman <friedman@gnu.org>
1837 * src/alloc.h: entered into RCS
1839 1993-04-20 David J. MacKenzie <djm@gnu.org>
1841 * src/version.c: *** empty log message ***
1843 * src/files.c, src/allocate.c:
1846 * src/reader.c: *** empty log message ***
1848 * src/lex.c: entered into RCS
1850 * src/conflicts.c: New file.
1852 * src/symtab.c: entered into RCS
1854 * src/alloc.h: New file.
1856 * src/LR0.c: entered into RCS
1858 1993-04-18 Noah Friedman <friedman@gnu.org>
1860 * src/reader.c: New file.
1862 * src/version.c: *** empty log message ***
1864 1993-04-18 Noah Friedman <friedman@gnu.org>
1866 * Makefile.in: *** empty log message ***
1868 1993-04-17 Noah Friedman <friedman@gnu.org>
1870 * Makefile.in: *** empty log message ***
1872 1993-04-15 Richard Stallman <rms@gnu.org>
1874 * src/main.c, src/files.c:
1877 1993-04-15 Noah Friedman <friedman@gnu.org>
1879 * configure.in: entered into RCS
1881 * configure.in: *** empty log message ***
1883 * configure.in: New file.
1885 1993-04-14 Richard Stallman <rms@gnu.org>
1887 * Makefile.in: New file.
1889 1993-04-13 Richard Stallman <rms@gnu.org>
1891 * src/version.c: New file.
1893 1993-03-25 Richard Stallman <rms@gnu.org>
1895 * src/output.c: entered into RCS
1897 1992-09-25 Richard Stallman <rms@gnu.org>
1899 * configure.bat: entered into RCS
1901 1992-06-22 Richard Stallman <rms@gnu.org>
1903 * src/vmsgetargs.c: entered into RCS
1905 1992-06-22 Richard Stallman <rms@gnu.org>
1907 * doc/bison.rnh: entered into RCS
1909 1992-04-20 David J. MacKenzie <djm@gnu.org>
1911 * README: entered into RCS
1913 1992-01-22 Richard Stallman <rms@gnu.org>
1915 * src/machine.h: entered into RCS
1917 1991-12-21 Richard Stallman <rms@gnu.org>
1919 * src/lalr.c, src/closure.c:
1922 1991-12-20 Richard Stallman <rms@gnu.org>
1924 * src/state.h: entered into RCS
1926 1991-12-18 Richard Stallman <rms@gnu.org>
1928 * src/print.c, src/nullable.c, src/derives.c:
1931 1991-11-03 David J. MacKenzie <djm@gnu.org>
1933 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1936 1988-09-09 Richard Stallman <rms@gnu.org>
1938 * src/bison.hairy: entered into RCS
1940 1987-12-16 Richard Stallman <rms@gnu.org>
1942 * REFERENCES: entered into RCS