1 2001-03-16 Akim Demaille <akim@epita.fr>
3 * doc/bison.texinfo: ANSIfy the examples.
5 2001-03-16 Akim Demaille <akim@epita.fr>
7 * getargs.c (skeleton): New variable.
8 (longopts): --skeleton is a new option.
9 (shortopts, getargs): -S is a new option.
10 * getargs.h: Declare skeleton.
11 * output.c (output_parser): Use it.
13 2001-03-16 Akim Demaille <akim@epita.fr>
15 * m4/strerror_r.m4: New.
16 * m4/error.m4: Run AC_FUNC_STRERROR_R.
17 * lib/error.h, lib/error.c: Update.
19 2001-03-16 Akim Demaille <akim@epita.fr>
21 * src/getargs.c (longopts): Clean up.
23 2001-02-21 Akim Demaille <akim@epita.fr>
25 * src/reader.c (gensym): `gensym_count' is your own.
26 Use a static buf to create the symbol name, as token_buffer is no
29 2001-02-08 Akim Demaille <akim@epita.fr>
31 * src/conflicts.c (conflict_report): Be sure not to append to res
32 between two calls, which could happen if both first sprintf were
33 skipped, but not the first cp += strlen.
35 2001-02-08 Akim Demaille <akim@epita.fr>
37 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
38 New, from fileutils 4.0.37.
39 * configure.in: Require Autoconf 2.49c. I took some time before
40 making this decision. This is the only way out for portability
41 issues in Bison, it would mean way too much duplicate effort to
42 import in Bison features implemented in 2.49c since 2.13.
43 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
45 2001-02-02 Akim Demaille <akim@epita.fr>
47 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
48 * lib/xalloc.h, lib/xmalloc.c: Update.
50 2001-01-19 Akim Demaille <akim@epita.fr>
52 Get rid of the ad hoc handling of token_buffer in the scanner: use
55 * src/lex.c (token_obstack): New.
56 (init_lex): Initialize it. No longer call...
57 (grow_token_buffer): this. Remove it.
58 Adjust all the places which used it to use the obstack.
60 2001-01-19 Akim Demaille <akim@epita.fr>
62 * src/lex.h: Rename all the tokens:
63 s/\bENDFILE\b/tok_eof/g;
64 s/\bIDENTIFIER\b/tok_identifier/g;
66 Let them be enums, not #define, to ease debugging.
69 2001-01-18 Akim Demaille <akim@epita.fr>
71 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
72 * src/lex.c (maxtoken, grow_token_buffer): Static.
74 2001-01-18 Akim Demaille <akim@epita.fr>
76 Since we now use obstacks, more % directives can be enabled.
78 * src/lex.c (percent_table): Also accept `%yacc',
79 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
81 Handle the actions for `%semantic_parser' and `%pure_parser' here,
82 instead of returning a token.
83 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
84 * src/reader.c (read_declarations): Adjust.
85 * src/files.c (open_files): Don't call `compute_base_names', don't
86 compute `attrsfile' since they depend upon data which might be
87 *in* the input file now.
88 (output_files): Do it here.
89 * src/output.c (output_headers): Document the fact that this patch
90 introduces a guaranteed SEGV for semantic parsers.
91 * doc/bison.texinfo: Document them.
92 * tests/suite.at: Exercise these %options.
94 2000-12-20 Akim Demaille <akim@epita.fr>
96 Also handle the output file (--verbose) with obstacks.
98 * files.c (foutput): Remove.
99 (output_obstack): New.
100 Adjust all dependencies.
101 * src/conflicts.c: Return a string.
102 * src/system.h (obstack_grow_string): Rename as...
103 (obstack_sgrow): this. Be ready to work with non literals.
104 (obstack_fgrow4): New.
106 2000-12-20 Akim Demaille <akim@epita.fr>
108 * src/files.c (open_files): Fix the computation of short_base_name
109 in the case of `-o foo.tab.c'.
111 2000-12-20 Akim Demaille <akim@epita.fr>
113 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
114 (copy_dollar): Now that everything uses obstacks, get rid of the
117 2000-12-20 Akim Demaille <akim@epita.fr>
119 * src/files.c (open_files): Actually the `.output' file is based
120 on the short_base_name, not base_name.
121 * tests/suite.at (Checking output file names): Adjust.
123 2000-12-20 Akim Demaille <akim@epita.fr>
125 * src/bison.s1: Remove, we now use directly...
126 * src/bison.simple: this.
127 * src/Makefile.am: Use pkgdata instead of data.
129 2000-12-20 Akim Demaille <akim@epita.fr>
131 * src/files.c (guard_obstack): New.
132 (open_files): Initialize it.
133 (output_files): Dump it...
134 * src/files.h: Export it.
135 * src/reader.c (copy_guard): Use it.
137 2000-12-19 Akim Demaille <akim@epita.fr>
139 * src/files.c (outfile, defsfile, actfile): Removed as global
141 (open_files): Don't compute them.
142 (output_files): Adjust.
143 (base_name, short_base_name): Be global.
146 2000-12-19 Akim Demaille <akim@epita.fr>
148 * src/files.c (strsuffix): New.
149 (stringappend): Be just like strcat but allocate.
150 (base_names): Eve out from open_files.
151 Try to simplify the rather hairy computation of base_name and
153 (open_files): Use it.
154 * tests/suite.at (Checking output file names): New test.
156 2000-12-19 Akim Demaille <akim@epita.fr>
158 * src/system.h (obstack_grow_literal_string): Rename as...
159 (obstack_grow_string): this.
160 * src/output.c (output_parser): Recognize `%% actions' instead of
162 * src/bison.s1: s/$/%% actions/.
163 * src/bison.hairy: Likewise.
165 2000-12-19 Akim Demaille <akim@epita.fr>
167 * src/output.c (output_parser): Compute the `#line' lines when
169 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
170 Suggested by Hans Aberg.
172 2000-12-19 Akim Demaille <akim@epita.fr>
174 Let the handling of the skeleton files be local to the procedures
177 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
179 (fparser, open_extra_files): Remove.
180 (open_files, output_files): Don't take care of fparser.
181 * src/files.h: Adjust.
182 * src/output.c (output_parser): Open and close the file to the
184 * src/reader.c (read_declarations): When %semantic_parser, open
187 2000-12-19 Akim Demaille <akim@epita.fr>
189 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
190 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
192 2000-12-19 Akim Demaille <akim@epita.fr>
194 * src/files.c (open_files): Yipee! We no longer need all the code
195 looking for `/tmp' since we have no tmp file.
197 2000-12-19 Akim Demaille <akim@epita.fr>
199 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
201 * src/files.c (open_files): Less dependency on MSDOS etc.
203 2000-12-14 Akim Demaille <akim@epita.fr>
205 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
206 Provide a default definition.
207 Use it when executing the default @ action.
208 * src/reader.c (reader_output_yylsp): No longer include
209 `timestamp' and `text' in the default YYLTYPE.
211 2000-12-12 Akim Demaille <akim@epita.fr>
213 * src/reader.c (copy_definition, parse_union_decl, copy_action)
214 (copy_guard): Quote the file names.
215 Reported by Laurent Mascherpa.
217 2000-12-12 Akim Demaille <akim@epita.fr>
219 * src/output.c (output_headers, output_program, output): Be sure
220 to escape special characters when outputting filenames.
221 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
222 (output_headers): Don't depend on them, Use ACTSTR.
224 2000-11-17 Akim Demaille <akim@epita.fr>
226 * lib/obstack.h: Formatting changes.
227 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
228 prevents type checking.
229 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
230 cast the value to (void *): assigning a `foo *' to a `void *'
232 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
233 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
236 2000-11-17 Akim Demaille <akim@epita.fr>
238 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
240 (suite.m4, regression.m4, calc.m4): these.
241 * tests/atgeneral.m4: Update from CVS Autoconf.
243 2000-11-17 Akim Demaille <akim@epita.fr>
245 * tests/regression.m4 (%union and --defines): New test,
246 demonstrating a current bug in the obstack implementation.
248 2000-11-17 Akim Demaille <akim@epita.fr>
250 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
252 Use them to declare the variables which are global or local to
255 2000-11-17 Akim Demaille <akim@epita.fr>
257 * acconfig.h: Remove, no longer used.
259 2000-11-07 Akim Demaille <akim@epita.fr>
261 * src: s/Copyright (C)/Copyright/g.
263 2000-11-07 Akim Demaille <akim@epita.fr>
265 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
267 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
269 2000-11-07 Akim Demaille <akim@epita.fr>
271 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
272 Merge in a single CPP if/else.
274 2000-11-07 Akim Demaille <akim@epita.fr>
276 * src/output.c (output): Remove useless variables.
277 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
278 argument `data' for consistency with the prototypes.
280 (obstack_copy, obstack_copy0): Rename the second argument as
281 `address' for consistency. Qualify it `const'.
282 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
283 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
284 `const' their input argument (`data' or `address').
285 Adjust the corresponding macros to include `const' in casts.
287 2000-11-03 Akim Demaille <akim@epita.fr>
289 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
290 s/PFILE1/BISON_HAIRY/.
293 2000-11-03 Akim Demaille <akim@epita.fr>
295 For some reason, this was not applied.
297 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
298 `unlink': it's no longer used.
300 2000-11-03 Akim Demaille <akim@epita.fr>
302 * src/files.c (skeleton_find): New function, eved out of...
303 (open_files, open_extra_files): here.
305 2000-11-03 Akim Demaille <akim@epita.fr>
309 * src/files.c (obstack_save): New function.
311 (output_files): this.
313 * src/main.c (main): Don't use `atexit' to register `done', since
314 it no longer has to remove tmp files, just call `output_files'
315 when there are no errors.
317 2000-11-02 Akim Demaille <akim@epita.fr>
319 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
320 `unlink': it's no longer used.
321 * src/files.h: Formatting changes.
323 2000-11-02 Akim Demaille <akim@epita.fr>
325 Remove the last uses of mktemp and unlink/delete.
327 * src/files.c (fdefines, ftable): Removed.
328 (defines_ostack, table_obstack): New.
329 Adjust dependencies of the former into uses of the latter.
330 * src/output.c (output_short_or_char_table, output_short_table):
331 Convert to using obstacks.
332 * src/reader.c (copy_comment2): Accept one FILE * and two
334 (output_token_defines, reader_output_yylsp): Use obstacks.
335 * src/system.h (obstack_fgrow3): New.
337 2000-11-01 Akim Demaille <akim@epita.fr>
339 Change each use of `fattrs' into a use of `attrs_obstack'.
341 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
342 * src/files.c (fattrs): Remove.
343 (attrs_obstack): New.
344 Adjust all dependencies.
345 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
347 2000-11-01 Akim Demaille <akim@epita.fr>
350 Change each use of `faction' into a use of `action_obstack'.
352 * lib/obstack.h, lib/obstack.c: New files.
353 * src/files.c (faction): Remove.
354 (action_obstack): New.
355 Adjust all dependencies.
357 2000-10-20 Akim Demaille <akim@epita.fr>
359 * lib/quote.h (PARAMS): New macro. Use it.
361 2000-10-16 Akim Demaille <akim@epita.fr>
363 * src/output.c (output_short_or_char_table): New function.
364 (output_short_table, output_token_translations): Use it.
365 (goto_actions): Use output_short_table.
367 2000-10-16 Akim Demaille <akim@epita.fr>
369 * src/symtab.c (bucket_new): New function.
372 * src/output.c (output_short_table): New argument to display the
373 comment associated with the table.
375 (output_gram): Use it.
376 (output_rule_data): Nicer output layout for YYTNAME.
378 2000-10-16 Akim Demaille <akim@epita.fr>
380 * src/lex.c (read_typename): New function.
382 * src/reader.c (copy_dollar): Likewise.
384 2000-10-16 Akim Demaille <akim@epita.fr>
386 * src/reader.c (copy_comment2): Expect the input stream to be on
387 the `/' which is suspected to open a comment, instead of being
388 called after `//' or `/*' was read.
389 (copy_comment, copy_definition, parse_union_decl, copy_action)
390 (copy_guard): Adjust.
392 2000-10-16 Akim Demaille <akim@epita.fr>
394 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
395 `read_signed_integer'.
397 2000-10-16 Akim Demaille <akim@epita.fr>
399 * src/reader.c (copy_dollar): New function.
400 (copy_guard, copy_action): Use it.
402 2000-10-16 Akim Demaille <akim@epita.fr>
404 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
405 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
406 New files, from Fileutils 4.0.27.
407 * src/main.c (printable_version): Remove.
408 * src/lex.c, src/reader.c: Use `quote'.
410 2000-10-04 Akim Demaille <akim@epita.fr>
412 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
414 2000-10-04 Akim Demaille <akim@epita.fr>
416 * doc/bison.texinfo: Various typos spotted by Neil Booth.
418 2000-10-04 Akim Demaille <akim@epita.fr>
420 When a literal string is used to define two different tokens,
421 `bison -v' segfaults.
422 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
424 * tests/regression.m4: New file.
425 Include the core of the sample provided by Piotr Gackiewicz.
426 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
429 2000-10-04 Akim Demaille <akim@epita.fr>
431 * src/reader.c (parse_expect_decl): Keep `count' within the size
435 2000-10-02 Paul Eggert <eggert@twinsun.com>
437 * bison.s1 (yyparse): Assign the default value
438 unconditionally, to avoid a GCC warning and make the parser a
441 2000-10-02 Akim Demaille <akim@epita.fr>
443 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
446 2000-10-02 Akim Demaille <akim@epita.fr>
448 * src/derives.c, src/print.c, src/reduce.c: To ease the
449 translation, move some `\n' out of the translated strings.
451 2000-10-02 Akim Demaille <akim@epita.fr>
453 The location tracking mechanism is precious for parse error
454 messages. Nevertheless, it is enabled only when `@n' is used in
455 the grammar, which is a different issue (you can use it in error
456 message, but not in the grammar per se). Therefore, there should
457 be another means to enable it.
459 * src/getargs.c (getargs): Support `--locations'.
461 * src/getargs.h (locationsflag): Export it.
462 * src/lex.c (percent_table): Support `%locations'.
463 * src/reader.c (yylsp_needed): Remove this variable, now replaced
464 with `locationsflag'.
465 * doc/bison.texinfo: Document `--locations' and `%locations'.
467 * tests/calc.m4: Test it.
469 For regularity of the names, replace each
470 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
471 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
472 In addition replace each `flag' with `_flag'.
474 2000-10-02 Akim Demaille <akim@epita.fr>
476 Also test parse error messages, including with YYERROR_VERBOSE.
478 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
480 Use it to check the computations.
481 Use it to check `nonassoc' is honored.
482 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
484 (_AT_CHECK_CALC): Adjust to this option.
485 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
487 2000-10-02 Akim Demaille <akim@epita.fr>
489 Test also `--verbose', `--defines' and `--name-prefix'. Testing
490 the latter demonstrates a flaw in the handling of non debugging
491 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
492 was used in order to simplify:
508 unfortunately this leads to a CPP conflict when
509 `--name-prefix=foo' is used since it produces `#define yydebug
512 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
513 (YYDPRINTF): New macro.
515 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
517 Also test `--verbose', `--defines' and `--name-prefix'.
519 2000-10-02 Akim Demaille <akim@epita.fr>
521 Improve the readability of the produced parsers.
523 * src/bison.s1: Formatting changes.
524 Improve the comment related to the `$' mark.
525 (yydefault): Don't fall through to `yyresume': `goto' there.
526 * src/output.c (output_parser): When the `$' is met, skip the end
528 New variable, `number_of_dollar_signs', to check there's exactly
529 one `$' in the parser skeleton.
531 2000-10-02 Akim Demaille <akim@epita.fr>
533 * lib/xstrdup.c: New file, from the fileutils.
534 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
535 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
536 instead of strlen + xmalloc + strcpy.
537 * src/symtab.c (copys): Remove, use xstrdup instead.
539 2000-10-02 Akim Demaille <akim@epita.fr>
541 * src/gram.h (associativity): New enum type which replaces the
542 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
543 `right_assoc', `left_assoc' and `non_assoc'.
544 Adjust all dependencies.
545 * src/reader.c: Formatting changes.
546 (LTYPESTR): Don't define it, use it as a literal in
547 `reader_output_yylsp'.
548 * src/symtab.h (symbol_class): New enum type which replaces the
549 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
550 `sunknown', `stoken and `snterm'.
552 2000-10-02 Akim Demaille <akim@epita.fr>
554 * src/getargs.c (fixed_outfiles): Rename as...
555 (yaccflag): for consistency and accuracy.
558 2000-10-02 Akim Demaille <akim@epita.fr>
560 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
561 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
562 difficult and introduced a lot of core dump. It turns out that
563 Bison used an implementation of `xmalloc' based on `calloc', and
564 at various places it does depend upon the initialization to 0. I
565 have not tried to isolate the pertinent places, and all the former
566 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
567 someone should address this issue.
569 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
570 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
573 * src/warshall.h: New file.
576 2000-10-02 Akim Demaille <akim@epita.fr>
578 Various anti-`extern in *.c' changes.
580 * src/system.h: Include `assert.h'.
582 2000-10-02 Akim Demaille <akim@epita.fr>
584 * src/state.h (nstates, final_state, first_state, first_shift)
585 (first_reduction): Move their exportation from here...
586 * src/LR0.h: to here.
588 * src/getargs.c (statisticsflag): New variable.
589 Add support for `--statistics'.
592 Remove a lot of now useless `extern' statements in most files.
594 2000-10-02 Akim Demaille <akim@epita.fr>
596 * src/LR0.h: New file.
599 2000-10-02 Akim Demaille <akim@epita.fr>
601 * src/print.h: New file.
603 * src/print.c: Formatting and ordering changes.
604 (verbose, terse): Replace with...
605 (print_results): this new function.
608 2000-10-02 Akim Demaille <akim@epita.fr>
610 * src/conflicts.c (conflict_report): New function.
611 (conflict_log, verbose_conflict_log): Replace with...
612 (print_conflicts): this function.
614 * src/conflicts.h: New file.
615 Propagate its inclusion.
617 2000-10-02 Akim Demaille <akim@epita.fr>
619 * src/nullable.h: New file.
620 Propagate its inclusion.
621 * src/nullable.c: Formatting changes.
623 2000-10-02 Akim Demaille <akim@epita.fr>
625 * src/reduce.h: New file.
626 Propagate its inclusion.
627 * src/reduce.c: Topological sort and other formatting changes.
628 (bool, TRUE, FALSE): Move their definition to...
629 * src/system.h: here.
631 2000-10-02 Akim Demaille <akim@epita.fr>
633 * src/files.c: Formatting changes.
634 (tryopen, tryclose, openfiles): Rename as...
635 (xfopen, xfclose, open_files): this.
636 (stringappend): static.
637 * src/files.h: Complete the list of exported symbols.
640 2000-10-02 Akim Demaille <akim@epita.fr>
642 * src/reader.h: New file.
643 Propagate its use instead of tedious list of `extern' and
645 * src/reader.c: Formatting changes, topological sort,
648 2000-10-02 Akim Demaille <akim@epita.fr>
650 * src/lex.h: Prototype `lex.c' exported functions.
651 * src/reader.c: Adjust.
652 * src/lex.c: Formatting changes.
653 (safegetc): Rename as...
656 2000-10-02 Akim Demaille <akim@epita.fr>
658 * src/lalr.h: New file.
659 Propagate its inclusion instead of prototypes and `extern'.
660 * src/lalr.c: Formatting changes, topological sorting etc.
662 2000-10-02 Akim Demaille <akim@epita.fr>
664 * src/output.c (token_actions): Introduce a temporary array,
665 YYDEFACT, that makes it possible for this function to use
668 2000-10-02 Akim Demaille <akim@epita.fr>
670 `user_toknums' is output as a `short[]' in `output.c', while it is
671 defined as a `int[]' in `reader.c'. For consistency with the
672 other output tables, `user_toknums' is now defined as a table of
675 * src/reader.c (user_toknums): Be a short table instead of an int
679 Factor the short table outputs.
681 * src/output.c (output_short_table): New function.
682 * src/output.c (output_gram, output_stos, output_rule_data)
683 (output_base, output_table, output_check): Use it.
685 2000-10-02 Akim Demaille <akim@epita.fr>
687 * src/output.c (output): Topological sort of the functions, in
688 order to get rid of the `static' prototypes.
689 No longer use `register'.
690 * src/output.h: New file.
691 Propagate its inclusion in files explicitly prototyping functions
694 2000-09-21 Akim Demaille <akim@epita.fr>
696 * src/atgeneral.m4: Update from Autoconf.
698 2000-09-21 Akim Demaille <akim@epita.fr>
700 * src/closure.h: New file.
701 * src/closure.c: Formatting changes, topological sort over the
702 functions, use of closure.h.
703 (initialize_closure, finalize_closure): Rename as...
704 (new_closure, free_closure): these. Adjust dependencies.
705 * src/LR0.c: Formatting changes, topological sort, use of
707 (initialize_states): Rename as...
709 * src/Makefile.am (noinst_HEADERS): Adjust.
711 2000-09-20 Akim Demaille <akim@epita.fr>
713 * src/acconfig.h: Don't protect config.h against multiple
716 * src/system.h: Define PARAMS.
717 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
718 purpose of config.h. system.h must not try to fix wrong
719 definitions in config.h.
721 2000-09-20 Akim Demaille <akim@epita.fr>
723 * src/derives.h: New file.
724 * src/main.c, src/derives.h: Use it.
726 * src/Makefile.am (noinst_HEADERS): Adjust.
728 2000-09-20 Akim Demaille <akim@epita.fr>
730 * tests/atgeneral.m4: Update from Autoconf.
731 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
732 (AT_CHECK_CALC): New macros.
733 Use these macros to test bison with options `', `--raw',
734 `--debug', `--yacc', `--yacc --debug'.
736 2000-09-19 Akim Demaille <akim@epita.fr>
738 * src/output.c: Formatting changes.
739 * src/machine.h: Remove, leaving its contents in...
740 * src/system.h: here.
742 Adjust all dependencies on stdio.h and machine.h.
743 * src/getargs.h: New file.
744 Let all `extern' declarations about getargs.c be replaced with
745 inclusion of `getargs.h'.
746 * src/Makefile.am (noinst_HEADERS): Adjust.
748 * tests/calc.m4 (yyin): Be initialized in main, not on the global
750 (yyerror): Returns void, not int.
751 * doc/bison.texinfo: Formatting changes.
753 2000-09-19 Akim Demaille <akim@epita.fr>
755 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
758 2000-09-18 Akim Demaille <akim@epita.fr>
760 * configure.in: Append WARNING_CFLAGS to CFLAGS.
761 * src/Makefile.am (INCLUDES): Don't.
762 Be ready to fetch headers in lib/.
764 2000-09-18 Akim Demaille <akim@epita.fr>
766 * doc/bison.texinfo: Update the copyright.
767 ANSIfy and GNUify the examples.
770 2000-09-18 Akim Demaille <akim@epita.fr>
772 First set of tests: use the `calc' example from the documentation.
774 * src/bison.s1 (yyparse): Condition the code using `yytname' which
775 is defined only when YYDEBUG is.
776 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
777 * src/files.c (tryopen, tryclose): Formatting changes.
778 Move to the top and be static.
779 * src/reader.c (read_signed_integer): Likewise.
780 * tests/calc.m4: New file.
781 * Makefile.am, suite.m4: Adjust.
782 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
784 2000-09-18 Akim Demaille <akim@epita.fr>
786 Add support for an Autotest test suite for Bison.
788 * m4/m4.m4, m4/atconfig.m4: New files.
789 * m4/Makefile.am (EXTRA_DIST): Adjust.
790 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
792 * src/getargs.c: Display a more standard --version message.
793 * src/reader.c (reader): Formatting changes.
794 No longer depend upon VERSION_STRING.
795 * configure.in: No longer use `dnl'.
796 Set up the test suite and the new directory `tests/.
797 (VERSION_STRING): Remove.
799 2000-04-14 Akim Demaille <akim@epita.fr>
801 * src/reader.c (copy_comment2): New function, same as former
802 `copy_comment', but outputs into two FILE *.
803 (copy_comment): Use it.
804 (parse_union_decl): Use it.
805 (get_type, parse_start_decl): Use the same `invalid' message.
806 (parse_start_decl, parse_union_decl): Use the same `multiple'
808 (parse_union_decl, copy_guard, copy_action): Use the same
810 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
812 2000-03-31 Akim Demaille <akim@epita.fr>
814 * src/files.c (tryopen, tryclose): Move to the top.
817 2000-03-31 Akim Demaille <akim@epita.fr>
819 * src/main.c (main): Don't call `done', exit does it.
821 2000-03-31 Akim Demaille <akim@epita.fr>
823 * allocate.c: s/return (foo)/return foo/.
826 * output.c: Likewise.
827 * reader.c: Likewise.
828 * symtab.c: Likewise.
829 * vmsgetargs.c: Likewise.
831 2000-03-31 Akim Demaille <akim@epita.fr>
833 Clean up the error reporting functions.
835 * src/report.c: New file.
836 * src/report.h: Likewise.
837 * src/Makefile.am: Adjust.
838 * m4/error.m4: New file.
839 * m4/Makefile.am: Adjust.
840 * configure.in (jm_PREREQ_ERROR): Call it.
841 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
843 (fatal, fatals): Remove. All callers use complain.c::fatal.
844 (warn, warni, warns, warnss, warnss): Remove. All callers use
845 complain.c::complain.
846 (toomany): Remove, use fatal instead.
847 * src/files.c (done): No argument, use complain_message_count.
848 * src/main.c (main): Register `done' to `atexit'.
850 * src/getargs.c (usage): More `fputs', less `fprintf'.
852 2000-03-28 Akim Demaille <akim@epita.fr>
854 * lib/: New directory.
855 * Makefile.am (SUBDIRS): Adjust.
856 * configure.in: Adjust.
857 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
859 * src/alloca.c: Moved to lib/.
860 * src/getopt.c: Likewise.
861 * src/getopt1.c: Likewise.
862 * src/getopt.h: Likewise.
863 * src/ansi2knr.c: Likewise.
864 * src/ansi2knr.1: Likewise.
865 * src/Makefile.am: Adjust.
866 * lib/Makefile.am: New file.
868 2000-03-28 Akim Demaille <akim@epita.fr>
870 * src/getargs.c (usage): Refresh the help message.
872 2000-03-17 Akim Demaille <akim@epita.fr>
874 * src/getopt1.c: Updated from textutils 2.0e
875 * src/getopt.c: Likewise.
876 * src/getopt.h: Likewise.
878 2000-03-17 Akim Demaille <akim@epita.fr>
880 * src/Makefile.am (bison.simple): Fix the awk program: quote only
881 the file name, not the whole `#line LINE FILE'.
883 2000-03-17 Akim Demaille <akim@epita.fr>
885 On syntax errors, report the token on which we choked.
887 * src/bison.s1 (yyparse): In the label yyerrlab, when
888 YYERROR_VERBOSE, add yychar in msg.
890 2000-03-17 Akim Demaille <akim@epita.fr>
892 * src/reader.c (copy_at): New function.
893 (copy_guard): Use it.
894 (copy_action): Use it.
896 2000-03-17 Akim Demaille <akim@epita.fr>
898 Be kind to translators, save some useless translations.
900 * src/main.c (banner): New function.
901 (fatal_banner): Use it.
902 (warn_banner): Use it.
904 2000-03-17 Akim Demaille <akim@epita.fr>
906 * src/reader.c (copy_definition): Use copy_string and
907 copy_comment. Removed now unused `match', `ended',
909 (copy_comment, copy_string): Moved, to be visible from
912 2000-03-17 Akim Demaille <akim@epita.fr>
914 * src/reader.c (copy_string): Declare `static inline'. No
915 problems with inline, since it is checked by configure.
916 (copy_comment): Likewise.
918 2000-03-17 Akim Demaille <akim@epita.fr>
920 * src/reader.c (packsymbols): Formatting changes.
922 2000-03-17 Akim Demaille <akim@epita.fr>
924 * src/reader.c (copy_comment): New function, factored out from:
925 (copy_action): Use it. Removed now unused `match', `ended',
927 (copy_guard): Likewise.
929 2000-03-17 Akim Demaille <akim@epita.fr>
931 * src/reader.c (copy_string): New function, factored out from:
932 (copy_action): Use it.
933 (copy_guard): Likewise.
935 2000-03-17 Akim Demaille <akim@epita.fr>
937 Change the handling of @s so that they behave exactly like $s.
938 There is now a pseudo variable @$ (readble and writable), location
939 of the lhs of the rule (by default ranging from the location of
940 the first symbol of the rhs, to the location of the last symbol,
941 or, if the rhs is empty, YYLLOC).
943 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
945 (yyparse): When providing a default semantic action, provide a
946 default location action.
947 (after the $): No longer change `*YYLSP', just stack YYLOC the
948 same way you stack YYVAL.
949 * src/reader.c (read_declarations): Use warns.
950 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
951 (copy_action, case '@'): Likewise.
952 Use a standard error message, to save useless work from
955 2000-03-17 Akim Demaille <akim@epita.fr>
957 * src/bison.s1: Formatting and cosmetics changes.
958 * src/reader.c: Likewise.
959 Update the Copyright notice.
961 2000-03-17 Akim Demaille <akim@epita.fr>
963 * src/bison.s1 (#line): All set to `#line' only, since the
964 Makefile now handles them.
966 2000-03-16 Akim Demaille <akim@epita.fr>
968 * src/output.c (output_rule_data): Output the documentation of
970 (Copyright notice): Update.
973 2000-03-16 Akim Demaille <akim@epita.fr>
975 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
976 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
977 One `#if YYDEBUG' remains, since it uses variables which are
978 defined only if `YYDEBUG != 0'.
980 2000-03-16 Akim Demaille <akim@epita.fr>
982 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
983 and related variables so that the similarities are highlighted.
985 2000-03-16 Akim Demaille <akim@epita.fr>
987 * src/bison.s1: Properly indent CPP directives.
989 2000-03-16 Akim Demaille <akim@epita.fr>
991 * src/bison.s1: Properly indent the `alloca' CPP section.
993 2000-03-16 Akim Demaille <akim@epita.fr>
995 Do not hard code values of directories in `configure.in'.
996 Update the `configure' tool chain.
998 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1000 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1001 (AC_OUTPUT): Add m4/Makefile.
1002 Bump to bison 1.28a, 1.29 has never been released.
1003 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1004 handled via src/Makefile.am.
1005 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1006 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1008 * Makefile.am (SUBDIRS): Add m4.
1009 (ACLOCAL_AM_FLAGS): New variable.
1010 (AUTOMAKE_OPTIONS): Add check-news.
1011 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1012 the proper line number and file name.
1013 (DEFS): Propagate the location of bison library files and of the
1015 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1017 * acinclude.m4: Remove, replaced by the directory m4.
1018 * m4/Makefile.am (EXTRA_DIST): New variable.
1019 * m4/gettext.m4: New file, from the fileutils.
1020 * m4/lcmessage.m4: Likewise
1021 * m4/progtest.m4: Likewise.
1022 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1024 2000-03-10 Akim Demaille <akim@epita.fr>
1027 Formatting changes of various comments.
1028 Respect the GNU coding standards at various places.
1029 Don't use `_()' when no translation is needed.
1031 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1034 OS/2 honors TMPDIR environment variable.
1036 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1038 * doc/bison.texinfo: Tweaked spelling and grammar.
1040 Removed reference to price of printed copy.
1041 Mention BISON_SIMPLE and BISON_HAIRY.
1043 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1045 * configure.in, NEWS:
1046 Bison 1.29 released.
1048 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1050 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1051 Added reference card.
1053 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1055 * po/ru.po: Added Russian translation.
1057 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1059 * configure.in: Added Russian translation.
1061 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1063 * configure.in, NEWS, README:
1064 Released version 1.28.
1066 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1069 Squashed redefinition warning on some systems.
1071 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1072 Have configure build version string instead of relying on ANSI string
1075 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1077 * po/POTFILES.in: Got rid of version.c.
1079 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1081 * acconfig.h, configure.in:
1082 Have configure build version string instead of relying on ANSI string
1085 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1088 Dropped mention of `+' for long-named options.
1090 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1092 * src/files.c: Added <unistd.h> for unlink().
1094 * src/Makefile.am, src/system.h:
1097 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1099 * README: Added a FAQ list.
1101 * configure.in, acconfig.h:
1104 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1106 * doc/FAQ, doc/Makefile.am:
1109 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1111 * src/alloc.h, src/symtab.h, src/version.c:
1112 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1114 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1116 * src/.cvsignore, src/Makefile.am:
1117 Reorganized: sources in `src', documentation in `doc'.
1119 * src/lex.c (literalchar):
1120 fixed the code for escaping double quotes (thanks
1123 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1125 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1126 Adjusted paths to reflect directory reorganization.
1128 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1130 * doc/.cvsignore, doc/Makefile.am:
1131 Reorganized: sources in `src', documentation in `doc'.
1133 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1136 Updated AC_INIT file to reflect directory reorganization.
1138 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1139 Reorganized: sources in `src', documentation in `doc'.
1141 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1144 Don't declare calloc() and realloc() if not necessary.
1146 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1148 * configure.in, acconfig.h, acinclude.m4:
1149 Don't declare calloc() and realloc() if not necessary.
1151 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1153 * po/.cvsignore: Added i18n support.
1155 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1157 * acconfig.h, configure.in, Makefile.am:
1160 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1162 * src/bison.s1: Fixed #line numbers.
1164 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1166 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1167 Added PO files from Translation Project.
1169 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1172 Added support for non-ANSI compilers (ansi2knr).
1174 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1176 * configure.in: Bumped version number to 1.27.
1179 Added `bison.simple' to list of files removed by `make distclean'.
1181 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1183 * src/files.c, src/files.h:
1184 Defined locations of parser files in config.h instead of Makefile.
1186 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1188 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1189 Defined locations of parser files in config.h instead of Makefile.
1191 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1194 Removed inappropriate use of $< macro.
1196 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1198 * po/Makefile.in.in, po/POTFILES.in:
1199 Add `po' directory skeleton.
1201 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1203 * README: Document help-bison list.
1205 * configure.in: Add check for mkstemp().
1207 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1209 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1210 Hush a few compiler warnings.
1213 Add tryclose(), which verifies that fclose was successful.
1214 Hush a couple of compiler warnings.
1216 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1218 * Makefile.am, OChangeLog:
1219 ChangeLog is now automatically generated. Include the old version as
1222 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1224 * 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:
1227 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1229 * doc/bison.texinfo: Fix formatting glitch.
1231 * doc/bison.texinfo: Update FSF address.
1233 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1235 * acconfig.h: Update FSF address.
1237 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1240 Don't define PACKAGE here, since config.h defines it.
1242 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1244 * src/reader.c: Update copyright date.
1247 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1248 favor of output directly to stderr (avoids buffer overruns).
1250 * src/reader.c: Some checks for premature EOF.
1252 * 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:
1253 Use prototypes if the compiler understands them.
1255 * src/files.c: Honor TMPDIR on Unix hosts.
1256 Use prototypes if the compiler understands them.
1259 Fix a couple of buffer overrun bugs.
1260 Use prototypes if the compiler understands them.
1262 * src/system.h: Include unistd.h and ctype.h.
1263 Use #ifdef instead of #if for NLS symbols.
1265 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1267 * doc/bison.texinfo:
1268 Delete comment "consider using @set for edition number, etc..." since
1269 we now are doing so.
1271 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1274 Use prototypes if the compiler understands them.
1276 * NEWS: Document 1.26 highlights.
1278 * Makefile.am: Require Automake 1.3 or later.
1281 Use prototypes if the compiler understands them.
1283 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1286 Use VERSION symbol from automake for version number.
1288 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1290 * acconfig.h, configure.in, version.cin:
1291 Use VERSION symbol from automake for version number.
1293 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1296 Distribute original version of simple parser (bison.s1), not built
1297 version (bison.simple).
1299 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1301 * doc/bison.texinfo: Add info dir entry.
1303 * doc/bison.texinfo:
1304 Let automake put version number into documentation.
1306 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1308 * src/bison.cld, src/build.com, src/vmshlp.mar:
1309 Add non-RCS files from /gd/gnu/bison.
1311 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1314 Document the BISON_HAIRY and BISON_SIMPLE variables.
1316 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1318 * src/version.c: Build version.c automatically.
1321 Fix token numbering (used to start at 258, not 257).
1323 * src/system.h: Include config.h.
1325 * src/getargs.c: Update bug report address.
1327 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1328 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1330 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1333 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1335 * configure.in, version.cin:
1336 Build version.c automatically.
1338 * AUTHORS: Add AUTHORS file.
1340 * README: Update bug report address.
1343 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1345 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1348 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1350 * doc/bison.texinfo: Clean up some formatting.
1352 1998-05-05 Richard Stallman <rms@gnu.org>
1354 * doc/bison.texinfo:
1355 Explain better why to make a pure parser.
1357 1998-01-05 Richard Stallman <rms@gnu.org>
1359 * src/files.c (openfiles):
1360 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1361 find a temporary directory, if possible. Do not unlink files while
1364 1997-08-25 Richard Stallman <rms@gnu.org>
1366 * src/reader.c (stack_offset;):
1367 Change some warni to warns.
1369 * src/lex.c (literalchar): Use warns, not warni.
1371 1997-06-28 Richard Stallman <rms@gnu.org>
1373 * src/bison.s1: Add a Bison version comment.
1375 * src/main.c (fatal, warn, berror):
1378 1997-06-28 Richard Stallman <rms@gnu.org>
1380 * Makefile.in (bison_version): New variable.
1381 (dist): Use that variable.
1382 (bison.s1): Substitute the Bison version into bison.simple.
1384 * bison.simple: Add a Bison version comment.
1386 1997-06-18 Richard Stallman <rms@gnu.org>
1388 * src/main.c (fatal, warn, berror):
1389 Make error messages standard.
1390 (toomany): Improve error message text.
1392 * 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:
1393 new.h renamed to alloc.h.
1395 1997-06-18 Richard Stallman <rms@gnu.org>
1397 * Makefile.in: new.h renamed to alloc.h.
1399 1997-05-24 Richard Stallman <rms@gnu.org>
1401 * src/lex.c (literalchar):
1402 Fix the code for escaping \, " and '.
1404 (lex): Avoid trouble when there are many chars
1405 to discard in a char literal with just several chars in it.
1407 1997-05-17 Richard Stallman <rms@gnu.org>
1410 Use malloc, if using alloca is troublesome.
1411 (YYSTACK_USE_ALLOCA): New flag macro.
1412 Define it for some systems and compilers.
1413 (YYSTACK_ALLOC): New macro.
1414 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1415 If it was malloc'd, free it.
1417 1997-05-17 Richard Stallman <rms@gnu.org>
1420 Use malloc, if using alloca is troublesome.
1421 (YYSTACK_USE_ALLOCA): New flag macro.
1422 Define it for some systems and compilers.
1423 (YYSTACK_ALLOC): New macro.
1424 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1425 If it was malloc'd, free it.
1427 1997-04-23 Richard Stallman <rms@gnu.org>
1430 (alloca) [__hpux]: Always define as __builtin_alloca.
1432 1997-04-23 Richard Stallman <rms@gnu.org>
1435 (alloca) [__hpux]: Always define as __builtin_alloca.
1437 1997-04-22 Richard Stallman <rms@gnu.org>
1440 [__hpux]: Include alloca.h (right for HPUX 10)
1441 instead of declaring alloca (right for HPUX 9).
1443 * src/bison.s1 (__yy_memcpy):
1444 Declare arg `count' as unsigned int.
1445 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1447 1997-04-22 Richard Stallman <rms@gnu.org>
1450 [__hpux]: Include alloca.h (right for HPUX 10)
1451 instead of declaring alloca (right for HPUX 9).
1453 * bison.simple (__yy_memcpy):
1454 Declare arg `count' as unsigned int.
1455 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1457 1997-01-03 Richard Stallman <rms@gnu.org>
1459 * src/allocate.c: [__STDC__ or _MSC_VER]:
1460 Declare calloc and realloc to return void *.
1462 1997-01-02 Richard Stallman <rms@gnu.org>
1465 [_MSC_VER]: Include stdlib.h and process.h.
1466 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1468 * src/main.c (main): Return FAILURE as a value.
1469 (printable_version): Declare arg as int, not char.
1471 1997-01-02 Richard Stallman <rms@gnu.org>
1473 * Makefile.in (dist):
1474 Explicitly check for symlinks, and copy them.
1476 1996-12-19 Richard Stallman <rms@gnu.org>
1479 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1481 1996-12-18 Paul Eggert <eggert@gnu.org>
1483 * src/bison.s1 (yyparse):
1484 If __GNUC__ and YYPARSE_PARAM are both defined,
1485 declare yyparse to have a void * argument.
1487 1996-12-18 Paul Eggert <eggert@gnu.org>
1489 * bison.simple (yyparse):
1490 If __GNUC__ and YYPARSE_PARAM are both defined,
1491 declare yyparse to have a void * argument.
1493 1996-12-17 Richard Stallman <rms@gnu.org>
1495 * src/reduce.c (nbits): Add some casts.
1497 1996-08-12 Richard Stallman <rms@gnu.org>
1499 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1501 1996-08-12 Richard Stallman <rms@gnu.org>
1503 * bison.simple: Test _MSDOS as well as _MSDOS_.
1505 1996-07-31 Richard Stallman <rms@gnu.org>
1508 [__sun && __i386]: Include alloca.h.
1510 1996-07-31 Richard Stallman <rms@gnu.org>
1513 [__sun && __i386]: Include alloca.h.
1515 1996-07-30 Richard Stallman <rms@gnu.org>
1517 * src/bison.s1: Comment change.
1519 * src/bison.s1: Test _MSDOS_, not MSDOS.
1521 1996-07-30 Richard Stallman <rms@gnu.org>
1523 * bison.simple: Comment change.
1525 * bison.simple: Test _MSDOS_, not MSDOS.
1527 1996-06-01 Richard Stallman <rms@gnu.org>
1529 * 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:
1530 Insert `_' macro around many string constants.
1533 Insert `_' macro around many string constants.
1535 (main): Call setlocale, bindtextdomain and textdomain.
1537 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1538 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1539 [ENABLE_NLS]: Include libintl.h.
1540 [ENABLE_NLS] (gettext): Define.
1541 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1542 (N_, PACKAGE, LOCALEDIR): New macros.
1544 1996-06-01 Richard Stallman <rms@gnu.org>
1546 * POTFILES.in: New file.
1548 * Makefile.in (allocate.o):
1549 Define target explicitly.
1551 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1552 (LDFLAGS): Set to @LDFLAGS@.
1553 (configure): Run autoconf only if preceding `cd' succeeds.
1554 (bison.s1): Redirect output to temporary file then move the
1555 temporary to the target, rather than redirecting directly to bison.s1.
1556 (clean): Remove config.status and config.log.
1557 (distclean): Don't remove config.status here.
1559 1996-05-12 Richard Stallman <rms@gnu.org>
1562 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1564 1996-05-12 Richard Stallman <rms@gnu.org>
1567 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1569 1996-05-11 Richard Stallman <rms@gnu.org>
1571 * src/bison.s1 (__yy_memcpy):
1572 Really reorder the args, as was supposedly done on Feb 14 1995.
1573 (yyparse): Calls changed accordingly.
1575 1996-05-11 Richard Stallman <rms@gnu.org>
1577 * Makefile.in (dist): Don't use $(srcdir).
1579 * bison.simple (__yy_memcpy):
1580 Really reorder the args, as was supposedly done on Feb 14 1995.
1581 (yyparse): Calls changed accordingly.
1583 1996-01-27 Richard Stallman <rms@gnu.org>
1585 * src/output.c (output_rule_data):
1586 Test YYERROR_VERBOSE in the conditional
1587 around the definition of ttyname.
1589 1995-12-29 Richard Stallman <rms@gnu.org>
1592 Fix line numbers in #line commands.
1594 1995-12-29 Richard Stallman <rms@gnu.org>
1597 Fix line numbers in #line commands.
1599 1995-12-27 Richard Stallman <rms@gnu.org>
1601 * src/bison.s1 (YYPARSE_PARAM_DECL):
1602 In C++, make it always null.
1603 (YYPARSE_PARAM_ARG): New macro.
1604 (yyparse): Use YYPARSE_PARAM_ARG.
1606 1995-12-27 Richard Stallman <rms@gnu.org>
1608 * bison.simple (YYPARSE_PARAM_DECL):
1609 In C++, make it always null.
1610 (YYPARSE_PARAM_ARG): New macro.
1611 (yyparse): Use YYPARSE_PARAM_ARG.
1613 1995-11-29 Richard Stallman <rms@gnu.org>
1615 * doc/bison.texinfo:
1616 Describe literal string tokens, %raw, %no_lines, %token_table.
1618 1995-11-29 Daniel Hagerty <hag@gnu.org>
1620 * doc/bison.texinfo: Fixed update date
1622 1995-10-16 Richard Stallman <rms@gnu.org>
1624 * src/version.c: Version 1.25.
1626 1995-10-16 Richard Stallman <rms@gnu.org>
1628 * NEWS: *** empty log message ***
1630 1995-10-16 Richard Stallman <rms@gnu.org>
1632 * doc/bison.1, doc/bison.rnh:
1635 1995-10-15 Richard Stallman <rms@gnu.org>
1637 * src/vmsgetargs.c, src/getargs.c:
1638 Added -n, -k, and -raw switches.
1639 (noparserflag, toknumflag, rawtoknumflag): New variables.
1641 * src/symtab.h (SALIAS):
1642 New #define for adding aliases to %token.
1643 (struct bucket): Added `alias' field.
1645 * src/reduce.c (reduce_grammar):
1646 Revise error message.
1647 (print_notices): Remove final `.' from error message.
1649 * src/reader.c (reader_output_yylsp):
1651 (readgram): Use `#if 0' around code that accepted %command
1652 inside grammar rules: The documentation doesn't allow it,
1653 and it will fail since the %command processors scan for the next %.
1654 (parse_token_decl): Extended the %token
1655 declaration to allow a multi-character symbol as an alias.
1656 (parse_thong_decl): New function.
1657 (read_declarations): Added %thong declarations.
1658 (read_declarations): Handle NOOP to deal with allowing
1659 % declarations as another means to specify the flags.
1660 (readgram): Allow %prec prior to semantics embedded in a rule.
1661 (skip_to_char, read_declarations, copy_definition)
1662 (parse_token_decl, parse_start_decl, parse_type_decl)
1663 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1664 (get_type_name, copy_guard, copy_action, readgram)
1665 (get_type, packsymbols): Revised most error messages.
1666 Changed `fatal' to `warnxxx' to avoid aborting for error.
1667 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1668 (read_declarations): Improve the error message for
1669 an invalid character. Do not abort.
1670 (read_declarations, copy_guard, copy_action): Use
1671 printable_version to avoid unprintable characters in printed output.
1672 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1673 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1674 Allow the type of a non-terminal can be given
1675 more than once, as long as all specifications give the same type.
1678 (output_headers, output_trailers, output, output_gram)
1679 (output_rule_data): Implement noparserflag variable.
1680 Implement toknumflag variable.
1681 (output): Call reader_output_yylsp to output LTYPESTR.
1683 * src/main.c (main):
1684 If reader sees an error, don't process the grammar.
1685 (fatals): Updated to not use VARARGS1.
1686 (printable_version, int_to_string, warn, warni, warns, warnss)
1687 (warnsss): New error reporting functions. Avoid abort for error.
1690 Added THONG and NOOP for alias processing.
1691 Added SETOPT for the new code that allows setting options with %flags.
1694 Include getopt.h. Add some extern decls.
1695 (safegetc): New function to deal with EOF gracefully.
1696 (literalchar); new function to deal with reading \ escapes.
1697 (lex): Use literalchar.
1698 (lex): Implemented "..." tokens.
1699 (literalchar, lex, parse_percent_token): Made tokenbuffer
1700 always contain the token. This includes growing the token
1701 buffer while reading an integer.
1702 (parse_percent_token): Replaced if-else statement with percent_table.
1703 (parse_percent_token): Added % declarations as another
1704 way to specify the flags -n, -l, and -r. Also added hooks for
1705 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1706 major changes to files.c.
1707 (lex) Retain in the incoming stream a character following
1709 (skip_white_space, lex): Revised most error messages
1710 and changed fatal to warn to avoid aborting.
1711 (percent_table): Added %thong declarations.
1713 * src/gram.h: Comment changes.
1715 * src/files.c (openfiles, open_extra_files, done):
1717 and actfile file. Handle noparserflag. Both for -n switch.
1719 * src/conflicts.c (resolve_sr_conflict):
1720 Remove use of alloca.
1722 1995-06-01 Jim Meyering <meyering@gnu.org>
1724 * doc/bison.texinfo: *** empty log message ***
1726 1995-05-06 Richard Stallman <rms@gnu.org>
1728 * src/bison.s1: Comment change.
1730 1995-05-06 Richard Stallman <rms@gnu.org>
1732 * bison.simple: Comment change.
1734 1995-05-03 Richard Stallman <rms@gnu.org>
1736 * src/version.c: Version now 1.24.
1738 * src/bison.s1: Change distribution terms.
1740 * src/version.c: Version now 1.23.
1742 1995-05-03 Richard Stallman <rms@gnu.org>
1744 * doc/bison.texinfo:
1745 Rewrite "Conditions for Using Bison".
1746 Update version to 1.24.
1748 1995-05-03 Richard Stallman <rms@gnu.org>
1750 * bison.simple: Change distribution terms.
1752 1995-02-23 Richard Stallman <rms@gnu.org>
1754 * src/files.c: Test __VMS_POSIX as well as VMS.
1756 1995-02-14 Jim Meyering <meyering@gnu.org>
1758 * src/bison.s1 (__yy_memcpy):
1759 Renamed from __yy_bcopy to avoid
1760 confusion. Reverse FROM and TO arguments to be consistent with
1763 1995-02-14 Jim Meyering <meyering@gnu.org>
1765 * bison.simple (__yy_memcpy):
1766 Renamed from __yy_bcopy to avoid
1767 confusion. Reverse FROM and TO arguments to be consistent with
1770 1994-11-10 David J. MacKenzie <djm@gnu.org>
1776 * Makefile.in (DISTFILES): Include NEWS.
1778 * Makefile.in (DISTFILES):
1779 Include install-sh, not install.sh.
1781 * configure.in: Update to Autoconf v2 macro names.
1783 1994-10-05 David J. MacKenzie <djm@gnu.org>
1785 * Makefile.in: fix typo
1787 * Makefile.in (prefix, exec_prefix):
1788 Let configure set them.
1790 1994-09-28 David J. MacKenzie <djm@gnu.org>
1792 * Makefile.in: Set datadir to $(prefix)/share.
1794 1994-09-15 Richard Stallman <rms@gnu.org>
1797 Update copyright notice and GPL version.
1799 1994-09-15 Richard Stallman <rms@gnu.org>
1802 Update copyright notice and GPL version.
1804 1994-07-12 Richard Stallman <rms@gnu.org>
1806 * src/reduce.c, src/reader.c:
1809 1994-05-05 David J. MacKenzie <djm@gnu.org>
1811 * Makefile.in: entered into RCS
1813 1994-03-26 Richard Stallman <rms@gnu.org>
1815 * src/bison.s1: entered into RCS
1817 1994-03-26 Richard Stallman <rms@gnu.org>
1819 * bison.simple: entered into RCS
1821 1994-03-25 Richard Stallman <rms@gnu.org>
1823 * src/main.c: entered into RCS
1825 1994-03-24 Richard Stallman <rms@gnu.org>
1827 * src/conflicts.c: entered into RCS
1829 1994-01-02 Richard Stallman <rms@gnu.org>
1831 * Makefile.in: *** empty log message ***
1833 1993-11-21 Richard Stallman <rms@gnu.org>
1835 * src/bison.s1: *** empty log message ***
1837 1993-11-21 Richard Stallman <rms@gnu.org>
1839 * doc/bison.texinfo: entered into RCS
1841 * doc/bison.texinfo: *** empty log message ***
1843 1993-11-21 Richard Stallman <rms@gnu.org>
1845 * bison.simple: *** empty log message ***
1847 1993-10-25 David J. MacKenzie <djm@gnu.org>
1849 * doc/bison.texinfo: *** empty log message ***
1851 1993-10-19 Richard Stallman <rms@gnu.org>
1853 * src/bison.s1: *** empty log message ***
1855 1993-10-19 Richard Stallman <rms@gnu.org>
1857 * bison.simple: *** empty log message ***
1859 1993-10-14 Richard Stallman <rms@gnu.org>
1861 * src/bison.s1: *** empty log message ***
1863 1993-10-14 Richard Stallman <rms@gnu.org>
1865 * bison.simple: *** empty log message ***
1867 1993-09-14 David J. MacKenzie <djm@gnu.org>
1869 * doc/bison.texinfo: *** empty log message ***
1871 1993-09-13 Noah Friedman <friedman@gnu.org>
1873 * Makefile.in: *** empty log message ***
1875 1993-09-10 Richard Stallman <rms@gnu.org>
1877 * src/conflicts.c: *** empty log message ***
1879 * src/system.h: entered into RCS
1881 1993-09-10 Richard Stallman <rms@gnu.org>
1883 * doc/bison.1: entered into RCS
1885 1993-09-06 Noah Friedman <friedman@gnu.org>
1887 * src/version.c: entered into RCS
1889 1993-09-06 Noah Friedman <friedman@gnu.org>
1891 * Makefile.in: *** empty log message ***
1893 1993-07-30 David J. MacKenzie <djm@gnu.org>
1895 * Makefile.in: *** empty log message ***
1897 1993-07-24 Richard Stallman <rms@gnu.org>
1899 * src/bison.s1: *** empty log message ***
1901 1993-07-24 Richard Stallman <rms@gnu.org>
1903 * bison.simple: *** empty log message ***
1905 1993-07-08 David J. MacKenzie <djm@gnu.org>
1907 * Makefile.in: *** empty log message ***
1909 1993-07-04 Richard Stallman <rms@gnu.org>
1911 * src/bison.s1: *** empty log message ***
1913 1993-07-04 Richard Stallman <rms@gnu.org>
1915 * bison.simple: *** empty log message ***
1917 1993-06-26 David J. MacKenzie <djm@gnu.org>
1919 * src/getargs.c: entered into RCS
1921 1993-06-26 David J. MacKenzie <djm@gnu.org>
1923 * doc/bison.texinfo: *** empty log message ***
1925 * doc/bison.1: New file.
1927 1993-06-25 Richard Stallman <rms@gnu.org>
1929 * src/getargs.c: New file.
1931 1993-06-16 Richard Stallman <rms@gnu.org>
1933 * src/bison.s1: *** empty log message ***
1935 1993-06-16 Richard Stallman <rms@gnu.org>
1937 * bison.simple: *** empty log message ***
1939 1993-06-03 Richard Stallman <rms@gnu.org>
1941 * src/bison.s1: New file.
1943 1993-06-03 Richard Stallman <rms@gnu.org>
1945 * doc/bison.texinfo: *** empty log message ***
1947 1993-06-03 Richard Stallman <rms@gnu.org>
1949 * bison.simple: New file.
1951 1993-05-19 Richard Stallman <rms@gnu.org>
1953 * doc/bison.texinfo: New file.
1955 1993-05-07 Noah Friedman <friedman@gnu.org>
1957 * Makefile.in: *** empty log message ***
1959 1993-04-28 Noah Friedman <friedman@gnu.org>
1961 * src/reader.c: *** empty log message ***
1963 1993-04-23 Noah Friedman <friedman@gnu.org>
1965 * src/alloc.h: entered into RCS
1967 1993-04-20 David J. MacKenzie <djm@gnu.org>
1969 * src/version.c: *** empty log message ***
1971 * src/files.c, src/allocate.c:
1974 * src/reader.c: *** empty log message ***
1976 * src/lex.c: entered into RCS
1978 * src/conflicts.c: New file.
1980 * src/symtab.c: entered into RCS
1982 * src/alloc.h: New file.
1984 * src/LR0.c: entered into RCS
1986 1993-04-18 Noah Friedman <friedman@gnu.org>
1988 * src/reader.c: New file.
1990 * src/version.c: *** empty log message ***
1992 1993-04-18 Noah Friedman <friedman@gnu.org>
1994 * Makefile.in: *** empty log message ***
1996 1993-04-17 Noah Friedman <friedman@gnu.org>
1998 * Makefile.in: *** empty log message ***
2000 1993-04-15 Richard Stallman <rms@gnu.org>
2002 * src/main.c, src/files.c:
2005 1993-04-15 Noah Friedman <friedman@gnu.org>
2007 * configure.in: entered into RCS
2009 * configure.in: *** empty log message ***
2011 * configure.in: New file.
2013 1993-04-14 Richard Stallman <rms@gnu.org>
2015 * Makefile.in: New file.
2017 1993-04-13 Richard Stallman <rms@gnu.org>
2019 * src/version.c: New file.
2021 1993-03-25 Richard Stallman <rms@gnu.org>
2023 * src/output.c: entered into RCS
2025 1992-09-25 Richard Stallman <rms@gnu.org>
2027 * configure.bat: entered into RCS
2029 1992-06-22 Richard Stallman <rms@gnu.org>
2031 * src/vmsgetargs.c: entered into RCS
2033 1992-06-22 Richard Stallman <rms@gnu.org>
2035 * doc/bison.rnh: entered into RCS
2037 1992-04-20 David J. MacKenzie <djm@gnu.org>
2039 * README: entered into RCS
2041 1992-01-22 Richard Stallman <rms@gnu.org>
2043 * src/machine.h: entered into RCS
2045 1991-12-21 Richard Stallman <rms@gnu.org>
2047 * src/lalr.c, src/closure.c:
2050 1991-12-20 Richard Stallman <rms@gnu.org>
2052 * src/state.h: entered into RCS
2054 1991-12-18 Richard Stallman <rms@gnu.org>
2056 * src/print.c, src/nullable.c, src/derives.c:
2059 1991-11-03 David J. MacKenzie <djm@gnu.org>
2061 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2064 1988-09-09 Richard Stallman <rms@gnu.org>
2066 * src/bison.hairy: entered into RCS
2068 1987-12-16 Richard Stallman <rms@gnu.org>
2070 * REFERENCES: entered into RCS