strtod touchups.
[gnulib.git] / ChangeLog
index a58f637..5225d25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,313 @@
+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.
+       * modules/maintainer-makefile: Split, and add dependency...
+       * modules/gnumakefile: to this new module.
+       * build-aux/GNUmakefile: Move...
+       * top/GNUmakefile: ...here.
+       * build-aux/maint.mk: Move...
+       * top/maint.mk: ...here.
+       * MODULES.html.sh (Support for maintaining...): Document new
+       module.
+
+2008-03-23  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool: New options --vc-files, --no-vc-files.
+       (func_usage): Document them.
+       (vc_files): New variable.
+       (func_import): Consider vc_files.
+       (func_create_testdir): Set vc_files to empty.
+       Suggested by Jim Meyering and Karl Berry.
+
+2008-03-23  Bruno Haible  <bruno@clisp.org>
+
+       Fix regex compilation error on HP-UX 11.
+       * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
+       * modules/regex (Files): Add m4/mbstate_t.m4.
+       Reported by Ton Voon <ton.voon@altinity.com>.
+
+2008-03-23  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib-tool.texi (gettextize and autopoint): New section.
+
+2008-03-23  Eric Blake  <ebb9@byu.net>
+           Bruno Haible  <bruno@clisp.org>
+
+       Install files from top/ in the destination directory.
+       * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
+       augmentation also for the files from top/.
+       (func_import, func_create_testdir): Rewrite file names:
+       top/filename -> filename.
+
+2008-03-23  Bruno Haible  <bruno@clisp.org>
+
+       Tweak "gnulib --version" output.
+       * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
+
+2008-03-23  Bruno Haible  <bruno@clisp.org>
+
+       Tweak "gnulib --version" output.
+       * gnulib-tool (func_version): Use date of last commit to ChangeLog,
+       rather than contents of ChangeLog, when possible.
+
+2008-03-21  Eric Blake  <ebb9@byu.net>
+
+       More --version tweaks.
+       * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
+       date of last ChangeLog entry.
+
+2008-03-21  Jim Meyering  <meyering@redhat.com>
+
+       * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
+
+2008-03-20  Eric Blake  <ebb9@byu.net>
+
+       VPATH fix.
+       * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
+
+2008-03-20  Simon Josefsson  <simon@josefsson.org>
+
+       * build-aux/GNUmakefile: Make git-version-gen optional.  Add
+       _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
+
+2008-03-20  Eric Blake  <ebb9@byu.net>
+
+       Sync GNUmakefile with coreutils.
+       * build-aux/GNUmakefile (have-Makefile): Rename...
+       (_have-Makefile): ...to this, for namespace consideration.
+       (GNUmakefile.cfg): Include, if present.
+       (_autoreconf): Define a default.
+       (_is-dist-target): New rule for rebuilds to pick up intra-release
+       version.
+       (maint-cfg.mk): Rename...
+       (cfg.mk): ...to this.
+
+2008-03-18  Jim Meyering  <meyering@redhat.com>
+
+       New script and module: mktempd
+       * MODULES.html.sh (maint+release support): Add mktempd.
+       * build-aux/mktempd: New file.
+       * modules/mktempd: New file.
+
+2008-03-15  Jim Meyering  <meyering@redhat.com>
+
+       Undo last change.
+       * lib/sha1.c, lib/md5.c: 63 != ~63.
+       Reported by Andreas Schwab.
+
+       sha1.c, md5.c: Hoist a redundant expression.
+       * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
+       "ctx->buflen" only once, before calling *_process_block.
+       * lib/md5.c (md5_process_bytes): Likewise.
+
 2008-03-14  Eric Blake  <ebb9@byu.net>
 
        Bump copyright year in files generated by gnulib-tool.