1 2000-12-19 Akim Demaille <akim@epita.fr>
3 * src/files.c (open_files): Yipee! We no longer need all the code
4 looking for `/tmp' since we have no tmp file.
6 2000-12-19 Akim Demaille <akim@epita.fr>
8 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
10 * src/files.c (open_files): Less dependency on MSDOS etc.
12 2000-12-14 Akim Demaille <akim@epita.fr>
14 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
15 Provide a default definition.
16 Use it when executing the default @ action.
17 * src/reader.c (reader_output_yylsp): No longer include
18 `timestamp' and `text' in the default YYLTYPE.
20 2000-12-12 Akim Demaille <akim@epita.fr>
22 * src/reader.c (copy_definition, parse_union_decl, copy_action)
23 (copy_guard): Quote the file names.
24 Reported by Laurent Mascherpa.
26 2000-12-12 Akim Demaille <akim@epita.fr>
28 * src/output.c (output_headers, output_program, output): Be sure
29 to escape special characters when outputting filenames.
30 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
31 (output_headers): Don't depend on them, Use ACTSTR.
33 2000-11-17 Akim Demaille <akim@epita.fr>
35 * lib/obstack.h: Formatting changes.
36 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
37 prevents type checking.
38 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
39 cast the value to (void *): assigning a `foo *' to a `void *'
41 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
45 2000-11-17 Akim Demaille <akim@epita.fr>
47 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
49 (suite.m4, regression.m4, calc.m4): these.
50 * tests/atgeneral.m4: Update from CVS Autoconf.
52 2000-11-17 Akim Demaille <akim@epita.fr>
54 * tests/regression.m4 (%union and --defines): New test,
55 demonstrating a current bug in the obstack implementation.
57 2000-11-17 Akim Demaille <akim@epita.fr>
59 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
61 Use them to declare the variables which are global or local to
64 2000-11-17 Akim Demaille <akim@epita.fr>
66 * acconfig.h: Remove, no longer used.
68 2000-11-07 Akim Demaille <akim@epita.fr>
70 * src: s/Copyright (C)/Copyright/g.
72 2000-11-07 Akim Demaille <akim@epita.fr>
74 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
76 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
78 2000-11-07 Akim Demaille <akim@epita.fr>
80 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
81 Merge in a single CPP if/else.
83 2000-11-07 Akim Demaille <akim@epita.fr>
85 * src/output.c (output): Remove useless variables.
86 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
87 argument `data' for consistency with the prototypes.
89 (obstack_copy, obstack_copy0): Rename the second argument as
90 `address' for consistency. Qualify it `const'.
91 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
92 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
93 `const' their input argument (`data' or `address').
94 Adjust the corresponding macros to include `const' in casts.
96 2000-11-03 Akim Demaille <akim@epita.fr>
98 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
99 s/PFILE1/BISON_HAIRY/.
102 2000-11-03 Akim Demaille <akim@epita.fr>
104 For some reason, this was not applied.
106 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
107 `unlink': it's no longer used.
109 2000-11-03 Akim Demaille <akim@epita.fr>
111 * src/files.c (skeleton_find): New function, eved out of...
112 (open_files, open_extra_files): here.
114 2000-11-03 Akim Demaille <akim@epita.fr>
118 * src/files.c (obstack_save): New function.
120 (output_files): this.
122 * src/main.c (main): Don't use `atexit' to register `done', since
123 it no longer has to remove tmp files, just call `output_files'
124 when there are no errors.
126 2000-11-02 Akim Demaille <akim@epita.fr>
128 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
129 `unlink': it's no longer used.
130 * src/files.h: Formatting changes.
132 2000-11-02 Akim Demaille <akim@epita.fr>
134 Remove the last uses of mktemp and unlink/delete.
136 * src/files.c (fdefines, ftable): Removed.
137 (defines_ostack, table_obstack): New.
138 Adjust dependencies of the former into uses of the latter.
139 * src/output.c (output_short_or_char_table, output_short_table):
140 Convert to using obstacks.
141 * src/reader.c (copy_comment2): Accept one FILE * and two
143 (output_token_defines, reader_output_yylsp): Use obstacks.
144 * src/system.h (obstack_fgrow3): New.
146 2000-11-01 Akim Demaille <akim@epita.fr>
148 Change each use of `fattrs' into a use of `attrs_obstack'.
150 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
151 * src/files.c (fattrs): Remove.
152 (attrs_obstack): New.
153 Adjust all dependencies.
154 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
156 2000-11-01 Akim Demaille <akim@epita.fr>
159 Change each use of `faction' into a use of `action_obstack'.
161 * lib/obstack.h, lib/obstack.c: New files.
162 * src/files.c (faction): Remove.
163 (action_obstack): New.
164 Adjust all dependencies.
166 2000-10-20 Akim Demaille <akim@epita.fr>
168 * lib/quote.h (PARAMS): New macro. Use it.
170 2000-10-16 Akim Demaille <akim@epita.fr>
172 * src/output.c (output_short_or_char_table): New function.
173 (output_short_table, output_token_translations): Use it.
174 (goto_actions): Use output_short_table.
176 2000-10-16 Akim Demaille <akim@epita.fr>
178 * src/symtab.c (bucket_new): New function.
181 * src/output.c (output_short_table): New argument to display the
182 comment associated with the table.
184 (output_gram): Use it.
185 (output_rule_data): Nicer output layout for YYTNAME.
187 2000-10-16 Akim Demaille <akim@epita.fr>
189 * src/lex.c (read_typename): New function.
191 * src/reader.c (copy_dollar): Likewise.
193 2000-10-16 Akim Demaille <akim@epita.fr>
195 * src/reader.c (copy_comment2): Expect the input stream to be on
196 the `/' which is suspected to open a comment, instead of being
197 called after `//' or `/*' was read.
198 (copy_comment, copy_definition, parse_union_decl, copy_action)
199 (copy_guard): Adjust.
201 2000-10-16 Akim Demaille <akim@epita.fr>
203 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
204 `read_signed_integer'.
206 2000-10-16 Akim Demaille <akim@epita.fr>
208 * src/reader.c (copy_dollar): New function.
209 (copy_guard, copy_action): Use it.
211 2000-10-16 Akim Demaille <akim@epita.fr>
213 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
214 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
215 New files, from Fileutils 4.0.27.
216 * src/main.c (printable_version): Remove.
217 * src/lex.c, src/reader.c: Use `quote'.
219 2000-10-04 Akim Demaille <akim@epita.fr>
221 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
223 2000-10-04 Akim Demaille <akim@epita.fr>
225 * doc/bison.texinfo: Various typos spotted by Neil Booth.
227 2000-10-04 Akim Demaille <akim@epita.fr>
229 When a literal string is used to define two different tokens,
230 `bison -v' segfaults.
231 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
233 * tests/regression.m4: New file.
234 Include the core of the sample provided by Piotr Gackiewicz.
235 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
238 2000-10-04 Akim Demaille <akim@epita.fr>
240 * src/reader.c (parse_expect_decl): Keep `count' within the size
244 2000-10-02 Paul Eggert <eggert@twinsun.com>
246 * bison.s1 (yyparse): Assign the default value
247 unconditionally, to avoid a GCC warning and make the parser a
250 2000-10-02 Akim Demaille <akim@epita.fr>
252 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
255 2000-10-02 Akim Demaille <akim@epita.fr>
257 * src/derives.c, src/print.c, src/reduce.c: To ease the
258 translation, move some `\n' out of the translated strings.
260 2000-10-02 Akim Demaille <akim@epita.fr>
262 The location tracking mechanism is precious for parse error
263 messages. Nevertheless, it is enabled only when `@n' is used in
264 the grammar, which is a different issue (you can use it in error
265 message, but not in the grammar per se). Therefore, there should
266 be another means to enable it.
268 * src/getargs.c (getargs): Support `--locations'.
270 * src/getargs.h (locationsflag): Export it.
271 * src/lex.c (percent_table): Support `%locations'.
272 * src/reader.c (yylsp_needed): Remove this variable, now replaced
273 with `locationsflag'.
274 * doc/bison.texinfo: Document `--locations' and `%locations'.
276 * tests/calc.m4: Test it.
278 For regularity of the names, replace each
279 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
280 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
281 In addition replace each `flag' with `_flag'.
283 2000-10-02 Akim Demaille <akim@epita.fr>
285 Also test parse error messages, including with YYERROR_VERBOSE.
287 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
289 Use it to check the computations.
290 Use it to check `nonassoc' is honored.
291 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
293 (_AT_CHECK_CALC): Adjust to this option.
294 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
296 2000-10-02 Akim Demaille <akim@epita.fr>
298 Test also `--verbose', `--defines' and `--name-prefix'. Testing
299 the latter demonstrates a flaw in the handling of non debugging
300 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
301 was used in order to simplify:
317 unfortunately this leads to a CPP conflict when
318 `--name-prefix=foo' is used since it produces `#define yydebug
321 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
322 (YYDPRINTF): New macro.
324 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
326 Also test `--verbose', `--defines' and `--name-prefix'.
328 2000-10-02 Akim Demaille <akim@epita.fr>
330 Improve the readability of the produced parsers.
332 * src/bison.s1: Formatting changes.
333 Improve the comment related to the `$' mark.
334 (yydefault): Don't fall through to `yyresume': `goto' there.
335 * src/output.c (output_parser): When the `$' is met, skip the end
337 New variable, `number_of_dollar_signs', to check there's exactly
338 one `$' in the parser skeleton.
340 2000-10-02 Akim Demaille <akim@epita.fr>
342 * lib/xstrdup.c: New file, from the fileutils.
343 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
344 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
345 instead of strlen + xmalloc + strcpy.
346 * src/symtab.c (copys): Remove, use xstrdup instead.
348 2000-10-02 Akim Demaille <akim@epita.fr>
350 * src/gram.h (associativity): New enum type which replaces the
351 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
352 `right_assoc', `left_assoc' and `non_assoc'.
353 Adjust all dependencies.
354 * src/reader.c: Formatting changes.
355 (LTYPESTR): Don't define it, use it as a literal in
356 `reader_output_yylsp'.
357 * src/symtab.h (symbol_class): New enum type which replaces the
358 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
359 `sunknown', `stoken and `snterm'.
361 2000-10-02 Akim Demaille <akim@epita.fr>
363 * src/getargs.c (fixed_outfiles): Rename as...
364 (yaccflag): for consistency and accuracy.
367 2000-10-02 Akim Demaille <akim@epita.fr>
369 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
370 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
371 difficult and introduced a lot of core dump. It turns out that
372 Bison used an implementation of `xmalloc' based on `calloc', and
373 at various places it does depend upon the initialization to 0. I
374 have not tried to isolate the pertinent places, and all the former
375 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
376 someone should address this issue.
378 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
379 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
382 * src/warshall.h: New file.
385 2000-10-02 Akim Demaille <akim@epita.fr>
387 Various anti-`extern in *.c' changes.
389 * src/system.h: Include `assert.h'.
391 2000-10-02 Akim Demaille <akim@epita.fr>
393 * src/state.h (nstates, final_state, first_state, first_shift)
394 (first_reduction): Move their exportation from here...
395 * src/LR0.h: to here.
397 * src/getargs.c (statisticsflag): New variable.
398 Add support for `--statistics'.
401 Remove a lot of now useless `extern' statements in most files.
403 2000-10-02 Akim Demaille <akim@epita.fr>
405 * src/LR0.h: New file.
408 2000-10-02 Akim Demaille <akim@epita.fr>
410 * src/print.h: New file.
412 * src/print.c: Formatting and ordering changes.
413 (verbose, terse): Replace with...
414 (print_results): this new function.
417 2000-10-02 Akim Demaille <akim@epita.fr>
419 * src/conflicts.c (conflict_report): New function.
420 (conflict_log, verbose_conflict_log): Replace with...
421 (print_conflicts): this function.
423 * src/conflicts.h: New file.
424 Propagate its inclusion.
426 2000-10-02 Akim Demaille <akim@epita.fr>
428 * src/nullable.h: New file.
429 Propagate its inclusion.
430 * src/nullable.c: Formatting changes.
432 2000-10-02 Akim Demaille <akim@epita.fr>
434 * src/reduce.h: New file.
435 Propagate its inclusion.
436 * src/reduce.c: Topological sort and other formatting changes.
437 (bool, TRUE, FALSE): Move their definition to...
438 * src/system.h: here.
440 2000-10-02 Akim Demaille <akim@epita.fr>
442 * src/files.c: Formatting changes.
443 (tryopen, tryclose, openfiles): Rename as...
444 (xfopen, xfclose, open_files): this.
445 (stringappend): static.
446 * src/files.h: Complete the list of exported symbols.
449 2000-10-02 Akim Demaille <akim@epita.fr>
451 * src/reader.h: New file.
452 Propagate its use instead of tedious list of `extern' and
454 * src/reader.c: Formatting changes, topological sort,
457 2000-10-02 Akim Demaille <akim@epita.fr>
459 * src/lex.h: Prototype `lex.c' exported functions.
460 * src/reader.c: Adjust.
461 * src/lex.c: Formatting changes.
462 (safegetc): Rename as...
465 2000-10-02 Akim Demaille <akim@epita.fr>
467 * src/lalr.h: New file.
468 Propagate its inclusion instead of prototypes and `extern'.
469 * src/lalr.c: Formatting changes, topological sorting etc.
471 2000-10-02 Akim Demaille <akim@epita.fr>
473 * src/output.c (token_actions): Introduce a temporary array,
474 YYDEFACT, that makes it possible for this function to use
477 2000-10-02 Akim Demaille <akim@epita.fr>
479 `user_toknums' is output as a `short[]' in `output.c', while it is
480 defined as a `int[]' in `reader.c'. For consistency with the
481 other output tables, `user_toknums' is now defined as a table of
484 * src/reader.c (user_toknums): Be a short table instead of an int
488 Factor the short table outputs.
490 * src/output.c (output_short_table): New function.
491 * src/output.c (output_gram, output_stos, output_rule_data)
492 (output_base, output_table, output_check): Use it.
494 2000-10-02 Akim Demaille <akim@epita.fr>
496 * src/output.c (output): Topological sort of the functions, in
497 order to get rid of the `static' prototypes.
498 No longer use `register'.
499 * src/output.h: New file.
500 Propagate its inclusion in files explicitly prototyping functions
503 2000-09-21 Akim Demaille <akim@epita.fr>
505 * src/atgeneral.m4: Update from Autoconf.
507 2000-09-21 Akim Demaille <akim@epita.fr>
509 * src/closure.h: New file.
510 * src/closure.c: Formatting changes, topological sort over the
511 functions, use of closure.h.
512 (initialize_closure, finalize_closure): Rename as...
513 (new_closure, free_closure): these. Adjust dependencies.
514 * src/LR0.c: Formatting changes, topological sort, use of
516 (initialize_states): Rename as...
518 * src/Makefile.am (noinst_HEADERS): Adjust.
520 2000-09-20 Akim Demaille <akim@epita.fr>
522 * src/acconfig.h: Don't protect config.h against multiple
525 * src/system.h: Define PARAMS.
526 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
527 purpose of config.h. system.h must not try to fix wrong
528 definitions in config.h.
530 2000-09-20 Akim Demaille <akim@epita.fr>
532 * src/derives.h: New file.
533 * src/main.c, src/derives.h: Use it.
535 * src/Makefile.am (noinst_HEADERS): Adjust.
537 2000-09-20 Akim Demaille <akim@epita.fr>
539 * tests/atgeneral.m4: Update from Autoconf.
540 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
541 (AT_CHECK_CALC): New macros.
542 Use these macros to test bison with options `', `--raw',
543 `--debug', `--yacc', `--yacc --debug'.
545 2000-09-19 Akim Demaille <akim@epita.fr>
547 * src/output.c: Formatting changes.
548 * src/machine.h: Remove, leaving its contents in...
549 * src/system.h: here.
551 Adjust all dependencies on stdio.h and machine.h.
552 * src/getargs.h: New file.
553 Let all `extern' declarations about getargs.c be replaced with
554 inclusion of `getargs.h'.
555 * src/Makefile.am (noinst_HEADERS): Adjust.
557 * tests/calc.m4 (yyin): Be initialized in main, not on the global
559 (yyerror): Returns void, not int.
560 * doc/bison.texinfo: Formatting changes.
562 2000-09-19 Akim Demaille <akim@epita.fr>
564 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
567 2000-09-18 Akim Demaille <akim@epita.fr>
569 * configure.in: Append WARNING_CFLAGS to CFLAGS.
570 * src/Makefile.am (INCLUDES): Don't.
571 Be ready to fetch headers in lib/.
573 2000-09-18 Akim Demaille <akim@epita.fr>
575 * doc/bison.texinfo: Update the copyright.
576 ANSIfy and GNUify the examples.
579 2000-09-18 Akim Demaille <akim@epita.fr>
581 First set of tests: use the `calc' example from the documentation.
583 * src/bison.s1 (yyparse): Condition the code using `yytname' which
584 is defined only when YYDEBUG is.
585 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
586 * src/files.c (tryopen, tryclose): Formatting changes.
587 Move to the top and be static.
588 * src/reader.c (read_signed_integer): Likewise.
589 * tests/calc.m4: New file.
590 * Makefile.am, suite.m4: Adjust.
591 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
593 2000-09-18 Akim Demaille <akim@epita.fr>
595 Add support for an Autotest test suite for Bison.
597 * m4/m4.m4, m4/atconfig.m4: New files.
598 * m4/Makefile.am (EXTRA_DIST): Adjust.
599 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
601 * src/getargs.c: Display a more standard --version message.
602 * src/reader.c (reader): Formatting changes.
603 No longer depend upon VERSION_STRING.
604 * configure.in: No longer use `dnl'.
605 Set up the test suite and the new directory `tests/.
606 (VERSION_STRING): Remove.
608 2000-04-14 Akim Demaille <akim@epita.fr>
610 * src/reader.c (copy_comment2): New function, same as former
611 `copy_comment', but outputs into two FILE *.
612 (copy_comment): Use it.
613 (parse_union_decl): Use it.
614 (get_type, parse_start_decl): Use the same `invalid' message.
615 (parse_start_decl, parse_union_decl): Use the same `multiple'
617 (parse_union_decl, copy_guard, copy_action): Use the same
619 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
621 2000-03-31 Akim Demaille <akim@epita.fr>
623 * src/files.c (tryopen, tryclose): Move to the top.
626 2000-03-31 Akim Demaille <akim@epita.fr>
628 * src/main.c (main): Don't call `done', exit does it.
630 2000-03-31 Akim Demaille <akim@epita.fr>
632 * allocate.c: s/return (foo)/return foo/.
635 * output.c: Likewise.
636 * reader.c: Likewise.
637 * symtab.c: Likewise.
638 * vmsgetargs.c: Likewise.
640 2000-03-31 Akim Demaille <akim@epita.fr>
642 Clean up the error reporting functions.
644 * src/report.c: New file.
645 * src/report.h: Likewise.
646 * src/Makefile.am: Adjust.
647 * m4/error.m4: New file.
648 * m4/Makefile.am: Adjust.
649 * configure.in (jm_PREREQ_ERROR): Call it.
650 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
652 (fatal, fatals): Remove. All callers use complain.c::fatal.
653 (warn, warni, warns, warnss, warnss): Remove. All callers use
654 complain.c::complain.
655 (toomany): Remove, use fatal instead.
656 * src/files.c (done): No argument, use complain_message_count.
657 * src/main.c (main): Register `done' to `atexit'.
659 * src/getargs.c (usage): More `fputs', less `fprintf'.
661 2000-03-28 Akim Demaille <akim@epita.fr>
663 * lib/: New directory.
664 * Makefile.am (SUBDIRS): Adjust.
665 * configure.in: Adjust.
666 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
668 * src/alloca.c: Moved to lib/.
669 * src/getopt.c: Likewise.
670 * src/getopt1.c: Likewise.
671 * src/getopt.h: Likewise.
672 * src/ansi2knr.c: Likewise.
673 * src/ansi2knr.1: Likewise.
674 * src/Makefile.am: Adjust.
675 * lib/Makefile.am: New file.
677 2000-03-28 Akim Demaille <akim@epita.fr>
679 * src/getargs.c (usage): Refresh the help message.
681 2000-03-17 Akim Demaille <akim@epita.fr>
683 * src/getopt1.c: Updated from textutils 2.0e
684 * src/getopt.c: Likewise.
685 * src/getopt.h: Likewise.
687 2000-03-17 Akim Demaille <akim@epita.fr>
689 * src/Makefile.am (bison.simple): Fix the awk program: quote only
690 the file name, not the whole `#line LINE FILE'.
692 2000-03-17 Akim Demaille <akim@epita.fr>
694 On syntax errors, report the token on which we choked.
696 * src/bison.s1 (yyparse): In the label yyerrlab, when
697 YYERROR_VERBOSE, add yychar in msg.
699 2000-03-17 Akim Demaille <akim@epita.fr>
701 * src/reader.c (copy_at): New function.
702 (copy_guard): Use it.
703 (copy_action): Use it.
705 2000-03-17 Akim Demaille <akim@epita.fr>
707 Be kind to translators, save some useless translations.
709 * src/main.c (banner): New function.
710 (fatal_banner): Use it.
711 (warn_banner): Use it.
713 2000-03-17 Akim Demaille <akim@epita.fr>
715 * src/reader.c (copy_definition): Use copy_string and
716 copy_comment. Removed now unused `match', `ended',
718 (copy_comment, copy_string): Moved, to be visible from
721 2000-03-17 Akim Demaille <akim@epita.fr>
723 * src/reader.c (copy_string): Declare `static inline'. No
724 problems with inline, since it is checked by configure.
725 (copy_comment): Likewise.
727 2000-03-17 Akim Demaille <akim@epita.fr>
729 * src/reader.c (packsymbols): Formatting changes.
731 2000-03-17 Akim Demaille <akim@epita.fr>
733 * src/reader.c (copy_comment): New function, factored out from:
734 (copy_action): Use it. Removed now unused `match', `ended',
736 (copy_guard): Likewise.
738 2000-03-17 Akim Demaille <akim@epita.fr>
740 * src/reader.c (copy_string): New function, factored out from:
741 (copy_action): Use it.
742 (copy_guard): Likewise.
744 2000-03-17 Akim Demaille <akim@epita.fr>
746 Change the handling of @s so that they behave exactly like $s.
747 There is now a pseudo variable @$ (readble and writable), location
748 of the lhs of the rule (by default ranging from the location of
749 the first symbol of the rhs, to the location of the last symbol,
750 or, if the rhs is empty, YYLLOC).
752 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
754 (yyparse): When providing a default semantic action, provide a
755 default location action.
756 (after the $): No longer change `*YYLSP', just stack YYLOC the
757 same way you stack YYVAL.
758 * src/reader.c (read_declarations): Use warns.
759 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
760 (copy_action, case '@'): Likewise.
761 Use a standard error message, to save useless work from
764 2000-03-17 Akim Demaille <akim@epita.fr>
766 * src/bison.s1: Formatting and cosmetics changes.
767 * src/reader.c: Likewise.
768 Update the Copyright notice.
770 2000-03-17 Akim Demaille <akim@epita.fr>
772 * src/bison.s1 (#line): All set to `#line' only, since the
773 Makefile now handles them.
775 2000-03-16 Akim Demaille <akim@epita.fr>
777 * src/output.c (output_rule_data): Output the documentation of
779 (Copyright notice): Update.
782 2000-03-16 Akim Demaille <akim@epita.fr>
784 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
785 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
786 One `#if YYDEBUG' remains, since it uses variables which are
787 defined only if `YYDEBUG != 0'.
789 2000-03-16 Akim Demaille <akim@epita.fr>
791 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
792 and related variables so that the similarities are highlighted.
794 2000-03-16 Akim Demaille <akim@epita.fr>
796 * src/bison.s1: Properly indent CPP directives.
798 2000-03-16 Akim Demaille <akim@epita.fr>
800 * src/bison.s1: Properly indent the `alloca' CPP section.
802 2000-03-16 Akim Demaille <akim@epita.fr>
804 Do not hard code values of directories in `configure.in'.
805 Update the `configure' tool chain.
807 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
809 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
810 (AC_OUTPUT): Add m4/Makefile.
811 Bump to bison 1.28a, 1.29 has never been released.
812 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
813 handled via src/Makefile.am.
814 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
815 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
817 * Makefile.am (SUBDIRS): Add m4.
818 (ACLOCAL_AM_FLAGS): New variable.
819 (AUTOMAKE_OPTIONS): Add check-news.
820 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
821 the proper line number and file name.
822 (DEFS): Propagate the location of bison library files and of the
824 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
826 * acinclude.m4: Remove, replaced by the directory m4.
827 * m4/Makefile.am (EXTRA_DIST): New variable.
828 * m4/gettext.m4: New file, from the fileutils.
829 * m4/lcmessage.m4: Likewise
830 * m4/progtest.m4: Likewise.
831 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
833 2000-03-10 Akim Demaille <akim@epita.fr>
836 Formatting changes of various comments.
837 Respect the GNU coding standards at various places.
838 Don't use `_()' when no translation is needed.
840 1999-12-13 Jesse Thilo <jthilo@gnu.org>
843 OS/2 honors TMPDIR environment variable.
845 1999-12-13 Jesse Thilo <jthilo@gnu.org>
847 * doc/bison.texinfo: Tweaked spelling and grammar.
849 Removed reference to price of printed copy.
850 Mention BISON_SIMPLE and BISON_HAIRY.
852 1999-12-13 Jesse Thilo <jthilo@gnu.org>
854 * configure.in, NEWS:
857 1999-10-27 Jesse Thilo <jthilo@gnu.org>
859 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
860 Added reference card.
862 1999-07-26 Jesse Thilo <jthilo@gnu.org>
864 * po/ru.po: Added Russian translation.
866 1999-07-26 Jesse Thilo <jthilo@gnu.org>
868 * configure.in: Added Russian translation.
870 1999-07-06 Jesse Thilo <jthilo@gnu.org>
872 * configure.in, NEWS, README:
873 Released version 1.28.
875 1999-06-14 Jesse Thilo <jthilo@gnu.org>
878 Squashed redefinition warning on some systems.
880 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
881 Have configure build version string instead of relying on ANSI string
884 1999-06-14 Jesse Thilo <jthilo@gnu.org>
886 * po/POTFILES.in: Got rid of version.c.
888 1999-06-14 Jesse Thilo <jthilo@gnu.org>
890 * acconfig.h, configure.in:
891 Have configure build version string instead of relying on ANSI string
894 1999-06-08 Jesse Thilo <jthilo@gnu.org>
897 Dropped mention of `+' for long-named options.
899 1999-05-30 Jesse Thilo <jthilo@gnu.org>
901 * src/files.c: Added <unistd.h> for unlink().
903 * src/Makefile.am, src/system.h:
906 1999-05-30 Jesse Thilo <jthilo@gnu.org>
908 * README: Added a FAQ list.
910 * configure.in, acconfig.h:
913 1999-05-30 Jesse Thilo <jthilo@gnu.org>
915 * doc/FAQ, doc/Makefile.am:
918 1999-05-19 Jesse Thilo <jthilo@gnu.org>
920 * src/alloc.h, src/symtab.h, src/version.c:
921 Protected inclusion of "config.h" with HAVE_CONFIG_H.
923 1999-04-18 Jesse Thilo <jthilo@gnu.org>
925 * src/.cvsignore, src/Makefile.am:
926 Reorganized: sources in `src', documentation in `doc'.
928 * src/lex.c (literalchar):
929 fixed the code for escaping double quotes (thanks
932 1999-04-18 Jesse Thilo <jthilo@gnu.org>
934 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
935 Adjusted paths to reflect directory reorganization.
937 1999-04-18 Jesse Thilo <jthilo@gnu.org>
939 * doc/.cvsignore, doc/Makefile.am:
940 Reorganized: sources in `src', documentation in `doc'.
942 1999-04-18 Jesse Thilo <jthilo@gnu.org>
945 Updated AC_INIT file to reflect directory reorganization.
947 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
948 Reorganized: sources in `src', documentation in `doc'.
950 1999-04-13 Jesse Thilo <jthilo@gnu.org>
953 Don't declare calloc() and realloc() if not necessary.
955 1999-04-13 Jesse Thilo <jthilo@gnu.org>
957 * configure.in, acconfig.h, acinclude.m4:
958 Don't declare calloc() and realloc() if not necessary.
960 1999-03-23 Jesse Thilo <jthilo@gnu.org>
962 * po/.cvsignore: Added i18n support.
964 1999-03-23 Jesse Thilo <jthilo@gnu.org>
966 * acconfig.h, configure.in, Makefile.am:
969 1999-03-22 Jesse Thilo <jthilo@gnu.org>
971 * src/bison.s1: Fixed #line numbers.
973 1999-03-15 Jesse Thilo <jthilo@gnu.org>
975 * po/es.po, po/fr.po, po/nl.po, po/de.po:
976 Added PO files from Translation Project.
978 1999-03-03 Jesse Thilo <jthilo@gnu.org>
981 Added support for non-ANSI compilers (ansi2knr).
983 1999-02-16 Jesse Thilo <jthilo@gnu.org>
985 * configure.in: Bumped version number to 1.27.
988 Added `bison.simple' to list of files removed by `make distclean'.
990 1999-02-12 Jesse Thilo <jthilo@gnu.org>
992 * src/files.c, src/files.h:
993 Defined locations of parser files in config.h instead of Makefile.
995 1999-02-12 Jesse Thilo <jthilo@gnu.org>
997 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
998 Defined locations of parser files in config.h instead of Makefile.
1000 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1003 Removed inappropriate use of $< macro.
1005 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1007 * po/Makefile.in.in, po/POTFILES.in:
1008 Add `po' directory skeleton.
1010 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1012 * README: Document help-bison list.
1014 * configure.in: Add check for mkstemp().
1016 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1018 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1019 Hush a few compiler warnings.
1022 Add tryclose(), which verifies that fclose was successful.
1023 Hush a couple of compiler warnings.
1025 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1027 * Makefile.am, OChangeLog:
1028 ChangeLog is now automatically generated. Include the old version as
1031 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1033 * 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:
1036 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1038 * doc/bison.texinfo: Fix formatting glitch.
1040 * doc/bison.texinfo: Update FSF address.
1042 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1044 * acconfig.h: Update FSF address.
1046 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1049 Don't define PACKAGE here, since config.h defines it.
1051 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1053 * src/reader.c: Update copyright date.
1056 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1057 favor of output directly to stderr (avoids buffer overruns).
1059 * src/reader.c: Some checks for premature EOF.
1061 * 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:
1062 Use prototypes if the compiler understands them.
1064 * src/files.c: Honor TMPDIR on Unix hosts.
1065 Use prototypes if the compiler understands them.
1068 Fix a couple of buffer overrun bugs.
1069 Use prototypes if the compiler understands them.
1071 * src/system.h: Include unistd.h and ctype.h.
1072 Use #ifdef instead of #if for NLS symbols.
1074 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1076 * doc/bison.texinfo:
1077 Delete comment "consider using @set for edition number, etc..." since
1078 we now are doing so.
1080 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1083 Use prototypes if the compiler understands them.
1085 * NEWS: Document 1.26 highlights.
1087 * Makefile.am: Require Automake 1.3 or later.
1090 Use prototypes if the compiler understands them.
1092 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1095 Use VERSION symbol from automake for version number.
1097 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1099 * acconfig.h, configure.in, version.cin:
1100 Use VERSION symbol from automake for version number.
1102 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1105 Distribute original version of simple parser (bison.s1), not built
1106 version (bison.simple).
1108 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1110 * doc/bison.texinfo: Add info dir entry.
1112 * doc/bison.texinfo:
1113 Let automake put version number into documentation.
1115 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1117 * src/bison.cld, src/build.com, src/vmshlp.mar:
1118 Add non-RCS files from /gd/gnu/bison.
1120 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1123 Document the BISON_HAIRY and BISON_SIMPLE variables.
1125 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1127 * src/version.c: Build version.c automatically.
1130 Fix token numbering (used to start at 258, not 257).
1132 * src/system.h: Include config.h.
1134 * src/getargs.c: Update bug report address.
1136 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1137 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1139 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1142 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1144 * configure.in, version.cin:
1145 Build version.c automatically.
1147 * AUTHORS: Add AUTHORS file.
1149 * README: Update bug report address.
1152 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1154 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1157 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1159 * doc/bison.texinfo: Clean up some formatting.
1161 1998-05-05 Richard Stallman <rms@gnu.org>
1163 * doc/bison.texinfo:
1164 Explain better why to make a pure parser.
1166 1998-01-05 Richard Stallman <rms@gnu.org>
1168 * src/files.c (openfiles):
1169 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1170 find a temporary directory, if possible. Do not unlink files while
1173 1997-08-25 Richard Stallman <rms@gnu.org>
1175 * src/reader.c (stack_offset;):
1176 Change some warni to warns.
1178 * src/lex.c (literalchar): Use warns, not warni.
1180 1997-06-28 Richard Stallman <rms@gnu.org>
1182 * src/bison.s1: Add a Bison version comment.
1184 * src/main.c (fatal, warn, berror):
1187 1997-06-28 Richard Stallman <rms@gnu.org>
1189 * Makefile.in (bison_version): New variable.
1190 (dist): Use that variable.
1191 (bison.s1): Substitute the Bison version into bison.simple.
1193 * bison.simple: Add a Bison version comment.
1195 1997-06-18 Richard Stallman <rms@gnu.org>
1197 * src/main.c (fatal, warn, berror):
1198 Make error messages standard.
1199 (toomany): Improve error message text.
1201 * 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:
1202 new.h renamed to alloc.h.
1204 1997-06-18 Richard Stallman <rms@gnu.org>
1206 * Makefile.in: new.h renamed to alloc.h.
1208 1997-05-24 Richard Stallman <rms@gnu.org>
1210 * src/lex.c (literalchar):
1211 Fix the code for escaping \, " and '.
1213 (lex): Avoid trouble when there are many chars
1214 to discard in a char literal with just several chars in it.
1216 1997-05-17 Richard Stallman <rms@gnu.org>
1219 Use malloc, if using alloca is troublesome.
1220 (YYSTACK_USE_ALLOCA): New flag macro.
1221 Define it for some systems and compilers.
1222 (YYSTACK_ALLOC): New macro.
1223 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1224 If it was malloc'd, free it.
1226 1997-05-17 Richard Stallman <rms@gnu.org>
1229 Use malloc, if using alloca is troublesome.
1230 (YYSTACK_USE_ALLOCA): New flag macro.
1231 Define it for some systems and compilers.
1232 (YYSTACK_ALLOC): New macro.
1233 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1234 If it was malloc'd, free it.
1236 1997-04-23 Richard Stallman <rms@gnu.org>
1239 (alloca) [__hpux]: Always define as __builtin_alloca.
1241 1997-04-23 Richard Stallman <rms@gnu.org>
1244 (alloca) [__hpux]: Always define as __builtin_alloca.
1246 1997-04-22 Richard Stallman <rms@gnu.org>
1249 [__hpux]: Include alloca.h (right for HPUX 10)
1250 instead of declaring alloca (right for HPUX 9).
1252 * src/bison.s1 (__yy_memcpy):
1253 Declare arg `count' as unsigned int.
1254 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1256 1997-04-22 Richard Stallman <rms@gnu.org>
1259 [__hpux]: Include alloca.h (right for HPUX 10)
1260 instead of declaring alloca (right for HPUX 9).
1262 * bison.simple (__yy_memcpy):
1263 Declare arg `count' as unsigned int.
1264 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1266 1997-01-03 Richard Stallman <rms@gnu.org>
1268 * src/allocate.c: [__STDC__ or _MSC_VER]:
1269 Declare calloc and realloc to return void *.
1271 1997-01-02 Richard Stallman <rms@gnu.org>
1274 [_MSC_VER]: Include stdlib.h and process.h.
1275 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1277 * src/main.c (main): Return FAILURE as a value.
1278 (printable_version): Declare arg as int, not char.
1280 1997-01-02 Richard Stallman <rms@gnu.org>
1282 * Makefile.in (dist):
1283 Explicitly check for symlinks, and copy them.
1285 1996-12-19 Richard Stallman <rms@gnu.org>
1288 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1290 1996-12-18 Paul Eggert <eggert@gnu.org>
1292 * src/bison.s1 (yyparse):
1293 If __GNUC__ and YYPARSE_PARAM are both defined,
1294 declare yyparse to have a void * argument.
1296 1996-12-18 Paul Eggert <eggert@gnu.org>
1298 * bison.simple (yyparse):
1299 If __GNUC__ and YYPARSE_PARAM are both defined,
1300 declare yyparse to have a void * argument.
1302 1996-12-17 Richard Stallman <rms@gnu.org>
1304 * src/reduce.c (nbits): Add some casts.
1306 1996-08-12 Richard Stallman <rms@gnu.org>
1308 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1310 1996-08-12 Richard Stallman <rms@gnu.org>
1312 * bison.simple: Test _MSDOS as well as _MSDOS_.
1314 1996-07-31 Richard Stallman <rms@gnu.org>
1317 [__sun && __i386]: Include alloca.h.
1319 1996-07-31 Richard Stallman <rms@gnu.org>
1322 [__sun && __i386]: Include alloca.h.
1324 1996-07-30 Richard Stallman <rms@gnu.org>
1326 * src/bison.s1: Comment change.
1328 * src/bison.s1: Test _MSDOS_, not MSDOS.
1330 1996-07-30 Richard Stallman <rms@gnu.org>
1332 * bison.simple: Comment change.
1334 * bison.simple: Test _MSDOS_, not MSDOS.
1336 1996-06-01 Richard Stallman <rms@gnu.org>
1338 * 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:
1339 Insert `_' macro around many string constants.
1342 Insert `_' macro around many string constants.
1344 (main): Call setlocale, bindtextdomain and textdomain.
1346 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1347 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1348 [ENABLE_NLS]: Include libintl.h.
1349 [ENABLE_NLS] (gettext): Define.
1350 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1351 (N_, PACKAGE, LOCALEDIR): New macros.
1353 1996-06-01 Richard Stallman <rms@gnu.org>
1355 * POTFILES.in: New file.
1357 * Makefile.in (allocate.o):
1358 Define target explicitly.
1360 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1361 (LDFLAGS): Set to @LDFLAGS@.
1362 (configure): Run autoconf only if preceding `cd' succeeds.
1363 (bison.s1): Redirect output to temporary file then move the
1364 temporary to the target, rather than redirecting directly to bison.s1.
1365 (clean): Remove config.status and config.log.
1366 (distclean): Don't remove config.status here.
1368 1996-05-12 Richard Stallman <rms@gnu.org>
1371 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1373 1996-05-12 Richard Stallman <rms@gnu.org>
1376 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1378 1996-05-11 Richard Stallman <rms@gnu.org>
1380 * src/bison.s1 (__yy_memcpy):
1381 Really reorder the args, as was supposedly done on Feb 14 1995.
1382 (yyparse): Calls changed accordingly.
1384 1996-05-11 Richard Stallman <rms@gnu.org>
1386 * Makefile.in (dist): Don't use $(srcdir).
1388 * bison.simple (__yy_memcpy):
1389 Really reorder the args, as was supposedly done on Feb 14 1995.
1390 (yyparse): Calls changed accordingly.
1392 1996-01-27 Richard Stallman <rms@gnu.org>
1394 * src/output.c (output_rule_data):
1395 Test YYERROR_VERBOSE in the conditional
1396 around the definition of ttyname.
1398 1995-12-29 Richard Stallman <rms@gnu.org>
1401 Fix line numbers in #line commands.
1403 1995-12-29 Richard Stallman <rms@gnu.org>
1406 Fix line numbers in #line commands.
1408 1995-12-27 Richard Stallman <rms@gnu.org>
1410 * src/bison.s1 (YYPARSE_PARAM_DECL):
1411 In C++, make it always null.
1412 (YYPARSE_PARAM_ARG): New macro.
1413 (yyparse): Use YYPARSE_PARAM_ARG.
1415 1995-12-27 Richard Stallman <rms@gnu.org>
1417 * bison.simple (YYPARSE_PARAM_DECL):
1418 In C++, make it always null.
1419 (YYPARSE_PARAM_ARG): New macro.
1420 (yyparse): Use YYPARSE_PARAM_ARG.
1422 1995-11-29 Richard Stallman <rms@gnu.org>
1424 * doc/bison.texinfo:
1425 Describe literal string tokens, %raw, %no_lines, %token_table.
1427 1995-11-29 Daniel Hagerty <hag@gnu.org>
1429 * doc/bison.texinfo: Fixed update date
1431 1995-10-16 Richard Stallman <rms@gnu.org>
1433 * src/version.c: Version 1.25.
1435 1995-10-16 Richard Stallman <rms@gnu.org>
1437 * NEWS: *** empty log message ***
1439 1995-10-16 Richard Stallman <rms@gnu.org>
1441 * doc/bison.1, doc/bison.rnh:
1444 1995-10-15 Richard Stallman <rms@gnu.org>
1446 * src/vmsgetargs.c, src/getargs.c:
1447 Added -n, -k, and -raw switches.
1448 (noparserflag, toknumflag, rawtoknumflag): New variables.
1450 * src/symtab.h (SALIAS):
1451 New #define for adding aliases to %token.
1452 (struct bucket): Added `alias' field.
1454 * src/reduce.c (reduce_grammar):
1455 Revise error message.
1456 (print_notices): Remove final `.' from error message.
1458 * src/reader.c (reader_output_yylsp):
1460 (readgram): Use `#if 0' around code that accepted %command
1461 inside grammar rules: The documentation doesn't allow it,
1462 and it will fail since the %command processors scan for the next %.
1463 (parse_token_decl): Extended the %token
1464 declaration to allow a multi-character symbol as an alias.
1465 (parse_thong_decl): New function.
1466 (read_declarations): Added %thong declarations.
1467 (read_declarations): Handle NOOP to deal with allowing
1468 % declarations as another means to specify the flags.
1469 (readgram): Allow %prec prior to semantics embedded in a rule.
1470 (skip_to_char, read_declarations, copy_definition)
1471 (parse_token_decl, parse_start_decl, parse_type_decl)
1472 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1473 (get_type_name, copy_guard, copy_action, readgram)
1474 (get_type, packsymbols): Revised most error messages.
1475 Changed `fatal' to `warnxxx' to avoid aborting for error.
1476 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1477 (read_declarations): Improve the error message for
1478 an invalid character. Do not abort.
1479 (read_declarations, copy_guard, copy_action): Use
1480 printable_version to avoid unprintable characters in printed output.
1481 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1482 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1483 Allow the type of a non-terminal can be given
1484 more than once, as long as all specifications give the same type.
1487 (output_headers, output_trailers, output, output_gram)
1488 (output_rule_data): Implement noparserflag variable.
1489 Implement toknumflag variable.
1490 (output): Call reader_output_yylsp to output LTYPESTR.
1492 * src/main.c (main):
1493 If reader sees an error, don't process the grammar.
1494 (fatals): Updated to not use VARARGS1.
1495 (printable_version, int_to_string, warn, warni, warns, warnss)
1496 (warnsss): New error reporting functions. Avoid abort for error.
1499 Added THONG and NOOP for alias processing.
1500 Added SETOPT for the new code that allows setting options with %flags.
1503 Include getopt.h. Add some extern decls.
1504 (safegetc): New function to deal with EOF gracefully.
1505 (literalchar); new function to deal with reading \ escapes.
1506 (lex): Use literalchar.
1507 (lex): Implemented "..." tokens.
1508 (literalchar, lex, parse_percent_token): Made tokenbuffer
1509 always contain the token. This includes growing the token
1510 buffer while reading an integer.
1511 (parse_percent_token): Replaced if-else statement with percent_table.
1512 (parse_percent_token): Added % declarations as another
1513 way to specify the flags -n, -l, and -r. Also added hooks for
1514 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1515 major changes to files.c.
1516 (lex) Retain in the incoming stream a character following
1518 (skip_white_space, lex): Revised most error messages
1519 and changed fatal to warn to avoid aborting.
1520 (percent_table): Added %thong declarations.
1522 * src/gram.h: Comment changes.
1524 * src/files.c (openfiles, open_extra_files, done):
1526 and actfile file. Handle noparserflag. Both for -n switch.
1528 * src/conflicts.c (resolve_sr_conflict):
1529 Remove use of alloca.
1531 1995-06-01 Jim Meyering <meyering@gnu.org>
1533 * doc/bison.texinfo: *** empty log message ***
1535 1995-05-06 Richard Stallman <rms@gnu.org>
1537 * src/bison.s1: Comment change.
1539 1995-05-06 Richard Stallman <rms@gnu.org>
1541 * bison.simple: Comment change.
1543 1995-05-03 Richard Stallman <rms@gnu.org>
1545 * src/version.c: Version now 1.24.
1547 * src/bison.s1: Change distribution terms.
1549 * src/version.c: Version now 1.23.
1551 1995-05-03 Richard Stallman <rms@gnu.org>
1553 * doc/bison.texinfo:
1554 Rewrite "Conditions for Using Bison".
1555 Update version to 1.24.
1557 1995-05-03 Richard Stallman <rms@gnu.org>
1559 * bison.simple: Change distribution terms.
1561 1995-02-23 Richard Stallman <rms@gnu.org>
1563 * src/files.c: Test __VMS_POSIX as well as VMS.
1565 1995-02-14 Jim Meyering <meyering@gnu.org>
1567 * src/bison.s1 (__yy_memcpy):
1568 Renamed from __yy_bcopy to avoid
1569 confusion. Reverse FROM and TO arguments to be consistent with
1572 1995-02-14 Jim Meyering <meyering@gnu.org>
1574 * bison.simple (__yy_memcpy):
1575 Renamed from __yy_bcopy to avoid
1576 confusion. Reverse FROM and TO arguments to be consistent with
1579 1994-11-10 David J. MacKenzie <djm@gnu.org>
1585 * Makefile.in (DISTFILES): Include NEWS.
1587 * Makefile.in (DISTFILES):
1588 Include install-sh, not install.sh.
1590 * configure.in: Update to Autoconf v2 macro names.
1592 1994-10-05 David J. MacKenzie <djm@gnu.org>
1594 * Makefile.in: fix typo
1596 * Makefile.in (prefix, exec_prefix):
1597 Let configure set them.
1599 1994-09-28 David J. MacKenzie <djm@gnu.org>
1601 * Makefile.in: Set datadir to $(prefix)/share.
1603 1994-09-15 Richard Stallman <rms@gnu.org>
1606 Update copyright notice and GPL version.
1608 1994-09-15 Richard Stallman <rms@gnu.org>
1611 Update copyright notice and GPL version.
1613 1994-07-12 Richard Stallman <rms@gnu.org>
1615 * src/reduce.c, src/reader.c:
1618 1994-05-05 David J. MacKenzie <djm@gnu.org>
1620 * Makefile.in: entered into RCS
1622 1994-03-26 Richard Stallman <rms@gnu.org>
1624 * src/bison.s1: entered into RCS
1626 1994-03-26 Richard Stallman <rms@gnu.org>
1628 * bison.simple: entered into RCS
1630 1994-03-25 Richard Stallman <rms@gnu.org>
1632 * src/main.c: entered into RCS
1634 1994-03-24 Richard Stallman <rms@gnu.org>
1636 * src/conflicts.c: entered into RCS
1638 1994-01-02 Richard Stallman <rms@gnu.org>
1640 * Makefile.in: *** empty log message ***
1642 1993-11-21 Richard Stallman <rms@gnu.org>
1644 * src/bison.s1: *** empty log message ***
1646 1993-11-21 Richard Stallman <rms@gnu.org>
1648 * doc/bison.texinfo: entered into RCS
1650 * doc/bison.texinfo: *** empty log message ***
1652 1993-11-21 Richard Stallman <rms@gnu.org>
1654 * bison.simple: *** empty log message ***
1656 1993-10-25 David J. MacKenzie <djm@gnu.org>
1658 * doc/bison.texinfo: *** empty log message ***
1660 1993-10-19 Richard Stallman <rms@gnu.org>
1662 * src/bison.s1: *** empty log message ***
1664 1993-10-19 Richard Stallman <rms@gnu.org>
1666 * bison.simple: *** empty log message ***
1668 1993-10-14 Richard Stallman <rms@gnu.org>
1670 * src/bison.s1: *** empty log message ***
1672 1993-10-14 Richard Stallman <rms@gnu.org>
1674 * bison.simple: *** empty log message ***
1676 1993-09-14 David J. MacKenzie <djm@gnu.org>
1678 * doc/bison.texinfo: *** empty log message ***
1680 1993-09-13 Noah Friedman <friedman@gnu.org>
1682 * Makefile.in: *** empty log message ***
1684 1993-09-10 Richard Stallman <rms@gnu.org>
1686 * src/conflicts.c: *** empty log message ***
1688 * src/system.h: entered into RCS
1690 1993-09-10 Richard Stallman <rms@gnu.org>
1692 * doc/bison.1: entered into RCS
1694 1993-09-06 Noah Friedman <friedman@gnu.org>
1696 * src/version.c: entered into RCS
1698 1993-09-06 Noah Friedman <friedman@gnu.org>
1700 * Makefile.in: *** empty log message ***
1702 1993-07-30 David J. MacKenzie <djm@gnu.org>
1704 * Makefile.in: *** empty log message ***
1706 1993-07-24 Richard Stallman <rms@gnu.org>
1708 * src/bison.s1: *** empty log message ***
1710 1993-07-24 Richard Stallman <rms@gnu.org>
1712 * bison.simple: *** empty log message ***
1714 1993-07-08 David J. MacKenzie <djm@gnu.org>
1716 * Makefile.in: *** empty log message ***
1718 1993-07-04 Richard Stallman <rms@gnu.org>
1720 * src/bison.s1: *** empty log message ***
1722 1993-07-04 Richard Stallman <rms@gnu.org>
1724 * bison.simple: *** empty log message ***
1726 1993-06-26 David J. MacKenzie <djm@gnu.org>
1728 * src/getargs.c: entered into RCS
1730 1993-06-26 David J. MacKenzie <djm@gnu.org>
1732 * doc/bison.texinfo: *** empty log message ***
1734 * doc/bison.1: New file.
1736 1993-06-25 Richard Stallman <rms@gnu.org>
1738 * src/getargs.c: New file.
1740 1993-06-16 Richard Stallman <rms@gnu.org>
1742 * src/bison.s1: *** empty log message ***
1744 1993-06-16 Richard Stallman <rms@gnu.org>
1746 * bison.simple: *** empty log message ***
1748 1993-06-03 Richard Stallman <rms@gnu.org>
1750 * src/bison.s1: New file.
1752 1993-06-03 Richard Stallman <rms@gnu.org>
1754 * doc/bison.texinfo: *** empty log message ***
1756 1993-06-03 Richard Stallman <rms@gnu.org>
1758 * bison.simple: New file.
1760 1993-05-19 Richard Stallman <rms@gnu.org>
1762 * doc/bison.texinfo: New file.
1764 1993-05-07 Noah Friedman <friedman@gnu.org>
1766 * Makefile.in: *** empty log message ***
1768 1993-04-28 Noah Friedman <friedman@gnu.org>
1770 * src/reader.c: *** empty log message ***
1772 1993-04-23 Noah Friedman <friedman@gnu.org>
1774 * src/alloc.h: entered into RCS
1776 1993-04-20 David J. MacKenzie <djm@gnu.org>
1778 * src/version.c: *** empty log message ***
1780 * src/files.c, src/allocate.c:
1783 * src/reader.c: *** empty log message ***
1785 * src/lex.c: entered into RCS
1787 * src/conflicts.c: New file.
1789 * src/symtab.c: entered into RCS
1791 * src/alloc.h: New file.
1793 * src/LR0.c: entered into RCS
1795 1993-04-18 Noah Friedman <friedman@gnu.org>
1797 * src/reader.c: New file.
1799 * src/version.c: *** empty log message ***
1801 1993-04-18 Noah Friedman <friedman@gnu.org>
1803 * Makefile.in: *** empty log message ***
1805 1993-04-17 Noah Friedman <friedman@gnu.org>
1807 * Makefile.in: *** empty log message ***
1809 1993-04-15 Richard Stallman <rms@gnu.org>
1811 * src/main.c, src/files.c:
1814 1993-04-15 Noah Friedman <friedman@gnu.org>
1816 * configure.in: entered into RCS
1818 * configure.in: *** empty log message ***
1820 * configure.in: New file.
1822 1993-04-14 Richard Stallman <rms@gnu.org>
1824 * Makefile.in: New file.
1826 1993-04-13 Richard Stallman <rms@gnu.org>
1828 * src/version.c: New file.
1830 1993-03-25 Richard Stallman <rms@gnu.org>
1832 * src/output.c: entered into RCS
1834 1992-09-25 Richard Stallman <rms@gnu.org>
1836 * configure.bat: entered into RCS
1838 1992-06-22 Richard Stallman <rms@gnu.org>
1840 * src/vmsgetargs.c: entered into RCS
1842 1992-06-22 Richard Stallman <rms@gnu.org>
1844 * doc/bison.rnh: entered into RCS
1846 1992-04-20 David J. MacKenzie <djm@gnu.org>
1848 * README: entered into RCS
1850 1992-01-22 Richard Stallman <rms@gnu.org>
1852 * src/machine.h: entered into RCS
1854 1991-12-21 Richard Stallman <rms@gnu.org>
1856 * src/lalr.c, src/closure.c:
1859 1991-12-20 Richard Stallman <rms@gnu.org>
1861 * src/state.h: entered into RCS
1863 1991-12-18 Richard Stallman <rms@gnu.org>
1865 * src/print.c, src/nullable.c, src/derives.c:
1868 1991-11-03 David J. MacKenzie <djm@gnu.org>
1870 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1873 1988-09-09 Richard Stallman <rms@gnu.org>
1875 * src/bison.hairy: entered into RCS
1877 1987-12-16 Richard Stallman <rms@gnu.org>
1879 * REFERENCES: entered into RCS