Peter Klein <[EMAIL PROTECTED]> writes: > enclosed I send you the man page for strtol (see attachement).
Ah. Apparently I misunderstood you. I thought you said SunOS 4.1.4 had strtoul but lacked strtol. But it appears that the reverse is true, and that it has strtol but it does not have strtoul. Is that correct? >>>>#ifdef sunos4 >>>>static char * >>>>private_strerror (int errnum) >> >>Instead of doing this, I'd rather leave the mainstream code alone, and >>add the gnulib strerror module (which implements strerror). > > The result seams to be the same! Sorry, I don't understand what you mean. Could you please try this test snapshot? http://www.cs.ucla.edu/~eggert/bison/bison-2.1a_sunos4.1.4test.tar.gz It addresses the issues you raised, but I can't test whether my fixes suffice for SunOS 4.1.4. Please make sure you have a working version of GNU m4 1.4.3 in your PATH, and then unpack the above-mentioned distribution and type these commands: cd bison-2.1a ./configure make make check and email the output to <[email protected]>. The sooner the better, since we want to generate a new release soon. Thanks. For the record, here are the changes embodied in this test snapshot. I haven't checked them in. Index: bootstrap =================================================================== RCS file: /cvsroot/bison/bison/bootstrap,v retrieving revision 1.28 diff -p -u -r1.28 bootstrap --- bootstrap 27 Sep 2005 06:08:27 -0000 1.28 +++ bootstrap 27 Sep 2005 06:21:22 -0000 @@ -108,6 +108,8 @@ quotearg stdbool stdio-safer stpcpy +strerror +strtoul unistd-safer verify xalloc Index: lib/.cvsignore =================================================================== RCS file: /cvsroot/bison/bison/lib/.cvsignore,v retrieving revision 1.16 diff -p -u -r1.16 .cvsignore --- lib/.cvsignore 27 Sep 2005 06:08:27 -0000 1.16 +++ lib/.cvsignore 27 Sep 2005 06:21:22 -0000 @@ -46,11 +46,14 @@ stpcpy.c stpcpy.h strdup.c strdup.h +strerror.c stripslash.c strndup.c strndup.h strnlen.c strnlen.h +strtol.c +strtoul.c unistd--.h unistd-safer.h unlocked-io.h Index: m4/.cvsignore =================================================================== RCS file: /cvsroot/bison/bison/m4/.cvsignore,v retrieving revision 1.13 diff -p -u -r1.13 .cvsignore --- m4/.cvsignore 22 Aug 2005 06:38:59 -0000 1.13 +++ m4/.cvsignore 27 Sep 2005 06:21:22 -0000 @@ -24,9 +24,12 @@ stdbool.m4 stdio-safer.m4 stpcpy.m4 strdup.m4 +strerror.m4 strerror_r.m4 strndup.m4 strnlen.m4 +strtol.m4 +strtoul.m4 unistd-safer.m4 unlocked-io.m4 xalloc.m4
