From: Paul Eggert Date: Thu, 13 Mar 2003 07:13:05 +0000 (+0000) Subject: Fix "Bison blows chunks on empty file" bug. X-Git-Tag: BISON-2_0~354 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/537636c7e5ff0c5bdbdeee4e02d44ac89fd32026 Fix "Bison blows chunks on empty file" bug. Work around SunOS 4.1.4 porting problem with . Don't check for sys/wait.h twice, with two different algorithms. --- diff --git a/ChangeLog b/ChangeLog index 8867d1bc..e8c03c4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,23 @@ 2003-03-12 Paul Eggert + * scan-gram.l (YY_USER_INIT): Initialize code_start, too. + (<>, <>): Set *loc to the scanner + cursor, instead of leaving it undefined. This fixes a bug + reported by Tim Van Holder in + . + * 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 + 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 + . + + * 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.