1 2000-12-19 Akim Demaille <akim@epita.fr>
3 * src/files.c (outfile, defsfile, actfile): Removed as global
5 (open_files): Don't compute them.
6 (output_files): Adjust.
7 (base_name, short_base_name): Be global.
10 2000-12-19 Akim Demaille <akim@epita.fr>
12 * src/files.c (strsuffix): New.
13 (stringappend): Be just like strcat but allocate.
14 (base_names): Eve out from open_files.
15 Try to simplify the rather hairy computation of base_name and
18 * tests/suite.at (Checking output file names): New test.
20 2000-12-19 Akim Demaille <akim@epita.fr>
22 * src/system.h (obstack_grow_literal_string): Rename as...
23 (obstack_grow_string): this.
24 * src/output.c (output_parser): Recognize `%% actions' instead of
26 * src/bison.s1: s/$/%% actions/.
27 * src/bison.hairy: Likewise.
29 2000-12-19 Akim Demaille <akim@epita.fr>
31 * src/output.c (output_parser): Compute the `#line' lines when
33 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
34 Suggested by Hans Aberg.
36 2000-12-19 Akim Demaille <akim@epita.fr>
38 Let the handling of the skeleton files be local to the procedures
41 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
43 (fparser, open_extra_files): Remove.
44 (open_files, output_files): Don't take care of fparser.
45 * src/files.h: Adjust.
46 * src/output.c (output_parser): Open and close the file to the
48 * src/reader.c (read_declarations): When %semantic_parser, open
51 2000-12-19 Akim Demaille <akim@epita.fr>
53 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
54 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
56 2000-12-19 Akim Demaille <akim@epita.fr>
58 * src/files.c (open_files): Yipee! We no longer need all the code
59 looking for `/tmp' since we have no tmp file.
61 2000-12-19 Akim Demaille <akim@epita.fr>
63 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
65 * src/files.c (open_files): Less dependency on MSDOS etc.
67 2000-12-14 Akim Demaille <akim@epita.fr>
69 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
70 Provide a default definition.
71 Use it when executing the default @ action.
72 * src/reader.c (reader_output_yylsp): No longer include
73 `timestamp' and `text' in the default YYLTYPE.
75 2000-12-12 Akim Demaille <akim@epita.fr>
77 * src/reader.c (copy_definition, parse_union_decl, copy_action)
78 (copy_guard): Quote the file names.
79 Reported by Laurent Mascherpa.
81 2000-12-12 Akim Demaille <akim@epita.fr>
83 * src/output.c (output_headers, output_program, output): Be sure
84 to escape special characters when outputting filenames.
85 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
86 (output_headers): Don't depend on them, Use ACTSTR.
88 2000-11-17 Akim Demaille <akim@epita.fr>
90 * lib/obstack.h: Formatting changes.
91 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
92 prevents type checking.
93 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94 cast the value to (void *): assigning a `foo *' to a `void *'
96 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
100 2000-11-17 Akim Demaille <akim@epita.fr>
102 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
104 (suite.m4, regression.m4, calc.m4): these.
105 * tests/atgeneral.m4: Update from CVS Autoconf.
107 2000-11-17 Akim Demaille <akim@epita.fr>
109 * tests/regression.m4 (%union and --defines): New test,
110 demonstrating a current bug in the obstack implementation.
112 2000-11-17 Akim Demaille <akim@epita.fr>
114 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
116 Use them to declare the variables which are global or local to
119 2000-11-17 Akim Demaille <akim@epita.fr>
121 * acconfig.h: Remove, no longer used.
123 2000-11-07 Akim Demaille <akim@epita.fr>
125 * src: s/Copyright (C)/Copyright/g.
127 2000-11-07 Akim Demaille <akim@epita.fr>
129 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
131 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
133 2000-11-07 Akim Demaille <akim@epita.fr>
135 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
136 Merge in a single CPP if/else.
138 2000-11-07 Akim Demaille <akim@epita.fr>
140 * src/output.c (output): Remove useless variables.
141 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
142 argument `data' for consistency with the prototypes.
144 (obstack_copy, obstack_copy0): Rename the second argument as
145 `address' for consistency. Qualify it `const'.
146 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
147 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
148 `const' their input argument (`data' or `address').
149 Adjust the corresponding macros to include `const' in casts.
151 2000-11-03 Akim Demaille <akim@epita.fr>
153 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
154 s/PFILE1/BISON_HAIRY/.
157 2000-11-03 Akim Demaille <akim@epita.fr>
159 For some reason, this was not applied.
161 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
162 `unlink': it's no longer used.
164 2000-11-03 Akim Demaille <akim@epita.fr>
166 * src/files.c (skeleton_find): New function, eved out of...
167 (open_files, open_extra_files): here.
169 2000-11-03 Akim Demaille <akim@epita.fr>
173 * src/files.c (obstack_save): New function.
175 (output_files): this.
177 * src/main.c (main): Don't use `atexit' to register `done', since
178 it no longer has to remove tmp files, just call `output_files'
179 when there are no errors.
181 2000-11-02 Akim Demaille <akim@epita.fr>
183 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
184 `unlink': it's no longer used.
185 * src/files.h: Formatting changes.
187 2000-11-02 Akim Demaille <akim@epita.fr>
189 Remove the last uses of mktemp and unlink/delete.
191 * src/files.c (fdefines, ftable): Removed.
192 (defines_ostack, table_obstack): New.
193 Adjust dependencies of the former into uses of the latter.
194 * src/output.c (output_short_or_char_table, output_short_table):
195 Convert to using obstacks.
196 * src/reader.c (copy_comment2): Accept one FILE * and two
198 (output_token_defines, reader_output_yylsp): Use obstacks.
199 * src/system.h (obstack_fgrow3): New.
201 2000-11-01 Akim Demaille <akim@epita.fr>
203 Change each use of `fattrs' into a use of `attrs_obstack'.
205 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
206 * src/files.c (fattrs): Remove.
207 (attrs_obstack): New.
208 Adjust all dependencies.
209 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
211 2000-11-01 Akim Demaille <akim@epita.fr>
214 Change each use of `faction' into a use of `action_obstack'.
216 * lib/obstack.h, lib/obstack.c: New files.
217 * src/files.c (faction): Remove.
218 (action_obstack): New.
219 Adjust all dependencies.
221 2000-10-20 Akim Demaille <akim@epita.fr>
223 * lib/quote.h (PARAMS): New macro. Use it.
225 2000-10-16 Akim Demaille <akim@epita.fr>
227 * src/output.c (output_short_or_char_table): New function.
228 (output_short_table, output_token_translations): Use it.
229 (goto_actions): Use output_short_table.
231 2000-10-16 Akim Demaille <akim@epita.fr>
233 * src/symtab.c (bucket_new): New function.
236 * src/output.c (output_short_table): New argument to display the
237 comment associated with the table.
239 (output_gram): Use it.
240 (output_rule_data): Nicer output layout for YYTNAME.
242 2000-10-16 Akim Demaille <akim@epita.fr>
244 * src/lex.c (read_typename): New function.
246 * src/reader.c (copy_dollar): Likewise.
248 2000-10-16 Akim Demaille <akim@epita.fr>
250 * src/reader.c (copy_comment2): Expect the input stream to be on
251 the `/' which is suspected to open a comment, instead of being
252 called after `//' or `/*' was read.
253 (copy_comment, copy_definition, parse_union_decl, copy_action)
254 (copy_guard): Adjust.
256 2000-10-16 Akim Demaille <akim@epita.fr>
258 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
259 `read_signed_integer'.
261 2000-10-16 Akim Demaille <akim@epita.fr>
263 * src/reader.c (copy_dollar): New function.
264 (copy_guard, copy_action): Use it.
266 2000-10-16 Akim Demaille <akim@epita.fr>
268 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
269 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
270 New files, from Fileutils 4.0.27.
271 * src/main.c (printable_version): Remove.
272 * src/lex.c, src/reader.c: Use `quote'.
274 2000-10-04 Akim Demaille <akim@epita.fr>
276 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
278 2000-10-04 Akim Demaille <akim@epita.fr>
280 * doc/bison.texinfo: Various typos spotted by Neil Booth.
282 2000-10-04 Akim Demaille <akim@epita.fr>
284 When a literal string is used to define two different tokens,
285 `bison -v' segfaults.
286 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
288 * tests/regression.m4: New file.
289 Include the core of the sample provided by Piotr Gackiewicz.
290 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
293 2000-10-04 Akim Demaille <akim@epita.fr>
295 * src/reader.c (parse_expect_decl): Keep `count' within the size
299 2000-10-02 Paul Eggert <eggert@twinsun.com>
301 * bison.s1 (yyparse): Assign the default value
302 unconditionally, to avoid a GCC warning and make the parser a
305 2000-10-02 Akim Demaille <akim@epita.fr>
307 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
310 2000-10-02 Akim Demaille <akim@epita.fr>
312 * src/derives.c, src/print.c, src/reduce.c: To ease the
313 translation, move some `\n' out of the translated strings.
315 2000-10-02 Akim Demaille <akim@epita.fr>
317 The location tracking mechanism is precious for parse error
318 messages. Nevertheless, it is enabled only when `@n' is used in
319 the grammar, which is a different issue (you can use it in error
320 message, but not in the grammar per se). Therefore, there should
321 be another means to enable it.
323 * src/getargs.c (getargs): Support `--locations'.
325 * src/getargs.h (locationsflag): Export it.
326 * src/lex.c (percent_table): Support `%locations'.
327 * src/reader.c (yylsp_needed): Remove this variable, now replaced
328 with `locationsflag'.
329 * doc/bison.texinfo: Document `--locations' and `%locations'.
331 * tests/calc.m4: Test it.
333 For regularity of the names, replace each
334 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
335 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
336 In addition replace each `flag' with `_flag'.
338 2000-10-02 Akim Demaille <akim@epita.fr>
340 Also test parse error messages, including with YYERROR_VERBOSE.
342 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
344 Use it to check the computations.
345 Use it to check `nonassoc' is honored.
346 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
348 (_AT_CHECK_CALC): Adjust to this option.
349 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
351 2000-10-02 Akim Demaille <akim@epita.fr>
353 Test also `--verbose', `--defines' and `--name-prefix'. Testing
354 the latter demonstrates a flaw in the handling of non debugging
355 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
356 was used in order to simplify:
372 unfortunately this leads to a CPP conflict when
373 `--name-prefix=foo' is used since it produces `#define yydebug
376 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
377 (YYDPRINTF): New macro.
379 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
381 Also test `--verbose', `--defines' and `--name-prefix'.
383 2000-10-02 Akim Demaille <akim@epita.fr>
385 Improve the readability of the produced parsers.
387 * src/bison.s1: Formatting changes.
388 Improve the comment related to the `$' mark.
389 (yydefault): Don't fall through to `yyresume': `goto' there.
390 * src/output.c (output_parser): When the `$' is met, skip the end
392 New variable, `number_of_dollar_signs', to check there's exactly
393 one `$' in the parser skeleton.
395 2000-10-02 Akim Demaille <akim@epita.fr>
397 * lib/xstrdup.c: New file, from the fileutils.
398 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
399 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
400 instead of strlen + xmalloc + strcpy.
401 * src/symtab.c (copys): Remove, use xstrdup instead.
403 2000-10-02 Akim Demaille <akim@epita.fr>
405 * src/gram.h (associativity): New enum type which replaces the
406 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
407 `right_assoc', `left_assoc' and `non_assoc'.
408 Adjust all dependencies.
409 * src/reader.c: Formatting changes.
410 (LTYPESTR): Don't define it, use it as a literal in
411 `reader_output_yylsp'.
412 * src/symtab.h (symbol_class): New enum type which replaces the
413 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
414 `sunknown', `stoken and `snterm'.
416 2000-10-02 Akim Demaille <akim@epita.fr>
418 * src/getargs.c (fixed_outfiles): Rename as...
419 (yaccflag): for consistency and accuracy.
422 2000-10-02 Akim Demaille <akim@epita.fr>
424 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
425 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
426 difficult and introduced a lot of core dump. It turns out that
427 Bison used an implementation of `xmalloc' based on `calloc', and
428 at various places it does depend upon the initialization to 0. I
429 have not tried to isolate the pertinent places, and all the former
430 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
431 someone should address this issue.
433 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
434 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
437 * src/warshall.h: New file.
440 2000-10-02 Akim Demaille <akim@epita.fr>
442 Various anti-`extern in *.c' changes.
444 * src/system.h: Include `assert.h'.
446 2000-10-02 Akim Demaille <akim@epita.fr>
448 * src/state.h (nstates, final_state, first_state, first_shift)
449 (first_reduction): Move their exportation from here...
450 * src/LR0.h: to here.
452 * src/getargs.c (statisticsflag): New variable.
453 Add support for `--statistics'.
456 Remove a lot of now useless `extern' statements in most files.
458 2000-10-02 Akim Demaille <akim@epita.fr>
460 * src/LR0.h: New file.
463 2000-10-02 Akim Demaille <akim@epita.fr>
465 * src/print.h: New file.
467 * src/print.c: Formatting and ordering changes.
468 (verbose, terse): Replace with...
469 (print_results): this new function.
472 2000-10-02 Akim Demaille <akim@epita.fr>
474 * src/conflicts.c (conflict_report): New function.
475 (conflict_log, verbose_conflict_log): Replace with...
476 (print_conflicts): this function.
478 * src/conflicts.h: New file.
479 Propagate its inclusion.
481 2000-10-02 Akim Demaille <akim@epita.fr>
483 * src/nullable.h: New file.
484 Propagate its inclusion.
485 * src/nullable.c: Formatting changes.
487 2000-10-02 Akim Demaille <akim@epita.fr>
489 * src/reduce.h: New file.
490 Propagate its inclusion.
491 * src/reduce.c: Topological sort and other formatting changes.
492 (bool, TRUE, FALSE): Move their definition to...
493 * src/system.h: here.
495 2000-10-02 Akim Demaille <akim@epita.fr>
497 * src/files.c: Formatting changes.
498 (tryopen, tryclose, openfiles): Rename as...
499 (xfopen, xfclose, open_files): this.
500 (stringappend): static.
501 * src/files.h: Complete the list of exported symbols.
504 2000-10-02 Akim Demaille <akim@epita.fr>
506 * src/reader.h: New file.
507 Propagate its use instead of tedious list of `extern' and
509 * src/reader.c: Formatting changes, topological sort,
512 2000-10-02 Akim Demaille <akim@epita.fr>
514 * src/lex.h: Prototype `lex.c' exported functions.
515 * src/reader.c: Adjust.
516 * src/lex.c: Formatting changes.
517 (safegetc): Rename as...
520 2000-10-02 Akim Demaille <akim@epita.fr>
522 * src/lalr.h: New file.
523 Propagate its inclusion instead of prototypes and `extern'.
524 * src/lalr.c: Formatting changes, topological sorting etc.
526 2000-10-02 Akim Demaille <akim@epita.fr>
528 * src/output.c (token_actions): Introduce a temporary array,
529 YYDEFACT, that makes it possible for this function to use
532 2000-10-02 Akim Demaille <akim@epita.fr>
534 `user_toknums' is output as a `short[]' in `output.c', while it is
535 defined as a `int[]' in `reader.c'. For consistency with the
536 other output tables, `user_toknums' is now defined as a table of
539 * src/reader.c (user_toknums): Be a short table instead of an int
543 Factor the short table outputs.
545 * src/output.c (output_short_table): New function.
546 * src/output.c (output_gram, output_stos, output_rule_data)
547 (output_base, output_table, output_check): Use it.
549 2000-10-02 Akim Demaille <akim@epita.fr>
551 * src/output.c (output): Topological sort of the functions, in
552 order to get rid of the `static' prototypes.
553 No longer use `register'.
554 * src/output.h: New file.
555 Propagate its inclusion in files explicitly prototyping functions
558 2000-09-21 Akim Demaille <akim@epita.fr>
560 * src/atgeneral.m4: Update from Autoconf.
562 2000-09-21 Akim Demaille <akim@epita.fr>
564 * src/closure.h: New file.
565 * src/closure.c: Formatting changes, topological sort over the
566 functions, use of closure.h.
567 (initialize_closure, finalize_closure): Rename as...
568 (new_closure, free_closure): these. Adjust dependencies.
569 * src/LR0.c: Formatting changes, topological sort, use of
571 (initialize_states): Rename as...
573 * src/Makefile.am (noinst_HEADERS): Adjust.
575 2000-09-20 Akim Demaille <akim@epita.fr>
577 * src/acconfig.h: Don't protect config.h against multiple
580 * src/system.h: Define PARAMS.
581 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
582 purpose of config.h. system.h must not try to fix wrong
583 definitions in config.h.
585 2000-09-20 Akim Demaille <akim@epita.fr>
587 * src/derives.h: New file.
588 * src/main.c, src/derives.h: Use it.
590 * src/Makefile.am (noinst_HEADERS): Adjust.
592 2000-09-20 Akim Demaille <akim@epita.fr>
594 * tests/atgeneral.m4: Update from Autoconf.
595 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
596 (AT_CHECK_CALC): New macros.
597 Use these macros to test bison with options `', `--raw',
598 `--debug', `--yacc', `--yacc --debug'.
600 2000-09-19 Akim Demaille <akim@epita.fr>
602 * src/output.c: Formatting changes.
603 * src/machine.h: Remove, leaving its contents in...
604 * src/system.h: here.
606 Adjust all dependencies on stdio.h and machine.h.
607 * src/getargs.h: New file.
608 Let all `extern' declarations about getargs.c be replaced with
609 inclusion of `getargs.h'.
610 * src/Makefile.am (noinst_HEADERS): Adjust.
612 * tests/calc.m4 (yyin): Be initialized in main, not on the global
614 (yyerror): Returns void, not int.
615 * doc/bison.texinfo: Formatting changes.
617 2000-09-19 Akim Demaille <akim@epita.fr>
619 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
622 2000-09-18 Akim Demaille <akim@epita.fr>
624 * configure.in: Append WARNING_CFLAGS to CFLAGS.
625 * src/Makefile.am (INCLUDES): Don't.
626 Be ready to fetch headers in lib/.
628 2000-09-18 Akim Demaille <akim@epita.fr>
630 * doc/bison.texinfo: Update the copyright.
631 ANSIfy and GNUify the examples.
634 2000-09-18 Akim Demaille <akim@epita.fr>
636 First set of tests: use the `calc' example from the documentation.
638 * src/bison.s1 (yyparse): Condition the code using `yytname' which
639 is defined only when YYDEBUG is.
640 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
641 * src/files.c (tryopen, tryclose): Formatting changes.
642 Move to the top and be static.
643 * src/reader.c (read_signed_integer): Likewise.
644 * tests/calc.m4: New file.
645 * Makefile.am, suite.m4: Adjust.
646 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
648 2000-09-18 Akim Demaille <akim@epita.fr>
650 Add support for an Autotest test suite for Bison.
652 * m4/m4.m4, m4/atconfig.m4: New files.
653 * m4/Makefile.am (EXTRA_DIST): Adjust.
654 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
656 * src/getargs.c: Display a more standard --version message.
657 * src/reader.c (reader): Formatting changes.
658 No longer depend upon VERSION_STRING.
659 * configure.in: No longer use `dnl'.
660 Set up the test suite and the new directory `tests/.
661 (VERSION_STRING): Remove.
663 2000-04-14 Akim Demaille <akim@epita.fr>
665 * src/reader.c (copy_comment2): New function, same as former
666 `copy_comment', but outputs into two FILE *.
667 (copy_comment): Use it.
668 (parse_union_decl): Use it.
669 (get_type, parse_start_decl): Use the same `invalid' message.
670 (parse_start_decl, parse_union_decl): Use the same `multiple'
672 (parse_union_decl, copy_guard, copy_action): Use the same
674 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
676 2000-03-31 Akim Demaille <akim@epita.fr>
678 * src/files.c (tryopen, tryclose): Move to the top.
681 2000-03-31 Akim Demaille <akim@epita.fr>
683 * src/main.c (main): Don't call `done', exit does it.
685 2000-03-31 Akim Demaille <akim@epita.fr>
687 * allocate.c: s/return (foo)/return foo/.
690 * output.c: Likewise.
691 * reader.c: Likewise.
692 * symtab.c: Likewise.
693 * vmsgetargs.c: Likewise.
695 2000-03-31 Akim Demaille <akim@epita.fr>
697 Clean up the error reporting functions.
699 * src/report.c: New file.
700 * src/report.h: Likewise.
701 * src/Makefile.am: Adjust.
702 * m4/error.m4: New file.
703 * m4/Makefile.am: Adjust.
704 * configure.in (jm_PREREQ_ERROR): Call it.
705 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
707 (fatal, fatals): Remove. All callers use complain.c::fatal.
708 (warn, warni, warns, warnss, warnss): Remove. All callers use
709 complain.c::complain.
710 (toomany): Remove, use fatal instead.
711 * src/files.c (done): No argument, use complain_message_count.
712 * src/main.c (main): Register `done' to `atexit'.
714 * src/getargs.c (usage): More `fputs', less `fprintf'.
716 2000-03-28 Akim Demaille <akim@epita.fr>
718 * lib/: New directory.
719 * Makefile.am (SUBDIRS): Adjust.
720 * configure.in: Adjust.
721 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
723 * src/alloca.c: Moved to lib/.
724 * src/getopt.c: Likewise.
725 * src/getopt1.c: Likewise.
726 * src/getopt.h: Likewise.
727 * src/ansi2knr.c: Likewise.
728 * src/ansi2knr.1: Likewise.
729 * src/Makefile.am: Adjust.
730 * lib/Makefile.am: New file.
732 2000-03-28 Akim Demaille <akim@epita.fr>
734 * src/getargs.c (usage): Refresh the help message.
736 2000-03-17 Akim Demaille <akim@epita.fr>
738 * src/getopt1.c: Updated from textutils 2.0e
739 * src/getopt.c: Likewise.
740 * src/getopt.h: Likewise.
742 2000-03-17 Akim Demaille <akim@epita.fr>
744 * src/Makefile.am (bison.simple): Fix the awk program: quote only
745 the file name, not the whole `#line LINE FILE'.
747 2000-03-17 Akim Demaille <akim@epita.fr>
749 On syntax errors, report the token on which we choked.
751 * src/bison.s1 (yyparse): In the label yyerrlab, when
752 YYERROR_VERBOSE, add yychar in msg.
754 2000-03-17 Akim Demaille <akim@epita.fr>
756 * src/reader.c (copy_at): New function.
757 (copy_guard): Use it.
758 (copy_action): Use it.
760 2000-03-17 Akim Demaille <akim@epita.fr>
762 Be kind to translators, save some useless translations.
764 * src/main.c (banner): New function.
765 (fatal_banner): Use it.
766 (warn_banner): Use it.
768 2000-03-17 Akim Demaille <akim@epita.fr>
770 * src/reader.c (copy_definition): Use copy_string and
771 copy_comment. Removed now unused `match', `ended',
773 (copy_comment, copy_string): Moved, to be visible from
776 2000-03-17 Akim Demaille <akim@epita.fr>
778 * src/reader.c (copy_string): Declare `static inline'. No
779 problems with inline, since it is checked by configure.
780 (copy_comment): Likewise.
782 2000-03-17 Akim Demaille <akim@epita.fr>
784 * src/reader.c (packsymbols): Formatting changes.
786 2000-03-17 Akim Demaille <akim@epita.fr>
788 * src/reader.c (copy_comment): New function, factored out from:
789 (copy_action): Use it. Removed now unused `match', `ended',
791 (copy_guard): Likewise.
793 2000-03-17 Akim Demaille <akim@epita.fr>
795 * src/reader.c (copy_string): New function, factored out from:
796 (copy_action): Use it.
797 (copy_guard): Likewise.
799 2000-03-17 Akim Demaille <akim@epita.fr>
801 Change the handling of @s so that they behave exactly like $s.
802 There is now a pseudo variable @$ (readble and writable), location
803 of the lhs of the rule (by default ranging from the location of
804 the first symbol of the rhs, to the location of the last symbol,
805 or, if the rhs is empty, YYLLOC).
807 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
809 (yyparse): When providing a default semantic action, provide a
810 default location action.
811 (after the $): No longer change `*YYLSP', just stack YYLOC the
812 same way you stack YYVAL.
813 * src/reader.c (read_declarations): Use warns.
814 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
815 (copy_action, case '@'): Likewise.
816 Use a standard error message, to save useless work from
819 2000-03-17 Akim Demaille <akim@epita.fr>
821 * src/bison.s1: Formatting and cosmetics changes.
822 * src/reader.c: Likewise.
823 Update the Copyright notice.
825 2000-03-17 Akim Demaille <akim@epita.fr>
827 * src/bison.s1 (#line): All set to `#line' only, since the
828 Makefile now handles them.
830 2000-03-16 Akim Demaille <akim@epita.fr>
832 * src/output.c (output_rule_data): Output the documentation of
834 (Copyright notice): Update.
837 2000-03-16 Akim Demaille <akim@epita.fr>
839 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
840 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
841 One `#if YYDEBUG' remains, since it uses variables which are
842 defined only if `YYDEBUG != 0'.
844 2000-03-16 Akim Demaille <akim@epita.fr>
846 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
847 and related variables so that the similarities are highlighted.
849 2000-03-16 Akim Demaille <akim@epita.fr>
851 * src/bison.s1: Properly indent CPP directives.
853 2000-03-16 Akim Demaille <akim@epita.fr>
855 * src/bison.s1: Properly indent the `alloca' CPP section.
857 2000-03-16 Akim Demaille <akim@epita.fr>
859 Do not hard code values of directories in `configure.in'.
860 Update the `configure' tool chain.
862 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
864 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
865 (AC_OUTPUT): Add m4/Makefile.
866 Bump to bison 1.28a, 1.29 has never been released.
867 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
868 handled via src/Makefile.am.
869 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
870 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
872 * Makefile.am (SUBDIRS): Add m4.
873 (ACLOCAL_AM_FLAGS): New variable.
874 (AUTOMAKE_OPTIONS): Add check-news.
875 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
876 the proper line number and file name.
877 (DEFS): Propagate the location of bison library files and of the
879 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
881 * acinclude.m4: Remove, replaced by the directory m4.
882 * m4/Makefile.am (EXTRA_DIST): New variable.
883 * m4/gettext.m4: New file, from the fileutils.
884 * m4/lcmessage.m4: Likewise
885 * m4/progtest.m4: Likewise.
886 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
888 2000-03-10 Akim Demaille <akim@epita.fr>
891 Formatting changes of various comments.
892 Respect the GNU coding standards at various places.
893 Don't use `_()' when no translation is needed.
895 1999-12-13 Jesse Thilo <jthilo@gnu.org>
898 OS/2 honors TMPDIR environment variable.
900 1999-12-13 Jesse Thilo <jthilo@gnu.org>
902 * doc/bison.texinfo: Tweaked spelling and grammar.
904 Removed reference to price of printed copy.
905 Mention BISON_SIMPLE and BISON_HAIRY.
907 1999-12-13 Jesse Thilo <jthilo@gnu.org>
909 * configure.in, NEWS:
912 1999-10-27 Jesse Thilo <jthilo@gnu.org>
914 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
915 Added reference card.
917 1999-07-26 Jesse Thilo <jthilo@gnu.org>
919 * po/ru.po: Added Russian translation.
921 1999-07-26 Jesse Thilo <jthilo@gnu.org>
923 * configure.in: Added Russian translation.
925 1999-07-06 Jesse Thilo <jthilo@gnu.org>
927 * configure.in, NEWS, README:
928 Released version 1.28.
930 1999-06-14 Jesse Thilo <jthilo@gnu.org>
933 Squashed redefinition warning on some systems.
935 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
936 Have configure build version string instead of relying on ANSI string
939 1999-06-14 Jesse Thilo <jthilo@gnu.org>
941 * po/POTFILES.in: Got rid of version.c.
943 1999-06-14 Jesse Thilo <jthilo@gnu.org>
945 * acconfig.h, configure.in:
946 Have configure build version string instead of relying on ANSI string
949 1999-06-08 Jesse Thilo <jthilo@gnu.org>
952 Dropped mention of `+' for long-named options.
954 1999-05-30 Jesse Thilo <jthilo@gnu.org>
956 * src/files.c: Added <unistd.h> for unlink().
958 * src/Makefile.am, src/system.h:
961 1999-05-30 Jesse Thilo <jthilo@gnu.org>
963 * README: Added a FAQ list.
965 * configure.in, acconfig.h:
968 1999-05-30 Jesse Thilo <jthilo@gnu.org>
970 * doc/FAQ, doc/Makefile.am:
973 1999-05-19 Jesse Thilo <jthilo@gnu.org>
975 * src/alloc.h, src/symtab.h, src/version.c:
976 Protected inclusion of "config.h" with HAVE_CONFIG_H.
978 1999-04-18 Jesse Thilo <jthilo@gnu.org>
980 * src/.cvsignore, src/Makefile.am:
981 Reorganized: sources in `src', documentation in `doc'.
983 * src/lex.c (literalchar):
984 fixed the code for escaping double quotes (thanks
987 1999-04-18 Jesse Thilo <jthilo@gnu.org>
989 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
990 Adjusted paths to reflect directory reorganization.
992 1999-04-18 Jesse Thilo <jthilo@gnu.org>
994 * doc/.cvsignore, doc/Makefile.am:
995 Reorganized: sources in `src', documentation in `doc'.
997 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1000 Updated AC_INIT file to reflect directory reorganization.
1002 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1003 Reorganized: sources in `src', documentation in `doc'.
1005 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1008 Don't declare calloc() and realloc() if not necessary.
1010 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1012 * configure.in, acconfig.h, acinclude.m4:
1013 Don't declare calloc() and realloc() if not necessary.
1015 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1017 * po/.cvsignore: Added i18n support.
1019 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1021 * acconfig.h, configure.in, Makefile.am:
1024 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1026 * src/bison.s1: Fixed #line numbers.
1028 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1030 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1031 Added PO files from Translation Project.
1033 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1036 Added support for non-ANSI compilers (ansi2knr).
1038 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1040 * configure.in: Bumped version number to 1.27.
1043 Added `bison.simple' to list of files removed by `make distclean'.
1045 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1047 * src/files.c, src/files.h:
1048 Defined locations of parser files in config.h instead of Makefile.
1050 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1052 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1053 Defined locations of parser files in config.h instead of Makefile.
1055 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1058 Removed inappropriate use of $< macro.
1060 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1062 * po/Makefile.in.in, po/POTFILES.in:
1063 Add `po' directory skeleton.
1065 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1067 * README: Document help-bison list.
1069 * configure.in: Add check for mkstemp().
1071 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1073 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1074 Hush a few compiler warnings.
1077 Add tryclose(), which verifies that fclose was successful.
1078 Hush a couple of compiler warnings.
1080 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1082 * Makefile.am, OChangeLog:
1083 ChangeLog is now automatically generated. Include the old version as
1086 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1088 * 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:
1091 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1093 * doc/bison.texinfo: Fix formatting glitch.
1095 * doc/bison.texinfo: Update FSF address.
1097 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1099 * acconfig.h: Update FSF address.
1101 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1104 Don't define PACKAGE here, since config.h defines it.
1106 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1108 * src/reader.c: Update copyright date.
1111 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1112 favor of output directly to stderr (avoids buffer overruns).
1114 * src/reader.c: Some checks for premature EOF.
1116 * 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:
1117 Use prototypes if the compiler understands them.
1119 * src/files.c: Honor TMPDIR on Unix hosts.
1120 Use prototypes if the compiler understands them.
1123 Fix a couple of buffer overrun bugs.
1124 Use prototypes if the compiler understands them.
1126 * src/system.h: Include unistd.h and ctype.h.
1127 Use #ifdef instead of #if for NLS symbols.
1129 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1131 * doc/bison.texinfo:
1132 Delete comment "consider using @set for edition number, etc..." since
1133 we now are doing so.
1135 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1138 Use prototypes if the compiler understands them.
1140 * NEWS: Document 1.26 highlights.
1142 * Makefile.am: Require Automake 1.3 or later.
1145 Use prototypes if the compiler understands them.
1147 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1150 Use VERSION symbol from automake for version number.
1152 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1154 * acconfig.h, configure.in, version.cin:
1155 Use VERSION symbol from automake for version number.
1157 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1160 Distribute original version of simple parser (bison.s1), not built
1161 version (bison.simple).
1163 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1165 * doc/bison.texinfo: Add info dir entry.
1167 * doc/bison.texinfo:
1168 Let automake put version number into documentation.
1170 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1172 * src/bison.cld, src/build.com, src/vmshlp.mar:
1173 Add non-RCS files from /gd/gnu/bison.
1175 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1178 Document the BISON_HAIRY and BISON_SIMPLE variables.
1180 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1182 * src/version.c: Build version.c automatically.
1185 Fix token numbering (used to start at 258, not 257).
1187 * src/system.h: Include config.h.
1189 * src/getargs.c: Update bug report address.
1191 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1192 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1194 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1197 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1199 * configure.in, version.cin:
1200 Build version.c automatically.
1202 * AUTHORS: Add AUTHORS file.
1204 * README: Update bug report address.
1207 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1209 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1212 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1214 * doc/bison.texinfo: Clean up some formatting.
1216 1998-05-05 Richard Stallman <rms@gnu.org>
1218 * doc/bison.texinfo:
1219 Explain better why to make a pure parser.
1221 1998-01-05 Richard Stallman <rms@gnu.org>
1223 * src/files.c (openfiles):
1224 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1225 find a temporary directory, if possible. Do not unlink files while
1228 1997-08-25 Richard Stallman <rms@gnu.org>
1230 * src/reader.c (stack_offset;):
1231 Change some warni to warns.
1233 * src/lex.c (literalchar): Use warns, not warni.
1235 1997-06-28 Richard Stallman <rms@gnu.org>
1237 * src/bison.s1: Add a Bison version comment.
1239 * src/main.c (fatal, warn, berror):
1242 1997-06-28 Richard Stallman <rms@gnu.org>
1244 * Makefile.in (bison_version): New variable.
1245 (dist): Use that variable.
1246 (bison.s1): Substitute the Bison version into bison.simple.
1248 * bison.simple: Add a Bison version comment.
1250 1997-06-18 Richard Stallman <rms@gnu.org>
1252 * src/main.c (fatal, warn, berror):
1253 Make error messages standard.
1254 (toomany): Improve error message text.
1256 * 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:
1257 new.h renamed to alloc.h.
1259 1997-06-18 Richard Stallman <rms@gnu.org>
1261 * Makefile.in: new.h renamed to alloc.h.
1263 1997-05-24 Richard Stallman <rms@gnu.org>
1265 * src/lex.c (literalchar):
1266 Fix the code for escaping \, " and '.
1268 (lex): Avoid trouble when there are many chars
1269 to discard in a char literal with just several chars in it.
1271 1997-05-17 Richard Stallman <rms@gnu.org>
1274 Use malloc, if using alloca is troublesome.
1275 (YYSTACK_USE_ALLOCA): New flag macro.
1276 Define it for some systems and compilers.
1277 (YYSTACK_ALLOC): New macro.
1278 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1279 If it was malloc'd, free it.
1281 1997-05-17 Richard Stallman <rms@gnu.org>
1284 Use malloc, if using alloca is troublesome.
1285 (YYSTACK_USE_ALLOCA): New flag macro.
1286 Define it for some systems and compilers.
1287 (YYSTACK_ALLOC): New macro.
1288 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1289 If it was malloc'd, free it.
1291 1997-04-23 Richard Stallman <rms@gnu.org>
1294 (alloca) [__hpux]: Always define as __builtin_alloca.
1296 1997-04-23 Richard Stallman <rms@gnu.org>
1299 (alloca) [__hpux]: Always define as __builtin_alloca.
1301 1997-04-22 Richard Stallman <rms@gnu.org>
1304 [__hpux]: Include alloca.h (right for HPUX 10)
1305 instead of declaring alloca (right for HPUX 9).
1307 * src/bison.s1 (__yy_memcpy):
1308 Declare arg `count' as unsigned int.
1309 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1311 1997-04-22 Richard Stallman <rms@gnu.org>
1314 [__hpux]: Include alloca.h (right for HPUX 10)
1315 instead of declaring alloca (right for HPUX 9).
1317 * bison.simple (__yy_memcpy):
1318 Declare arg `count' as unsigned int.
1319 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1321 1997-01-03 Richard Stallman <rms@gnu.org>
1323 * src/allocate.c: [__STDC__ or _MSC_VER]:
1324 Declare calloc and realloc to return void *.
1326 1997-01-02 Richard Stallman <rms@gnu.org>
1329 [_MSC_VER]: Include stdlib.h and process.h.
1330 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1332 * src/main.c (main): Return FAILURE as a value.
1333 (printable_version): Declare arg as int, not char.
1335 1997-01-02 Richard Stallman <rms@gnu.org>
1337 * Makefile.in (dist):
1338 Explicitly check for symlinks, and copy them.
1340 1996-12-19 Richard Stallman <rms@gnu.org>
1343 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1345 1996-12-18 Paul Eggert <eggert@gnu.org>
1347 * src/bison.s1 (yyparse):
1348 If __GNUC__ and YYPARSE_PARAM are both defined,
1349 declare yyparse to have a void * argument.
1351 1996-12-18 Paul Eggert <eggert@gnu.org>
1353 * bison.simple (yyparse):
1354 If __GNUC__ and YYPARSE_PARAM are both defined,
1355 declare yyparse to have a void * argument.
1357 1996-12-17 Richard Stallman <rms@gnu.org>
1359 * src/reduce.c (nbits): Add some casts.
1361 1996-08-12 Richard Stallman <rms@gnu.org>
1363 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1365 1996-08-12 Richard Stallman <rms@gnu.org>
1367 * bison.simple: Test _MSDOS as well as _MSDOS_.
1369 1996-07-31 Richard Stallman <rms@gnu.org>
1372 [__sun && __i386]: Include alloca.h.
1374 1996-07-31 Richard Stallman <rms@gnu.org>
1377 [__sun && __i386]: Include alloca.h.
1379 1996-07-30 Richard Stallman <rms@gnu.org>
1381 * src/bison.s1: Comment change.
1383 * src/bison.s1: Test _MSDOS_, not MSDOS.
1385 1996-07-30 Richard Stallman <rms@gnu.org>
1387 * bison.simple: Comment change.
1389 * bison.simple: Test _MSDOS_, not MSDOS.
1391 1996-06-01 Richard Stallman <rms@gnu.org>
1393 * 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:
1394 Insert `_' macro around many string constants.
1397 Insert `_' macro around many string constants.
1399 (main): Call setlocale, bindtextdomain and textdomain.
1401 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1402 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1403 [ENABLE_NLS]: Include libintl.h.
1404 [ENABLE_NLS] (gettext): Define.
1405 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1406 (N_, PACKAGE, LOCALEDIR): New macros.
1408 1996-06-01 Richard Stallman <rms@gnu.org>
1410 * POTFILES.in: New file.
1412 * Makefile.in (allocate.o):
1413 Define target explicitly.
1415 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1416 (LDFLAGS): Set to @LDFLAGS@.
1417 (configure): Run autoconf only if preceding `cd' succeeds.
1418 (bison.s1): Redirect output to temporary file then move the
1419 temporary to the target, rather than redirecting directly to bison.s1.
1420 (clean): Remove config.status and config.log.
1421 (distclean): Don't remove config.status here.
1423 1996-05-12 Richard Stallman <rms@gnu.org>
1426 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1428 1996-05-12 Richard Stallman <rms@gnu.org>
1431 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1433 1996-05-11 Richard Stallman <rms@gnu.org>
1435 * src/bison.s1 (__yy_memcpy):
1436 Really reorder the args, as was supposedly done on Feb 14 1995.
1437 (yyparse): Calls changed accordingly.
1439 1996-05-11 Richard Stallman <rms@gnu.org>
1441 * Makefile.in (dist): Don't use $(srcdir).
1443 * bison.simple (__yy_memcpy):
1444 Really reorder the args, as was supposedly done on Feb 14 1995.
1445 (yyparse): Calls changed accordingly.
1447 1996-01-27 Richard Stallman <rms@gnu.org>
1449 * src/output.c (output_rule_data):
1450 Test YYERROR_VERBOSE in the conditional
1451 around the definition of ttyname.
1453 1995-12-29 Richard Stallman <rms@gnu.org>
1456 Fix line numbers in #line commands.
1458 1995-12-29 Richard Stallman <rms@gnu.org>
1461 Fix line numbers in #line commands.
1463 1995-12-27 Richard Stallman <rms@gnu.org>
1465 * src/bison.s1 (YYPARSE_PARAM_DECL):
1466 In C++, make it always null.
1467 (YYPARSE_PARAM_ARG): New macro.
1468 (yyparse): Use YYPARSE_PARAM_ARG.
1470 1995-12-27 Richard Stallman <rms@gnu.org>
1472 * bison.simple (YYPARSE_PARAM_DECL):
1473 In C++, make it always null.
1474 (YYPARSE_PARAM_ARG): New macro.
1475 (yyparse): Use YYPARSE_PARAM_ARG.
1477 1995-11-29 Richard Stallman <rms@gnu.org>
1479 * doc/bison.texinfo:
1480 Describe literal string tokens, %raw, %no_lines, %token_table.
1482 1995-11-29 Daniel Hagerty <hag@gnu.org>
1484 * doc/bison.texinfo: Fixed update date
1486 1995-10-16 Richard Stallman <rms@gnu.org>
1488 * src/version.c: Version 1.25.
1490 1995-10-16 Richard Stallman <rms@gnu.org>
1492 * NEWS: *** empty log message ***
1494 1995-10-16 Richard Stallman <rms@gnu.org>
1496 * doc/bison.1, doc/bison.rnh:
1499 1995-10-15 Richard Stallman <rms@gnu.org>
1501 * src/vmsgetargs.c, src/getargs.c:
1502 Added -n, -k, and -raw switches.
1503 (noparserflag, toknumflag, rawtoknumflag): New variables.
1505 * src/symtab.h (SALIAS):
1506 New #define for adding aliases to %token.
1507 (struct bucket): Added `alias' field.
1509 * src/reduce.c (reduce_grammar):
1510 Revise error message.
1511 (print_notices): Remove final `.' from error message.
1513 * src/reader.c (reader_output_yylsp):
1515 (readgram): Use `#if 0' around code that accepted %command
1516 inside grammar rules: The documentation doesn't allow it,
1517 and it will fail since the %command processors scan for the next %.
1518 (parse_token_decl): Extended the %token
1519 declaration to allow a multi-character symbol as an alias.
1520 (parse_thong_decl): New function.
1521 (read_declarations): Added %thong declarations.
1522 (read_declarations): Handle NOOP to deal with allowing
1523 % declarations as another means to specify the flags.
1524 (readgram): Allow %prec prior to semantics embedded in a rule.
1525 (skip_to_char, read_declarations, copy_definition)
1526 (parse_token_decl, parse_start_decl, parse_type_decl)
1527 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1528 (get_type_name, copy_guard, copy_action, readgram)
1529 (get_type, packsymbols): Revised most error messages.
1530 Changed `fatal' to `warnxxx' to avoid aborting for error.
1531 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1532 (read_declarations): Improve the error message for
1533 an invalid character. Do not abort.
1534 (read_declarations, copy_guard, copy_action): Use
1535 printable_version to avoid unprintable characters in printed output.
1536 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1537 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1538 Allow the type of a non-terminal can be given
1539 more than once, as long as all specifications give the same type.
1542 (output_headers, output_trailers, output, output_gram)
1543 (output_rule_data): Implement noparserflag variable.
1544 Implement toknumflag variable.
1545 (output): Call reader_output_yylsp to output LTYPESTR.
1547 * src/main.c (main):
1548 If reader sees an error, don't process the grammar.
1549 (fatals): Updated to not use VARARGS1.
1550 (printable_version, int_to_string, warn, warni, warns, warnss)
1551 (warnsss): New error reporting functions. Avoid abort for error.
1554 Added THONG and NOOP for alias processing.
1555 Added SETOPT for the new code that allows setting options with %flags.
1558 Include getopt.h. Add some extern decls.
1559 (safegetc): New function to deal with EOF gracefully.
1560 (literalchar); new function to deal with reading \ escapes.
1561 (lex): Use literalchar.
1562 (lex): Implemented "..." tokens.
1563 (literalchar, lex, parse_percent_token): Made tokenbuffer
1564 always contain the token. This includes growing the token
1565 buffer while reading an integer.
1566 (parse_percent_token): Replaced if-else statement with percent_table.
1567 (parse_percent_token): Added % declarations as another
1568 way to specify the flags -n, -l, and -r. Also added hooks for
1569 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1570 major changes to files.c.
1571 (lex) Retain in the incoming stream a character following
1573 (skip_white_space, lex): Revised most error messages
1574 and changed fatal to warn to avoid aborting.
1575 (percent_table): Added %thong declarations.
1577 * src/gram.h: Comment changes.
1579 * src/files.c (openfiles, open_extra_files, done):
1581 and actfile file. Handle noparserflag. Both for -n switch.
1583 * src/conflicts.c (resolve_sr_conflict):
1584 Remove use of alloca.
1586 1995-06-01 Jim Meyering <meyering@gnu.org>
1588 * doc/bison.texinfo: *** empty log message ***
1590 1995-05-06 Richard Stallman <rms@gnu.org>
1592 * src/bison.s1: Comment change.
1594 1995-05-06 Richard Stallman <rms@gnu.org>
1596 * bison.simple: Comment change.
1598 1995-05-03 Richard Stallman <rms@gnu.org>
1600 * src/version.c: Version now 1.24.
1602 * src/bison.s1: Change distribution terms.
1604 * src/version.c: Version now 1.23.
1606 1995-05-03 Richard Stallman <rms@gnu.org>
1608 * doc/bison.texinfo:
1609 Rewrite "Conditions for Using Bison".
1610 Update version to 1.24.
1612 1995-05-03 Richard Stallman <rms@gnu.org>
1614 * bison.simple: Change distribution terms.
1616 1995-02-23 Richard Stallman <rms@gnu.org>
1618 * src/files.c: Test __VMS_POSIX as well as VMS.
1620 1995-02-14 Jim Meyering <meyering@gnu.org>
1622 * src/bison.s1 (__yy_memcpy):
1623 Renamed from __yy_bcopy to avoid
1624 confusion. Reverse FROM and TO arguments to be consistent with
1627 1995-02-14 Jim Meyering <meyering@gnu.org>
1629 * bison.simple (__yy_memcpy):
1630 Renamed from __yy_bcopy to avoid
1631 confusion. Reverse FROM and TO arguments to be consistent with
1634 1994-11-10 David J. MacKenzie <djm@gnu.org>
1640 * Makefile.in (DISTFILES): Include NEWS.
1642 * Makefile.in (DISTFILES):
1643 Include install-sh, not install.sh.
1645 * configure.in: Update to Autoconf v2 macro names.
1647 1994-10-05 David J. MacKenzie <djm@gnu.org>
1649 * Makefile.in: fix typo
1651 * Makefile.in (prefix, exec_prefix):
1652 Let configure set them.
1654 1994-09-28 David J. MacKenzie <djm@gnu.org>
1656 * Makefile.in: Set datadir to $(prefix)/share.
1658 1994-09-15 Richard Stallman <rms@gnu.org>
1661 Update copyright notice and GPL version.
1663 1994-09-15 Richard Stallman <rms@gnu.org>
1666 Update copyright notice and GPL version.
1668 1994-07-12 Richard Stallman <rms@gnu.org>
1670 * src/reduce.c, src/reader.c:
1673 1994-05-05 David J. MacKenzie <djm@gnu.org>
1675 * Makefile.in: entered into RCS
1677 1994-03-26 Richard Stallman <rms@gnu.org>
1679 * src/bison.s1: entered into RCS
1681 1994-03-26 Richard Stallman <rms@gnu.org>
1683 * bison.simple: entered into RCS
1685 1994-03-25 Richard Stallman <rms@gnu.org>
1687 * src/main.c: entered into RCS
1689 1994-03-24 Richard Stallman <rms@gnu.org>
1691 * src/conflicts.c: entered into RCS
1693 1994-01-02 Richard Stallman <rms@gnu.org>
1695 * Makefile.in: *** empty log message ***
1697 1993-11-21 Richard Stallman <rms@gnu.org>
1699 * src/bison.s1: *** empty log message ***
1701 1993-11-21 Richard Stallman <rms@gnu.org>
1703 * doc/bison.texinfo: entered into RCS
1705 * doc/bison.texinfo: *** empty log message ***
1707 1993-11-21 Richard Stallman <rms@gnu.org>
1709 * bison.simple: *** empty log message ***
1711 1993-10-25 David J. MacKenzie <djm@gnu.org>
1713 * doc/bison.texinfo: *** empty log message ***
1715 1993-10-19 Richard Stallman <rms@gnu.org>
1717 * src/bison.s1: *** empty log message ***
1719 1993-10-19 Richard Stallman <rms@gnu.org>
1721 * bison.simple: *** empty log message ***
1723 1993-10-14 Richard Stallman <rms@gnu.org>
1725 * src/bison.s1: *** empty log message ***
1727 1993-10-14 Richard Stallman <rms@gnu.org>
1729 * bison.simple: *** empty log message ***
1731 1993-09-14 David J. MacKenzie <djm@gnu.org>
1733 * doc/bison.texinfo: *** empty log message ***
1735 1993-09-13 Noah Friedman <friedman@gnu.org>
1737 * Makefile.in: *** empty log message ***
1739 1993-09-10 Richard Stallman <rms@gnu.org>
1741 * src/conflicts.c: *** empty log message ***
1743 * src/system.h: entered into RCS
1745 1993-09-10 Richard Stallman <rms@gnu.org>
1747 * doc/bison.1: entered into RCS
1749 1993-09-06 Noah Friedman <friedman@gnu.org>
1751 * src/version.c: entered into RCS
1753 1993-09-06 Noah Friedman <friedman@gnu.org>
1755 * Makefile.in: *** empty log message ***
1757 1993-07-30 David J. MacKenzie <djm@gnu.org>
1759 * Makefile.in: *** empty log message ***
1761 1993-07-24 Richard Stallman <rms@gnu.org>
1763 * src/bison.s1: *** empty log message ***
1765 1993-07-24 Richard Stallman <rms@gnu.org>
1767 * bison.simple: *** empty log message ***
1769 1993-07-08 David J. MacKenzie <djm@gnu.org>
1771 * Makefile.in: *** empty log message ***
1773 1993-07-04 Richard Stallman <rms@gnu.org>
1775 * src/bison.s1: *** empty log message ***
1777 1993-07-04 Richard Stallman <rms@gnu.org>
1779 * bison.simple: *** empty log message ***
1781 1993-06-26 David J. MacKenzie <djm@gnu.org>
1783 * src/getargs.c: entered into RCS
1785 1993-06-26 David J. MacKenzie <djm@gnu.org>
1787 * doc/bison.texinfo: *** empty log message ***
1789 * doc/bison.1: New file.
1791 1993-06-25 Richard Stallman <rms@gnu.org>
1793 * src/getargs.c: New file.
1795 1993-06-16 Richard Stallman <rms@gnu.org>
1797 * src/bison.s1: *** empty log message ***
1799 1993-06-16 Richard Stallman <rms@gnu.org>
1801 * bison.simple: *** empty log message ***
1803 1993-06-03 Richard Stallman <rms@gnu.org>
1805 * src/bison.s1: New file.
1807 1993-06-03 Richard Stallman <rms@gnu.org>
1809 * doc/bison.texinfo: *** empty log message ***
1811 1993-06-03 Richard Stallman <rms@gnu.org>
1813 * bison.simple: New file.
1815 1993-05-19 Richard Stallman <rms@gnu.org>
1817 * doc/bison.texinfo: New file.
1819 1993-05-07 Noah Friedman <friedman@gnu.org>
1821 * Makefile.in: *** empty log message ***
1823 1993-04-28 Noah Friedman <friedman@gnu.org>
1825 * src/reader.c: *** empty log message ***
1827 1993-04-23 Noah Friedman <friedman@gnu.org>
1829 * src/alloc.h: entered into RCS
1831 1993-04-20 David J. MacKenzie <djm@gnu.org>
1833 * src/version.c: *** empty log message ***
1835 * src/files.c, src/allocate.c:
1838 * src/reader.c: *** empty log message ***
1840 * src/lex.c: entered into RCS
1842 * src/conflicts.c: New file.
1844 * src/symtab.c: entered into RCS
1846 * src/alloc.h: New file.
1848 * src/LR0.c: entered into RCS
1850 1993-04-18 Noah Friedman <friedman@gnu.org>
1852 * src/reader.c: New file.
1854 * src/version.c: *** empty log message ***
1856 1993-04-18 Noah Friedman <friedman@gnu.org>
1858 * Makefile.in: *** empty log message ***
1860 1993-04-17 Noah Friedman <friedman@gnu.org>
1862 * Makefile.in: *** empty log message ***
1864 1993-04-15 Richard Stallman <rms@gnu.org>
1866 * src/main.c, src/files.c:
1869 1993-04-15 Noah Friedman <friedman@gnu.org>
1871 * configure.in: entered into RCS
1873 * configure.in: *** empty log message ***
1875 * configure.in: New file.
1877 1993-04-14 Richard Stallman <rms@gnu.org>
1879 * Makefile.in: New file.
1881 1993-04-13 Richard Stallman <rms@gnu.org>
1883 * src/version.c: New file.
1885 1993-03-25 Richard Stallman <rms@gnu.org>
1887 * src/output.c: entered into RCS
1889 1992-09-25 Richard Stallman <rms@gnu.org>
1891 * configure.bat: entered into RCS
1893 1992-06-22 Richard Stallman <rms@gnu.org>
1895 * src/vmsgetargs.c: entered into RCS
1897 1992-06-22 Richard Stallman <rms@gnu.org>
1899 * doc/bison.rnh: entered into RCS
1901 1992-04-20 David J. MacKenzie <djm@gnu.org>
1903 * README: entered into RCS
1905 1992-01-22 Richard Stallman <rms@gnu.org>
1907 * src/machine.h: entered into RCS
1909 1991-12-21 Richard Stallman <rms@gnu.org>
1911 * src/lalr.c, src/closure.c:
1914 1991-12-20 Richard Stallman <rms@gnu.org>
1916 * src/state.h: entered into RCS
1918 1991-12-18 Richard Stallman <rms@gnu.org>
1920 * src/print.c, src/nullable.c, src/derives.c:
1923 1991-11-03 David J. MacKenzie <djm@gnu.org>
1925 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1928 1988-09-09 Richard Stallman <rms@gnu.org>
1930 * src/bison.hairy: entered into RCS
1932 1987-12-16 Richard Stallman <rms@gnu.org>
1934 * REFERENCES: entered into RCS