+2003-03-12 Paul Eggert <eggert@twinsun.com>
+
+ * scan-gram.l (YY_USER_INIT): Initialize code_start, too.
+ (<INITIAL><<EOF>>, <SC_PRE_CODE><<EOF>>): Set *loc to the scanner
+ cursor, instead of leaving it undefined. This fixes a bug
+ reported by Tim Van Holder in
+ <http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00023.html>.
+ * tests/input.at (Torturing the Scanner): Test the scanner on
+ an empty input file, which was Tim Van Holder's test case.
+
+ * m4/timevar.m4 (BISON_PREREQ_TIMEVAR): When checking whether
+ <sys/resource.h> can be included, include sys/time.h and
+ sys/times.h first, if available. This works around the SunOS
+ 4.1.4 porting bug reported by Bruce Becker in
+ <http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00018.html>.
+
+ * m4/subpipe.m4 (BISON_PREREQ_SUBPIPE): Don't
+ AC_CHECK_HEADERS([sys/wait.h]), as this interferes with
+ AC_HEADER_SYS_WAIT.
+
+ Merge changes from gnulib. This was prompted because the CVS
+ snapshot didn't build on Solaris 7 due to strnlen problems.
+
+ These changes need to be merged back into gnulib:
+ * lib/hash.c: Include <stdbool.h> unconditionally.
+ * m4/onceonly.m4 (m4_quote): New macro.
+ (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
+ Quote AC_FOREACH variable-expansions properly.
+ The 2003-01-03 obstack.h change also needs merging.
+ {end of changes requiring merging}
+
+ * lib/stdbool.h.in, m4/alloca.m4, m4/dirname.m4, m4/dos.m4,
+ m4/getopt.m4, m4/hash.m4, m4/malloc.m4, m4/memchr.m4,
+ m4/memrchr.m4, m4/obstack.m4, m4/onceonly.m4, m4/quote.m4,
+ m4/quotearg.m4, m4/realloc.m4, m4/stpcpy.m4, m4/strnlen.m4,
+ m4/strtol.m4, m4/strtoul.m4, m4/unlocked-io.m4, m4/xalloc.m4:
+ New files, imported from gnulib.
+ * m4/Makefile.am (EXTRA_DIST): Add the new m4/*.m4 files mentioned
+ above.
+
+ * lib/mbswidth.c, m4/error.m4, m4/mbrtowc.m4, m4/mbswidth.m4,
+ m4/memcmp.m4, m4/prereq.m4, m4/stdbool.m4: Update to current
+ gnulib sources.
+
+ * configure.ac (gl_DIRNAME, gl_GETOPT, gl_HASH, gl_QUOTE, gl_XALLOC):
+ Add.
+ (gl_ERROR): New, replacing jm_PREREQ_ERROR.
+ (gl_FUNC_ALLOCA): New, replacing AC_FUNC_ALLOCA.
+ (gl_FUNC_STPCPY): New, replacing AC_REPLACE_FUNCS(stpcpy).
+ (gl_FUNC_STRNLEN): New, replacing AC_FUNC_STRNLEN.
+ (gl_MBSWIDTH): New, replacing jm_PREREQ_MBSWIDTH.
+ (gl_OBSTACK): New, replacing AC_FUNC_OBSTACK.
+ (gl_QUOTEARG): New, replacing jm_PREREQ_QUOTEARG.
+ (jm_FUNC_GLIBC_UNLOCKED_IO, gl_FUNC_STPCPY, gl_FUNC_STRTOL): New.
+ (jm_FUNC_MALLOC): New, replacing AC_FUNC_MALLOC.
+ (jm_FUNC_REALLOC): New, replacing AC_FUNC_REALLOC.
+ (jm_PREREQ_ARGMATCH): Remove.
+ (AC_REPLACE_FUNCS): Remove memchr, memrchr, stpcpy, strtol, strtoul.
+ * lib/Makefile.am (libbison_a_SOURCES): Add argmatch.c, argmatch.h.
+
+ * src/system.h: Include <stdbool.h> unconditionally.
+
+ * lib/bbitset.h: Include <limits.h> unconditionally. We have been
+ assuming at least C89 in the bitset code for some time now.
+
+2003-03-03 Akim Demaille <akim@epita.fr>
+
+ * ro.po: New.
+
+2003-03-02 Akim Demaille <akim@epita.fr>
+
+ * doc/bison.texinfo (Table of Symbols): Reactivate the
+ documentation for %lex-param, and %parse-param.
+
+2003-03-02 Akim Demaille <akim@epita.fr>
+
+ * data/yacc.c, data/glr.c, data/lal1.cc: Use similar code to
+ generate verbose error messages.
+ Use the number of tokens as an upper bound in yytname, as it
+ cannot be a non terminal.
+
+2003-03-02 Akim Demaille <akim@epita.fr>
+
+ * tests/regression.at (_AT_DATA_DANCER_Y): Fix the expected error
+ message.
+
+2003-03-02 Akim Demaille <akim@epita.fr>
+
+ * tests/regression.at (_AT_DATA_DANCER_Y, AT_CHECK_DANCER): New.
+ Use them to exercise yycheck overrun.
+ Based on Andrew Suffield's grammar.
+
+2003-03-02 Akim Demaille <akim@epita.fr>
+
+ Create tests/local.at for Bison generic testing macros.
+
+ * tests/calc.at (AT_CHECK_PUSHDEFS, AT_CHECK_POPDEFS): Move to...
+ * tests/local.at (AT_BISON_OPTION_PUSHDEFS, AT_BISON_OPTION_POPDEFS):
+ This new file.
+ * tests/calc.at (AT_CHECK_CALC): Adjust.
+ * tests/testsuite.at (AT_DATA_GRAMMAR_PROLOGUE, AT_DATA_GRAMMAR)
+ (AT_COMPILE, AT_COMPILE_CXX, AT_PARSER_CHECK): Move to...
+ * tests/local.at: here.
+ (AT_COMPILE_CXX): Tags the tests using it as c++.
+ Ignore the test if CXX is not functional.
+
+2003-03-01 Paul Eggert <eggert@twinsun.com>
+
+ * src/scan-gram.l (code_start): Initialize it to scanner_cursor,
+ not loc->end, since loc->end might contain garbage and this leads
+ to undefined behavior on some platforms.
+ (id_loc, token_start): Use (IF_LINTed) initial values that do not
+ depend on *loc, so that the reader doesn't give the the false
+ impression that *loc is initialized.
+ (<INITIAL>"%%"): Do not bother setting code_start, since its value
+ does not survive the return.
+
+2003-03-01 Akim Demaille <akim@epita.fr>
+
+ * src/scan-gram.l (code_start): Always initialize it when entering
+ into yylex, as SC_EPILOGUE is activated *before* the corresponding
+ yylex invocation. An alternative would be making it static, but
+ then it starts with the second %%'s beginning, instead of its end.
+
+2003-02-28 Paul Eggert <eggert@twinsun.com>
+
+ * lib/mbswidth.c: Include <wchar.h> before "mbswidth.h", to work
+ around a UnixWare 7.1.1 porting bug reported by John Hughes in
+ <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html>.
+
+2003-02-26 Paul Eggert <eggert@twinsun.com>
+
+ * README: Mention compiler bug in Sun Forte Developer 6 update 2.
+ Remove Sequent/Pyramid discussion (nobody uses them any more).
+ Merge VMS and MS-DOS discussion; these ports may well be dead
+ but let's keep mentioning them for now. Put <> around email
+ addresses. Add copyright notice.
+
+2003-02-24 Paul Eggert <eggert@twinsun.com>
+
+ * data/glr.c (yy_reduce_print): yylineno -> yylno,
+ to avoid collision with flex use of yylineno.
+ Problem reported by Bruce Lilly in
+ <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00016.html>.
+ * data/lalr1.cc (yy::]b4_parser_class_name[::parse): Likewise.
+ * data/yacc.c (yy_reduce_print): Likewise.
+
+ * config/depcomp: Sync with Automake 1.7.3.
+
+2003-02-21 Akim Demaille <akim@epita.fr>
+
+ * data/lalr1.cc: Use temporary variables instead of casts to
+ change integer types.
+ Suggested by Paul Eggert.
+
+2003-02-21 Akim Demaille <akim@epita.fr>
+
+ * doc/bison.texinfo: Use "location" consistently to refer to @n,
+ to avoid confusions with lalr1.cc's notion of Position.
+ Suggested by Paul Eggert.
+
+2003-02-20 Akim Demaille <akim@epita.fr>
+
+ * data/lalr1.cc (position.hh): Make sure "columns" never pushes
+ before initial_columns.
+ (location.hh): Use consistent variable names when defining the
+ operator<<.
+ Use "last" so that we subtract from Positions, not from unsigned.
+
+2003-02-20 Akim Demaille <akim@epita.fr>
+
+ * data/lalr1.cc (position.hh): New subfile, including the extended
+ and Doxygen'ed documentation of class Position.
+ (location.hh): Use it.
+ Document a` la Doxygen.
+ With the help of Benoit Perrot.
+
+2003-02-20 Akim Demaille <akim@epita.fr>
+
+ * tests/calc.at (AT_CHECK_PUSHDEFS, AT_CHECK_POPDEFS): Define
+ AT_YACC_IF.
+ Redefine AT_YYERROR_SEES_LOC_IF using it.
+ (_AT_DATA_CALC_Y): Don't declare yyerror when lalr1.cc, as it is
+ not defined.
+ Don't use the location in yy::Parser::error_ and
+ yy::Parser::print_ when not %locations.
+ Activate more lalr1.cc tests.
+
+2003-02-19 Akim Demaille <akim@epita.fr>
+
+ * data/lalr1.cc: When displaying a line number, be sure to make it
+ an int.
+
+2003-02-19 Akim Demaille <akim@epita.fr>
+
+ * data/lalr1.cc (b4_stack_depth_init, yy::Parser::initdepth_):
+ Remove, useless.
+ (YYABORT, YYACCEPT, YYERROR): New.
+ * tests/calc.at: Renable the lalr1.cc test.
+
2003-02-19 Akim Demaille <akim@epita.fr>
* tests/calc.at (AT_CHECK_CALC): Check different scenarios of
these CPP macros with the m4 macros new defined by...
(AT_CHECK_PUSHDEFS): this, i.e.:
(AT_LALR1_CC_IF, AT_PURE_LEX_IF, AT_LOC, AT_VAL, AT_LEX_FORMALS)
- (AT_LEX_ARGS, AT_USE_LEX_ARGS, AT_LEX_PRE_FORMALSm AT_LEX_PRE_ARGS)
+ (AT_LEX_ARGS, AT_USE_LEX_ARGS, AT_LEX_PRE_FORMALS, AT_LEX_PRE_ARGS)
New macros.
(AT_CHECK_POPDEFS): Undefine them.
(AT_CHECK_CALC_LALR1_CC): New.
* tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
its argument.
- Reported by Peter Hámorský.
+ Reported by Peter Hamorsky.
2001-12-05 Akim Demaille <akim@epita.fr>