1 2001-08-01 Robert Anisko <anisko_r@epita.fr>
3 * doc/autoconf.texi: Document @$.
4 (Locations): New section.
6 2001-07-18 Akim Demaille <akim@epita.fr>
8 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
9 * config/prev-version.txt, config/move-if-change: New.
10 * Makefile.am: Adjust.
12 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
14 * src/bison.simple (yyparse): Suppress warning `comparaison
15 between signed and unsigned'.
17 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
19 * src/getargs.h (raw_flag): Remove.
20 * src/getargs.c: Die on `-r'/`--raw'.
21 * src/lex.c (parse_percent_token): Die on `%raw'.
22 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
23 * tests/calc.at: Suppress test with option `--raw'.
25 2001-07-14 Akim Demaille <akim@epita.fr>
28 * configure.in: Require Autoconf 2.50.
29 Update to gettext 0.10.38.
31 2001-03-16 Akim Demaille <akim@epita.fr>
33 * doc/bison.texinfo: ANSIfy the examples.
35 2001-03-16 Akim Demaille <akim@epita.fr>
37 * getargs.c (skeleton): New variable.
38 (longopts): --skeleton is a new option.
39 (shortopts, getargs): -S is a new option.
40 * getargs.h: Declare skeleton.
41 * output.c (output_parser): Use it.
43 2001-03-16 Akim Demaille <akim@epita.fr>
45 * m4/strerror_r.m4: New.
46 * m4/error.m4: Run AC_FUNC_STRERROR_R.
47 * lib/error.h, lib/error.c: Update.
49 2001-03-16 Akim Demaille <akim@epita.fr>
51 * src/getargs.c (longopts): Clean up.
53 2001-02-21 Akim Demaille <akim@epita.fr>
55 * src/reader.c (gensym): `gensym_count' is your own.
56 Use a static buf to create the symbol name, as token_buffer is no
59 2001-02-08 Akim Demaille <akim@epita.fr>
61 * src/conflicts.c (conflict_report): Be sure not to append to res
62 between two calls, which could happen if both first sprintf were
63 skipped, but not the first cp += strlen.
65 2001-02-08 Akim Demaille <akim@epita.fr>
67 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
68 New, from fileutils 4.0.37.
69 * configure.in: Require Autoconf 2.49c. I took some time before
70 making this decision. This is the only way out for portability
71 issues in Bison, it would mean way too much duplicate effort to
72 import in Bison features implemented in 2.49c since 2.13.
73 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
75 2001-02-02 Akim Demaille <akim@epita.fr>
77 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
78 * lib/xalloc.h, lib/xmalloc.c: Update.
80 2001-01-19 Akim Demaille <akim@epita.fr>
82 Get rid of the ad hoc handling of token_buffer in the scanner: use
85 * src/lex.c (token_obstack): New.
86 (init_lex): Initialize it. No longer call...
87 (grow_token_buffer): this. Remove it.
88 Adjust all the places which used it to use the obstack.
90 2001-01-19 Akim Demaille <akim@epita.fr>
92 * src/lex.h: Rename all the tokens:
93 s/\bENDFILE\b/tok_eof/g;
94 s/\bIDENTIFIER\b/tok_identifier/g;
96 Let them be enums, not #define, to ease debugging.
99 2001-01-18 Akim Demaille <akim@epita.fr>
101 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
102 * src/lex.c (maxtoken, grow_token_buffer): Static.
104 2001-01-18 Akim Demaille <akim@epita.fr>
106 Since we now use obstacks, more % directives can be enabled.
108 * src/lex.c (percent_table): Also accept `%yacc',
109 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
111 Handle the actions for `%semantic_parser' and `%pure_parser' here,
112 instead of returning a token.
113 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
114 * src/reader.c (read_declarations): Adjust.
115 * src/files.c (open_files): Don't call `compute_base_names', don't
116 compute `attrsfile' since they depend upon data which might be
117 *in* the input file now.
118 (output_files): Do it here.
119 * src/output.c (output_headers): Document the fact that this patch
120 introduces a guaranteed SEGV for semantic parsers.
121 * doc/bison.texinfo: Document them.
122 * tests/suite.at: Exercise these %options.
124 2000-12-20 Akim Demaille <akim@epita.fr>
126 Also handle the output file (--verbose) with obstacks.
128 * files.c (foutput): Remove.
129 (output_obstack): New.
130 Adjust all dependencies.
131 * src/conflicts.c: Return a string.
132 * src/system.h (obstack_grow_string): Rename as...
133 (obstack_sgrow): this. Be ready to work with non literals.
134 (obstack_fgrow4): New.
136 2000-12-20 Akim Demaille <akim@epita.fr>
138 * src/files.c (open_files): Fix the computation of short_base_name
139 in the case of `-o foo.tab.c'.
141 2000-12-20 Akim Demaille <akim@epita.fr>
143 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
144 (copy_dollar): Now that everything uses obstacks, get rid of the
147 2000-12-20 Akim Demaille <akim@epita.fr>
149 * src/files.c (open_files): Actually the `.output' file is based
150 on the short_base_name, not base_name.
151 * tests/suite.at (Checking output file names): Adjust.
153 2000-12-20 Akim Demaille <akim@epita.fr>
155 * src/bison.s1: Remove, we now use directly...
156 * src/bison.simple: this.
157 * src/Makefile.am: Use pkgdata instead of data.
159 2000-12-20 Akim Demaille <akim@epita.fr>
161 * src/files.c (guard_obstack): New.
162 (open_files): Initialize it.
163 (output_files): Dump it...
164 * src/files.h: Export it.
165 * src/reader.c (copy_guard): Use it.
167 2000-12-19 Akim Demaille <akim@epita.fr>
169 * src/files.c (outfile, defsfile, actfile): Removed as global
171 (open_files): Don't compute them.
172 (output_files): Adjust.
173 (base_name, short_base_name): Be global.
176 2000-12-19 Akim Demaille <akim@epita.fr>
178 * src/files.c (strsuffix): New.
179 (stringappend): Be just like strcat but allocate.
180 (base_names): Eve out from open_files.
181 Try to simplify the rather hairy computation of base_name and
183 (open_files): Use it.
184 * tests/suite.at (Checking output file names): New test.
186 2000-12-19 Akim Demaille <akim@epita.fr>
188 * src/system.h (obstack_grow_literal_string): Rename as...
189 (obstack_grow_string): this.
190 * src/output.c (output_parser): Recognize `%% actions' instead of
192 * src/bison.s1: s/$/%% actions/.
193 * src/bison.hairy: Likewise.
195 2000-12-19 Akim Demaille <akim@epita.fr>
197 * src/output.c (output_parser): Compute the `#line' lines when
199 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
200 Suggested by Hans Aberg.
202 2000-12-19 Akim Demaille <akim@epita.fr>
204 Let the handling of the skeleton files be local to the procedures
207 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
209 (fparser, open_extra_files): Remove.
210 (open_files, output_files): Don't take care of fparser.
211 * src/files.h: Adjust.
212 * src/output.c (output_parser): Open and close the file to the
214 * src/reader.c (read_declarations): When %semantic_parser, open
217 2000-12-19 Akim Demaille <akim@epita.fr>
219 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
220 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
222 2000-12-19 Akim Demaille <akim@epita.fr>
224 * src/files.c (open_files): Yipee! We no longer need all the code
225 looking for `/tmp' since we have no tmp file.
227 2000-12-19 Akim Demaille <akim@epita.fr>
229 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
231 * src/files.c (open_files): Less dependency on MSDOS etc.
233 2000-12-14 Akim Demaille <akim@epita.fr>
235 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
236 Provide a default definition.
237 Use it when executing the default @ action.
238 * src/reader.c (reader_output_yylsp): No longer include
239 `timestamp' and `text' in the default YYLTYPE.
241 2000-12-12 Akim Demaille <akim@epita.fr>
243 * src/reader.c (copy_definition, parse_union_decl, copy_action)
244 (copy_guard): Quote the file names.
245 Reported by Laurent Mascherpa.
247 2000-12-12 Akim Demaille <akim@epita.fr>
249 * src/output.c (output_headers, output_program, output): Be sure
250 to escape special characters when outputting filenames.
251 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
252 (output_headers): Don't depend on them, Use ACTSTR.
254 2000-11-17 Akim Demaille <akim@epita.fr>
256 * lib/obstack.h: Formatting changes.
257 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
258 prevents type checking.
259 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
260 cast the value to (void *): assigning a `foo *' to a `void *'
262 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
263 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
266 2000-11-17 Akim Demaille <akim@epita.fr>
268 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
270 (suite.m4, regression.m4, calc.m4): these.
271 * tests/atgeneral.m4: Update from CVS Autoconf.
273 2000-11-17 Akim Demaille <akim@epita.fr>
275 * tests/regression.m4 (%union and --defines): New test,
276 demonstrating a current bug in the obstack implementation.
278 2000-11-17 Akim Demaille <akim@epita.fr>
280 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
282 Use them to declare the variables which are global or local to
285 2000-11-17 Akim Demaille <akim@epita.fr>
287 * acconfig.h: Remove, no longer used.
289 2000-11-07 Akim Demaille <akim@epita.fr>
291 * src: s/Copyright (C)/Copyright/g.
293 2000-11-07 Akim Demaille <akim@epita.fr>
295 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
297 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
299 2000-11-07 Akim Demaille <akim@epita.fr>
301 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
302 Merge in a single CPP if/else.
304 2000-11-07 Akim Demaille <akim@epita.fr>
306 * src/output.c (output): Remove useless variables.
307 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
308 argument `data' for consistency with the prototypes.
310 (obstack_copy, obstack_copy0): Rename the second argument as
311 `address' for consistency. Qualify it `const'.
312 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
313 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
314 `const' their input argument (`data' or `address').
315 Adjust the corresponding macros to include `const' in casts.
317 2000-11-03 Akim Demaille <akim@epita.fr>
319 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
320 s/PFILE1/BISON_HAIRY/.
323 2000-11-03 Akim Demaille <akim@epita.fr>
325 For some reason, this was not applied.
327 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
328 `unlink': it's no longer used.
330 2000-11-03 Akim Demaille <akim@epita.fr>
332 * src/files.c (skeleton_find): New function, eved out of...
333 (open_files, open_extra_files): here.
335 2000-11-03 Akim Demaille <akim@epita.fr>
339 * src/files.c (obstack_save): New function.
341 (output_files): this.
343 * src/main.c (main): Don't use `atexit' to register `done', since
344 it no longer has to remove tmp files, just call `output_files'
345 when there are no errors.
347 2000-11-02 Akim Demaille <akim@epita.fr>
349 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
350 `unlink': it's no longer used.
351 * src/files.h: Formatting changes.
353 2000-11-02 Akim Demaille <akim@epita.fr>
355 Remove the last uses of mktemp and unlink/delete.
357 * src/files.c (fdefines, ftable): Removed.
358 (defines_ostack, table_obstack): New.
359 Adjust dependencies of the former into uses of the latter.
360 * src/output.c (output_short_or_char_table, output_short_table):
361 Convert to using obstacks.
362 * src/reader.c (copy_comment2): Accept one FILE * and two
364 (output_token_defines, reader_output_yylsp): Use obstacks.
365 * src/system.h (obstack_fgrow3): New.
367 2000-11-01 Akim Demaille <akim@epita.fr>
369 Change each use of `fattrs' into a use of `attrs_obstack'.
371 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
372 * src/files.c (fattrs): Remove.
373 (attrs_obstack): New.
374 Adjust all dependencies.
375 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
377 2000-11-01 Akim Demaille <akim@epita.fr>
380 Change each use of `faction' into a use of `action_obstack'.
382 * lib/obstack.h, lib/obstack.c: New files.
383 * src/files.c (faction): Remove.
384 (action_obstack): New.
385 Adjust all dependencies.
387 2000-10-20 Akim Demaille <akim@epita.fr>
389 * lib/quote.h (PARAMS): New macro. Use it.
391 2000-10-16 Akim Demaille <akim@epita.fr>
393 * src/output.c (output_short_or_char_table): New function.
394 (output_short_table, output_token_translations): Use it.
395 (goto_actions): Use output_short_table.
397 2000-10-16 Akim Demaille <akim@epita.fr>
399 * src/symtab.c (bucket_new): New function.
402 * src/output.c (output_short_table): New argument to display the
403 comment associated with the table.
405 (output_gram): Use it.
406 (output_rule_data): Nicer output layout for YYTNAME.
408 2000-10-16 Akim Demaille <akim@epita.fr>
410 * src/lex.c (read_typename): New function.
412 * src/reader.c (copy_dollar): Likewise.
414 2000-10-16 Akim Demaille <akim@epita.fr>
416 * src/reader.c (copy_comment2): Expect the input stream to be on
417 the `/' which is suspected to open a comment, instead of being
418 called after `//' or `/*' was read.
419 (copy_comment, copy_definition, parse_union_decl, copy_action)
420 (copy_guard): Adjust.
422 2000-10-16 Akim Demaille <akim@epita.fr>
424 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
425 `read_signed_integer'.
427 2000-10-16 Akim Demaille <akim@epita.fr>
429 * src/reader.c (copy_dollar): New function.
430 (copy_guard, copy_action): Use it.
432 2000-10-16 Akim Demaille <akim@epita.fr>
434 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
435 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
436 New files, from Fileutils 4.0.27.
437 * src/main.c (printable_version): Remove.
438 * src/lex.c, src/reader.c: Use `quote'.
440 2000-10-04 Akim Demaille <akim@epita.fr>
442 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
444 2000-10-04 Akim Demaille <akim@epita.fr>
446 * doc/bison.texinfo: Various typos spotted by Neil Booth.
448 2000-10-04 Akim Demaille <akim@epita.fr>
450 When a literal string is used to define two different tokens,
451 `bison -v' segfaults.
452 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
454 * tests/regression.m4: New file.
455 Include the core of the sample provided by Piotr Gackiewicz.
456 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
459 2000-10-04 Akim Demaille <akim@epita.fr>
461 * src/reader.c (parse_expect_decl): Keep `count' within the size
465 2000-10-02 Paul Eggert <eggert@twinsun.com>
467 * bison.s1 (yyparse): Assign the default value
468 unconditionally, to avoid a GCC warning and make the parser a
471 2000-10-02 Akim Demaille <akim@epita.fr>
473 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
476 2000-10-02 Akim Demaille <akim@epita.fr>
478 * src/derives.c, src/print.c, src/reduce.c: To ease the
479 translation, move some `\n' out of the translated strings.
481 2000-10-02 Akim Demaille <akim@epita.fr>
483 The location tracking mechanism is precious for parse error
484 messages. Nevertheless, it is enabled only when `@n' is used in
485 the grammar, which is a different issue (you can use it in error
486 message, but not in the grammar per se). Therefore, there should
487 be another means to enable it.
489 * src/getargs.c (getargs): Support `--locations'.
491 * src/getargs.h (locationsflag): Export it.
492 * src/lex.c (percent_table): Support `%locations'.
493 * src/reader.c (yylsp_needed): Remove this variable, now replaced
494 with `locationsflag'.
495 * doc/bison.texinfo: Document `--locations' and `%locations'.
497 * tests/calc.m4: Test it.
499 For regularity of the names, replace each
500 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
501 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
502 In addition replace each `flag' with `_flag'.
504 2000-10-02 Akim Demaille <akim@epita.fr>
506 Also test parse error messages, including with YYERROR_VERBOSE.
508 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
510 Use it to check the computations.
511 Use it to check `nonassoc' is honored.
512 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
514 (_AT_CHECK_CALC): Adjust to this option.
515 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
517 2000-10-02 Akim Demaille <akim@epita.fr>
519 Test also `--verbose', `--defines' and `--name-prefix'. Testing
520 the latter demonstrates a flaw in the handling of non debugging
521 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
522 was used in order to simplify:
538 unfortunately this leads to a CPP conflict when
539 `--name-prefix=foo' is used since it produces `#define yydebug
542 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
543 (YYDPRINTF): New macro.
545 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
547 Also test `--verbose', `--defines' and `--name-prefix'.
549 2000-10-02 Akim Demaille <akim@epita.fr>
551 Improve the readability of the produced parsers.
553 * src/bison.s1: Formatting changes.
554 Improve the comment related to the `$' mark.
555 (yydefault): Don't fall through to `yyresume': `goto' there.
556 * src/output.c (output_parser): When the `$' is met, skip the end
558 New variable, `number_of_dollar_signs', to check there's exactly
559 one `$' in the parser skeleton.
561 2000-10-02 Akim Demaille <akim@epita.fr>
563 * lib/xstrdup.c: New file, from the fileutils.
564 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
565 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
566 instead of strlen + xmalloc + strcpy.
567 * src/symtab.c (copys): Remove, use xstrdup instead.
569 2000-10-02 Akim Demaille <akim@epita.fr>
571 * src/gram.h (associativity): New enum type which replaces the
572 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
573 `right_assoc', `left_assoc' and `non_assoc'.
574 Adjust all dependencies.
575 * src/reader.c: Formatting changes.
576 (LTYPESTR): Don't define it, use it as a literal in
577 `reader_output_yylsp'.
578 * src/symtab.h (symbol_class): New enum type which replaces the
579 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
580 `sunknown', `stoken and `snterm'.
582 2000-10-02 Akim Demaille <akim@epita.fr>
584 * src/getargs.c (fixed_outfiles): Rename as...
585 (yaccflag): for consistency and accuracy.
588 2000-10-02 Akim Demaille <akim@epita.fr>
590 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
591 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
592 difficult and introduced a lot of core dump. It turns out that
593 Bison used an implementation of `xmalloc' based on `calloc', and
594 at various places it does depend upon the initialization to 0. I
595 have not tried to isolate the pertinent places, and all the former
596 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
597 someone should address this issue.
599 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
600 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
603 * src/warshall.h: New file.
606 2000-10-02 Akim Demaille <akim@epita.fr>
608 Various anti-`extern in *.c' changes.
610 * src/system.h: Include `assert.h'.
612 2000-10-02 Akim Demaille <akim@epita.fr>
614 * src/state.h (nstates, final_state, first_state, first_shift)
615 (first_reduction): Move their exportation from here...
616 * src/LR0.h: to here.
618 * src/getargs.c (statisticsflag): New variable.
619 Add support for `--statistics'.
622 Remove a lot of now useless `extern' statements in most files.
624 2000-10-02 Akim Demaille <akim@epita.fr>
626 * src/LR0.h: New file.
629 2000-10-02 Akim Demaille <akim@epita.fr>
631 * src/print.h: New file.
633 * src/print.c: Formatting and ordering changes.
634 (verbose, terse): Replace with...
635 (print_results): this new function.
638 2000-10-02 Akim Demaille <akim@epita.fr>
640 * src/conflicts.c (conflict_report): New function.
641 (conflict_log, verbose_conflict_log): Replace with...
642 (print_conflicts): this function.
644 * src/conflicts.h: New file.
645 Propagate its inclusion.
647 2000-10-02 Akim Demaille <akim@epita.fr>
649 * src/nullable.h: New file.
650 Propagate its inclusion.
651 * src/nullable.c: Formatting changes.
653 2000-10-02 Akim Demaille <akim@epita.fr>
655 * src/reduce.h: New file.
656 Propagate its inclusion.
657 * src/reduce.c: Topological sort and other formatting changes.
658 (bool, TRUE, FALSE): Move their definition to...
659 * src/system.h: here.
661 2000-10-02 Akim Demaille <akim@epita.fr>
663 * src/files.c: Formatting changes.
664 (tryopen, tryclose, openfiles): Rename as...
665 (xfopen, xfclose, open_files): this.
666 (stringappend): static.
667 * src/files.h: Complete the list of exported symbols.
670 2000-10-02 Akim Demaille <akim@epita.fr>
672 * src/reader.h: New file.
673 Propagate its use instead of tedious list of `extern' and
675 * src/reader.c: Formatting changes, topological sort,
678 2000-10-02 Akim Demaille <akim@epita.fr>
680 * src/lex.h: Prototype `lex.c' exported functions.
681 * src/reader.c: Adjust.
682 * src/lex.c: Formatting changes.
683 (safegetc): Rename as...
686 2000-10-02 Akim Demaille <akim@epita.fr>
688 * src/lalr.h: New file.
689 Propagate its inclusion instead of prototypes and `extern'.
690 * src/lalr.c: Formatting changes, topological sorting etc.
692 2000-10-02 Akim Demaille <akim@epita.fr>
694 * src/output.c (token_actions): Introduce a temporary array,
695 YYDEFACT, that makes it possible for this function to use
698 2000-10-02 Akim Demaille <akim@epita.fr>
700 `user_toknums' is output as a `short[]' in `output.c', while it is
701 defined as a `int[]' in `reader.c'. For consistency with the
702 other output tables, `user_toknums' is now defined as a table of
705 * src/reader.c (user_toknums): Be a short table instead of an int
709 Factor the short table outputs.
711 * src/output.c (output_short_table): New function.
712 * src/output.c (output_gram, output_stos, output_rule_data)
713 (output_base, output_table, output_check): Use it.
715 2000-10-02 Akim Demaille <akim@epita.fr>
717 * src/output.c (output): Topological sort of the functions, in
718 order to get rid of the `static' prototypes.
719 No longer use `register'.
720 * src/output.h: New file.
721 Propagate its inclusion in files explicitly prototyping functions
724 2000-09-21 Akim Demaille <akim@epita.fr>
726 * src/atgeneral.m4: Update from Autoconf.
728 2000-09-21 Akim Demaille <akim@epita.fr>
730 * src/closure.h: New file.
731 * src/closure.c: Formatting changes, topological sort over the
732 functions, use of closure.h.
733 (initialize_closure, finalize_closure): Rename as...
734 (new_closure, free_closure): these. Adjust dependencies.
735 * src/LR0.c: Formatting changes, topological sort, use of
737 (initialize_states): Rename as...
739 * src/Makefile.am (noinst_HEADERS): Adjust.
741 2000-09-20 Akim Demaille <akim@epita.fr>
743 * src/acconfig.h: Don't protect config.h against multiple
746 * src/system.h: Define PARAMS.
747 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
748 purpose of config.h. system.h must not try to fix wrong
749 definitions in config.h.
751 2000-09-20 Akim Demaille <akim@epita.fr>
753 * src/derives.h: New file.
754 * src/main.c, src/derives.h: Use it.
756 * src/Makefile.am (noinst_HEADERS): Adjust.
758 2000-09-20 Akim Demaille <akim@epita.fr>
760 * tests/atgeneral.m4: Update from Autoconf.
761 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
762 (AT_CHECK_CALC): New macros.
763 Use these macros to test bison with options `', `--raw',
764 `--debug', `--yacc', `--yacc --debug'.
766 2000-09-19 Akim Demaille <akim@epita.fr>
768 * src/output.c: Formatting changes.
769 * src/machine.h: Remove, leaving its contents in...
770 * src/system.h: here.
772 Adjust all dependencies on stdio.h and machine.h.
773 * src/getargs.h: New file.
774 Let all `extern' declarations about getargs.c be replaced with
775 inclusion of `getargs.h'.
776 * src/Makefile.am (noinst_HEADERS): Adjust.
778 * tests/calc.m4 (yyin): Be initialized in main, not on the global
780 (yyerror): Returns void, not int.
781 * doc/bison.texinfo: Formatting changes.
783 2000-09-19 Akim Demaille <akim@epita.fr>
785 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
788 2000-09-18 Akim Demaille <akim@epita.fr>
790 * configure.in: Append WARNING_CFLAGS to CFLAGS.
791 * src/Makefile.am (INCLUDES): Don't.
792 Be ready to fetch headers in lib/.
794 2000-09-18 Akim Demaille <akim@epita.fr>
796 * doc/bison.texinfo: Update the copyright.
797 ANSIfy and GNUify the examples.
800 2000-09-18 Akim Demaille <akim@epita.fr>
802 First set of tests: use the `calc' example from the documentation.
804 * src/bison.s1 (yyparse): Condition the code using `yytname' which
805 is defined only when YYDEBUG is.
806 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
807 * src/files.c (tryopen, tryclose): Formatting changes.
808 Move to the top and be static.
809 * src/reader.c (read_signed_integer): Likewise.
810 * tests/calc.m4: New file.
811 * Makefile.am, suite.m4: Adjust.
812 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
814 2000-09-18 Akim Demaille <akim@epita.fr>
816 Add support for an Autotest test suite for Bison.
818 * m4/m4.m4, m4/atconfig.m4: New files.
819 * m4/Makefile.am (EXTRA_DIST): Adjust.
820 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
822 * src/getargs.c: Display a more standard --version message.
823 * src/reader.c (reader): Formatting changes.
824 No longer depend upon VERSION_STRING.
825 * configure.in: No longer use `dnl'.
826 Set up the test suite and the new directory `tests/.
827 (VERSION_STRING): Remove.
829 2000-04-14 Akim Demaille <akim@epita.fr>
831 * src/reader.c (copy_comment2): New function, same as former
832 `copy_comment', but outputs into two FILE *.
833 (copy_comment): Use it.
834 (parse_union_decl): Use it.
835 (get_type, parse_start_decl): Use the same `invalid' message.
836 (parse_start_decl, parse_union_decl): Use the same `multiple'
838 (parse_union_decl, copy_guard, copy_action): Use the same
840 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
842 2000-03-31 Akim Demaille <akim@epita.fr>
844 * src/files.c (tryopen, tryclose): Move to the top.
847 2000-03-31 Akim Demaille <akim@epita.fr>
849 * src/main.c (main): Don't call `done', exit does it.
851 2000-03-31 Akim Demaille <akim@epita.fr>
853 * allocate.c: s/return (foo)/return foo/.
856 * output.c: Likewise.
857 * reader.c: Likewise.
858 * symtab.c: Likewise.
859 * vmsgetargs.c: Likewise.
861 2000-03-31 Akim Demaille <akim@epita.fr>
863 Clean up the error reporting functions.
865 * src/report.c: New file.
866 * src/report.h: Likewise.
867 * src/Makefile.am: Adjust.
868 * m4/error.m4: New file.
869 * m4/Makefile.am: Adjust.
870 * configure.in (jm_PREREQ_ERROR): Call it.
871 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
873 (fatal, fatals): Remove. All callers use complain.c::fatal.
874 (warn, warni, warns, warnss, warnss): Remove. All callers use
875 complain.c::complain.
876 (toomany): Remove, use fatal instead.
877 * src/files.c (done): No argument, use complain_message_count.
878 * src/main.c (main): Register `done' to `atexit'.
880 * src/getargs.c (usage): More `fputs', less `fprintf'.
882 2000-03-28 Akim Demaille <akim@epita.fr>
884 * lib/: New directory.
885 * Makefile.am (SUBDIRS): Adjust.
886 * configure.in: Adjust.
887 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
889 * src/alloca.c: Moved to lib/.
890 * src/getopt.c: Likewise.
891 * src/getopt1.c: Likewise.
892 * src/getopt.h: Likewise.
893 * src/ansi2knr.c: Likewise.
894 * src/ansi2knr.1: Likewise.
895 * src/Makefile.am: Adjust.
896 * lib/Makefile.am: New file.
898 2000-03-28 Akim Demaille <akim@epita.fr>
900 * src/getargs.c (usage): Refresh the help message.
902 2000-03-17 Akim Demaille <akim@epita.fr>
904 * src/getopt1.c: Updated from textutils 2.0e
905 * src/getopt.c: Likewise.
906 * src/getopt.h: Likewise.
908 2000-03-17 Akim Demaille <akim@epita.fr>
910 * src/Makefile.am (bison.simple): Fix the awk program: quote only
911 the file name, not the whole `#line LINE FILE'.
913 2000-03-17 Akim Demaille <akim@epita.fr>
915 On syntax errors, report the token on which we choked.
917 * src/bison.s1 (yyparse): In the label yyerrlab, when
918 YYERROR_VERBOSE, add yychar in msg.
920 2000-03-17 Akim Demaille <akim@epita.fr>
922 * src/reader.c (copy_at): New function.
923 (copy_guard): Use it.
924 (copy_action): Use it.
926 2000-03-17 Akim Demaille <akim@epita.fr>
928 Be kind to translators, save some useless translations.
930 * src/main.c (banner): New function.
931 (fatal_banner): Use it.
932 (warn_banner): Use it.
934 2000-03-17 Akim Demaille <akim@epita.fr>
936 * src/reader.c (copy_definition): Use copy_string and
937 copy_comment. Removed now unused `match', `ended',
939 (copy_comment, copy_string): Moved, to be visible from
942 2000-03-17 Akim Demaille <akim@epita.fr>
944 * src/reader.c (copy_string): Declare `static inline'. No
945 problems with inline, since it is checked by configure.
946 (copy_comment): Likewise.
948 2000-03-17 Akim Demaille <akim@epita.fr>
950 * src/reader.c (packsymbols): Formatting changes.
952 2000-03-17 Akim Demaille <akim@epita.fr>
954 * src/reader.c (copy_comment): New function, factored out from:
955 (copy_action): Use it. Removed now unused `match', `ended',
957 (copy_guard): Likewise.
959 2000-03-17 Akim Demaille <akim@epita.fr>
961 * src/reader.c (copy_string): New function, factored out from:
962 (copy_action): Use it.
963 (copy_guard): Likewise.
965 2000-03-17 Akim Demaille <akim@epita.fr>
967 Change the handling of @s so that they behave exactly like $s.
968 There is now a pseudo variable @$ (readble and writable), location
969 of the lhs of the rule (by default ranging from the location of
970 the first symbol of the rhs, to the location of the last symbol,
971 or, if the rhs is empty, YYLLOC).
973 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
975 (yyparse): When providing a default semantic action, provide a
976 default location action.
977 (after the $): No longer change `*YYLSP', just stack YYLOC the
978 same way you stack YYVAL.
979 * src/reader.c (read_declarations): Use warns.
980 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
981 (copy_action, case '@'): Likewise.
982 Use a standard error message, to save useless work from
985 2000-03-17 Akim Demaille <akim@epita.fr>
987 * src/bison.s1: Formatting and cosmetics changes.
988 * src/reader.c: Likewise.
989 Update the Copyright notice.
991 2000-03-17 Akim Demaille <akim@epita.fr>
993 * src/bison.s1 (#line): All set to `#line' only, since the
994 Makefile now handles them.
996 2000-03-16 Akim Demaille <akim@epita.fr>
998 * src/output.c (output_rule_data): Output the documentation of
1000 (Copyright notice): Update.
1003 2000-03-16 Akim Demaille <akim@epita.fr>
1005 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1006 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1007 One `#if YYDEBUG' remains, since it uses variables which are
1008 defined only if `YYDEBUG != 0'.
1010 2000-03-16 Akim Demaille <akim@epita.fr>
1012 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1013 and related variables so that the similarities are highlighted.
1015 2000-03-16 Akim Demaille <akim@epita.fr>
1017 * src/bison.s1: Properly indent CPP directives.
1019 2000-03-16 Akim Demaille <akim@epita.fr>
1021 * src/bison.s1: Properly indent the `alloca' CPP section.
1023 2000-03-16 Akim Demaille <akim@epita.fr>
1025 Do not hard code values of directories in `configure.in'.
1026 Update the `configure' tool chain.
1028 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1030 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1031 (AC_OUTPUT): Add m4/Makefile.
1032 Bump to bison 1.28a, 1.29 has never been released.
1033 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1034 handled via src/Makefile.am.
1035 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1036 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1038 * Makefile.am (SUBDIRS): Add m4.
1039 (ACLOCAL_AM_FLAGS): New variable.
1040 (AUTOMAKE_OPTIONS): Add check-news.
1041 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1042 the proper line number and file name.
1043 (DEFS): Propagate the location of bison library files and of the
1045 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1047 * acinclude.m4: Remove, replaced by the directory m4.
1048 * m4/Makefile.am (EXTRA_DIST): New variable.
1049 * m4/gettext.m4: New file, from the fileutils.
1050 * m4/lcmessage.m4: Likewise
1051 * m4/progtest.m4: Likewise.
1052 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1054 2000-03-10 Akim Demaille <akim@epita.fr>
1057 Formatting changes of various comments.
1058 Respect the GNU coding standards at various places.
1059 Don't use `_()' when no translation is needed.
1061 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1064 OS/2 honors TMPDIR environment variable.
1066 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1068 * doc/bison.texinfo: Tweaked spelling and grammar.
1070 Removed reference to price of printed copy.
1071 Mention BISON_SIMPLE and BISON_HAIRY.
1073 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1075 * configure.in, NEWS:
1076 Bison 1.29 released.
1078 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1080 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1081 Added reference card.
1083 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1085 * po/ru.po: Added Russian translation.
1087 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1089 * configure.in: Added Russian translation.
1091 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1093 * configure.in, NEWS, README:
1094 Released version 1.28.
1096 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1099 Squashed redefinition warning on some systems.
1101 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1102 Have configure build version string instead of relying on ANSI string
1105 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1107 * po/POTFILES.in: Got rid of version.c.
1109 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1111 * acconfig.h, configure.in:
1112 Have configure build version string instead of relying on ANSI string
1115 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1118 Dropped mention of `+' for long-named options.
1120 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1122 * src/files.c: Added <unistd.h> for unlink().
1124 * src/Makefile.am, src/system.h:
1127 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1129 * README: Added a FAQ list.
1131 * configure.in, acconfig.h:
1134 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1136 * doc/FAQ, doc/Makefile.am:
1139 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1141 * src/alloc.h, src/symtab.h, src/version.c:
1142 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1144 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1146 * src/.cvsignore, src/Makefile.am:
1147 Reorganized: sources in `src', documentation in `doc'.
1149 * src/lex.c (literalchar):
1150 fixed the code for escaping double quotes (thanks
1153 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1155 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1156 Adjusted paths to reflect directory reorganization.
1158 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1160 * doc/.cvsignore, doc/Makefile.am:
1161 Reorganized: sources in `src', documentation in `doc'.
1163 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1166 Updated AC_INIT file to reflect directory reorganization.
1168 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1169 Reorganized: sources in `src', documentation in `doc'.
1171 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1174 Don't declare calloc() and realloc() if not necessary.
1176 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1178 * configure.in, acconfig.h, acinclude.m4:
1179 Don't declare calloc() and realloc() if not necessary.
1181 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1183 * po/.cvsignore: Added i18n support.
1185 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1187 * acconfig.h, configure.in, Makefile.am:
1190 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1192 * src/bison.s1: Fixed #line numbers.
1194 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1196 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1197 Added PO files from Translation Project.
1199 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1202 Added support for non-ANSI compilers (ansi2knr).
1204 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1206 * configure.in: Bumped version number to 1.27.
1209 Added `bison.simple' to list of files removed by `make distclean'.
1211 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1213 * src/files.c, src/files.h:
1214 Defined locations of parser files in config.h instead of Makefile.
1216 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1218 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1219 Defined locations of parser files in config.h instead of Makefile.
1221 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1224 Removed inappropriate use of $< macro.
1226 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1228 * po/Makefile.in.in, po/POTFILES.in:
1229 Add `po' directory skeleton.
1231 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1233 * README: Document help-bison list.
1235 * configure.in: Add check for mkstemp().
1237 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1239 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1240 Hush a few compiler warnings.
1243 Add tryclose(), which verifies that fclose was successful.
1244 Hush a couple of compiler warnings.
1246 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1248 * Makefile.am, OChangeLog:
1249 ChangeLog is now automatically generated. Include the old version as
1252 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1254 * 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:
1257 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1259 * doc/bison.texinfo: Fix formatting glitch.
1261 * doc/bison.texinfo: Update FSF address.
1263 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1265 * acconfig.h: Update FSF address.
1267 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1270 Don't define PACKAGE here, since config.h defines it.
1272 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1274 * src/reader.c: Update copyright date.
1277 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1278 favor of output directly to stderr (avoids buffer overruns).
1280 * src/reader.c: Some checks for premature EOF.
1282 * 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:
1283 Use prototypes if the compiler understands them.
1285 * src/files.c: Honor TMPDIR on Unix hosts.
1286 Use prototypes if the compiler understands them.
1289 Fix a couple of buffer overrun bugs.
1290 Use prototypes if the compiler understands them.
1292 * src/system.h: Include unistd.h and ctype.h.
1293 Use #ifdef instead of #if for NLS symbols.
1295 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1297 * doc/bison.texinfo:
1298 Delete comment "consider using @set for edition number, etc..." since
1299 we now are doing so.
1301 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1304 Use prototypes if the compiler understands them.
1306 * NEWS: Document 1.26 highlights.
1308 * Makefile.am: Require Automake 1.3 or later.
1311 Use prototypes if the compiler understands them.
1313 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1316 Use VERSION symbol from automake for version number.
1318 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1320 * acconfig.h, configure.in, version.cin:
1321 Use VERSION symbol from automake for version number.
1323 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1326 Distribute original version of simple parser (bison.s1), not built
1327 version (bison.simple).
1329 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1331 * doc/bison.texinfo: Add info dir entry.
1333 * doc/bison.texinfo:
1334 Let automake put version number into documentation.
1336 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1338 * src/bison.cld, src/build.com, src/vmshlp.mar:
1339 Add non-RCS files from /gd/gnu/bison.
1341 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1344 Document the BISON_HAIRY and BISON_SIMPLE variables.
1346 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1348 * src/version.c: Build version.c automatically.
1351 Fix token numbering (used to start at 258, not 257).
1353 * src/system.h: Include config.h.
1355 * src/getargs.c: Update bug report address.
1357 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1358 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1360 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1363 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1365 * configure.in, version.cin:
1366 Build version.c automatically.
1368 * AUTHORS: Add AUTHORS file.
1370 * README: Update bug report address.
1373 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1375 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1378 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1380 * doc/bison.texinfo: Clean up some formatting.
1382 1998-05-05 Richard Stallman <rms@gnu.org>
1384 * doc/bison.texinfo:
1385 Explain better why to make a pure parser.
1387 1998-01-05 Richard Stallman <rms@gnu.org>
1389 * src/files.c (openfiles):
1390 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1391 find a temporary directory, if possible. Do not unlink files while
1394 1997-08-25 Richard Stallman <rms@gnu.org>
1396 * src/reader.c (stack_offset;):
1397 Change some warni to warns.
1399 * src/lex.c (literalchar): Use warns, not warni.
1401 1997-06-28 Richard Stallman <rms@gnu.org>
1403 * src/bison.s1: Add a Bison version comment.
1405 * src/main.c (fatal, warn, berror):
1408 1997-06-28 Richard Stallman <rms@gnu.org>
1410 * Makefile.in (bison_version): New variable.
1411 (dist): Use that variable.
1412 (bison.s1): Substitute the Bison version into bison.simple.
1414 * bison.simple: Add a Bison version comment.
1416 1997-06-18 Richard Stallman <rms@gnu.org>
1418 * src/main.c (fatal, warn, berror):
1419 Make error messages standard.
1420 (toomany): Improve error message text.
1422 * 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:
1423 new.h renamed to alloc.h.
1425 1997-06-18 Richard Stallman <rms@gnu.org>
1427 * Makefile.in: new.h renamed to alloc.h.
1429 1997-05-24 Richard Stallman <rms@gnu.org>
1431 * src/lex.c (literalchar):
1432 Fix the code for escaping \, " and '.
1434 (lex): Avoid trouble when there are many chars
1435 to discard in a char literal with just several chars in it.
1437 1997-05-17 Richard Stallman <rms@gnu.org>
1440 Use malloc, if using alloca is troublesome.
1441 (YYSTACK_USE_ALLOCA): New flag macro.
1442 Define it for some systems and compilers.
1443 (YYSTACK_ALLOC): New macro.
1444 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1445 If it was malloc'd, free it.
1447 1997-05-17 Richard Stallman <rms@gnu.org>
1450 Use malloc, if using alloca is troublesome.
1451 (YYSTACK_USE_ALLOCA): New flag macro.
1452 Define it for some systems and compilers.
1453 (YYSTACK_ALLOC): New macro.
1454 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1455 If it was malloc'd, free it.
1457 1997-04-23 Richard Stallman <rms@gnu.org>
1460 (alloca) [__hpux]: Always define as __builtin_alloca.
1462 1997-04-23 Richard Stallman <rms@gnu.org>
1465 (alloca) [__hpux]: Always define as __builtin_alloca.
1467 1997-04-22 Richard Stallman <rms@gnu.org>
1470 [__hpux]: Include alloca.h (right for HPUX 10)
1471 instead of declaring alloca (right for HPUX 9).
1473 * src/bison.s1 (__yy_memcpy):
1474 Declare arg `count' as unsigned int.
1475 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1477 1997-04-22 Richard Stallman <rms@gnu.org>
1480 [__hpux]: Include alloca.h (right for HPUX 10)
1481 instead of declaring alloca (right for HPUX 9).
1483 * bison.simple (__yy_memcpy):
1484 Declare arg `count' as unsigned int.
1485 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1487 1997-01-03 Richard Stallman <rms@gnu.org>
1489 * src/allocate.c: [__STDC__ or _MSC_VER]:
1490 Declare calloc and realloc to return void *.
1492 1997-01-02 Richard Stallman <rms@gnu.org>
1495 [_MSC_VER]: Include stdlib.h and process.h.
1496 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1498 * src/main.c (main): Return FAILURE as a value.
1499 (printable_version): Declare arg as int, not char.
1501 1997-01-02 Richard Stallman <rms@gnu.org>
1503 * Makefile.in (dist):
1504 Explicitly check for symlinks, and copy them.
1506 1996-12-19 Richard Stallman <rms@gnu.org>
1509 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1511 1996-12-18 Paul Eggert <eggert@gnu.org>
1513 * src/bison.s1 (yyparse):
1514 If __GNUC__ and YYPARSE_PARAM are both defined,
1515 declare yyparse to have a void * argument.
1517 1996-12-18 Paul Eggert <eggert@gnu.org>
1519 * bison.simple (yyparse):
1520 If __GNUC__ and YYPARSE_PARAM are both defined,
1521 declare yyparse to have a void * argument.
1523 1996-12-17 Richard Stallman <rms@gnu.org>
1525 * src/reduce.c (nbits): Add some casts.
1527 1996-08-12 Richard Stallman <rms@gnu.org>
1529 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1531 1996-08-12 Richard Stallman <rms@gnu.org>
1533 * bison.simple: Test _MSDOS as well as _MSDOS_.
1535 1996-07-31 Richard Stallman <rms@gnu.org>
1538 [__sun && __i386]: Include alloca.h.
1540 1996-07-31 Richard Stallman <rms@gnu.org>
1543 [__sun && __i386]: Include alloca.h.
1545 1996-07-30 Richard Stallman <rms@gnu.org>
1547 * src/bison.s1: Comment change.
1549 * src/bison.s1: Test _MSDOS_, not MSDOS.
1551 1996-07-30 Richard Stallman <rms@gnu.org>
1553 * bison.simple: Comment change.
1555 * bison.simple: Test _MSDOS_, not MSDOS.
1557 1996-06-01 Richard Stallman <rms@gnu.org>
1559 * 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:
1560 Insert `_' macro around many string constants.
1563 Insert `_' macro around many string constants.
1565 (main): Call setlocale, bindtextdomain and textdomain.
1567 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1568 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1569 [ENABLE_NLS]: Include libintl.h.
1570 [ENABLE_NLS] (gettext): Define.
1571 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1572 (N_, PACKAGE, LOCALEDIR): New macros.
1574 1996-06-01 Richard Stallman <rms@gnu.org>
1576 * POTFILES.in: New file.
1578 * Makefile.in (allocate.o):
1579 Define target explicitly.
1581 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1582 (LDFLAGS): Set to @LDFLAGS@.
1583 (configure): Run autoconf only if preceding `cd' succeeds.
1584 (bison.s1): Redirect output to temporary file then move the
1585 temporary to the target, rather than redirecting directly to bison.s1.
1586 (clean): Remove config.status and config.log.
1587 (distclean): Don't remove config.status here.
1589 1996-05-12 Richard Stallman <rms@gnu.org>
1592 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1594 1996-05-12 Richard Stallman <rms@gnu.org>
1597 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1599 1996-05-11 Richard Stallman <rms@gnu.org>
1601 * src/bison.s1 (__yy_memcpy):
1602 Really reorder the args, as was supposedly done on Feb 14 1995.
1603 (yyparse): Calls changed accordingly.
1605 1996-05-11 Richard Stallman <rms@gnu.org>
1607 * Makefile.in (dist): Don't use $(srcdir).
1609 * bison.simple (__yy_memcpy):
1610 Really reorder the args, as was supposedly done on Feb 14 1995.
1611 (yyparse): Calls changed accordingly.
1613 1996-01-27 Richard Stallman <rms@gnu.org>
1615 * src/output.c (output_rule_data):
1616 Test YYERROR_VERBOSE in the conditional
1617 around the definition of ttyname.
1619 1995-12-29 Richard Stallman <rms@gnu.org>
1622 Fix line numbers in #line commands.
1624 1995-12-29 Richard Stallman <rms@gnu.org>
1627 Fix line numbers in #line commands.
1629 1995-12-27 Richard Stallman <rms@gnu.org>
1631 * src/bison.s1 (YYPARSE_PARAM_DECL):
1632 In C++, make it always null.
1633 (YYPARSE_PARAM_ARG): New macro.
1634 (yyparse): Use YYPARSE_PARAM_ARG.
1636 1995-12-27 Richard Stallman <rms@gnu.org>
1638 * bison.simple (YYPARSE_PARAM_DECL):
1639 In C++, make it always null.
1640 (YYPARSE_PARAM_ARG): New macro.
1641 (yyparse): Use YYPARSE_PARAM_ARG.
1643 1995-11-29 Richard Stallman <rms@gnu.org>
1645 * doc/bison.texinfo:
1646 Describe literal string tokens, %raw, %no_lines, %token_table.
1648 1995-11-29 Daniel Hagerty <hag@gnu.org>
1650 * doc/bison.texinfo: Fixed update date
1652 1995-10-16 Richard Stallman <rms@gnu.org>
1654 * src/version.c: Version 1.25.
1656 1995-10-16 Richard Stallman <rms@gnu.org>
1658 * NEWS: *** empty log message ***
1660 1995-10-16 Richard Stallman <rms@gnu.org>
1662 * doc/bison.1, doc/bison.rnh:
1665 1995-10-15 Richard Stallman <rms@gnu.org>
1667 * src/vmsgetargs.c, src/getargs.c:
1668 Added -n, -k, and -raw switches.
1669 (noparserflag, toknumflag, rawtoknumflag): New variables.
1671 * src/symtab.h (SALIAS):
1672 New #define for adding aliases to %token.
1673 (struct bucket): Added `alias' field.
1675 * src/reduce.c (reduce_grammar):
1676 Revise error message.
1677 (print_notices): Remove final `.' from error message.
1679 * src/reader.c (reader_output_yylsp):
1681 (readgram): Use `#if 0' around code that accepted %command
1682 inside grammar rules: The documentation doesn't allow it,
1683 and it will fail since the %command processors scan for the next %.
1684 (parse_token_decl): Extended the %token
1685 declaration to allow a multi-character symbol as an alias.
1686 (parse_thong_decl): New function.
1687 (read_declarations): Added %thong declarations.
1688 (read_declarations): Handle NOOP to deal with allowing
1689 % declarations as another means to specify the flags.
1690 (readgram): Allow %prec prior to semantics embedded in a rule.
1691 (skip_to_char, read_declarations, copy_definition)
1692 (parse_token_decl, parse_start_decl, parse_type_decl)
1693 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1694 (get_type_name, copy_guard, copy_action, readgram)
1695 (get_type, packsymbols): Revised most error messages.
1696 Changed `fatal' to `warnxxx' to avoid aborting for error.
1697 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1698 (read_declarations): Improve the error message for
1699 an invalid character. Do not abort.
1700 (read_declarations, copy_guard, copy_action): Use
1701 printable_version to avoid unprintable characters in printed output.
1702 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1703 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1704 Allow the type of a non-terminal can be given
1705 more than once, as long as all specifications give the same type.
1708 (output_headers, output_trailers, output, output_gram)
1709 (output_rule_data): Implement noparserflag variable.
1710 Implement toknumflag variable.
1711 (output): Call reader_output_yylsp to output LTYPESTR.
1713 * src/main.c (main):
1714 If reader sees an error, don't process the grammar.
1715 (fatals): Updated to not use VARARGS1.
1716 (printable_version, int_to_string, warn, warni, warns, warnss)
1717 (warnsss): New error reporting functions. Avoid abort for error.
1720 Added THONG and NOOP for alias processing.
1721 Added SETOPT for the new code that allows setting options with %flags.
1724 Include getopt.h. Add some extern decls.
1725 (safegetc): New function to deal with EOF gracefully.
1726 (literalchar); new function to deal with reading \ escapes.
1727 (lex): Use literalchar.
1728 (lex): Implemented "..." tokens.
1729 (literalchar, lex, parse_percent_token): Made tokenbuffer
1730 always contain the token. This includes growing the token
1731 buffer while reading an integer.
1732 (parse_percent_token): Replaced if-else statement with percent_table.
1733 (parse_percent_token): Added % declarations as another
1734 way to specify the flags -n, -l, and -r. Also added hooks for
1735 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1736 major changes to files.c.
1737 (lex) Retain in the incoming stream a character following
1739 (skip_white_space, lex): Revised most error messages
1740 and changed fatal to warn to avoid aborting.
1741 (percent_table): Added %thong declarations.
1743 * src/gram.h: Comment changes.
1745 * src/files.c (openfiles, open_extra_files, done):
1747 and actfile file. Handle noparserflag. Both for -n switch.
1749 * src/conflicts.c (resolve_sr_conflict):
1750 Remove use of alloca.
1752 1995-06-01 Jim Meyering <meyering@gnu.org>
1754 * doc/bison.texinfo: *** empty log message ***
1756 1995-05-06 Richard Stallman <rms@gnu.org>
1758 * src/bison.s1: Comment change.
1760 1995-05-06 Richard Stallman <rms@gnu.org>
1762 * bison.simple: Comment change.
1764 1995-05-03 Richard Stallman <rms@gnu.org>
1766 * src/version.c: Version now 1.24.
1768 * src/bison.s1: Change distribution terms.
1770 * src/version.c: Version now 1.23.
1772 1995-05-03 Richard Stallman <rms@gnu.org>
1774 * doc/bison.texinfo:
1775 Rewrite "Conditions for Using Bison".
1776 Update version to 1.24.
1778 1995-05-03 Richard Stallman <rms@gnu.org>
1780 * bison.simple: Change distribution terms.
1782 1995-02-23 Richard Stallman <rms@gnu.org>
1784 * src/files.c: Test __VMS_POSIX as well as VMS.
1786 1995-02-14 Jim Meyering <meyering@gnu.org>
1788 * src/bison.s1 (__yy_memcpy):
1789 Renamed from __yy_bcopy to avoid
1790 confusion. Reverse FROM and TO arguments to be consistent with
1793 1995-02-14 Jim Meyering <meyering@gnu.org>
1795 * bison.simple (__yy_memcpy):
1796 Renamed from __yy_bcopy to avoid
1797 confusion. Reverse FROM and TO arguments to be consistent with
1800 1994-11-10 David J. MacKenzie <djm@gnu.org>
1806 * Makefile.in (DISTFILES): Include NEWS.
1808 * Makefile.in (DISTFILES):
1809 Include install-sh, not install.sh.
1811 * configure.in: Update to Autoconf v2 macro names.
1813 1994-10-05 David J. MacKenzie <djm@gnu.org>
1815 * Makefile.in: fix typo
1817 * Makefile.in (prefix, exec_prefix):
1818 Let configure set them.
1820 1994-09-28 David J. MacKenzie <djm@gnu.org>
1822 * Makefile.in: Set datadir to $(prefix)/share.
1824 1994-09-15 Richard Stallman <rms@gnu.org>
1827 Update copyright notice and GPL version.
1829 1994-09-15 Richard Stallman <rms@gnu.org>
1832 Update copyright notice and GPL version.
1834 1994-07-12 Richard Stallman <rms@gnu.org>
1836 * src/reduce.c, src/reader.c:
1839 1994-05-05 David J. MacKenzie <djm@gnu.org>
1841 * Makefile.in: entered into RCS
1843 1994-03-26 Richard Stallman <rms@gnu.org>
1845 * src/bison.s1: entered into RCS
1847 1994-03-26 Richard Stallman <rms@gnu.org>
1849 * bison.simple: entered into RCS
1851 1994-03-25 Richard Stallman <rms@gnu.org>
1853 * src/main.c: entered into RCS
1855 1994-03-24 Richard Stallman <rms@gnu.org>
1857 * src/conflicts.c: entered into RCS
1859 1994-01-02 Richard Stallman <rms@gnu.org>
1861 * Makefile.in: *** empty log message ***
1863 1993-11-21 Richard Stallman <rms@gnu.org>
1865 * src/bison.s1: *** empty log message ***
1867 1993-11-21 Richard Stallman <rms@gnu.org>
1869 * doc/bison.texinfo: entered into RCS
1871 * doc/bison.texinfo: *** empty log message ***
1873 1993-11-21 Richard Stallman <rms@gnu.org>
1875 * bison.simple: *** empty log message ***
1877 1993-10-25 David J. MacKenzie <djm@gnu.org>
1879 * doc/bison.texinfo: *** empty log message ***
1881 1993-10-19 Richard Stallman <rms@gnu.org>
1883 * src/bison.s1: *** empty log message ***
1885 1993-10-19 Richard Stallman <rms@gnu.org>
1887 * bison.simple: *** empty log message ***
1889 1993-10-14 Richard Stallman <rms@gnu.org>
1891 * src/bison.s1: *** empty log message ***
1893 1993-10-14 Richard Stallman <rms@gnu.org>
1895 * bison.simple: *** empty log message ***
1897 1993-09-14 David J. MacKenzie <djm@gnu.org>
1899 * doc/bison.texinfo: *** empty log message ***
1901 1993-09-13 Noah Friedman <friedman@gnu.org>
1903 * Makefile.in: *** empty log message ***
1905 1993-09-10 Richard Stallman <rms@gnu.org>
1907 * src/conflicts.c: *** empty log message ***
1909 * src/system.h: entered into RCS
1911 1993-09-10 Richard Stallman <rms@gnu.org>
1913 * doc/bison.1: entered into RCS
1915 1993-09-06 Noah Friedman <friedman@gnu.org>
1917 * src/version.c: entered into RCS
1919 1993-09-06 Noah Friedman <friedman@gnu.org>
1921 * Makefile.in: *** empty log message ***
1923 1993-07-30 David J. MacKenzie <djm@gnu.org>
1925 * Makefile.in: *** empty log message ***
1927 1993-07-24 Richard Stallman <rms@gnu.org>
1929 * src/bison.s1: *** empty log message ***
1931 1993-07-24 Richard Stallman <rms@gnu.org>
1933 * bison.simple: *** empty log message ***
1935 1993-07-08 David J. MacKenzie <djm@gnu.org>
1937 * Makefile.in: *** empty log message ***
1939 1993-07-04 Richard Stallman <rms@gnu.org>
1941 * src/bison.s1: *** empty log message ***
1943 1993-07-04 Richard Stallman <rms@gnu.org>
1945 * bison.simple: *** empty log message ***
1947 1993-06-26 David J. MacKenzie <djm@gnu.org>
1949 * src/getargs.c: entered into RCS
1951 1993-06-26 David J. MacKenzie <djm@gnu.org>
1953 * doc/bison.texinfo: *** empty log message ***
1955 * doc/bison.1: New file.
1957 1993-06-25 Richard Stallman <rms@gnu.org>
1959 * src/getargs.c: New file.
1961 1993-06-16 Richard Stallman <rms@gnu.org>
1963 * src/bison.s1: *** empty log message ***
1965 1993-06-16 Richard Stallman <rms@gnu.org>
1967 * bison.simple: *** empty log message ***
1969 1993-06-03 Richard Stallman <rms@gnu.org>
1971 * src/bison.s1: New file.
1973 1993-06-03 Richard Stallman <rms@gnu.org>
1975 * doc/bison.texinfo: *** empty log message ***
1977 1993-06-03 Richard Stallman <rms@gnu.org>
1979 * bison.simple: New file.
1981 1993-05-19 Richard Stallman <rms@gnu.org>
1983 * doc/bison.texinfo: New file.
1985 1993-05-07 Noah Friedman <friedman@gnu.org>
1987 * Makefile.in: *** empty log message ***
1989 1993-04-28 Noah Friedman <friedman@gnu.org>
1991 * src/reader.c: *** empty log message ***
1993 1993-04-23 Noah Friedman <friedman@gnu.org>
1995 * src/alloc.h: entered into RCS
1997 1993-04-20 David J. MacKenzie <djm@gnu.org>
1999 * src/version.c: *** empty log message ***
2001 * src/files.c, src/allocate.c:
2004 * src/reader.c: *** empty log message ***
2006 * src/lex.c: entered into RCS
2008 * src/conflicts.c: New file.
2010 * src/symtab.c: entered into RCS
2012 * src/alloc.h: New file.
2014 * src/LR0.c: entered into RCS
2016 1993-04-18 Noah Friedman <friedman@gnu.org>
2018 * src/reader.c: New file.
2020 * src/version.c: *** empty log message ***
2022 1993-04-18 Noah Friedman <friedman@gnu.org>
2024 * Makefile.in: *** empty log message ***
2026 1993-04-17 Noah Friedman <friedman@gnu.org>
2028 * Makefile.in: *** empty log message ***
2030 1993-04-15 Richard Stallman <rms@gnu.org>
2032 * src/main.c, src/files.c:
2035 1993-04-15 Noah Friedman <friedman@gnu.org>
2037 * configure.in: entered into RCS
2039 * configure.in: *** empty log message ***
2041 * configure.in: New file.
2043 1993-04-14 Richard Stallman <rms@gnu.org>
2045 * Makefile.in: New file.
2047 1993-04-13 Richard Stallman <rms@gnu.org>
2049 * src/version.c: New file.
2051 1993-03-25 Richard Stallman <rms@gnu.org>
2053 * src/output.c: entered into RCS
2055 1992-09-25 Richard Stallman <rms@gnu.org>
2057 * configure.bat: entered into RCS
2059 1992-06-22 Richard Stallman <rms@gnu.org>
2061 * src/vmsgetargs.c: entered into RCS
2063 1992-06-22 Richard Stallman <rms@gnu.org>
2065 * doc/bison.rnh: entered into RCS
2067 1992-04-20 David J. MacKenzie <djm@gnu.org>
2069 * README: entered into RCS
2071 1992-01-22 Richard Stallman <rms@gnu.org>
2073 * src/machine.h: entered into RCS
2075 1991-12-21 Richard Stallman <rms@gnu.org>
2077 * src/lalr.c, src/closure.c:
2080 1991-12-20 Richard Stallman <rms@gnu.org>
2082 * src/state.h: entered into RCS
2084 1991-12-18 Richard Stallman <rms@gnu.org>
2086 * src/print.c, src/nullable.c, src/derives.c:
2089 1991-11-03 David J. MacKenzie <djm@gnu.org>
2091 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2094 1988-09-09 Richard Stallman <rms@gnu.org>
2096 * src/bison.hairy: entered into RCS
2098 1987-12-16 Richard Stallman <rms@gnu.org>
2100 * REFERENCES: entered into RCS