1 2001-08-03 Akim Demaille <akim@epita.fr>
5 2001-08-03 Akim Demaille <akim@epita.fr>
7 * src/getargs.c, src/getarg.h (skeleton)): Constify.
8 * src/lex.c (literalchar): Avoid name clashes on `buf'.
9 * src/getargs.c: Include complain.h.
10 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
11 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
13 2001-08-03 Akim Demaille <akim@epita.fr>
15 * src/reader.c (readgram): Display hidden chars in error messages.
17 2001-08-03 Akim Demaille <akim@epita.fr>
19 Update to gettext 0.10.39.
21 2001-08-03 Akim Demaille <akim@epita.fr>
25 2001-08-01 Marc Autret <autret_m@epita.fr>
27 * doc/bison.texinfo: Update.
28 * doc/bison.1 (mandoc): Update.
29 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
30 * src/files.c: Support output files extensions computing.
31 (src_extension): New static variable.
32 (header_extension): New static variable.
34 (get_extension_index): New function, gets the index of an extension
36 (compute_exts_from_gf): New function, computes extensions from the
37 grammar file extension.
38 (compute_exts_from_src): New functions, computes extensions from the
39 C source file extension, file given by ``-o'' option.
40 (compute_base_names): Update.
41 (output_files): Update.
43 2001-08-01 Robert Anisko <anisko_r@epita.fr>
45 * doc/bison.texi: Document @$.
46 (Locations): New section.
48 2001-07-18 Akim Demaille <akim@epita.fr>
50 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
51 * config/prev-version.txt, config/move-if-change: New.
52 * Makefile.am: Adjust.
54 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
56 * src/bison.simple (yyparse): Suppress warning `comparaison
57 between signed and unsigned'.
59 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
61 * src/getargs.h (raw_flag): Remove.
62 * src/getargs.c: Die on `-r'/`--raw'.
63 * src/lex.c (parse_percent_token): Die on `%raw'.
64 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
65 * tests/calc.at: Suppress test with option `--raw'.
67 2001-07-14 Akim Demaille <akim@epita.fr>
70 * configure.in: Require Autoconf 2.50.
71 Update to gettext 0.10.38.
73 2001-03-16 Akim Demaille <akim@epita.fr>
75 * doc/bison.texinfo: ANSIfy the examples.
77 2001-03-16 Akim Demaille <akim@epita.fr>
79 * getargs.c (skeleton): New variable.
80 (longopts): --skeleton is a new option.
81 (shortopts, getargs): -S is a new option.
82 * getargs.h: Declare skeleton.
83 * output.c (output_parser): Use it.
85 2001-03-16 Akim Demaille <akim@epita.fr>
87 * m4/strerror_r.m4: New.
88 * m4/error.m4: Run AC_FUNC_STRERROR_R.
89 * lib/error.h, lib/error.c: Update.
91 2001-03-16 Akim Demaille <akim@epita.fr>
93 * src/getargs.c (longopts): Clean up.
95 2001-02-21 Akim Demaille <akim@epita.fr>
97 * src/reader.c (gensym): `gensym_count' is your own.
98 Use a static buf to create the symbol name, as token_buffer is no
101 2001-02-08 Akim Demaille <akim@epita.fr>
103 * src/conflicts.c (conflict_report): Be sure not to append to res
104 between two calls, which could happen if both first sprintf were
105 skipped, but not the first cp += strlen.
107 2001-02-08 Akim Demaille <akim@epita.fr>
109 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
110 New, from fileutils 4.0.37.
111 * configure.in: Require Autoconf 2.49c. I took some time before
112 making this decision. This is the only way out for portability
113 issues in Bison, it would mean way too much duplicate effort to
114 import in Bison features implemented in 2.49c since 2.13.
115 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
117 2001-02-02 Akim Demaille <akim@epita.fr>
119 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
120 * lib/xalloc.h, lib/xmalloc.c: Update.
122 2001-01-19 Akim Demaille <akim@epita.fr>
124 Get rid of the ad hoc handling of token_buffer in the scanner: use
127 * src/lex.c (token_obstack): New.
128 (init_lex): Initialize it. No longer call...
129 (grow_token_buffer): this. Remove it.
130 Adjust all the places which used it to use the obstack.
132 2001-01-19 Akim Demaille <akim@epita.fr>
134 * src/lex.h: Rename all the tokens:
135 s/\bENDFILE\b/tok_eof/g;
136 s/\bIDENTIFIER\b/tok_identifier/g;
138 Let them be enums, not #define, to ease debugging.
141 2001-01-18 Akim Demaille <akim@epita.fr>
143 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
144 * src/lex.c (maxtoken, grow_token_buffer): Static.
146 2001-01-18 Akim Demaille <akim@epita.fr>
148 Since we now use obstacks, more % directives can be enabled.
150 * src/lex.c (percent_table): Also accept `%yacc',
151 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
153 Handle the actions for `%semantic_parser' and `%pure_parser' here,
154 instead of returning a token.
155 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
156 * src/reader.c (read_declarations): Adjust.
157 * src/files.c (open_files): Don't call `compute_base_names', don't
158 compute `attrsfile' since they depend upon data which might be
159 *in* the input file now.
160 (output_files): Do it here.
161 * src/output.c (output_headers): Document the fact that this patch
162 introduces a guaranteed SEGV for semantic parsers.
163 * doc/bison.texinfo: Document them.
164 * tests/suite.at: Exercise these %options.
166 2000-12-20 Akim Demaille <akim@epita.fr>
168 Also handle the output file (--verbose) with obstacks.
170 * files.c (foutput): Remove.
171 (output_obstack): New.
172 Adjust all dependencies.
173 * src/conflicts.c: Return a string.
174 * src/system.h (obstack_grow_string): Rename as...
175 (obstack_sgrow): this. Be ready to work with non literals.
176 (obstack_fgrow4): New.
178 2000-12-20 Akim Demaille <akim@epita.fr>
180 * src/files.c (open_files): Fix the computation of short_base_name
181 in the case of `-o foo.tab.c'.
183 2000-12-20 Akim Demaille <akim@epita.fr>
185 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
186 (copy_dollar): Now that everything uses obstacks, get rid of the
189 2000-12-20 Akim Demaille <akim@epita.fr>
191 * src/files.c (open_files): Actually the `.output' file is based
192 on the short_base_name, not base_name.
193 * tests/suite.at (Checking output file names): Adjust.
195 2000-12-20 Akim Demaille <akim@epita.fr>
197 * src/bison.s1: Remove, we now use directly...
198 * src/bison.simple: this.
199 * src/Makefile.am: Use pkgdata instead of data.
201 2000-12-20 Akim Demaille <akim@epita.fr>
203 * src/files.c (guard_obstack): New.
204 (open_files): Initialize it.
205 (output_files): Dump it...
206 * src/files.h: Export it.
207 * src/reader.c (copy_guard): Use it.
209 2000-12-19 Akim Demaille <akim@epita.fr>
211 * src/files.c (outfile, defsfile, actfile): Removed as global
213 (open_files): Don't compute them.
214 (output_files): Adjust.
215 (base_name, short_base_name): Be global.
218 2000-12-19 Akim Demaille <akim@epita.fr>
220 * src/files.c (strsuffix): New.
221 (stringappend): Be just like strcat but allocate.
222 (base_names): Eve out from open_files.
223 Try to simplify the rather hairy computation of base_name and
225 (open_files): Use it.
226 * tests/suite.at (Checking output file names): New test.
228 2000-12-19 Akim Demaille <akim@epita.fr>
230 * src/system.h (obstack_grow_literal_string): Rename as...
231 (obstack_grow_string): this.
232 * src/output.c (output_parser): Recognize `%% actions' instead of
234 * src/bison.s1: s/$/%% actions/.
235 * src/bison.hairy: Likewise.
237 2000-12-19 Akim Demaille <akim@epita.fr>
239 * src/output.c (output_parser): Compute the `#line' lines when
241 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
242 Suggested by Hans Aberg.
244 2000-12-19 Akim Demaille <akim@epita.fr>
246 Let the handling of the skeleton files be local to the procedures
249 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
251 (fparser, open_extra_files): Remove.
252 (open_files, output_files): Don't take care of fparser.
253 * src/files.h: Adjust.
254 * src/output.c (output_parser): Open and close the file to the
256 * src/reader.c (read_declarations): When %semantic_parser, open
259 2000-12-19 Akim Demaille <akim@epita.fr>
261 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
262 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
264 2000-12-19 Akim Demaille <akim@epita.fr>
266 * src/files.c (open_files): Yipee! We no longer need all the code
267 looking for `/tmp' since we have no tmp file.
269 2000-12-19 Akim Demaille <akim@epita.fr>
271 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
273 * src/files.c (open_files): Less dependency on MSDOS etc.
275 2000-12-14 Akim Demaille <akim@epita.fr>
277 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
278 Provide a default definition.
279 Use it when executing the default @ action.
280 * src/reader.c (reader_output_yylsp): No longer include
281 `timestamp' and `text' in the default YYLTYPE.
283 2000-12-12 Akim Demaille <akim@epita.fr>
285 * src/reader.c (copy_definition, parse_union_decl, copy_action)
286 (copy_guard): Quote the file names.
287 Reported by Laurent Mascherpa.
289 2000-12-12 Akim Demaille <akim@epita.fr>
291 * src/output.c (output_headers, output_program, output): Be sure
292 to escape special characters when outputting filenames.
293 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
294 (output_headers): Don't depend on them, Use ACTSTR.
296 2000-11-17 Akim Demaille <akim@epita.fr>
298 * lib/obstack.h: Formatting changes.
299 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
300 prevents type checking.
301 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
302 cast the value to (void *): assigning a `foo *' to a `void *'
304 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
305 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
308 2000-11-17 Akim Demaille <akim@epita.fr>
310 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
312 (suite.m4, regression.m4, calc.m4): these.
313 * tests/atgeneral.m4: Update from CVS Autoconf.
315 2000-11-17 Akim Demaille <akim@epita.fr>
317 * tests/regression.m4 (%union and --defines): New test,
318 demonstrating a current bug in the obstack implementation.
320 2000-11-17 Akim Demaille <akim@epita.fr>
322 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
324 Use them to declare the variables which are global or local to
327 2000-11-17 Akim Demaille <akim@epita.fr>
329 * acconfig.h: Remove, no longer used.
331 2000-11-07 Akim Demaille <akim@epita.fr>
333 * src: s/Copyright (C)/Copyright/g.
335 2000-11-07 Akim Demaille <akim@epita.fr>
337 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
339 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
341 2000-11-07 Akim Demaille <akim@epita.fr>
343 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
344 Merge in a single CPP if/else.
346 2000-11-07 Akim Demaille <akim@epita.fr>
348 * src/output.c (output): Remove useless variables.
349 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
350 argument `data' for consistency with the prototypes.
352 (obstack_copy, obstack_copy0): Rename the second argument as
353 `address' for consistency. Qualify it `const'.
354 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
355 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
356 `const' their input argument (`data' or `address').
357 Adjust the corresponding macros to include `const' in casts.
359 2000-11-03 Akim Demaille <akim@epita.fr>
361 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
362 s/PFILE1/BISON_HAIRY/.
365 2000-11-03 Akim Demaille <akim@epita.fr>
367 For some reason, this was not applied.
369 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
370 `unlink': it's no longer used.
372 2000-11-03 Akim Demaille <akim@epita.fr>
374 * src/files.c (skeleton_find): New function, eved out of...
375 (open_files, open_extra_files): here.
377 2000-11-03 Akim Demaille <akim@epita.fr>
381 * src/files.c (obstack_save): New function.
383 (output_files): this.
385 * src/main.c (main): Don't use `atexit' to register `done', since
386 it no longer has to remove tmp files, just call `output_files'
387 when there are no errors.
389 2000-11-02 Akim Demaille <akim@epita.fr>
391 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
392 `unlink': it's no longer used.
393 * src/files.h: Formatting changes.
395 2000-11-02 Akim Demaille <akim@epita.fr>
397 Remove the last uses of mktemp and unlink/delete.
399 * src/files.c (fdefines, ftable): Removed.
400 (defines_ostack, table_obstack): New.
401 Adjust dependencies of the former into uses of the latter.
402 * src/output.c (output_short_or_char_table, output_short_table):
403 Convert to using obstacks.
404 * src/reader.c (copy_comment2): Accept one FILE * and two
406 (output_token_defines, reader_output_yylsp): Use obstacks.
407 * src/system.h (obstack_fgrow3): New.
409 2000-11-01 Akim Demaille <akim@epita.fr>
411 Change each use of `fattrs' into a use of `attrs_obstack'.
413 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
414 * src/files.c (fattrs): Remove.
415 (attrs_obstack): New.
416 Adjust all dependencies.
417 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
419 2000-11-01 Akim Demaille <akim@epita.fr>
422 Change each use of `faction' into a use of `action_obstack'.
424 * lib/obstack.h, lib/obstack.c: New files.
425 * src/files.c (faction): Remove.
426 (action_obstack): New.
427 Adjust all dependencies.
429 2000-10-20 Akim Demaille <akim@epita.fr>
431 * lib/quote.h (PARAMS): New macro. Use it.
433 2000-10-16 Akim Demaille <akim@epita.fr>
435 * src/output.c (output_short_or_char_table): New function.
436 (output_short_table, output_token_translations): Use it.
437 (goto_actions): Use output_short_table.
439 2000-10-16 Akim Demaille <akim@epita.fr>
441 * src/symtab.c (bucket_new): New function.
444 * src/output.c (output_short_table): New argument to display the
445 comment associated with the table.
447 (output_gram): Use it.
448 (output_rule_data): Nicer output layout for YYTNAME.
450 2000-10-16 Akim Demaille <akim@epita.fr>
452 * src/lex.c (read_typename): New function.
454 * src/reader.c (copy_dollar): Likewise.
456 2000-10-16 Akim Demaille <akim@epita.fr>
458 * src/reader.c (copy_comment2): Expect the input stream to be on
459 the `/' which is suspected to open a comment, instead of being
460 called after `//' or `/*' was read.
461 (copy_comment, copy_definition, parse_union_decl, copy_action)
462 (copy_guard): Adjust.
464 2000-10-16 Akim Demaille <akim@epita.fr>
466 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
467 `read_signed_integer'.
469 2000-10-16 Akim Demaille <akim@epita.fr>
471 * src/reader.c (copy_dollar): New function.
472 (copy_guard, copy_action): Use it.
474 2000-10-16 Akim Demaille <akim@epita.fr>
476 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
477 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
478 New files, from Fileutils 4.0.27.
479 * src/main.c (printable_version): Remove.
480 * src/lex.c, src/reader.c: Use `quote'.
482 2000-10-04 Akim Demaille <akim@epita.fr>
484 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
486 2000-10-04 Akim Demaille <akim@epita.fr>
488 * doc/bison.texinfo: Various typos spotted by Neil Booth.
490 2000-10-04 Akim Demaille <akim@epita.fr>
492 When a literal string is used to define two different tokens,
493 `bison -v' segfaults.
494 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
496 * tests/regression.m4: New file.
497 Include the core of the sample provided by Piotr Gackiewicz.
498 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
501 2000-10-04 Akim Demaille <akim@epita.fr>
503 * src/reader.c (parse_expect_decl): Keep `count' within the size
507 2000-10-02 Paul Eggert <eggert@twinsun.com>
509 * bison.s1 (yyparse): Assign the default value
510 unconditionally, to avoid a GCC warning and make the parser a
513 2000-10-02 Akim Demaille <akim@epita.fr>
515 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
518 2000-10-02 Akim Demaille <akim@epita.fr>
520 * src/derives.c, src/print.c, src/reduce.c: To ease the
521 translation, move some `\n' out of the translated strings.
523 2000-10-02 Akim Demaille <akim@epita.fr>
525 The location tracking mechanism is precious for parse error
526 messages. Nevertheless, it is enabled only when `@n' is used in
527 the grammar, which is a different issue (you can use it in error
528 message, but not in the grammar per se). Therefore, there should
529 be another means to enable it.
531 * src/getargs.c (getargs): Support `--locations'.
533 * src/getargs.h (locationsflag): Export it.
534 * src/lex.c (percent_table): Support `%locations'.
535 * src/reader.c (yylsp_needed): Remove this variable, now replaced
536 with `locationsflag'.
537 * doc/bison.texinfo: Document `--locations' and `%locations'.
539 * tests/calc.m4: Test it.
541 For regularity of the names, replace each
542 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
543 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
544 In addition replace each `flag' with `_flag'.
546 2000-10-02 Akim Demaille <akim@epita.fr>
548 Also test parse error messages, including with YYERROR_VERBOSE.
550 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
552 Use it to check the computations.
553 Use it to check `nonassoc' is honored.
554 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
556 (_AT_CHECK_CALC): Adjust to this option.
557 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
559 2000-10-02 Akim Demaille <akim@epita.fr>
561 Test also `--verbose', `--defines' and `--name-prefix'. Testing
562 the latter demonstrates a flaw in the handling of non debugging
563 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
564 was used in order to simplify:
580 unfortunately this leads to a CPP conflict when
581 `--name-prefix=foo' is used since it produces `#define yydebug
584 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
585 (YYDPRINTF): New macro.
587 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
589 Also test `--verbose', `--defines' and `--name-prefix'.
591 2000-10-02 Akim Demaille <akim@epita.fr>
593 Improve the readability of the produced parsers.
595 * src/bison.s1: Formatting changes.
596 Improve the comment related to the `$' mark.
597 (yydefault): Don't fall through to `yyresume': `goto' there.
598 * src/output.c (output_parser): When the `$' is met, skip the end
600 New variable, `number_of_dollar_signs', to check there's exactly
601 one `$' in the parser skeleton.
603 2000-10-02 Akim Demaille <akim@epita.fr>
605 * lib/xstrdup.c: New file, from the fileutils.
606 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
607 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
608 instead of strlen + xmalloc + strcpy.
609 * src/symtab.c (copys): Remove, use xstrdup instead.
611 2000-10-02 Akim Demaille <akim@epita.fr>
613 * src/gram.h (associativity): New enum type which replaces the
614 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
615 `right_assoc', `left_assoc' and `non_assoc'.
616 Adjust all dependencies.
617 * src/reader.c: Formatting changes.
618 (LTYPESTR): Don't define it, use it as a literal in
619 `reader_output_yylsp'.
620 * src/symtab.h (symbol_class): New enum type which replaces the
621 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
622 `sunknown', `stoken and `snterm'.
624 2000-10-02 Akim Demaille <akim@epita.fr>
626 * src/getargs.c (fixed_outfiles): Rename as...
627 (yaccflag): for consistency and accuracy.
630 2000-10-02 Akim Demaille <akim@epita.fr>
632 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
633 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
634 difficult and introduced a lot of core dump. It turns out that
635 Bison used an implementation of `xmalloc' based on `calloc', and
636 at various places it does depend upon the initialization to 0. I
637 have not tried to isolate the pertinent places, and all the former
638 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
639 someone should address this issue.
641 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
642 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
645 * src/warshall.h: New file.
648 2000-10-02 Akim Demaille <akim@epita.fr>
650 Various anti-`extern in *.c' changes.
652 * src/system.h: Include `assert.h'.
654 2000-10-02 Akim Demaille <akim@epita.fr>
656 * src/state.h (nstates, final_state, first_state, first_shift)
657 (first_reduction): Move their exportation from here...
658 * src/LR0.h: to here.
660 * src/getargs.c (statisticsflag): New variable.
661 Add support for `--statistics'.
664 Remove a lot of now useless `extern' statements in most files.
666 2000-10-02 Akim Demaille <akim@epita.fr>
668 * src/LR0.h: New file.
671 2000-10-02 Akim Demaille <akim@epita.fr>
673 * src/print.h: New file.
675 * src/print.c: Formatting and ordering changes.
676 (verbose, terse): Replace with...
677 (print_results): this new function.
680 2000-10-02 Akim Demaille <akim@epita.fr>
682 * src/conflicts.c (conflict_report): New function.
683 (conflict_log, verbose_conflict_log): Replace with...
684 (print_conflicts): this function.
686 * src/conflicts.h: New file.
687 Propagate its inclusion.
689 2000-10-02 Akim Demaille <akim@epita.fr>
691 * src/nullable.h: New file.
692 Propagate its inclusion.
693 * src/nullable.c: Formatting changes.
695 2000-10-02 Akim Demaille <akim@epita.fr>
697 * src/reduce.h: New file.
698 Propagate its inclusion.
699 * src/reduce.c: Topological sort and other formatting changes.
700 (bool, TRUE, FALSE): Move their definition to...
701 * src/system.h: here.
703 2000-10-02 Akim Demaille <akim@epita.fr>
705 * src/files.c: Formatting changes.
706 (tryopen, tryclose, openfiles): Rename as...
707 (xfopen, xfclose, open_files): this.
708 (stringappend): static.
709 * src/files.h: Complete the list of exported symbols.
712 2000-10-02 Akim Demaille <akim@epita.fr>
714 * src/reader.h: New file.
715 Propagate its use instead of tedious list of `extern' and
717 * src/reader.c: Formatting changes, topological sort,
720 2000-10-02 Akim Demaille <akim@epita.fr>
722 * src/lex.h: Prototype `lex.c' exported functions.
723 * src/reader.c: Adjust.
724 * src/lex.c: Formatting changes.
725 (safegetc): Rename as...
728 2000-10-02 Akim Demaille <akim@epita.fr>
730 * src/lalr.h: New file.
731 Propagate its inclusion instead of prototypes and `extern'.
732 * src/lalr.c: Formatting changes, topological sorting etc.
734 2000-10-02 Akim Demaille <akim@epita.fr>
736 * src/output.c (token_actions): Introduce a temporary array,
737 YYDEFACT, that makes it possible for this function to use
740 2000-10-02 Akim Demaille <akim@epita.fr>
742 `user_toknums' is output as a `short[]' in `output.c', while it is
743 defined as a `int[]' in `reader.c'. For consistency with the
744 other output tables, `user_toknums' is now defined as a table of
747 * src/reader.c (user_toknums): Be a short table instead of an int
751 Factor the short table outputs.
753 * src/output.c (output_short_table): New function.
754 * src/output.c (output_gram, output_stos, output_rule_data)
755 (output_base, output_table, output_check): Use it.
757 2000-10-02 Akim Demaille <akim@epita.fr>
759 * src/output.c (output): Topological sort of the functions, in
760 order to get rid of the `static' prototypes.
761 No longer use `register'.
762 * src/output.h: New file.
763 Propagate its inclusion in files explicitly prototyping functions
766 2000-09-21 Akim Demaille <akim@epita.fr>
768 * src/atgeneral.m4: Update from Autoconf.
770 2000-09-21 Akim Demaille <akim@epita.fr>
772 * src/closure.h: New file.
773 * src/closure.c: Formatting changes, topological sort over the
774 functions, use of closure.h.
775 (initialize_closure, finalize_closure): Rename as...
776 (new_closure, free_closure): these. Adjust dependencies.
777 * src/LR0.c: Formatting changes, topological sort, use of
779 (initialize_states): Rename as...
781 * src/Makefile.am (noinst_HEADERS): Adjust.
783 2000-09-20 Akim Demaille <akim@epita.fr>
785 * src/acconfig.h: Don't protect config.h against multiple
788 * src/system.h: Define PARAMS.
789 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
790 purpose of config.h. system.h must not try to fix wrong
791 definitions in config.h.
793 2000-09-20 Akim Demaille <akim@epita.fr>
795 * src/derives.h: New file.
796 * src/main.c, src/derives.h: Use it.
798 * src/Makefile.am (noinst_HEADERS): Adjust.
800 2000-09-20 Akim Demaille <akim@epita.fr>
802 * tests/atgeneral.m4: Update from Autoconf.
803 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
804 (AT_CHECK_CALC): New macros.
805 Use these macros to test bison with options `', `--raw',
806 `--debug', `--yacc', `--yacc --debug'.
808 2000-09-19 Akim Demaille <akim@epita.fr>
810 * src/output.c: Formatting changes.
811 * src/machine.h: Remove, leaving its contents in...
812 * src/system.h: here.
814 Adjust all dependencies on stdio.h and machine.h.
815 * src/getargs.h: New file.
816 Let all `extern' declarations about getargs.c be replaced with
817 inclusion of `getargs.h'.
818 * src/Makefile.am (noinst_HEADERS): Adjust.
820 * tests/calc.m4 (yyin): Be initialized in main, not on the global
822 (yyerror): Returns void, not int.
823 * doc/bison.texinfo: Formatting changes.
825 2000-09-19 Akim Demaille <akim@epita.fr>
827 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
830 2000-09-18 Akim Demaille <akim@epita.fr>
832 * configure.in: Append WARNING_CFLAGS to CFLAGS.
833 * src/Makefile.am (INCLUDES): Don't.
834 Be ready to fetch headers in lib/.
836 2000-09-18 Akim Demaille <akim@epita.fr>
838 * doc/bison.texinfo: Update the copyright.
839 ANSIfy and GNUify the examples.
842 2000-09-18 Akim Demaille <akim@epita.fr>
844 First set of tests: use the `calc' example from the documentation.
846 * src/bison.s1 (yyparse): Condition the code using `yytname' which
847 is defined only when YYDEBUG is.
848 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
849 * src/files.c (tryopen, tryclose): Formatting changes.
850 Move to the top and be static.
851 * src/reader.c (read_signed_integer): Likewise.
852 * tests/calc.m4: New file.
853 * Makefile.am, suite.m4: Adjust.
854 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
856 2000-09-18 Akim Demaille <akim@epita.fr>
858 Add support for an Autotest test suite for Bison.
860 * m4/m4.m4, m4/atconfig.m4: New files.
861 * m4/Makefile.am (EXTRA_DIST): Adjust.
862 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
864 * src/getargs.c: Display a more standard --version message.
865 * src/reader.c (reader): Formatting changes.
866 No longer depend upon VERSION_STRING.
867 * configure.in: No longer use `dnl'.
868 Set up the test suite and the new directory `tests/.
869 (VERSION_STRING): Remove.
871 2000-04-14 Akim Demaille <akim@epita.fr>
873 * src/reader.c (copy_comment2): New function, same as former
874 `copy_comment', but outputs into two FILE *.
875 (copy_comment): Use it.
876 (parse_union_decl): Use it.
877 (get_type, parse_start_decl): Use the same `invalid' message.
878 (parse_start_decl, parse_union_decl): Use the same `multiple'
880 (parse_union_decl, copy_guard, copy_action): Use the same
882 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
884 2000-03-31 Akim Demaille <akim@epita.fr>
886 * src/files.c (tryopen, tryclose): Move to the top.
889 2000-03-31 Akim Demaille <akim@epita.fr>
891 * src/main.c (main): Don't call `done', exit does it.
893 2000-03-31 Akim Demaille <akim@epita.fr>
895 * allocate.c: s/return (foo)/return foo/.
898 * output.c: Likewise.
899 * reader.c: Likewise.
900 * symtab.c: Likewise.
901 * vmsgetargs.c: Likewise.
903 2000-03-31 Akim Demaille <akim@epita.fr>
905 Clean up the error reporting functions.
907 * src/report.c: New file.
908 * src/report.h: Likewise.
909 * src/Makefile.am: Adjust.
910 * m4/error.m4: New file.
911 * m4/Makefile.am: Adjust.
912 * configure.in (jm_PREREQ_ERROR): Call it.
913 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
915 (fatal, fatals): Remove. All callers use complain.c::fatal.
916 (warn, warni, warns, warnss, warnss): Remove. All callers use
917 complain.c::complain.
918 (toomany): Remove, use fatal instead.
919 * src/files.c (done): No argument, use complain_message_count.
920 * src/main.c (main): Register `done' to `atexit'.
922 * src/getargs.c (usage): More `fputs', less `fprintf'.
924 2000-03-28 Akim Demaille <akim@epita.fr>
926 * lib/: New directory.
927 * Makefile.am (SUBDIRS): Adjust.
928 * configure.in: Adjust.
929 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
931 * src/alloca.c: Moved to lib/.
932 * src/getopt.c: Likewise.
933 * src/getopt1.c: Likewise.
934 * src/getopt.h: Likewise.
935 * src/ansi2knr.c: Likewise.
936 * src/ansi2knr.1: Likewise.
937 * src/Makefile.am: Adjust.
938 * lib/Makefile.am: New file.
940 2000-03-28 Akim Demaille <akim@epita.fr>
942 * src/getargs.c (usage): Refresh the help message.
944 2000-03-17 Akim Demaille <akim@epita.fr>
946 * src/getopt1.c: Updated from textutils 2.0e
947 * src/getopt.c: Likewise.
948 * src/getopt.h: Likewise.
950 2000-03-17 Akim Demaille <akim@epita.fr>
952 * src/Makefile.am (bison.simple): Fix the awk program: quote only
953 the file name, not the whole `#line LINE FILE'.
955 2000-03-17 Akim Demaille <akim@epita.fr>
957 On syntax errors, report the token on which we choked.
959 * src/bison.s1 (yyparse): In the label yyerrlab, when
960 YYERROR_VERBOSE, add yychar in msg.
962 2000-03-17 Akim Demaille <akim@epita.fr>
964 * src/reader.c (copy_at): New function.
965 (copy_guard): Use it.
966 (copy_action): Use it.
968 2000-03-17 Akim Demaille <akim@epita.fr>
970 Be kind to translators, save some useless translations.
972 * src/main.c (banner): New function.
973 (fatal_banner): Use it.
974 (warn_banner): Use it.
976 2000-03-17 Akim Demaille <akim@epita.fr>
978 * src/reader.c (copy_definition): Use copy_string and
979 copy_comment. Removed now unused `match', `ended',
981 (copy_comment, copy_string): Moved, to be visible from
984 2000-03-17 Akim Demaille <akim@epita.fr>
986 * src/reader.c (copy_string): Declare `static inline'. No
987 problems with inline, since it is checked by configure.
988 (copy_comment): Likewise.
990 2000-03-17 Akim Demaille <akim@epita.fr>
992 * src/reader.c (packsymbols): Formatting changes.
994 2000-03-17 Akim Demaille <akim@epita.fr>
996 * src/reader.c (copy_comment): New function, factored out from:
997 (copy_action): Use it. Removed now unused `match', `ended',
999 (copy_guard): Likewise.
1001 2000-03-17 Akim Demaille <akim@epita.fr>
1003 * src/reader.c (copy_string): New function, factored out from:
1004 (copy_action): Use it.
1005 (copy_guard): Likewise.
1007 2000-03-17 Akim Demaille <akim@epita.fr>
1009 Change the handling of @s so that they behave exactly like $s.
1010 There is now a pseudo variable @$ (readble and writable), location
1011 of the lhs of the rule (by default ranging from the location of
1012 the first symbol of the rhs, to the location of the last symbol,
1013 or, if the rhs is empty, YYLLOC).
1015 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1017 (yyparse): When providing a default semantic action, provide a
1018 default location action.
1019 (after the $): No longer change `*YYLSP', just stack YYLOC the
1020 same way you stack YYVAL.
1021 * src/reader.c (read_declarations): Use warns.
1022 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1023 (copy_action, case '@'): Likewise.
1024 Use a standard error message, to save useless work from
1027 2000-03-17 Akim Demaille <akim@epita.fr>
1029 * src/bison.s1: Formatting and cosmetics changes.
1030 * src/reader.c: Likewise.
1031 Update the Copyright notice.
1033 2000-03-17 Akim Demaille <akim@epita.fr>
1035 * src/bison.s1 (#line): All set to `#line' only, since the
1036 Makefile now handles them.
1038 2000-03-16 Akim Demaille <akim@epita.fr>
1040 * src/output.c (output_rule_data): Output the documentation of
1042 (Copyright notice): Update.
1045 2000-03-16 Akim Demaille <akim@epita.fr>
1047 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1048 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1049 One `#if YYDEBUG' remains, since it uses variables which are
1050 defined only if `YYDEBUG != 0'.
1052 2000-03-16 Akim Demaille <akim@epita.fr>
1054 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1055 and related variables so that the similarities are highlighted.
1057 2000-03-16 Akim Demaille <akim@epita.fr>
1059 * src/bison.s1: Properly indent CPP directives.
1061 2000-03-16 Akim Demaille <akim@epita.fr>
1063 * src/bison.s1: Properly indent the `alloca' CPP section.
1065 2000-03-16 Akim Demaille <akim@epita.fr>
1067 Do not hard code values of directories in `configure.in'.
1068 Update the `configure' tool chain.
1070 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1072 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1073 (AC_OUTPUT): Add m4/Makefile.
1074 Bump to bison 1.28a, 1.29 has never been released.
1075 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1076 handled via src/Makefile.am.
1077 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1078 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1080 * Makefile.am (SUBDIRS): Add m4.
1081 (ACLOCAL_AM_FLAGS): New variable.
1082 (AUTOMAKE_OPTIONS): Add check-news.
1083 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1084 the proper line number and file name.
1085 (DEFS): Propagate the location of bison library files and of the
1087 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1089 * acinclude.m4: Remove, replaced by the directory m4.
1090 * m4/Makefile.am (EXTRA_DIST): New variable.
1091 * m4/gettext.m4: New file, from the fileutils.
1092 * m4/lcmessage.m4: Likewise
1093 * m4/progtest.m4: Likewise.
1094 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1096 2000-03-10 Akim Demaille <akim@epita.fr>
1099 Formatting changes of various comments.
1100 Respect the GNU coding standards at various places.
1101 Don't use `_()' when no translation is needed.
1103 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1106 OS/2 honors TMPDIR environment variable.
1108 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1110 * doc/bison.texinfo: Tweaked spelling and grammar.
1112 Removed reference to price of printed copy.
1113 Mention BISON_SIMPLE and BISON_HAIRY.
1115 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1117 * configure.in, NEWS:
1118 Bison 1.29 released.
1120 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1122 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1123 Added reference card.
1125 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1127 * po/ru.po: Added Russian translation.
1129 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1131 * configure.in: Added Russian translation.
1133 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1135 * configure.in, NEWS, README:
1136 Released version 1.28.
1138 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1141 Squashed redefinition warning on some systems.
1143 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1144 Have configure build version string instead of relying on ANSI string
1147 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1149 * po/POTFILES.in: Got rid of version.c.
1151 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1153 * acconfig.h, configure.in:
1154 Have configure build version string instead of relying on ANSI string
1157 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1160 Dropped mention of `+' for long-named options.
1162 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1164 * src/files.c: Added <unistd.h> for unlink().
1166 * src/Makefile.am, src/system.h:
1169 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1171 * README: Added a FAQ list.
1173 * configure.in, acconfig.h:
1176 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1178 * doc/FAQ, doc/Makefile.am:
1181 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1183 * src/alloc.h, src/symtab.h, src/version.c:
1184 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1186 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1188 * src/.cvsignore, src/Makefile.am:
1189 Reorganized: sources in `src', documentation in `doc'.
1191 * src/lex.c (literalchar):
1192 fixed the code for escaping double quotes (thanks
1195 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1197 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1198 Adjusted paths to reflect directory reorganization.
1200 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1202 * doc/.cvsignore, doc/Makefile.am:
1203 Reorganized: sources in `src', documentation in `doc'.
1205 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1208 Updated AC_INIT file to reflect directory reorganization.
1210 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1211 Reorganized: sources in `src', documentation in `doc'.
1213 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1216 Don't declare calloc() and realloc() if not necessary.
1218 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1220 * configure.in, acconfig.h, acinclude.m4:
1221 Don't declare calloc() and realloc() if not necessary.
1223 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1225 * po/.cvsignore: Added i18n support.
1227 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1229 * acconfig.h, configure.in, Makefile.am:
1232 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1234 * src/bison.s1: Fixed #line numbers.
1236 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1238 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1239 Added PO files from Translation Project.
1241 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1244 Added support for non-ANSI compilers (ansi2knr).
1246 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1248 * configure.in: Bumped version number to 1.27.
1251 Added `bison.simple' to list of files removed by `make distclean'.
1253 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1255 * src/files.c, src/files.h:
1256 Defined locations of parser files in config.h instead of Makefile.
1258 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1260 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1261 Defined locations of parser files in config.h instead of Makefile.
1263 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1266 Removed inappropriate use of $< macro.
1268 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1270 * po/Makefile.in.in, po/POTFILES.in:
1271 Add `po' directory skeleton.
1273 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1275 * README: Document help-bison list.
1277 * configure.in: Add check for mkstemp().
1279 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1281 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1282 Hush a few compiler warnings.
1285 Add tryclose(), which verifies that fclose was successful.
1286 Hush a couple of compiler warnings.
1288 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1290 * Makefile.am, OChangeLog:
1291 ChangeLog is now automatically generated. Include the old version as
1294 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1296 * 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:
1299 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1301 * doc/bison.texinfo: Fix formatting glitch.
1303 * doc/bison.texinfo: Update FSF address.
1305 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1307 * acconfig.h: Update FSF address.
1309 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1312 Don't define PACKAGE here, since config.h defines it.
1314 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1316 * src/reader.c: Update copyright date.
1319 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1320 favor of output directly to stderr (avoids buffer overruns).
1322 * src/reader.c: Some checks for premature EOF.
1324 * 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:
1325 Use prototypes if the compiler understands them.
1327 * src/files.c: Honor TMPDIR on Unix hosts.
1328 Use prototypes if the compiler understands them.
1331 Fix a couple of buffer overrun bugs.
1332 Use prototypes if the compiler understands them.
1334 * src/system.h: Include unistd.h and ctype.h.
1335 Use #ifdef instead of #if for NLS symbols.
1337 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1339 * doc/bison.texinfo:
1340 Delete comment "consider using @set for edition number, etc..." since
1341 we now are doing so.
1343 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1346 Use prototypes if the compiler understands them.
1348 * NEWS: Document 1.26 highlights.
1350 * Makefile.am: Require Automake 1.3 or later.
1353 Use prototypes if the compiler understands them.
1355 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1358 Use VERSION symbol from automake for version number.
1360 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1362 * acconfig.h, configure.in, version.cin:
1363 Use VERSION symbol from automake for version number.
1365 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1368 Distribute original version of simple parser (bison.s1), not built
1369 version (bison.simple).
1371 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1373 * doc/bison.texinfo: Add info dir entry.
1375 * doc/bison.texinfo:
1376 Let automake put version number into documentation.
1378 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1380 * src/bison.cld, src/build.com, src/vmshlp.mar:
1381 Add non-RCS files from /gd/gnu/bison.
1383 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1386 Document the BISON_HAIRY and BISON_SIMPLE variables.
1388 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1390 * src/version.c: Build version.c automatically.
1393 Fix token numbering (used to start at 258, not 257).
1395 * src/system.h: Include config.h.
1397 * src/getargs.c: Update bug report address.
1399 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1400 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1402 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1405 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1407 * configure.in, version.cin:
1408 Build version.c automatically.
1410 * AUTHORS: Add AUTHORS file.
1412 * README: Update bug report address.
1415 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1417 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1420 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1422 * doc/bison.texinfo: Clean up some formatting.
1424 1998-05-05 Richard Stallman <rms@gnu.org>
1426 * doc/bison.texinfo:
1427 Explain better why to make a pure parser.
1429 1998-01-05 Richard Stallman <rms@gnu.org>
1431 * src/files.c (openfiles):
1432 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1433 find a temporary directory, if possible. Do not unlink files while
1436 1997-08-25 Richard Stallman <rms@gnu.org>
1438 * src/reader.c (stack_offset;):
1439 Change some warni to warns.
1441 * src/lex.c (literalchar): Use warns, not warni.
1443 1997-06-28 Richard Stallman <rms@gnu.org>
1445 * src/bison.s1: Add a Bison version comment.
1447 * src/main.c (fatal, warn, berror):
1450 1997-06-28 Richard Stallman <rms@gnu.org>
1452 * Makefile.in (bison_version): New variable.
1453 (dist): Use that variable.
1454 (bison.s1): Substitute the Bison version into bison.simple.
1456 * bison.simple: Add a Bison version comment.
1458 1997-06-18 Richard Stallman <rms@gnu.org>
1460 * src/main.c (fatal, warn, berror):
1461 Make error messages standard.
1462 (toomany): Improve error message text.
1464 * 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:
1465 new.h renamed to alloc.h.
1467 1997-06-18 Richard Stallman <rms@gnu.org>
1469 * Makefile.in: new.h renamed to alloc.h.
1471 1997-05-24 Richard Stallman <rms@gnu.org>
1473 * src/lex.c (literalchar):
1474 Fix the code for escaping \, " and '.
1476 (lex): Avoid trouble when there are many chars
1477 to discard in a char literal with just several chars in it.
1479 1997-05-17 Richard Stallman <rms@gnu.org>
1482 Use malloc, if using alloca is troublesome.
1483 (YYSTACK_USE_ALLOCA): New flag macro.
1484 Define it for some systems and compilers.
1485 (YYSTACK_ALLOC): New macro.
1486 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1487 If it was malloc'd, free it.
1489 1997-05-17 Richard Stallman <rms@gnu.org>
1492 Use malloc, if using alloca is troublesome.
1493 (YYSTACK_USE_ALLOCA): New flag macro.
1494 Define it for some systems and compilers.
1495 (YYSTACK_ALLOC): New macro.
1496 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1497 If it was malloc'd, free it.
1499 1997-04-23 Richard Stallman <rms@gnu.org>
1502 (alloca) [__hpux]: Always define as __builtin_alloca.
1504 1997-04-23 Richard Stallman <rms@gnu.org>
1507 (alloca) [__hpux]: Always define as __builtin_alloca.
1509 1997-04-22 Richard Stallman <rms@gnu.org>
1512 [__hpux]: Include alloca.h (right for HPUX 10)
1513 instead of declaring alloca (right for HPUX 9).
1515 * src/bison.s1 (__yy_memcpy):
1516 Declare arg `count' as unsigned int.
1517 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1519 1997-04-22 Richard Stallman <rms@gnu.org>
1522 [__hpux]: Include alloca.h (right for HPUX 10)
1523 instead of declaring alloca (right for HPUX 9).
1525 * bison.simple (__yy_memcpy):
1526 Declare arg `count' as unsigned int.
1527 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1529 1997-01-03 Richard Stallman <rms@gnu.org>
1531 * src/allocate.c: [__STDC__ or _MSC_VER]:
1532 Declare calloc and realloc to return void *.
1534 1997-01-02 Richard Stallman <rms@gnu.org>
1537 [_MSC_VER]: Include stdlib.h and process.h.
1538 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1540 * src/main.c (main): Return FAILURE as a value.
1541 (printable_version): Declare arg as int, not char.
1543 1997-01-02 Richard Stallman <rms@gnu.org>
1545 * Makefile.in (dist):
1546 Explicitly check for symlinks, and copy them.
1548 1996-12-19 Richard Stallman <rms@gnu.org>
1551 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1553 1996-12-18 Paul Eggert <eggert@gnu.org>
1555 * src/bison.s1 (yyparse):
1556 If __GNUC__ and YYPARSE_PARAM are both defined,
1557 declare yyparse to have a void * argument.
1559 1996-12-18 Paul Eggert <eggert@gnu.org>
1561 * bison.simple (yyparse):
1562 If __GNUC__ and YYPARSE_PARAM are both defined,
1563 declare yyparse to have a void * argument.
1565 1996-12-17 Richard Stallman <rms@gnu.org>
1567 * src/reduce.c (nbits): Add some casts.
1569 1996-08-12 Richard Stallman <rms@gnu.org>
1571 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1573 1996-08-12 Richard Stallman <rms@gnu.org>
1575 * bison.simple: Test _MSDOS as well as _MSDOS_.
1577 1996-07-31 Richard Stallman <rms@gnu.org>
1580 [__sun && __i386]: Include alloca.h.
1582 1996-07-31 Richard Stallman <rms@gnu.org>
1585 [__sun && __i386]: Include alloca.h.
1587 1996-07-30 Richard Stallman <rms@gnu.org>
1589 * src/bison.s1: Comment change.
1591 * src/bison.s1: Test _MSDOS_, not MSDOS.
1593 1996-07-30 Richard Stallman <rms@gnu.org>
1595 * bison.simple: Comment change.
1597 * bison.simple: Test _MSDOS_, not MSDOS.
1599 1996-06-01 Richard Stallman <rms@gnu.org>
1601 * 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:
1602 Insert `_' macro around many string constants.
1605 Insert `_' macro around many string constants.
1607 (main): Call setlocale, bindtextdomain and textdomain.
1609 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1610 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1611 [ENABLE_NLS]: Include libintl.h.
1612 [ENABLE_NLS] (gettext): Define.
1613 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1614 (N_, PACKAGE, LOCALEDIR): New macros.
1616 1996-06-01 Richard Stallman <rms@gnu.org>
1618 * POTFILES.in: New file.
1620 * Makefile.in (allocate.o):
1621 Define target explicitly.
1623 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1624 (LDFLAGS): Set to @LDFLAGS@.
1625 (configure): Run autoconf only if preceding `cd' succeeds.
1626 (bison.s1): Redirect output to temporary file then move the
1627 temporary to the target, rather than redirecting directly to bison.s1.
1628 (clean): Remove config.status and config.log.
1629 (distclean): Don't remove config.status here.
1631 1996-05-12 Richard Stallman <rms@gnu.org>
1634 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1636 1996-05-12 Richard Stallman <rms@gnu.org>
1639 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1641 1996-05-11 Richard Stallman <rms@gnu.org>
1643 * src/bison.s1 (__yy_memcpy):
1644 Really reorder the args, as was supposedly done on Feb 14 1995.
1645 (yyparse): Calls changed accordingly.
1647 1996-05-11 Richard Stallman <rms@gnu.org>
1649 * Makefile.in (dist): Don't use $(srcdir).
1651 * bison.simple (__yy_memcpy):
1652 Really reorder the args, as was supposedly done on Feb 14 1995.
1653 (yyparse): Calls changed accordingly.
1655 1996-01-27 Richard Stallman <rms@gnu.org>
1657 * src/output.c (output_rule_data):
1658 Test YYERROR_VERBOSE in the conditional
1659 around the definition of ttyname.
1661 1995-12-29 Richard Stallman <rms@gnu.org>
1664 Fix line numbers in #line commands.
1666 1995-12-29 Richard Stallman <rms@gnu.org>
1669 Fix line numbers in #line commands.
1671 1995-12-27 Richard Stallman <rms@gnu.org>
1673 * src/bison.s1 (YYPARSE_PARAM_DECL):
1674 In C++, make it always null.
1675 (YYPARSE_PARAM_ARG): New macro.
1676 (yyparse): Use YYPARSE_PARAM_ARG.
1678 1995-12-27 Richard Stallman <rms@gnu.org>
1680 * bison.simple (YYPARSE_PARAM_DECL):
1681 In C++, make it always null.
1682 (YYPARSE_PARAM_ARG): New macro.
1683 (yyparse): Use YYPARSE_PARAM_ARG.
1685 1995-11-29 Richard Stallman <rms@gnu.org>
1687 * doc/bison.texinfo:
1688 Describe literal string tokens, %raw, %no_lines, %token_table.
1690 1995-11-29 Daniel Hagerty <hag@gnu.org>
1692 * doc/bison.texinfo: Fixed update date
1694 1995-10-16 Richard Stallman <rms@gnu.org>
1696 * src/version.c: Version 1.25.
1698 1995-10-16 Richard Stallman <rms@gnu.org>
1700 * NEWS: *** empty log message ***
1702 1995-10-16 Richard Stallman <rms@gnu.org>
1704 * doc/bison.1, doc/bison.rnh:
1707 1995-10-15 Richard Stallman <rms@gnu.org>
1709 * src/vmsgetargs.c, src/getargs.c:
1710 Added -n, -k, and -raw switches.
1711 (noparserflag, toknumflag, rawtoknumflag): New variables.
1713 * src/symtab.h (SALIAS):
1714 New #define for adding aliases to %token.
1715 (struct bucket): Added `alias' field.
1717 * src/reduce.c (reduce_grammar):
1718 Revise error message.
1719 (print_notices): Remove final `.' from error message.
1721 * src/reader.c (reader_output_yylsp):
1723 (readgram): Use `#if 0' around code that accepted %command
1724 inside grammar rules: The documentation doesn't allow it,
1725 and it will fail since the %command processors scan for the next %.
1726 (parse_token_decl): Extended the %token
1727 declaration to allow a multi-character symbol as an alias.
1728 (parse_thong_decl): New function.
1729 (read_declarations): Added %thong declarations.
1730 (read_declarations): Handle NOOP to deal with allowing
1731 % declarations as another means to specify the flags.
1732 (readgram): Allow %prec prior to semantics embedded in a rule.
1733 (skip_to_char, read_declarations, copy_definition)
1734 (parse_token_decl, parse_start_decl, parse_type_decl)
1735 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1736 (get_type_name, copy_guard, copy_action, readgram)
1737 (get_type, packsymbols): Revised most error messages.
1738 Changed `fatal' to `warnxxx' to avoid aborting for error.
1739 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1740 (read_declarations): Improve the error message for
1741 an invalid character. Do not abort.
1742 (read_declarations, copy_guard, copy_action): Use
1743 printable_version to avoid unprintable characters in printed output.
1744 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1745 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1746 Allow the type of a non-terminal can be given
1747 more than once, as long as all specifications give the same type.
1750 (output_headers, output_trailers, output, output_gram)
1751 (output_rule_data): Implement noparserflag variable.
1752 Implement toknumflag variable.
1753 (output): Call reader_output_yylsp to output LTYPESTR.
1755 * src/main.c (main):
1756 If reader sees an error, don't process the grammar.
1757 (fatals): Updated to not use VARARGS1.
1758 (printable_version, int_to_string, warn, warni, warns, warnss)
1759 (warnsss): New error reporting functions. Avoid abort for error.
1762 Added THONG and NOOP for alias processing.
1763 Added SETOPT for the new code that allows setting options with %flags.
1766 Include getopt.h. Add some extern decls.
1767 (safegetc): New function to deal with EOF gracefully.
1768 (literalchar); new function to deal with reading \ escapes.
1769 (lex): Use literalchar.
1770 (lex): Implemented "..." tokens.
1771 (literalchar, lex, parse_percent_token): Made tokenbuffer
1772 always contain the token. This includes growing the token
1773 buffer while reading an integer.
1774 (parse_percent_token): Replaced if-else statement with percent_table.
1775 (parse_percent_token): Added % declarations as another
1776 way to specify the flags -n, -l, and -r. Also added hooks for
1777 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1778 major changes to files.c.
1779 (lex) Retain in the incoming stream a character following
1781 (skip_white_space, lex): Revised most error messages
1782 and changed fatal to warn to avoid aborting.
1783 (percent_table): Added %thong declarations.
1785 * src/gram.h: Comment changes.
1787 * src/files.c (openfiles, open_extra_files, done):
1789 and actfile file. Handle noparserflag. Both for -n switch.
1791 * src/conflicts.c (resolve_sr_conflict):
1792 Remove use of alloca.
1794 1995-06-01 Jim Meyering <meyering@gnu.org>
1796 * doc/bison.texinfo: *** empty log message ***
1798 1995-05-06 Richard Stallman <rms@gnu.org>
1800 * src/bison.s1: Comment change.
1802 1995-05-06 Richard Stallman <rms@gnu.org>
1804 * bison.simple: Comment change.
1806 1995-05-03 Richard Stallman <rms@gnu.org>
1808 * src/version.c: Version now 1.24.
1810 * src/bison.s1: Change distribution terms.
1812 * src/version.c: Version now 1.23.
1814 1995-05-03 Richard Stallman <rms@gnu.org>
1816 * doc/bison.texinfo:
1817 Rewrite "Conditions for Using Bison".
1818 Update version to 1.24.
1820 1995-05-03 Richard Stallman <rms@gnu.org>
1822 * bison.simple: Change distribution terms.
1824 1995-02-23 Richard Stallman <rms@gnu.org>
1826 * src/files.c: Test __VMS_POSIX as well as VMS.
1828 1995-02-14 Jim Meyering <meyering@gnu.org>
1830 * src/bison.s1 (__yy_memcpy):
1831 Renamed from __yy_bcopy to avoid
1832 confusion. Reverse FROM and TO arguments to be consistent with
1835 1995-02-14 Jim Meyering <meyering@gnu.org>
1837 * bison.simple (__yy_memcpy):
1838 Renamed from __yy_bcopy to avoid
1839 confusion. Reverse FROM and TO arguments to be consistent with
1842 1994-11-10 David J. MacKenzie <djm@gnu.org>
1848 * Makefile.in (DISTFILES): Include NEWS.
1850 * Makefile.in (DISTFILES):
1851 Include install-sh, not install.sh.
1853 * configure.in: Update to Autoconf v2 macro names.
1855 1994-10-05 David J. MacKenzie <djm@gnu.org>
1857 * Makefile.in: fix typo
1859 * Makefile.in (prefix, exec_prefix):
1860 Let configure set them.
1862 1994-09-28 David J. MacKenzie <djm@gnu.org>
1864 * Makefile.in: Set datadir to $(prefix)/share.
1866 1994-09-15 Richard Stallman <rms@gnu.org>
1869 Update copyright notice and GPL version.
1871 1994-09-15 Richard Stallman <rms@gnu.org>
1874 Update copyright notice and GPL version.
1876 1994-07-12 Richard Stallman <rms@gnu.org>
1878 * src/reduce.c, src/reader.c:
1881 1994-05-05 David J. MacKenzie <djm@gnu.org>
1883 * Makefile.in: entered into RCS
1885 1994-03-26 Richard Stallman <rms@gnu.org>
1887 * src/bison.s1: entered into RCS
1889 1994-03-26 Richard Stallman <rms@gnu.org>
1891 * bison.simple: entered into RCS
1893 1994-03-25 Richard Stallman <rms@gnu.org>
1895 * src/main.c: entered into RCS
1897 1994-03-24 Richard Stallman <rms@gnu.org>
1899 * src/conflicts.c: entered into RCS
1901 1994-01-02 Richard Stallman <rms@gnu.org>
1903 * Makefile.in: *** empty log message ***
1905 1993-11-21 Richard Stallman <rms@gnu.org>
1907 * src/bison.s1: *** empty log message ***
1909 1993-11-21 Richard Stallman <rms@gnu.org>
1911 * doc/bison.texinfo: entered into RCS
1913 * doc/bison.texinfo: *** empty log message ***
1915 1993-11-21 Richard Stallman <rms@gnu.org>
1917 * bison.simple: *** empty log message ***
1919 1993-10-25 David J. MacKenzie <djm@gnu.org>
1921 * doc/bison.texinfo: *** empty log message ***
1923 1993-10-19 Richard Stallman <rms@gnu.org>
1925 * src/bison.s1: *** empty log message ***
1927 1993-10-19 Richard Stallman <rms@gnu.org>
1929 * bison.simple: *** empty log message ***
1931 1993-10-14 Richard Stallman <rms@gnu.org>
1933 * src/bison.s1: *** empty log message ***
1935 1993-10-14 Richard Stallman <rms@gnu.org>
1937 * bison.simple: *** empty log message ***
1939 1993-09-14 David J. MacKenzie <djm@gnu.org>
1941 * doc/bison.texinfo: *** empty log message ***
1943 1993-09-13 Noah Friedman <friedman@gnu.org>
1945 * Makefile.in: *** empty log message ***
1947 1993-09-10 Richard Stallman <rms@gnu.org>
1949 * src/conflicts.c: *** empty log message ***
1951 * src/system.h: entered into RCS
1953 1993-09-10 Richard Stallman <rms@gnu.org>
1955 * doc/bison.1: entered into RCS
1957 1993-09-06 Noah Friedman <friedman@gnu.org>
1959 * src/version.c: entered into RCS
1961 1993-09-06 Noah Friedman <friedman@gnu.org>
1963 * Makefile.in: *** empty log message ***
1965 1993-07-30 David J. MacKenzie <djm@gnu.org>
1967 * Makefile.in: *** empty log message ***
1969 1993-07-24 Richard Stallman <rms@gnu.org>
1971 * src/bison.s1: *** empty log message ***
1973 1993-07-24 Richard Stallman <rms@gnu.org>
1975 * bison.simple: *** empty log message ***
1977 1993-07-08 David J. MacKenzie <djm@gnu.org>
1979 * Makefile.in: *** empty log message ***
1981 1993-07-04 Richard Stallman <rms@gnu.org>
1983 * src/bison.s1: *** empty log message ***
1985 1993-07-04 Richard Stallman <rms@gnu.org>
1987 * bison.simple: *** empty log message ***
1989 1993-06-26 David J. MacKenzie <djm@gnu.org>
1991 * src/getargs.c: entered into RCS
1993 1993-06-26 David J. MacKenzie <djm@gnu.org>
1995 * doc/bison.texinfo: *** empty log message ***
1997 * doc/bison.1: New file.
1999 1993-06-25 Richard Stallman <rms@gnu.org>
2001 * src/getargs.c: New file.
2003 1993-06-16 Richard Stallman <rms@gnu.org>
2005 * src/bison.s1: *** empty log message ***
2007 1993-06-16 Richard Stallman <rms@gnu.org>
2009 * bison.simple: *** empty log message ***
2011 1993-06-03 Richard Stallman <rms@gnu.org>
2013 * src/bison.s1: New file.
2015 1993-06-03 Richard Stallman <rms@gnu.org>
2017 * doc/bison.texinfo: *** empty log message ***
2019 1993-06-03 Richard Stallman <rms@gnu.org>
2021 * bison.simple: New file.
2023 1993-05-19 Richard Stallman <rms@gnu.org>
2025 * doc/bison.texinfo: New file.
2027 1993-05-07 Noah Friedman <friedman@gnu.org>
2029 * Makefile.in: *** empty log message ***
2031 1993-04-28 Noah Friedman <friedman@gnu.org>
2033 * src/reader.c: *** empty log message ***
2035 1993-04-23 Noah Friedman <friedman@gnu.org>
2037 * src/alloc.h: entered into RCS
2039 1993-04-20 David J. MacKenzie <djm@gnu.org>
2041 * src/version.c: *** empty log message ***
2043 * src/files.c, src/allocate.c:
2046 * src/reader.c: *** empty log message ***
2048 * src/lex.c: entered into RCS
2050 * src/conflicts.c: New file.
2052 * src/symtab.c: entered into RCS
2054 * src/alloc.h: New file.
2056 * src/LR0.c: entered into RCS
2058 1993-04-18 Noah Friedman <friedman@gnu.org>
2060 * src/reader.c: New file.
2062 * src/version.c: *** empty log message ***
2064 1993-04-18 Noah Friedman <friedman@gnu.org>
2066 * Makefile.in: *** empty log message ***
2068 1993-04-17 Noah Friedman <friedman@gnu.org>
2070 * Makefile.in: *** empty log message ***
2072 1993-04-15 Richard Stallman <rms@gnu.org>
2074 * src/main.c, src/files.c:
2077 1993-04-15 Noah Friedman <friedman@gnu.org>
2079 * configure.in: entered into RCS
2081 * configure.in: *** empty log message ***
2083 * configure.in: New file.
2085 1993-04-14 Richard Stallman <rms@gnu.org>
2087 * Makefile.in: New file.
2089 1993-04-13 Richard Stallman <rms@gnu.org>
2091 * src/version.c: New file.
2093 1993-03-25 Richard Stallman <rms@gnu.org>
2095 * src/output.c: entered into RCS
2097 1992-09-25 Richard Stallman <rms@gnu.org>
2099 * configure.bat: entered into RCS
2101 1992-06-22 Richard Stallman <rms@gnu.org>
2103 * src/vmsgetargs.c: entered into RCS
2105 1992-06-22 Richard Stallman <rms@gnu.org>
2107 * doc/bison.rnh: entered into RCS
2109 1992-04-20 David J. MacKenzie <djm@gnu.org>
2111 * README: entered into RCS
2113 1992-01-22 Richard Stallman <rms@gnu.org>
2115 * src/machine.h: entered into RCS
2117 1991-12-21 Richard Stallman <rms@gnu.org>
2119 * src/lalr.c, src/closure.c:
2122 1991-12-20 Richard Stallman <rms@gnu.org>
2124 * src/state.h: entered into RCS
2126 1991-12-18 Richard Stallman <rms@gnu.org>
2128 * src/print.c, src/nullable.c, src/derives.c:
2131 1991-11-03 David J. MacKenzie <djm@gnu.org>
2133 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2136 1988-09-09 Richard Stallman <rms@gnu.org>
2138 * src/bison.hairy: entered into RCS
2140 1987-12-16 Richard Stallman <rms@gnu.org>
2142 * REFERENCES: entered into RCS