strtod touchups.
[gnulib.git] / ChangeLog
index fe72f6f..5225d25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,211 @@
+2008-03-30  Eric Blake  <ebb9@byu.net>
+
+       strtod touchups.
+       * lib/strtod.c (strtod): Avoid compiler warnings.
+       Reported by Jim Meyering.
+
+2008-03-30  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
+       * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
+       * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
+       * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
+       * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
+       * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
+       * modules/xvasprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/vsprintf.c (EOVERFLOW): Remove fallback.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
+
+       * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/vsnprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/vfprintf.c (EOVERFLOW): Remove fallback.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
+
+       * lib/vasprintf.c (EOVERFLOW): Remove fallback.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/vasprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
+       * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+       * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
+       (Depends-on): Add EOVERFLOW.
+
+       * lib/sprintf.c (EOVERFLOW): Remove fallback.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
+
+       * lib/snprintf.c (EOVERFLOW): Remove fallback.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/snprintf (Depends-on): Add EOVERFLOW.
+
+       * lib/poll.c (EOVERFLOW): Remove fallback.
+       * modules/poll (Depends-on): Add EOVERFLOW.
+
+       * lib/getugroups.c (EOVERFLOW): Remove fallback.
+       * modules/getugroups (Depends-on): Add EOVERFLOW.
+
+       * lib/getdelim.c (EOVERFLOW): Remove fallback.
+       * modules/getdelim (Depends-on): Add EOVERFLOW.
+
+       * lib/ftell.c (EOVERFLOW): Remove fallback.
+       * modules/ftell (Depends-on): Add EOVERFLOW.
+
+       * lib/fprintf.c (EOVERFLOW): Remove fallback.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
+       * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
+
+       * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
+
+       * modules/EOVERFLOW-tests: New file.
+       * tests/test-EOVERFLOW.c: New file.
+
+       * modules/EOVERFLOW: New file.
+       * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
+
+2008-03-30  Bruno Haible  <bruno@clisp.org>
+
+       Fix bug introduced on 2007-06-10.
+       * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
+       spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
+
+2008-03-30  Bruno Haible  <bruno@clisp.org>
+
+       Improve freadseek's efficiency after ungetc.
+       * lib/freadseek.c: Include freadahead.h.
+       (freadptrinc): New function, extracted from freadseek.
+       (freadseek): Use it in a loop. Use freadahead to determine the number
+       of loop iterations.
+       * modules/freadseek (Depends-on): Add freadahead.
+       (configure.ac): Require AC_C_INLINE.
+
+2008-03-30  Bruno Haible  <bruno@clisp.org>
+
+       * lib/freadseek.c (freadseek): Don't ignore the return value of
+       freadptr.
+
+2008-03-29  Eric Blake  <ebb9@byu.net>
+
+       Add hex float support.
+       * modules/strtod (Depends-on): Add c-ctype.
+       (Link): Mention POW_LIB.
+       * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
+       whitespace between 'e' and exponent.
+       * tests/test-strtod.c (main): Enable hex float tests.
+       * doc/posix-functions/strtod.texi (strtod): Document what gnulib
+       now provides.
+
+       Document various strtod bugs, with some fixes.
+       * doc/posix-functions/strtod.texi (strtod): Document bugs with
+       "-0x", "inf", "nan", and hex constants.
+       * doc/posix-functions/atof.texi (atof): Likewise.
+       * modules/stdlib (Makefile.am): Support strtod.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
+       * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
+       detect additional strtod bugs.
+       * lib/stdlib.in.h (rpl_strtod): Add declarations.
+       * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
+       bool where appropriate.  Parse 'inf' and 'nan'.
+       * tests/test-strtod.c: New file.
+       * modules/strtod (Depends-on): Add stdbool, stdlib.
+       (configure.ac): Turn on module indicator.
+       * modules/strtod-tests: New module.
+
+2008-03-29  Eric Blake  <ebb9@byu.net>
+
+       Fix ftell on mingw.
+       * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
+       * modules/ftell-tests (Depends-on): Add binary-io.
+       * modules/ftello-tests (Depends-on): Likewise.
+       * tests/test-ftell.c (main): Enhance test to cover behavior after
+       ungetc.  Enforce binary mode.
+       * tests/test-ftello.c (main): Likewise.
+
+       Pass test-freadseek on cygwin.
+       * modules/freadseek (Depends-on): Use freadptr, not freadahead.
+       * lib/freadseek.c (freadseek): Don't increment beyond bounds of
+       ungetc buffer.
+
+       * tests/test-fflush2.c (main): Fix typo.
+
+2008-03-29  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fflush2.c (main): Temporarily disable the contents of
+       this test.
+       * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
+       Reported by Eric Blake.
+
+2008-03-28  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/gc.h (enum Gc_hash): Add GC_SHA224.
+       (GC_SHA224_DIGEST_SIZE): Add.
+
+       * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
+       (gc_hash_digest_length): Likewise.
+       (gc_hash_buffer): Likewise.
+
+2008-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
+       detail which gettext release to use.
+       Reported by Simon Josefsson.
+
+2008-03-26  Jim Meyering  <meyering@redhat.com>
+
+       gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
+       * modules/gnumakefile (clean-GNUmakefile): Also, use
+       test ... && ... || : syntax rather than if-then ... fi.
+
+       gnumakefile: Don't double-quote-expand $(VPATH) value.
+       * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
+
 2008-03-24  Eric Blake  <ebb9@byu.net>
 
        Alter GNUmakefile to install into top directory.
        * doc/gnulib-tool.texi (gettextize and autopoint): New section.
 
 2008-03-23  Eric Blake  <ebb9@byu.net>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        Install files from top/ in the destination directory.
        * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST