1 2000-12-20 Akim Demaille <akim@epita.fr>
3 * src/files.c (open_files): Fix the computation of short_base_name
4 in the case of `-o foo.tab.c'.
6 2000-12-20 Akim Demaille <akim@epita.fr>
8 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
9 (copy_dollar): Now that everything uses obstacks, get rid of the
12 2000-12-20 Akim Demaille <akim@epita.fr>
14 * src/files.c (open_files): Actually the `.output' file is based
15 on the short_base_name, not base_name.
16 * tests/suite.at (Checking output file names): Adjust.
18 2000-12-20 Akim Demaille <akim@epita.fr>
20 * src/bison.s1: Remove, we now use directly...
21 * src/bison.simple: this.
22 * src/Makefile.am: Use pkgdata instead of data.
24 2000-12-20 Akim Demaille <akim@epita.fr>
26 * src/files.c (guard_obstack): New.
27 (open_files): Initialize it.
28 (output_files): Dump it...
29 * src/files.h: Export it.
30 * src/reader.c (copy_guard): Use it.
32 2000-12-19 Akim Demaille <akim@epita.fr>
34 * src/files.c (outfile, defsfile, actfile): Removed as global
36 (open_files): Don't compute them.
37 (output_files): Adjust.
38 (base_name, short_base_name): Be global.
41 2000-12-19 Akim Demaille <akim@epita.fr>
43 * src/files.c (strsuffix): New.
44 (stringappend): Be just like strcat but allocate.
45 (base_names): Eve out from open_files.
46 Try to simplify the rather hairy computation of base_name and
49 * tests/suite.at (Checking output file names): New test.
51 2000-12-19 Akim Demaille <akim@epita.fr>
53 * src/system.h (obstack_grow_literal_string): Rename as...
54 (obstack_grow_string): this.
55 * src/output.c (output_parser): Recognize `%% actions' instead of
57 * src/bison.s1: s/$/%% actions/.
58 * src/bison.hairy: Likewise.
60 2000-12-19 Akim Demaille <akim@epita.fr>
62 * src/output.c (output_parser): Compute the `#line' lines when
64 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
65 Suggested by Hans Aberg.
67 2000-12-19 Akim Demaille <akim@epita.fr>
69 Let the handling of the skeleton files be local to the procedures
72 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
74 (fparser, open_extra_files): Remove.
75 (open_files, output_files): Don't take care of fparser.
76 * src/files.h: Adjust.
77 * src/output.c (output_parser): Open and close the file to the
79 * src/reader.c (read_declarations): When %semantic_parser, open
82 2000-12-19 Akim Demaille <akim@epita.fr>
84 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
85 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
87 2000-12-19 Akim Demaille <akim@epita.fr>
89 * src/files.c (open_files): Yipee! We no longer need all the code
90 looking for `/tmp' since we have no tmp file.
92 2000-12-19 Akim Demaille <akim@epita.fr>
94 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
96 * src/files.c (open_files): Less dependency on MSDOS etc.
98 2000-12-14 Akim Demaille <akim@epita.fr>
100 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
101 Provide a default definition.
102 Use it when executing the default @ action.
103 * src/reader.c (reader_output_yylsp): No longer include
104 `timestamp' and `text' in the default YYLTYPE.
106 2000-12-12 Akim Demaille <akim@epita.fr>
108 * src/reader.c (copy_definition, parse_union_decl, copy_action)
109 (copy_guard): Quote the file names.
110 Reported by Laurent Mascherpa.
112 2000-12-12 Akim Demaille <akim@epita.fr>
114 * src/output.c (output_headers, output_program, output): Be sure
115 to escape special characters when outputting filenames.
116 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
117 (output_headers): Don't depend on them, Use ACTSTR.
119 2000-11-17 Akim Demaille <akim@epita.fr>
121 * lib/obstack.h: Formatting changes.
122 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
123 prevents type checking.
124 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
125 cast the value to (void *): assigning a `foo *' to a `void *'
127 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
131 2000-11-17 Akim Demaille <akim@epita.fr>
133 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
135 (suite.m4, regression.m4, calc.m4): these.
136 * tests/atgeneral.m4: Update from CVS Autoconf.
138 2000-11-17 Akim Demaille <akim@epita.fr>
140 * tests/regression.m4 (%union and --defines): New test,
141 demonstrating a current bug in the obstack implementation.
143 2000-11-17 Akim Demaille <akim@epita.fr>
145 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
147 Use them to declare the variables which are global or local to
150 2000-11-17 Akim Demaille <akim@epita.fr>
152 * acconfig.h: Remove, no longer used.
154 2000-11-07 Akim Demaille <akim@epita.fr>
156 * src: s/Copyright (C)/Copyright/g.
158 2000-11-07 Akim Demaille <akim@epita.fr>
160 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
162 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
164 2000-11-07 Akim Demaille <akim@epita.fr>
166 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
167 Merge in a single CPP if/else.
169 2000-11-07 Akim Demaille <akim@epita.fr>
171 * src/output.c (output): Remove useless variables.
172 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
173 argument `data' for consistency with the prototypes.
175 (obstack_copy, obstack_copy0): Rename the second argument as
176 `address' for consistency. Qualify it `const'.
177 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
178 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
179 `const' their input argument (`data' or `address').
180 Adjust the corresponding macros to include `const' in casts.
182 2000-11-03 Akim Demaille <akim@epita.fr>
184 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
185 s/PFILE1/BISON_HAIRY/.
188 2000-11-03 Akim Demaille <akim@epita.fr>
190 For some reason, this was not applied.
192 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
193 `unlink': it's no longer used.
195 2000-11-03 Akim Demaille <akim@epita.fr>
197 * src/files.c (skeleton_find): New function, eved out of...
198 (open_files, open_extra_files): here.
200 2000-11-03 Akim Demaille <akim@epita.fr>
204 * src/files.c (obstack_save): New function.
206 (output_files): this.
208 * src/main.c (main): Don't use `atexit' to register `done', since
209 it no longer has to remove tmp files, just call `output_files'
210 when there are no errors.
212 2000-11-02 Akim Demaille <akim@epita.fr>
214 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
215 `unlink': it's no longer used.
216 * src/files.h: Formatting changes.
218 2000-11-02 Akim Demaille <akim@epita.fr>
220 Remove the last uses of mktemp and unlink/delete.
222 * src/files.c (fdefines, ftable): Removed.
223 (defines_ostack, table_obstack): New.
224 Adjust dependencies of the former into uses of the latter.
225 * src/output.c (output_short_or_char_table, output_short_table):
226 Convert to using obstacks.
227 * src/reader.c (copy_comment2): Accept one FILE * and two
229 (output_token_defines, reader_output_yylsp): Use obstacks.
230 * src/system.h (obstack_fgrow3): New.
232 2000-11-01 Akim Demaille <akim@epita.fr>
234 Change each use of `fattrs' into a use of `attrs_obstack'.
236 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
237 * src/files.c (fattrs): Remove.
238 (attrs_obstack): New.
239 Adjust all dependencies.
240 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
242 2000-11-01 Akim Demaille <akim@epita.fr>
245 Change each use of `faction' into a use of `action_obstack'.
247 * lib/obstack.h, lib/obstack.c: New files.
248 * src/files.c (faction): Remove.
249 (action_obstack): New.
250 Adjust all dependencies.
252 2000-10-20 Akim Demaille <akim@epita.fr>
254 * lib/quote.h (PARAMS): New macro. Use it.
256 2000-10-16 Akim Demaille <akim@epita.fr>
258 * src/output.c (output_short_or_char_table): New function.
259 (output_short_table, output_token_translations): Use it.
260 (goto_actions): Use output_short_table.
262 2000-10-16 Akim Demaille <akim@epita.fr>
264 * src/symtab.c (bucket_new): New function.
267 * src/output.c (output_short_table): New argument to display the
268 comment associated with the table.
270 (output_gram): Use it.
271 (output_rule_data): Nicer output layout for YYTNAME.
273 2000-10-16 Akim Demaille <akim@epita.fr>
275 * src/lex.c (read_typename): New function.
277 * src/reader.c (copy_dollar): Likewise.
279 2000-10-16 Akim Demaille <akim@epita.fr>
281 * src/reader.c (copy_comment2): Expect the input stream to be on
282 the `/' which is suspected to open a comment, instead of being
283 called after `//' or `/*' was read.
284 (copy_comment, copy_definition, parse_union_decl, copy_action)
285 (copy_guard): Adjust.
287 2000-10-16 Akim Demaille <akim@epita.fr>
289 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
290 `read_signed_integer'.
292 2000-10-16 Akim Demaille <akim@epita.fr>
294 * src/reader.c (copy_dollar): New function.
295 (copy_guard, copy_action): Use it.
297 2000-10-16 Akim Demaille <akim@epita.fr>
299 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
300 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
301 New files, from Fileutils 4.0.27.
302 * src/main.c (printable_version): Remove.
303 * src/lex.c, src/reader.c: Use `quote'.
305 2000-10-04 Akim Demaille <akim@epita.fr>
307 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
309 2000-10-04 Akim Demaille <akim@epita.fr>
311 * doc/bison.texinfo: Various typos spotted by Neil Booth.
313 2000-10-04 Akim Demaille <akim@epita.fr>
315 When a literal string is used to define two different tokens,
316 `bison -v' segfaults.
317 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
319 * tests/regression.m4: New file.
320 Include the core of the sample provided by Piotr Gackiewicz.
321 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
324 2000-10-04 Akim Demaille <akim@epita.fr>
326 * src/reader.c (parse_expect_decl): Keep `count' within the size
330 2000-10-02 Paul Eggert <eggert@twinsun.com>
332 * bison.s1 (yyparse): Assign the default value
333 unconditionally, to avoid a GCC warning and make the parser a
336 2000-10-02 Akim Demaille <akim@epita.fr>
338 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
341 2000-10-02 Akim Demaille <akim@epita.fr>
343 * src/derives.c, src/print.c, src/reduce.c: To ease the
344 translation, move some `\n' out of the translated strings.
346 2000-10-02 Akim Demaille <akim@epita.fr>
348 The location tracking mechanism is precious for parse error
349 messages. Nevertheless, it is enabled only when `@n' is used in
350 the grammar, which is a different issue (you can use it in error
351 message, but not in the grammar per se). Therefore, there should
352 be another means to enable it.
354 * src/getargs.c (getargs): Support `--locations'.
356 * src/getargs.h (locationsflag): Export it.
357 * src/lex.c (percent_table): Support `%locations'.
358 * src/reader.c (yylsp_needed): Remove this variable, now replaced
359 with `locationsflag'.
360 * doc/bison.texinfo: Document `--locations' and `%locations'.
362 * tests/calc.m4: Test it.
364 For regularity of the names, replace each
365 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
366 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
367 In addition replace each `flag' with `_flag'.
369 2000-10-02 Akim Demaille <akim@epita.fr>
371 Also test parse error messages, including with YYERROR_VERBOSE.
373 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
375 Use it to check the computations.
376 Use it to check `nonassoc' is honored.
377 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
379 (_AT_CHECK_CALC): Adjust to this option.
380 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
382 2000-10-02 Akim Demaille <akim@epita.fr>
384 Test also `--verbose', `--defines' and `--name-prefix'. Testing
385 the latter demonstrates a flaw in the handling of non debugging
386 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
387 was used in order to simplify:
403 unfortunately this leads to a CPP conflict when
404 `--name-prefix=foo' is used since it produces `#define yydebug
407 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
408 (YYDPRINTF): New macro.
410 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
412 Also test `--verbose', `--defines' and `--name-prefix'.
414 2000-10-02 Akim Demaille <akim@epita.fr>
416 Improve the readability of the produced parsers.
418 * src/bison.s1: Formatting changes.
419 Improve the comment related to the `$' mark.
420 (yydefault): Don't fall through to `yyresume': `goto' there.
421 * src/output.c (output_parser): When the `$' is met, skip the end
423 New variable, `number_of_dollar_signs', to check there's exactly
424 one `$' in the parser skeleton.
426 2000-10-02 Akim Demaille <akim@epita.fr>
428 * lib/xstrdup.c: New file, from the fileutils.
429 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
430 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
431 instead of strlen + xmalloc + strcpy.
432 * src/symtab.c (copys): Remove, use xstrdup instead.
434 2000-10-02 Akim Demaille <akim@epita.fr>
436 * src/gram.h (associativity): New enum type which replaces the
437 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
438 `right_assoc', `left_assoc' and `non_assoc'.
439 Adjust all dependencies.
440 * src/reader.c: Formatting changes.
441 (LTYPESTR): Don't define it, use it as a literal in
442 `reader_output_yylsp'.
443 * src/symtab.h (symbol_class): New enum type which replaces the
444 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
445 `sunknown', `stoken and `snterm'.
447 2000-10-02 Akim Demaille <akim@epita.fr>
449 * src/getargs.c (fixed_outfiles): Rename as...
450 (yaccflag): for consistency and accuracy.
453 2000-10-02 Akim Demaille <akim@epita.fr>
455 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
456 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
457 difficult and introduced a lot of core dump. It turns out that
458 Bison used an implementation of `xmalloc' based on `calloc', and
459 at various places it does depend upon the initialization to 0. I
460 have not tried to isolate the pertinent places, and all the former
461 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
462 someone should address this issue.
464 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
465 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
468 * src/warshall.h: New file.
471 2000-10-02 Akim Demaille <akim@epita.fr>
473 Various anti-`extern in *.c' changes.
475 * src/system.h: Include `assert.h'.
477 2000-10-02 Akim Demaille <akim@epita.fr>
479 * src/state.h (nstates, final_state, first_state, first_shift)
480 (first_reduction): Move their exportation from here...
481 * src/LR0.h: to here.
483 * src/getargs.c (statisticsflag): New variable.
484 Add support for `--statistics'.
487 Remove a lot of now useless `extern' statements in most files.
489 2000-10-02 Akim Demaille <akim@epita.fr>
491 * src/LR0.h: New file.
494 2000-10-02 Akim Demaille <akim@epita.fr>
496 * src/print.h: New file.
498 * src/print.c: Formatting and ordering changes.
499 (verbose, terse): Replace with...
500 (print_results): this new function.
503 2000-10-02 Akim Demaille <akim@epita.fr>
505 * src/conflicts.c (conflict_report): New function.
506 (conflict_log, verbose_conflict_log): Replace with...
507 (print_conflicts): this function.
509 * src/conflicts.h: New file.
510 Propagate its inclusion.
512 2000-10-02 Akim Demaille <akim@epita.fr>
514 * src/nullable.h: New file.
515 Propagate its inclusion.
516 * src/nullable.c: Formatting changes.
518 2000-10-02 Akim Demaille <akim@epita.fr>
520 * src/reduce.h: New file.
521 Propagate its inclusion.
522 * src/reduce.c: Topological sort and other formatting changes.
523 (bool, TRUE, FALSE): Move their definition to...
524 * src/system.h: here.
526 2000-10-02 Akim Demaille <akim@epita.fr>
528 * src/files.c: Formatting changes.
529 (tryopen, tryclose, openfiles): Rename as...
530 (xfopen, xfclose, open_files): this.
531 (stringappend): static.
532 * src/files.h: Complete the list of exported symbols.
535 2000-10-02 Akim Demaille <akim@epita.fr>
537 * src/reader.h: New file.
538 Propagate its use instead of tedious list of `extern' and
540 * src/reader.c: Formatting changes, topological sort,
543 2000-10-02 Akim Demaille <akim@epita.fr>
545 * src/lex.h: Prototype `lex.c' exported functions.
546 * src/reader.c: Adjust.
547 * src/lex.c: Formatting changes.
548 (safegetc): Rename as...
551 2000-10-02 Akim Demaille <akim@epita.fr>
553 * src/lalr.h: New file.
554 Propagate its inclusion instead of prototypes and `extern'.
555 * src/lalr.c: Formatting changes, topological sorting etc.
557 2000-10-02 Akim Demaille <akim@epita.fr>
559 * src/output.c (token_actions): Introduce a temporary array,
560 YYDEFACT, that makes it possible for this function to use
563 2000-10-02 Akim Demaille <akim@epita.fr>
565 `user_toknums' is output as a `short[]' in `output.c', while it is
566 defined as a `int[]' in `reader.c'. For consistency with the
567 other output tables, `user_toknums' is now defined as a table of
570 * src/reader.c (user_toknums): Be a short table instead of an int
574 Factor the short table outputs.
576 * src/output.c (output_short_table): New function.
577 * src/output.c (output_gram, output_stos, output_rule_data)
578 (output_base, output_table, output_check): Use it.
580 2000-10-02 Akim Demaille <akim@epita.fr>
582 * src/output.c (output): Topological sort of the functions, in
583 order to get rid of the `static' prototypes.
584 No longer use `register'.
585 * src/output.h: New file.
586 Propagate its inclusion in files explicitly prototyping functions
589 2000-09-21 Akim Demaille <akim@epita.fr>
591 * src/atgeneral.m4: Update from Autoconf.
593 2000-09-21 Akim Demaille <akim@epita.fr>
595 * src/closure.h: New file.
596 * src/closure.c: Formatting changes, topological sort over the
597 functions, use of closure.h.
598 (initialize_closure, finalize_closure): Rename as...
599 (new_closure, free_closure): these. Adjust dependencies.
600 * src/LR0.c: Formatting changes, topological sort, use of
602 (initialize_states): Rename as...
604 * src/Makefile.am (noinst_HEADERS): Adjust.
606 2000-09-20 Akim Demaille <akim@epita.fr>
608 * src/acconfig.h: Don't protect config.h against multiple
611 * src/system.h: Define PARAMS.
612 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
613 purpose of config.h. system.h must not try to fix wrong
614 definitions in config.h.
616 2000-09-20 Akim Demaille <akim@epita.fr>
618 * src/derives.h: New file.
619 * src/main.c, src/derives.h: Use it.
621 * src/Makefile.am (noinst_HEADERS): Adjust.
623 2000-09-20 Akim Demaille <akim@epita.fr>
625 * tests/atgeneral.m4: Update from Autoconf.
626 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
627 (AT_CHECK_CALC): New macros.
628 Use these macros to test bison with options `', `--raw',
629 `--debug', `--yacc', `--yacc --debug'.
631 2000-09-19 Akim Demaille <akim@epita.fr>
633 * src/output.c: Formatting changes.
634 * src/machine.h: Remove, leaving its contents in...
635 * src/system.h: here.
637 Adjust all dependencies on stdio.h and machine.h.
638 * src/getargs.h: New file.
639 Let all `extern' declarations about getargs.c be replaced with
640 inclusion of `getargs.h'.
641 * src/Makefile.am (noinst_HEADERS): Adjust.
643 * tests/calc.m4 (yyin): Be initialized in main, not on the global
645 (yyerror): Returns void, not int.
646 * doc/bison.texinfo: Formatting changes.
648 2000-09-19 Akim Demaille <akim@epita.fr>
650 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
653 2000-09-18 Akim Demaille <akim@epita.fr>
655 * configure.in: Append WARNING_CFLAGS to CFLAGS.
656 * src/Makefile.am (INCLUDES): Don't.
657 Be ready to fetch headers in lib/.
659 2000-09-18 Akim Demaille <akim@epita.fr>
661 * doc/bison.texinfo: Update the copyright.
662 ANSIfy and GNUify the examples.
665 2000-09-18 Akim Demaille <akim@epita.fr>
667 First set of tests: use the `calc' example from the documentation.
669 * src/bison.s1 (yyparse): Condition the code using `yytname' which
670 is defined only when YYDEBUG is.
671 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
672 * src/files.c (tryopen, tryclose): Formatting changes.
673 Move to the top and be static.
674 * src/reader.c (read_signed_integer): Likewise.
675 * tests/calc.m4: New file.
676 * Makefile.am, suite.m4: Adjust.
677 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
679 2000-09-18 Akim Demaille <akim@epita.fr>
681 Add support for an Autotest test suite for Bison.
683 * m4/m4.m4, m4/atconfig.m4: New files.
684 * m4/Makefile.am (EXTRA_DIST): Adjust.
685 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
687 * src/getargs.c: Display a more standard --version message.
688 * src/reader.c (reader): Formatting changes.
689 No longer depend upon VERSION_STRING.
690 * configure.in: No longer use `dnl'.
691 Set up the test suite and the new directory `tests/.
692 (VERSION_STRING): Remove.
694 2000-04-14 Akim Demaille <akim@epita.fr>
696 * src/reader.c (copy_comment2): New function, same as former
697 `copy_comment', but outputs into two FILE *.
698 (copy_comment): Use it.
699 (parse_union_decl): Use it.
700 (get_type, parse_start_decl): Use the same `invalid' message.
701 (parse_start_decl, parse_union_decl): Use the same `multiple'
703 (parse_union_decl, copy_guard, copy_action): Use the same
705 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
707 2000-03-31 Akim Demaille <akim@epita.fr>
709 * src/files.c (tryopen, tryclose): Move to the top.
712 2000-03-31 Akim Demaille <akim@epita.fr>
714 * src/main.c (main): Don't call `done', exit does it.
716 2000-03-31 Akim Demaille <akim@epita.fr>
718 * allocate.c: s/return (foo)/return foo/.
721 * output.c: Likewise.
722 * reader.c: Likewise.
723 * symtab.c: Likewise.
724 * vmsgetargs.c: Likewise.
726 2000-03-31 Akim Demaille <akim@epita.fr>
728 Clean up the error reporting functions.
730 * src/report.c: New file.
731 * src/report.h: Likewise.
732 * src/Makefile.am: Adjust.
733 * m4/error.m4: New file.
734 * m4/Makefile.am: Adjust.
735 * configure.in (jm_PREREQ_ERROR): Call it.
736 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
738 (fatal, fatals): Remove. All callers use complain.c::fatal.
739 (warn, warni, warns, warnss, warnss): Remove. All callers use
740 complain.c::complain.
741 (toomany): Remove, use fatal instead.
742 * src/files.c (done): No argument, use complain_message_count.
743 * src/main.c (main): Register `done' to `atexit'.
745 * src/getargs.c (usage): More `fputs', less `fprintf'.
747 2000-03-28 Akim Demaille <akim@epita.fr>
749 * lib/: New directory.
750 * Makefile.am (SUBDIRS): Adjust.
751 * configure.in: Adjust.
752 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
754 * src/alloca.c: Moved to lib/.
755 * src/getopt.c: Likewise.
756 * src/getopt1.c: Likewise.
757 * src/getopt.h: Likewise.
758 * src/ansi2knr.c: Likewise.
759 * src/ansi2knr.1: Likewise.
760 * src/Makefile.am: Adjust.
761 * lib/Makefile.am: New file.
763 2000-03-28 Akim Demaille <akim@epita.fr>
765 * src/getargs.c (usage): Refresh the help message.
767 2000-03-17 Akim Demaille <akim@epita.fr>
769 * src/getopt1.c: Updated from textutils 2.0e
770 * src/getopt.c: Likewise.
771 * src/getopt.h: Likewise.
773 2000-03-17 Akim Demaille <akim@epita.fr>
775 * src/Makefile.am (bison.simple): Fix the awk program: quote only
776 the file name, not the whole `#line LINE FILE'.
778 2000-03-17 Akim Demaille <akim@epita.fr>
780 On syntax errors, report the token on which we choked.
782 * src/bison.s1 (yyparse): In the label yyerrlab, when
783 YYERROR_VERBOSE, add yychar in msg.
785 2000-03-17 Akim Demaille <akim@epita.fr>
787 * src/reader.c (copy_at): New function.
788 (copy_guard): Use it.
789 (copy_action): Use it.
791 2000-03-17 Akim Demaille <akim@epita.fr>
793 Be kind to translators, save some useless translations.
795 * src/main.c (banner): New function.
796 (fatal_banner): Use it.
797 (warn_banner): Use it.
799 2000-03-17 Akim Demaille <akim@epita.fr>
801 * src/reader.c (copy_definition): Use copy_string and
802 copy_comment. Removed now unused `match', `ended',
804 (copy_comment, copy_string): Moved, to be visible from
807 2000-03-17 Akim Demaille <akim@epita.fr>
809 * src/reader.c (copy_string): Declare `static inline'. No
810 problems with inline, since it is checked by configure.
811 (copy_comment): Likewise.
813 2000-03-17 Akim Demaille <akim@epita.fr>
815 * src/reader.c (packsymbols): Formatting changes.
817 2000-03-17 Akim Demaille <akim@epita.fr>
819 * src/reader.c (copy_comment): New function, factored out from:
820 (copy_action): Use it. Removed now unused `match', `ended',
822 (copy_guard): Likewise.
824 2000-03-17 Akim Demaille <akim@epita.fr>
826 * src/reader.c (copy_string): New function, factored out from:
827 (copy_action): Use it.
828 (copy_guard): Likewise.
830 2000-03-17 Akim Demaille <akim@epita.fr>
832 Change the handling of @s so that they behave exactly like $s.
833 There is now a pseudo variable @$ (readble and writable), location
834 of the lhs of the rule (by default ranging from the location of
835 the first symbol of the rhs, to the location of the last symbol,
836 or, if the rhs is empty, YYLLOC).
838 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
840 (yyparse): When providing a default semantic action, provide a
841 default location action.
842 (after the $): No longer change `*YYLSP', just stack YYLOC the
843 same way you stack YYVAL.
844 * src/reader.c (read_declarations): Use warns.
845 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
846 (copy_action, case '@'): Likewise.
847 Use a standard error message, to save useless work from
850 2000-03-17 Akim Demaille <akim@epita.fr>
852 * src/bison.s1: Formatting and cosmetics changes.
853 * src/reader.c: Likewise.
854 Update the Copyright notice.
856 2000-03-17 Akim Demaille <akim@epita.fr>
858 * src/bison.s1 (#line): All set to `#line' only, since the
859 Makefile now handles them.
861 2000-03-16 Akim Demaille <akim@epita.fr>
863 * src/output.c (output_rule_data): Output the documentation of
865 (Copyright notice): Update.
868 2000-03-16 Akim Demaille <akim@epita.fr>
870 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
871 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
872 One `#if YYDEBUG' remains, since it uses variables which are
873 defined only if `YYDEBUG != 0'.
875 2000-03-16 Akim Demaille <akim@epita.fr>
877 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
878 and related variables so that the similarities are highlighted.
880 2000-03-16 Akim Demaille <akim@epita.fr>
882 * src/bison.s1: Properly indent CPP directives.
884 2000-03-16 Akim Demaille <akim@epita.fr>
886 * src/bison.s1: Properly indent the `alloca' CPP section.
888 2000-03-16 Akim Demaille <akim@epita.fr>
890 Do not hard code values of directories in `configure.in'.
891 Update the `configure' tool chain.
893 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
895 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
896 (AC_OUTPUT): Add m4/Makefile.
897 Bump to bison 1.28a, 1.29 has never been released.
898 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
899 handled via src/Makefile.am.
900 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
901 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
903 * Makefile.am (SUBDIRS): Add m4.
904 (ACLOCAL_AM_FLAGS): New variable.
905 (AUTOMAKE_OPTIONS): Add check-news.
906 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
907 the proper line number and file name.
908 (DEFS): Propagate the location of bison library files and of the
910 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
912 * acinclude.m4: Remove, replaced by the directory m4.
913 * m4/Makefile.am (EXTRA_DIST): New variable.
914 * m4/gettext.m4: New file, from the fileutils.
915 * m4/lcmessage.m4: Likewise
916 * m4/progtest.m4: Likewise.
917 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
919 2000-03-10 Akim Demaille <akim@epita.fr>
922 Formatting changes of various comments.
923 Respect the GNU coding standards at various places.
924 Don't use `_()' when no translation is needed.
926 1999-12-13 Jesse Thilo <jthilo@gnu.org>
929 OS/2 honors TMPDIR environment variable.
931 1999-12-13 Jesse Thilo <jthilo@gnu.org>
933 * doc/bison.texinfo: Tweaked spelling and grammar.
935 Removed reference to price of printed copy.
936 Mention BISON_SIMPLE and BISON_HAIRY.
938 1999-12-13 Jesse Thilo <jthilo@gnu.org>
940 * configure.in, NEWS:
943 1999-10-27 Jesse Thilo <jthilo@gnu.org>
945 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
946 Added reference card.
948 1999-07-26 Jesse Thilo <jthilo@gnu.org>
950 * po/ru.po: Added Russian translation.
952 1999-07-26 Jesse Thilo <jthilo@gnu.org>
954 * configure.in: Added Russian translation.
956 1999-07-06 Jesse Thilo <jthilo@gnu.org>
958 * configure.in, NEWS, README:
959 Released version 1.28.
961 1999-06-14 Jesse Thilo <jthilo@gnu.org>
964 Squashed redefinition warning on some systems.
966 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
967 Have configure build version string instead of relying on ANSI string
970 1999-06-14 Jesse Thilo <jthilo@gnu.org>
972 * po/POTFILES.in: Got rid of version.c.
974 1999-06-14 Jesse Thilo <jthilo@gnu.org>
976 * acconfig.h, configure.in:
977 Have configure build version string instead of relying on ANSI string
980 1999-06-08 Jesse Thilo <jthilo@gnu.org>
983 Dropped mention of `+' for long-named options.
985 1999-05-30 Jesse Thilo <jthilo@gnu.org>
987 * src/files.c: Added <unistd.h> for unlink().
989 * src/Makefile.am, src/system.h:
992 1999-05-30 Jesse Thilo <jthilo@gnu.org>
994 * README: Added a FAQ list.
996 * configure.in, acconfig.h:
999 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1001 * doc/FAQ, doc/Makefile.am:
1004 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1006 * src/alloc.h, src/symtab.h, src/version.c:
1007 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1009 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1011 * src/.cvsignore, src/Makefile.am:
1012 Reorganized: sources in `src', documentation in `doc'.
1014 * src/lex.c (literalchar):
1015 fixed the code for escaping double quotes (thanks
1018 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1020 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1021 Adjusted paths to reflect directory reorganization.
1023 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1025 * doc/.cvsignore, doc/Makefile.am:
1026 Reorganized: sources in `src', documentation in `doc'.
1028 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1031 Updated AC_INIT file to reflect directory reorganization.
1033 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1034 Reorganized: sources in `src', documentation in `doc'.
1036 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1039 Don't declare calloc() and realloc() if not necessary.
1041 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1043 * configure.in, acconfig.h, acinclude.m4:
1044 Don't declare calloc() and realloc() if not necessary.
1046 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1048 * po/.cvsignore: Added i18n support.
1050 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1052 * acconfig.h, configure.in, Makefile.am:
1055 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1057 * src/bison.s1: Fixed #line numbers.
1059 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1061 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1062 Added PO files from Translation Project.
1064 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1067 Added support for non-ANSI compilers (ansi2knr).
1069 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1071 * configure.in: Bumped version number to 1.27.
1074 Added `bison.simple' to list of files removed by `make distclean'.
1076 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1078 * src/files.c, src/files.h:
1079 Defined locations of parser files in config.h instead of Makefile.
1081 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1083 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1084 Defined locations of parser files in config.h instead of Makefile.
1086 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1089 Removed inappropriate use of $< macro.
1091 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1093 * po/Makefile.in.in, po/POTFILES.in:
1094 Add `po' directory skeleton.
1096 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1098 * README: Document help-bison list.
1100 * configure.in: Add check for mkstemp().
1102 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1104 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1105 Hush a few compiler warnings.
1108 Add tryclose(), which verifies that fclose was successful.
1109 Hush a couple of compiler warnings.
1111 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1113 * Makefile.am, OChangeLog:
1114 ChangeLog is now automatically generated. Include the old version as
1117 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1119 * 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:
1122 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1124 * doc/bison.texinfo: Fix formatting glitch.
1126 * doc/bison.texinfo: Update FSF address.
1128 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1130 * acconfig.h: Update FSF address.
1132 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1135 Don't define PACKAGE here, since config.h defines it.
1137 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1139 * src/reader.c: Update copyright date.
1142 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1143 favor of output directly to stderr (avoids buffer overruns).
1145 * src/reader.c: Some checks for premature EOF.
1147 * 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:
1148 Use prototypes if the compiler understands them.
1150 * src/files.c: Honor TMPDIR on Unix hosts.
1151 Use prototypes if the compiler understands them.
1154 Fix a couple of buffer overrun bugs.
1155 Use prototypes if the compiler understands them.
1157 * src/system.h: Include unistd.h and ctype.h.
1158 Use #ifdef instead of #if for NLS symbols.
1160 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1162 * doc/bison.texinfo:
1163 Delete comment "consider using @set for edition number, etc..." since
1164 we now are doing so.
1166 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1169 Use prototypes if the compiler understands them.
1171 * NEWS: Document 1.26 highlights.
1173 * Makefile.am: Require Automake 1.3 or later.
1176 Use prototypes if the compiler understands them.
1178 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1181 Use VERSION symbol from automake for version number.
1183 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1185 * acconfig.h, configure.in, version.cin:
1186 Use VERSION symbol from automake for version number.
1188 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1191 Distribute original version of simple parser (bison.s1), not built
1192 version (bison.simple).
1194 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1196 * doc/bison.texinfo: Add info dir entry.
1198 * doc/bison.texinfo:
1199 Let automake put version number into documentation.
1201 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1203 * src/bison.cld, src/build.com, src/vmshlp.mar:
1204 Add non-RCS files from /gd/gnu/bison.
1206 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1209 Document the BISON_HAIRY and BISON_SIMPLE variables.
1211 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1213 * src/version.c: Build version.c automatically.
1216 Fix token numbering (used to start at 258, not 257).
1218 * src/system.h: Include config.h.
1220 * src/getargs.c: Update bug report address.
1222 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1223 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1225 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1228 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1230 * configure.in, version.cin:
1231 Build version.c automatically.
1233 * AUTHORS: Add AUTHORS file.
1235 * README: Update bug report address.
1238 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1240 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1243 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1245 * doc/bison.texinfo: Clean up some formatting.
1247 1998-05-05 Richard Stallman <rms@gnu.org>
1249 * doc/bison.texinfo:
1250 Explain better why to make a pure parser.
1252 1998-01-05 Richard Stallman <rms@gnu.org>
1254 * src/files.c (openfiles):
1255 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1256 find a temporary directory, if possible. Do not unlink files while
1259 1997-08-25 Richard Stallman <rms@gnu.org>
1261 * src/reader.c (stack_offset;):
1262 Change some warni to warns.
1264 * src/lex.c (literalchar): Use warns, not warni.
1266 1997-06-28 Richard Stallman <rms@gnu.org>
1268 * src/bison.s1: Add a Bison version comment.
1270 * src/main.c (fatal, warn, berror):
1273 1997-06-28 Richard Stallman <rms@gnu.org>
1275 * Makefile.in (bison_version): New variable.
1276 (dist): Use that variable.
1277 (bison.s1): Substitute the Bison version into bison.simple.
1279 * bison.simple: Add a Bison version comment.
1281 1997-06-18 Richard Stallman <rms@gnu.org>
1283 * src/main.c (fatal, warn, berror):
1284 Make error messages standard.
1285 (toomany): Improve error message text.
1287 * 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:
1288 new.h renamed to alloc.h.
1290 1997-06-18 Richard Stallman <rms@gnu.org>
1292 * Makefile.in: new.h renamed to alloc.h.
1294 1997-05-24 Richard Stallman <rms@gnu.org>
1296 * src/lex.c (literalchar):
1297 Fix the code for escaping \, " and '.
1299 (lex): Avoid trouble when there are many chars
1300 to discard in a char literal with just several chars in it.
1302 1997-05-17 Richard Stallman <rms@gnu.org>
1305 Use malloc, if using alloca is troublesome.
1306 (YYSTACK_USE_ALLOCA): New flag macro.
1307 Define it for some systems and compilers.
1308 (YYSTACK_ALLOC): New macro.
1309 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1310 If it was malloc'd, free it.
1312 1997-05-17 Richard Stallman <rms@gnu.org>
1315 Use malloc, if using alloca is troublesome.
1316 (YYSTACK_USE_ALLOCA): New flag macro.
1317 Define it for some systems and compilers.
1318 (YYSTACK_ALLOC): New macro.
1319 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1320 If it was malloc'd, free it.
1322 1997-04-23 Richard Stallman <rms@gnu.org>
1325 (alloca) [__hpux]: Always define as __builtin_alloca.
1327 1997-04-23 Richard Stallman <rms@gnu.org>
1330 (alloca) [__hpux]: Always define as __builtin_alloca.
1332 1997-04-22 Richard Stallman <rms@gnu.org>
1335 [__hpux]: Include alloca.h (right for HPUX 10)
1336 instead of declaring alloca (right for HPUX 9).
1338 * src/bison.s1 (__yy_memcpy):
1339 Declare arg `count' as unsigned int.
1340 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1342 1997-04-22 Richard Stallman <rms@gnu.org>
1345 [__hpux]: Include alloca.h (right for HPUX 10)
1346 instead of declaring alloca (right for HPUX 9).
1348 * bison.simple (__yy_memcpy):
1349 Declare arg `count' as unsigned int.
1350 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1352 1997-01-03 Richard Stallman <rms@gnu.org>
1354 * src/allocate.c: [__STDC__ or _MSC_VER]:
1355 Declare calloc and realloc to return void *.
1357 1997-01-02 Richard Stallman <rms@gnu.org>
1360 [_MSC_VER]: Include stdlib.h and process.h.
1361 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1363 * src/main.c (main): Return FAILURE as a value.
1364 (printable_version): Declare arg as int, not char.
1366 1997-01-02 Richard Stallman <rms@gnu.org>
1368 * Makefile.in (dist):
1369 Explicitly check for symlinks, and copy them.
1371 1996-12-19 Richard Stallman <rms@gnu.org>
1374 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1376 1996-12-18 Paul Eggert <eggert@gnu.org>
1378 * src/bison.s1 (yyparse):
1379 If __GNUC__ and YYPARSE_PARAM are both defined,
1380 declare yyparse to have a void * argument.
1382 1996-12-18 Paul Eggert <eggert@gnu.org>
1384 * bison.simple (yyparse):
1385 If __GNUC__ and YYPARSE_PARAM are both defined,
1386 declare yyparse to have a void * argument.
1388 1996-12-17 Richard Stallman <rms@gnu.org>
1390 * src/reduce.c (nbits): Add some casts.
1392 1996-08-12 Richard Stallman <rms@gnu.org>
1394 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1396 1996-08-12 Richard Stallman <rms@gnu.org>
1398 * bison.simple: Test _MSDOS as well as _MSDOS_.
1400 1996-07-31 Richard Stallman <rms@gnu.org>
1403 [__sun && __i386]: Include alloca.h.
1405 1996-07-31 Richard Stallman <rms@gnu.org>
1408 [__sun && __i386]: Include alloca.h.
1410 1996-07-30 Richard Stallman <rms@gnu.org>
1412 * src/bison.s1: Comment change.
1414 * src/bison.s1: Test _MSDOS_, not MSDOS.
1416 1996-07-30 Richard Stallman <rms@gnu.org>
1418 * bison.simple: Comment change.
1420 * bison.simple: Test _MSDOS_, not MSDOS.
1422 1996-06-01 Richard Stallman <rms@gnu.org>
1424 * 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:
1425 Insert `_' macro around many string constants.
1428 Insert `_' macro around many string constants.
1430 (main): Call setlocale, bindtextdomain and textdomain.
1432 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1433 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1434 [ENABLE_NLS]: Include libintl.h.
1435 [ENABLE_NLS] (gettext): Define.
1436 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1437 (N_, PACKAGE, LOCALEDIR): New macros.
1439 1996-06-01 Richard Stallman <rms@gnu.org>
1441 * POTFILES.in: New file.
1443 * Makefile.in (allocate.o):
1444 Define target explicitly.
1446 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1447 (LDFLAGS): Set to @LDFLAGS@.
1448 (configure): Run autoconf only if preceding `cd' succeeds.
1449 (bison.s1): Redirect output to temporary file then move the
1450 temporary to the target, rather than redirecting directly to bison.s1.
1451 (clean): Remove config.status and config.log.
1452 (distclean): Don't remove config.status here.
1454 1996-05-12 Richard Stallman <rms@gnu.org>
1457 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1459 1996-05-12 Richard Stallman <rms@gnu.org>
1462 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1464 1996-05-11 Richard Stallman <rms@gnu.org>
1466 * src/bison.s1 (__yy_memcpy):
1467 Really reorder the args, as was supposedly done on Feb 14 1995.
1468 (yyparse): Calls changed accordingly.
1470 1996-05-11 Richard Stallman <rms@gnu.org>
1472 * Makefile.in (dist): Don't use $(srcdir).
1474 * bison.simple (__yy_memcpy):
1475 Really reorder the args, as was supposedly done on Feb 14 1995.
1476 (yyparse): Calls changed accordingly.
1478 1996-01-27 Richard Stallman <rms@gnu.org>
1480 * src/output.c (output_rule_data):
1481 Test YYERROR_VERBOSE in the conditional
1482 around the definition of ttyname.
1484 1995-12-29 Richard Stallman <rms@gnu.org>
1487 Fix line numbers in #line commands.
1489 1995-12-29 Richard Stallman <rms@gnu.org>
1492 Fix line numbers in #line commands.
1494 1995-12-27 Richard Stallman <rms@gnu.org>
1496 * src/bison.s1 (YYPARSE_PARAM_DECL):
1497 In C++, make it always null.
1498 (YYPARSE_PARAM_ARG): New macro.
1499 (yyparse): Use YYPARSE_PARAM_ARG.
1501 1995-12-27 Richard Stallman <rms@gnu.org>
1503 * bison.simple (YYPARSE_PARAM_DECL):
1504 In C++, make it always null.
1505 (YYPARSE_PARAM_ARG): New macro.
1506 (yyparse): Use YYPARSE_PARAM_ARG.
1508 1995-11-29 Richard Stallman <rms@gnu.org>
1510 * doc/bison.texinfo:
1511 Describe literal string tokens, %raw, %no_lines, %token_table.
1513 1995-11-29 Daniel Hagerty <hag@gnu.org>
1515 * doc/bison.texinfo: Fixed update date
1517 1995-10-16 Richard Stallman <rms@gnu.org>
1519 * src/version.c: Version 1.25.
1521 1995-10-16 Richard Stallman <rms@gnu.org>
1523 * NEWS: *** empty log message ***
1525 1995-10-16 Richard Stallman <rms@gnu.org>
1527 * doc/bison.1, doc/bison.rnh:
1530 1995-10-15 Richard Stallman <rms@gnu.org>
1532 * src/vmsgetargs.c, src/getargs.c:
1533 Added -n, -k, and -raw switches.
1534 (noparserflag, toknumflag, rawtoknumflag): New variables.
1536 * src/symtab.h (SALIAS):
1537 New #define for adding aliases to %token.
1538 (struct bucket): Added `alias' field.
1540 * src/reduce.c (reduce_grammar):
1541 Revise error message.
1542 (print_notices): Remove final `.' from error message.
1544 * src/reader.c (reader_output_yylsp):
1546 (readgram): Use `#if 0' around code that accepted %command
1547 inside grammar rules: The documentation doesn't allow it,
1548 and it will fail since the %command processors scan for the next %.
1549 (parse_token_decl): Extended the %token
1550 declaration to allow a multi-character symbol as an alias.
1551 (parse_thong_decl): New function.
1552 (read_declarations): Added %thong declarations.
1553 (read_declarations): Handle NOOP to deal with allowing
1554 % declarations as another means to specify the flags.
1555 (readgram): Allow %prec prior to semantics embedded in a rule.
1556 (skip_to_char, read_declarations, copy_definition)
1557 (parse_token_decl, parse_start_decl, parse_type_decl)
1558 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1559 (get_type_name, copy_guard, copy_action, readgram)
1560 (get_type, packsymbols): Revised most error messages.
1561 Changed `fatal' to `warnxxx' to avoid aborting for error.
1562 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1563 (read_declarations): Improve the error message for
1564 an invalid character. Do not abort.
1565 (read_declarations, copy_guard, copy_action): Use
1566 printable_version to avoid unprintable characters in printed output.
1567 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1568 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1569 Allow the type of a non-terminal can be given
1570 more than once, as long as all specifications give the same type.
1573 (output_headers, output_trailers, output, output_gram)
1574 (output_rule_data): Implement noparserflag variable.
1575 Implement toknumflag variable.
1576 (output): Call reader_output_yylsp to output LTYPESTR.
1578 * src/main.c (main):
1579 If reader sees an error, don't process the grammar.
1580 (fatals): Updated to not use VARARGS1.
1581 (printable_version, int_to_string, warn, warni, warns, warnss)
1582 (warnsss): New error reporting functions. Avoid abort for error.
1585 Added THONG and NOOP for alias processing.
1586 Added SETOPT for the new code that allows setting options with %flags.
1589 Include getopt.h. Add some extern decls.
1590 (safegetc): New function to deal with EOF gracefully.
1591 (literalchar); new function to deal with reading \ escapes.
1592 (lex): Use literalchar.
1593 (lex): Implemented "..." tokens.
1594 (literalchar, lex, parse_percent_token): Made tokenbuffer
1595 always contain the token. This includes growing the token
1596 buffer while reading an integer.
1597 (parse_percent_token): Replaced if-else statement with percent_table.
1598 (parse_percent_token): Added % declarations as another
1599 way to specify the flags -n, -l, and -r. Also added hooks for
1600 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1601 major changes to files.c.
1602 (lex) Retain in the incoming stream a character following
1604 (skip_white_space, lex): Revised most error messages
1605 and changed fatal to warn to avoid aborting.
1606 (percent_table): Added %thong declarations.
1608 * src/gram.h: Comment changes.
1610 * src/files.c (openfiles, open_extra_files, done):
1612 and actfile file. Handle noparserflag. Both for -n switch.
1614 * src/conflicts.c (resolve_sr_conflict):
1615 Remove use of alloca.
1617 1995-06-01 Jim Meyering <meyering@gnu.org>
1619 * doc/bison.texinfo: *** empty log message ***
1621 1995-05-06 Richard Stallman <rms@gnu.org>
1623 * src/bison.s1: Comment change.
1625 1995-05-06 Richard Stallman <rms@gnu.org>
1627 * bison.simple: Comment change.
1629 1995-05-03 Richard Stallman <rms@gnu.org>
1631 * src/version.c: Version now 1.24.
1633 * src/bison.s1: Change distribution terms.
1635 * src/version.c: Version now 1.23.
1637 1995-05-03 Richard Stallman <rms@gnu.org>
1639 * doc/bison.texinfo:
1640 Rewrite "Conditions for Using Bison".
1641 Update version to 1.24.
1643 1995-05-03 Richard Stallman <rms@gnu.org>
1645 * bison.simple: Change distribution terms.
1647 1995-02-23 Richard Stallman <rms@gnu.org>
1649 * src/files.c: Test __VMS_POSIX as well as VMS.
1651 1995-02-14 Jim Meyering <meyering@gnu.org>
1653 * src/bison.s1 (__yy_memcpy):
1654 Renamed from __yy_bcopy to avoid
1655 confusion. Reverse FROM and TO arguments to be consistent with
1658 1995-02-14 Jim Meyering <meyering@gnu.org>
1660 * bison.simple (__yy_memcpy):
1661 Renamed from __yy_bcopy to avoid
1662 confusion. Reverse FROM and TO arguments to be consistent with
1665 1994-11-10 David J. MacKenzie <djm@gnu.org>
1671 * Makefile.in (DISTFILES): Include NEWS.
1673 * Makefile.in (DISTFILES):
1674 Include install-sh, not install.sh.
1676 * configure.in: Update to Autoconf v2 macro names.
1678 1994-10-05 David J. MacKenzie <djm@gnu.org>
1680 * Makefile.in: fix typo
1682 * Makefile.in (prefix, exec_prefix):
1683 Let configure set them.
1685 1994-09-28 David J. MacKenzie <djm@gnu.org>
1687 * Makefile.in: Set datadir to $(prefix)/share.
1689 1994-09-15 Richard Stallman <rms@gnu.org>
1692 Update copyright notice and GPL version.
1694 1994-09-15 Richard Stallman <rms@gnu.org>
1697 Update copyright notice and GPL version.
1699 1994-07-12 Richard Stallman <rms@gnu.org>
1701 * src/reduce.c, src/reader.c:
1704 1994-05-05 David J. MacKenzie <djm@gnu.org>
1706 * Makefile.in: entered into RCS
1708 1994-03-26 Richard Stallman <rms@gnu.org>
1710 * src/bison.s1: entered into RCS
1712 1994-03-26 Richard Stallman <rms@gnu.org>
1714 * bison.simple: entered into RCS
1716 1994-03-25 Richard Stallman <rms@gnu.org>
1718 * src/main.c: entered into RCS
1720 1994-03-24 Richard Stallman <rms@gnu.org>
1722 * src/conflicts.c: entered into RCS
1724 1994-01-02 Richard Stallman <rms@gnu.org>
1726 * Makefile.in: *** empty log message ***
1728 1993-11-21 Richard Stallman <rms@gnu.org>
1730 * src/bison.s1: *** empty log message ***
1732 1993-11-21 Richard Stallman <rms@gnu.org>
1734 * doc/bison.texinfo: entered into RCS
1736 * doc/bison.texinfo: *** empty log message ***
1738 1993-11-21 Richard Stallman <rms@gnu.org>
1740 * bison.simple: *** empty log message ***
1742 1993-10-25 David J. MacKenzie <djm@gnu.org>
1744 * doc/bison.texinfo: *** empty log message ***
1746 1993-10-19 Richard Stallman <rms@gnu.org>
1748 * src/bison.s1: *** empty log message ***
1750 1993-10-19 Richard Stallman <rms@gnu.org>
1752 * bison.simple: *** empty log message ***
1754 1993-10-14 Richard Stallman <rms@gnu.org>
1756 * src/bison.s1: *** empty log message ***
1758 1993-10-14 Richard Stallman <rms@gnu.org>
1760 * bison.simple: *** empty log message ***
1762 1993-09-14 David J. MacKenzie <djm@gnu.org>
1764 * doc/bison.texinfo: *** empty log message ***
1766 1993-09-13 Noah Friedman <friedman@gnu.org>
1768 * Makefile.in: *** empty log message ***
1770 1993-09-10 Richard Stallman <rms@gnu.org>
1772 * src/conflicts.c: *** empty log message ***
1774 * src/system.h: entered into RCS
1776 1993-09-10 Richard Stallman <rms@gnu.org>
1778 * doc/bison.1: entered into RCS
1780 1993-09-06 Noah Friedman <friedman@gnu.org>
1782 * src/version.c: entered into RCS
1784 1993-09-06 Noah Friedman <friedman@gnu.org>
1786 * Makefile.in: *** empty log message ***
1788 1993-07-30 David J. MacKenzie <djm@gnu.org>
1790 * Makefile.in: *** empty log message ***
1792 1993-07-24 Richard Stallman <rms@gnu.org>
1794 * src/bison.s1: *** empty log message ***
1796 1993-07-24 Richard Stallman <rms@gnu.org>
1798 * bison.simple: *** empty log message ***
1800 1993-07-08 David J. MacKenzie <djm@gnu.org>
1802 * Makefile.in: *** empty log message ***
1804 1993-07-04 Richard Stallman <rms@gnu.org>
1806 * src/bison.s1: *** empty log message ***
1808 1993-07-04 Richard Stallman <rms@gnu.org>
1810 * bison.simple: *** empty log message ***
1812 1993-06-26 David J. MacKenzie <djm@gnu.org>
1814 * src/getargs.c: entered into RCS
1816 1993-06-26 David J. MacKenzie <djm@gnu.org>
1818 * doc/bison.texinfo: *** empty log message ***
1820 * doc/bison.1: New file.
1822 1993-06-25 Richard Stallman <rms@gnu.org>
1824 * src/getargs.c: New file.
1826 1993-06-16 Richard Stallman <rms@gnu.org>
1828 * src/bison.s1: *** empty log message ***
1830 1993-06-16 Richard Stallman <rms@gnu.org>
1832 * bison.simple: *** empty log message ***
1834 1993-06-03 Richard Stallman <rms@gnu.org>
1836 * src/bison.s1: New file.
1838 1993-06-03 Richard Stallman <rms@gnu.org>
1840 * doc/bison.texinfo: *** empty log message ***
1842 1993-06-03 Richard Stallman <rms@gnu.org>
1844 * bison.simple: New file.
1846 1993-05-19 Richard Stallman <rms@gnu.org>
1848 * doc/bison.texinfo: New file.
1850 1993-05-07 Noah Friedman <friedman@gnu.org>
1852 * Makefile.in: *** empty log message ***
1854 1993-04-28 Noah Friedman <friedman@gnu.org>
1856 * src/reader.c: *** empty log message ***
1858 1993-04-23 Noah Friedman <friedman@gnu.org>
1860 * src/alloc.h: entered into RCS
1862 1993-04-20 David J. MacKenzie <djm@gnu.org>
1864 * src/version.c: *** empty log message ***
1866 * src/files.c, src/allocate.c:
1869 * src/reader.c: *** empty log message ***
1871 * src/lex.c: entered into RCS
1873 * src/conflicts.c: New file.
1875 * src/symtab.c: entered into RCS
1877 * src/alloc.h: New file.
1879 * src/LR0.c: entered into RCS
1881 1993-04-18 Noah Friedman <friedman@gnu.org>
1883 * src/reader.c: New file.
1885 * src/version.c: *** empty log message ***
1887 1993-04-18 Noah Friedman <friedman@gnu.org>
1889 * Makefile.in: *** empty log message ***
1891 1993-04-17 Noah Friedman <friedman@gnu.org>
1893 * Makefile.in: *** empty log message ***
1895 1993-04-15 Richard Stallman <rms@gnu.org>
1897 * src/main.c, src/files.c:
1900 1993-04-15 Noah Friedman <friedman@gnu.org>
1902 * configure.in: entered into RCS
1904 * configure.in: *** empty log message ***
1906 * configure.in: New file.
1908 1993-04-14 Richard Stallman <rms@gnu.org>
1910 * Makefile.in: New file.
1912 1993-04-13 Richard Stallman <rms@gnu.org>
1914 * src/version.c: New file.
1916 1993-03-25 Richard Stallman <rms@gnu.org>
1918 * src/output.c: entered into RCS
1920 1992-09-25 Richard Stallman <rms@gnu.org>
1922 * configure.bat: entered into RCS
1924 1992-06-22 Richard Stallman <rms@gnu.org>
1926 * src/vmsgetargs.c: entered into RCS
1928 1992-06-22 Richard Stallman <rms@gnu.org>
1930 * doc/bison.rnh: entered into RCS
1932 1992-04-20 David J. MacKenzie <djm@gnu.org>
1934 * README: entered into RCS
1936 1992-01-22 Richard Stallman <rms@gnu.org>
1938 * src/machine.h: entered into RCS
1940 1991-12-21 Richard Stallman <rms@gnu.org>
1942 * src/lalr.c, src/closure.c:
1945 1991-12-20 Richard Stallman <rms@gnu.org>
1947 * src/state.h: entered into RCS
1949 1991-12-18 Richard Stallman <rms@gnu.org>
1951 * src/print.c, src/nullable.c, src/derives.c:
1954 1991-11-03 David J. MacKenzie <djm@gnu.org>
1956 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1959 1988-09-09 Richard Stallman <rms@gnu.org>
1961 * src/bison.hairy: entered into RCS
1963 1987-12-16 Richard Stallman <rms@gnu.org>
1965 * REFERENCES: entered into RCS