1 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
3 * src/bison.simple (yyparse): Suppress warning `comparaison
4 between signed and unsigned'.
6 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
8 * src/getargs.h (raw_flag): Remove.
9 * src/getargs.c: Die on `-r'/`--raw'.
10 * src/lex.c (parse_percent_token): Die on `%raw'.
11 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
12 * tests/calc.at: Suppress test with option `--raw'.
14 2001-07-14 Akim Demaille <akim@epita.fr>
17 * configure.in: Require Autoconf 2.50.
18 Update to gettext 0.10.38.
20 2001-03-16 Akim Demaille <akim@epita.fr>
22 * doc/bison.texinfo: ANSIfy the examples.
24 2001-03-16 Akim Demaille <akim@epita.fr>
26 * getargs.c (skeleton): New variable.
27 (longopts): --skeleton is a new option.
28 (shortopts, getargs): -S is a new option.
29 * getargs.h: Declare skeleton.
30 * output.c (output_parser): Use it.
32 2001-03-16 Akim Demaille <akim@epita.fr>
34 * m4/strerror_r.m4: New.
35 * m4/error.m4: Run AC_FUNC_STRERROR_R.
36 * lib/error.h, lib/error.c: Update.
38 2001-03-16 Akim Demaille <akim@epita.fr>
40 * src/getargs.c (longopts): Clean up.
42 2001-02-21 Akim Demaille <akim@epita.fr>
44 * src/reader.c (gensym): `gensym_count' is your own.
45 Use a static buf to create the symbol name, as token_buffer is no
48 2001-02-08 Akim Demaille <akim@epita.fr>
50 * src/conflicts.c (conflict_report): Be sure not to append to res
51 between two calls, which could happen if both first sprintf were
52 skipped, but not the first cp += strlen.
54 2001-02-08 Akim Demaille <akim@epita.fr>
56 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
57 New, from fileutils 4.0.37.
58 * configure.in: Require Autoconf 2.49c. I took some time before
59 making this decision. This is the only way out for portability
60 issues in Bison, it would mean way too much duplicate effort to
61 import in Bison features implemented in 2.49c since 2.13.
62 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
64 2001-02-02 Akim Demaille <akim@epita.fr>
66 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
67 * lib/xalloc.h, lib/xmalloc.c: Update.
69 2001-01-19 Akim Demaille <akim@epita.fr>
71 Get rid of the ad hoc handling of token_buffer in the scanner: use
74 * src/lex.c (token_obstack): New.
75 (init_lex): Initialize it. No longer call...
76 (grow_token_buffer): this. Remove it.
77 Adjust all the places which used it to use the obstack.
79 2001-01-19 Akim Demaille <akim@epita.fr>
81 * src/lex.h: Rename all the tokens:
82 s/\bENDFILE\b/tok_eof/g;
83 s/\bIDENTIFIER\b/tok_identifier/g;
85 Let them be enums, not #define, to ease debugging.
88 2001-01-18 Akim Demaille <akim@epita.fr>
90 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
91 * src/lex.c (maxtoken, grow_token_buffer): Static.
93 2001-01-18 Akim Demaille <akim@epita.fr>
95 Since we now use obstacks, more % directives can be enabled.
97 * src/lex.c (percent_table): Also accept `%yacc',
98 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
100 Handle the actions for `%semantic_parser' and `%pure_parser' here,
101 instead of returning a token.
102 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
103 * src/reader.c (read_declarations): Adjust.
104 * src/files.c (open_files): Don't call `compute_base_names', don't
105 compute `attrsfile' since they depend upon data which might be
106 *in* the input file now.
107 (output_files): Do it here.
108 * src/output.c (output_headers): Document the fact that this patch
109 introduces a guaranteed SEGV for semantic parsers.
110 * doc/bison.texinfo: Document them.
111 * tests/suite.at: Exercise these %options.
113 2000-12-20 Akim Demaille <akim@epita.fr>
115 Also handle the output file (--verbose) with obstacks.
117 * files.c (foutput): Remove.
118 (output_obstack): New.
119 Adjust all dependencies.
120 * src/conflicts.c: Return a string.
121 * src/system.h (obstack_grow_string): Rename as...
122 (obstack_sgrow): this. Be ready to work with non literals.
123 (obstack_fgrow4): New.
125 2000-12-20 Akim Demaille <akim@epita.fr>
127 * src/files.c (open_files): Fix the computation of short_base_name
128 in the case of `-o foo.tab.c'.
130 2000-12-20 Akim Demaille <akim@epita.fr>
132 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
133 (copy_dollar): Now that everything uses obstacks, get rid of the
136 2000-12-20 Akim Demaille <akim@epita.fr>
138 * src/files.c (open_files): Actually the `.output' file is based
139 on the short_base_name, not base_name.
140 * tests/suite.at (Checking output file names): Adjust.
142 2000-12-20 Akim Demaille <akim@epita.fr>
144 * src/bison.s1: Remove, we now use directly...
145 * src/bison.simple: this.
146 * src/Makefile.am: Use pkgdata instead of data.
148 2000-12-20 Akim Demaille <akim@epita.fr>
150 * src/files.c (guard_obstack): New.
151 (open_files): Initialize it.
152 (output_files): Dump it...
153 * src/files.h: Export it.
154 * src/reader.c (copy_guard): Use it.
156 2000-12-19 Akim Demaille <akim@epita.fr>
158 * src/files.c (outfile, defsfile, actfile): Removed as global
160 (open_files): Don't compute them.
161 (output_files): Adjust.
162 (base_name, short_base_name): Be global.
165 2000-12-19 Akim Demaille <akim@epita.fr>
167 * src/files.c (strsuffix): New.
168 (stringappend): Be just like strcat but allocate.
169 (base_names): Eve out from open_files.
170 Try to simplify the rather hairy computation of base_name and
172 (open_files): Use it.
173 * tests/suite.at (Checking output file names): New test.
175 2000-12-19 Akim Demaille <akim@epita.fr>
177 * src/system.h (obstack_grow_literal_string): Rename as...
178 (obstack_grow_string): this.
179 * src/output.c (output_parser): Recognize `%% actions' instead of
181 * src/bison.s1: s/$/%% actions/.
182 * src/bison.hairy: Likewise.
184 2000-12-19 Akim Demaille <akim@epita.fr>
186 * src/output.c (output_parser): Compute the `#line' lines when
188 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
189 Suggested by Hans Aberg.
191 2000-12-19 Akim Demaille <akim@epita.fr>
193 Let the handling of the skeleton files be local to the procedures
196 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
198 (fparser, open_extra_files): Remove.
199 (open_files, output_files): Don't take care of fparser.
200 * src/files.h: Adjust.
201 * src/output.c (output_parser): Open and close the file to the
203 * src/reader.c (read_declarations): When %semantic_parser, open
206 2000-12-19 Akim Demaille <akim@epita.fr>
208 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
209 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
211 2000-12-19 Akim Demaille <akim@epita.fr>
213 * src/files.c (open_files): Yipee! We no longer need all the code
214 looking for `/tmp' since we have no tmp file.
216 2000-12-19 Akim Demaille <akim@epita.fr>
218 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
220 * src/files.c (open_files): Less dependency on MSDOS etc.
222 2000-12-14 Akim Demaille <akim@epita.fr>
224 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
225 Provide a default definition.
226 Use it when executing the default @ action.
227 * src/reader.c (reader_output_yylsp): No longer include
228 `timestamp' and `text' in the default YYLTYPE.
230 2000-12-12 Akim Demaille <akim@epita.fr>
232 * src/reader.c (copy_definition, parse_union_decl, copy_action)
233 (copy_guard): Quote the file names.
234 Reported by Laurent Mascherpa.
236 2000-12-12 Akim Demaille <akim@epita.fr>
238 * src/output.c (output_headers, output_program, output): Be sure
239 to escape special characters when outputting filenames.
240 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
241 (output_headers): Don't depend on them, Use ACTSTR.
243 2000-11-17 Akim Demaille <akim@epita.fr>
245 * lib/obstack.h: Formatting changes.
246 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
247 prevents type checking.
248 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
249 cast the value to (void *): assigning a `foo *' to a `void *'
251 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
252 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
255 2000-11-17 Akim Demaille <akim@epita.fr>
257 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
259 (suite.m4, regression.m4, calc.m4): these.
260 * tests/atgeneral.m4: Update from CVS Autoconf.
262 2000-11-17 Akim Demaille <akim@epita.fr>
264 * tests/regression.m4 (%union and --defines): New test,
265 demonstrating a current bug in the obstack implementation.
267 2000-11-17 Akim Demaille <akim@epita.fr>
269 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
271 Use them to declare the variables which are global or local to
274 2000-11-17 Akim Demaille <akim@epita.fr>
276 * acconfig.h: Remove, no longer used.
278 2000-11-07 Akim Demaille <akim@epita.fr>
280 * src: s/Copyright (C)/Copyright/g.
282 2000-11-07 Akim Demaille <akim@epita.fr>
284 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
286 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
288 2000-11-07 Akim Demaille <akim@epita.fr>
290 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
291 Merge in a single CPP if/else.
293 2000-11-07 Akim Demaille <akim@epita.fr>
295 * src/output.c (output): Remove useless variables.
296 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
297 argument `data' for consistency with the prototypes.
299 (obstack_copy, obstack_copy0): Rename the second argument as
300 `address' for consistency. Qualify it `const'.
301 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
302 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
303 `const' their input argument (`data' or `address').
304 Adjust the corresponding macros to include `const' in casts.
306 2000-11-03 Akim Demaille <akim@epita.fr>
308 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
309 s/PFILE1/BISON_HAIRY/.
312 2000-11-03 Akim Demaille <akim@epita.fr>
314 For some reason, this was not applied.
316 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
317 `unlink': it's no longer used.
319 2000-11-03 Akim Demaille <akim@epita.fr>
321 * src/files.c (skeleton_find): New function, eved out of...
322 (open_files, open_extra_files): here.
324 2000-11-03 Akim Demaille <akim@epita.fr>
328 * src/files.c (obstack_save): New function.
330 (output_files): this.
332 * src/main.c (main): Don't use `atexit' to register `done', since
333 it no longer has to remove tmp files, just call `output_files'
334 when there are no errors.
336 2000-11-02 Akim Demaille <akim@epita.fr>
338 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
339 `unlink': it's no longer used.
340 * src/files.h: Formatting changes.
342 2000-11-02 Akim Demaille <akim@epita.fr>
344 Remove the last uses of mktemp and unlink/delete.
346 * src/files.c (fdefines, ftable): Removed.
347 (defines_ostack, table_obstack): New.
348 Adjust dependencies of the former into uses of the latter.
349 * src/output.c (output_short_or_char_table, output_short_table):
350 Convert to using obstacks.
351 * src/reader.c (copy_comment2): Accept one FILE * and two
353 (output_token_defines, reader_output_yylsp): Use obstacks.
354 * src/system.h (obstack_fgrow3): New.
356 2000-11-01 Akim Demaille <akim@epita.fr>
358 Change each use of `fattrs' into a use of `attrs_obstack'.
360 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
361 * src/files.c (fattrs): Remove.
362 (attrs_obstack): New.
363 Adjust all dependencies.
364 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
366 2000-11-01 Akim Demaille <akim@epita.fr>
369 Change each use of `faction' into a use of `action_obstack'.
371 * lib/obstack.h, lib/obstack.c: New files.
372 * src/files.c (faction): Remove.
373 (action_obstack): New.
374 Adjust all dependencies.
376 2000-10-20 Akim Demaille <akim@epita.fr>
378 * lib/quote.h (PARAMS): New macro. Use it.
380 2000-10-16 Akim Demaille <akim@epita.fr>
382 * src/output.c (output_short_or_char_table): New function.
383 (output_short_table, output_token_translations): Use it.
384 (goto_actions): Use output_short_table.
386 2000-10-16 Akim Demaille <akim@epita.fr>
388 * src/symtab.c (bucket_new): New function.
391 * src/output.c (output_short_table): New argument to display the
392 comment associated with the table.
394 (output_gram): Use it.
395 (output_rule_data): Nicer output layout for YYTNAME.
397 2000-10-16 Akim Demaille <akim@epita.fr>
399 * src/lex.c (read_typename): New function.
401 * src/reader.c (copy_dollar): Likewise.
403 2000-10-16 Akim Demaille <akim@epita.fr>
405 * src/reader.c (copy_comment2): Expect the input stream to be on
406 the `/' which is suspected to open a comment, instead of being
407 called after `//' or `/*' was read.
408 (copy_comment, copy_definition, parse_union_decl, copy_action)
409 (copy_guard): Adjust.
411 2000-10-16 Akim Demaille <akim@epita.fr>
413 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
414 `read_signed_integer'.
416 2000-10-16 Akim Demaille <akim@epita.fr>
418 * src/reader.c (copy_dollar): New function.
419 (copy_guard, copy_action): Use it.
421 2000-10-16 Akim Demaille <akim@epita.fr>
423 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
424 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
425 New files, from Fileutils 4.0.27.
426 * src/main.c (printable_version): Remove.
427 * src/lex.c, src/reader.c: Use `quote'.
429 2000-10-04 Akim Demaille <akim@epita.fr>
431 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
433 2000-10-04 Akim Demaille <akim@epita.fr>
435 * doc/bison.texinfo: Various typos spotted by Neil Booth.
437 2000-10-04 Akim Demaille <akim@epita.fr>
439 When a literal string is used to define two different tokens,
440 `bison -v' segfaults.
441 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
443 * tests/regression.m4: New file.
444 Include the core of the sample provided by Piotr Gackiewicz.
445 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
448 2000-10-04 Akim Demaille <akim@epita.fr>
450 * src/reader.c (parse_expect_decl): Keep `count' within the size
454 2000-10-02 Paul Eggert <eggert@twinsun.com>
456 * bison.s1 (yyparse): Assign the default value
457 unconditionally, to avoid a GCC warning and make the parser a
460 2000-10-02 Akim Demaille <akim@epita.fr>
462 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
465 2000-10-02 Akim Demaille <akim@epita.fr>
467 * src/derives.c, src/print.c, src/reduce.c: To ease the
468 translation, move some `\n' out of the translated strings.
470 2000-10-02 Akim Demaille <akim@epita.fr>
472 The location tracking mechanism is precious for parse error
473 messages. Nevertheless, it is enabled only when `@n' is used in
474 the grammar, which is a different issue (you can use it in error
475 message, but not in the grammar per se). Therefore, there should
476 be another means to enable it.
478 * src/getargs.c (getargs): Support `--locations'.
480 * src/getargs.h (locationsflag): Export it.
481 * src/lex.c (percent_table): Support `%locations'.
482 * src/reader.c (yylsp_needed): Remove this variable, now replaced
483 with `locationsflag'.
484 * doc/bison.texinfo: Document `--locations' and `%locations'.
486 * tests/calc.m4: Test it.
488 For regularity of the names, replace each
489 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
490 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
491 In addition replace each `flag' with `_flag'.
493 2000-10-02 Akim Demaille <akim@epita.fr>
495 Also test parse error messages, including with YYERROR_VERBOSE.
497 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
499 Use it to check the computations.
500 Use it to check `nonassoc' is honored.
501 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
503 (_AT_CHECK_CALC): Adjust to this option.
504 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
506 2000-10-02 Akim Demaille <akim@epita.fr>
508 Test also `--verbose', `--defines' and `--name-prefix'. Testing
509 the latter demonstrates a flaw in the handling of non debugging
510 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
511 was used in order to simplify:
527 unfortunately this leads to a CPP conflict when
528 `--name-prefix=foo' is used since it produces `#define yydebug
531 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
532 (YYDPRINTF): New macro.
534 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
536 Also test `--verbose', `--defines' and `--name-prefix'.
538 2000-10-02 Akim Demaille <akim@epita.fr>
540 Improve the readability of the produced parsers.
542 * src/bison.s1: Formatting changes.
543 Improve the comment related to the `$' mark.
544 (yydefault): Don't fall through to `yyresume': `goto' there.
545 * src/output.c (output_parser): When the `$' is met, skip the end
547 New variable, `number_of_dollar_signs', to check there's exactly
548 one `$' in the parser skeleton.
550 2000-10-02 Akim Demaille <akim@epita.fr>
552 * lib/xstrdup.c: New file, from the fileutils.
553 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
554 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
555 instead of strlen + xmalloc + strcpy.
556 * src/symtab.c (copys): Remove, use xstrdup instead.
558 2000-10-02 Akim Demaille <akim@epita.fr>
560 * src/gram.h (associativity): New enum type which replaces the
561 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
562 `right_assoc', `left_assoc' and `non_assoc'.
563 Adjust all dependencies.
564 * src/reader.c: Formatting changes.
565 (LTYPESTR): Don't define it, use it as a literal in
566 `reader_output_yylsp'.
567 * src/symtab.h (symbol_class): New enum type which replaces the
568 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
569 `sunknown', `stoken and `snterm'.
571 2000-10-02 Akim Demaille <akim@epita.fr>
573 * src/getargs.c (fixed_outfiles): Rename as...
574 (yaccflag): for consistency and accuracy.
577 2000-10-02 Akim Demaille <akim@epita.fr>
579 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
580 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
581 difficult and introduced a lot of core dump. It turns out that
582 Bison used an implementation of `xmalloc' based on `calloc', and
583 at various places it does depend upon the initialization to 0. I
584 have not tried to isolate the pertinent places, and all the former
585 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
586 someone should address this issue.
588 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
589 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
592 * src/warshall.h: New file.
595 2000-10-02 Akim Demaille <akim@epita.fr>
597 Various anti-`extern in *.c' changes.
599 * src/system.h: Include `assert.h'.
601 2000-10-02 Akim Demaille <akim@epita.fr>
603 * src/state.h (nstates, final_state, first_state, first_shift)
604 (first_reduction): Move their exportation from here...
605 * src/LR0.h: to here.
607 * src/getargs.c (statisticsflag): New variable.
608 Add support for `--statistics'.
611 Remove a lot of now useless `extern' statements in most files.
613 2000-10-02 Akim Demaille <akim@epita.fr>
615 * src/LR0.h: New file.
618 2000-10-02 Akim Demaille <akim@epita.fr>
620 * src/print.h: New file.
622 * src/print.c: Formatting and ordering changes.
623 (verbose, terse): Replace with...
624 (print_results): this new function.
627 2000-10-02 Akim Demaille <akim@epita.fr>
629 * src/conflicts.c (conflict_report): New function.
630 (conflict_log, verbose_conflict_log): Replace with...
631 (print_conflicts): this function.
633 * src/conflicts.h: New file.
634 Propagate its inclusion.
636 2000-10-02 Akim Demaille <akim@epita.fr>
638 * src/nullable.h: New file.
639 Propagate its inclusion.
640 * src/nullable.c: Formatting changes.
642 2000-10-02 Akim Demaille <akim@epita.fr>
644 * src/reduce.h: New file.
645 Propagate its inclusion.
646 * src/reduce.c: Topological sort and other formatting changes.
647 (bool, TRUE, FALSE): Move their definition to...
648 * src/system.h: here.
650 2000-10-02 Akim Demaille <akim@epita.fr>
652 * src/files.c: Formatting changes.
653 (tryopen, tryclose, openfiles): Rename as...
654 (xfopen, xfclose, open_files): this.
655 (stringappend): static.
656 * src/files.h: Complete the list of exported symbols.
659 2000-10-02 Akim Demaille <akim@epita.fr>
661 * src/reader.h: New file.
662 Propagate its use instead of tedious list of `extern' and
664 * src/reader.c: Formatting changes, topological sort,
667 2000-10-02 Akim Demaille <akim@epita.fr>
669 * src/lex.h: Prototype `lex.c' exported functions.
670 * src/reader.c: Adjust.
671 * src/lex.c: Formatting changes.
672 (safegetc): Rename as...
675 2000-10-02 Akim Demaille <akim@epita.fr>
677 * src/lalr.h: New file.
678 Propagate its inclusion instead of prototypes and `extern'.
679 * src/lalr.c: Formatting changes, topological sorting etc.
681 2000-10-02 Akim Demaille <akim@epita.fr>
683 * src/output.c (token_actions): Introduce a temporary array,
684 YYDEFACT, that makes it possible for this function to use
687 2000-10-02 Akim Demaille <akim@epita.fr>
689 `user_toknums' is output as a `short[]' in `output.c', while it is
690 defined as a `int[]' in `reader.c'. For consistency with the
691 other output tables, `user_toknums' is now defined as a table of
694 * src/reader.c (user_toknums): Be a short table instead of an int
698 Factor the short table outputs.
700 * src/output.c (output_short_table): New function.
701 * src/output.c (output_gram, output_stos, output_rule_data)
702 (output_base, output_table, output_check): Use it.
704 2000-10-02 Akim Demaille <akim@epita.fr>
706 * src/output.c (output): Topological sort of the functions, in
707 order to get rid of the `static' prototypes.
708 No longer use `register'.
709 * src/output.h: New file.
710 Propagate its inclusion in files explicitly prototyping functions
713 2000-09-21 Akim Demaille <akim@epita.fr>
715 * src/atgeneral.m4: Update from Autoconf.
717 2000-09-21 Akim Demaille <akim@epita.fr>
719 * src/closure.h: New file.
720 * src/closure.c: Formatting changes, topological sort over the
721 functions, use of closure.h.
722 (initialize_closure, finalize_closure): Rename as...
723 (new_closure, free_closure): these. Adjust dependencies.
724 * src/LR0.c: Formatting changes, topological sort, use of
726 (initialize_states): Rename as...
728 * src/Makefile.am (noinst_HEADERS): Adjust.
730 2000-09-20 Akim Demaille <akim@epita.fr>
732 * src/acconfig.h: Don't protect config.h against multiple
735 * src/system.h: Define PARAMS.
736 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
737 purpose of config.h. system.h must not try to fix wrong
738 definitions in config.h.
740 2000-09-20 Akim Demaille <akim@epita.fr>
742 * src/derives.h: New file.
743 * src/main.c, src/derives.h: Use it.
745 * src/Makefile.am (noinst_HEADERS): Adjust.
747 2000-09-20 Akim Demaille <akim@epita.fr>
749 * tests/atgeneral.m4: Update from Autoconf.
750 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
751 (AT_CHECK_CALC): New macros.
752 Use these macros to test bison with options `', `--raw',
753 `--debug', `--yacc', `--yacc --debug'.
755 2000-09-19 Akim Demaille <akim@epita.fr>
757 * src/output.c: Formatting changes.
758 * src/machine.h: Remove, leaving its contents in...
759 * src/system.h: here.
761 Adjust all dependencies on stdio.h and machine.h.
762 * src/getargs.h: New file.
763 Let all `extern' declarations about getargs.c be replaced with
764 inclusion of `getargs.h'.
765 * src/Makefile.am (noinst_HEADERS): Adjust.
767 * tests/calc.m4 (yyin): Be initialized in main, not on the global
769 (yyerror): Returns void, not int.
770 * doc/bison.texinfo: Formatting changes.
772 2000-09-19 Akim Demaille <akim@epita.fr>
774 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
777 2000-09-18 Akim Demaille <akim@epita.fr>
779 * configure.in: Append WARNING_CFLAGS to CFLAGS.
780 * src/Makefile.am (INCLUDES): Don't.
781 Be ready to fetch headers in lib/.
783 2000-09-18 Akim Demaille <akim@epita.fr>
785 * doc/bison.texinfo: Update the copyright.
786 ANSIfy and GNUify the examples.
789 2000-09-18 Akim Demaille <akim@epita.fr>
791 First set of tests: use the `calc' example from the documentation.
793 * src/bison.s1 (yyparse): Condition the code using `yytname' which
794 is defined only when YYDEBUG is.
795 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
796 * src/files.c (tryopen, tryclose): Formatting changes.
797 Move to the top and be static.
798 * src/reader.c (read_signed_integer): Likewise.
799 * tests/calc.m4: New file.
800 * Makefile.am, suite.m4: Adjust.
801 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
803 2000-09-18 Akim Demaille <akim@epita.fr>
805 Add support for an Autotest test suite for Bison.
807 * m4/m4.m4, m4/atconfig.m4: New files.
808 * m4/Makefile.am (EXTRA_DIST): Adjust.
809 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
811 * src/getargs.c: Display a more standard --version message.
812 * src/reader.c (reader): Formatting changes.
813 No longer depend upon VERSION_STRING.
814 * configure.in: No longer use `dnl'.
815 Set up the test suite and the new directory `tests/.
816 (VERSION_STRING): Remove.
818 2000-04-14 Akim Demaille <akim@epita.fr>
820 * src/reader.c (copy_comment2): New function, same as former
821 `copy_comment', but outputs into two FILE *.
822 (copy_comment): Use it.
823 (parse_union_decl): Use it.
824 (get_type, parse_start_decl): Use the same `invalid' message.
825 (parse_start_decl, parse_union_decl): Use the same `multiple'
827 (parse_union_decl, copy_guard, copy_action): Use the same
829 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
831 2000-03-31 Akim Demaille <akim@epita.fr>
833 * src/files.c (tryopen, tryclose): Move to the top.
836 2000-03-31 Akim Demaille <akim@epita.fr>
838 * src/main.c (main): Don't call `done', exit does it.
840 2000-03-31 Akim Demaille <akim@epita.fr>
842 * allocate.c: s/return (foo)/return foo/.
845 * output.c: Likewise.
846 * reader.c: Likewise.
847 * symtab.c: Likewise.
848 * vmsgetargs.c: Likewise.
850 2000-03-31 Akim Demaille <akim@epita.fr>
852 Clean up the error reporting functions.
854 * src/report.c: New file.
855 * src/report.h: Likewise.
856 * src/Makefile.am: Adjust.
857 * m4/error.m4: New file.
858 * m4/Makefile.am: Adjust.
859 * configure.in (jm_PREREQ_ERROR): Call it.
860 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
862 (fatal, fatals): Remove. All callers use complain.c::fatal.
863 (warn, warni, warns, warnss, warnss): Remove. All callers use
864 complain.c::complain.
865 (toomany): Remove, use fatal instead.
866 * src/files.c (done): No argument, use complain_message_count.
867 * src/main.c (main): Register `done' to `atexit'.
869 * src/getargs.c (usage): More `fputs', less `fprintf'.
871 2000-03-28 Akim Demaille <akim@epita.fr>
873 * lib/: New directory.
874 * Makefile.am (SUBDIRS): Adjust.
875 * configure.in: Adjust.
876 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
878 * src/alloca.c: Moved to lib/.
879 * src/getopt.c: Likewise.
880 * src/getopt1.c: Likewise.
881 * src/getopt.h: Likewise.
882 * src/ansi2knr.c: Likewise.
883 * src/ansi2knr.1: Likewise.
884 * src/Makefile.am: Adjust.
885 * lib/Makefile.am: New file.
887 2000-03-28 Akim Demaille <akim@epita.fr>
889 * src/getargs.c (usage): Refresh the help message.
891 2000-03-17 Akim Demaille <akim@epita.fr>
893 * src/getopt1.c: Updated from textutils 2.0e
894 * src/getopt.c: Likewise.
895 * src/getopt.h: Likewise.
897 2000-03-17 Akim Demaille <akim@epita.fr>
899 * src/Makefile.am (bison.simple): Fix the awk program: quote only
900 the file name, not the whole `#line LINE FILE'.
902 2000-03-17 Akim Demaille <akim@epita.fr>
904 On syntax errors, report the token on which we choked.
906 * src/bison.s1 (yyparse): In the label yyerrlab, when
907 YYERROR_VERBOSE, add yychar in msg.
909 2000-03-17 Akim Demaille <akim@epita.fr>
911 * src/reader.c (copy_at): New function.
912 (copy_guard): Use it.
913 (copy_action): Use it.
915 2000-03-17 Akim Demaille <akim@epita.fr>
917 Be kind to translators, save some useless translations.
919 * src/main.c (banner): New function.
920 (fatal_banner): Use it.
921 (warn_banner): Use it.
923 2000-03-17 Akim Demaille <akim@epita.fr>
925 * src/reader.c (copy_definition): Use copy_string and
926 copy_comment. Removed now unused `match', `ended',
928 (copy_comment, copy_string): Moved, to be visible from
931 2000-03-17 Akim Demaille <akim@epita.fr>
933 * src/reader.c (copy_string): Declare `static inline'. No
934 problems with inline, since it is checked by configure.
935 (copy_comment): Likewise.
937 2000-03-17 Akim Demaille <akim@epita.fr>
939 * src/reader.c (packsymbols): Formatting changes.
941 2000-03-17 Akim Demaille <akim@epita.fr>
943 * src/reader.c (copy_comment): New function, factored out from:
944 (copy_action): Use it. Removed now unused `match', `ended',
946 (copy_guard): Likewise.
948 2000-03-17 Akim Demaille <akim@epita.fr>
950 * src/reader.c (copy_string): New function, factored out from:
951 (copy_action): Use it.
952 (copy_guard): Likewise.
954 2000-03-17 Akim Demaille <akim@epita.fr>
956 Change the handling of @s so that they behave exactly like $s.
957 There is now a pseudo variable @$ (readble and writable), location
958 of the lhs of the rule (by default ranging from the location of
959 the first symbol of the rhs, to the location of the last symbol,
960 or, if the rhs is empty, YYLLOC).
962 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
964 (yyparse): When providing a default semantic action, provide a
965 default location action.
966 (after the $): No longer change `*YYLSP', just stack YYLOC the
967 same way you stack YYVAL.
968 * src/reader.c (read_declarations): Use warns.
969 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
970 (copy_action, case '@'): Likewise.
971 Use a standard error message, to save useless work from
974 2000-03-17 Akim Demaille <akim@epita.fr>
976 * src/bison.s1: Formatting and cosmetics changes.
977 * src/reader.c: Likewise.
978 Update the Copyright notice.
980 2000-03-17 Akim Demaille <akim@epita.fr>
982 * src/bison.s1 (#line): All set to `#line' only, since the
983 Makefile now handles them.
985 2000-03-16 Akim Demaille <akim@epita.fr>
987 * src/output.c (output_rule_data): Output the documentation of
989 (Copyright notice): Update.
992 2000-03-16 Akim Demaille <akim@epita.fr>
994 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
995 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
996 One `#if YYDEBUG' remains, since it uses variables which are
997 defined only if `YYDEBUG != 0'.
999 2000-03-16 Akim Demaille <akim@epita.fr>
1001 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1002 and related variables so that the similarities are highlighted.
1004 2000-03-16 Akim Demaille <akim@epita.fr>
1006 * src/bison.s1: Properly indent CPP directives.
1008 2000-03-16 Akim Demaille <akim@epita.fr>
1010 * src/bison.s1: Properly indent the `alloca' CPP section.
1012 2000-03-16 Akim Demaille <akim@epita.fr>
1014 Do not hard code values of directories in `configure.in'.
1015 Update the `configure' tool chain.
1017 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1019 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1020 (AC_OUTPUT): Add m4/Makefile.
1021 Bump to bison 1.28a, 1.29 has never been released.
1022 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1023 handled via src/Makefile.am.
1024 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1025 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1027 * Makefile.am (SUBDIRS): Add m4.
1028 (ACLOCAL_AM_FLAGS): New variable.
1029 (AUTOMAKE_OPTIONS): Add check-news.
1030 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1031 the proper line number and file name.
1032 (DEFS): Propagate the location of bison library files and of the
1034 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1036 * acinclude.m4: Remove, replaced by the directory m4.
1037 * m4/Makefile.am (EXTRA_DIST): New variable.
1038 * m4/gettext.m4: New file, from the fileutils.
1039 * m4/lcmessage.m4: Likewise
1040 * m4/progtest.m4: Likewise.
1041 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1043 2000-03-10 Akim Demaille <akim@epita.fr>
1046 Formatting changes of various comments.
1047 Respect the GNU coding standards at various places.
1048 Don't use `_()' when no translation is needed.
1050 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1053 OS/2 honors TMPDIR environment variable.
1055 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1057 * doc/bison.texinfo: Tweaked spelling and grammar.
1059 Removed reference to price of printed copy.
1060 Mention BISON_SIMPLE and BISON_HAIRY.
1062 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1064 * configure.in, NEWS:
1065 Bison 1.29 released.
1067 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1069 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1070 Added reference card.
1072 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1074 * po/ru.po: Added Russian translation.
1076 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1078 * configure.in: Added Russian translation.
1080 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1082 * configure.in, NEWS, README:
1083 Released version 1.28.
1085 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1088 Squashed redefinition warning on some systems.
1090 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1091 Have configure build version string instead of relying on ANSI string
1094 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1096 * po/POTFILES.in: Got rid of version.c.
1098 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1100 * acconfig.h, configure.in:
1101 Have configure build version string instead of relying on ANSI string
1104 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1107 Dropped mention of `+' for long-named options.
1109 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1111 * src/files.c: Added <unistd.h> for unlink().
1113 * src/Makefile.am, src/system.h:
1116 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1118 * README: Added a FAQ list.
1120 * configure.in, acconfig.h:
1123 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1125 * doc/FAQ, doc/Makefile.am:
1128 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1130 * src/alloc.h, src/symtab.h, src/version.c:
1131 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1133 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1135 * src/.cvsignore, src/Makefile.am:
1136 Reorganized: sources in `src', documentation in `doc'.
1138 * src/lex.c (literalchar):
1139 fixed the code for escaping double quotes (thanks
1142 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1144 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1145 Adjusted paths to reflect directory reorganization.
1147 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1149 * doc/.cvsignore, doc/Makefile.am:
1150 Reorganized: sources in `src', documentation in `doc'.
1152 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1155 Updated AC_INIT file to reflect directory reorganization.
1157 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1158 Reorganized: sources in `src', documentation in `doc'.
1160 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1163 Don't declare calloc() and realloc() if not necessary.
1165 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1167 * configure.in, acconfig.h, acinclude.m4:
1168 Don't declare calloc() and realloc() if not necessary.
1170 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1172 * po/.cvsignore: Added i18n support.
1174 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1176 * acconfig.h, configure.in, Makefile.am:
1179 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1181 * src/bison.s1: Fixed #line numbers.
1183 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1185 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1186 Added PO files from Translation Project.
1188 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1191 Added support for non-ANSI compilers (ansi2knr).
1193 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1195 * configure.in: Bumped version number to 1.27.
1198 Added `bison.simple' to list of files removed by `make distclean'.
1200 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1202 * src/files.c, src/files.h:
1203 Defined locations of parser files in config.h instead of Makefile.
1205 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1207 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1208 Defined locations of parser files in config.h instead of Makefile.
1210 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1213 Removed inappropriate use of $< macro.
1215 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1217 * po/Makefile.in.in, po/POTFILES.in:
1218 Add `po' directory skeleton.
1220 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1222 * README: Document help-bison list.
1224 * configure.in: Add check for mkstemp().
1226 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1228 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1229 Hush a few compiler warnings.
1232 Add tryclose(), which verifies that fclose was successful.
1233 Hush a couple of compiler warnings.
1235 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1237 * Makefile.am, OChangeLog:
1238 ChangeLog is now automatically generated. Include the old version as
1241 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1243 * 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:
1246 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1248 * doc/bison.texinfo: Fix formatting glitch.
1250 * doc/bison.texinfo: Update FSF address.
1252 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1254 * acconfig.h: Update FSF address.
1256 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1259 Don't define PACKAGE here, since config.h defines it.
1261 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1263 * src/reader.c: Update copyright date.
1266 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1267 favor of output directly to stderr (avoids buffer overruns).
1269 * src/reader.c: Some checks for premature EOF.
1271 * 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:
1272 Use prototypes if the compiler understands them.
1274 * src/files.c: Honor TMPDIR on Unix hosts.
1275 Use prototypes if the compiler understands them.
1278 Fix a couple of buffer overrun bugs.
1279 Use prototypes if the compiler understands them.
1281 * src/system.h: Include unistd.h and ctype.h.
1282 Use #ifdef instead of #if for NLS symbols.
1284 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1286 * doc/bison.texinfo:
1287 Delete comment "consider using @set for edition number, etc..." since
1288 we now are doing so.
1290 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1293 Use prototypes if the compiler understands them.
1295 * NEWS: Document 1.26 highlights.
1297 * Makefile.am: Require Automake 1.3 or later.
1300 Use prototypes if the compiler understands them.
1302 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1305 Use VERSION symbol from automake for version number.
1307 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1309 * acconfig.h, configure.in, version.cin:
1310 Use VERSION symbol from automake for version number.
1312 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1315 Distribute original version of simple parser (bison.s1), not built
1316 version (bison.simple).
1318 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1320 * doc/bison.texinfo: Add info dir entry.
1322 * doc/bison.texinfo:
1323 Let automake put version number into documentation.
1325 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1327 * src/bison.cld, src/build.com, src/vmshlp.mar:
1328 Add non-RCS files from /gd/gnu/bison.
1330 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1333 Document the BISON_HAIRY and BISON_SIMPLE variables.
1335 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1337 * src/version.c: Build version.c automatically.
1340 Fix token numbering (used to start at 258, not 257).
1342 * src/system.h: Include config.h.
1344 * src/getargs.c: Update bug report address.
1346 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1347 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1349 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1352 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1354 * configure.in, version.cin:
1355 Build version.c automatically.
1357 * AUTHORS: Add AUTHORS file.
1359 * README: Update bug report address.
1362 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1364 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1367 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1369 * doc/bison.texinfo: Clean up some formatting.
1371 1998-05-05 Richard Stallman <rms@gnu.org>
1373 * doc/bison.texinfo:
1374 Explain better why to make a pure parser.
1376 1998-01-05 Richard Stallman <rms@gnu.org>
1378 * src/files.c (openfiles):
1379 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1380 find a temporary directory, if possible. Do not unlink files while
1383 1997-08-25 Richard Stallman <rms@gnu.org>
1385 * src/reader.c (stack_offset;):
1386 Change some warni to warns.
1388 * src/lex.c (literalchar): Use warns, not warni.
1390 1997-06-28 Richard Stallman <rms@gnu.org>
1392 * src/bison.s1: Add a Bison version comment.
1394 * src/main.c (fatal, warn, berror):
1397 1997-06-28 Richard Stallman <rms@gnu.org>
1399 * Makefile.in (bison_version): New variable.
1400 (dist): Use that variable.
1401 (bison.s1): Substitute the Bison version into bison.simple.
1403 * bison.simple: Add a Bison version comment.
1405 1997-06-18 Richard Stallman <rms@gnu.org>
1407 * src/main.c (fatal, warn, berror):
1408 Make error messages standard.
1409 (toomany): Improve error message text.
1411 * 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:
1412 new.h renamed to alloc.h.
1414 1997-06-18 Richard Stallman <rms@gnu.org>
1416 * Makefile.in: new.h renamed to alloc.h.
1418 1997-05-24 Richard Stallman <rms@gnu.org>
1420 * src/lex.c (literalchar):
1421 Fix the code for escaping \, " and '.
1423 (lex): Avoid trouble when there are many chars
1424 to discard in a char literal with just several chars in it.
1426 1997-05-17 Richard Stallman <rms@gnu.org>
1429 Use malloc, if using alloca is troublesome.
1430 (YYSTACK_USE_ALLOCA): New flag macro.
1431 Define it for some systems and compilers.
1432 (YYSTACK_ALLOC): New macro.
1433 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1434 If it was malloc'd, free it.
1436 1997-05-17 Richard Stallman <rms@gnu.org>
1439 Use malloc, if using alloca is troublesome.
1440 (YYSTACK_USE_ALLOCA): New flag macro.
1441 Define it for some systems and compilers.
1442 (YYSTACK_ALLOC): New macro.
1443 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1444 If it was malloc'd, free it.
1446 1997-04-23 Richard Stallman <rms@gnu.org>
1449 (alloca) [__hpux]: Always define as __builtin_alloca.
1451 1997-04-23 Richard Stallman <rms@gnu.org>
1454 (alloca) [__hpux]: Always define as __builtin_alloca.
1456 1997-04-22 Richard Stallman <rms@gnu.org>
1459 [__hpux]: Include alloca.h (right for HPUX 10)
1460 instead of declaring alloca (right for HPUX 9).
1462 * src/bison.s1 (__yy_memcpy):
1463 Declare arg `count' as unsigned int.
1464 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1466 1997-04-22 Richard Stallman <rms@gnu.org>
1469 [__hpux]: Include alloca.h (right for HPUX 10)
1470 instead of declaring alloca (right for HPUX 9).
1472 * bison.simple (__yy_memcpy):
1473 Declare arg `count' as unsigned int.
1474 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1476 1997-01-03 Richard Stallman <rms@gnu.org>
1478 * src/allocate.c: [__STDC__ or _MSC_VER]:
1479 Declare calloc and realloc to return void *.
1481 1997-01-02 Richard Stallman <rms@gnu.org>
1484 [_MSC_VER]: Include stdlib.h and process.h.
1485 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1487 * src/main.c (main): Return FAILURE as a value.
1488 (printable_version): Declare arg as int, not char.
1490 1997-01-02 Richard Stallman <rms@gnu.org>
1492 * Makefile.in (dist):
1493 Explicitly check for symlinks, and copy them.
1495 1996-12-19 Richard Stallman <rms@gnu.org>
1498 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1500 1996-12-18 Paul Eggert <eggert@gnu.org>
1502 * src/bison.s1 (yyparse):
1503 If __GNUC__ and YYPARSE_PARAM are both defined,
1504 declare yyparse to have a void * argument.
1506 1996-12-18 Paul Eggert <eggert@gnu.org>
1508 * bison.simple (yyparse):
1509 If __GNUC__ and YYPARSE_PARAM are both defined,
1510 declare yyparse to have a void * argument.
1512 1996-12-17 Richard Stallman <rms@gnu.org>
1514 * src/reduce.c (nbits): Add some casts.
1516 1996-08-12 Richard Stallman <rms@gnu.org>
1518 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1520 1996-08-12 Richard Stallman <rms@gnu.org>
1522 * bison.simple: Test _MSDOS as well as _MSDOS_.
1524 1996-07-31 Richard Stallman <rms@gnu.org>
1527 [__sun && __i386]: Include alloca.h.
1529 1996-07-31 Richard Stallman <rms@gnu.org>
1532 [__sun && __i386]: Include alloca.h.
1534 1996-07-30 Richard Stallman <rms@gnu.org>
1536 * src/bison.s1: Comment change.
1538 * src/bison.s1: Test _MSDOS_, not MSDOS.
1540 1996-07-30 Richard Stallman <rms@gnu.org>
1542 * bison.simple: Comment change.
1544 * bison.simple: Test _MSDOS_, not MSDOS.
1546 1996-06-01 Richard Stallman <rms@gnu.org>
1548 * 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:
1549 Insert `_' macro around many string constants.
1552 Insert `_' macro around many string constants.
1554 (main): Call setlocale, bindtextdomain and textdomain.
1556 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1557 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1558 [ENABLE_NLS]: Include libintl.h.
1559 [ENABLE_NLS] (gettext): Define.
1560 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1561 (N_, PACKAGE, LOCALEDIR): New macros.
1563 1996-06-01 Richard Stallman <rms@gnu.org>
1565 * POTFILES.in: New file.
1567 * Makefile.in (allocate.o):
1568 Define target explicitly.
1570 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1571 (LDFLAGS): Set to @LDFLAGS@.
1572 (configure): Run autoconf only if preceding `cd' succeeds.
1573 (bison.s1): Redirect output to temporary file then move the
1574 temporary to the target, rather than redirecting directly to bison.s1.
1575 (clean): Remove config.status and config.log.
1576 (distclean): Don't remove config.status here.
1578 1996-05-12 Richard Stallman <rms@gnu.org>
1581 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1583 1996-05-12 Richard Stallman <rms@gnu.org>
1586 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1588 1996-05-11 Richard Stallman <rms@gnu.org>
1590 * src/bison.s1 (__yy_memcpy):
1591 Really reorder the args, as was supposedly done on Feb 14 1995.
1592 (yyparse): Calls changed accordingly.
1594 1996-05-11 Richard Stallman <rms@gnu.org>
1596 * Makefile.in (dist): Don't use $(srcdir).
1598 * bison.simple (__yy_memcpy):
1599 Really reorder the args, as was supposedly done on Feb 14 1995.
1600 (yyparse): Calls changed accordingly.
1602 1996-01-27 Richard Stallman <rms@gnu.org>
1604 * src/output.c (output_rule_data):
1605 Test YYERROR_VERBOSE in the conditional
1606 around the definition of ttyname.
1608 1995-12-29 Richard Stallman <rms@gnu.org>
1611 Fix line numbers in #line commands.
1613 1995-12-29 Richard Stallman <rms@gnu.org>
1616 Fix line numbers in #line commands.
1618 1995-12-27 Richard Stallman <rms@gnu.org>
1620 * src/bison.s1 (YYPARSE_PARAM_DECL):
1621 In C++, make it always null.
1622 (YYPARSE_PARAM_ARG): New macro.
1623 (yyparse): Use YYPARSE_PARAM_ARG.
1625 1995-12-27 Richard Stallman <rms@gnu.org>
1627 * bison.simple (YYPARSE_PARAM_DECL):
1628 In C++, make it always null.
1629 (YYPARSE_PARAM_ARG): New macro.
1630 (yyparse): Use YYPARSE_PARAM_ARG.
1632 1995-11-29 Richard Stallman <rms@gnu.org>
1634 * doc/bison.texinfo:
1635 Describe literal string tokens, %raw, %no_lines, %token_table.
1637 1995-11-29 Daniel Hagerty <hag@gnu.org>
1639 * doc/bison.texinfo: Fixed update date
1641 1995-10-16 Richard Stallman <rms@gnu.org>
1643 * src/version.c: Version 1.25.
1645 1995-10-16 Richard Stallman <rms@gnu.org>
1647 * NEWS: *** empty log message ***
1649 1995-10-16 Richard Stallman <rms@gnu.org>
1651 * doc/bison.1, doc/bison.rnh:
1654 1995-10-15 Richard Stallman <rms@gnu.org>
1656 * src/vmsgetargs.c, src/getargs.c:
1657 Added -n, -k, and -raw switches.
1658 (noparserflag, toknumflag, rawtoknumflag): New variables.
1660 * src/symtab.h (SALIAS):
1661 New #define for adding aliases to %token.
1662 (struct bucket): Added `alias' field.
1664 * src/reduce.c (reduce_grammar):
1665 Revise error message.
1666 (print_notices): Remove final `.' from error message.
1668 * src/reader.c (reader_output_yylsp):
1670 (readgram): Use `#if 0' around code that accepted %command
1671 inside grammar rules: The documentation doesn't allow it,
1672 and it will fail since the %command processors scan for the next %.
1673 (parse_token_decl): Extended the %token
1674 declaration to allow a multi-character symbol as an alias.
1675 (parse_thong_decl): New function.
1676 (read_declarations): Added %thong declarations.
1677 (read_declarations): Handle NOOP to deal with allowing
1678 % declarations as another means to specify the flags.
1679 (readgram): Allow %prec prior to semantics embedded in a rule.
1680 (skip_to_char, read_declarations, copy_definition)
1681 (parse_token_decl, parse_start_decl, parse_type_decl)
1682 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1683 (get_type_name, copy_guard, copy_action, readgram)
1684 (get_type, packsymbols): Revised most error messages.
1685 Changed `fatal' to `warnxxx' to avoid aborting for error.
1686 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1687 (read_declarations): Improve the error message for
1688 an invalid character. Do not abort.
1689 (read_declarations, copy_guard, copy_action): Use
1690 printable_version to avoid unprintable characters in printed output.
1691 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1692 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1693 Allow the type of a non-terminal can be given
1694 more than once, as long as all specifications give the same type.
1697 (output_headers, output_trailers, output, output_gram)
1698 (output_rule_data): Implement noparserflag variable.
1699 Implement toknumflag variable.
1700 (output): Call reader_output_yylsp to output LTYPESTR.
1702 * src/main.c (main):
1703 If reader sees an error, don't process the grammar.
1704 (fatals): Updated to not use VARARGS1.
1705 (printable_version, int_to_string, warn, warni, warns, warnss)
1706 (warnsss): New error reporting functions. Avoid abort for error.
1709 Added THONG and NOOP for alias processing.
1710 Added SETOPT for the new code that allows setting options with %flags.
1713 Include getopt.h. Add some extern decls.
1714 (safegetc): New function to deal with EOF gracefully.
1715 (literalchar); new function to deal with reading \ escapes.
1716 (lex): Use literalchar.
1717 (lex): Implemented "..." tokens.
1718 (literalchar, lex, parse_percent_token): Made tokenbuffer
1719 always contain the token. This includes growing the token
1720 buffer while reading an integer.
1721 (parse_percent_token): Replaced if-else statement with percent_table.
1722 (parse_percent_token): Added % declarations as another
1723 way to specify the flags -n, -l, and -r. Also added hooks for
1724 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1725 major changes to files.c.
1726 (lex) Retain in the incoming stream a character following
1728 (skip_white_space, lex): Revised most error messages
1729 and changed fatal to warn to avoid aborting.
1730 (percent_table): Added %thong declarations.
1732 * src/gram.h: Comment changes.
1734 * src/files.c (openfiles, open_extra_files, done):
1736 and actfile file. Handle noparserflag. Both for -n switch.
1738 * src/conflicts.c (resolve_sr_conflict):
1739 Remove use of alloca.
1741 1995-06-01 Jim Meyering <meyering@gnu.org>
1743 * doc/bison.texinfo: *** empty log message ***
1745 1995-05-06 Richard Stallman <rms@gnu.org>
1747 * src/bison.s1: Comment change.
1749 1995-05-06 Richard Stallman <rms@gnu.org>
1751 * bison.simple: Comment change.
1753 1995-05-03 Richard Stallman <rms@gnu.org>
1755 * src/version.c: Version now 1.24.
1757 * src/bison.s1: Change distribution terms.
1759 * src/version.c: Version now 1.23.
1761 1995-05-03 Richard Stallman <rms@gnu.org>
1763 * doc/bison.texinfo:
1764 Rewrite "Conditions for Using Bison".
1765 Update version to 1.24.
1767 1995-05-03 Richard Stallman <rms@gnu.org>
1769 * bison.simple: Change distribution terms.
1771 1995-02-23 Richard Stallman <rms@gnu.org>
1773 * src/files.c: Test __VMS_POSIX as well as VMS.
1775 1995-02-14 Jim Meyering <meyering@gnu.org>
1777 * src/bison.s1 (__yy_memcpy):
1778 Renamed from __yy_bcopy to avoid
1779 confusion. Reverse FROM and TO arguments to be consistent with
1782 1995-02-14 Jim Meyering <meyering@gnu.org>
1784 * bison.simple (__yy_memcpy):
1785 Renamed from __yy_bcopy to avoid
1786 confusion. Reverse FROM and TO arguments to be consistent with
1789 1994-11-10 David J. MacKenzie <djm@gnu.org>
1795 * Makefile.in (DISTFILES): Include NEWS.
1797 * Makefile.in (DISTFILES):
1798 Include install-sh, not install.sh.
1800 * configure.in: Update to Autoconf v2 macro names.
1802 1994-10-05 David J. MacKenzie <djm@gnu.org>
1804 * Makefile.in: fix typo
1806 * Makefile.in (prefix, exec_prefix):
1807 Let configure set them.
1809 1994-09-28 David J. MacKenzie <djm@gnu.org>
1811 * Makefile.in: Set datadir to $(prefix)/share.
1813 1994-09-15 Richard Stallman <rms@gnu.org>
1816 Update copyright notice and GPL version.
1818 1994-09-15 Richard Stallman <rms@gnu.org>
1821 Update copyright notice and GPL version.
1823 1994-07-12 Richard Stallman <rms@gnu.org>
1825 * src/reduce.c, src/reader.c:
1828 1994-05-05 David J. MacKenzie <djm@gnu.org>
1830 * Makefile.in: entered into RCS
1832 1994-03-26 Richard Stallman <rms@gnu.org>
1834 * src/bison.s1: entered into RCS
1836 1994-03-26 Richard Stallman <rms@gnu.org>
1838 * bison.simple: entered into RCS
1840 1994-03-25 Richard Stallman <rms@gnu.org>
1842 * src/main.c: entered into RCS
1844 1994-03-24 Richard Stallman <rms@gnu.org>
1846 * src/conflicts.c: entered into RCS
1848 1994-01-02 Richard Stallman <rms@gnu.org>
1850 * Makefile.in: *** empty log message ***
1852 1993-11-21 Richard Stallman <rms@gnu.org>
1854 * src/bison.s1: *** empty log message ***
1856 1993-11-21 Richard Stallman <rms@gnu.org>
1858 * doc/bison.texinfo: entered into RCS
1860 * doc/bison.texinfo: *** empty log message ***
1862 1993-11-21 Richard Stallman <rms@gnu.org>
1864 * bison.simple: *** empty log message ***
1866 1993-10-25 David J. MacKenzie <djm@gnu.org>
1868 * doc/bison.texinfo: *** empty log message ***
1870 1993-10-19 Richard Stallman <rms@gnu.org>
1872 * src/bison.s1: *** empty log message ***
1874 1993-10-19 Richard Stallman <rms@gnu.org>
1876 * bison.simple: *** empty log message ***
1878 1993-10-14 Richard Stallman <rms@gnu.org>
1880 * src/bison.s1: *** empty log message ***
1882 1993-10-14 Richard Stallman <rms@gnu.org>
1884 * bison.simple: *** empty log message ***
1886 1993-09-14 David J. MacKenzie <djm@gnu.org>
1888 * doc/bison.texinfo: *** empty log message ***
1890 1993-09-13 Noah Friedman <friedman@gnu.org>
1892 * Makefile.in: *** empty log message ***
1894 1993-09-10 Richard Stallman <rms@gnu.org>
1896 * src/conflicts.c: *** empty log message ***
1898 * src/system.h: entered into RCS
1900 1993-09-10 Richard Stallman <rms@gnu.org>
1902 * doc/bison.1: entered into RCS
1904 1993-09-06 Noah Friedman <friedman@gnu.org>
1906 * src/version.c: entered into RCS
1908 1993-09-06 Noah Friedman <friedman@gnu.org>
1910 * Makefile.in: *** empty log message ***
1912 1993-07-30 David J. MacKenzie <djm@gnu.org>
1914 * Makefile.in: *** empty log message ***
1916 1993-07-24 Richard Stallman <rms@gnu.org>
1918 * src/bison.s1: *** empty log message ***
1920 1993-07-24 Richard Stallman <rms@gnu.org>
1922 * bison.simple: *** empty log message ***
1924 1993-07-08 David J. MacKenzie <djm@gnu.org>
1926 * Makefile.in: *** empty log message ***
1928 1993-07-04 Richard Stallman <rms@gnu.org>
1930 * src/bison.s1: *** empty log message ***
1932 1993-07-04 Richard Stallman <rms@gnu.org>
1934 * bison.simple: *** empty log message ***
1936 1993-06-26 David J. MacKenzie <djm@gnu.org>
1938 * src/getargs.c: entered into RCS
1940 1993-06-26 David J. MacKenzie <djm@gnu.org>
1942 * doc/bison.texinfo: *** empty log message ***
1944 * doc/bison.1: New file.
1946 1993-06-25 Richard Stallman <rms@gnu.org>
1948 * src/getargs.c: New file.
1950 1993-06-16 Richard Stallman <rms@gnu.org>
1952 * src/bison.s1: *** empty log message ***
1954 1993-06-16 Richard Stallman <rms@gnu.org>
1956 * bison.simple: *** empty log message ***
1958 1993-06-03 Richard Stallman <rms@gnu.org>
1960 * src/bison.s1: New file.
1962 1993-06-03 Richard Stallman <rms@gnu.org>
1964 * doc/bison.texinfo: *** empty log message ***
1966 1993-06-03 Richard Stallman <rms@gnu.org>
1968 * bison.simple: New file.
1970 1993-05-19 Richard Stallman <rms@gnu.org>
1972 * doc/bison.texinfo: New file.
1974 1993-05-07 Noah Friedman <friedman@gnu.org>
1976 * Makefile.in: *** empty log message ***
1978 1993-04-28 Noah Friedman <friedman@gnu.org>
1980 * src/reader.c: *** empty log message ***
1982 1993-04-23 Noah Friedman <friedman@gnu.org>
1984 * src/alloc.h: entered into RCS
1986 1993-04-20 David J. MacKenzie <djm@gnu.org>
1988 * src/version.c: *** empty log message ***
1990 * src/files.c, src/allocate.c:
1993 * src/reader.c: *** empty log message ***
1995 * src/lex.c: entered into RCS
1997 * src/conflicts.c: New file.
1999 * src/symtab.c: entered into RCS
2001 * src/alloc.h: New file.
2003 * src/LR0.c: entered into RCS
2005 1993-04-18 Noah Friedman <friedman@gnu.org>
2007 * src/reader.c: New file.
2009 * src/version.c: *** empty log message ***
2011 1993-04-18 Noah Friedman <friedman@gnu.org>
2013 * Makefile.in: *** empty log message ***
2015 1993-04-17 Noah Friedman <friedman@gnu.org>
2017 * Makefile.in: *** empty log message ***
2019 1993-04-15 Richard Stallman <rms@gnu.org>
2021 * src/main.c, src/files.c:
2024 1993-04-15 Noah Friedman <friedman@gnu.org>
2026 * configure.in: entered into RCS
2028 * configure.in: *** empty log message ***
2030 * configure.in: New file.
2032 1993-04-14 Richard Stallman <rms@gnu.org>
2034 * Makefile.in: New file.
2036 1993-04-13 Richard Stallman <rms@gnu.org>
2038 * src/version.c: New file.
2040 1993-03-25 Richard Stallman <rms@gnu.org>
2042 * src/output.c: entered into RCS
2044 1992-09-25 Richard Stallman <rms@gnu.org>
2046 * configure.bat: entered into RCS
2048 1992-06-22 Richard Stallman <rms@gnu.org>
2050 * src/vmsgetargs.c: entered into RCS
2052 1992-06-22 Richard Stallman <rms@gnu.org>
2054 * doc/bison.rnh: entered into RCS
2056 1992-04-20 David J. MacKenzie <djm@gnu.org>
2058 * README: entered into RCS
2060 1992-01-22 Richard Stallman <rms@gnu.org>
2062 * src/machine.h: entered into RCS
2064 1991-12-21 Richard Stallman <rms@gnu.org>
2066 * src/lalr.c, src/closure.c:
2069 1991-12-20 Richard Stallman <rms@gnu.org>
2071 * src/state.h: entered into RCS
2073 1991-12-18 Richard Stallman <rms@gnu.org>
2075 * src/print.c, src/nullable.c, src/derives.c:
2078 1991-11-03 David J. MacKenzie <djm@gnu.org>
2080 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2083 1988-09-09 Richard Stallman <rms@gnu.org>
2085 * src/bison.hairy: entered into RCS
2087 1987-12-16 Richard Stallman <rms@gnu.org>
2089 * REFERENCES: entered into RCS