1 2000-12-20 Akim Demaille <akim@epita.fr>
3 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
4 (copy_dollar): Now that everything uses obstacks, get rid of the
7 2000-12-20 Akim Demaille <akim@epita.fr>
9 * src/files.c (open_files): Actually the `.output' file is based
10 on the short_base_name, not base_name.
11 * tests/suite.at (Checking output file names): Adjust.
13 2000-12-20 Akim Demaille <akim@epita.fr>
15 * src/bison.s1: Remove, we now use directly...
16 * src/bison.simple: this.
17 * src/Makefile.am: Use pkgdata instead of data.
19 2000-12-20 Akim Demaille <akim@epita.fr>
21 * src/files.c (guard_obstack): New.
22 (open_files): Initialize it.
23 (output_files): Dump it...
24 * src/files.h: Export it.
25 * src/reader.c (copy_guard): Use it.
27 2000-12-19 Akim Demaille <akim@epita.fr>
29 * src/files.c (outfile, defsfile, actfile): Removed as global
31 (open_files): Don't compute them.
32 (output_files): Adjust.
33 (base_name, short_base_name): Be global.
36 2000-12-19 Akim Demaille <akim@epita.fr>
38 * src/files.c (strsuffix): New.
39 (stringappend): Be just like strcat but allocate.
40 (base_names): Eve out from open_files.
41 Try to simplify the rather hairy computation of base_name and
44 * tests/suite.at (Checking output file names): New test.
46 2000-12-19 Akim Demaille <akim@epita.fr>
48 * src/system.h (obstack_grow_literal_string): Rename as...
49 (obstack_grow_string): this.
50 * src/output.c (output_parser): Recognize `%% actions' instead of
52 * src/bison.s1: s/$/%% actions/.
53 * src/bison.hairy: Likewise.
55 2000-12-19 Akim Demaille <akim@epita.fr>
57 * src/output.c (output_parser): Compute the `#line' lines when
59 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
60 Suggested by Hans Aberg.
62 2000-12-19 Akim Demaille <akim@epita.fr>
64 Let the handling of the skeleton files be local to the procedures
67 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
69 (fparser, open_extra_files): Remove.
70 (open_files, output_files): Don't take care of fparser.
71 * src/files.h: Adjust.
72 * src/output.c (output_parser): Open and close the file to the
74 * src/reader.c (read_declarations): When %semantic_parser, open
77 2000-12-19 Akim Demaille <akim@epita.fr>
79 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
80 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
82 2000-12-19 Akim Demaille <akim@epita.fr>
84 * src/files.c (open_files): Yipee! We no longer need all the code
85 looking for `/tmp' since we have no tmp file.
87 2000-12-19 Akim Demaille <akim@epita.fr>
89 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
91 * src/files.c (open_files): Less dependency on MSDOS etc.
93 2000-12-14 Akim Demaille <akim@epita.fr>
95 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
96 Provide a default definition.
97 Use it when executing the default @ action.
98 * src/reader.c (reader_output_yylsp): No longer include
99 `timestamp' and `text' in the default YYLTYPE.
101 2000-12-12 Akim Demaille <akim@epita.fr>
103 * src/reader.c (copy_definition, parse_union_decl, copy_action)
104 (copy_guard): Quote the file names.
105 Reported by Laurent Mascherpa.
107 2000-12-12 Akim Demaille <akim@epita.fr>
109 * src/output.c (output_headers, output_program, output): Be sure
110 to escape special characters when outputting filenames.
111 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
112 (output_headers): Don't depend on them, Use ACTSTR.
114 2000-11-17 Akim Demaille <akim@epita.fr>
116 * lib/obstack.h: Formatting changes.
117 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
118 prevents type checking.
119 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
120 cast the value to (void *): assigning a `foo *' to a `void *'
122 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
123 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
126 2000-11-17 Akim Demaille <akim@epita.fr>
128 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
130 (suite.m4, regression.m4, calc.m4): these.
131 * tests/atgeneral.m4: Update from CVS Autoconf.
133 2000-11-17 Akim Demaille <akim@epita.fr>
135 * tests/regression.m4 (%union and --defines): New test,
136 demonstrating a current bug in the obstack implementation.
138 2000-11-17 Akim Demaille <akim@epita.fr>
140 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
142 Use them to declare the variables which are global or local to
145 2000-11-17 Akim Demaille <akim@epita.fr>
147 * acconfig.h: Remove, no longer used.
149 2000-11-07 Akim Demaille <akim@epita.fr>
151 * src: s/Copyright (C)/Copyright/g.
153 2000-11-07 Akim Demaille <akim@epita.fr>
155 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
157 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
159 2000-11-07 Akim Demaille <akim@epita.fr>
161 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
162 Merge in a single CPP if/else.
164 2000-11-07 Akim Demaille <akim@epita.fr>
166 * src/output.c (output): Remove useless variables.
167 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
168 argument `data' for consistency with the prototypes.
170 (obstack_copy, obstack_copy0): Rename the second argument as
171 `address' for consistency. Qualify it `const'.
172 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
173 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
174 `const' their input argument (`data' or `address').
175 Adjust the corresponding macros to include `const' in casts.
177 2000-11-03 Akim Demaille <akim@epita.fr>
179 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
180 s/PFILE1/BISON_HAIRY/.
183 2000-11-03 Akim Demaille <akim@epita.fr>
185 For some reason, this was not applied.
187 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
188 `unlink': it's no longer used.
190 2000-11-03 Akim Demaille <akim@epita.fr>
192 * src/files.c (skeleton_find): New function, eved out of...
193 (open_files, open_extra_files): here.
195 2000-11-03 Akim Demaille <akim@epita.fr>
199 * src/files.c (obstack_save): New function.
201 (output_files): this.
203 * src/main.c (main): Don't use `atexit' to register `done', since
204 it no longer has to remove tmp files, just call `output_files'
205 when there are no errors.
207 2000-11-02 Akim Demaille <akim@epita.fr>
209 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
210 `unlink': it's no longer used.
211 * src/files.h: Formatting changes.
213 2000-11-02 Akim Demaille <akim@epita.fr>
215 Remove the last uses of mktemp and unlink/delete.
217 * src/files.c (fdefines, ftable): Removed.
218 (defines_ostack, table_obstack): New.
219 Adjust dependencies of the former into uses of the latter.
220 * src/output.c (output_short_or_char_table, output_short_table):
221 Convert to using obstacks.
222 * src/reader.c (copy_comment2): Accept one FILE * and two
224 (output_token_defines, reader_output_yylsp): Use obstacks.
225 * src/system.h (obstack_fgrow3): New.
227 2000-11-01 Akim Demaille <akim@epita.fr>
229 Change each use of `fattrs' into a use of `attrs_obstack'.
231 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
232 * src/files.c (fattrs): Remove.
233 (attrs_obstack): New.
234 Adjust all dependencies.
235 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
237 2000-11-01 Akim Demaille <akim@epita.fr>
240 Change each use of `faction' into a use of `action_obstack'.
242 * lib/obstack.h, lib/obstack.c: New files.
243 * src/files.c (faction): Remove.
244 (action_obstack): New.
245 Adjust all dependencies.
247 2000-10-20 Akim Demaille <akim@epita.fr>
249 * lib/quote.h (PARAMS): New macro. Use it.
251 2000-10-16 Akim Demaille <akim@epita.fr>
253 * src/output.c (output_short_or_char_table): New function.
254 (output_short_table, output_token_translations): Use it.
255 (goto_actions): Use output_short_table.
257 2000-10-16 Akim Demaille <akim@epita.fr>
259 * src/symtab.c (bucket_new): New function.
262 * src/output.c (output_short_table): New argument to display the
263 comment associated with the table.
265 (output_gram): Use it.
266 (output_rule_data): Nicer output layout for YYTNAME.
268 2000-10-16 Akim Demaille <akim@epita.fr>
270 * src/lex.c (read_typename): New function.
272 * src/reader.c (copy_dollar): Likewise.
274 2000-10-16 Akim Demaille <akim@epita.fr>
276 * src/reader.c (copy_comment2): Expect the input stream to be on
277 the `/' which is suspected to open a comment, instead of being
278 called after `//' or `/*' was read.
279 (copy_comment, copy_definition, parse_union_decl, copy_action)
280 (copy_guard): Adjust.
282 2000-10-16 Akim Demaille <akim@epita.fr>
284 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
285 `read_signed_integer'.
287 2000-10-16 Akim Demaille <akim@epita.fr>
289 * src/reader.c (copy_dollar): New function.
290 (copy_guard, copy_action): Use it.
292 2000-10-16 Akim Demaille <akim@epita.fr>
294 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
295 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
296 New files, from Fileutils 4.0.27.
297 * src/main.c (printable_version): Remove.
298 * src/lex.c, src/reader.c: Use `quote'.
300 2000-10-04 Akim Demaille <akim@epita.fr>
302 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
304 2000-10-04 Akim Demaille <akim@epita.fr>
306 * doc/bison.texinfo: Various typos spotted by Neil Booth.
308 2000-10-04 Akim Demaille <akim@epita.fr>
310 When a literal string is used to define two different tokens,
311 `bison -v' segfaults.
312 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
314 * tests/regression.m4: New file.
315 Include the core of the sample provided by Piotr Gackiewicz.
316 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
319 2000-10-04 Akim Demaille <akim@epita.fr>
321 * src/reader.c (parse_expect_decl): Keep `count' within the size
325 2000-10-02 Paul Eggert <eggert@twinsun.com>
327 * bison.s1 (yyparse): Assign the default value
328 unconditionally, to avoid a GCC warning and make the parser a
331 2000-10-02 Akim Demaille <akim@epita.fr>
333 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
336 2000-10-02 Akim Demaille <akim@epita.fr>
338 * src/derives.c, src/print.c, src/reduce.c: To ease the
339 translation, move some `\n' out of the translated strings.
341 2000-10-02 Akim Demaille <akim@epita.fr>
343 The location tracking mechanism is precious for parse error
344 messages. Nevertheless, it is enabled only when `@n' is used in
345 the grammar, which is a different issue (you can use it in error
346 message, but not in the grammar per se). Therefore, there should
347 be another means to enable it.
349 * src/getargs.c (getargs): Support `--locations'.
351 * src/getargs.h (locationsflag): Export it.
352 * src/lex.c (percent_table): Support `%locations'.
353 * src/reader.c (yylsp_needed): Remove this variable, now replaced
354 with `locationsflag'.
355 * doc/bison.texinfo: Document `--locations' and `%locations'.
357 * tests/calc.m4: Test it.
359 For regularity of the names, replace each
360 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
361 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
362 In addition replace each `flag' with `_flag'.
364 2000-10-02 Akim Demaille <akim@epita.fr>
366 Also test parse error messages, including with YYERROR_VERBOSE.
368 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
370 Use it to check the computations.
371 Use it to check `nonassoc' is honored.
372 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
374 (_AT_CHECK_CALC): Adjust to this option.
375 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
377 2000-10-02 Akim Demaille <akim@epita.fr>
379 Test also `--verbose', `--defines' and `--name-prefix'. Testing
380 the latter demonstrates a flaw in the handling of non debugging
381 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
382 was used in order to simplify:
398 unfortunately this leads to a CPP conflict when
399 `--name-prefix=foo' is used since it produces `#define yydebug
402 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
403 (YYDPRINTF): New macro.
405 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
407 Also test `--verbose', `--defines' and `--name-prefix'.
409 2000-10-02 Akim Demaille <akim@epita.fr>
411 Improve the readability of the produced parsers.
413 * src/bison.s1: Formatting changes.
414 Improve the comment related to the `$' mark.
415 (yydefault): Don't fall through to `yyresume': `goto' there.
416 * src/output.c (output_parser): When the `$' is met, skip the end
418 New variable, `number_of_dollar_signs', to check there's exactly
419 one `$' in the parser skeleton.
421 2000-10-02 Akim Demaille <akim@epita.fr>
423 * lib/xstrdup.c: New file, from the fileutils.
424 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
425 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
426 instead of strlen + xmalloc + strcpy.
427 * src/symtab.c (copys): Remove, use xstrdup instead.
429 2000-10-02 Akim Demaille <akim@epita.fr>
431 * src/gram.h (associativity): New enum type which replaces the
432 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
433 `right_assoc', `left_assoc' and `non_assoc'.
434 Adjust all dependencies.
435 * src/reader.c: Formatting changes.
436 (LTYPESTR): Don't define it, use it as a literal in
437 `reader_output_yylsp'.
438 * src/symtab.h (symbol_class): New enum type which replaces the
439 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
440 `sunknown', `stoken and `snterm'.
442 2000-10-02 Akim Demaille <akim@epita.fr>
444 * src/getargs.c (fixed_outfiles): Rename as...
445 (yaccflag): for consistency and accuracy.
448 2000-10-02 Akim Demaille <akim@epita.fr>
450 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
451 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
452 difficult and introduced a lot of core dump. It turns out that
453 Bison used an implementation of `xmalloc' based on `calloc', and
454 at various places it does depend upon the initialization to 0. I
455 have not tried to isolate the pertinent places, and all the former
456 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
457 someone should address this issue.
459 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
460 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
463 * src/warshall.h: New file.
466 2000-10-02 Akim Demaille <akim@epita.fr>
468 Various anti-`extern in *.c' changes.
470 * src/system.h: Include `assert.h'.
472 2000-10-02 Akim Demaille <akim@epita.fr>
474 * src/state.h (nstates, final_state, first_state, first_shift)
475 (first_reduction): Move their exportation from here...
476 * src/LR0.h: to here.
478 * src/getargs.c (statisticsflag): New variable.
479 Add support for `--statistics'.
482 Remove a lot of now useless `extern' statements in most files.
484 2000-10-02 Akim Demaille <akim@epita.fr>
486 * src/LR0.h: New file.
489 2000-10-02 Akim Demaille <akim@epita.fr>
491 * src/print.h: New file.
493 * src/print.c: Formatting and ordering changes.
494 (verbose, terse): Replace with...
495 (print_results): this new function.
498 2000-10-02 Akim Demaille <akim@epita.fr>
500 * src/conflicts.c (conflict_report): New function.
501 (conflict_log, verbose_conflict_log): Replace with...
502 (print_conflicts): this function.
504 * src/conflicts.h: New file.
505 Propagate its inclusion.
507 2000-10-02 Akim Demaille <akim@epita.fr>
509 * src/nullable.h: New file.
510 Propagate its inclusion.
511 * src/nullable.c: Formatting changes.
513 2000-10-02 Akim Demaille <akim@epita.fr>
515 * src/reduce.h: New file.
516 Propagate its inclusion.
517 * src/reduce.c: Topological sort and other formatting changes.
518 (bool, TRUE, FALSE): Move their definition to...
519 * src/system.h: here.
521 2000-10-02 Akim Demaille <akim@epita.fr>
523 * src/files.c: Formatting changes.
524 (tryopen, tryclose, openfiles): Rename as...
525 (xfopen, xfclose, open_files): this.
526 (stringappend): static.
527 * src/files.h: Complete the list of exported symbols.
530 2000-10-02 Akim Demaille <akim@epita.fr>
532 * src/reader.h: New file.
533 Propagate its use instead of tedious list of `extern' and
535 * src/reader.c: Formatting changes, topological sort,
538 2000-10-02 Akim Demaille <akim@epita.fr>
540 * src/lex.h: Prototype `lex.c' exported functions.
541 * src/reader.c: Adjust.
542 * src/lex.c: Formatting changes.
543 (safegetc): Rename as...
546 2000-10-02 Akim Demaille <akim@epita.fr>
548 * src/lalr.h: New file.
549 Propagate its inclusion instead of prototypes and `extern'.
550 * src/lalr.c: Formatting changes, topological sorting etc.
552 2000-10-02 Akim Demaille <akim@epita.fr>
554 * src/output.c (token_actions): Introduce a temporary array,
555 YYDEFACT, that makes it possible for this function to use
558 2000-10-02 Akim Demaille <akim@epita.fr>
560 `user_toknums' is output as a `short[]' in `output.c', while it is
561 defined as a `int[]' in `reader.c'. For consistency with the
562 other output tables, `user_toknums' is now defined as a table of
565 * src/reader.c (user_toknums): Be a short table instead of an int
569 Factor the short table outputs.
571 * src/output.c (output_short_table): New function.
572 * src/output.c (output_gram, output_stos, output_rule_data)
573 (output_base, output_table, output_check): Use it.
575 2000-10-02 Akim Demaille <akim@epita.fr>
577 * src/output.c (output): Topological sort of the functions, in
578 order to get rid of the `static' prototypes.
579 No longer use `register'.
580 * src/output.h: New file.
581 Propagate its inclusion in files explicitly prototyping functions
584 2000-09-21 Akim Demaille <akim@epita.fr>
586 * src/atgeneral.m4: Update from Autoconf.
588 2000-09-21 Akim Demaille <akim@epita.fr>
590 * src/closure.h: New file.
591 * src/closure.c: Formatting changes, topological sort over the
592 functions, use of closure.h.
593 (initialize_closure, finalize_closure): Rename as...
594 (new_closure, free_closure): these. Adjust dependencies.
595 * src/LR0.c: Formatting changes, topological sort, use of
597 (initialize_states): Rename as...
599 * src/Makefile.am (noinst_HEADERS): Adjust.
601 2000-09-20 Akim Demaille <akim@epita.fr>
603 * src/acconfig.h: Don't protect config.h against multiple
606 * src/system.h: Define PARAMS.
607 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
608 purpose of config.h. system.h must not try to fix wrong
609 definitions in config.h.
611 2000-09-20 Akim Demaille <akim@epita.fr>
613 * src/derives.h: New file.
614 * src/main.c, src/derives.h: Use it.
616 * src/Makefile.am (noinst_HEADERS): Adjust.
618 2000-09-20 Akim Demaille <akim@epita.fr>
620 * tests/atgeneral.m4: Update from Autoconf.
621 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
622 (AT_CHECK_CALC): New macros.
623 Use these macros to test bison with options `', `--raw',
624 `--debug', `--yacc', `--yacc --debug'.
626 2000-09-19 Akim Demaille <akim@epita.fr>
628 * src/output.c: Formatting changes.
629 * src/machine.h: Remove, leaving its contents in...
630 * src/system.h: here.
632 Adjust all dependencies on stdio.h and machine.h.
633 * src/getargs.h: New file.
634 Let all `extern' declarations about getargs.c be replaced with
635 inclusion of `getargs.h'.
636 * src/Makefile.am (noinst_HEADERS): Adjust.
638 * tests/calc.m4 (yyin): Be initialized in main, not on the global
640 (yyerror): Returns void, not int.
641 * doc/bison.texinfo: Formatting changes.
643 2000-09-19 Akim Demaille <akim@epita.fr>
645 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
648 2000-09-18 Akim Demaille <akim@epita.fr>
650 * configure.in: Append WARNING_CFLAGS to CFLAGS.
651 * src/Makefile.am (INCLUDES): Don't.
652 Be ready to fetch headers in lib/.
654 2000-09-18 Akim Demaille <akim@epita.fr>
656 * doc/bison.texinfo: Update the copyright.
657 ANSIfy and GNUify the examples.
660 2000-09-18 Akim Demaille <akim@epita.fr>
662 First set of tests: use the `calc' example from the documentation.
664 * src/bison.s1 (yyparse): Condition the code using `yytname' which
665 is defined only when YYDEBUG is.
666 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
667 * src/files.c (tryopen, tryclose): Formatting changes.
668 Move to the top and be static.
669 * src/reader.c (read_signed_integer): Likewise.
670 * tests/calc.m4: New file.
671 * Makefile.am, suite.m4: Adjust.
672 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
674 2000-09-18 Akim Demaille <akim@epita.fr>
676 Add support for an Autotest test suite for Bison.
678 * m4/m4.m4, m4/atconfig.m4: New files.
679 * m4/Makefile.am (EXTRA_DIST): Adjust.
680 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
682 * src/getargs.c: Display a more standard --version message.
683 * src/reader.c (reader): Formatting changes.
684 No longer depend upon VERSION_STRING.
685 * configure.in: No longer use `dnl'.
686 Set up the test suite and the new directory `tests/.
687 (VERSION_STRING): Remove.
689 2000-04-14 Akim Demaille <akim@epita.fr>
691 * src/reader.c (copy_comment2): New function, same as former
692 `copy_comment', but outputs into two FILE *.
693 (copy_comment): Use it.
694 (parse_union_decl): Use it.
695 (get_type, parse_start_decl): Use the same `invalid' message.
696 (parse_start_decl, parse_union_decl): Use the same `multiple'
698 (parse_union_decl, copy_guard, copy_action): Use the same
700 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
702 2000-03-31 Akim Demaille <akim@epita.fr>
704 * src/files.c (tryopen, tryclose): Move to the top.
707 2000-03-31 Akim Demaille <akim@epita.fr>
709 * src/main.c (main): Don't call `done', exit does it.
711 2000-03-31 Akim Demaille <akim@epita.fr>
713 * allocate.c: s/return (foo)/return foo/.
716 * output.c: Likewise.
717 * reader.c: Likewise.
718 * symtab.c: Likewise.
719 * vmsgetargs.c: Likewise.
721 2000-03-31 Akim Demaille <akim@epita.fr>
723 Clean up the error reporting functions.
725 * src/report.c: New file.
726 * src/report.h: Likewise.
727 * src/Makefile.am: Adjust.
728 * m4/error.m4: New file.
729 * m4/Makefile.am: Adjust.
730 * configure.in (jm_PREREQ_ERROR): Call it.
731 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
733 (fatal, fatals): Remove. All callers use complain.c::fatal.
734 (warn, warni, warns, warnss, warnss): Remove. All callers use
735 complain.c::complain.
736 (toomany): Remove, use fatal instead.
737 * src/files.c (done): No argument, use complain_message_count.
738 * src/main.c (main): Register `done' to `atexit'.
740 * src/getargs.c (usage): More `fputs', less `fprintf'.
742 2000-03-28 Akim Demaille <akim@epita.fr>
744 * lib/: New directory.
745 * Makefile.am (SUBDIRS): Adjust.
746 * configure.in: Adjust.
747 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
749 * src/alloca.c: Moved to lib/.
750 * src/getopt.c: Likewise.
751 * src/getopt1.c: Likewise.
752 * src/getopt.h: Likewise.
753 * src/ansi2knr.c: Likewise.
754 * src/ansi2knr.1: Likewise.
755 * src/Makefile.am: Adjust.
756 * lib/Makefile.am: New file.
758 2000-03-28 Akim Demaille <akim@epita.fr>
760 * src/getargs.c (usage): Refresh the help message.
762 2000-03-17 Akim Demaille <akim@epita.fr>
764 * src/getopt1.c: Updated from textutils 2.0e
765 * src/getopt.c: Likewise.
766 * src/getopt.h: Likewise.
768 2000-03-17 Akim Demaille <akim@epita.fr>
770 * src/Makefile.am (bison.simple): Fix the awk program: quote only
771 the file name, not the whole `#line LINE FILE'.
773 2000-03-17 Akim Demaille <akim@epita.fr>
775 On syntax errors, report the token on which we choked.
777 * src/bison.s1 (yyparse): In the label yyerrlab, when
778 YYERROR_VERBOSE, add yychar in msg.
780 2000-03-17 Akim Demaille <akim@epita.fr>
782 * src/reader.c (copy_at): New function.
783 (copy_guard): Use it.
784 (copy_action): Use it.
786 2000-03-17 Akim Demaille <akim@epita.fr>
788 Be kind to translators, save some useless translations.
790 * src/main.c (banner): New function.
791 (fatal_banner): Use it.
792 (warn_banner): Use it.
794 2000-03-17 Akim Demaille <akim@epita.fr>
796 * src/reader.c (copy_definition): Use copy_string and
797 copy_comment. Removed now unused `match', `ended',
799 (copy_comment, copy_string): Moved, to be visible from
802 2000-03-17 Akim Demaille <akim@epita.fr>
804 * src/reader.c (copy_string): Declare `static inline'. No
805 problems with inline, since it is checked by configure.
806 (copy_comment): Likewise.
808 2000-03-17 Akim Demaille <akim@epita.fr>
810 * src/reader.c (packsymbols): Formatting changes.
812 2000-03-17 Akim Demaille <akim@epita.fr>
814 * src/reader.c (copy_comment): New function, factored out from:
815 (copy_action): Use it. Removed now unused `match', `ended',
817 (copy_guard): Likewise.
819 2000-03-17 Akim Demaille <akim@epita.fr>
821 * src/reader.c (copy_string): New function, factored out from:
822 (copy_action): Use it.
823 (copy_guard): Likewise.
825 2000-03-17 Akim Demaille <akim@epita.fr>
827 Change the handling of @s so that they behave exactly like $s.
828 There is now a pseudo variable @$ (readble and writable), location
829 of the lhs of the rule (by default ranging from the location of
830 the first symbol of the rhs, to the location of the last symbol,
831 or, if the rhs is empty, YYLLOC).
833 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
835 (yyparse): When providing a default semantic action, provide a
836 default location action.
837 (after the $): No longer change `*YYLSP', just stack YYLOC the
838 same way you stack YYVAL.
839 * src/reader.c (read_declarations): Use warns.
840 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
841 (copy_action, case '@'): Likewise.
842 Use a standard error message, to save useless work from
845 2000-03-17 Akim Demaille <akim@epita.fr>
847 * src/bison.s1: Formatting and cosmetics changes.
848 * src/reader.c: Likewise.
849 Update the Copyright notice.
851 2000-03-17 Akim Demaille <akim@epita.fr>
853 * src/bison.s1 (#line): All set to `#line' only, since the
854 Makefile now handles them.
856 2000-03-16 Akim Demaille <akim@epita.fr>
858 * src/output.c (output_rule_data): Output the documentation of
860 (Copyright notice): Update.
863 2000-03-16 Akim Demaille <akim@epita.fr>
865 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
866 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
867 One `#if YYDEBUG' remains, since it uses variables which are
868 defined only if `YYDEBUG != 0'.
870 2000-03-16 Akim Demaille <akim@epita.fr>
872 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
873 and related variables so that the similarities are highlighted.
875 2000-03-16 Akim Demaille <akim@epita.fr>
877 * src/bison.s1: Properly indent CPP directives.
879 2000-03-16 Akim Demaille <akim@epita.fr>
881 * src/bison.s1: Properly indent the `alloca' CPP section.
883 2000-03-16 Akim Demaille <akim@epita.fr>
885 Do not hard code values of directories in `configure.in'.
886 Update the `configure' tool chain.
888 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
890 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
891 (AC_OUTPUT): Add m4/Makefile.
892 Bump to bison 1.28a, 1.29 has never been released.
893 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
894 handled via src/Makefile.am.
895 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
896 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
898 * Makefile.am (SUBDIRS): Add m4.
899 (ACLOCAL_AM_FLAGS): New variable.
900 (AUTOMAKE_OPTIONS): Add check-news.
901 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
902 the proper line number and file name.
903 (DEFS): Propagate the location of bison library files and of the
905 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
907 * acinclude.m4: Remove, replaced by the directory m4.
908 * m4/Makefile.am (EXTRA_DIST): New variable.
909 * m4/gettext.m4: New file, from the fileutils.
910 * m4/lcmessage.m4: Likewise
911 * m4/progtest.m4: Likewise.
912 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
914 2000-03-10 Akim Demaille <akim@epita.fr>
917 Formatting changes of various comments.
918 Respect the GNU coding standards at various places.
919 Don't use `_()' when no translation is needed.
921 1999-12-13 Jesse Thilo <jthilo@gnu.org>
924 OS/2 honors TMPDIR environment variable.
926 1999-12-13 Jesse Thilo <jthilo@gnu.org>
928 * doc/bison.texinfo: Tweaked spelling and grammar.
930 Removed reference to price of printed copy.
931 Mention BISON_SIMPLE and BISON_HAIRY.
933 1999-12-13 Jesse Thilo <jthilo@gnu.org>
935 * configure.in, NEWS:
938 1999-10-27 Jesse Thilo <jthilo@gnu.org>
940 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
941 Added reference card.
943 1999-07-26 Jesse Thilo <jthilo@gnu.org>
945 * po/ru.po: Added Russian translation.
947 1999-07-26 Jesse Thilo <jthilo@gnu.org>
949 * configure.in: Added Russian translation.
951 1999-07-06 Jesse Thilo <jthilo@gnu.org>
953 * configure.in, NEWS, README:
954 Released version 1.28.
956 1999-06-14 Jesse Thilo <jthilo@gnu.org>
959 Squashed redefinition warning on some systems.
961 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
962 Have configure build version string instead of relying on ANSI string
965 1999-06-14 Jesse Thilo <jthilo@gnu.org>
967 * po/POTFILES.in: Got rid of version.c.
969 1999-06-14 Jesse Thilo <jthilo@gnu.org>
971 * acconfig.h, configure.in:
972 Have configure build version string instead of relying on ANSI string
975 1999-06-08 Jesse Thilo <jthilo@gnu.org>
978 Dropped mention of `+' for long-named options.
980 1999-05-30 Jesse Thilo <jthilo@gnu.org>
982 * src/files.c: Added <unistd.h> for unlink().
984 * src/Makefile.am, src/system.h:
987 1999-05-30 Jesse Thilo <jthilo@gnu.org>
989 * README: Added a FAQ list.
991 * configure.in, acconfig.h:
994 1999-05-30 Jesse Thilo <jthilo@gnu.org>
996 * doc/FAQ, doc/Makefile.am:
999 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1001 * src/alloc.h, src/symtab.h, src/version.c:
1002 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1004 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1006 * src/.cvsignore, src/Makefile.am:
1007 Reorganized: sources in `src', documentation in `doc'.
1009 * src/lex.c (literalchar):
1010 fixed the code for escaping double quotes (thanks
1013 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1015 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1016 Adjusted paths to reflect directory reorganization.
1018 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1020 * doc/.cvsignore, doc/Makefile.am:
1021 Reorganized: sources in `src', documentation in `doc'.
1023 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1026 Updated AC_INIT file to reflect directory reorganization.
1028 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1029 Reorganized: sources in `src', documentation in `doc'.
1031 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1034 Don't declare calloc() and realloc() if not necessary.
1036 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1038 * configure.in, acconfig.h, acinclude.m4:
1039 Don't declare calloc() and realloc() if not necessary.
1041 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1043 * po/.cvsignore: Added i18n support.
1045 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1047 * acconfig.h, configure.in, Makefile.am:
1050 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1052 * src/bison.s1: Fixed #line numbers.
1054 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1056 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1057 Added PO files from Translation Project.
1059 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1062 Added support for non-ANSI compilers (ansi2knr).
1064 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1066 * configure.in: Bumped version number to 1.27.
1069 Added `bison.simple' to list of files removed by `make distclean'.
1071 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1073 * src/files.c, src/files.h:
1074 Defined locations of parser files in config.h instead of Makefile.
1076 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1078 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1079 Defined locations of parser files in config.h instead of Makefile.
1081 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1084 Removed inappropriate use of $< macro.
1086 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1088 * po/Makefile.in.in, po/POTFILES.in:
1089 Add `po' directory skeleton.
1091 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1093 * README: Document help-bison list.
1095 * configure.in: Add check for mkstemp().
1097 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1099 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1100 Hush a few compiler warnings.
1103 Add tryclose(), which verifies that fclose was successful.
1104 Hush a couple of compiler warnings.
1106 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1108 * Makefile.am, OChangeLog:
1109 ChangeLog is now automatically generated. Include the old version as
1112 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1114 * 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:
1117 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1119 * doc/bison.texinfo: Fix formatting glitch.
1121 * doc/bison.texinfo: Update FSF address.
1123 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1125 * acconfig.h: Update FSF address.
1127 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1130 Don't define PACKAGE here, since config.h defines it.
1132 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1134 * src/reader.c: Update copyright date.
1137 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1138 favor of output directly to stderr (avoids buffer overruns).
1140 * src/reader.c: Some checks for premature EOF.
1142 * 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:
1143 Use prototypes if the compiler understands them.
1145 * src/files.c: Honor TMPDIR on Unix hosts.
1146 Use prototypes if the compiler understands them.
1149 Fix a couple of buffer overrun bugs.
1150 Use prototypes if the compiler understands them.
1152 * src/system.h: Include unistd.h and ctype.h.
1153 Use #ifdef instead of #if for NLS symbols.
1155 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1157 * doc/bison.texinfo:
1158 Delete comment "consider using @set for edition number, etc..." since
1159 we now are doing so.
1161 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1164 Use prototypes if the compiler understands them.
1166 * NEWS: Document 1.26 highlights.
1168 * Makefile.am: Require Automake 1.3 or later.
1171 Use prototypes if the compiler understands them.
1173 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1176 Use VERSION symbol from automake for version number.
1178 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1180 * acconfig.h, configure.in, version.cin:
1181 Use VERSION symbol from automake for version number.
1183 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1186 Distribute original version of simple parser (bison.s1), not built
1187 version (bison.simple).
1189 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1191 * doc/bison.texinfo: Add info dir entry.
1193 * doc/bison.texinfo:
1194 Let automake put version number into documentation.
1196 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1198 * src/bison.cld, src/build.com, src/vmshlp.mar:
1199 Add non-RCS files from /gd/gnu/bison.
1201 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1204 Document the BISON_HAIRY and BISON_SIMPLE variables.
1206 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1208 * src/version.c: Build version.c automatically.
1211 Fix token numbering (used to start at 258, not 257).
1213 * src/system.h: Include config.h.
1215 * src/getargs.c: Update bug report address.
1217 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1218 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1220 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1223 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1225 * configure.in, version.cin:
1226 Build version.c automatically.
1228 * AUTHORS: Add AUTHORS file.
1230 * README: Update bug report address.
1233 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1235 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1238 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1240 * doc/bison.texinfo: Clean up some formatting.
1242 1998-05-05 Richard Stallman <rms@gnu.org>
1244 * doc/bison.texinfo:
1245 Explain better why to make a pure parser.
1247 1998-01-05 Richard Stallman <rms@gnu.org>
1249 * src/files.c (openfiles):
1250 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1251 find a temporary directory, if possible. Do not unlink files while
1254 1997-08-25 Richard Stallman <rms@gnu.org>
1256 * src/reader.c (stack_offset;):
1257 Change some warni to warns.
1259 * src/lex.c (literalchar): Use warns, not warni.
1261 1997-06-28 Richard Stallman <rms@gnu.org>
1263 * src/bison.s1: Add a Bison version comment.
1265 * src/main.c (fatal, warn, berror):
1268 1997-06-28 Richard Stallman <rms@gnu.org>
1270 * Makefile.in (bison_version): New variable.
1271 (dist): Use that variable.
1272 (bison.s1): Substitute the Bison version into bison.simple.
1274 * bison.simple: Add a Bison version comment.
1276 1997-06-18 Richard Stallman <rms@gnu.org>
1278 * src/main.c (fatal, warn, berror):
1279 Make error messages standard.
1280 (toomany): Improve error message text.
1282 * 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:
1283 new.h renamed to alloc.h.
1285 1997-06-18 Richard Stallman <rms@gnu.org>
1287 * Makefile.in: new.h renamed to alloc.h.
1289 1997-05-24 Richard Stallman <rms@gnu.org>
1291 * src/lex.c (literalchar):
1292 Fix the code for escaping \, " and '.
1294 (lex): Avoid trouble when there are many chars
1295 to discard in a char literal with just several chars in it.
1297 1997-05-17 Richard Stallman <rms@gnu.org>
1300 Use malloc, if using alloca is troublesome.
1301 (YYSTACK_USE_ALLOCA): New flag macro.
1302 Define it for some systems and compilers.
1303 (YYSTACK_ALLOC): New macro.
1304 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1305 If it was malloc'd, free it.
1307 1997-05-17 Richard Stallman <rms@gnu.org>
1310 Use malloc, if using alloca is troublesome.
1311 (YYSTACK_USE_ALLOCA): New flag macro.
1312 Define it for some systems and compilers.
1313 (YYSTACK_ALLOC): New macro.
1314 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1315 If it was malloc'd, free it.
1317 1997-04-23 Richard Stallman <rms@gnu.org>
1320 (alloca) [__hpux]: Always define as __builtin_alloca.
1322 1997-04-23 Richard Stallman <rms@gnu.org>
1325 (alloca) [__hpux]: Always define as __builtin_alloca.
1327 1997-04-22 Richard Stallman <rms@gnu.org>
1330 [__hpux]: Include alloca.h (right for HPUX 10)
1331 instead of declaring alloca (right for HPUX 9).
1333 * src/bison.s1 (__yy_memcpy):
1334 Declare arg `count' as unsigned int.
1335 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1337 1997-04-22 Richard Stallman <rms@gnu.org>
1340 [__hpux]: Include alloca.h (right for HPUX 10)
1341 instead of declaring alloca (right for HPUX 9).
1343 * bison.simple (__yy_memcpy):
1344 Declare arg `count' as unsigned int.
1345 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1347 1997-01-03 Richard Stallman <rms@gnu.org>
1349 * src/allocate.c: [__STDC__ or _MSC_VER]:
1350 Declare calloc and realloc to return void *.
1352 1997-01-02 Richard Stallman <rms@gnu.org>
1355 [_MSC_VER]: Include stdlib.h and process.h.
1356 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1358 * src/main.c (main): Return FAILURE as a value.
1359 (printable_version): Declare arg as int, not char.
1361 1997-01-02 Richard Stallman <rms@gnu.org>
1363 * Makefile.in (dist):
1364 Explicitly check for symlinks, and copy them.
1366 1996-12-19 Richard Stallman <rms@gnu.org>
1369 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1371 1996-12-18 Paul Eggert <eggert@gnu.org>
1373 * src/bison.s1 (yyparse):
1374 If __GNUC__ and YYPARSE_PARAM are both defined,
1375 declare yyparse to have a void * argument.
1377 1996-12-18 Paul Eggert <eggert@gnu.org>
1379 * bison.simple (yyparse):
1380 If __GNUC__ and YYPARSE_PARAM are both defined,
1381 declare yyparse to have a void * argument.
1383 1996-12-17 Richard Stallman <rms@gnu.org>
1385 * src/reduce.c (nbits): Add some casts.
1387 1996-08-12 Richard Stallman <rms@gnu.org>
1389 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1391 1996-08-12 Richard Stallman <rms@gnu.org>
1393 * bison.simple: Test _MSDOS as well as _MSDOS_.
1395 1996-07-31 Richard Stallman <rms@gnu.org>
1398 [__sun && __i386]: Include alloca.h.
1400 1996-07-31 Richard Stallman <rms@gnu.org>
1403 [__sun && __i386]: Include alloca.h.
1405 1996-07-30 Richard Stallman <rms@gnu.org>
1407 * src/bison.s1: Comment change.
1409 * src/bison.s1: Test _MSDOS_, not MSDOS.
1411 1996-07-30 Richard Stallman <rms@gnu.org>
1413 * bison.simple: Comment change.
1415 * bison.simple: Test _MSDOS_, not MSDOS.
1417 1996-06-01 Richard Stallman <rms@gnu.org>
1419 * 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:
1420 Insert `_' macro around many string constants.
1423 Insert `_' macro around many string constants.
1425 (main): Call setlocale, bindtextdomain and textdomain.
1427 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1428 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1429 [ENABLE_NLS]: Include libintl.h.
1430 [ENABLE_NLS] (gettext): Define.
1431 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1432 (N_, PACKAGE, LOCALEDIR): New macros.
1434 1996-06-01 Richard Stallman <rms@gnu.org>
1436 * POTFILES.in: New file.
1438 * Makefile.in (allocate.o):
1439 Define target explicitly.
1441 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1442 (LDFLAGS): Set to @LDFLAGS@.
1443 (configure): Run autoconf only if preceding `cd' succeeds.
1444 (bison.s1): Redirect output to temporary file then move the
1445 temporary to the target, rather than redirecting directly to bison.s1.
1446 (clean): Remove config.status and config.log.
1447 (distclean): Don't remove config.status here.
1449 1996-05-12 Richard Stallman <rms@gnu.org>
1452 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1454 1996-05-12 Richard Stallman <rms@gnu.org>
1457 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1459 1996-05-11 Richard Stallman <rms@gnu.org>
1461 * src/bison.s1 (__yy_memcpy):
1462 Really reorder the args, as was supposedly done on Feb 14 1995.
1463 (yyparse): Calls changed accordingly.
1465 1996-05-11 Richard Stallman <rms@gnu.org>
1467 * Makefile.in (dist): Don't use $(srcdir).
1469 * bison.simple (__yy_memcpy):
1470 Really reorder the args, as was supposedly done on Feb 14 1995.
1471 (yyparse): Calls changed accordingly.
1473 1996-01-27 Richard Stallman <rms@gnu.org>
1475 * src/output.c (output_rule_data):
1476 Test YYERROR_VERBOSE in the conditional
1477 around the definition of ttyname.
1479 1995-12-29 Richard Stallman <rms@gnu.org>
1482 Fix line numbers in #line commands.
1484 1995-12-29 Richard Stallman <rms@gnu.org>
1487 Fix line numbers in #line commands.
1489 1995-12-27 Richard Stallman <rms@gnu.org>
1491 * src/bison.s1 (YYPARSE_PARAM_DECL):
1492 In C++, make it always null.
1493 (YYPARSE_PARAM_ARG): New macro.
1494 (yyparse): Use YYPARSE_PARAM_ARG.
1496 1995-12-27 Richard Stallman <rms@gnu.org>
1498 * bison.simple (YYPARSE_PARAM_DECL):
1499 In C++, make it always null.
1500 (YYPARSE_PARAM_ARG): New macro.
1501 (yyparse): Use YYPARSE_PARAM_ARG.
1503 1995-11-29 Richard Stallman <rms@gnu.org>
1505 * doc/bison.texinfo:
1506 Describe literal string tokens, %raw, %no_lines, %token_table.
1508 1995-11-29 Daniel Hagerty <hag@gnu.org>
1510 * doc/bison.texinfo: Fixed update date
1512 1995-10-16 Richard Stallman <rms@gnu.org>
1514 * src/version.c: Version 1.25.
1516 1995-10-16 Richard Stallman <rms@gnu.org>
1518 * NEWS: *** empty log message ***
1520 1995-10-16 Richard Stallman <rms@gnu.org>
1522 * doc/bison.1, doc/bison.rnh:
1525 1995-10-15 Richard Stallman <rms@gnu.org>
1527 * src/vmsgetargs.c, src/getargs.c:
1528 Added -n, -k, and -raw switches.
1529 (noparserflag, toknumflag, rawtoknumflag): New variables.
1531 * src/symtab.h (SALIAS):
1532 New #define for adding aliases to %token.
1533 (struct bucket): Added `alias' field.
1535 * src/reduce.c (reduce_grammar):
1536 Revise error message.
1537 (print_notices): Remove final `.' from error message.
1539 * src/reader.c (reader_output_yylsp):
1541 (readgram): Use `#if 0' around code that accepted %command
1542 inside grammar rules: The documentation doesn't allow it,
1543 and it will fail since the %command processors scan for the next %.
1544 (parse_token_decl): Extended the %token
1545 declaration to allow a multi-character symbol as an alias.
1546 (parse_thong_decl): New function.
1547 (read_declarations): Added %thong declarations.
1548 (read_declarations): Handle NOOP to deal with allowing
1549 % declarations as another means to specify the flags.
1550 (readgram): Allow %prec prior to semantics embedded in a rule.
1551 (skip_to_char, read_declarations, copy_definition)
1552 (parse_token_decl, parse_start_decl, parse_type_decl)
1553 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1554 (get_type_name, copy_guard, copy_action, readgram)
1555 (get_type, packsymbols): Revised most error messages.
1556 Changed `fatal' to `warnxxx' to avoid aborting for error.
1557 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1558 (read_declarations): Improve the error message for
1559 an invalid character. Do not abort.
1560 (read_declarations, copy_guard, copy_action): Use
1561 printable_version to avoid unprintable characters in printed output.
1562 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1563 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1564 Allow the type of a non-terminal can be given
1565 more than once, as long as all specifications give the same type.
1568 (output_headers, output_trailers, output, output_gram)
1569 (output_rule_data): Implement noparserflag variable.
1570 Implement toknumflag variable.
1571 (output): Call reader_output_yylsp to output LTYPESTR.
1573 * src/main.c (main):
1574 If reader sees an error, don't process the grammar.
1575 (fatals): Updated to not use VARARGS1.
1576 (printable_version, int_to_string, warn, warni, warns, warnss)
1577 (warnsss): New error reporting functions. Avoid abort for error.
1580 Added THONG and NOOP for alias processing.
1581 Added SETOPT for the new code that allows setting options with %flags.
1584 Include getopt.h. Add some extern decls.
1585 (safegetc): New function to deal with EOF gracefully.
1586 (literalchar); new function to deal with reading \ escapes.
1587 (lex): Use literalchar.
1588 (lex): Implemented "..." tokens.
1589 (literalchar, lex, parse_percent_token): Made tokenbuffer
1590 always contain the token. This includes growing the token
1591 buffer while reading an integer.
1592 (parse_percent_token): Replaced if-else statement with percent_table.
1593 (parse_percent_token): Added % declarations as another
1594 way to specify the flags -n, -l, and -r. Also added hooks for
1595 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1596 major changes to files.c.
1597 (lex) Retain in the incoming stream a character following
1599 (skip_white_space, lex): Revised most error messages
1600 and changed fatal to warn to avoid aborting.
1601 (percent_table): Added %thong declarations.
1603 * src/gram.h: Comment changes.
1605 * src/files.c (openfiles, open_extra_files, done):
1607 and actfile file. Handle noparserflag. Both for -n switch.
1609 * src/conflicts.c (resolve_sr_conflict):
1610 Remove use of alloca.
1612 1995-06-01 Jim Meyering <meyering@gnu.org>
1614 * doc/bison.texinfo: *** empty log message ***
1616 1995-05-06 Richard Stallman <rms@gnu.org>
1618 * src/bison.s1: Comment change.
1620 1995-05-06 Richard Stallman <rms@gnu.org>
1622 * bison.simple: Comment change.
1624 1995-05-03 Richard Stallman <rms@gnu.org>
1626 * src/version.c: Version now 1.24.
1628 * src/bison.s1: Change distribution terms.
1630 * src/version.c: Version now 1.23.
1632 1995-05-03 Richard Stallman <rms@gnu.org>
1634 * doc/bison.texinfo:
1635 Rewrite "Conditions for Using Bison".
1636 Update version to 1.24.
1638 1995-05-03 Richard Stallman <rms@gnu.org>
1640 * bison.simple: Change distribution terms.
1642 1995-02-23 Richard Stallman <rms@gnu.org>
1644 * src/files.c: Test __VMS_POSIX as well as VMS.
1646 1995-02-14 Jim Meyering <meyering@gnu.org>
1648 * src/bison.s1 (__yy_memcpy):
1649 Renamed from __yy_bcopy to avoid
1650 confusion. Reverse FROM and TO arguments to be consistent with
1653 1995-02-14 Jim Meyering <meyering@gnu.org>
1655 * bison.simple (__yy_memcpy):
1656 Renamed from __yy_bcopy to avoid
1657 confusion. Reverse FROM and TO arguments to be consistent with
1660 1994-11-10 David J. MacKenzie <djm@gnu.org>
1666 * Makefile.in (DISTFILES): Include NEWS.
1668 * Makefile.in (DISTFILES):
1669 Include install-sh, not install.sh.
1671 * configure.in: Update to Autoconf v2 macro names.
1673 1994-10-05 David J. MacKenzie <djm@gnu.org>
1675 * Makefile.in: fix typo
1677 * Makefile.in (prefix, exec_prefix):
1678 Let configure set them.
1680 1994-09-28 David J. MacKenzie <djm@gnu.org>
1682 * Makefile.in: Set datadir to $(prefix)/share.
1684 1994-09-15 Richard Stallman <rms@gnu.org>
1687 Update copyright notice and GPL version.
1689 1994-09-15 Richard Stallman <rms@gnu.org>
1692 Update copyright notice and GPL version.
1694 1994-07-12 Richard Stallman <rms@gnu.org>
1696 * src/reduce.c, src/reader.c:
1699 1994-05-05 David J. MacKenzie <djm@gnu.org>
1701 * Makefile.in: entered into RCS
1703 1994-03-26 Richard Stallman <rms@gnu.org>
1705 * src/bison.s1: entered into RCS
1707 1994-03-26 Richard Stallman <rms@gnu.org>
1709 * bison.simple: entered into RCS
1711 1994-03-25 Richard Stallman <rms@gnu.org>
1713 * src/main.c: entered into RCS
1715 1994-03-24 Richard Stallman <rms@gnu.org>
1717 * src/conflicts.c: entered into RCS
1719 1994-01-02 Richard Stallman <rms@gnu.org>
1721 * Makefile.in: *** empty log message ***
1723 1993-11-21 Richard Stallman <rms@gnu.org>
1725 * src/bison.s1: *** empty log message ***
1727 1993-11-21 Richard Stallman <rms@gnu.org>
1729 * doc/bison.texinfo: entered into RCS
1731 * doc/bison.texinfo: *** empty log message ***
1733 1993-11-21 Richard Stallman <rms@gnu.org>
1735 * bison.simple: *** empty log message ***
1737 1993-10-25 David J. MacKenzie <djm@gnu.org>
1739 * doc/bison.texinfo: *** empty log message ***
1741 1993-10-19 Richard Stallman <rms@gnu.org>
1743 * src/bison.s1: *** empty log message ***
1745 1993-10-19 Richard Stallman <rms@gnu.org>
1747 * bison.simple: *** empty log message ***
1749 1993-10-14 Richard Stallman <rms@gnu.org>
1751 * src/bison.s1: *** empty log message ***
1753 1993-10-14 Richard Stallman <rms@gnu.org>
1755 * bison.simple: *** empty log message ***
1757 1993-09-14 David J. MacKenzie <djm@gnu.org>
1759 * doc/bison.texinfo: *** empty log message ***
1761 1993-09-13 Noah Friedman <friedman@gnu.org>
1763 * Makefile.in: *** empty log message ***
1765 1993-09-10 Richard Stallman <rms@gnu.org>
1767 * src/conflicts.c: *** empty log message ***
1769 * src/system.h: entered into RCS
1771 1993-09-10 Richard Stallman <rms@gnu.org>
1773 * doc/bison.1: entered into RCS
1775 1993-09-06 Noah Friedman <friedman@gnu.org>
1777 * src/version.c: entered into RCS
1779 1993-09-06 Noah Friedman <friedman@gnu.org>
1781 * Makefile.in: *** empty log message ***
1783 1993-07-30 David J. MacKenzie <djm@gnu.org>
1785 * Makefile.in: *** empty log message ***
1787 1993-07-24 Richard Stallman <rms@gnu.org>
1789 * src/bison.s1: *** empty log message ***
1791 1993-07-24 Richard Stallman <rms@gnu.org>
1793 * bison.simple: *** empty log message ***
1795 1993-07-08 David J. MacKenzie <djm@gnu.org>
1797 * Makefile.in: *** empty log message ***
1799 1993-07-04 Richard Stallman <rms@gnu.org>
1801 * src/bison.s1: *** empty log message ***
1803 1993-07-04 Richard Stallman <rms@gnu.org>
1805 * bison.simple: *** empty log message ***
1807 1993-06-26 David J. MacKenzie <djm@gnu.org>
1809 * src/getargs.c: entered into RCS
1811 1993-06-26 David J. MacKenzie <djm@gnu.org>
1813 * doc/bison.texinfo: *** empty log message ***
1815 * doc/bison.1: New file.
1817 1993-06-25 Richard Stallman <rms@gnu.org>
1819 * src/getargs.c: New file.
1821 1993-06-16 Richard Stallman <rms@gnu.org>
1823 * src/bison.s1: *** empty log message ***
1825 1993-06-16 Richard Stallman <rms@gnu.org>
1827 * bison.simple: *** empty log message ***
1829 1993-06-03 Richard Stallman <rms@gnu.org>
1831 * src/bison.s1: New file.
1833 1993-06-03 Richard Stallman <rms@gnu.org>
1835 * doc/bison.texinfo: *** empty log message ***
1837 1993-06-03 Richard Stallman <rms@gnu.org>
1839 * bison.simple: New file.
1841 1993-05-19 Richard Stallman <rms@gnu.org>
1843 * doc/bison.texinfo: New file.
1845 1993-05-07 Noah Friedman <friedman@gnu.org>
1847 * Makefile.in: *** empty log message ***
1849 1993-04-28 Noah Friedman <friedman@gnu.org>
1851 * src/reader.c: *** empty log message ***
1853 1993-04-23 Noah Friedman <friedman@gnu.org>
1855 * src/alloc.h: entered into RCS
1857 1993-04-20 David J. MacKenzie <djm@gnu.org>
1859 * src/version.c: *** empty log message ***
1861 * src/files.c, src/allocate.c:
1864 * src/reader.c: *** empty log message ***
1866 * src/lex.c: entered into RCS
1868 * src/conflicts.c: New file.
1870 * src/symtab.c: entered into RCS
1872 * src/alloc.h: New file.
1874 * src/LR0.c: entered into RCS
1876 1993-04-18 Noah Friedman <friedman@gnu.org>
1878 * src/reader.c: New file.
1880 * src/version.c: *** empty log message ***
1882 1993-04-18 Noah Friedman <friedman@gnu.org>
1884 * Makefile.in: *** empty log message ***
1886 1993-04-17 Noah Friedman <friedman@gnu.org>
1888 * Makefile.in: *** empty log message ***
1890 1993-04-15 Richard Stallman <rms@gnu.org>
1892 * src/main.c, src/files.c:
1895 1993-04-15 Noah Friedman <friedman@gnu.org>
1897 * configure.in: entered into RCS
1899 * configure.in: *** empty log message ***
1901 * configure.in: New file.
1903 1993-04-14 Richard Stallman <rms@gnu.org>
1905 * Makefile.in: New file.
1907 1993-04-13 Richard Stallman <rms@gnu.org>
1909 * src/version.c: New file.
1911 1993-03-25 Richard Stallman <rms@gnu.org>
1913 * src/output.c: entered into RCS
1915 1992-09-25 Richard Stallman <rms@gnu.org>
1917 * configure.bat: entered into RCS
1919 1992-06-22 Richard Stallman <rms@gnu.org>
1921 * src/vmsgetargs.c: entered into RCS
1923 1992-06-22 Richard Stallman <rms@gnu.org>
1925 * doc/bison.rnh: entered into RCS
1927 1992-04-20 David J. MacKenzie <djm@gnu.org>
1929 * README: entered into RCS
1931 1992-01-22 Richard Stallman <rms@gnu.org>
1933 * src/machine.h: entered into RCS
1935 1991-12-21 Richard Stallman <rms@gnu.org>
1937 * src/lalr.c, src/closure.c:
1940 1991-12-20 Richard Stallman <rms@gnu.org>
1942 * src/state.h: entered into RCS
1944 1991-12-18 Richard Stallman <rms@gnu.org>
1946 * src/print.c, src/nullable.c, src/derives.c:
1949 1991-11-03 David J. MacKenzie <djm@gnu.org>
1951 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1954 1988-09-09 Richard Stallman <rms@gnu.org>
1956 * src/bison.hairy: entered into RCS
1958 1987-12-16 Richard Stallman <rms@gnu.org>
1960 * REFERENCES: entered into RCS