1 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
3 * src/getargs.h (raw_flag): Remove.
4 * src/getargs.c: Die on `-r'/`--raw'.
5 * src/lex.c (parse_percent_token): Die on `%raw'.
6 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
7 * tests/calc.at: Suppress test with option `--raw'.
9 2001-07-14 Akim Demaille <akim@epita.fr>
12 * configure.in: Require Autoconf 2.50.
13 Update to gettext 0.10.38.
15 2001-03-16 Akim Demaille <akim@epita.fr>
17 * doc/bison.texinfo: ANSIfy the examples.
19 2001-03-16 Akim Demaille <akim@epita.fr>
21 * getargs.c (skeleton): New variable.
22 (longopts): --skeleton is a new option.
23 (shortopts, getargs): -S is a new option.
24 * getargs.h: Declare skeleton.
25 * output.c (output_parser): Use it.
27 2001-03-16 Akim Demaille <akim@epita.fr>
29 * m4/strerror_r.m4: New.
30 * m4/error.m4: Run AC_FUNC_STRERROR_R.
31 * lib/error.h, lib/error.c: Update.
33 2001-03-16 Akim Demaille <akim@epita.fr>
35 * src/getargs.c (longopts): Clean up.
37 2001-02-21 Akim Demaille <akim@epita.fr>
39 * src/reader.c (gensym): `gensym_count' is your own.
40 Use a static buf to create the symbol name, as token_buffer is no
43 2001-02-08 Akim Demaille <akim@epita.fr>
45 * src/conflicts.c (conflict_report): Be sure not to append to res
46 between two calls, which could happen if both first sprintf were
47 skipped, but not the first cp += strlen.
49 2001-02-08 Akim Demaille <akim@epita.fr>
51 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
52 New, from fileutils 4.0.37.
53 * configure.in: Require Autoconf 2.49c. I took some time before
54 making this decision. This is the only way out for portability
55 issues in Bison, it would mean way too much duplicate effort to
56 import in Bison features implemented in 2.49c since 2.13.
57 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
59 2001-02-02 Akim Demaille <akim@epita.fr>
61 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
62 * lib/xalloc.h, lib/xmalloc.c: Update.
64 2001-01-19 Akim Demaille <akim@epita.fr>
66 Get rid of the ad hoc handling of token_buffer in the scanner: use
69 * src/lex.c (token_obstack): New.
70 (init_lex): Initialize it. No longer call...
71 (grow_token_buffer): this. Remove it.
72 Adjust all the places which used it to use the obstack.
74 2001-01-19 Akim Demaille <akim@epita.fr>
76 * src/lex.h: Rename all the tokens:
77 s/\bENDFILE\b/tok_eof/g;
78 s/\bIDENTIFIER\b/tok_identifier/g;
80 Let them be enums, not #define, to ease debugging.
83 2001-01-18 Akim Demaille <akim@epita.fr>
85 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
86 * src/lex.c (maxtoken, grow_token_buffer): Static.
88 2001-01-18 Akim Demaille <akim@epita.fr>
90 Since we now use obstacks, more % directives can be enabled.
92 * src/lex.c (percent_table): Also accept `%yacc',
93 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
95 Handle the actions for `%semantic_parser' and `%pure_parser' here,
96 instead of returning a token.
97 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
98 * src/reader.c (read_declarations): Adjust.
99 * src/files.c (open_files): Don't call `compute_base_names', don't
100 compute `attrsfile' since they depend upon data which might be
101 *in* the input file now.
102 (output_files): Do it here.
103 * src/output.c (output_headers): Document the fact that this patch
104 introduces a guaranteed SEGV for semantic parsers.
105 * doc/bison.texinfo: Document them.
106 * tests/suite.at: Exercise these %options.
108 2000-12-20 Akim Demaille <akim@epita.fr>
110 Also handle the output file (--verbose) with obstacks.
112 * files.c (foutput): Remove.
113 (output_obstack): New.
114 Adjust all dependencies.
115 * src/conflicts.c: Return a string.
116 * src/system.h (obstack_grow_string): Rename as...
117 (obstack_sgrow): this. Be ready to work with non literals.
118 (obstack_fgrow4): New.
120 2000-12-20 Akim Demaille <akim@epita.fr>
122 * src/files.c (open_files): Fix the computation of short_base_name
123 in the case of `-o foo.tab.c'.
125 2000-12-20 Akim Demaille <akim@epita.fr>
127 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
128 (copy_dollar): Now that everything uses obstacks, get rid of the
131 2000-12-20 Akim Demaille <akim@epita.fr>
133 * src/files.c (open_files): Actually the `.output' file is based
134 on the short_base_name, not base_name.
135 * tests/suite.at (Checking output file names): Adjust.
137 2000-12-20 Akim Demaille <akim@epita.fr>
139 * src/bison.s1: Remove, we now use directly...
140 * src/bison.simple: this.
141 * src/Makefile.am: Use pkgdata instead of data.
143 2000-12-20 Akim Demaille <akim@epita.fr>
145 * src/files.c (guard_obstack): New.
146 (open_files): Initialize it.
147 (output_files): Dump it...
148 * src/files.h: Export it.
149 * src/reader.c (copy_guard): Use it.
151 2000-12-19 Akim Demaille <akim@epita.fr>
153 * src/files.c (outfile, defsfile, actfile): Removed as global
155 (open_files): Don't compute them.
156 (output_files): Adjust.
157 (base_name, short_base_name): Be global.
160 2000-12-19 Akim Demaille <akim@epita.fr>
162 * src/files.c (strsuffix): New.
163 (stringappend): Be just like strcat but allocate.
164 (base_names): Eve out from open_files.
165 Try to simplify the rather hairy computation of base_name and
167 (open_files): Use it.
168 * tests/suite.at (Checking output file names): New test.
170 2000-12-19 Akim Demaille <akim@epita.fr>
172 * src/system.h (obstack_grow_literal_string): Rename as...
173 (obstack_grow_string): this.
174 * src/output.c (output_parser): Recognize `%% actions' instead of
176 * src/bison.s1: s/$/%% actions/.
177 * src/bison.hairy: Likewise.
179 2000-12-19 Akim Demaille <akim@epita.fr>
181 * src/output.c (output_parser): Compute the `#line' lines when
183 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
184 Suggested by Hans Aberg.
186 2000-12-19 Akim Demaille <akim@epita.fr>
188 Let the handling of the skeleton files be local to the procedures
191 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
193 (fparser, open_extra_files): Remove.
194 (open_files, output_files): Don't take care of fparser.
195 * src/files.h: Adjust.
196 * src/output.c (output_parser): Open and close the file to the
198 * src/reader.c (read_declarations): When %semantic_parser, open
201 2000-12-19 Akim Demaille <akim@epita.fr>
203 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
204 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
206 2000-12-19 Akim Demaille <akim@epita.fr>
208 * src/files.c (open_files): Yipee! We no longer need all the code
209 looking for `/tmp' since we have no tmp file.
211 2000-12-19 Akim Demaille <akim@epita.fr>
213 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
215 * src/files.c (open_files): Less dependency on MSDOS etc.
217 2000-12-14 Akim Demaille <akim@epita.fr>
219 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
220 Provide a default definition.
221 Use it when executing the default @ action.
222 * src/reader.c (reader_output_yylsp): No longer include
223 `timestamp' and `text' in the default YYLTYPE.
225 2000-12-12 Akim Demaille <akim@epita.fr>
227 * src/reader.c (copy_definition, parse_union_decl, copy_action)
228 (copy_guard): Quote the file names.
229 Reported by Laurent Mascherpa.
231 2000-12-12 Akim Demaille <akim@epita.fr>
233 * src/output.c (output_headers, output_program, output): Be sure
234 to escape special characters when outputting filenames.
235 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
236 (output_headers): Don't depend on them, Use ACTSTR.
238 2000-11-17 Akim Demaille <akim@epita.fr>
240 * lib/obstack.h: Formatting changes.
241 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
242 prevents type checking.
243 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
244 cast the value to (void *): assigning a `foo *' to a `void *'
246 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
247 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
250 2000-11-17 Akim Demaille <akim@epita.fr>
252 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
254 (suite.m4, regression.m4, calc.m4): these.
255 * tests/atgeneral.m4: Update from CVS Autoconf.
257 2000-11-17 Akim Demaille <akim@epita.fr>
259 * tests/regression.m4 (%union and --defines): New test,
260 demonstrating a current bug in the obstack implementation.
262 2000-11-17 Akim Demaille <akim@epita.fr>
264 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
266 Use them to declare the variables which are global or local to
269 2000-11-17 Akim Demaille <akim@epita.fr>
271 * acconfig.h: Remove, no longer used.
273 2000-11-07 Akim Demaille <akim@epita.fr>
275 * src: s/Copyright (C)/Copyright/g.
277 2000-11-07 Akim Demaille <akim@epita.fr>
279 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
281 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
283 2000-11-07 Akim Demaille <akim@epita.fr>
285 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
286 Merge in a single CPP if/else.
288 2000-11-07 Akim Demaille <akim@epita.fr>
290 * src/output.c (output): Remove useless variables.
291 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
292 argument `data' for consistency with the prototypes.
294 (obstack_copy, obstack_copy0): Rename the second argument as
295 `address' for consistency. Qualify it `const'.
296 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
297 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
298 `const' their input argument (`data' or `address').
299 Adjust the corresponding macros to include `const' in casts.
301 2000-11-03 Akim Demaille <akim@epita.fr>
303 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
304 s/PFILE1/BISON_HAIRY/.
307 2000-11-03 Akim Demaille <akim@epita.fr>
309 For some reason, this was not applied.
311 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
312 `unlink': it's no longer used.
314 2000-11-03 Akim Demaille <akim@epita.fr>
316 * src/files.c (skeleton_find): New function, eved out of...
317 (open_files, open_extra_files): here.
319 2000-11-03 Akim Demaille <akim@epita.fr>
323 * src/files.c (obstack_save): New function.
325 (output_files): this.
327 * src/main.c (main): Don't use `atexit' to register `done', since
328 it no longer has to remove tmp files, just call `output_files'
329 when there are no errors.
331 2000-11-02 Akim Demaille <akim@epita.fr>
333 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
334 `unlink': it's no longer used.
335 * src/files.h: Formatting changes.
337 2000-11-02 Akim Demaille <akim@epita.fr>
339 Remove the last uses of mktemp and unlink/delete.
341 * src/files.c (fdefines, ftable): Removed.
342 (defines_ostack, table_obstack): New.
343 Adjust dependencies of the former into uses of the latter.
344 * src/output.c (output_short_or_char_table, output_short_table):
345 Convert to using obstacks.
346 * src/reader.c (copy_comment2): Accept one FILE * and two
348 (output_token_defines, reader_output_yylsp): Use obstacks.
349 * src/system.h (obstack_fgrow3): New.
351 2000-11-01 Akim Demaille <akim@epita.fr>
353 Change each use of `fattrs' into a use of `attrs_obstack'.
355 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
356 * src/files.c (fattrs): Remove.
357 (attrs_obstack): New.
358 Adjust all dependencies.
359 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
361 2000-11-01 Akim Demaille <akim@epita.fr>
364 Change each use of `faction' into a use of `action_obstack'.
366 * lib/obstack.h, lib/obstack.c: New files.
367 * src/files.c (faction): Remove.
368 (action_obstack): New.
369 Adjust all dependencies.
371 2000-10-20 Akim Demaille <akim@epita.fr>
373 * lib/quote.h (PARAMS): New macro. Use it.
375 2000-10-16 Akim Demaille <akim@epita.fr>
377 * src/output.c (output_short_or_char_table): New function.
378 (output_short_table, output_token_translations): Use it.
379 (goto_actions): Use output_short_table.
381 2000-10-16 Akim Demaille <akim@epita.fr>
383 * src/symtab.c (bucket_new): New function.
386 * src/output.c (output_short_table): New argument to display the
387 comment associated with the table.
389 (output_gram): Use it.
390 (output_rule_data): Nicer output layout for YYTNAME.
392 2000-10-16 Akim Demaille <akim@epita.fr>
394 * src/lex.c (read_typename): New function.
396 * src/reader.c (copy_dollar): Likewise.
398 2000-10-16 Akim Demaille <akim@epita.fr>
400 * src/reader.c (copy_comment2): Expect the input stream to be on
401 the `/' which is suspected to open a comment, instead of being
402 called after `//' or `/*' was read.
403 (copy_comment, copy_definition, parse_union_decl, copy_action)
404 (copy_guard): Adjust.
406 2000-10-16 Akim Demaille <akim@epita.fr>
408 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
409 `read_signed_integer'.
411 2000-10-16 Akim Demaille <akim@epita.fr>
413 * src/reader.c (copy_dollar): New function.
414 (copy_guard, copy_action): Use it.
416 2000-10-16 Akim Demaille <akim@epita.fr>
418 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
419 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
420 New files, from Fileutils 4.0.27.
421 * src/main.c (printable_version): Remove.
422 * src/lex.c, src/reader.c: Use `quote'.
424 2000-10-04 Akim Demaille <akim@epita.fr>
426 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
428 2000-10-04 Akim Demaille <akim@epita.fr>
430 * doc/bison.texinfo: Various typos spotted by Neil Booth.
432 2000-10-04 Akim Demaille <akim@epita.fr>
434 When a literal string is used to define two different tokens,
435 `bison -v' segfaults.
436 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
438 * tests/regression.m4: New file.
439 Include the core of the sample provided by Piotr Gackiewicz.
440 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
443 2000-10-04 Akim Demaille <akim@epita.fr>
445 * src/reader.c (parse_expect_decl): Keep `count' within the size
449 2000-10-02 Paul Eggert <eggert@twinsun.com>
451 * bison.s1 (yyparse): Assign the default value
452 unconditionally, to avoid a GCC warning and make the parser a
455 2000-10-02 Akim Demaille <akim@epita.fr>
457 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
460 2000-10-02 Akim Demaille <akim@epita.fr>
462 * src/derives.c, src/print.c, src/reduce.c: To ease the
463 translation, move some `\n' out of the translated strings.
465 2000-10-02 Akim Demaille <akim@epita.fr>
467 The location tracking mechanism is precious for parse error
468 messages. Nevertheless, it is enabled only when `@n' is used in
469 the grammar, which is a different issue (you can use it in error
470 message, but not in the grammar per se). Therefore, there should
471 be another means to enable it.
473 * src/getargs.c (getargs): Support `--locations'.
475 * src/getargs.h (locationsflag): Export it.
476 * src/lex.c (percent_table): Support `%locations'.
477 * src/reader.c (yylsp_needed): Remove this variable, now replaced
478 with `locationsflag'.
479 * doc/bison.texinfo: Document `--locations' and `%locations'.
481 * tests/calc.m4: Test it.
483 For regularity of the names, replace each
484 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
485 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
486 In addition replace each `flag' with `_flag'.
488 2000-10-02 Akim Demaille <akim@epita.fr>
490 Also test parse error messages, including with YYERROR_VERBOSE.
492 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
494 Use it to check the computations.
495 Use it to check `nonassoc' is honored.
496 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
498 (_AT_CHECK_CALC): Adjust to this option.
499 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
501 2000-10-02 Akim Demaille <akim@epita.fr>
503 Test also `--verbose', `--defines' and `--name-prefix'. Testing
504 the latter demonstrates a flaw in the handling of non debugging
505 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
506 was used in order to simplify:
522 unfortunately this leads to a CPP conflict when
523 `--name-prefix=foo' is used since it produces `#define yydebug
526 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
527 (YYDPRINTF): New macro.
529 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
531 Also test `--verbose', `--defines' and `--name-prefix'.
533 2000-10-02 Akim Demaille <akim@epita.fr>
535 Improve the readability of the produced parsers.
537 * src/bison.s1: Formatting changes.
538 Improve the comment related to the `$' mark.
539 (yydefault): Don't fall through to `yyresume': `goto' there.
540 * src/output.c (output_parser): When the `$' is met, skip the end
542 New variable, `number_of_dollar_signs', to check there's exactly
543 one `$' in the parser skeleton.
545 2000-10-02 Akim Demaille <akim@epita.fr>
547 * lib/xstrdup.c: New file, from the fileutils.
548 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
549 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
550 instead of strlen + xmalloc + strcpy.
551 * src/symtab.c (copys): Remove, use xstrdup instead.
553 2000-10-02 Akim Demaille <akim@epita.fr>
555 * src/gram.h (associativity): New enum type which replaces the
556 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
557 `right_assoc', `left_assoc' and `non_assoc'.
558 Adjust all dependencies.
559 * src/reader.c: Formatting changes.
560 (LTYPESTR): Don't define it, use it as a literal in
561 `reader_output_yylsp'.
562 * src/symtab.h (symbol_class): New enum type which replaces the
563 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
564 `sunknown', `stoken and `snterm'.
566 2000-10-02 Akim Demaille <akim@epita.fr>
568 * src/getargs.c (fixed_outfiles): Rename as...
569 (yaccflag): for consistency and accuracy.
572 2000-10-02 Akim Demaille <akim@epita.fr>
574 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
575 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
576 difficult and introduced a lot of core dump. It turns out that
577 Bison used an implementation of `xmalloc' based on `calloc', and
578 at various places it does depend upon the initialization to 0. I
579 have not tried to isolate the pertinent places, and all the former
580 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
581 someone should address this issue.
583 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
584 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
587 * src/warshall.h: New file.
590 2000-10-02 Akim Demaille <akim@epita.fr>
592 Various anti-`extern in *.c' changes.
594 * src/system.h: Include `assert.h'.
596 2000-10-02 Akim Demaille <akim@epita.fr>
598 * src/state.h (nstates, final_state, first_state, first_shift)
599 (first_reduction): Move their exportation from here...
600 * src/LR0.h: to here.
602 * src/getargs.c (statisticsflag): New variable.
603 Add support for `--statistics'.
606 Remove a lot of now useless `extern' statements in most files.
608 2000-10-02 Akim Demaille <akim@epita.fr>
610 * src/LR0.h: New file.
613 2000-10-02 Akim Demaille <akim@epita.fr>
615 * src/print.h: New file.
617 * src/print.c: Formatting and ordering changes.
618 (verbose, terse): Replace with...
619 (print_results): this new function.
622 2000-10-02 Akim Demaille <akim@epita.fr>
624 * src/conflicts.c (conflict_report): New function.
625 (conflict_log, verbose_conflict_log): Replace with...
626 (print_conflicts): this function.
628 * src/conflicts.h: New file.
629 Propagate its inclusion.
631 2000-10-02 Akim Demaille <akim@epita.fr>
633 * src/nullable.h: New file.
634 Propagate its inclusion.
635 * src/nullable.c: Formatting changes.
637 2000-10-02 Akim Demaille <akim@epita.fr>
639 * src/reduce.h: New file.
640 Propagate its inclusion.
641 * src/reduce.c: Topological sort and other formatting changes.
642 (bool, TRUE, FALSE): Move their definition to...
643 * src/system.h: here.
645 2000-10-02 Akim Demaille <akim@epita.fr>
647 * src/files.c: Formatting changes.
648 (tryopen, tryclose, openfiles): Rename as...
649 (xfopen, xfclose, open_files): this.
650 (stringappend): static.
651 * src/files.h: Complete the list of exported symbols.
654 2000-10-02 Akim Demaille <akim@epita.fr>
656 * src/reader.h: New file.
657 Propagate its use instead of tedious list of `extern' and
659 * src/reader.c: Formatting changes, topological sort,
662 2000-10-02 Akim Demaille <akim@epita.fr>
664 * src/lex.h: Prototype `lex.c' exported functions.
665 * src/reader.c: Adjust.
666 * src/lex.c: Formatting changes.
667 (safegetc): Rename as...
670 2000-10-02 Akim Demaille <akim@epita.fr>
672 * src/lalr.h: New file.
673 Propagate its inclusion instead of prototypes and `extern'.
674 * src/lalr.c: Formatting changes, topological sorting etc.
676 2000-10-02 Akim Demaille <akim@epita.fr>
678 * src/output.c (token_actions): Introduce a temporary array,
679 YYDEFACT, that makes it possible for this function to use
682 2000-10-02 Akim Demaille <akim@epita.fr>
684 `user_toknums' is output as a `short[]' in `output.c', while it is
685 defined as a `int[]' in `reader.c'. For consistency with the
686 other output tables, `user_toknums' is now defined as a table of
689 * src/reader.c (user_toknums): Be a short table instead of an int
693 Factor the short table outputs.
695 * src/output.c (output_short_table): New function.
696 * src/output.c (output_gram, output_stos, output_rule_data)
697 (output_base, output_table, output_check): Use it.
699 2000-10-02 Akim Demaille <akim@epita.fr>
701 * src/output.c (output): Topological sort of the functions, in
702 order to get rid of the `static' prototypes.
703 No longer use `register'.
704 * src/output.h: New file.
705 Propagate its inclusion in files explicitly prototyping functions
708 2000-09-21 Akim Demaille <akim@epita.fr>
710 * src/atgeneral.m4: Update from Autoconf.
712 2000-09-21 Akim Demaille <akim@epita.fr>
714 * src/closure.h: New file.
715 * src/closure.c: Formatting changes, topological sort over the
716 functions, use of closure.h.
717 (initialize_closure, finalize_closure): Rename as...
718 (new_closure, free_closure): these. Adjust dependencies.
719 * src/LR0.c: Formatting changes, topological sort, use of
721 (initialize_states): Rename as...
723 * src/Makefile.am (noinst_HEADERS): Adjust.
725 2000-09-20 Akim Demaille <akim@epita.fr>
727 * src/acconfig.h: Don't protect config.h against multiple
730 * src/system.h: Define PARAMS.
731 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
732 purpose of config.h. system.h must not try to fix wrong
733 definitions in config.h.
735 2000-09-20 Akim Demaille <akim@epita.fr>
737 * src/derives.h: New file.
738 * src/main.c, src/derives.h: Use it.
740 * src/Makefile.am (noinst_HEADERS): Adjust.
742 2000-09-20 Akim Demaille <akim@epita.fr>
744 * tests/atgeneral.m4: Update from Autoconf.
745 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
746 (AT_CHECK_CALC): New macros.
747 Use these macros to test bison with options `', `--raw',
748 `--debug', `--yacc', `--yacc --debug'.
750 2000-09-19 Akim Demaille <akim@epita.fr>
752 * src/output.c: Formatting changes.
753 * src/machine.h: Remove, leaving its contents in...
754 * src/system.h: here.
756 Adjust all dependencies on stdio.h and machine.h.
757 * src/getargs.h: New file.
758 Let all `extern' declarations about getargs.c be replaced with
759 inclusion of `getargs.h'.
760 * src/Makefile.am (noinst_HEADERS): Adjust.
762 * tests/calc.m4 (yyin): Be initialized in main, not on the global
764 (yyerror): Returns void, not int.
765 * doc/bison.texinfo: Formatting changes.
767 2000-09-19 Akim Demaille <akim@epita.fr>
769 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
772 2000-09-18 Akim Demaille <akim@epita.fr>
774 * configure.in: Append WARNING_CFLAGS to CFLAGS.
775 * src/Makefile.am (INCLUDES): Don't.
776 Be ready to fetch headers in lib/.
778 2000-09-18 Akim Demaille <akim@epita.fr>
780 * doc/bison.texinfo: Update the copyright.
781 ANSIfy and GNUify the examples.
784 2000-09-18 Akim Demaille <akim@epita.fr>
786 First set of tests: use the `calc' example from the documentation.
788 * src/bison.s1 (yyparse): Condition the code using `yytname' which
789 is defined only when YYDEBUG is.
790 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
791 * src/files.c (tryopen, tryclose): Formatting changes.
792 Move to the top and be static.
793 * src/reader.c (read_signed_integer): Likewise.
794 * tests/calc.m4: New file.
795 * Makefile.am, suite.m4: Adjust.
796 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
798 2000-09-18 Akim Demaille <akim@epita.fr>
800 Add support for an Autotest test suite for Bison.
802 * m4/m4.m4, m4/atconfig.m4: New files.
803 * m4/Makefile.am (EXTRA_DIST): Adjust.
804 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
806 * src/getargs.c: Display a more standard --version message.
807 * src/reader.c (reader): Formatting changes.
808 No longer depend upon VERSION_STRING.
809 * configure.in: No longer use `dnl'.
810 Set up the test suite and the new directory `tests/.
811 (VERSION_STRING): Remove.
813 2000-04-14 Akim Demaille <akim@epita.fr>
815 * src/reader.c (copy_comment2): New function, same as former
816 `copy_comment', but outputs into two FILE *.
817 (copy_comment): Use it.
818 (parse_union_decl): Use it.
819 (get_type, parse_start_decl): Use the same `invalid' message.
820 (parse_start_decl, parse_union_decl): Use the same `multiple'
822 (parse_union_decl, copy_guard, copy_action): Use the same
824 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
826 2000-03-31 Akim Demaille <akim@epita.fr>
828 * src/files.c (tryopen, tryclose): Move to the top.
831 2000-03-31 Akim Demaille <akim@epita.fr>
833 * src/main.c (main): Don't call `done', exit does it.
835 2000-03-31 Akim Demaille <akim@epita.fr>
837 * allocate.c: s/return (foo)/return foo/.
840 * output.c: Likewise.
841 * reader.c: Likewise.
842 * symtab.c: Likewise.
843 * vmsgetargs.c: Likewise.
845 2000-03-31 Akim Demaille <akim@epita.fr>
847 Clean up the error reporting functions.
849 * src/report.c: New file.
850 * src/report.h: Likewise.
851 * src/Makefile.am: Adjust.
852 * m4/error.m4: New file.
853 * m4/Makefile.am: Adjust.
854 * configure.in (jm_PREREQ_ERROR): Call it.
855 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
857 (fatal, fatals): Remove. All callers use complain.c::fatal.
858 (warn, warni, warns, warnss, warnss): Remove. All callers use
859 complain.c::complain.
860 (toomany): Remove, use fatal instead.
861 * src/files.c (done): No argument, use complain_message_count.
862 * src/main.c (main): Register `done' to `atexit'.
864 * src/getargs.c (usage): More `fputs', less `fprintf'.
866 2000-03-28 Akim Demaille <akim@epita.fr>
868 * lib/: New directory.
869 * Makefile.am (SUBDIRS): Adjust.
870 * configure.in: Adjust.
871 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
873 * src/alloca.c: Moved to lib/.
874 * src/getopt.c: Likewise.
875 * src/getopt1.c: Likewise.
876 * src/getopt.h: Likewise.
877 * src/ansi2knr.c: Likewise.
878 * src/ansi2knr.1: Likewise.
879 * src/Makefile.am: Adjust.
880 * lib/Makefile.am: New file.
882 2000-03-28 Akim Demaille <akim@epita.fr>
884 * src/getargs.c (usage): Refresh the help message.
886 2000-03-17 Akim Demaille <akim@epita.fr>
888 * src/getopt1.c: Updated from textutils 2.0e
889 * src/getopt.c: Likewise.
890 * src/getopt.h: Likewise.
892 2000-03-17 Akim Demaille <akim@epita.fr>
894 * src/Makefile.am (bison.simple): Fix the awk program: quote only
895 the file name, not the whole `#line LINE FILE'.
897 2000-03-17 Akim Demaille <akim@epita.fr>
899 On syntax errors, report the token on which we choked.
901 * src/bison.s1 (yyparse): In the label yyerrlab, when
902 YYERROR_VERBOSE, add yychar in msg.
904 2000-03-17 Akim Demaille <akim@epita.fr>
906 * src/reader.c (copy_at): New function.
907 (copy_guard): Use it.
908 (copy_action): Use it.
910 2000-03-17 Akim Demaille <akim@epita.fr>
912 Be kind to translators, save some useless translations.
914 * src/main.c (banner): New function.
915 (fatal_banner): Use it.
916 (warn_banner): Use it.
918 2000-03-17 Akim Demaille <akim@epita.fr>
920 * src/reader.c (copy_definition): Use copy_string and
921 copy_comment. Removed now unused `match', `ended',
923 (copy_comment, copy_string): Moved, to be visible from
926 2000-03-17 Akim Demaille <akim@epita.fr>
928 * src/reader.c (copy_string): Declare `static inline'. No
929 problems with inline, since it is checked by configure.
930 (copy_comment): Likewise.
932 2000-03-17 Akim Demaille <akim@epita.fr>
934 * src/reader.c (packsymbols): Formatting changes.
936 2000-03-17 Akim Demaille <akim@epita.fr>
938 * src/reader.c (copy_comment): New function, factored out from:
939 (copy_action): Use it. Removed now unused `match', `ended',
941 (copy_guard): Likewise.
943 2000-03-17 Akim Demaille <akim@epita.fr>
945 * src/reader.c (copy_string): New function, factored out from:
946 (copy_action): Use it.
947 (copy_guard): Likewise.
949 2000-03-17 Akim Demaille <akim@epita.fr>
951 Change the handling of @s so that they behave exactly like $s.
952 There is now a pseudo variable @$ (readble and writable), location
953 of the lhs of the rule (by default ranging from the location of
954 the first symbol of the rhs, to the location of the last symbol,
955 or, if the rhs is empty, YYLLOC).
957 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
959 (yyparse): When providing a default semantic action, provide a
960 default location action.
961 (after the $): No longer change `*YYLSP', just stack YYLOC the
962 same way you stack YYVAL.
963 * src/reader.c (read_declarations): Use warns.
964 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
965 (copy_action, case '@'): Likewise.
966 Use a standard error message, to save useless work from
969 2000-03-17 Akim Demaille <akim@epita.fr>
971 * src/bison.s1: Formatting and cosmetics changes.
972 * src/reader.c: Likewise.
973 Update the Copyright notice.
975 2000-03-17 Akim Demaille <akim@epita.fr>
977 * src/bison.s1 (#line): All set to `#line' only, since the
978 Makefile now handles them.
980 2000-03-16 Akim Demaille <akim@epita.fr>
982 * src/output.c (output_rule_data): Output the documentation of
984 (Copyright notice): Update.
987 2000-03-16 Akim Demaille <akim@epita.fr>
989 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
990 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
991 One `#if YYDEBUG' remains, since it uses variables which are
992 defined only if `YYDEBUG != 0'.
994 2000-03-16 Akim Demaille <akim@epita.fr>
996 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
997 and related variables so that the similarities are highlighted.
999 2000-03-16 Akim Demaille <akim@epita.fr>
1001 * src/bison.s1: Properly indent CPP directives.
1003 2000-03-16 Akim Demaille <akim@epita.fr>
1005 * src/bison.s1: Properly indent the `alloca' CPP section.
1007 2000-03-16 Akim Demaille <akim@epita.fr>
1009 Do not hard code values of directories in `configure.in'.
1010 Update the `configure' tool chain.
1012 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1014 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1015 (AC_OUTPUT): Add m4/Makefile.
1016 Bump to bison 1.28a, 1.29 has never been released.
1017 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1018 handled via src/Makefile.am.
1019 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1020 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1022 * Makefile.am (SUBDIRS): Add m4.
1023 (ACLOCAL_AM_FLAGS): New variable.
1024 (AUTOMAKE_OPTIONS): Add check-news.
1025 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1026 the proper line number and file name.
1027 (DEFS): Propagate the location of bison library files and of the
1029 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1031 * acinclude.m4: Remove, replaced by the directory m4.
1032 * m4/Makefile.am (EXTRA_DIST): New variable.
1033 * m4/gettext.m4: New file, from the fileutils.
1034 * m4/lcmessage.m4: Likewise
1035 * m4/progtest.m4: Likewise.
1036 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1038 2000-03-10 Akim Demaille <akim@epita.fr>
1041 Formatting changes of various comments.
1042 Respect the GNU coding standards at various places.
1043 Don't use `_()' when no translation is needed.
1045 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1048 OS/2 honors TMPDIR environment variable.
1050 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1052 * doc/bison.texinfo: Tweaked spelling and grammar.
1054 Removed reference to price of printed copy.
1055 Mention BISON_SIMPLE and BISON_HAIRY.
1057 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1059 * configure.in, NEWS:
1060 Bison 1.29 released.
1062 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1064 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1065 Added reference card.
1067 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1069 * po/ru.po: Added Russian translation.
1071 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1073 * configure.in: Added Russian translation.
1075 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1077 * configure.in, NEWS, README:
1078 Released version 1.28.
1080 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1083 Squashed redefinition warning on some systems.
1085 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1086 Have configure build version string instead of relying on ANSI string
1089 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1091 * po/POTFILES.in: Got rid of version.c.
1093 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1095 * acconfig.h, configure.in:
1096 Have configure build version string instead of relying on ANSI string
1099 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1102 Dropped mention of `+' for long-named options.
1104 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1106 * src/files.c: Added <unistd.h> for unlink().
1108 * src/Makefile.am, src/system.h:
1111 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1113 * README: Added a FAQ list.
1115 * configure.in, acconfig.h:
1118 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1120 * doc/FAQ, doc/Makefile.am:
1123 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1125 * src/alloc.h, src/symtab.h, src/version.c:
1126 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1128 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1130 * src/.cvsignore, src/Makefile.am:
1131 Reorganized: sources in `src', documentation in `doc'.
1133 * src/lex.c (literalchar):
1134 fixed the code for escaping double quotes (thanks
1137 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1139 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1140 Adjusted paths to reflect directory reorganization.
1142 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1144 * doc/.cvsignore, doc/Makefile.am:
1145 Reorganized: sources in `src', documentation in `doc'.
1147 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1150 Updated AC_INIT file to reflect directory reorganization.
1152 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1153 Reorganized: sources in `src', documentation in `doc'.
1155 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1158 Don't declare calloc() and realloc() if not necessary.
1160 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1162 * configure.in, acconfig.h, acinclude.m4:
1163 Don't declare calloc() and realloc() if not necessary.
1165 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1167 * po/.cvsignore: Added i18n support.
1169 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1171 * acconfig.h, configure.in, Makefile.am:
1174 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1176 * src/bison.s1: Fixed #line numbers.
1178 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1180 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1181 Added PO files from Translation Project.
1183 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1186 Added support for non-ANSI compilers (ansi2knr).
1188 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1190 * configure.in: Bumped version number to 1.27.
1193 Added `bison.simple' to list of files removed by `make distclean'.
1195 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1197 * src/files.c, src/files.h:
1198 Defined locations of parser files in config.h instead of Makefile.
1200 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1202 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1203 Defined locations of parser files in config.h instead of Makefile.
1205 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1208 Removed inappropriate use of $< macro.
1210 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1212 * po/Makefile.in.in, po/POTFILES.in:
1213 Add `po' directory skeleton.
1215 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1217 * README: Document help-bison list.
1219 * configure.in: Add check for mkstemp().
1221 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1223 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1224 Hush a few compiler warnings.
1227 Add tryclose(), which verifies that fclose was successful.
1228 Hush a couple of compiler warnings.
1230 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1232 * Makefile.am, OChangeLog:
1233 ChangeLog is now automatically generated. Include the old version as
1236 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1238 * 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:
1241 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1243 * doc/bison.texinfo: Fix formatting glitch.
1245 * doc/bison.texinfo: Update FSF address.
1247 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1249 * acconfig.h: Update FSF address.
1251 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1254 Don't define PACKAGE here, since config.h defines it.
1256 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1258 * src/reader.c: Update copyright date.
1261 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1262 favor of output directly to stderr (avoids buffer overruns).
1264 * src/reader.c: Some checks for premature EOF.
1266 * 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:
1267 Use prototypes if the compiler understands them.
1269 * src/files.c: Honor TMPDIR on Unix hosts.
1270 Use prototypes if the compiler understands them.
1273 Fix a couple of buffer overrun bugs.
1274 Use prototypes if the compiler understands them.
1276 * src/system.h: Include unistd.h and ctype.h.
1277 Use #ifdef instead of #if for NLS symbols.
1279 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1281 * doc/bison.texinfo:
1282 Delete comment "consider using @set for edition number, etc..." since
1283 we now are doing so.
1285 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1288 Use prototypes if the compiler understands them.
1290 * NEWS: Document 1.26 highlights.
1292 * Makefile.am: Require Automake 1.3 or later.
1295 Use prototypes if the compiler understands them.
1297 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1300 Use VERSION symbol from automake for version number.
1302 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1304 * acconfig.h, configure.in, version.cin:
1305 Use VERSION symbol from automake for version number.
1307 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1310 Distribute original version of simple parser (bison.s1), not built
1311 version (bison.simple).
1313 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1315 * doc/bison.texinfo: Add info dir entry.
1317 * doc/bison.texinfo:
1318 Let automake put version number into documentation.
1320 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1322 * src/bison.cld, src/build.com, src/vmshlp.mar:
1323 Add non-RCS files from /gd/gnu/bison.
1325 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1328 Document the BISON_HAIRY and BISON_SIMPLE variables.
1330 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1332 * src/version.c: Build version.c automatically.
1335 Fix token numbering (used to start at 258, not 257).
1337 * src/system.h: Include config.h.
1339 * src/getargs.c: Update bug report address.
1341 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1342 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1344 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1347 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1349 * configure.in, version.cin:
1350 Build version.c automatically.
1352 * AUTHORS: Add AUTHORS file.
1354 * README: Update bug report address.
1357 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1359 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1362 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1364 * doc/bison.texinfo: Clean up some formatting.
1366 1998-05-05 Richard Stallman <rms@gnu.org>
1368 * doc/bison.texinfo:
1369 Explain better why to make a pure parser.
1371 1998-01-05 Richard Stallman <rms@gnu.org>
1373 * src/files.c (openfiles):
1374 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1375 find a temporary directory, if possible. Do not unlink files while
1378 1997-08-25 Richard Stallman <rms@gnu.org>
1380 * src/reader.c (stack_offset;):
1381 Change some warni to warns.
1383 * src/lex.c (literalchar): Use warns, not warni.
1385 1997-06-28 Richard Stallman <rms@gnu.org>
1387 * src/bison.s1: Add a Bison version comment.
1389 * src/main.c (fatal, warn, berror):
1392 1997-06-28 Richard Stallman <rms@gnu.org>
1394 * Makefile.in (bison_version): New variable.
1395 (dist): Use that variable.
1396 (bison.s1): Substitute the Bison version into bison.simple.
1398 * bison.simple: Add a Bison version comment.
1400 1997-06-18 Richard Stallman <rms@gnu.org>
1402 * src/main.c (fatal, warn, berror):
1403 Make error messages standard.
1404 (toomany): Improve error message text.
1406 * 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:
1407 new.h renamed to alloc.h.
1409 1997-06-18 Richard Stallman <rms@gnu.org>
1411 * Makefile.in: new.h renamed to alloc.h.
1413 1997-05-24 Richard Stallman <rms@gnu.org>
1415 * src/lex.c (literalchar):
1416 Fix the code for escaping \, " and '.
1418 (lex): Avoid trouble when there are many chars
1419 to discard in a char literal with just several chars in it.
1421 1997-05-17 Richard Stallman <rms@gnu.org>
1424 Use malloc, if using alloca is troublesome.
1425 (YYSTACK_USE_ALLOCA): New flag macro.
1426 Define it for some systems and compilers.
1427 (YYSTACK_ALLOC): New macro.
1428 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1429 If it was malloc'd, free it.
1431 1997-05-17 Richard Stallman <rms@gnu.org>
1434 Use malloc, if using alloca is troublesome.
1435 (YYSTACK_USE_ALLOCA): New flag macro.
1436 Define it for some systems and compilers.
1437 (YYSTACK_ALLOC): New macro.
1438 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1439 If it was malloc'd, free it.
1441 1997-04-23 Richard Stallman <rms@gnu.org>
1444 (alloca) [__hpux]: Always define as __builtin_alloca.
1446 1997-04-23 Richard Stallman <rms@gnu.org>
1449 (alloca) [__hpux]: Always define as __builtin_alloca.
1451 1997-04-22 Richard Stallman <rms@gnu.org>
1454 [__hpux]: Include alloca.h (right for HPUX 10)
1455 instead of declaring alloca (right for HPUX 9).
1457 * src/bison.s1 (__yy_memcpy):
1458 Declare arg `count' as unsigned int.
1459 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1461 1997-04-22 Richard Stallman <rms@gnu.org>
1464 [__hpux]: Include alloca.h (right for HPUX 10)
1465 instead of declaring alloca (right for HPUX 9).
1467 * bison.simple (__yy_memcpy):
1468 Declare arg `count' as unsigned int.
1469 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1471 1997-01-03 Richard Stallman <rms@gnu.org>
1473 * src/allocate.c: [__STDC__ or _MSC_VER]:
1474 Declare calloc and realloc to return void *.
1476 1997-01-02 Richard Stallman <rms@gnu.org>
1479 [_MSC_VER]: Include stdlib.h and process.h.
1480 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1482 * src/main.c (main): Return FAILURE as a value.
1483 (printable_version): Declare arg as int, not char.
1485 1997-01-02 Richard Stallman <rms@gnu.org>
1487 * Makefile.in (dist):
1488 Explicitly check for symlinks, and copy them.
1490 1996-12-19 Richard Stallman <rms@gnu.org>
1493 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1495 1996-12-18 Paul Eggert <eggert@gnu.org>
1497 * src/bison.s1 (yyparse):
1498 If __GNUC__ and YYPARSE_PARAM are both defined,
1499 declare yyparse to have a void * argument.
1501 1996-12-18 Paul Eggert <eggert@gnu.org>
1503 * bison.simple (yyparse):
1504 If __GNUC__ and YYPARSE_PARAM are both defined,
1505 declare yyparse to have a void * argument.
1507 1996-12-17 Richard Stallman <rms@gnu.org>
1509 * src/reduce.c (nbits): Add some casts.
1511 1996-08-12 Richard Stallman <rms@gnu.org>
1513 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1515 1996-08-12 Richard Stallman <rms@gnu.org>
1517 * bison.simple: Test _MSDOS as well as _MSDOS_.
1519 1996-07-31 Richard Stallman <rms@gnu.org>
1522 [__sun && __i386]: Include alloca.h.
1524 1996-07-31 Richard Stallman <rms@gnu.org>
1527 [__sun && __i386]: Include alloca.h.
1529 1996-07-30 Richard Stallman <rms@gnu.org>
1531 * src/bison.s1: Comment change.
1533 * src/bison.s1: Test _MSDOS_, not MSDOS.
1535 1996-07-30 Richard Stallman <rms@gnu.org>
1537 * bison.simple: Comment change.
1539 * bison.simple: Test _MSDOS_, not MSDOS.
1541 1996-06-01 Richard Stallman <rms@gnu.org>
1543 * 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:
1544 Insert `_' macro around many string constants.
1547 Insert `_' macro around many string constants.
1549 (main): Call setlocale, bindtextdomain and textdomain.
1551 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1552 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1553 [ENABLE_NLS]: Include libintl.h.
1554 [ENABLE_NLS] (gettext): Define.
1555 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1556 (N_, PACKAGE, LOCALEDIR): New macros.
1558 1996-06-01 Richard Stallman <rms@gnu.org>
1560 * POTFILES.in: New file.
1562 * Makefile.in (allocate.o):
1563 Define target explicitly.
1565 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1566 (LDFLAGS): Set to @LDFLAGS@.
1567 (configure): Run autoconf only if preceding `cd' succeeds.
1568 (bison.s1): Redirect output to temporary file then move the
1569 temporary to the target, rather than redirecting directly to bison.s1.
1570 (clean): Remove config.status and config.log.
1571 (distclean): Don't remove config.status here.
1573 1996-05-12 Richard Stallman <rms@gnu.org>
1576 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1578 1996-05-12 Richard Stallman <rms@gnu.org>
1581 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1583 1996-05-11 Richard Stallman <rms@gnu.org>
1585 * src/bison.s1 (__yy_memcpy):
1586 Really reorder the args, as was supposedly done on Feb 14 1995.
1587 (yyparse): Calls changed accordingly.
1589 1996-05-11 Richard Stallman <rms@gnu.org>
1591 * Makefile.in (dist): Don't use $(srcdir).
1593 * bison.simple (__yy_memcpy):
1594 Really reorder the args, as was supposedly done on Feb 14 1995.
1595 (yyparse): Calls changed accordingly.
1597 1996-01-27 Richard Stallman <rms@gnu.org>
1599 * src/output.c (output_rule_data):
1600 Test YYERROR_VERBOSE in the conditional
1601 around the definition of ttyname.
1603 1995-12-29 Richard Stallman <rms@gnu.org>
1606 Fix line numbers in #line commands.
1608 1995-12-29 Richard Stallman <rms@gnu.org>
1611 Fix line numbers in #line commands.
1613 1995-12-27 Richard Stallman <rms@gnu.org>
1615 * src/bison.s1 (YYPARSE_PARAM_DECL):
1616 In C++, make it always null.
1617 (YYPARSE_PARAM_ARG): New macro.
1618 (yyparse): Use YYPARSE_PARAM_ARG.
1620 1995-12-27 Richard Stallman <rms@gnu.org>
1622 * bison.simple (YYPARSE_PARAM_DECL):
1623 In C++, make it always null.
1624 (YYPARSE_PARAM_ARG): New macro.
1625 (yyparse): Use YYPARSE_PARAM_ARG.
1627 1995-11-29 Richard Stallman <rms@gnu.org>
1629 * doc/bison.texinfo:
1630 Describe literal string tokens, %raw, %no_lines, %token_table.
1632 1995-11-29 Daniel Hagerty <hag@gnu.org>
1634 * doc/bison.texinfo: Fixed update date
1636 1995-10-16 Richard Stallman <rms@gnu.org>
1638 * src/version.c: Version 1.25.
1640 1995-10-16 Richard Stallman <rms@gnu.org>
1642 * NEWS: *** empty log message ***
1644 1995-10-16 Richard Stallman <rms@gnu.org>
1646 * doc/bison.1, doc/bison.rnh:
1649 1995-10-15 Richard Stallman <rms@gnu.org>
1651 * src/vmsgetargs.c, src/getargs.c:
1652 Added -n, -k, and -raw switches.
1653 (noparserflag, toknumflag, rawtoknumflag): New variables.
1655 * src/symtab.h (SALIAS):
1656 New #define for adding aliases to %token.
1657 (struct bucket): Added `alias' field.
1659 * src/reduce.c (reduce_grammar):
1660 Revise error message.
1661 (print_notices): Remove final `.' from error message.
1663 * src/reader.c (reader_output_yylsp):
1665 (readgram): Use `#if 0' around code that accepted %command
1666 inside grammar rules: The documentation doesn't allow it,
1667 and it will fail since the %command processors scan for the next %.
1668 (parse_token_decl): Extended the %token
1669 declaration to allow a multi-character symbol as an alias.
1670 (parse_thong_decl): New function.
1671 (read_declarations): Added %thong declarations.
1672 (read_declarations): Handle NOOP to deal with allowing
1673 % declarations as another means to specify the flags.
1674 (readgram): Allow %prec prior to semantics embedded in a rule.
1675 (skip_to_char, read_declarations, copy_definition)
1676 (parse_token_decl, parse_start_decl, parse_type_decl)
1677 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1678 (get_type_name, copy_guard, copy_action, readgram)
1679 (get_type, packsymbols): Revised most error messages.
1680 Changed `fatal' to `warnxxx' to avoid aborting for error.
1681 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1682 (read_declarations): Improve the error message for
1683 an invalid character. Do not abort.
1684 (read_declarations, copy_guard, copy_action): Use
1685 printable_version to avoid unprintable characters in printed output.
1686 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1687 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1688 Allow the type of a non-terminal can be given
1689 more than once, as long as all specifications give the same type.
1692 (output_headers, output_trailers, output, output_gram)
1693 (output_rule_data): Implement noparserflag variable.
1694 Implement toknumflag variable.
1695 (output): Call reader_output_yylsp to output LTYPESTR.
1697 * src/main.c (main):
1698 If reader sees an error, don't process the grammar.
1699 (fatals): Updated to not use VARARGS1.
1700 (printable_version, int_to_string, warn, warni, warns, warnss)
1701 (warnsss): New error reporting functions. Avoid abort for error.
1704 Added THONG and NOOP for alias processing.
1705 Added SETOPT for the new code that allows setting options with %flags.
1708 Include getopt.h. Add some extern decls.
1709 (safegetc): New function to deal with EOF gracefully.
1710 (literalchar); new function to deal with reading \ escapes.
1711 (lex): Use literalchar.
1712 (lex): Implemented "..." tokens.
1713 (literalchar, lex, parse_percent_token): Made tokenbuffer
1714 always contain the token. This includes growing the token
1715 buffer while reading an integer.
1716 (parse_percent_token): Replaced if-else statement with percent_table.
1717 (parse_percent_token): Added % declarations as another
1718 way to specify the flags -n, -l, and -r. Also added hooks for
1719 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1720 major changes to files.c.
1721 (lex) Retain in the incoming stream a character following
1723 (skip_white_space, lex): Revised most error messages
1724 and changed fatal to warn to avoid aborting.
1725 (percent_table): Added %thong declarations.
1727 * src/gram.h: Comment changes.
1729 * src/files.c (openfiles, open_extra_files, done):
1731 and actfile file. Handle noparserflag. Both for -n switch.
1733 * src/conflicts.c (resolve_sr_conflict):
1734 Remove use of alloca.
1736 1995-06-01 Jim Meyering <meyering@gnu.org>
1738 * doc/bison.texinfo: *** empty log message ***
1740 1995-05-06 Richard Stallman <rms@gnu.org>
1742 * src/bison.s1: Comment change.
1744 1995-05-06 Richard Stallman <rms@gnu.org>
1746 * bison.simple: Comment change.
1748 1995-05-03 Richard Stallman <rms@gnu.org>
1750 * src/version.c: Version now 1.24.
1752 * src/bison.s1: Change distribution terms.
1754 * src/version.c: Version now 1.23.
1756 1995-05-03 Richard Stallman <rms@gnu.org>
1758 * doc/bison.texinfo:
1759 Rewrite "Conditions for Using Bison".
1760 Update version to 1.24.
1762 1995-05-03 Richard Stallman <rms@gnu.org>
1764 * bison.simple: Change distribution terms.
1766 1995-02-23 Richard Stallman <rms@gnu.org>
1768 * src/files.c: Test __VMS_POSIX as well as VMS.
1770 1995-02-14 Jim Meyering <meyering@gnu.org>
1772 * src/bison.s1 (__yy_memcpy):
1773 Renamed from __yy_bcopy to avoid
1774 confusion. Reverse FROM and TO arguments to be consistent with
1777 1995-02-14 Jim Meyering <meyering@gnu.org>
1779 * bison.simple (__yy_memcpy):
1780 Renamed from __yy_bcopy to avoid
1781 confusion. Reverse FROM and TO arguments to be consistent with
1784 1994-11-10 David J. MacKenzie <djm@gnu.org>
1790 * Makefile.in (DISTFILES): Include NEWS.
1792 * Makefile.in (DISTFILES):
1793 Include install-sh, not install.sh.
1795 * configure.in: Update to Autoconf v2 macro names.
1797 1994-10-05 David J. MacKenzie <djm@gnu.org>
1799 * Makefile.in: fix typo
1801 * Makefile.in (prefix, exec_prefix):
1802 Let configure set them.
1804 1994-09-28 David J. MacKenzie <djm@gnu.org>
1806 * Makefile.in: Set datadir to $(prefix)/share.
1808 1994-09-15 Richard Stallman <rms@gnu.org>
1811 Update copyright notice and GPL version.
1813 1994-09-15 Richard Stallman <rms@gnu.org>
1816 Update copyright notice and GPL version.
1818 1994-07-12 Richard Stallman <rms@gnu.org>
1820 * src/reduce.c, src/reader.c:
1823 1994-05-05 David J. MacKenzie <djm@gnu.org>
1825 * Makefile.in: entered into RCS
1827 1994-03-26 Richard Stallman <rms@gnu.org>
1829 * src/bison.s1: entered into RCS
1831 1994-03-26 Richard Stallman <rms@gnu.org>
1833 * bison.simple: entered into RCS
1835 1994-03-25 Richard Stallman <rms@gnu.org>
1837 * src/main.c: entered into RCS
1839 1994-03-24 Richard Stallman <rms@gnu.org>
1841 * src/conflicts.c: entered into RCS
1843 1994-01-02 Richard Stallman <rms@gnu.org>
1845 * Makefile.in: *** empty log message ***
1847 1993-11-21 Richard Stallman <rms@gnu.org>
1849 * src/bison.s1: *** empty log message ***
1851 1993-11-21 Richard Stallman <rms@gnu.org>
1853 * doc/bison.texinfo: entered into RCS
1855 * doc/bison.texinfo: *** empty log message ***
1857 1993-11-21 Richard Stallman <rms@gnu.org>
1859 * bison.simple: *** empty log message ***
1861 1993-10-25 David J. MacKenzie <djm@gnu.org>
1863 * doc/bison.texinfo: *** empty log message ***
1865 1993-10-19 Richard Stallman <rms@gnu.org>
1867 * src/bison.s1: *** empty log message ***
1869 1993-10-19 Richard Stallman <rms@gnu.org>
1871 * bison.simple: *** empty log message ***
1873 1993-10-14 Richard Stallman <rms@gnu.org>
1875 * src/bison.s1: *** empty log message ***
1877 1993-10-14 Richard Stallman <rms@gnu.org>
1879 * bison.simple: *** empty log message ***
1881 1993-09-14 David J. MacKenzie <djm@gnu.org>
1883 * doc/bison.texinfo: *** empty log message ***
1885 1993-09-13 Noah Friedman <friedman@gnu.org>
1887 * Makefile.in: *** empty log message ***
1889 1993-09-10 Richard Stallman <rms@gnu.org>
1891 * src/conflicts.c: *** empty log message ***
1893 * src/system.h: entered into RCS
1895 1993-09-10 Richard Stallman <rms@gnu.org>
1897 * doc/bison.1: entered into RCS
1899 1993-09-06 Noah Friedman <friedman@gnu.org>
1901 * src/version.c: entered into RCS
1903 1993-09-06 Noah Friedman <friedman@gnu.org>
1905 * Makefile.in: *** empty log message ***
1907 1993-07-30 David J. MacKenzie <djm@gnu.org>
1909 * Makefile.in: *** empty log message ***
1911 1993-07-24 Richard Stallman <rms@gnu.org>
1913 * src/bison.s1: *** empty log message ***
1915 1993-07-24 Richard Stallman <rms@gnu.org>
1917 * bison.simple: *** empty log message ***
1919 1993-07-08 David J. MacKenzie <djm@gnu.org>
1921 * Makefile.in: *** empty log message ***
1923 1993-07-04 Richard Stallman <rms@gnu.org>
1925 * src/bison.s1: *** empty log message ***
1927 1993-07-04 Richard Stallman <rms@gnu.org>
1929 * bison.simple: *** empty log message ***
1931 1993-06-26 David J. MacKenzie <djm@gnu.org>
1933 * src/getargs.c: entered into RCS
1935 1993-06-26 David J. MacKenzie <djm@gnu.org>
1937 * doc/bison.texinfo: *** empty log message ***
1939 * doc/bison.1: New file.
1941 1993-06-25 Richard Stallman <rms@gnu.org>
1943 * src/getargs.c: New file.
1945 1993-06-16 Richard Stallman <rms@gnu.org>
1947 * src/bison.s1: *** empty log message ***
1949 1993-06-16 Richard Stallman <rms@gnu.org>
1951 * bison.simple: *** empty log message ***
1953 1993-06-03 Richard Stallman <rms@gnu.org>
1955 * src/bison.s1: New file.
1957 1993-06-03 Richard Stallman <rms@gnu.org>
1959 * doc/bison.texinfo: *** empty log message ***
1961 1993-06-03 Richard Stallman <rms@gnu.org>
1963 * bison.simple: New file.
1965 1993-05-19 Richard Stallman <rms@gnu.org>
1967 * doc/bison.texinfo: New file.
1969 1993-05-07 Noah Friedman <friedman@gnu.org>
1971 * Makefile.in: *** empty log message ***
1973 1993-04-28 Noah Friedman <friedman@gnu.org>
1975 * src/reader.c: *** empty log message ***
1977 1993-04-23 Noah Friedman <friedman@gnu.org>
1979 * src/alloc.h: entered into RCS
1981 1993-04-20 David J. MacKenzie <djm@gnu.org>
1983 * src/version.c: *** empty log message ***
1985 * src/files.c, src/allocate.c:
1988 * src/reader.c: *** empty log message ***
1990 * src/lex.c: entered into RCS
1992 * src/conflicts.c: New file.
1994 * src/symtab.c: entered into RCS
1996 * src/alloc.h: New file.
1998 * src/LR0.c: entered into RCS
2000 1993-04-18 Noah Friedman <friedman@gnu.org>
2002 * src/reader.c: New file.
2004 * src/version.c: *** empty log message ***
2006 1993-04-18 Noah Friedman <friedman@gnu.org>
2008 * Makefile.in: *** empty log message ***
2010 1993-04-17 Noah Friedman <friedman@gnu.org>
2012 * Makefile.in: *** empty log message ***
2014 1993-04-15 Richard Stallman <rms@gnu.org>
2016 * src/main.c, src/files.c:
2019 1993-04-15 Noah Friedman <friedman@gnu.org>
2021 * configure.in: entered into RCS
2023 * configure.in: *** empty log message ***
2025 * configure.in: New file.
2027 1993-04-14 Richard Stallman <rms@gnu.org>
2029 * Makefile.in: New file.
2031 1993-04-13 Richard Stallman <rms@gnu.org>
2033 * src/version.c: New file.
2035 1993-03-25 Richard Stallman <rms@gnu.org>
2037 * src/output.c: entered into RCS
2039 1992-09-25 Richard Stallman <rms@gnu.org>
2041 * configure.bat: entered into RCS
2043 1992-06-22 Richard Stallman <rms@gnu.org>
2045 * src/vmsgetargs.c: entered into RCS
2047 1992-06-22 Richard Stallman <rms@gnu.org>
2049 * doc/bison.rnh: entered into RCS
2051 1992-04-20 David J. MacKenzie <djm@gnu.org>
2053 * README: entered into RCS
2055 1992-01-22 Richard Stallman <rms@gnu.org>
2057 * src/machine.h: entered into RCS
2059 1991-12-21 Richard Stallman <rms@gnu.org>
2061 * src/lalr.c, src/closure.c:
2064 1991-12-20 Richard Stallman <rms@gnu.org>
2066 * src/state.h: entered into RCS
2068 1991-12-18 Richard Stallman <rms@gnu.org>
2070 * src/print.c, src/nullable.c, src/derives.c:
2073 1991-11-03 David J. MacKenzie <djm@gnu.org>
2075 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2078 1988-09-09 Richard Stallman <rms@gnu.org>
2080 * src/bison.hairy: entered into RCS
2082 1987-12-16 Richard Stallman <rms@gnu.org>
2084 * REFERENCES: entered into RCS