Fix bugs in round modules reported by Bruno Haible.
[gnulib.git] / ChangeLog
index 73ac493..d9170af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,161 @@
+2007-10-21  Ben Pfaff  <blp@gnu.org>
+
+       * m4/check-libm-func.m4: Removed.
+       * m4/check-math-lib.m4: New file.
+       * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
+       * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
+       definition and lack of AC_LIBOBJ([roundf]).
+       * m4/roundl.m4: Ditto, and similarly for roundl.
+       * modules/round: Reference new m4 file.
+       * modules/roundf: Ditto.
+       * modules/roundl: Ditto.
+       * tests/test-round2.c (main): Use ROUND instead of round.
+       Bug report from Bruno Haible.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
+       context.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-wcwidth.c (main): Allow negative result for some control
+       characters.
+
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
+       Needed on OSF/1 5.1.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-floorf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-ceilf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-truncf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-roundf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+
+2007-10-21  Eric Blake  <ebb9@byu.net>
+
+       * users.txt: Update URL for m4.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
+       Git's management files if the CVS files are not present.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
+       gcc-3.4.x.
+
+2007-10-20  Ben Pfaff  <blp@gnu.org>
+
+       * lib/math.in.h: Declare round, roundf, roundl if we are providing
+       implementations.
+       * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
+       * lib/round.c: New file.
+       * lib/roundf.c: New file.
+       * lib/roundl.c: New file.
+       * m4/round.m4: New file.
+       * m4/roundf.m4: New file.
+       * m4/roundl.m4: New file.
+       * m4/check-libm-func-m4: New file.
+       * modules/math: Replace round, roundf, roundl related @VARS@ in
+       math.in.h.
+       * modules/round: New file.
+       * modules/round-tests: New file.
+       * modules/roundf: New file.
+       * modules/roundf-tests: New file.
+       * modules/roundl: New file.
+       * modules/roundl-tests: New file.
+       * tests/test-round1.c: New file.
+       * tests/test-round2.c: New file.
+       * tests/test-roundf1.c: New file.
+       * tests/test-roundf2.c: New file.
+       * tests/test-roundl.c: New file.
+       * doc/functions/round.texi: Mention round module.
+       * doc/functions/roundf.texi: Mention roundf module.
+       * doc/functions/roundl.texi: Mention roundl module.
+       * MODULES.html.sh: Mention new modules.
+       Thanks to Bruno Haible for suggestions.
+
+2007-10-20  Jim Meyering  <meyering@redhat.com>
+
+       * lib/xprintf.c: Include <config.h> unconditionally.
+
+       Change xprintf's license to GPL.
+       * modules/xprintf (License): s/LGPL/GPL/, since this module
+       depends on modules (exit and exitfail) which are GPL.
+       Suggestion from Bruno Haible.
+
+       xprintf fixes.
+       * lib/xprintf.c (xprintf, xfprintf): Use va_end.
+       Use a clearer diagnostic.
+       Patch from Bruno Haible.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
+       length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
+       Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-floorf2.c (correct_result_p): Don't rely on excess
+       precision in the comparison result > x - 1 or similar.
+       * tests/test-ceilf2.c (correct_result_p): Likewise.
+       * tests/test-truncf2.c (correct_result_p): Likewise.
+       * tests/test-trunc2.c (correct_result_p): Likewise.
+       Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/ceil: New file.
+       * m4/ceil.m4: New file.
+       * doc/functions/ceil.texi: Mention the 'ceil' module.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/floor: New file.
+       * m4/floor.m4: New file.
+       * doc/functions/floor.texi: Mention the 'floor' module.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
+       of %a.
+       * modules/floorf-tests (Depends-on): Likewise.
+       * modules/truncf-tests (Depends-on): Likewise.
+       * modules/trunc-tests (Depends-on): Likewise.
+       Reported by Ben Pfaff.
+
+2007-10-19  Jim Meyering  <meyering@redhat.com>
+
+       * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
+       Don't bother testing specific errno values.  Just test ferror.
+
+       New module: xprintf
+       * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
+
+2007-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
+       syntax.
+       * modules/javaexec (Makefile.am): Likewise.
+       * modules/relocatable-prog (Makefile.am): Likewise.
+       Suggested by Jim Meyering.
+
+2007-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
+       Reported by Jim Meyering.
+
 2007-10-18  Eric Blake  <ebb9@byu.net>
 
        * modules/filenamecat-tests (Makefile.am): Link against -lintl.
@@ -8,7 +166,7 @@
        the format string into writable memory. Needed in Fortify conditions.
 
 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * lib/trim.c: Include config.h unconditionally. Include trim.h always.
        Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
        * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
 
 2007-10-13  Albert Chin  <china@thewrittenword.com>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
        through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
        * m4/uintmax_t.m4: New file.
        * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
 
-Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-  Free Software Foundation, Inc.
+Copyright (C) 1997-2007 Free Software Foundation, Inc.
 Copying and distribution of this file, with or without modification,
 are permitted provided the copyright notice and this notice are preserved.