1 2000-12-20 Akim Demaille <akim@epita.fr>
3 * src/files.c (open_files): Actually the `.output' file is based
4 on the short_base_name, not base_name.
5 * tests/suite.at (Checking output file names): Adjust.
7 2000-12-20 Akim Demaille <akim@epita.fr>
9 * src/bison.s1: Remove, we now use directly...
10 * src/bison.simple: this.
11 * src/Makefile.am: Use pkgdata instead of data.
13 2000-12-20 Akim Demaille <akim@epita.fr>
15 * src/files.c (guard_obstack): New.
16 (open_files): Initialize it.
17 (output_files): Dump it...
18 * src/files.h: Export it.
19 * src/reader.c (copy_guard): Use it.
21 2000-12-19 Akim Demaille <akim@epita.fr>
23 * src/files.c (outfile, defsfile, actfile): Removed as global
25 (open_files): Don't compute them.
26 (output_files): Adjust.
27 (base_name, short_base_name): Be global.
30 2000-12-19 Akim Demaille <akim@epita.fr>
32 * src/files.c (strsuffix): New.
33 (stringappend): Be just like strcat but allocate.
34 (base_names): Eve out from open_files.
35 Try to simplify the rather hairy computation of base_name and
38 * tests/suite.at (Checking output file names): New test.
40 2000-12-19 Akim Demaille <akim@epita.fr>
42 * src/system.h (obstack_grow_literal_string): Rename as...
43 (obstack_grow_string): this.
44 * src/output.c (output_parser): Recognize `%% actions' instead of
46 * src/bison.s1: s/$/%% actions/.
47 * src/bison.hairy: Likewise.
49 2000-12-19 Akim Demaille <akim@epita.fr>
51 * src/output.c (output_parser): Compute the `#line' lines when
53 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
54 Suggested by Hans Aberg.
56 2000-12-19 Akim Demaille <akim@epita.fr>
58 Let the handling of the skeleton files be local to the procedures
61 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
63 (fparser, open_extra_files): Remove.
64 (open_files, output_files): Don't take care of fparser.
65 * src/files.h: Adjust.
66 * src/output.c (output_parser): Open and close the file to the
68 * src/reader.c (read_declarations): When %semantic_parser, open
71 2000-12-19 Akim Demaille <akim@epita.fr>
73 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
74 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
76 2000-12-19 Akim Demaille <akim@epita.fr>
78 * src/files.c (open_files): Yipee! We no longer need all the code
79 looking for `/tmp' since we have no tmp file.
81 2000-12-19 Akim Demaille <akim@epita.fr>
83 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
85 * src/files.c (open_files): Less dependency on MSDOS etc.
87 2000-12-14 Akim Demaille <akim@epita.fr>
89 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
90 Provide a default definition.
91 Use it when executing the default @ action.
92 * src/reader.c (reader_output_yylsp): No longer include
93 `timestamp' and `text' in the default YYLTYPE.
95 2000-12-12 Akim Demaille <akim@epita.fr>
97 * src/reader.c (copy_definition, parse_union_decl, copy_action)
98 (copy_guard): Quote the file names.
99 Reported by Laurent Mascherpa.
101 2000-12-12 Akim Demaille <akim@epita.fr>
103 * src/output.c (output_headers, output_program, output): Be sure
104 to escape special characters when outputting filenames.
105 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
106 (output_headers): Don't depend on them, Use ACTSTR.
108 2000-11-17 Akim Demaille <akim@epita.fr>
110 * lib/obstack.h: Formatting changes.
111 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
112 prevents type checking.
113 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
114 cast the value to (void *): assigning a `foo *' to a `void *'
116 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
117 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
120 2000-11-17 Akim Demaille <akim@epita.fr>
122 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
124 (suite.m4, regression.m4, calc.m4): these.
125 * tests/atgeneral.m4: Update from CVS Autoconf.
127 2000-11-17 Akim Demaille <akim@epita.fr>
129 * tests/regression.m4 (%union and --defines): New test,
130 demonstrating a current bug in the obstack implementation.
132 2000-11-17 Akim Demaille <akim@epita.fr>
134 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
136 Use them to declare the variables which are global or local to
139 2000-11-17 Akim Demaille <akim@epita.fr>
141 * acconfig.h: Remove, no longer used.
143 2000-11-07 Akim Demaille <akim@epita.fr>
145 * src: s/Copyright (C)/Copyright/g.
147 2000-11-07 Akim Demaille <akim@epita.fr>
149 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
151 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
153 2000-11-07 Akim Demaille <akim@epita.fr>
155 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
156 Merge in a single CPP if/else.
158 2000-11-07 Akim Demaille <akim@epita.fr>
160 * src/output.c (output): Remove useless variables.
161 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
162 argument `data' for consistency with the prototypes.
164 (obstack_copy, obstack_copy0): Rename the second argument as
165 `address' for consistency. Qualify it `const'.
166 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
167 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
168 `const' their input argument (`data' or `address').
169 Adjust the corresponding macros to include `const' in casts.
171 2000-11-03 Akim Demaille <akim@epita.fr>
173 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
174 s/PFILE1/BISON_HAIRY/.
177 2000-11-03 Akim Demaille <akim@epita.fr>
179 For some reason, this was not applied.
181 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
182 `unlink': it's no longer used.
184 2000-11-03 Akim Demaille <akim@epita.fr>
186 * src/files.c (skeleton_find): New function, eved out of...
187 (open_files, open_extra_files): here.
189 2000-11-03 Akim Demaille <akim@epita.fr>
193 * src/files.c (obstack_save): New function.
195 (output_files): this.
197 * src/main.c (main): Don't use `atexit' to register `done', since
198 it no longer has to remove tmp files, just call `output_files'
199 when there are no errors.
201 2000-11-02 Akim Demaille <akim@epita.fr>
203 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
204 `unlink': it's no longer used.
205 * src/files.h: Formatting changes.
207 2000-11-02 Akim Demaille <akim@epita.fr>
209 Remove the last uses of mktemp and unlink/delete.
211 * src/files.c (fdefines, ftable): Removed.
212 (defines_ostack, table_obstack): New.
213 Adjust dependencies of the former into uses of the latter.
214 * src/output.c (output_short_or_char_table, output_short_table):
215 Convert to using obstacks.
216 * src/reader.c (copy_comment2): Accept one FILE * and two
218 (output_token_defines, reader_output_yylsp): Use obstacks.
219 * src/system.h (obstack_fgrow3): New.
221 2000-11-01 Akim Demaille <akim@epita.fr>
223 Change each use of `fattrs' into a use of `attrs_obstack'.
225 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
226 * src/files.c (fattrs): Remove.
227 (attrs_obstack): New.
228 Adjust all dependencies.
229 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
231 2000-11-01 Akim Demaille <akim@epita.fr>
234 Change each use of `faction' into a use of `action_obstack'.
236 * lib/obstack.h, lib/obstack.c: New files.
237 * src/files.c (faction): Remove.
238 (action_obstack): New.
239 Adjust all dependencies.
241 2000-10-20 Akim Demaille <akim@epita.fr>
243 * lib/quote.h (PARAMS): New macro. Use it.
245 2000-10-16 Akim Demaille <akim@epita.fr>
247 * src/output.c (output_short_or_char_table): New function.
248 (output_short_table, output_token_translations): Use it.
249 (goto_actions): Use output_short_table.
251 2000-10-16 Akim Demaille <akim@epita.fr>
253 * src/symtab.c (bucket_new): New function.
256 * src/output.c (output_short_table): New argument to display the
257 comment associated with the table.
259 (output_gram): Use it.
260 (output_rule_data): Nicer output layout for YYTNAME.
262 2000-10-16 Akim Demaille <akim@epita.fr>
264 * src/lex.c (read_typename): New function.
266 * src/reader.c (copy_dollar): Likewise.
268 2000-10-16 Akim Demaille <akim@epita.fr>
270 * src/reader.c (copy_comment2): Expect the input stream to be on
271 the `/' which is suspected to open a comment, instead of being
272 called after `//' or `/*' was read.
273 (copy_comment, copy_definition, parse_union_decl, copy_action)
274 (copy_guard): Adjust.
276 2000-10-16 Akim Demaille <akim@epita.fr>
278 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
279 `read_signed_integer'.
281 2000-10-16 Akim Demaille <akim@epita.fr>
283 * src/reader.c (copy_dollar): New function.
284 (copy_guard, copy_action): Use it.
286 2000-10-16 Akim Demaille <akim@epita.fr>
288 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
289 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
290 New files, from Fileutils 4.0.27.
291 * src/main.c (printable_version): Remove.
292 * src/lex.c, src/reader.c: Use `quote'.
294 2000-10-04 Akim Demaille <akim@epita.fr>
296 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
298 2000-10-04 Akim Demaille <akim@epita.fr>
300 * doc/bison.texinfo: Various typos spotted by Neil Booth.
302 2000-10-04 Akim Demaille <akim@epita.fr>
304 When a literal string is used to define two different tokens,
305 `bison -v' segfaults.
306 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
308 * tests/regression.m4: New file.
309 Include the core of the sample provided by Piotr Gackiewicz.
310 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
313 2000-10-04 Akim Demaille <akim@epita.fr>
315 * src/reader.c (parse_expect_decl): Keep `count' within the size
319 2000-10-02 Paul Eggert <eggert@twinsun.com>
321 * bison.s1 (yyparse): Assign the default value
322 unconditionally, to avoid a GCC warning and make the parser a
325 2000-10-02 Akim Demaille <akim@epita.fr>
327 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
330 2000-10-02 Akim Demaille <akim@epita.fr>
332 * src/derives.c, src/print.c, src/reduce.c: To ease the
333 translation, move some `\n' out of the translated strings.
335 2000-10-02 Akim Demaille <akim@epita.fr>
337 The location tracking mechanism is precious for parse error
338 messages. Nevertheless, it is enabled only when `@n' is used in
339 the grammar, which is a different issue (you can use it in error
340 message, but not in the grammar per se). Therefore, there should
341 be another means to enable it.
343 * src/getargs.c (getargs): Support `--locations'.
345 * src/getargs.h (locationsflag): Export it.
346 * src/lex.c (percent_table): Support `%locations'.
347 * src/reader.c (yylsp_needed): Remove this variable, now replaced
348 with `locationsflag'.
349 * doc/bison.texinfo: Document `--locations' and `%locations'.
351 * tests/calc.m4: Test it.
353 For regularity of the names, replace each
354 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
355 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
356 In addition replace each `flag' with `_flag'.
358 2000-10-02 Akim Demaille <akim@epita.fr>
360 Also test parse error messages, including with YYERROR_VERBOSE.
362 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
364 Use it to check the computations.
365 Use it to check `nonassoc' is honored.
366 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
368 (_AT_CHECK_CALC): Adjust to this option.
369 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
371 2000-10-02 Akim Demaille <akim@epita.fr>
373 Test also `--verbose', `--defines' and `--name-prefix'. Testing
374 the latter demonstrates a flaw in the handling of non debugging
375 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
376 was used in order to simplify:
392 unfortunately this leads to a CPP conflict when
393 `--name-prefix=foo' is used since it produces `#define yydebug
396 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
397 (YYDPRINTF): New macro.
399 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
401 Also test `--verbose', `--defines' and `--name-prefix'.
403 2000-10-02 Akim Demaille <akim@epita.fr>
405 Improve the readability of the produced parsers.
407 * src/bison.s1: Formatting changes.
408 Improve the comment related to the `$' mark.
409 (yydefault): Don't fall through to `yyresume': `goto' there.
410 * src/output.c (output_parser): When the `$' is met, skip the end
412 New variable, `number_of_dollar_signs', to check there's exactly
413 one `$' in the parser skeleton.
415 2000-10-02 Akim Demaille <akim@epita.fr>
417 * lib/xstrdup.c: New file, from the fileutils.
418 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
419 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
420 instead of strlen + xmalloc + strcpy.
421 * src/symtab.c (copys): Remove, use xstrdup instead.
423 2000-10-02 Akim Demaille <akim@epita.fr>
425 * src/gram.h (associativity): New enum type which replaces the
426 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
427 `right_assoc', `left_assoc' and `non_assoc'.
428 Adjust all dependencies.
429 * src/reader.c: Formatting changes.
430 (LTYPESTR): Don't define it, use it as a literal in
431 `reader_output_yylsp'.
432 * src/symtab.h (symbol_class): New enum type which replaces the
433 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
434 `sunknown', `stoken and `snterm'.
436 2000-10-02 Akim Demaille <akim@epita.fr>
438 * src/getargs.c (fixed_outfiles): Rename as...
439 (yaccflag): for consistency and accuracy.
442 2000-10-02 Akim Demaille <akim@epita.fr>
444 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
445 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
446 difficult and introduced a lot of core dump. It turns out that
447 Bison used an implementation of `xmalloc' based on `calloc', and
448 at various places it does depend upon the initialization to 0. I
449 have not tried to isolate the pertinent places, and all the former
450 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
451 someone should address this issue.
453 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
454 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
457 * src/warshall.h: New file.
460 2000-10-02 Akim Demaille <akim@epita.fr>
462 Various anti-`extern in *.c' changes.
464 * src/system.h: Include `assert.h'.
466 2000-10-02 Akim Demaille <akim@epita.fr>
468 * src/state.h (nstates, final_state, first_state, first_shift)
469 (first_reduction): Move their exportation from here...
470 * src/LR0.h: to here.
472 * src/getargs.c (statisticsflag): New variable.
473 Add support for `--statistics'.
476 Remove a lot of now useless `extern' statements in most files.
478 2000-10-02 Akim Demaille <akim@epita.fr>
480 * src/LR0.h: New file.
483 2000-10-02 Akim Demaille <akim@epita.fr>
485 * src/print.h: New file.
487 * src/print.c: Formatting and ordering changes.
488 (verbose, terse): Replace with...
489 (print_results): this new function.
492 2000-10-02 Akim Demaille <akim@epita.fr>
494 * src/conflicts.c (conflict_report): New function.
495 (conflict_log, verbose_conflict_log): Replace with...
496 (print_conflicts): this function.
498 * src/conflicts.h: New file.
499 Propagate its inclusion.
501 2000-10-02 Akim Demaille <akim@epita.fr>
503 * src/nullable.h: New file.
504 Propagate its inclusion.
505 * src/nullable.c: Formatting changes.
507 2000-10-02 Akim Demaille <akim@epita.fr>
509 * src/reduce.h: New file.
510 Propagate its inclusion.
511 * src/reduce.c: Topological sort and other formatting changes.
512 (bool, TRUE, FALSE): Move their definition to...
513 * src/system.h: here.
515 2000-10-02 Akim Demaille <akim@epita.fr>
517 * src/files.c: Formatting changes.
518 (tryopen, tryclose, openfiles): Rename as...
519 (xfopen, xfclose, open_files): this.
520 (stringappend): static.
521 * src/files.h: Complete the list of exported symbols.
524 2000-10-02 Akim Demaille <akim@epita.fr>
526 * src/reader.h: New file.
527 Propagate its use instead of tedious list of `extern' and
529 * src/reader.c: Formatting changes, topological sort,
532 2000-10-02 Akim Demaille <akim@epita.fr>
534 * src/lex.h: Prototype `lex.c' exported functions.
535 * src/reader.c: Adjust.
536 * src/lex.c: Formatting changes.
537 (safegetc): Rename as...
540 2000-10-02 Akim Demaille <akim@epita.fr>
542 * src/lalr.h: New file.
543 Propagate its inclusion instead of prototypes and `extern'.
544 * src/lalr.c: Formatting changes, topological sorting etc.
546 2000-10-02 Akim Demaille <akim@epita.fr>
548 * src/output.c (token_actions): Introduce a temporary array,
549 YYDEFACT, that makes it possible for this function to use
552 2000-10-02 Akim Demaille <akim@epita.fr>
554 `user_toknums' is output as a `short[]' in `output.c', while it is
555 defined as a `int[]' in `reader.c'. For consistency with the
556 other output tables, `user_toknums' is now defined as a table of
559 * src/reader.c (user_toknums): Be a short table instead of an int
563 Factor the short table outputs.
565 * src/output.c (output_short_table): New function.
566 * src/output.c (output_gram, output_stos, output_rule_data)
567 (output_base, output_table, output_check): Use it.
569 2000-10-02 Akim Demaille <akim@epita.fr>
571 * src/output.c (output): Topological sort of the functions, in
572 order to get rid of the `static' prototypes.
573 No longer use `register'.
574 * src/output.h: New file.
575 Propagate its inclusion in files explicitly prototyping functions
578 2000-09-21 Akim Demaille <akim@epita.fr>
580 * src/atgeneral.m4: Update from Autoconf.
582 2000-09-21 Akim Demaille <akim@epita.fr>
584 * src/closure.h: New file.
585 * src/closure.c: Formatting changes, topological sort over the
586 functions, use of closure.h.
587 (initialize_closure, finalize_closure): Rename as...
588 (new_closure, free_closure): these. Adjust dependencies.
589 * src/LR0.c: Formatting changes, topological sort, use of
591 (initialize_states): Rename as...
593 * src/Makefile.am (noinst_HEADERS): Adjust.
595 2000-09-20 Akim Demaille <akim@epita.fr>
597 * src/acconfig.h: Don't protect config.h against multiple
600 * src/system.h: Define PARAMS.
601 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
602 purpose of config.h. system.h must not try to fix wrong
603 definitions in config.h.
605 2000-09-20 Akim Demaille <akim@epita.fr>
607 * src/derives.h: New file.
608 * src/main.c, src/derives.h: Use it.
610 * src/Makefile.am (noinst_HEADERS): Adjust.
612 2000-09-20 Akim Demaille <akim@epita.fr>
614 * tests/atgeneral.m4: Update from Autoconf.
615 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
616 (AT_CHECK_CALC): New macros.
617 Use these macros to test bison with options `', `--raw',
618 `--debug', `--yacc', `--yacc --debug'.
620 2000-09-19 Akim Demaille <akim@epita.fr>
622 * src/output.c: Formatting changes.
623 * src/machine.h: Remove, leaving its contents in...
624 * src/system.h: here.
626 Adjust all dependencies on stdio.h and machine.h.
627 * src/getargs.h: New file.
628 Let all `extern' declarations about getargs.c be replaced with
629 inclusion of `getargs.h'.
630 * src/Makefile.am (noinst_HEADERS): Adjust.
632 * tests/calc.m4 (yyin): Be initialized in main, not on the global
634 (yyerror): Returns void, not int.
635 * doc/bison.texinfo: Formatting changes.
637 2000-09-19 Akim Demaille <akim@epita.fr>
639 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
642 2000-09-18 Akim Demaille <akim@epita.fr>
644 * configure.in: Append WARNING_CFLAGS to CFLAGS.
645 * src/Makefile.am (INCLUDES): Don't.
646 Be ready to fetch headers in lib/.
648 2000-09-18 Akim Demaille <akim@epita.fr>
650 * doc/bison.texinfo: Update the copyright.
651 ANSIfy and GNUify the examples.
654 2000-09-18 Akim Demaille <akim@epita.fr>
656 First set of tests: use the `calc' example from the documentation.
658 * src/bison.s1 (yyparse): Condition the code using `yytname' which
659 is defined only when YYDEBUG is.
660 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
661 * src/files.c (tryopen, tryclose): Formatting changes.
662 Move to the top and be static.
663 * src/reader.c (read_signed_integer): Likewise.
664 * tests/calc.m4: New file.
665 * Makefile.am, suite.m4: Adjust.
666 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
668 2000-09-18 Akim Demaille <akim@epita.fr>
670 Add support for an Autotest test suite for Bison.
672 * m4/m4.m4, m4/atconfig.m4: New files.
673 * m4/Makefile.am (EXTRA_DIST): Adjust.
674 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
676 * src/getargs.c: Display a more standard --version message.
677 * src/reader.c (reader): Formatting changes.
678 No longer depend upon VERSION_STRING.
679 * configure.in: No longer use `dnl'.
680 Set up the test suite and the new directory `tests/.
681 (VERSION_STRING): Remove.
683 2000-04-14 Akim Demaille <akim@epita.fr>
685 * src/reader.c (copy_comment2): New function, same as former
686 `copy_comment', but outputs into two FILE *.
687 (copy_comment): Use it.
688 (parse_union_decl): Use it.
689 (get_type, parse_start_decl): Use the same `invalid' message.
690 (parse_start_decl, parse_union_decl): Use the same `multiple'
692 (parse_union_decl, copy_guard, copy_action): Use the same
694 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
696 2000-03-31 Akim Demaille <akim@epita.fr>
698 * src/files.c (tryopen, tryclose): Move to the top.
701 2000-03-31 Akim Demaille <akim@epita.fr>
703 * src/main.c (main): Don't call `done', exit does it.
705 2000-03-31 Akim Demaille <akim@epita.fr>
707 * allocate.c: s/return (foo)/return foo/.
710 * output.c: Likewise.
711 * reader.c: Likewise.
712 * symtab.c: Likewise.
713 * vmsgetargs.c: Likewise.
715 2000-03-31 Akim Demaille <akim@epita.fr>
717 Clean up the error reporting functions.
719 * src/report.c: New file.
720 * src/report.h: Likewise.
721 * src/Makefile.am: Adjust.
722 * m4/error.m4: New file.
723 * m4/Makefile.am: Adjust.
724 * configure.in (jm_PREREQ_ERROR): Call it.
725 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
727 (fatal, fatals): Remove. All callers use complain.c::fatal.
728 (warn, warni, warns, warnss, warnss): Remove. All callers use
729 complain.c::complain.
730 (toomany): Remove, use fatal instead.
731 * src/files.c (done): No argument, use complain_message_count.
732 * src/main.c (main): Register `done' to `atexit'.
734 * src/getargs.c (usage): More `fputs', less `fprintf'.
736 2000-03-28 Akim Demaille <akim@epita.fr>
738 * lib/: New directory.
739 * Makefile.am (SUBDIRS): Adjust.
740 * configure.in: Adjust.
741 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
743 * src/alloca.c: Moved to lib/.
744 * src/getopt.c: Likewise.
745 * src/getopt1.c: Likewise.
746 * src/getopt.h: Likewise.
747 * src/ansi2knr.c: Likewise.
748 * src/ansi2knr.1: Likewise.
749 * src/Makefile.am: Adjust.
750 * lib/Makefile.am: New file.
752 2000-03-28 Akim Demaille <akim@epita.fr>
754 * src/getargs.c (usage): Refresh the help message.
756 2000-03-17 Akim Demaille <akim@epita.fr>
758 * src/getopt1.c: Updated from textutils 2.0e
759 * src/getopt.c: Likewise.
760 * src/getopt.h: Likewise.
762 2000-03-17 Akim Demaille <akim@epita.fr>
764 * src/Makefile.am (bison.simple): Fix the awk program: quote only
765 the file name, not the whole `#line LINE FILE'.
767 2000-03-17 Akim Demaille <akim@epita.fr>
769 On syntax errors, report the token on which we choked.
771 * src/bison.s1 (yyparse): In the label yyerrlab, when
772 YYERROR_VERBOSE, add yychar in msg.
774 2000-03-17 Akim Demaille <akim@epita.fr>
776 * src/reader.c (copy_at): New function.
777 (copy_guard): Use it.
778 (copy_action): Use it.
780 2000-03-17 Akim Demaille <akim@epita.fr>
782 Be kind to translators, save some useless translations.
784 * src/main.c (banner): New function.
785 (fatal_banner): Use it.
786 (warn_banner): Use it.
788 2000-03-17 Akim Demaille <akim@epita.fr>
790 * src/reader.c (copy_definition): Use copy_string and
791 copy_comment. Removed now unused `match', `ended',
793 (copy_comment, copy_string): Moved, to be visible from
796 2000-03-17 Akim Demaille <akim@epita.fr>
798 * src/reader.c (copy_string): Declare `static inline'. No
799 problems with inline, since it is checked by configure.
800 (copy_comment): Likewise.
802 2000-03-17 Akim Demaille <akim@epita.fr>
804 * src/reader.c (packsymbols): Formatting changes.
806 2000-03-17 Akim Demaille <akim@epita.fr>
808 * src/reader.c (copy_comment): New function, factored out from:
809 (copy_action): Use it. Removed now unused `match', `ended',
811 (copy_guard): Likewise.
813 2000-03-17 Akim Demaille <akim@epita.fr>
815 * src/reader.c (copy_string): New function, factored out from:
816 (copy_action): Use it.
817 (copy_guard): Likewise.
819 2000-03-17 Akim Demaille <akim@epita.fr>
821 Change the handling of @s so that they behave exactly like $s.
822 There is now a pseudo variable @$ (readble and writable), location
823 of the lhs of the rule (by default ranging from the location of
824 the first symbol of the rhs, to the location of the last symbol,
825 or, if the rhs is empty, YYLLOC).
827 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
829 (yyparse): When providing a default semantic action, provide a
830 default location action.
831 (after the $): No longer change `*YYLSP', just stack YYLOC the
832 same way you stack YYVAL.
833 * src/reader.c (read_declarations): Use warns.
834 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
835 (copy_action, case '@'): Likewise.
836 Use a standard error message, to save useless work from
839 2000-03-17 Akim Demaille <akim@epita.fr>
841 * src/bison.s1: Formatting and cosmetics changes.
842 * src/reader.c: Likewise.
843 Update the Copyright notice.
845 2000-03-17 Akim Demaille <akim@epita.fr>
847 * src/bison.s1 (#line): All set to `#line' only, since the
848 Makefile now handles them.
850 2000-03-16 Akim Demaille <akim@epita.fr>
852 * src/output.c (output_rule_data): Output the documentation of
854 (Copyright notice): Update.
857 2000-03-16 Akim Demaille <akim@epita.fr>
859 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
860 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
861 One `#if YYDEBUG' remains, since it uses variables which are
862 defined only if `YYDEBUG != 0'.
864 2000-03-16 Akim Demaille <akim@epita.fr>
866 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
867 and related variables so that the similarities are highlighted.
869 2000-03-16 Akim Demaille <akim@epita.fr>
871 * src/bison.s1: Properly indent CPP directives.
873 2000-03-16 Akim Demaille <akim@epita.fr>
875 * src/bison.s1: Properly indent the `alloca' CPP section.
877 2000-03-16 Akim Demaille <akim@epita.fr>
879 Do not hard code values of directories in `configure.in'.
880 Update the `configure' tool chain.
882 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
884 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
885 (AC_OUTPUT): Add m4/Makefile.
886 Bump to bison 1.28a, 1.29 has never been released.
887 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
888 handled via src/Makefile.am.
889 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
890 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
892 * Makefile.am (SUBDIRS): Add m4.
893 (ACLOCAL_AM_FLAGS): New variable.
894 (AUTOMAKE_OPTIONS): Add check-news.
895 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
896 the proper line number and file name.
897 (DEFS): Propagate the location of bison library files and of the
899 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
901 * acinclude.m4: Remove, replaced by the directory m4.
902 * m4/Makefile.am (EXTRA_DIST): New variable.
903 * m4/gettext.m4: New file, from the fileutils.
904 * m4/lcmessage.m4: Likewise
905 * m4/progtest.m4: Likewise.
906 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
908 2000-03-10 Akim Demaille <akim@epita.fr>
911 Formatting changes of various comments.
912 Respect the GNU coding standards at various places.
913 Don't use `_()' when no translation is needed.
915 1999-12-13 Jesse Thilo <jthilo@gnu.org>
918 OS/2 honors TMPDIR environment variable.
920 1999-12-13 Jesse Thilo <jthilo@gnu.org>
922 * doc/bison.texinfo: Tweaked spelling and grammar.
924 Removed reference to price of printed copy.
925 Mention BISON_SIMPLE and BISON_HAIRY.
927 1999-12-13 Jesse Thilo <jthilo@gnu.org>
929 * configure.in, NEWS:
932 1999-10-27 Jesse Thilo <jthilo@gnu.org>
934 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
935 Added reference card.
937 1999-07-26 Jesse Thilo <jthilo@gnu.org>
939 * po/ru.po: Added Russian translation.
941 1999-07-26 Jesse Thilo <jthilo@gnu.org>
943 * configure.in: Added Russian translation.
945 1999-07-06 Jesse Thilo <jthilo@gnu.org>
947 * configure.in, NEWS, README:
948 Released version 1.28.
950 1999-06-14 Jesse Thilo <jthilo@gnu.org>
953 Squashed redefinition warning on some systems.
955 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
956 Have configure build version string instead of relying on ANSI string
959 1999-06-14 Jesse Thilo <jthilo@gnu.org>
961 * po/POTFILES.in: Got rid of version.c.
963 1999-06-14 Jesse Thilo <jthilo@gnu.org>
965 * acconfig.h, configure.in:
966 Have configure build version string instead of relying on ANSI string
969 1999-06-08 Jesse Thilo <jthilo@gnu.org>
972 Dropped mention of `+' for long-named options.
974 1999-05-30 Jesse Thilo <jthilo@gnu.org>
976 * src/files.c: Added <unistd.h> for unlink().
978 * src/Makefile.am, src/system.h:
981 1999-05-30 Jesse Thilo <jthilo@gnu.org>
983 * README: Added a FAQ list.
985 * configure.in, acconfig.h:
988 1999-05-30 Jesse Thilo <jthilo@gnu.org>
990 * doc/FAQ, doc/Makefile.am:
993 1999-05-19 Jesse Thilo <jthilo@gnu.org>
995 * src/alloc.h, src/symtab.h, src/version.c:
996 Protected inclusion of "config.h" with HAVE_CONFIG_H.
998 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1000 * src/.cvsignore, src/Makefile.am:
1001 Reorganized: sources in `src', documentation in `doc'.
1003 * src/lex.c (literalchar):
1004 fixed the code for escaping double quotes (thanks
1007 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1009 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1010 Adjusted paths to reflect directory reorganization.
1012 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1014 * doc/.cvsignore, doc/Makefile.am:
1015 Reorganized: sources in `src', documentation in `doc'.
1017 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1020 Updated AC_INIT file to reflect directory reorganization.
1022 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1023 Reorganized: sources in `src', documentation in `doc'.
1025 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1028 Don't declare calloc() and realloc() if not necessary.
1030 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1032 * configure.in, acconfig.h, acinclude.m4:
1033 Don't declare calloc() and realloc() if not necessary.
1035 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1037 * po/.cvsignore: Added i18n support.
1039 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1041 * acconfig.h, configure.in, Makefile.am:
1044 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1046 * src/bison.s1: Fixed #line numbers.
1048 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1050 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1051 Added PO files from Translation Project.
1053 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1056 Added support for non-ANSI compilers (ansi2knr).
1058 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1060 * configure.in: Bumped version number to 1.27.
1063 Added `bison.simple' to list of files removed by `make distclean'.
1065 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1067 * src/files.c, src/files.h:
1068 Defined locations of parser files in config.h instead of Makefile.
1070 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1072 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1073 Defined locations of parser files in config.h instead of Makefile.
1075 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1078 Removed inappropriate use of $< macro.
1080 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1082 * po/Makefile.in.in, po/POTFILES.in:
1083 Add `po' directory skeleton.
1085 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1087 * README: Document help-bison list.
1089 * configure.in: Add check for mkstemp().
1091 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1093 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1094 Hush a few compiler warnings.
1097 Add tryclose(), which verifies that fclose was successful.
1098 Hush a couple of compiler warnings.
1100 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1102 * Makefile.am, OChangeLog:
1103 ChangeLog is now automatically generated. Include the old version as
1106 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1108 * 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:
1111 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1113 * doc/bison.texinfo: Fix formatting glitch.
1115 * doc/bison.texinfo: Update FSF address.
1117 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1119 * acconfig.h: Update FSF address.
1121 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1124 Don't define PACKAGE here, since config.h defines it.
1126 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1128 * src/reader.c: Update copyright date.
1131 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1132 favor of output directly to stderr (avoids buffer overruns).
1134 * src/reader.c: Some checks for premature EOF.
1136 * 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:
1137 Use prototypes if the compiler understands them.
1139 * src/files.c: Honor TMPDIR on Unix hosts.
1140 Use prototypes if the compiler understands them.
1143 Fix a couple of buffer overrun bugs.
1144 Use prototypes if the compiler understands them.
1146 * src/system.h: Include unistd.h and ctype.h.
1147 Use #ifdef instead of #if for NLS symbols.
1149 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1151 * doc/bison.texinfo:
1152 Delete comment "consider using @set for edition number, etc..." since
1153 we now are doing so.
1155 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1158 Use prototypes if the compiler understands them.
1160 * NEWS: Document 1.26 highlights.
1162 * Makefile.am: Require Automake 1.3 or later.
1165 Use prototypes if the compiler understands them.
1167 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1170 Use VERSION symbol from automake for version number.
1172 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1174 * acconfig.h, configure.in, version.cin:
1175 Use VERSION symbol from automake for version number.
1177 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1180 Distribute original version of simple parser (bison.s1), not built
1181 version (bison.simple).
1183 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1185 * doc/bison.texinfo: Add info dir entry.
1187 * doc/bison.texinfo:
1188 Let automake put version number into documentation.
1190 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1192 * src/bison.cld, src/build.com, src/vmshlp.mar:
1193 Add non-RCS files from /gd/gnu/bison.
1195 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1198 Document the BISON_HAIRY and BISON_SIMPLE variables.
1200 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1202 * src/version.c: Build version.c automatically.
1205 Fix token numbering (used to start at 258, not 257).
1207 * src/system.h: Include config.h.
1209 * src/getargs.c: Update bug report address.
1211 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1212 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1214 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1217 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1219 * configure.in, version.cin:
1220 Build version.c automatically.
1222 * AUTHORS: Add AUTHORS file.
1224 * README: Update bug report address.
1227 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1229 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1232 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1234 * doc/bison.texinfo: Clean up some formatting.
1236 1998-05-05 Richard Stallman <rms@gnu.org>
1238 * doc/bison.texinfo:
1239 Explain better why to make a pure parser.
1241 1998-01-05 Richard Stallman <rms@gnu.org>
1243 * src/files.c (openfiles):
1244 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1245 find a temporary directory, if possible. Do not unlink files while
1248 1997-08-25 Richard Stallman <rms@gnu.org>
1250 * src/reader.c (stack_offset;):
1251 Change some warni to warns.
1253 * src/lex.c (literalchar): Use warns, not warni.
1255 1997-06-28 Richard Stallman <rms@gnu.org>
1257 * src/bison.s1: Add a Bison version comment.
1259 * src/main.c (fatal, warn, berror):
1262 1997-06-28 Richard Stallman <rms@gnu.org>
1264 * Makefile.in (bison_version): New variable.
1265 (dist): Use that variable.
1266 (bison.s1): Substitute the Bison version into bison.simple.
1268 * bison.simple: Add a Bison version comment.
1270 1997-06-18 Richard Stallman <rms@gnu.org>
1272 * src/main.c (fatal, warn, berror):
1273 Make error messages standard.
1274 (toomany): Improve error message text.
1276 * 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:
1277 new.h renamed to alloc.h.
1279 1997-06-18 Richard Stallman <rms@gnu.org>
1281 * Makefile.in: new.h renamed to alloc.h.
1283 1997-05-24 Richard Stallman <rms@gnu.org>
1285 * src/lex.c (literalchar):
1286 Fix the code for escaping \, " and '.
1288 (lex): Avoid trouble when there are many chars
1289 to discard in a char literal with just several chars in it.
1291 1997-05-17 Richard Stallman <rms@gnu.org>
1294 Use malloc, if using alloca is troublesome.
1295 (YYSTACK_USE_ALLOCA): New flag macro.
1296 Define it for some systems and compilers.
1297 (YYSTACK_ALLOC): New macro.
1298 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1299 If it was malloc'd, free it.
1301 1997-05-17 Richard Stallman <rms@gnu.org>
1304 Use malloc, if using alloca is troublesome.
1305 (YYSTACK_USE_ALLOCA): New flag macro.
1306 Define it for some systems and compilers.
1307 (YYSTACK_ALLOC): New macro.
1308 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1309 If it was malloc'd, free it.
1311 1997-04-23 Richard Stallman <rms@gnu.org>
1314 (alloca) [__hpux]: Always define as __builtin_alloca.
1316 1997-04-23 Richard Stallman <rms@gnu.org>
1319 (alloca) [__hpux]: Always define as __builtin_alloca.
1321 1997-04-22 Richard Stallman <rms@gnu.org>
1324 [__hpux]: Include alloca.h (right for HPUX 10)
1325 instead of declaring alloca (right for HPUX 9).
1327 * src/bison.s1 (__yy_memcpy):
1328 Declare arg `count' as unsigned int.
1329 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1331 1997-04-22 Richard Stallman <rms@gnu.org>
1334 [__hpux]: Include alloca.h (right for HPUX 10)
1335 instead of declaring alloca (right for HPUX 9).
1337 * bison.simple (__yy_memcpy):
1338 Declare arg `count' as unsigned int.
1339 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1341 1997-01-03 Richard Stallman <rms@gnu.org>
1343 * src/allocate.c: [__STDC__ or _MSC_VER]:
1344 Declare calloc and realloc to return void *.
1346 1997-01-02 Richard Stallman <rms@gnu.org>
1349 [_MSC_VER]: Include stdlib.h and process.h.
1350 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1352 * src/main.c (main): Return FAILURE as a value.
1353 (printable_version): Declare arg as int, not char.
1355 1997-01-02 Richard Stallman <rms@gnu.org>
1357 * Makefile.in (dist):
1358 Explicitly check for symlinks, and copy them.
1360 1996-12-19 Richard Stallman <rms@gnu.org>
1363 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1365 1996-12-18 Paul Eggert <eggert@gnu.org>
1367 * src/bison.s1 (yyparse):
1368 If __GNUC__ and YYPARSE_PARAM are both defined,
1369 declare yyparse to have a void * argument.
1371 1996-12-18 Paul Eggert <eggert@gnu.org>
1373 * bison.simple (yyparse):
1374 If __GNUC__ and YYPARSE_PARAM are both defined,
1375 declare yyparse to have a void * argument.
1377 1996-12-17 Richard Stallman <rms@gnu.org>
1379 * src/reduce.c (nbits): Add some casts.
1381 1996-08-12 Richard Stallman <rms@gnu.org>
1383 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1385 1996-08-12 Richard Stallman <rms@gnu.org>
1387 * bison.simple: Test _MSDOS as well as _MSDOS_.
1389 1996-07-31 Richard Stallman <rms@gnu.org>
1392 [__sun && __i386]: Include alloca.h.
1394 1996-07-31 Richard Stallman <rms@gnu.org>
1397 [__sun && __i386]: Include alloca.h.
1399 1996-07-30 Richard Stallman <rms@gnu.org>
1401 * src/bison.s1: Comment change.
1403 * src/bison.s1: Test _MSDOS_, not MSDOS.
1405 1996-07-30 Richard Stallman <rms@gnu.org>
1407 * bison.simple: Comment change.
1409 * bison.simple: Test _MSDOS_, not MSDOS.
1411 1996-06-01 Richard Stallman <rms@gnu.org>
1413 * 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:
1414 Insert `_' macro around many string constants.
1417 Insert `_' macro around many string constants.
1419 (main): Call setlocale, bindtextdomain and textdomain.
1421 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1422 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1423 [ENABLE_NLS]: Include libintl.h.
1424 [ENABLE_NLS] (gettext): Define.
1425 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1426 (N_, PACKAGE, LOCALEDIR): New macros.
1428 1996-06-01 Richard Stallman <rms@gnu.org>
1430 * POTFILES.in: New file.
1432 * Makefile.in (allocate.o):
1433 Define target explicitly.
1435 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1436 (LDFLAGS): Set to @LDFLAGS@.
1437 (configure): Run autoconf only if preceding `cd' succeeds.
1438 (bison.s1): Redirect output to temporary file then move the
1439 temporary to the target, rather than redirecting directly to bison.s1.
1440 (clean): Remove config.status and config.log.
1441 (distclean): Don't remove config.status here.
1443 1996-05-12 Richard Stallman <rms@gnu.org>
1446 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1448 1996-05-12 Richard Stallman <rms@gnu.org>
1451 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1453 1996-05-11 Richard Stallman <rms@gnu.org>
1455 * src/bison.s1 (__yy_memcpy):
1456 Really reorder the args, as was supposedly done on Feb 14 1995.
1457 (yyparse): Calls changed accordingly.
1459 1996-05-11 Richard Stallman <rms@gnu.org>
1461 * Makefile.in (dist): Don't use $(srcdir).
1463 * bison.simple (__yy_memcpy):
1464 Really reorder the args, as was supposedly done on Feb 14 1995.
1465 (yyparse): Calls changed accordingly.
1467 1996-01-27 Richard Stallman <rms@gnu.org>
1469 * src/output.c (output_rule_data):
1470 Test YYERROR_VERBOSE in the conditional
1471 around the definition of ttyname.
1473 1995-12-29 Richard Stallman <rms@gnu.org>
1476 Fix line numbers in #line commands.
1478 1995-12-29 Richard Stallman <rms@gnu.org>
1481 Fix line numbers in #line commands.
1483 1995-12-27 Richard Stallman <rms@gnu.org>
1485 * src/bison.s1 (YYPARSE_PARAM_DECL):
1486 In C++, make it always null.
1487 (YYPARSE_PARAM_ARG): New macro.
1488 (yyparse): Use YYPARSE_PARAM_ARG.
1490 1995-12-27 Richard Stallman <rms@gnu.org>
1492 * bison.simple (YYPARSE_PARAM_DECL):
1493 In C++, make it always null.
1494 (YYPARSE_PARAM_ARG): New macro.
1495 (yyparse): Use YYPARSE_PARAM_ARG.
1497 1995-11-29 Richard Stallman <rms@gnu.org>
1499 * doc/bison.texinfo:
1500 Describe literal string tokens, %raw, %no_lines, %token_table.
1502 1995-11-29 Daniel Hagerty <hag@gnu.org>
1504 * doc/bison.texinfo: Fixed update date
1506 1995-10-16 Richard Stallman <rms@gnu.org>
1508 * src/version.c: Version 1.25.
1510 1995-10-16 Richard Stallman <rms@gnu.org>
1512 * NEWS: *** empty log message ***
1514 1995-10-16 Richard Stallman <rms@gnu.org>
1516 * doc/bison.1, doc/bison.rnh:
1519 1995-10-15 Richard Stallman <rms@gnu.org>
1521 * src/vmsgetargs.c, src/getargs.c:
1522 Added -n, -k, and -raw switches.
1523 (noparserflag, toknumflag, rawtoknumflag): New variables.
1525 * src/symtab.h (SALIAS):
1526 New #define for adding aliases to %token.
1527 (struct bucket): Added `alias' field.
1529 * src/reduce.c (reduce_grammar):
1530 Revise error message.
1531 (print_notices): Remove final `.' from error message.
1533 * src/reader.c (reader_output_yylsp):
1535 (readgram): Use `#if 0' around code that accepted %command
1536 inside grammar rules: The documentation doesn't allow it,
1537 and it will fail since the %command processors scan for the next %.
1538 (parse_token_decl): Extended the %token
1539 declaration to allow a multi-character symbol as an alias.
1540 (parse_thong_decl): New function.
1541 (read_declarations): Added %thong declarations.
1542 (read_declarations): Handle NOOP to deal with allowing
1543 % declarations as another means to specify the flags.
1544 (readgram): Allow %prec prior to semantics embedded in a rule.
1545 (skip_to_char, read_declarations, copy_definition)
1546 (parse_token_decl, parse_start_decl, parse_type_decl)
1547 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1548 (get_type_name, copy_guard, copy_action, readgram)
1549 (get_type, packsymbols): Revised most error messages.
1550 Changed `fatal' to `warnxxx' to avoid aborting for error.
1551 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1552 (read_declarations): Improve the error message for
1553 an invalid character. Do not abort.
1554 (read_declarations, copy_guard, copy_action): Use
1555 printable_version to avoid unprintable characters in printed output.
1556 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1557 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1558 Allow the type of a non-terminal can be given
1559 more than once, as long as all specifications give the same type.
1562 (output_headers, output_trailers, output, output_gram)
1563 (output_rule_data): Implement noparserflag variable.
1564 Implement toknumflag variable.
1565 (output): Call reader_output_yylsp to output LTYPESTR.
1567 * src/main.c (main):
1568 If reader sees an error, don't process the grammar.
1569 (fatals): Updated to not use VARARGS1.
1570 (printable_version, int_to_string, warn, warni, warns, warnss)
1571 (warnsss): New error reporting functions. Avoid abort for error.
1574 Added THONG and NOOP for alias processing.
1575 Added SETOPT for the new code that allows setting options with %flags.
1578 Include getopt.h. Add some extern decls.
1579 (safegetc): New function to deal with EOF gracefully.
1580 (literalchar); new function to deal with reading \ escapes.
1581 (lex): Use literalchar.
1582 (lex): Implemented "..." tokens.
1583 (literalchar, lex, parse_percent_token): Made tokenbuffer
1584 always contain the token. This includes growing the token
1585 buffer while reading an integer.
1586 (parse_percent_token): Replaced if-else statement with percent_table.
1587 (parse_percent_token): Added % declarations as another
1588 way to specify the flags -n, -l, and -r. Also added hooks for
1589 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1590 major changes to files.c.
1591 (lex) Retain in the incoming stream a character following
1593 (skip_white_space, lex): Revised most error messages
1594 and changed fatal to warn to avoid aborting.
1595 (percent_table): Added %thong declarations.
1597 * src/gram.h: Comment changes.
1599 * src/files.c (openfiles, open_extra_files, done):
1601 and actfile file. Handle noparserflag. Both for -n switch.
1603 * src/conflicts.c (resolve_sr_conflict):
1604 Remove use of alloca.
1606 1995-06-01 Jim Meyering <meyering@gnu.org>
1608 * doc/bison.texinfo: *** empty log message ***
1610 1995-05-06 Richard Stallman <rms@gnu.org>
1612 * src/bison.s1: Comment change.
1614 1995-05-06 Richard Stallman <rms@gnu.org>
1616 * bison.simple: Comment change.
1618 1995-05-03 Richard Stallman <rms@gnu.org>
1620 * src/version.c: Version now 1.24.
1622 * src/bison.s1: Change distribution terms.
1624 * src/version.c: Version now 1.23.
1626 1995-05-03 Richard Stallman <rms@gnu.org>
1628 * doc/bison.texinfo:
1629 Rewrite "Conditions for Using Bison".
1630 Update version to 1.24.
1632 1995-05-03 Richard Stallman <rms@gnu.org>
1634 * bison.simple: Change distribution terms.
1636 1995-02-23 Richard Stallman <rms@gnu.org>
1638 * src/files.c: Test __VMS_POSIX as well as VMS.
1640 1995-02-14 Jim Meyering <meyering@gnu.org>
1642 * src/bison.s1 (__yy_memcpy):
1643 Renamed from __yy_bcopy to avoid
1644 confusion. Reverse FROM and TO arguments to be consistent with
1647 1995-02-14 Jim Meyering <meyering@gnu.org>
1649 * bison.simple (__yy_memcpy):
1650 Renamed from __yy_bcopy to avoid
1651 confusion. Reverse FROM and TO arguments to be consistent with
1654 1994-11-10 David J. MacKenzie <djm@gnu.org>
1660 * Makefile.in (DISTFILES): Include NEWS.
1662 * Makefile.in (DISTFILES):
1663 Include install-sh, not install.sh.
1665 * configure.in: Update to Autoconf v2 macro names.
1667 1994-10-05 David J. MacKenzie <djm@gnu.org>
1669 * Makefile.in: fix typo
1671 * Makefile.in (prefix, exec_prefix):
1672 Let configure set them.
1674 1994-09-28 David J. MacKenzie <djm@gnu.org>
1676 * Makefile.in: Set datadir to $(prefix)/share.
1678 1994-09-15 Richard Stallman <rms@gnu.org>
1681 Update copyright notice and GPL version.
1683 1994-09-15 Richard Stallman <rms@gnu.org>
1686 Update copyright notice and GPL version.
1688 1994-07-12 Richard Stallman <rms@gnu.org>
1690 * src/reduce.c, src/reader.c:
1693 1994-05-05 David J. MacKenzie <djm@gnu.org>
1695 * Makefile.in: entered into RCS
1697 1994-03-26 Richard Stallman <rms@gnu.org>
1699 * src/bison.s1: entered into RCS
1701 1994-03-26 Richard Stallman <rms@gnu.org>
1703 * bison.simple: entered into RCS
1705 1994-03-25 Richard Stallman <rms@gnu.org>
1707 * src/main.c: entered into RCS
1709 1994-03-24 Richard Stallman <rms@gnu.org>
1711 * src/conflicts.c: entered into RCS
1713 1994-01-02 Richard Stallman <rms@gnu.org>
1715 * Makefile.in: *** empty log message ***
1717 1993-11-21 Richard Stallman <rms@gnu.org>
1719 * src/bison.s1: *** empty log message ***
1721 1993-11-21 Richard Stallman <rms@gnu.org>
1723 * doc/bison.texinfo: entered into RCS
1725 * doc/bison.texinfo: *** empty log message ***
1727 1993-11-21 Richard Stallman <rms@gnu.org>
1729 * bison.simple: *** empty log message ***
1731 1993-10-25 David J. MacKenzie <djm@gnu.org>
1733 * doc/bison.texinfo: *** empty log message ***
1735 1993-10-19 Richard Stallman <rms@gnu.org>
1737 * src/bison.s1: *** empty log message ***
1739 1993-10-19 Richard Stallman <rms@gnu.org>
1741 * bison.simple: *** empty log message ***
1743 1993-10-14 Richard Stallman <rms@gnu.org>
1745 * src/bison.s1: *** empty log message ***
1747 1993-10-14 Richard Stallman <rms@gnu.org>
1749 * bison.simple: *** empty log message ***
1751 1993-09-14 David J. MacKenzie <djm@gnu.org>
1753 * doc/bison.texinfo: *** empty log message ***
1755 1993-09-13 Noah Friedman <friedman@gnu.org>
1757 * Makefile.in: *** empty log message ***
1759 1993-09-10 Richard Stallman <rms@gnu.org>
1761 * src/conflicts.c: *** empty log message ***
1763 * src/system.h: entered into RCS
1765 1993-09-10 Richard Stallman <rms@gnu.org>
1767 * doc/bison.1: entered into RCS
1769 1993-09-06 Noah Friedman <friedman@gnu.org>
1771 * src/version.c: entered into RCS
1773 1993-09-06 Noah Friedman <friedman@gnu.org>
1775 * Makefile.in: *** empty log message ***
1777 1993-07-30 David J. MacKenzie <djm@gnu.org>
1779 * Makefile.in: *** empty log message ***
1781 1993-07-24 Richard Stallman <rms@gnu.org>
1783 * src/bison.s1: *** empty log message ***
1785 1993-07-24 Richard Stallman <rms@gnu.org>
1787 * bison.simple: *** empty log message ***
1789 1993-07-08 David J. MacKenzie <djm@gnu.org>
1791 * Makefile.in: *** empty log message ***
1793 1993-07-04 Richard Stallman <rms@gnu.org>
1795 * src/bison.s1: *** empty log message ***
1797 1993-07-04 Richard Stallman <rms@gnu.org>
1799 * bison.simple: *** empty log message ***
1801 1993-06-26 David J. MacKenzie <djm@gnu.org>
1803 * src/getargs.c: entered into RCS
1805 1993-06-26 David J. MacKenzie <djm@gnu.org>
1807 * doc/bison.texinfo: *** empty log message ***
1809 * doc/bison.1: New file.
1811 1993-06-25 Richard Stallman <rms@gnu.org>
1813 * src/getargs.c: New file.
1815 1993-06-16 Richard Stallman <rms@gnu.org>
1817 * src/bison.s1: *** empty log message ***
1819 1993-06-16 Richard Stallman <rms@gnu.org>
1821 * bison.simple: *** empty log message ***
1823 1993-06-03 Richard Stallman <rms@gnu.org>
1825 * src/bison.s1: New file.
1827 1993-06-03 Richard Stallman <rms@gnu.org>
1829 * doc/bison.texinfo: *** empty log message ***
1831 1993-06-03 Richard Stallman <rms@gnu.org>
1833 * bison.simple: New file.
1835 1993-05-19 Richard Stallman <rms@gnu.org>
1837 * doc/bison.texinfo: New file.
1839 1993-05-07 Noah Friedman <friedman@gnu.org>
1841 * Makefile.in: *** empty log message ***
1843 1993-04-28 Noah Friedman <friedman@gnu.org>
1845 * src/reader.c: *** empty log message ***
1847 1993-04-23 Noah Friedman <friedman@gnu.org>
1849 * src/alloc.h: entered into RCS
1851 1993-04-20 David J. MacKenzie <djm@gnu.org>
1853 * src/version.c: *** empty log message ***
1855 * src/files.c, src/allocate.c:
1858 * src/reader.c: *** empty log message ***
1860 * src/lex.c: entered into RCS
1862 * src/conflicts.c: New file.
1864 * src/symtab.c: entered into RCS
1866 * src/alloc.h: New file.
1868 * src/LR0.c: entered into RCS
1870 1993-04-18 Noah Friedman <friedman@gnu.org>
1872 * src/reader.c: New file.
1874 * src/version.c: *** empty log message ***
1876 1993-04-18 Noah Friedman <friedman@gnu.org>
1878 * Makefile.in: *** empty log message ***
1880 1993-04-17 Noah Friedman <friedman@gnu.org>
1882 * Makefile.in: *** empty log message ***
1884 1993-04-15 Richard Stallman <rms@gnu.org>
1886 * src/main.c, src/files.c:
1889 1993-04-15 Noah Friedman <friedman@gnu.org>
1891 * configure.in: entered into RCS
1893 * configure.in: *** empty log message ***
1895 * configure.in: New file.
1897 1993-04-14 Richard Stallman <rms@gnu.org>
1899 * Makefile.in: New file.
1901 1993-04-13 Richard Stallman <rms@gnu.org>
1903 * src/version.c: New file.
1905 1993-03-25 Richard Stallman <rms@gnu.org>
1907 * src/output.c: entered into RCS
1909 1992-09-25 Richard Stallman <rms@gnu.org>
1911 * configure.bat: entered into RCS
1913 1992-06-22 Richard Stallman <rms@gnu.org>
1915 * src/vmsgetargs.c: entered into RCS
1917 1992-06-22 Richard Stallman <rms@gnu.org>
1919 * doc/bison.rnh: entered into RCS
1921 1992-04-20 David J. MacKenzie <djm@gnu.org>
1923 * README: entered into RCS
1925 1992-01-22 Richard Stallman <rms@gnu.org>
1927 * src/machine.h: entered into RCS
1929 1991-12-21 Richard Stallman <rms@gnu.org>
1931 * src/lalr.c, src/closure.c:
1934 1991-12-20 Richard Stallman <rms@gnu.org>
1936 * src/state.h: entered into RCS
1938 1991-12-18 Richard Stallman <rms@gnu.org>
1940 * src/print.c, src/nullable.c, src/derives.c:
1943 1991-11-03 David J. MacKenzie <djm@gnu.org>
1945 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1948 1988-09-09 Richard Stallman <rms@gnu.org>
1950 * src/bison.hairy: entered into RCS
1952 1987-12-16 Richard Stallman <rms@gnu.org>
1954 * REFERENCES: entered into RCS