1 1998-01-04 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
3 * src/files.c (openfiles) [_WIN32 && !__CYGWIN32__]: Use TEMP or
4 Temp to find a temporary directory, if possible. Do not unlink
5 files while they are open.
7 1997-08-25 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
9 * src/reader.c (stack_offset;): Change some warni to warns.
11 * src/lex.c (literalchar): Use warns, not warni.
13 1997-06-28 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
15 * src/bison.simple: Add a Bison version comment.
17 * Makefile.in (bison_version): New variable.
18 (dist): Use that variable.
19 (bison.s1): Substitute the Bison version into bison.simple.
21 * src/main.c (fatal, warn, berror): Use program_name.
23 1997-06-18 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
25 * Makefile.in: new.h renamed to alloc.h.
26 * src/*.c: src/new.h renamed to src/alloc.h.
28 * src/alloc.h: Renamed from src/new.h.
30 1997-06-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
32 * src/main.c (fatal, warn, berror): Make error messages standard.
33 (toomany): Improve error message text.
35 1997-05-24 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
37 * src/lex.c (literalchar): Fix the code for escaping \, " and '.
39 1997-05-23 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
41 * src/lex.c (lex): Avoid trouble when there are many chars
42 to discard in a char literal with just several chars in it.
44 1997-05-17 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
46 * src/bison.simple: Use malloc, if using alloca is troublesome.
47 (YYSTACK_USE_ALLOCA): New flag macro.
48 Define it for some systems and compilers.
49 (YYSTACK_ALLOC): New macro.
50 (yyparse): Use YYSTACK_ALLOC to allocate stack.
51 If it was malloc'd, free it.
53 1997-05-02 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
55 * src/bison.simple [_AIX]: Don't include malloc.h.
57 1997-04-23 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
59 * src/bison.simple (alloca) [__hpux]: Always define as
62 1997-04-22 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
64 * src/bison.simple (__yy_memcpy): Declare arg `count' as unsigned
66 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
68 * src/bison.simple (alloca) [__hpux]: Include alloca.h (right for
69 HPUX 10) instead of declaring alloca (right for HPUX 9).
71 1997-01-02 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
73 * src/allocate.c [__STDC__ or _MSC_VER]:
74 Declare calloc and realloc to return void *.
76 * Makefile.in (dist): Explicitly check for symlinks, and copy them.
78 1996-12-17 Paul Eggert <eggert@twinsun.com>
80 * src/bison.simple (yyparse): If __GNUC__ and YYPARSE_PARAM are
81 both defined, declare yyparse to have a void * argument.
83 1996-12-17 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
85 * src/system.h [_MSC_VER]: Include stdlib.h and process.h.
86 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
88 * src/reduce.c (nbits): Add some casts.
90 * src/main.c (main): Return FAILURE as a value.
91 (printable_version): Declare arg as int, not char.
93 * src/files.c [_MSC_VER] (XPFILE, XPFILE1): Define, if not already
96 1996-12-16 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
98 * src/main.c (printable_version): Use type `int' for the arg.
100 1996-08-12 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
102 * src/bison.simple: Test _MSDOS as well as _MSDOS_.
104 1996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
106 * src/bison.simple [__sun && __i386]: Include alloca.h.
108 1996-07-30 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
110 * src/bison.simple: Test _MSDOS_, not MSDOS.
112 1996-06-01 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
114 * All files: Insert `_' macro around many string constants.
116 * src/system.h [HAVE_LOCALE_H]: Include locale.h.
117 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
118 [ENABLE_NLS]: Include libintl.h.
119 [ENABLE_NLS] (gettext): Define.
120 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
121 (N_, PACKAGE, LOCALEDIR): New macros.
123 * src/main.c (main): Call setlocale, bindtextdomain and textdomain.
125 * POTFILES.in: New file.
127 * Makefile.in (allocate.o): Define target explicitly.
129 1996-06-01 Jim Meyering <meyering@na-net.ornl.gov>
131 * Makefile.in (CFLAGS): Set to @CFLAGS@.
132 (LDFLAGS): Set to @LDFLAGS@.
133 (configure): Run autoconf only if preceding `cd' succeeds.
134 (src/bison.s1): Redirect output to temporary file then move the
135 temporary to the target, rather than redirecting directly to
137 (clean): Remove config.status and config.log.
138 (distclean): Don't remove config.status here.
140 1996-05-12 Jim Meyering <meyering@na-net.ornl.gov>
142 * src/bison.simple (__yy_memcpy) [__cplusplus]: Reorder declarations
143 of variables f and t.
145 1996-05-11 Richard Stallman <rms@delasyd.gnu.ai.mit.edu>
147 * Version 1.25 released.
149 * Makefile.in (dist): Don't use $(srcdir).
151 * src/bison.simple (__yy_memcpy): Really reorder the args, as was
152 supposedly done on Feb 14 1995.
153 (yyparse): Calls changed accordingly.
155 1996-01-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
157 * src/output.c (output_rule_data): Test YYERROR_VERBOSE in the
158 conditional around the definition of ttyname.
160 1995-12-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
162 * src/bison.simple: Fix line numbers in #line commands.
164 1995-12-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
166 * src/bison.simple (YYPARSE_PARAM_DECL): In C++, make it always
168 (YYPARSE_PARAM_ARG): New macro.
169 (yyparse): Use YYPARSE_PARAM_ARG.
171 1995-10-15 Richard Stallman <rms@mole.gnu.ai.mit.edu>
173 * src/version.c: Version now 1.25.
175 * src/main.c (warn): Set `failure'.
177 1995-08-01 Wilfred J. Hansen <wjh+@cmu.edu>
179 * src/bison.cld, src/getargs.c, src/vmsgetargs.c: Added -n, -k,
181 (noparserflag, toknumflag, rawtoknumflag): New variables.
183 * src/conflicts.c (resolve_sr_conflict): Remove use of alloca.
185 * src/files.c (openfiles, open_extra_files, done): Add faction flag
186 and actfile file. Handle noparserflag. Both for -n switch.
188 * src/lex.c: Include getopt.h. Add some extern decls.
189 (safegetc): New function to deal with EOF gracefully.
190 (literalchar); new function to deal with reading \ escapes.
191 (lex): Use literalchar.
192 (lex): Implemented "..." tokens.
193 (literalchar, lex, parse_percent_token): Made tokenbuffer
194 always contain the token. This includes growing the token
195 buffer while reading an integer.
196 (parse_percent_token): Replaced if-else statement with percent_table.
197 (parse_percent_token): Added % declarations as another
198 way to specify the flags -n, -l, and -r. Also added hooks for
199 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
200 major changes to src/files.c.
201 (lex) Retain in the incoming stream a character following
203 (skip_white_space, lex): Revised most error messages
204 and changed fatal to warn to avoid aborting.
205 (percent_table): Added %thong declarations.
207 * src/lex.h: Added THONG and NOOP for alias processing.
208 Added SETOPT for the new code that allows setting options with %flags.
210 * src/main.c (main): If reader sees an error, don't process the
212 (fatals): Updated to not use VARARGS1.
213 (printable_version, int_to_string, warn, warni, warns, warnss)
214 (warnsss): New error reporting functions. Avoid abort for error.
216 * src/output.c (output_headers, output_trailers, output, output_gram)
217 (output_rule_data): Implement noparserflag variable.
218 Implement toknumflag variable.
219 (output): Call reader_output_yylsp to output LTYPESTR.
221 * src/reader.c (reader_output_yylsp): New function.
222 (readgram): Use `#if 0' around code that accepted %command inside
223 grammar rules: The documentation doesn't allow it, and it will
224 fail since the %command processors scan for the next %.
225 (parse_token_decl): Extended the %token declaration to allow a
226 multi-character symbol as an alias.
227 (parse_thong_decl): New function.
228 (read_declarations): Added %thong declarations.
229 (read_declarations): Handle NOOP to deal with allowing %
230 declarations as another means to specify the flags.
231 (readgram): Allow %prec prior to semantics embedded in a rule.
232 (skip_to_char, read_declarations, copy_definition)
233 (parse_token_decl, parse_start_decl, parse_type_decl)
234 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
235 (get_type_name, copy_guard, copy_action, readgram)
236 (get_type, packsymbols): Revised most error messages. Changed
237 `fatal' to `warnxxx' to avoid aborting for error. Revised and use
238 multiple warnxxx functions to avoid using VARARGS1.
239 (read_declarations): Improve the error message for an invalid
240 character. Do not abort.
241 (read_declarations, copy_guard, copy_action): Use
242 printable_version to avoid unprintable characters in printed
244 (parse_expect_decl): Error if argument to %expect exceeds 10
246 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
247 Allow the type of a non-terminal can be given more than once, as
248 long as all specifications give the same type.
250 * src/reduce.c (reduce_grammar): Revise an error message.
251 (print_notices): Remove final `.' from error message.
253 * src/symtab.h (SALIAS): New #define for adding aliases to %token.
254 (struct bucket): Added `alias' field.
256 1995-05-03 Richard Stallman <rms@mole.gnu.ai.mit.edu>
258 * src/bison.simple: Change distribution terms.
260 * src/version.c: Version now 1.23. No, 1.24.
262 1995-02-23 Richard Stallman <rms@mole.gnu.ai.mit.edu>
264 * src/files.c: Test __VMS_POSIX as well as VMS.
266 1995-02-14 Jim Meyering <meyering@comco.com>
268 * src/bison.simple (__yy_memcpy): Renamed from __yy_bcopy to avoid
269 confusion. Reverse FROM and TO arguments to be consistent with
272 1994-11-10 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
274 * Makefile.in (DISTFILES): Include install-sh, not install.sh.
277 * configure.in: Update to Autoconf v2 macro names.
279 1994-10-04 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
281 * Makefile.in (prefix, exec_prefix): Let configure set them.
283 1994-09-28 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
285 * Makefile.in: Set datadir to $(prefix)/share.
287 1994-07-12 Richard Stallman <rms@mole.gnu.ai.mit.edu>
289 * src/reader.c (reader): Rename undefined-token token to
292 1994-05-05 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
294 * Makefile.in (DISTFILES): Add install.sh.
295 (install): Remove chmod commands.
297 1994-03-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
299 * src/bison.simple: Fix #line commands.
301 1994-03-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
303 * src/conflicts.c (print_reductions): Increment both fp1 and fp2
304 while printing reductions in multi-rule case.
306 1994-01-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
308 * Makefile.in (LDFLAGS): Make it empty by default.
311 1993-11-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
313 * src/bison.simple (YYLEX): Take notice of YYLEX_PARAM.
315 1993-10-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
317 * src/bison.simple (YYPARSE_PARAM_DECL): Always define this.
319 1993-10-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
321 * src/bison.simple (yyparse): Support YYPARSE_PARAM.
323 1993-09-13 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
325 * Makefile.in (check): New target.
327 1993-09-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
329 * src/conflicts.c (alloca): #undef before defining.
331 * src/system.h (bcopy): Don't define if already defined.
333 1993-09-06 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
335 * Version 1.22 released.
337 * mkinstalldirs: New file.
339 * Makefile.in (dist): Use .gz for extension, not .z.
340 (DISTFILES): New variable.
341 (dist): Use it instead of explicit file list.
342 Try to link each file separately, then copy file if ln fails.
343 (installdirs): Use mkinstalldirs script.
345 1993-07-29 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
347 * Makefile.in (config.status): Run config.status --recheck, not
348 configure, to get the right args passed.
350 1993-07-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
352 * src/bison.simple (yyparse): Init yychar1 to avoid warning.
354 1993-07-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
356 * src/bison.simple (yyparse): Don't set yyval when yylen is 0.
358 1993-06-26 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
360 * src/getargs.c (getargs): Exit after printing the version number.
361 Add --help and -h options.
362 (usage): New function.
364 1993-06-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
366 * src/getargs.c (longopts): Allow `output' as an alternative.
368 1993-06-16 Richard Stallman <rms@mole.gnu.ai.mit.edu>
370 * src/bison.simple (yyparse): Conditionalize the entire call to
371 yyoverflow, not just two arguments in it.
373 1993-06-03 Richard Stallman <rms@mole.gnu.ai.mit.edu>
375 * src/bison.simple [__hpux] (alloca): Don't specify arg types.
377 1993-05-07 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
379 * Makefile.in (install): Depend on `uninstall' and `installdirs'.
380 (installdirs): New target.
382 1993-04-28 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
384 * src/reader.c: Remove declaration of atoi.
386 1993-04-23 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
388 * src/new.h [!__STDC__] (FREE): Check x != 0.
389 Make expr to call `free' evaluate to 0.
391 1993-04-20 David J. MacKenzie <djm@kropotkin.gnu.ai.mit.edu>
393 * src/files.c [MSDOS]: Use xmalloc, not malloc.
394 * src/allocate.c (xmalloc): Renamed from mallocate. Remove old
396 * src/conflicts.c, src/symtab.c, src/files.c, src/LR0.c,
397 src/new.h: Change callers.
398 * src/allocate.c (xrealloc): New function.
399 * src/new.h: Declare it.
400 * src/lex.c, src/reader.c: Use it.
402 1993-04-18 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
404 * Version 1.21 released.
406 * src/reader.c : Don't declare `realloc'.
408 * Makefile.in (bison.s1): use `rm -f' since it's quieter.
409 (dist): make gzipped tar file.
411 1993-04-16 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
413 * Makefile.in (Makefile, config.status, configure): New targets.
415 1993-04-15 Richard Stallman <rms@mole.gnu.ai.mit.edu>
417 * src/main.c: Don't declare `abort'.
419 * src/files.c: Don't declare `exit'.
421 1993-04-15 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
423 * configure.in: Add AC_CONST.
425 1993-04-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
427 * Makefile.in (all): Depend on bison.s1.
429 1993-04-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
431 * Version 1.20 released.
433 1993-03-24 Richard Stallman <rms@wookumz.gnu.ai.mit.edu>
435 * src/output.c (output_headers): Rename yynerrs if -p.
437 1993-03-18 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
439 * src/system.h: Don't try to include stdlib.h unless HAVE_STDLIB_H
442 * configure.in: Check for stdlib.h.
444 1993-03-17 Richard Stallman <rms@mole.gnu.ai.mit.edu>
446 * src/bison.simple [__hpux, not __GNUC__]: Declare alloca.
447 (yyparse): When printing the expected token types for an error,
448 Avoid negative indexes in yycheck and yytname.
450 1993-03-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
452 * Makefile.in (files.o, .c.o): Put CPPFLAGS and CFLAGS last.
454 1993-03-01 Richard Stallman <rms@mole.gnu.ai.mit.edu>
456 * src/bison.simple: Test __sgi like __sparc.
458 1993-02-17 Richard Stallman <rms@mole.gnu.ai.mit.edu>
460 * src/conflicts.c (resolve_sr_conflict): Add extra parens in
463 * src/bison.simple [__GNUC__] (yyparse): Declare with prototype.
465 1993-01-15 Richard Stallman <rms@mole.gnu.ai.mit.edu>
467 * src/conflicts.c (print_reduction): Near end, increment fp2 when
470 1993-01-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
472 * Makefile.in (bison.s1): New target. Modifies bison.simple.
473 (install): Install bison.s1, without changing it.
474 (clean): Delete bison.s1.
476 1993-01-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
478 * src/reader.c (reader): Put Bison version in comment in output
481 1992-12-22 Richard Stallman <rms@mole.gnu.ai.mit.edu>
483 * src/files.c (openfiles): Use .output, not .out, for outfile,
484 regardless of spec_name_prefix.
486 1992-12-15 Richard Stallman <rms@mole.gnu.ai.mit.edu>
488 * src/output.c (output_gram): Include yyrhs in the same #if as
491 1992-12-15 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
493 * src/output.c (output): output directives checking for
494 __cplusplus as well as __STDC__ to determine when to define
495 "const" as an empty token. (Patch from Wolfgang Glunz
496 <wogl@sun11a.zfe.siemens.de>)
498 1992-12-08 David J. MacKenzie <djm@kropotkin.gnu.ai.mit.edu>
500 * src/system.h, src/conflicts.c: Replace USG with HAVE_STRING_H
503 1992-11-21 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
505 * Makefile.in: Set and use $(MAKEINFO).
507 1992-11-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
509 * src/files.c (done) [MSDOS]: Delete the tmpdefsfile with the
512 1992-10-08 Richard Stallman <rms@mole.gnu.ai.mit.edu>
514 * Makefile.in (dist): Put configure.bat in the distribution.
516 1992-10-01 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
518 * Makefile.in (install): cd to $(srcdir) before installing info
521 1992-09-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
523 * Makefile.in (files.o): Supply $(DEFS), and $(CPPFLAGS).
525 1992-09-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
527 * Version 1.19 released.
529 * src/reader.c (parse_union_decl): Fix ending of C++ comment;
530 don't lose the char after the newline.
532 * configure.bat: New file.
534 1992-09-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
536 * src/conflicts.c: Check for using alloca.h as getopt.c does.
538 1992-09-06 Karl Berry <karl@hayley>
540 * src/files.c (openfiles): open `fdefines' after we have assigned
541 a name to `tmpdefsfile', and only if `definesflag' is set.
542 (done): only create the real .tab.h file if `definesflag' is set.
543 * src/reader.c (packsymbols): don't close `fdefines' here.
545 1992-09-05 Richard Stallman <rms@mole.gnu.ai.mit.edu>
547 * src/files.c (openfiles): Open fdefines as temp file, like
549 (done): Copy temp defines file to real one, like main output file.
551 1992-08-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
553 * Makefile.in (dist): Don't release mergedir.awk
554 (install): Use sed, not awk. Don't depend on mergedir.awk.
555 * mergedir.awk: File effectively deleted.
557 1992-07-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
559 * src/bison.simple: Test __sparc along with __sparc__.
561 1992-07-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
563 * src/lex.c (skip_white_space): Count \n just once at end of c++
566 1992-06-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
568 * src/bison.simple: Comment fix; #line command updated.
570 1992-06-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
572 * Makefile.in (install): Specify full new file name for the
575 1992-06-22 Richard Stallman <rms@mole.gnu.ai.mit.edu>
577 * Makefile.in (dist): Include bison.rnh in distribution.
579 Sun Jun 21 22:42:13 1992 Eric Youngdale <youngdale@v6550c.nrl.navy.mil>
581 Clean up rough edges in VMS port of bison, add support for
582 remaining command line options.
584 * src/bison.cld: Add /version, /yacc, /file_prefix, and
585 /name_prefix switches.
587 * src/build.com: General cleanup: add logic to automatically sense
588 which C compiler is present; add code to cwd to the directory that
589 contains bison sources; do not define XPFILE, XPFILE1
590 (correct defaults are applied in src/file.c).
592 * src/files.c: Append _tab, not .tab when using /file_prefix under
595 * src/system.h: Include string.h instead of strings.h (a la USG).
597 * src/vmsgetargs.c: Add support for all switches added to
600 1992-06-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
602 * Makefile.in (install): Always specify new file name for install.
603 Redirect awk output to temp file and install that.
605 1992-05-27 Richard Stallman <rms@mole.gnu.ai.mit.edu>
607 * src/bison.simple (yyparse): Make yybackup and yyerrlab1 always
610 1992-05-22 Richard Stallman <rms@mole.gnu.ai.mit.edu>
612 * Makefile.in (dist): Depend on bison.info
613 (bison.info): Delete spurious <.
615 1992-05-17 Richard Stallman <rms@mole.gnu.ai.mit.edu>
617 * Makefile.in (.c.o): New rule. Use $(DEFS) directly.
618 (CFLAGS): Use just -g by default.
619 (CDEBUG): Variable deleted.
621 1992-05-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
623 * src/reader.c (copy_guard): Fix typo skipping comment.
625 1992-05-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
629 * src/getargs.c (getargs): Change '0' to 0 in case for long
632 1992-04-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
634 * src/reader.c (packsymbols): Handle -p when declaring yylval.
636 1992-04-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
638 * src/output.c (output_gram): Output #endif properly at end of
641 1992-03-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
645 * Makefile.in (clean): Don't delete configuration files or TAGS.
646 (distclean): New target; do delete those.
648 1992-03-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
650 * src/output.c (output_gram): Conditionalize yyprhs on YYDEBUG.
652 * src/LR0.c (augment_automaton): If copying sp->shifts to insert
653 new shift, handle case of inserting at end.
655 1992-03-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
657 * src/lex.c (skip_white_space): Handle C++ comments.
658 * src/reader.c (copy_definition, parse_union_decl, copy_guard):
659 (copy_action): Likewise.
661 1992-03-08 Richard Stallman <rms@mole.gnu.ai.mit.edu>
663 * src/bison.simple (YYPOPSTACK): Fix typo.
665 1992-02-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
667 * Makefile.in (install): Install bison.info* files one by one.
669 1992-02-28 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
671 * src/bison.1: Document long options as starting with `--', not
674 1992-02-01 Richard Stallman <rms@mole.gnu.ai.mit.edu>
676 * src/getargs.c (getargs): Accept value 0 from getopt_long.
678 1992-01-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
680 * Makefile.in (mostlyclean): Renamed from `clean'.
681 (clean): Renamed from 'distclean'. Dep on mostlyclean, not
683 (realclean): Dep on clean.
685 1992-01-27 Richard Stallman <rms@mole.gnu.ai.mit.edu>
687 * src/bison.simple: Use malloc, not xmalloc, and handle failure
690 1992-01-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
692 * src/conflicts.c (total_conflicts): Delete unused arg to fprintf.
694 1992-01-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
698 1992-01-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
700 * Makefile (distclean): Depend on clean, not realclean. Don't rm
702 (realclean): rm TAGS here.
704 * src/symtab.c (free_symtab): Don't free the type names.
706 1991-12-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
708 * src/machine.h: MSDOS has 32-bit ints if __GO32__.
710 1991-12-25 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
712 * src/bison.simple [_AIX]: Indent `#pragma alloca', so old C
713 compilers don't choke on it.
715 1991-12-23 Richard Stallman <rms@mole.gnu.ai.mit.edu>
717 * src/getopt.c, src/getopt1.c, src/getopt.h: Link them to standard
719 * src/alloca.c: Likewise.
720 * Makefile.in (dist): Copy those files from current dir.
722 * src/getargs.c: Update usage message.
724 * src/LR0.c (augment_automaton): Put new shift in proper order.
726 1991-12-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
728 * src/conflicts.c: Use memcpy if ANSI C library.
730 * src/closure.c (set_fderives): Delete redundant assignment to
733 * src/closure.c (print_firsts): Fix bounds and offset checking
736 * src/closure.c (tags): Declare just once at start of file.
738 * src/LR0.c (allocate_itemsets): Eliminate unused var max.
739 (augment_automaton): Test sp is non-null.
741 * src/lalr.c (initialize_LA): Make the vectors at least 1 element
744 * src/reader.c (readgram): Remove separate YYSTYPE default for
747 1991-12-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
749 * src/print.c (print_grammar): Don't print disabled rules.
751 1991-12-17 Richard Stallman <rms@mole.gnu.ai.mit.edu>
753 * src/lex.c (lex): Parse hex escapes properly.
754 Handle \v when filling token_buffer.
756 * src/lex.c: Include new.h.
757 (token_buffer): Change to a pointer.
758 (init_lex): Allocate initial buffer.
759 (grow_token_buffer): New function.
760 (lex, parse_percent_token): Use that.
762 * src/reader.c (read_declarations): Call open_extra_files just
764 (parse_token_decl): Don't free previous typename value. Don't
765 increment nvars if symbol is already a nonterminal.
766 (parse_union_decl): Catch unmatched close-brace.
767 (parse_expect_decl): Null-terminate buffer.
768 (copy_guard): Set brace_flag for {, not for }.
770 * src/reader.c: Fix %% in calls to fatal.
772 * src/reader.c (token_buffer): Just one extern decl, at top level.
775 * src/symtab.c (free_symtab): Free type_name fields. Free symtab
778 1991-11-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
780 * src/bison.simple: Handle alloca for AIX.
782 * Makefile.in (mandir): Compute default using manext.
784 1991-11-02 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
786 * Update all files to GPL version 2.
788 1991-09-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
790 * src/bison.simple (__yy_bcopy): Use builtin if GCC version 2.
792 1991-08-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
794 * src/reader.c (parse_assoc_decl): Error if same symbol gets two
797 1991-08-26 David J. MacKenzie <djm@pogo.gnu.ai.mit.edu>
799 * Makefile.in, configure: Only put $< in Makefile if using VPATH,
800 because older makes don't understand it.
802 1991-08-23 David J. MacKenzie <djm@apple-gunkies>
804 * src/conflicts.c [_AIX]: #pragma alloca.
805 * src/reduce.c: Don't define TRUE and FALSE if already defined.
807 1991-08-12 Richard Stallman <rms@mole.gnu.ai.mit.edu>
809 * Makefile.in: Add deps on system.h.
810 (install): Add some deps.
812 1991-08-02 David J. MacKenzie <djm@apple-gunkies>
814 * Makefile.in (dist): Include texinfo.tex.
816 * configure: Create config.status. Remove it and Makefile if
817 interrupted while creating them.
819 1991-08-01 David J. MacKenzie <djm@apple-gunkies>
821 * configure: Check for +srcdir etc. arg and look for
822 Makefile.in in that directory. Set VPATH if srcdir is not `.'.
823 * Makefile.in (prefix): Renamed from DESTDIR.
825 1991-07-31 Richard Stallman <rms@mole.gnu.ai.mit.edu>
827 * src/print.c (print_grammar): Make output prettier. Break lines.
829 1991-07-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
831 * src/print.c (print_grammar): New function.
832 (verbose): Call it instead of printing token names here.
834 1991-07-22 Richard Stallman <rms@mole.gnu.ai.mit.edu>
836 * src/vmsgetargs.c (spec_name_prefix, spec_file_prefix): Define
839 1991-07-10 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
841 * configure, Makefile.in: $(INSTALLPROG) -> $(INSTALL),
842 $(INSTALLTEXT) -> $(INSTALLDATA).
844 1991-07-09 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
846 * src/bison.simple: Don't include malloc.h if __TURBOC__.
848 1991-07-06 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
850 * Replace Makefile with configure and Makefile.in. Update README
851 with current compilation instructions.
853 1991-07-01 Richard Stallman <rms@mole.gnu.ai.mit.edu>
855 * src/reader.c (reader): Make the output define YYBISON.
857 1991-06-20 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
859 * Makefile (MANDIR, MANEXT): Install man page in
860 /usr/local/man/man1/bison.1 by default, instead of
861 /usr/man/manl/bison.l, for consistency with other GNU programs.
862 * Makefile: Rename BINDIR et al. to lowercase to conform to
863 GNU coding standards.
864 (install): Make man page non-executable.
866 1991-05-31 Richard Stallman <rms@mole.gnu.ai.mit.edu>
868 * Makefile (bison.info): New target.
869 (realclean): New target.
871 1991-05-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
873 * src/bison.simple: Use YYPRINT to print a token, if it's defined.
875 1991-04-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
877 * src/lalr.c (transpose): Rename R to R_arg.
878 (initialize_LA): Avoid shadowing variable j.
880 * src/reader.c (packsymbols): Avoid shadowing variable i.
882 * src/files.c: Declare exit and perror.
884 * src/machine.h: Define MAXSHORT and MINSHORT for the eta-10.
886 1991-04-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
888 * src/allocate.c (mallocate): Always allocate at least one byte.
890 1991-03-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
892 * Makefile (dist): Put alloca.c into distribution.
894 1991-03-06 Richard Stallman <rms@mole.ai.mit.edu>
896 * src/print.c (print_actions): Nicer output for final states.
898 1991-02-21 Richard Stallman <rms@mole.ai.mit.edu>
900 * src/output.c (output_rule_data): Break lines in yytline based on
903 1991-02-07 Richard Stallman <rms@mole.ai.mit.edu>
905 * src/bison.simple (yyparse): Move decl of yylsa before use.
907 1991-01-15 Richard Stallman <rms@mole.ai.mit.edu>
911 * src/output.c (output_rule_data): Handle NULL in tags[i].
913 1991-01-11 Richard Stallman <rms@mole.ai.mit.edu>
915 * src/bison.simple: On MSDOS, include malloc.h.
917 1990-12-29 David J. MacKenzie <djm@wookumz.ai.mit.edu>
919 * src/files.c: Use `mallocate' instead of `xmalloc' so no extra
922 1990-12-19 Richard Stallman <rms@mole.ai.mit.edu>
924 * src/reader.c (readgram): Alternate YYSTYPE defn for MSDOS.
925 * src/files.c [MSDOS]: Declare xmalloc.
927 1990-12-13 Richard Stallman <rms@mole.ai.mit.edu>
929 * src/output.c (output_rule_data): Put all symbols in yytname.
931 * src/bison.simple (yyparse): Delete extra fprintf arg
932 when printing a result of reduction.
934 1990-12-10 Richard Stallman <rms@mole.ai.mit.edu>
936 * src/reader.c (packsymbols): Don't declare yylval if pure_parser.
938 1990-10-30 Richard Stallman <rms@mole.ai.mit.edu>
942 * src/LR0.c (augment_automaton): Fix bugs adding sp2 to chain of
945 1990-10-23 Richard Stallman <rms@mole.ai.mit.edu>
947 * src/bison.simple: Don't define alloca if already defined.
949 1990-10-21 Richard Stallman <rms@mole.ai.mit.edu>
951 * src/getopt.c: On VMS, use string.h.
953 * src/main.c (main): Return type int.
955 1990-09-10 Richard Stallman <rms@mole.ai.mit.edu>
957 * src/output.c (output_headers): Output macro defs for -p.
959 * src/reader.c (readgram): Handle consecutive actions.
961 * src/getargs.c (getargs): Rename -a to -p.
962 * src/files.c (openfiles): Change names used for -b.
964 1990-08-27 Richard Stallman <rms@mole.ai.mit.edu>
966 * src/reduce.c (reduce_grammar_tables): Don't map rlhs of disabled
969 1990-08-26 Richard Stallman <rms@mole.ai.mit.edu>
971 * src/closure.c (print_firsts, print_fderives): Use BITISSET to
974 1990-08-23 Richard Stallman <rms@mole.ai.mit.edu>
976 * src/closure.c (print_firsts): vrowsize => varsetsize.
977 (print_fderives): rrowsize => rulesetsize.
979 1990-08-10 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
981 * src/bison.simple (alloca): Don't define if already defined.
982 (__yy_bcopy): Alternate definition for C++.
984 1990-07-11 David J. MacKenzie <djm@albert.ai.mit.edu>
986 * src/getargs.c (getargs): Mention +yacc in usage message.
988 1990-07-10 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
990 * src/reader.c (parse_token_decl, copy_action): Set
991 value_components_used if appropriate.
992 (readgram): Inhibit output of YYSTYPE definition in that case.
994 1990-06-30 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
996 * src/output.c (output_parser): Define YYPURE if pure, and not
997 otherwise. Don't define YYIMPURE.
998 * src/bison.simple: Adjust conditionals accordingly.
999 * src/bison.simple (YYLEX): If locations not in use, don't pass
1002 1990-06-28 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1004 * src/getargs.c (longopts): Add `yacc'.
1006 1990-06-28 David J. MacKenzie <djm@apple-gunkies>
1008 * src/getargs.c (getargs): Add long options.
1009 * Makefile: Link with getopt1.o and add getopt1.c and getopt.h to
1012 * Move version number and description back into version.c from
1013 Makefile and getargs.c.
1014 * Makefile (dist): Extract version number from version.c.
1016 1990-06-26 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1018 * src/output.c (output): Always call output_gram.
1019 * src/bison.simple (yyparse): Print rhs and lhs symbols of
1022 1990-06-21 David J. MacKenzie <djm@albert.ai.mit.edu>
1024 * src/main.c: New global var `program_name' to hold argv[0] for
1026 * src/allocate.c, src/files.c, src/getargs.c, src/reader.c: Use
1027 `program_name' in messages instead of hardcoded "bison".
1029 1990-06-20 David J. MacKenzie <djm@albert.ai.mit.edu>
1031 * Makefile: Specify Bison version here. Add rule to pass it to
1032 version.c. Encode it in distribution directory and tar file names.
1033 * src/version.c: Use version number from Makefile.
1034 * src/getargs.c (getargs): Print additional text that used to be
1035 part of version_string in version.c. Use -V instead of -version
1036 to print Bison version info. Print a usage message and exit if
1037 given an invalid option.
1039 1990-06-19 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1041 * src/bison.simple: Fix a #line.
1043 * Makefile (INSTALL): New parameter.
1044 (install): Use that.
1045 (CFLAGS): Move definition to top.
1047 1990-06-17 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1049 * src/reader.c (parse_type_decl): Ignore semicolon.
1050 Remove excess % from error messages.
1052 1990-06-16 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1056 * Makefile (install): Ensure installed files readable.
1058 Tue Jun 12 12:50:56 EDT 1990 Jay Fenlason <hack@ai.mit.edu>
1060 * src/getargs.c: Declare spec_file_prefix
1062 * src/lex.c (lex): \a is '\007' instead of '007'
1064 * src/reader.c: include machine.h
1066 * src/files.h: Declare extern spec_name_prefix.
1068 Trivial patch from Thorsten Ohl <td12@ddagsi3.bitnet>
1070 1990-05-31 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1074 * src/bison.simple (YYBACKUP, YYRECOVERING): New macros.
1075 (YYINITDEPTH): This is what used to be YYMAXDEPTH.
1076 (YYMAXDEPTH): This is what used to be YYMAXLIMIT.
1077 If the value is 0, use the default instead.
1078 (yyparse): Return 2 on stack overflow.
1080 1990-05-30 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1082 * src/bison.simple (YYERROR): Jump to new label; don't print error
1084 (yyparse): Define label yyerrlab1.
1086 1990-05-16 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1088 * src/files.c (openfiles): Support -b.
1089 * src/getargs.c (getargs): Likewise.
1091 * src/reader.c (readgram): Error if too many symbols.
1093 * src/lex.c (lex): Handle \a. Make error msgs more reliable.
1094 * src/reader.c (read_declarations): Make error msgs more reliable.
1096 1990-05-13 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1100 * src/reduce.c (reduce_grammar_tables): Fix backward test.
1102 1990-05-12 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1104 * Makefile (bison-dist.*): Rename targets and files to bison.*.
1105 (bison.tar): Make tar file to unpack into subdirectory named `bison'.
1107 1990-04-30 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1109 * src/reduce.c (reduce_grammar_tables): Set rlhs to -1 for useless
1111 * src/nullable.c (set_nullable): Ignore those rules.
1112 * src/derives.c (set_derives): Likewise.
1114 1990-04-23 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1116 * src/bison.simple (yyparse): Mention rule number as well as line
1119 1990-03-29 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1121 * src/bison.simple (__yy_bcopy): New function.
1122 (yyparse): Use that, not bcopy.
1124 1990-03-28 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1126 * src/print.c (print_actions): Don't alter i and j spuriously when
1129 1990-03-12 Jim Kingdon <kingdon@pogo.ai.mit.edu>
1131 * src/bison.simple [__GNUC__]: Use builtin_alloca.
1133 1990-03-07 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1135 * Makefile (install): Use mergedir.awk to process bison.simple
1138 * src/bison.simple (yyparse): New feature to include possible valid
1139 tokens in parse error message.
1141 1990-03-03 Richard Stallman <rms@geech>
1145 1990-02-26 Jim Kingdon <kingdon@pogo.ai.mit.edu>
1147 * src/print.c (print_actions)
1148 * src/conflicts.c (print_reductions): Change "shift %d" to
1149 "shift, and go to state %d" and "reduce %d" to "reduce using rule %d"
1150 and "goto %d" to "go to state %d".
1151 * src/print.c (print_core): Change "(%d)" to "(rule %d)".
1153 1990-02-20 Jay Fenlason <hack@wookumz.ai.mit.edu>
1155 * src/bison.simple: Comment out unused yyresume: label.
1157 1990-02-09 Jay Fenlason <hack@wookumz.ai.mit.edu>
1159 * src/bison.simple : surround all declarations and (remaining)
1160 uses of yyls* and yylloc with #ifdef YYLSP_NEEDED This will
1161 significantly cut down on stack usage, and gets rid of
1162 unused-variable msgs from GCC.
1164 1990-01-31 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1166 * src/files.c (done) [VMS]: Don't delete files that weren't used.
1167 [VMS]: Let user override XPFILE and XPFILE1.
1169 1990-01-03 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1173 1989-12-16 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1175 * src/gram.c (dummy): New function.
1177 * src/reader.c (readgram): Detect error if two consec actions.
1179 1989-11-15 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1181 * src/reduce.c (reduce_grammar_tables): Update rline like other
1184 * Makefile (install): Install the man page.
1186 1989-11-11 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1188 * src/output.c (output_rule_data): Write #if YYDEBUG around yyrline.
1190 1989-10-18 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1194 * src/vmsgetargs.c (getargs): Downcase specified output file name.
1196 1989-10-13 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1198 * src/reader.c (readgram): Warn if there is no default to use for
1199 $$ and one is needed.
1201 1989-09-29 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1205 * src/vmsgetargs.h (getargs): Process outfile option.
1207 1989-09-08 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1211 * src/reader.c (parse_union_decl): Count newlines even in
1214 1989-09-06 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1216 * src/files.c (openfiles): short_base_length was always ==
1219 1989-08-24 Richard Stallman <rms@apple-gunkies.ai.mit.edu>
1223 * src/files.c (openfiles): Write output into same dir as input, by
1226 1989-08-23 Jay Fenlason <hack@gnu>
1228 * Makefile: Include system.h in bison-dist.tar
1230 1989-08-15 Richard Stallman <rms@hobbes.ai.mit.edu>
1234 * src/reader.c (reader): Output LTYPESTR to fdefines
1235 only after reading the grammar.
1237 1989-08-06 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1239 * src/reader.c (read_declarations): Put space before comment
1240 to avoid bug in Green Hills C compiler.
1242 1989-06-19 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1244 * src/allocate.c (xmalloc): New function.
1246 1989-06-16 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1248 * src/build.com: Compile and link reduce.c.
1250 1989-06-09 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1252 * src/reduce.c (reduce_grammar_tables): Adjust start_symbol when
1255 1989-05-27 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1257 * src/reader.c (copy_definition, copy_guard): Don't object to
1258 \-newline inside strings.
1260 1989-05-22 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1262 * src/files.c (openfiles): Alternate file names for MSDOS.
1263 (open_extra_files): Likewise.
1264 (done): On MSDOS, unlink temp files here, not in openfiles.
1266 * src/machine.h (BITS_PER_WORD): 16 on MSDOS.
1267 (MAXTABLE): Now defined in this file.
1269 * src/system.h: New file includes system-dependent headers.
1270 All relevant .c files include it.
1272 1989-04-27 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1274 * src/version.c: Version 1.01.
1276 1989-04-18 Randall Smith <randy@apple-gunkies.ai.mit.edu>
1278 * src/conflicts.c (total_conflicts): Fixed typo in yacc style
1279 output; mention conflicts if > 0.
1281 1989-04-15 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1283 * src/reader.c (packsymbols): Start new symbols after 256.
1285 1989-04-12 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1287 * src/reader.c (reader): Always assign code 256 to `error' token.
1288 Always set `translations' to 1 so this code gets handled.
1289 * src/bison.simple (YYERRCODE): Define it.
1291 1989-04-11 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1293 * src/conflicts.c: If GNU C, use builtin alloca.
1295 * Makefile (install): Delete parser files before copying them.
1297 1989-03-30 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1299 * src/getargs.c (getargs): Turn off checking of name Bison was
1302 * Makefile (dist): Include ChangeLog in distrib.
1304 1989-03-23 Jay Fenlason <hack@apple-gunkies.ai.mit.edu>
1306 * src/LR0.c src/closure.c src/conflicts.c src/derives.c
1307 src/files.c src/getargs.c src/lalr.c src/lex.c src/main.c
1308 src/nullable.c src/output.c src/print.c src/reader.c src/reduce.c
1309 src/symtab.c src/warshall.c: A first pass at getting gcc -Wall to
1310 shut up. Mostly declared functions as void, etc.
1312 * src/reduce.c moved 'extern int fixed_outfiles;' into print_notices
1315 1989-03-01 Randall Smith <randy@apple-gunkies.ai.mit.edu>
1317 * src/types.h, src/symtab.h, src/state.h, src/new.h,
1318 src/machine.h, src/lex.h, src/gram.h, src/files.h, src/closure.c,
1319 src/vmsgetargs.c, src/warshall.c, src/symtab.c, src/reduce.c,
1320 src/reader.c, src/print.c, src/output.c, src/nullable.c,
1321 src/main.c, src/lex.c, src/lalr.c, src/gram.c, src/getargs.c,
1322 src/files.c, src/derives.c, src/conflicts.c, src/allocate.c,
1323 src/LR0.c, Makefile, src/bison.simple: Changed copyright notices
1324 to be in accord with the new General Public License.
1325 * COPYING: Made a link to the new copying file.
1327 1989-02-22 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1329 * src/new.h (FREE): Alternate definition for __STDC__ avoids error
1330 if `free' returns void.
1332 1989-02-21 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1334 * src/reader.c (read_declarations): Double a `%' in a format string.
1335 (copy_definition, parse_start_decl, parse_token_decl): Likewise.
1336 (parse_type_decl, parse_union_decl, copy_guard, readgram, get_type).
1337 (copy_action): change a `fatal' to `fatals'.
1339 * src/lalr.c (map_goto): Initial high-end of binary search was off
1342 1989-02-18 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1344 * src/bison.simple [sparc]: Include alloca.h.
1346 1989-02-15 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1348 * src/reader.c (packsymbols): Write decl of yylval into .tab.h file.
1350 1989-01-28 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1352 * src/bison.simple: Avoid comments on `#line' lines.
1354 * src/reader.c (LTYPESTR): Rearrange to avoid whitespace after
1357 1989-01-09 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1359 * src/conflicts.c (total_conflicts): if -y, use output syntax
1361 * src/reduce.c (print_notices): likewise.
1363 * src/lex.c (lex): Handle \v, and \x hex escapes.
1365 * src/reader.c (reader): Merge output_ltype into here. Don't
1366 output YYLTYPE definition to .tab.h file unless the @ construct is
1369 * src/bison.simple: Define YYERROR, YYABORT, YYACCEPT here.
1370 * src/reader.c (output_ltype): Don't output them here.
1372 * src/bison.simple: YYDEBUG now should be 0 or 1.
1373 * src/output.c (output): For YYDEBUG, output conditional to define it
1374 only if not previously defined.
1376 1989-01-02 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1378 * src/bison.simple (yyparse) [YYPURE]: Add local yynerrs.
1379 (yydebug): Declare global, but don't initialize, regardless of
1381 (yyparse): Don't declare yydebug here.
1383 1988-12-22 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1385 * src/reduce.c (print_notices): Typo in message.
1387 1988-12-11 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1389 * src/output.c (pack_table): Free only nonzero the elts of froms &
1392 1988-12-08 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1394 * src/gram.c (rprecsym): New vector indicates the %prec symbol for
1396 * src/reader.c (packgram): Allocate it and fill it in.
1397 * src/reduce.c (inaccessable_symbols): Use it to set V1.
1398 * src/reduce.c (print_results): Don't complain about useless token
1401 1988-12-05 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1403 * src/machine.h (RESETBIT, BITISSET): New macros.
1404 (SETBIT, WORDSIZE): Change to use BITS_PER_WORD.
1406 * src/reduce.c: New file, by David Bakin. Reduces the grammar.
1407 * Makefile: Compile it, link it, put it in dist.
1409 * src/main.c (main): Call reduce_grammar (in reduce.c).
1411 1988-11-17 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1413 * src/conflicts.c: Don't declare alloca if including alloca.h.
1415 * src/bison.cld: Define qualifiers `nolines', `debug'.
1416 * src/vmsgetargs.c (getargs): Handle them.
1418 * src/output.c (output_program): Notice `nolinesflag'.
1420 * src/output.c (output_parser): Simplify logic for -l and #line.
1421 Avoid writing EOF char into output.
1423 1988-10-12 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1425 * Implement `-l' option.
1426 * src/getopt.c: Set flag `nolinesflag'.
1427 * src/reader.c (copy_definition, parse_union_decl, copy_guard,
1428 copy_action) Obey that flag; don't generate #line.
1429 * src/output.c (output_parser): Discard #line's when copying the
1432 1988-09-12 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1434 * src/reader.c (copy_guard): Fix brace-counting for
1435 brace-surrounded guard.
1437 1988-09-08 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1439 * src/bison.simple: Correct number in #line command.
1440 (yyparse): Call YYABORT instead of YYERROR, due to last change in
1443 1988-09-05 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1445 * Makefile: New variable LIBS. Alternatives for USG.
1446 * src/conflicts.c [USG]: Define bcopy.
1447 * src/symtab.c [USG]: Include string.h instead of strings.h.
1449 * src/conflicts.c [sparc]: Include alloca.h.
1451 1988-08-02 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1453 * src/reader.c (parse_token_decl): Ignore commas.
1455 1988-06-25 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1457 * src/reader.c (output_ltype): Make YYERROR yacc-compatible (like
1460 1988-06-24 Richard Stallman <rms@sugar-bombs.ai.mit.edu>
1462 * src/getargs.c (getargs): -t sets debugflag.
1463 Eliminate upper case duplicate options.
1464 * src/output.c (output): If debugflag, output `#define YYDEBUG'.
1466 1988-05-26 Richard Stallman <rms@frosted-flakes.ai.mit.edu>
1468 * src/allocate.c (mallocate): New name for `allocate' (which loses
1469 in VMS). Calls changed in LR0.c, conflicts.c, symtab.c, new.h.
1471 * src/getargs.c (getargs): If argv[0] is "yacc", set fixed_outfiles.
1473 1988-05-17 Richard Stallman <rms@frosted-flakes.ai.mit.edu>
1475 * src/conflicts.c: Declare alloca.
1476 * src/reader.c: Declare realloc.
1477 * src/warshall.c (TC): Fix one arithmetic op that was omitted last
1480 1988-05-05 Richard Stallman <rms@frosted-flakes.ai.mit.edu>
1482 * src/bison.simple: Conditionalize most refs to yylsp on
1484 * src/reader.c (copy_guard, copy_action): Notice if `@' is used.
1485 (reader): If it was, output `#define YYLSP_NEEDED'.
1487 1988-04-18 Richard Stallman <rms@rice-krispies.ai.mit.edu>
1489 * src/bison.simple: New variable yynerr counts calls to yyerror.
1491 * src/lex.c (lex, case '='): Update lineno when skipping a newline.
1493 * src/reader.c (parse_expect_decl): ungetc the char that ends the
1494 number; don't read any further. This handles multi-line comments
1495 right and avoids incorrect lineno.
1497 * src/reader.c: Delete duplicate decl of symval.
1499 * src/warshall.c (RTC, TC): Cast ptrs to char *, not unsigned, for