1 2000-12-20 Akim Demaille <akim@epita.fr>
3 * src/bison.s1: Remove, we now use directly...
4 * src/bison.simple: this.
5 * src/Makefile.am: Use pkgdata instead of data.
7 2000-12-20 Akim Demaille <akim@epita.fr>
9 * src/files.c (guard_obstack): New.
10 (open_files): Initialize it.
11 (output_files): Dump it...
12 * src/files.h: Export it.
13 * src/reader.c (copy_guard): Use it.
15 2000-12-19 Akim Demaille <akim@epita.fr>
17 * src/files.c (outfile, defsfile, actfile): Removed as global
19 (open_files): Don't compute them.
20 (output_files): Adjust.
21 (base_name, short_base_name): Be global.
24 2000-12-19 Akim Demaille <akim@epita.fr>
26 * src/files.c (strsuffix): New.
27 (stringappend): Be just like strcat but allocate.
28 (base_names): Eve out from open_files.
29 Try to simplify the rather hairy computation of base_name and
32 * tests/suite.at (Checking output file names): New test.
34 2000-12-19 Akim Demaille <akim@epita.fr>
36 * src/system.h (obstack_grow_literal_string): Rename as...
37 (obstack_grow_string): this.
38 * src/output.c (output_parser): Recognize `%% actions' instead of
40 * src/bison.s1: s/$/%% actions/.
41 * src/bison.hairy: Likewise.
43 2000-12-19 Akim Demaille <akim@epita.fr>
45 * src/output.c (output_parser): Compute the `#line' lines when
47 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
48 Suggested by Hans Aberg.
50 2000-12-19 Akim Demaille <akim@epita.fr>
52 Let the handling of the skeleton files be local to the procedures
55 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
57 (fparser, open_extra_files): Remove.
58 (open_files, output_files): Don't take care of fparser.
59 * src/files.h: Adjust.
60 * src/output.c (output_parser): Open and close the file to the
62 * src/reader.c (read_declarations): When %semantic_parser, open
65 2000-12-19 Akim Demaille <akim@epita.fr>
67 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
68 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
70 2000-12-19 Akim Demaille <akim@epita.fr>
72 * src/files.c (open_files): Yipee! We no longer need all the code
73 looking for `/tmp' since we have no tmp file.
75 2000-12-19 Akim Demaille <akim@epita.fr>
77 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
79 * src/files.c (open_files): Less dependency on MSDOS etc.
81 2000-12-14 Akim Demaille <akim@epita.fr>
83 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
84 Provide a default definition.
85 Use it when executing the default @ action.
86 * src/reader.c (reader_output_yylsp): No longer include
87 `timestamp' and `text' in the default YYLTYPE.
89 2000-12-12 Akim Demaille <akim@epita.fr>
91 * src/reader.c (copy_definition, parse_union_decl, copy_action)
92 (copy_guard): Quote the file names.
93 Reported by Laurent Mascherpa.
95 2000-12-12 Akim Demaille <akim@epita.fr>
97 * src/output.c (output_headers, output_program, output): Be sure
98 to escape special characters when outputting filenames.
99 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
100 (output_headers): Don't depend on them, Use ACTSTR.
102 2000-11-17 Akim Demaille <akim@epita.fr>
104 * lib/obstack.h: Formatting changes.
105 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
106 prevents type checking.
107 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
108 cast the value to (void *): assigning a `foo *' to a `void *'
110 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
111 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
114 2000-11-17 Akim Demaille <akim@epita.fr>
116 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
118 (suite.m4, regression.m4, calc.m4): these.
119 * tests/atgeneral.m4: Update from CVS Autoconf.
121 2000-11-17 Akim Demaille <akim@epita.fr>
123 * tests/regression.m4 (%union and --defines): New test,
124 demonstrating a current bug in the obstack implementation.
126 2000-11-17 Akim Demaille <akim@epita.fr>
128 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
130 Use them to declare the variables which are global or local to
133 2000-11-17 Akim Demaille <akim@epita.fr>
135 * acconfig.h: Remove, no longer used.
137 2000-11-07 Akim Demaille <akim@epita.fr>
139 * src: s/Copyright (C)/Copyright/g.
141 2000-11-07 Akim Demaille <akim@epita.fr>
143 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
145 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
147 2000-11-07 Akim Demaille <akim@epita.fr>
149 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
150 Merge in a single CPP if/else.
152 2000-11-07 Akim Demaille <akim@epita.fr>
154 * src/output.c (output): Remove useless variables.
155 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
156 argument `data' for consistency with the prototypes.
158 (obstack_copy, obstack_copy0): Rename the second argument as
159 `address' for consistency. Qualify it `const'.
160 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
161 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
162 `const' their input argument (`data' or `address').
163 Adjust the corresponding macros to include `const' in casts.
165 2000-11-03 Akim Demaille <akim@epita.fr>
167 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
168 s/PFILE1/BISON_HAIRY/.
171 2000-11-03 Akim Demaille <akim@epita.fr>
173 For some reason, this was not applied.
175 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
176 `unlink': it's no longer used.
178 2000-11-03 Akim Demaille <akim@epita.fr>
180 * src/files.c (skeleton_find): New function, eved out of...
181 (open_files, open_extra_files): here.
183 2000-11-03 Akim Demaille <akim@epita.fr>
187 * src/files.c (obstack_save): New function.
189 (output_files): this.
191 * src/main.c (main): Don't use `atexit' to register `done', since
192 it no longer has to remove tmp files, just call `output_files'
193 when there are no errors.
195 2000-11-02 Akim Demaille <akim@epita.fr>
197 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
198 `unlink': it's no longer used.
199 * src/files.h: Formatting changes.
201 2000-11-02 Akim Demaille <akim@epita.fr>
203 Remove the last uses of mktemp and unlink/delete.
205 * src/files.c (fdefines, ftable): Removed.
206 (defines_ostack, table_obstack): New.
207 Adjust dependencies of the former into uses of the latter.
208 * src/output.c (output_short_or_char_table, output_short_table):
209 Convert to using obstacks.
210 * src/reader.c (copy_comment2): Accept one FILE * and two
212 (output_token_defines, reader_output_yylsp): Use obstacks.
213 * src/system.h (obstack_fgrow3): New.
215 2000-11-01 Akim Demaille <akim@epita.fr>
217 Change each use of `fattrs' into a use of `attrs_obstack'.
219 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
220 * src/files.c (fattrs): Remove.
221 (attrs_obstack): New.
222 Adjust all dependencies.
223 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
225 2000-11-01 Akim Demaille <akim@epita.fr>
228 Change each use of `faction' into a use of `action_obstack'.
230 * lib/obstack.h, lib/obstack.c: New files.
231 * src/files.c (faction): Remove.
232 (action_obstack): New.
233 Adjust all dependencies.
235 2000-10-20 Akim Demaille <akim@epita.fr>
237 * lib/quote.h (PARAMS): New macro. Use it.
239 2000-10-16 Akim Demaille <akim@epita.fr>
241 * src/output.c (output_short_or_char_table): New function.
242 (output_short_table, output_token_translations): Use it.
243 (goto_actions): Use output_short_table.
245 2000-10-16 Akim Demaille <akim@epita.fr>
247 * src/symtab.c (bucket_new): New function.
250 * src/output.c (output_short_table): New argument to display the
251 comment associated with the table.
253 (output_gram): Use it.
254 (output_rule_data): Nicer output layout for YYTNAME.
256 2000-10-16 Akim Demaille <akim@epita.fr>
258 * src/lex.c (read_typename): New function.
260 * src/reader.c (copy_dollar): Likewise.
262 2000-10-16 Akim Demaille <akim@epita.fr>
264 * src/reader.c (copy_comment2): Expect the input stream to be on
265 the `/' which is suspected to open a comment, instead of being
266 called after `//' or `/*' was read.
267 (copy_comment, copy_definition, parse_union_decl, copy_action)
268 (copy_guard): Adjust.
270 2000-10-16 Akim Demaille <akim@epita.fr>
272 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
273 `read_signed_integer'.
275 2000-10-16 Akim Demaille <akim@epita.fr>
277 * src/reader.c (copy_dollar): New function.
278 (copy_guard, copy_action): Use it.
280 2000-10-16 Akim Demaille <akim@epita.fr>
282 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
283 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
284 New files, from Fileutils 4.0.27.
285 * src/main.c (printable_version): Remove.
286 * src/lex.c, src/reader.c: Use `quote'.
288 2000-10-04 Akim Demaille <akim@epita.fr>
290 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
292 2000-10-04 Akim Demaille <akim@epita.fr>
294 * doc/bison.texinfo: Various typos spotted by Neil Booth.
296 2000-10-04 Akim Demaille <akim@epita.fr>
298 When a literal string is used to define two different tokens,
299 `bison -v' segfaults.
300 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
302 * tests/regression.m4: New file.
303 Include the core of the sample provided by Piotr Gackiewicz.
304 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
307 2000-10-04 Akim Demaille <akim@epita.fr>
309 * src/reader.c (parse_expect_decl): Keep `count' within the size
313 2000-10-02 Paul Eggert <eggert@twinsun.com>
315 * bison.s1 (yyparse): Assign the default value
316 unconditionally, to avoid a GCC warning and make the parser a
319 2000-10-02 Akim Demaille <akim@epita.fr>
321 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
324 2000-10-02 Akim Demaille <akim@epita.fr>
326 * src/derives.c, src/print.c, src/reduce.c: To ease the
327 translation, move some `\n' out of the translated strings.
329 2000-10-02 Akim Demaille <akim@epita.fr>
331 The location tracking mechanism is precious for parse error
332 messages. Nevertheless, it is enabled only when `@n' is used in
333 the grammar, which is a different issue (you can use it in error
334 message, but not in the grammar per se). Therefore, there should
335 be another means to enable it.
337 * src/getargs.c (getargs): Support `--locations'.
339 * src/getargs.h (locationsflag): Export it.
340 * src/lex.c (percent_table): Support `%locations'.
341 * src/reader.c (yylsp_needed): Remove this variable, now replaced
342 with `locationsflag'.
343 * doc/bison.texinfo: Document `--locations' and `%locations'.
345 * tests/calc.m4: Test it.
347 For regularity of the names, replace each
348 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
349 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
350 In addition replace each `flag' with `_flag'.
352 2000-10-02 Akim Demaille <akim@epita.fr>
354 Also test parse error messages, including with YYERROR_VERBOSE.
356 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
358 Use it to check the computations.
359 Use it to check `nonassoc' is honored.
360 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
362 (_AT_CHECK_CALC): Adjust to this option.
363 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
365 2000-10-02 Akim Demaille <akim@epita.fr>
367 Test also `--verbose', `--defines' and `--name-prefix'. Testing
368 the latter demonstrates a flaw in the handling of non debugging
369 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
370 was used in order to simplify:
386 unfortunately this leads to a CPP conflict when
387 `--name-prefix=foo' is used since it produces `#define yydebug
390 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
391 (YYDPRINTF): New macro.
393 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
395 Also test `--verbose', `--defines' and `--name-prefix'.
397 2000-10-02 Akim Demaille <akim@epita.fr>
399 Improve the readability of the produced parsers.
401 * src/bison.s1: Formatting changes.
402 Improve the comment related to the `$' mark.
403 (yydefault): Don't fall through to `yyresume': `goto' there.
404 * src/output.c (output_parser): When the `$' is met, skip the end
406 New variable, `number_of_dollar_signs', to check there's exactly
407 one `$' in the parser skeleton.
409 2000-10-02 Akim Demaille <akim@epita.fr>
411 * lib/xstrdup.c: New file, from the fileutils.
412 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
413 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
414 instead of strlen + xmalloc + strcpy.
415 * src/symtab.c (copys): Remove, use xstrdup instead.
417 2000-10-02 Akim Demaille <akim@epita.fr>
419 * src/gram.h (associativity): New enum type which replaces the
420 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
421 `right_assoc', `left_assoc' and `non_assoc'.
422 Adjust all dependencies.
423 * src/reader.c: Formatting changes.
424 (LTYPESTR): Don't define it, use it as a literal in
425 `reader_output_yylsp'.
426 * src/symtab.h (symbol_class): New enum type which replaces the
427 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
428 `sunknown', `stoken and `snterm'.
430 2000-10-02 Akim Demaille <akim@epita.fr>
432 * src/getargs.c (fixed_outfiles): Rename as...
433 (yaccflag): for consistency and accuracy.
436 2000-10-02 Akim Demaille <akim@epita.fr>
438 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
439 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
440 difficult and introduced a lot of core dump. It turns out that
441 Bison used an implementation of `xmalloc' based on `calloc', and
442 at various places it does depend upon the initialization to 0. I
443 have not tried to isolate the pertinent places, and all the former
444 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
445 someone should address this issue.
447 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
448 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
451 * src/warshall.h: New file.
454 2000-10-02 Akim Demaille <akim@epita.fr>
456 Various anti-`extern in *.c' changes.
458 * src/system.h: Include `assert.h'.
460 2000-10-02 Akim Demaille <akim@epita.fr>
462 * src/state.h (nstates, final_state, first_state, first_shift)
463 (first_reduction): Move their exportation from here...
464 * src/LR0.h: to here.
466 * src/getargs.c (statisticsflag): New variable.
467 Add support for `--statistics'.
470 Remove a lot of now useless `extern' statements in most files.
472 2000-10-02 Akim Demaille <akim@epita.fr>
474 * src/LR0.h: New file.
477 2000-10-02 Akim Demaille <akim@epita.fr>
479 * src/print.h: New file.
481 * src/print.c: Formatting and ordering changes.
482 (verbose, terse): Replace with...
483 (print_results): this new function.
486 2000-10-02 Akim Demaille <akim@epita.fr>
488 * src/conflicts.c (conflict_report): New function.
489 (conflict_log, verbose_conflict_log): Replace with...
490 (print_conflicts): this function.
492 * src/conflicts.h: New file.
493 Propagate its inclusion.
495 2000-10-02 Akim Demaille <akim@epita.fr>
497 * src/nullable.h: New file.
498 Propagate its inclusion.
499 * src/nullable.c: Formatting changes.
501 2000-10-02 Akim Demaille <akim@epita.fr>
503 * src/reduce.h: New file.
504 Propagate its inclusion.
505 * src/reduce.c: Topological sort and other formatting changes.
506 (bool, TRUE, FALSE): Move their definition to...
507 * src/system.h: here.
509 2000-10-02 Akim Demaille <akim@epita.fr>
511 * src/files.c: Formatting changes.
512 (tryopen, tryclose, openfiles): Rename as...
513 (xfopen, xfclose, open_files): this.
514 (stringappend): static.
515 * src/files.h: Complete the list of exported symbols.
518 2000-10-02 Akim Demaille <akim@epita.fr>
520 * src/reader.h: New file.
521 Propagate its use instead of tedious list of `extern' and
523 * src/reader.c: Formatting changes, topological sort,
526 2000-10-02 Akim Demaille <akim@epita.fr>
528 * src/lex.h: Prototype `lex.c' exported functions.
529 * src/reader.c: Adjust.
530 * src/lex.c: Formatting changes.
531 (safegetc): Rename as...
534 2000-10-02 Akim Demaille <akim@epita.fr>
536 * src/lalr.h: New file.
537 Propagate its inclusion instead of prototypes and `extern'.
538 * src/lalr.c: Formatting changes, topological sorting etc.
540 2000-10-02 Akim Demaille <akim@epita.fr>
542 * src/output.c (token_actions): Introduce a temporary array,
543 YYDEFACT, that makes it possible for this function to use
546 2000-10-02 Akim Demaille <akim@epita.fr>
548 `user_toknums' is output as a `short[]' in `output.c', while it is
549 defined as a `int[]' in `reader.c'. For consistency with the
550 other output tables, `user_toknums' is now defined as a table of
553 * src/reader.c (user_toknums): Be a short table instead of an int
557 Factor the short table outputs.
559 * src/output.c (output_short_table): New function.
560 * src/output.c (output_gram, output_stos, output_rule_data)
561 (output_base, output_table, output_check): Use it.
563 2000-10-02 Akim Demaille <akim@epita.fr>
565 * src/output.c (output): Topological sort of the functions, in
566 order to get rid of the `static' prototypes.
567 No longer use `register'.
568 * src/output.h: New file.
569 Propagate its inclusion in files explicitly prototyping functions
572 2000-09-21 Akim Demaille <akim@epita.fr>
574 * src/atgeneral.m4: Update from Autoconf.
576 2000-09-21 Akim Demaille <akim@epita.fr>
578 * src/closure.h: New file.
579 * src/closure.c: Formatting changes, topological sort over the
580 functions, use of closure.h.
581 (initialize_closure, finalize_closure): Rename as...
582 (new_closure, free_closure): these. Adjust dependencies.
583 * src/LR0.c: Formatting changes, topological sort, use of
585 (initialize_states): Rename as...
587 * src/Makefile.am (noinst_HEADERS): Adjust.
589 2000-09-20 Akim Demaille <akim@epita.fr>
591 * src/acconfig.h: Don't protect config.h against multiple
594 * src/system.h: Define PARAMS.
595 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
596 purpose of config.h. system.h must not try to fix wrong
597 definitions in config.h.
599 2000-09-20 Akim Demaille <akim@epita.fr>
601 * src/derives.h: New file.
602 * src/main.c, src/derives.h: Use it.
604 * src/Makefile.am (noinst_HEADERS): Adjust.
606 2000-09-20 Akim Demaille <akim@epita.fr>
608 * tests/atgeneral.m4: Update from Autoconf.
609 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
610 (AT_CHECK_CALC): New macros.
611 Use these macros to test bison with options `', `--raw',
612 `--debug', `--yacc', `--yacc --debug'.
614 2000-09-19 Akim Demaille <akim@epita.fr>
616 * src/output.c: Formatting changes.
617 * src/machine.h: Remove, leaving its contents in...
618 * src/system.h: here.
620 Adjust all dependencies on stdio.h and machine.h.
621 * src/getargs.h: New file.
622 Let all `extern' declarations about getargs.c be replaced with
623 inclusion of `getargs.h'.
624 * src/Makefile.am (noinst_HEADERS): Adjust.
626 * tests/calc.m4 (yyin): Be initialized in main, not on the global
628 (yyerror): Returns void, not int.
629 * doc/bison.texinfo: Formatting changes.
631 2000-09-19 Akim Demaille <akim@epita.fr>
633 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
636 2000-09-18 Akim Demaille <akim@epita.fr>
638 * configure.in: Append WARNING_CFLAGS to CFLAGS.
639 * src/Makefile.am (INCLUDES): Don't.
640 Be ready to fetch headers in lib/.
642 2000-09-18 Akim Demaille <akim@epita.fr>
644 * doc/bison.texinfo: Update the copyright.
645 ANSIfy and GNUify the examples.
648 2000-09-18 Akim Demaille <akim@epita.fr>
650 First set of tests: use the `calc' example from the documentation.
652 * src/bison.s1 (yyparse): Condition the code using `yytname' which
653 is defined only when YYDEBUG is.
654 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
655 * src/files.c (tryopen, tryclose): Formatting changes.
656 Move to the top and be static.
657 * src/reader.c (read_signed_integer): Likewise.
658 * tests/calc.m4: New file.
659 * Makefile.am, suite.m4: Adjust.
660 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
662 2000-09-18 Akim Demaille <akim@epita.fr>
664 Add support for an Autotest test suite for Bison.
666 * m4/m4.m4, m4/atconfig.m4: New files.
667 * m4/Makefile.am (EXTRA_DIST): Adjust.
668 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
670 * src/getargs.c: Display a more standard --version message.
671 * src/reader.c (reader): Formatting changes.
672 No longer depend upon VERSION_STRING.
673 * configure.in: No longer use `dnl'.
674 Set up the test suite and the new directory `tests/.
675 (VERSION_STRING): Remove.
677 2000-04-14 Akim Demaille <akim@epita.fr>
679 * src/reader.c (copy_comment2): New function, same as former
680 `copy_comment', but outputs into two FILE *.
681 (copy_comment): Use it.
682 (parse_union_decl): Use it.
683 (get_type, parse_start_decl): Use the same `invalid' message.
684 (parse_start_decl, parse_union_decl): Use the same `multiple'
686 (parse_union_decl, copy_guard, copy_action): Use the same
688 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
690 2000-03-31 Akim Demaille <akim@epita.fr>
692 * src/files.c (tryopen, tryclose): Move to the top.
695 2000-03-31 Akim Demaille <akim@epita.fr>
697 * src/main.c (main): Don't call `done', exit does it.
699 2000-03-31 Akim Demaille <akim@epita.fr>
701 * allocate.c: s/return (foo)/return foo/.
704 * output.c: Likewise.
705 * reader.c: Likewise.
706 * symtab.c: Likewise.
707 * vmsgetargs.c: Likewise.
709 2000-03-31 Akim Demaille <akim@epita.fr>
711 Clean up the error reporting functions.
713 * src/report.c: New file.
714 * src/report.h: Likewise.
715 * src/Makefile.am: Adjust.
716 * m4/error.m4: New file.
717 * m4/Makefile.am: Adjust.
718 * configure.in (jm_PREREQ_ERROR): Call it.
719 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
721 (fatal, fatals): Remove. All callers use complain.c::fatal.
722 (warn, warni, warns, warnss, warnss): Remove. All callers use
723 complain.c::complain.
724 (toomany): Remove, use fatal instead.
725 * src/files.c (done): No argument, use complain_message_count.
726 * src/main.c (main): Register `done' to `atexit'.
728 * src/getargs.c (usage): More `fputs', less `fprintf'.
730 2000-03-28 Akim Demaille <akim@epita.fr>
732 * lib/: New directory.
733 * Makefile.am (SUBDIRS): Adjust.
734 * configure.in: Adjust.
735 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
737 * src/alloca.c: Moved to lib/.
738 * src/getopt.c: Likewise.
739 * src/getopt1.c: Likewise.
740 * src/getopt.h: Likewise.
741 * src/ansi2knr.c: Likewise.
742 * src/ansi2knr.1: Likewise.
743 * src/Makefile.am: Adjust.
744 * lib/Makefile.am: New file.
746 2000-03-28 Akim Demaille <akim@epita.fr>
748 * src/getargs.c (usage): Refresh the help message.
750 2000-03-17 Akim Demaille <akim@epita.fr>
752 * src/getopt1.c: Updated from textutils 2.0e
753 * src/getopt.c: Likewise.
754 * src/getopt.h: Likewise.
756 2000-03-17 Akim Demaille <akim@epita.fr>
758 * src/Makefile.am (bison.simple): Fix the awk program: quote only
759 the file name, not the whole `#line LINE FILE'.
761 2000-03-17 Akim Demaille <akim@epita.fr>
763 On syntax errors, report the token on which we choked.
765 * src/bison.s1 (yyparse): In the label yyerrlab, when
766 YYERROR_VERBOSE, add yychar in msg.
768 2000-03-17 Akim Demaille <akim@epita.fr>
770 * src/reader.c (copy_at): New function.
771 (copy_guard): Use it.
772 (copy_action): Use it.
774 2000-03-17 Akim Demaille <akim@epita.fr>
776 Be kind to translators, save some useless translations.
778 * src/main.c (banner): New function.
779 (fatal_banner): Use it.
780 (warn_banner): Use it.
782 2000-03-17 Akim Demaille <akim@epita.fr>
784 * src/reader.c (copy_definition): Use copy_string and
785 copy_comment. Removed now unused `match', `ended',
787 (copy_comment, copy_string): Moved, to be visible from
790 2000-03-17 Akim Demaille <akim@epita.fr>
792 * src/reader.c (copy_string): Declare `static inline'. No
793 problems with inline, since it is checked by configure.
794 (copy_comment): Likewise.
796 2000-03-17 Akim Demaille <akim@epita.fr>
798 * src/reader.c (packsymbols): Formatting changes.
800 2000-03-17 Akim Demaille <akim@epita.fr>
802 * src/reader.c (copy_comment): New function, factored out from:
803 (copy_action): Use it. Removed now unused `match', `ended',
805 (copy_guard): Likewise.
807 2000-03-17 Akim Demaille <akim@epita.fr>
809 * src/reader.c (copy_string): New function, factored out from:
810 (copy_action): Use it.
811 (copy_guard): Likewise.
813 2000-03-17 Akim Demaille <akim@epita.fr>
815 Change the handling of @s so that they behave exactly like $s.
816 There is now a pseudo variable @$ (readble and writable), location
817 of the lhs of the rule (by default ranging from the location of
818 the first symbol of the rhs, to the location of the last symbol,
819 or, if the rhs is empty, YYLLOC).
821 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
823 (yyparse): When providing a default semantic action, provide a
824 default location action.
825 (after the $): No longer change `*YYLSP', just stack YYLOC the
826 same way you stack YYVAL.
827 * src/reader.c (read_declarations): Use warns.
828 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
829 (copy_action, case '@'): Likewise.
830 Use a standard error message, to save useless work from
833 2000-03-17 Akim Demaille <akim@epita.fr>
835 * src/bison.s1: Formatting and cosmetics changes.
836 * src/reader.c: Likewise.
837 Update the Copyright notice.
839 2000-03-17 Akim Demaille <akim@epita.fr>
841 * src/bison.s1 (#line): All set to `#line' only, since the
842 Makefile now handles them.
844 2000-03-16 Akim Demaille <akim@epita.fr>
846 * src/output.c (output_rule_data): Output the documentation of
848 (Copyright notice): Update.
851 2000-03-16 Akim Demaille <akim@epita.fr>
853 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
854 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
855 One `#if YYDEBUG' remains, since it uses variables which are
856 defined only if `YYDEBUG != 0'.
858 2000-03-16 Akim Demaille <akim@epita.fr>
860 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
861 and related variables so that the similarities are highlighted.
863 2000-03-16 Akim Demaille <akim@epita.fr>
865 * src/bison.s1: Properly indent CPP directives.
867 2000-03-16 Akim Demaille <akim@epita.fr>
869 * src/bison.s1: Properly indent the `alloca' CPP section.
871 2000-03-16 Akim Demaille <akim@epita.fr>
873 Do not hard code values of directories in `configure.in'.
874 Update the `configure' tool chain.
876 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
878 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
879 (AC_OUTPUT): Add m4/Makefile.
880 Bump to bison 1.28a, 1.29 has never been released.
881 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
882 handled via src/Makefile.am.
883 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
884 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
886 * Makefile.am (SUBDIRS): Add m4.
887 (ACLOCAL_AM_FLAGS): New variable.
888 (AUTOMAKE_OPTIONS): Add check-news.
889 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
890 the proper line number and file name.
891 (DEFS): Propagate the location of bison library files and of the
893 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
895 * acinclude.m4: Remove, replaced by the directory m4.
896 * m4/Makefile.am (EXTRA_DIST): New variable.
897 * m4/gettext.m4: New file, from the fileutils.
898 * m4/lcmessage.m4: Likewise
899 * m4/progtest.m4: Likewise.
900 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
902 2000-03-10 Akim Demaille <akim@epita.fr>
905 Formatting changes of various comments.
906 Respect the GNU coding standards at various places.
907 Don't use `_()' when no translation is needed.
909 1999-12-13 Jesse Thilo <jthilo@gnu.org>
912 OS/2 honors TMPDIR environment variable.
914 1999-12-13 Jesse Thilo <jthilo@gnu.org>
916 * doc/bison.texinfo: Tweaked spelling and grammar.
918 Removed reference to price of printed copy.
919 Mention BISON_SIMPLE and BISON_HAIRY.
921 1999-12-13 Jesse Thilo <jthilo@gnu.org>
923 * configure.in, NEWS:
926 1999-10-27 Jesse Thilo <jthilo@gnu.org>
928 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
929 Added reference card.
931 1999-07-26 Jesse Thilo <jthilo@gnu.org>
933 * po/ru.po: Added Russian translation.
935 1999-07-26 Jesse Thilo <jthilo@gnu.org>
937 * configure.in: Added Russian translation.
939 1999-07-06 Jesse Thilo <jthilo@gnu.org>
941 * configure.in, NEWS, README:
942 Released version 1.28.
944 1999-06-14 Jesse Thilo <jthilo@gnu.org>
947 Squashed redefinition warning on some systems.
949 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
950 Have configure build version string instead of relying on ANSI string
953 1999-06-14 Jesse Thilo <jthilo@gnu.org>
955 * po/POTFILES.in: Got rid of version.c.
957 1999-06-14 Jesse Thilo <jthilo@gnu.org>
959 * acconfig.h, configure.in:
960 Have configure build version string instead of relying on ANSI string
963 1999-06-08 Jesse Thilo <jthilo@gnu.org>
966 Dropped mention of `+' for long-named options.
968 1999-05-30 Jesse Thilo <jthilo@gnu.org>
970 * src/files.c: Added <unistd.h> for unlink().
972 * src/Makefile.am, src/system.h:
975 1999-05-30 Jesse Thilo <jthilo@gnu.org>
977 * README: Added a FAQ list.
979 * configure.in, acconfig.h:
982 1999-05-30 Jesse Thilo <jthilo@gnu.org>
984 * doc/FAQ, doc/Makefile.am:
987 1999-05-19 Jesse Thilo <jthilo@gnu.org>
989 * src/alloc.h, src/symtab.h, src/version.c:
990 Protected inclusion of "config.h" with HAVE_CONFIG_H.
992 1999-04-18 Jesse Thilo <jthilo@gnu.org>
994 * src/.cvsignore, src/Makefile.am:
995 Reorganized: sources in `src', documentation in `doc'.
997 * src/lex.c (literalchar):
998 fixed the code for escaping double quotes (thanks
1001 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1003 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1004 Adjusted paths to reflect directory reorganization.
1006 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1008 * doc/.cvsignore, doc/Makefile.am:
1009 Reorganized: sources in `src', documentation in `doc'.
1011 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1014 Updated AC_INIT file to reflect directory reorganization.
1016 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1017 Reorganized: sources in `src', documentation in `doc'.
1019 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1022 Don't declare calloc() and realloc() if not necessary.
1024 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1026 * configure.in, acconfig.h, acinclude.m4:
1027 Don't declare calloc() and realloc() if not necessary.
1029 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1031 * po/.cvsignore: Added i18n support.
1033 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1035 * acconfig.h, configure.in, Makefile.am:
1038 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1040 * src/bison.s1: Fixed #line numbers.
1042 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1044 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1045 Added PO files from Translation Project.
1047 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1050 Added support for non-ANSI compilers (ansi2knr).
1052 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1054 * configure.in: Bumped version number to 1.27.
1057 Added `bison.simple' to list of files removed by `make distclean'.
1059 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1061 * src/files.c, src/files.h:
1062 Defined locations of parser files in config.h instead of Makefile.
1064 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1066 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1067 Defined locations of parser files in config.h instead of Makefile.
1069 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1072 Removed inappropriate use of $< macro.
1074 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1076 * po/Makefile.in.in, po/POTFILES.in:
1077 Add `po' directory skeleton.
1079 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1081 * README: Document help-bison list.
1083 * configure.in: Add check for mkstemp().
1085 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1087 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1088 Hush a few compiler warnings.
1091 Add tryclose(), which verifies that fclose was successful.
1092 Hush a couple of compiler warnings.
1094 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1096 * Makefile.am, OChangeLog:
1097 ChangeLog is now automatically generated. Include the old version as
1100 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1102 * 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:
1105 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1107 * doc/bison.texinfo: Fix formatting glitch.
1109 * doc/bison.texinfo: Update FSF address.
1111 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1113 * acconfig.h: Update FSF address.
1115 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1118 Don't define PACKAGE here, since config.h defines it.
1120 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1122 * src/reader.c: Update copyright date.
1125 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1126 favor of output directly to stderr (avoids buffer overruns).
1128 * src/reader.c: Some checks for premature EOF.
1130 * 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:
1131 Use prototypes if the compiler understands them.
1133 * src/files.c: Honor TMPDIR on Unix hosts.
1134 Use prototypes if the compiler understands them.
1137 Fix a couple of buffer overrun bugs.
1138 Use prototypes if the compiler understands them.
1140 * src/system.h: Include unistd.h and ctype.h.
1141 Use #ifdef instead of #if for NLS symbols.
1143 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1145 * doc/bison.texinfo:
1146 Delete comment "consider using @set for edition number, etc..." since
1147 we now are doing so.
1149 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1152 Use prototypes if the compiler understands them.
1154 * NEWS: Document 1.26 highlights.
1156 * Makefile.am: Require Automake 1.3 or later.
1159 Use prototypes if the compiler understands them.
1161 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1164 Use VERSION symbol from automake for version number.
1166 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1168 * acconfig.h, configure.in, version.cin:
1169 Use VERSION symbol from automake for version number.
1171 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1174 Distribute original version of simple parser (bison.s1), not built
1175 version (bison.simple).
1177 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1179 * doc/bison.texinfo: Add info dir entry.
1181 * doc/bison.texinfo:
1182 Let automake put version number into documentation.
1184 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1186 * src/bison.cld, src/build.com, src/vmshlp.mar:
1187 Add non-RCS files from /gd/gnu/bison.
1189 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1192 Document the BISON_HAIRY and BISON_SIMPLE variables.
1194 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1196 * src/version.c: Build version.c automatically.
1199 Fix token numbering (used to start at 258, not 257).
1201 * src/system.h: Include config.h.
1203 * src/getargs.c: Update bug report address.
1205 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1206 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1208 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1211 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1213 * configure.in, version.cin:
1214 Build version.c automatically.
1216 * AUTHORS: Add AUTHORS file.
1218 * README: Update bug report address.
1221 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1223 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1226 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1228 * doc/bison.texinfo: Clean up some formatting.
1230 1998-05-05 Richard Stallman <rms@gnu.org>
1232 * doc/bison.texinfo:
1233 Explain better why to make a pure parser.
1235 1998-01-05 Richard Stallman <rms@gnu.org>
1237 * src/files.c (openfiles):
1238 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1239 find a temporary directory, if possible. Do not unlink files while
1242 1997-08-25 Richard Stallman <rms@gnu.org>
1244 * src/reader.c (stack_offset;):
1245 Change some warni to warns.
1247 * src/lex.c (literalchar): Use warns, not warni.
1249 1997-06-28 Richard Stallman <rms@gnu.org>
1251 * src/bison.s1: Add a Bison version comment.
1253 * src/main.c (fatal, warn, berror):
1256 1997-06-28 Richard Stallman <rms@gnu.org>
1258 * Makefile.in (bison_version): New variable.
1259 (dist): Use that variable.
1260 (bison.s1): Substitute the Bison version into bison.simple.
1262 * bison.simple: Add a Bison version comment.
1264 1997-06-18 Richard Stallman <rms@gnu.org>
1266 * src/main.c (fatal, warn, berror):
1267 Make error messages standard.
1268 (toomany): Improve error message text.
1270 * 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:
1271 new.h renamed to alloc.h.
1273 1997-06-18 Richard Stallman <rms@gnu.org>
1275 * Makefile.in: new.h renamed to alloc.h.
1277 1997-05-24 Richard Stallman <rms@gnu.org>
1279 * src/lex.c (literalchar):
1280 Fix the code for escaping \, " and '.
1282 (lex): Avoid trouble when there are many chars
1283 to discard in a char literal with just several chars in it.
1285 1997-05-17 Richard Stallman <rms@gnu.org>
1288 Use malloc, if using alloca is troublesome.
1289 (YYSTACK_USE_ALLOCA): New flag macro.
1290 Define it for some systems and compilers.
1291 (YYSTACK_ALLOC): New macro.
1292 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1293 If it was malloc'd, free it.
1295 1997-05-17 Richard Stallman <rms@gnu.org>
1298 Use malloc, if using alloca is troublesome.
1299 (YYSTACK_USE_ALLOCA): New flag macro.
1300 Define it for some systems and compilers.
1301 (YYSTACK_ALLOC): New macro.
1302 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1303 If it was malloc'd, free it.
1305 1997-04-23 Richard Stallman <rms@gnu.org>
1308 (alloca) [__hpux]: Always define as __builtin_alloca.
1310 1997-04-23 Richard Stallman <rms@gnu.org>
1313 (alloca) [__hpux]: Always define as __builtin_alloca.
1315 1997-04-22 Richard Stallman <rms@gnu.org>
1318 [__hpux]: Include alloca.h (right for HPUX 10)
1319 instead of declaring alloca (right for HPUX 9).
1321 * src/bison.s1 (__yy_memcpy):
1322 Declare arg `count' as unsigned int.
1323 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1325 1997-04-22 Richard Stallman <rms@gnu.org>
1328 [__hpux]: Include alloca.h (right for HPUX 10)
1329 instead of declaring alloca (right for HPUX 9).
1331 * bison.simple (__yy_memcpy):
1332 Declare arg `count' as unsigned int.
1333 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1335 1997-01-03 Richard Stallman <rms@gnu.org>
1337 * src/allocate.c: [__STDC__ or _MSC_VER]:
1338 Declare calloc and realloc to return void *.
1340 1997-01-02 Richard Stallman <rms@gnu.org>
1343 [_MSC_VER]: Include stdlib.h and process.h.
1344 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1346 * src/main.c (main): Return FAILURE as a value.
1347 (printable_version): Declare arg as int, not char.
1349 1997-01-02 Richard Stallman <rms@gnu.org>
1351 * Makefile.in (dist):
1352 Explicitly check for symlinks, and copy them.
1354 1996-12-19 Richard Stallman <rms@gnu.org>
1357 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1359 1996-12-18 Paul Eggert <eggert@gnu.org>
1361 * src/bison.s1 (yyparse):
1362 If __GNUC__ and YYPARSE_PARAM are both defined,
1363 declare yyparse to have a void * argument.
1365 1996-12-18 Paul Eggert <eggert@gnu.org>
1367 * bison.simple (yyparse):
1368 If __GNUC__ and YYPARSE_PARAM are both defined,
1369 declare yyparse to have a void * argument.
1371 1996-12-17 Richard Stallman <rms@gnu.org>
1373 * src/reduce.c (nbits): Add some casts.
1375 1996-08-12 Richard Stallman <rms@gnu.org>
1377 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1379 1996-08-12 Richard Stallman <rms@gnu.org>
1381 * bison.simple: Test _MSDOS as well as _MSDOS_.
1383 1996-07-31 Richard Stallman <rms@gnu.org>
1386 [__sun && __i386]: Include alloca.h.
1388 1996-07-31 Richard Stallman <rms@gnu.org>
1391 [__sun && __i386]: Include alloca.h.
1393 1996-07-30 Richard Stallman <rms@gnu.org>
1395 * src/bison.s1: Comment change.
1397 * src/bison.s1: Test _MSDOS_, not MSDOS.
1399 1996-07-30 Richard Stallman <rms@gnu.org>
1401 * bison.simple: Comment change.
1403 * bison.simple: Test _MSDOS_, not MSDOS.
1405 1996-06-01 Richard Stallman <rms@gnu.org>
1407 * 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:
1408 Insert `_' macro around many string constants.
1411 Insert `_' macro around many string constants.
1413 (main): Call setlocale, bindtextdomain and textdomain.
1415 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1416 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1417 [ENABLE_NLS]: Include libintl.h.
1418 [ENABLE_NLS] (gettext): Define.
1419 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1420 (N_, PACKAGE, LOCALEDIR): New macros.
1422 1996-06-01 Richard Stallman <rms@gnu.org>
1424 * POTFILES.in: New file.
1426 * Makefile.in (allocate.o):
1427 Define target explicitly.
1429 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1430 (LDFLAGS): Set to @LDFLAGS@.
1431 (configure): Run autoconf only if preceding `cd' succeeds.
1432 (bison.s1): Redirect output to temporary file then move the
1433 temporary to the target, rather than redirecting directly to bison.s1.
1434 (clean): Remove config.status and config.log.
1435 (distclean): Don't remove config.status here.
1437 1996-05-12 Richard Stallman <rms@gnu.org>
1440 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1442 1996-05-12 Richard Stallman <rms@gnu.org>
1445 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1447 1996-05-11 Richard Stallman <rms@gnu.org>
1449 * src/bison.s1 (__yy_memcpy):
1450 Really reorder the args, as was supposedly done on Feb 14 1995.
1451 (yyparse): Calls changed accordingly.
1453 1996-05-11 Richard Stallman <rms@gnu.org>
1455 * Makefile.in (dist): Don't use $(srcdir).
1457 * bison.simple (__yy_memcpy):
1458 Really reorder the args, as was supposedly done on Feb 14 1995.
1459 (yyparse): Calls changed accordingly.
1461 1996-01-27 Richard Stallman <rms@gnu.org>
1463 * src/output.c (output_rule_data):
1464 Test YYERROR_VERBOSE in the conditional
1465 around the definition of ttyname.
1467 1995-12-29 Richard Stallman <rms@gnu.org>
1470 Fix line numbers in #line commands.
1472 1995-12-29 Richard Stallman <rms@gnu.org>
1475 Fix line numbers in #line commands.
1477 1995-12-27 Richard Stallman <rms@gnu.org>
1479 * src/bison.s1 (YYPARSE_PARAM_DECL):
1480 In C++, make it always null.
1481 (YYPARSE_PARAM_ARG): New macro.
1482 (yyparse): Use YYPARSE_PARAM_ARG.
1484 1995-12-27 Richard Stallman <rms@gnu.org>
1486 * bison.simple (YYPARSE_PARAM_DECL):
1487 In C++, make it always null.
1488 (YYPARSE_PARAM_ARG): New macro.
1489 (yyparse): Use YYPARSE_PARAM_ARG.
1491 1995-11-29 Richard Stallman <rms@gnu.org>
1493 * doc/bison.texinfo:
1494 Describe literal string tokens, %raw, %no_lines, %token_table.
1496 1995-11-29 Daniel Hagerty <hag@gnu.org>
1498 * doc/bison.texinfo: Fixed update date
1500 1995-10-16 Richard Stallman <rms@gnu.org>
1502 * src/version.c: Version 1.25.
1504 1995-10-16 Richard Stallman <rms@gnu.org>
1506 * NEWS: *** empty log message ***
1508 1995-10-16 Richard Stallman <rms@gnu.org>
1510 * doc/bison.1, doc/bison.rnh:
1513 1995-10-15 Richard Stallman <rms@gnu.org>
1515 * src/vmsgetargs.c, src/getargs.c:
1516 Added -n, -k, and -raw switches.
1517 (noparserflag, toknumflag, rawtoknumflag): New variables.
1519 * src/symtab.h (SALIAS):
1520 New #define for adding aliases to %token.
1521 (struct bucket): Added `alias' field.
1523 * src/reduce.c (reduce_grammar):
1524 Revise error message.
1525 (print_notices): Remove final `.' from error message.
1527 * src/reader.c (reader_output_yylsp):
1529 (readgram): Use `#if 0' around code that accepted %command
1530 inside grammar rules: The documentation doesn't allow it,
1531 and it will fail since the %command processors scan for the next %.
1532 (parse_token_decl): Extended the %token
1533 declaration to allow a multi-character symbol as an alias.
1534 (parse_thong_decl): New function.
1535 (read_declarations): Added %thong declarations.
1536 (read_declarations): Handle NOOP to deal with allowing
1537 % declarations as another means to specify the flags.
1538 (readgram): Allow %prec prior to semantics embedded in a rule.
1539 (skip_to_char, read_declarations, copy_definition)
1540 (parse_token_decl, parse_start_decl, parse_type_decl)
1541 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1542 (get_type_name, copy_guard, copy_action, readgram)
1543 (get_type, packsymbols): Revised most error messages.
1544 Changed `fatal' to `warnxxx' to avoid aborting for error.
1545 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1546 (read_declarations): Improve the error message for
1547 an invalid character. Do not abort.
1548 (read_declarations, copy_guard, copy_action): Use
1549 printable_version to avoid unprintable characters in printed output.
1550 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1551 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1552 Allow the type of a non-terminal can be given
1553 more than once, as long as all specifications give the same type.
1556 (output_headers, output_trailers, output, output_gram)
1557 (output_rule_data): Implement noparserflag variable.
1558 Implement toknumflag variable.
1559 (output): Call reader_output_yylsp to output LTYPESTR.
1561 * src/main.c (main):
1562 If reader sees an error, don't process the grammar.
1563 (fatals): Updated to not use VARARGS1.
1564 (printable_version, int_to_string, warn, warni, warns, warnss)
1565 (warnsss): New error reporting functions. Avoid abort for error.
1568 Added THONG and NOOP for alias processing.
1569 Added SETOPT for the new code that allows setting options with %flags.
1572 Include getopt.h. Add some extern decls.
1573 (safegetc): New function to deal with EOF gracefully.
1574 (literalchar); new function to deal with reading \ escapes.
1575 (lex): Use literalchar.
1576 (lex): Implemented "..." tokens.
1577 (literalchar, lex, parse_percent_token): Made tokenbuffer
1578 always contain the token. This includes growing the token
1579 buffer while reading an integer.
1580 (parse_percent_token): Replaced if-else statement with percent_table.
1581 (parse_percent_token): Added % declarations as another
1582 way to specify the flags -n, -l, and -r. Also added hooks for
1583 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1584 major changes to files.c.
1585 (lex) Retain in the incoming stream a character following
1587 (skip_white_space, lex): Revised most error messages
1588 and changed fatal to warn to avoid aborting.
1589 (percent_table): Added %thong declarations.
1591 * src/gram.h: Comment changes.
1593 * src/files.c (openfiles, open_extra_files, done):
1595 and actfile file. Handle noparserflag. Both for -n switch.
1597 * src/conflicts.c (resolve_sr_conflict):
1598 Remove use of alloca.
1600 1995-06-01 Jim Meyering <meyering@gnu.org>
1602 * doc/bison.texinfo: *** empty log message ***
1604 1995-05-06 Richard Stallman <rms@gnu.org>
1606 * src/bison.s1: Comment change.
1608 1995-05-06 Richard Stallman <rms@gnu.org>
1610 * bison.simple: Comment change.
1612 1995-05-03 Richard Stallman <rms@gnu.org>
1614 * src/version.c: Version now 1.24.
1616 * src/bison.s1: Change distribution terms.
1618 * src/version.c: Version now 1.23.
1620 1995-05-03 Richard Stallman <rms@gnu.org>
1622 * doc/bison.texinfo:
1623 Rewrite "Conditions for Using Bison".
1624 Update version to 1.24.
1626 1995-05-03 Richard Stallman <rms@gnu.org>
1628 * bison.simple: Change distribution terms.
1630 1995-02-23 Richard Stallman <rms@gnu.org>
1632 * src/files.c: Test __VMS_POSIX as well as VMS.
1634 1995-02-14 Jim Meyering <meyering@gnu.org>
1636 * src/bison.s1 (__yy_memcpy):
1637 Renamed from __yy_bcopy to avoid
1638 confusion. Reverse FROM and TO arguments to be consistent with
1641 1995-02-14 Jim Meyering <meyering@gnu.org>
1643 * bison.simple (__yy_memcpy):
1644 Renamed from __yy_bcopy to avoid
1645 confusion. Reverse FROM and TO arguments to be consistent with
1648 1994-11-10 David J. MacKenzie <djm@gnu.org>
1654 * Makefile.in (DISTFILES): Include NEWS.
1656 * Makefile.in (DISTFILES):
1657 Include install-sh, not install.sh.
1659 * configure.in: Update to Autoconf v2 macro names.
1661 1994-10-05 David J. MacKenzie <djm@gnu.org>
1663 * Makefile.in: fix typo
1665 * Makefile.in (prefix, exec_prefix):
1666 Let configure set them.
1668 1994-09-28 David J. MacKenzie <djm@gnu.org>
1670 * Makefile.in: Set datadir to $(prefix)/share.
1672 1994-09-15 Richard Stallman <rms@gnu.org>
1675 Update copyright notice and GPL version.
1677 1994-09-15 Richard Stallman <rms@gnu.org>
1680 Update copyright notice and GPL version.
1682 1994-07-12 Richard Stallman <rms@gnu.org>
1684 * src/reduce.c, src/reader.c:
1687 1994-05-05 David J. MacKenzie <djm@gnu.org>
1689 * Makefile.in: entered into RCS
1691 1994-03-26 Richard Stallman <rms@gnu.org>
1693 * src/bison.s1: entered into RCS
1695 1994-03-26 Richard Stallman <rms@gnu.org>
1697 * bison.simple: entered into RCS
1699 1994-03-25 Richard Stallman <rms@gnu.org>
1701 * src/main.c: entered into RCS
1703 1994-03-24 Richard Stallman <rms@gnu.org>
1705 * src/conflicts.c: entered into RCS
1707 1994-01-02 Richard Stallman <rms@gnu.org>
1709 * Makefile.in: *** empty log message ***
1711 1993-11-21 Richard Stallman <rms@gnu.org>
1713 * src/bison.s1: *** empty log message ***
1715 1993-11-21 Richard Stallman <rms@gnu.org>
1717 * doc/bison.texinfo: entered into RCS
1719 * doc/bison.texinfo: *** empty log message ***
1721 1993-11-21 Richard Stallman <rms@gnu.org>
1723 * bison.simple: *** empty log message ***
1725 1993-10-25 David J. MacKenzie <djm@gnu.org>
1727 * doc/bison.texinfo: *** empty log message ***
1729 1993-10-19 Richard Stallman <rms@gnu.org>
1731 * src/bison.s1: *** empty log message ***
1733 1993-10-19 Richard Stallman <rms@gnu.org>
1735 * bison.simple: *** empty log message ***
1737 1993-10-14 Richard Stallman <rms@gnu.org>
1739 * src/bison.s1: *** empty log message ***
1741 1993-10-14 Richard Stallman <rms@gnu.org>
1743 * bison.simple: *** empty log message ***
1745 1993-09-14 David J. MacKenzie <djm@gnu.org>
1747 * doc/bison.texinfo: *** empty log message ***
1749 1993-09-13 Noah Friedman <friedman@gnu.org>
1751 * Makefile.in: *** empty log message ***
1753 1993-09-10 Richard Stallman <rms@gnu.org>
1755 * src/conflicts.c: *** empty log message ***
1757 * src/system.h: entered into RCS
1759 1993-09-10 Richard Stallman <rms@gnu.org>
1761 * doc/bison.1: entered into RCS
1763 1993-09-06 Noah Friedman <friedman@gnu.org>
1765 * src/version.c: entered into RCS
1767 1993-09-06 Noah Friedman <friedman@gnu.org>
1769 * Makefile.in: *** empty log message ***
1771 1993-07-30 David J. MacKenzie <djm@gnu.org>
1773 * Makefile.in: *** empty log message ***
1775 1993-07-24 Richard Stallman <rms@gnu.org>
1777 * src/bison.s1: *** empty log message ***
1779 1993-07-24 Richard Stallman <rms@gnu.org>
1781 * bison.simple: *** empty log message ***
1783 1993-07-08 David J. MacKenzie <djm@gnu.org>
1785 * Makefile.in: *** empty log message ***
1787 1993-07-04 Richard Stallman <rms@gnu.org>
1789 * src/bison.s1: *** empty log message ***
1791 1993-07-04 Richard Stallman <rms@gnu.org>
1793 * bison.simple: *** empty log message ***
1795 1993-06-26 David J. MacKenzie <djm@gnu.org>
1797 * src/getargs.c: entered into RCS
1799 1993-06-26 David J. MacKenzie <djm@gnu.org>
1801 * doc/bison.texinfo: *** empty log message ***
1803 * doc/bison.1: New file.
1805 1993-06-25 Richard Stallman <rms@gnu.org>
1807 * src/getargs.c: New file.
1809 1993-06-16 Richard Stallman <rms@gnu.org>
1811 * src/bison.s1: *** empty log message ***
1813 1993-06-16 Richard Stallman <rms@gnu.org>
1815 * bison.simple: *** empty log message ***
1817 1993-06-03 Richard Stallman <rms@gnu.org>
1819 * src/bison.s1: New file.
1821 1993-06-03 Richard Stallman <rms@gnu.org>
1823 * doc/bison.texinfo: *** empty log message ***
1825 1993-06-03 Richard Stallman <rms@gnu.org>
1827 * bison.simple: New file.
1829 1993-05-19 Richard Stallman <rms@gnu.org>
1831 * doc/bison.texinfo: New file.
1833 1993-05-07 Noah Friedman <friedman@gnu.org>
1835 * Makefile.in: *** empty log message ***
1837 1993-04-28 Noah Friedman <friedman@gnu.org>
1839 * src/reader.c: *** empty log message ***
1841 1993-04-23 Noah Friedman <friedman@gnu.org>
1843 * src/alloc.h: entered into RCS
1845 1993-04-20 David J. MacKenzie <djm@gnu.org>
1847 * src/version.c: *** empty log message ***
1849 * src/files.c, src/allocate.c:
1852 * src/reader.c: *** empty log message ***
1854 * src/lex.c: entered into RCS
1856 * src/conflicts.c: New file.
1858 * src/symtab.c: entered into RCS
1860 * src/alloc.h: New file.
1862 * src/LR0.c: entered into RCS
1864 1993-04-18 Noah Friedman <friedman@gnu.org>
1866 * src/reader.c: New file.
1868 * src/version.c: *** empty log message ***
1870 1993-04-18 Noah Friedman <friedman@gnu.org>
1872 * Makefile.in: *** empty log message ***
1874 1993-04-17 Noah Friedman <friedman@gnu.org>
1876 * Makefile.in: *** empty log message ***
1878 1993-04-15 Richard Stallman <rms@gnu.org>
1880 * src/main.c, src/files.c:
1883 1993-04-15 Noah Friedman <friedman@gnu.org>
1885 * configure.in: entered into RCS
1887 * configure.in: *** empty log message ***
1889 * configure.in: New file.
1891 1993-04-14 Richard Stallman <rms@gnu.org>
1893 * Makefile.in: New file.
1895 1993-04-13 Richard Stallman <rms@gnu.org>
1897 * src/version.c: New file.
1899 1993-03-25 Richard Stallman <rms@gnu.org>
1901 * src/output.c: entered into RCS
1903 1992-09-25 Richard Stallman <rms@gnu.org>
1905 * configure.bat: entered into RCS
1907 1992-06-22 Richard Stallman <rms@gnu.org>
1909 * src/vmsgetargs.c: entered into RCS
1911 1992-06-22 Richard Stallman <rms@gnu.org>
1913 * doc/bison.rnh: entered into RCS
1915 1992-04-20 David J. MacKenzie <djm@gnu.org>
1917 * README: entered into RCS
1919 1992-01-22 Richard Stallman <rms@gnu.org>
1921 * src/machine.h: entered into RCS
1923 1991-12-21 Richard Stallman <rms@gnu.org>
1925 * src/lalr.c, src/closure.c:
1928 1991-12-20 Richard Stallman <rms@gnu.org>
1930 * src/state.h: entered into RCS
1932 1991-12-18 Richard Stallman <rms@gnu.org>
1934 * src/print.c, src/nullable.c, src/derives.c:
1937 1991-11-03 David J. MacKenzie <djm@gnu.org>
1939 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1942 1988-09-09 Richard Stallman <rms@gnu.org>
1944 * src/bison.hairy: entered into RCS
1946 1987-12-16 Richard Stallman <rms@gnu.org>
1948 * REFERENCES: entered into RCS