]> git.saurik.com Git - bison.git/blobdiff - ChangeLog
(output_skeleton): Use xfclose rather than fclose and ferror. xfclose
[bison.git] / ChangeLog
index f06ec613f15d8c2aa98c903c040a1eec7ec857d6..e2d714b0f99b2965876bdc8fa8c8b299f3e677b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,134 @@
+2002-10-24  Paul Eggert  <eggert@twinsun.com>
+
+       Version 1.75a.
+
+       * tests/calc.at (_AT_DATA_CALC_Y): Remove unused strcat declaration.
+       * tests/cxx-type.at (_AT_TEST_GLR_CALC): Include stdlib.h, since
+       we use malloc.  Don't assume 'A' through 'Z' are contiguous.
+       Don't assume strdup exists; POSIX says its an XSI extension.
+       Check for buffer overflow on input.
+
+2002-10-24  Akim Demaille  <akim@epita.fr>
+
+       * src/output.c (output_skeleton): Don't disable M4sugar comments
+       too soon: it results in comments being expanded.
+       * data/yacc.c, data/glr.c, data/lalr1.cc: Do it right before the
+       first output.
+
+2002-10-24  Akim Demaille  <akim@epita.fr>
+
+       * data/yacc.c (m4_int_type): New.
+       * data/c.m4 (m4_int_type): Don't use yysigned_char, but `signed
+       char' as only yacc.c wants K&R portability.
+       * data/glr.c (yysigned_char): Remove.
+       * data/lalr1.cc: Rename the trailing b4_name as b4_parser_class_name.
+       Reported by Quoc Peyrot.
+
+2002-10-23  Paul Eggert  <eggert@twinsun.com>
+
+       * src/main.c (main): With --trace=time, report times even if a
+       non-fatal error occurs.  Formerly, the times were reported in some
+       such cases but not in others.
+       * src/reader.c (reader): Just return if a complaint has been issued,
+       instead of exiting, so that 'main' can report times.
+
+2002-10-22  Akim Demaille  <akim@epita.fr>
+
+       * src/system.h: Include sys/types.
+       Reported by Bert Deknuydt.
+
+2002-10-23  Paul Eggert  <eggert@twinsun.com>
+
+       * configure.ac (AC_PROG_LEX): Use instead of AM_PROG_LEX.
+       Suggested by Art Haas.
+
+2002-10-22  Paul Eggert  <eggert@twinsun.com>
+
+       * src/complain.c (exit) [! (STDC_HEADERS || _LIBC)]: Remove exit
+       decl; not needed any more.
+       * src/main.c (main): Use return to exit, undoing yesterday's change.
+       The last OS that we could find where this wouldn't work is
+       SunOS 3.5, and that's too old to worry about now.
+
+       * data/glr.c (struct yyltype): Define members even when not
+       doing locations.  This is more consistent with yacc.c, and it
+       works around the following bug reports:
+       http://mail.gnu.org/pipermail/bug-bison/2002-October/001764.html
+       http://mail.gnu.org/pipermail/bug-bison/2002-October/001769.html
+       and I hope it also fixes this bug report:
+       http://mail.gnu.org/pipermail/bug-bison/2002-October/001748.html
+
+       * doc/bison.texinfo: Minor spelling and typographical fixes.  Use
+       @acronym consistently.  Standardize on "Yacc" instead of "YACC",
+       "Algol" instead of "ALGOL".  Give a bit more history about BNF.
+
+2002-10-22  Akim Demaille  <akim@epita.fr>
+
+       * data/README: New.
+
+2002-10-21  Paul Eggert  <eggert@twinsun.com>
+
+       Be consistent about 'bool'; the old code used an enum in one
+       module and an int in another, and this violates the C standard.
+       * m4/stdbool.m4: New file, from coreutils 4.5.3.
+       * configure.ac (AC_HEADER_STDBOOL): Add.
+       * m4/Makefile.am (EXTRA_DIST): Add stdbool.m4.
+       * src/muscle_tab.c (hash_compare_muscles): (a ? FALSE : TRUE) -> (! a)
+       * src/symtab.c (hash_compare_symbol_t): Likewise.
+       * src/system.h (bool, false, true): Use a definition consistent
+       with ../lib/hash.c.  All uses changed.
+
+       * src/complain.c (warning_issued): Renamed from warn_message_count,
+       so that we needn't worry about integer overflow (!).
+       Now of type bool.  All uses changed.
+       (complaint_issued): Renamed from complain_message_count; likewise.
+
+       * src/main.c (main): Use exit to exit with failure.
+
+       * src/complain.c (fatal_at, fatal): Use EXIT_FAILURE and EXIT_SUCCESS
+       rather than 1 and 0.
+       * src/main.c (main): Likewise.
+       * src/getargs.c (getargs): Likewise.
+       * src/reader.c (reader): Likewise.
+
+       * src/getarg.c (getargs): Remove duplicate code for
+       "Try `bison --help'".
+
+       * src/files.c (xfopen, xfclose): Use EXIT_FAILURE rather than 2.
+       What was that "2" for?
+
+       * src/complain.h (fatal, fatal_at): Add __attribute__((__noreturn__)).
+       * src/getargs.c (usage): Likewise.
+
+       * src/getargs.c (getargs): When there are too few operands, report
+       the last one.  When there are too many, report the first extra
+       one.  This is how diffutils does it.
+
+2002-10-20  Paul Eggert  <eggert@twinsun.com>
+
+       Remove K&R vestiges.
+       * configure.ac (AC_C_CONST, AM_C_PROTOTYPES): Remove.
+       * src/complain.c (VA_START): Remove.  Assume prototypes.
+       (vfprintf) [! (HAVE_VPRINTF || defined vfprintf)]: New macro.
+       (private_strerror, warn_at, warn, complain_at, complain, fatal_at,
+       fatal): Assume prototypes.
+       * src/complain.h: Assume prototypes.
+       * src/system.h (PARAMS): Remove.
+       Include <limits.h> unconditionally, since it's guaranteeed even
+       for a freestanding C89 compiler.
+       (SHRT_MIN, SHRT_MAX): Remove, since C89 guarantees them.
+       * src/vmsgetargs.c (getargs, cli_present, cli_get_value): Prototype.
+
+2002-10-20  Akim Demaille  <akim@epita.fr>
+
+       * src/muscle_tab.c (muscle_grow): Remove trailing debugging code.
+       * data/glr.c (YY_USER_FORMALS, YY_USER_ARGS): New.
+       (yyuserAction, yydoAction, yyglrReduce, yyresolveValue)
+       (yyresolveStates, yyresolveAction, yyresolveStack)
+       (yyprocessOneStack): Use them.
+       (yy_reduce_print): New.
+       * tests/calc.at (_AT_DATA_CALC_Y): Exercise %parse-param.
+
 2002-10-20  Akim Demaille  <akim@epita.fr>
 
        * data/c.m4 (b4_c_ansi_args): Recognize functions with no