* lib/count-one-bits.h: Add comments. (From Bruno Haible.)
[gnulib.git] / ChangeLog
index 94459c7..db8ece6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,278 @@
-2007-07-13  Bruno Haible  <bruno@clisp.org>
+2007-08-14  Ben Pfaff  <blp@gnu.org>
+
+       * lib/count-one-bits.h: Add comments.  From Bruno Haible.
+
+2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
+       given the changes below.
+       (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
+       even on hosts that have padding bits beyond the supported 64.
+
+2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
+       * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
+       xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
+       depends on it.
+       (xstrtol_error): Remove.
+       (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
+       but with a different signature.
+       (ATTRIBUTE_NORETURN, __attribute__): New macros.
+       * lib/xstrtol-error.c: Include exitfail.h.
+       (xstrtol_fatal): New function, with a different signature from the
+       old xstrtol_error, so that the caller need not worry about passing
+       in an exit status, or about storage management of the option argument.
+       (xstrtol_error): Now a static function.  Redo signature to
+       implement xstrtol_fatal.  Output the correct number of hyphens in
+       front of the option so that the caller need not worry about
+       storage management.
+       (N_): New macro.
+       (_): Remove; not used now.
+       * modules/xstrtol: Depend on getopt.
+       * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
+       of old STRTOL_FATAL_ERROR macro.
+       * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
+       of test program.
+       * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
+       * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
+
+2007-08-08  Eric Blake  <ebb9@byu.net>
+
+       * lib/xstrtol-error.c: Add missing include.
+
+       Move xstrtol messages into gnulib domain, when --pobase is used.
+       * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
+       * lib/xstrtol-error.c (xstrtol_error): ...into new file.
+       * modules/xstrtol (Files): Distribute new file.
+       * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
+       * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
+       * tests/test-xstrtol.c: ...into new file.
+       * tests/test-xstrtoul.c: Also test xstrtoul.
+       * tests/test-xstrtoimax.c: Also test xstrtoimax.
+       * tests/test-xstrtoumax.c: Also test xstrtoumax.
+       * tests/test-xstrtol.sh: Drive the tests.
+       * tests/test-xstrtoimax.sh: Likewise.
+       * tests/test-xstrtoumax.sh: Likewise.
+       * modules/xstrtol-tests: New module.
+       * modules/xstrtoimax-tests: Likewise.
+       * modules/xstrtoumax-tests: Likewise.
+
+2007-08-08  Jim Meyering  <jim@meyering.net>
+
+       New function: mfile_name_concat.
+       * lib/filenamecat.c (mfile_name_concat): New function, just like
+       file_name_concat, but return NULL upon failure rather than exiting
+       with a diagnostic.
+       * lib/filenamecat.h: Declare it.
+
+2007-08-07  Bruno Haible  <bruno@clisp.org>
+
+       * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
+       instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
+       warning from gcc.
+       Reported by Eric Blake.
+
+2007-08-07  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
+       * modules/crypto/arcfour (License): Likewise.
+       * modules/crypto/des-tests (License): Likewise.
+       * modules/crypto/gc-arctwo-tests (License): Likewise.
+       * modules/crypto/gc-des-tests (License): Likewise.
+       * modules/crypto/gc-hmac-md5-tests (License): Likewise.
+       * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
+       * modules/crypto/gc-md2-tests (License): Likewise.
+       * modules/crypto/gc-md4-tests (License): Likewise.
+       * modules/crypto/gc-md5-tests (License): Likewise.
+       * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
+       * modules/crypto/gc-rijndael-tests (License): Likewise.
+       * modules/crypto/gc-sha1-tests (License): Likewise.
+       * modules/crypto/gc-tests (License): Likewise.
+       * modules/crypto/hmac-md5 (License): Likewise.
+       * modules/crypto/hmac-sha1 (License): Likewise.
+       * modules/crypto/md2-tests (License): Likewise.
+       * modules/crypto/md4-tests (License): Likewise.
+       * modules/crypto/md5 (License): Likewise.
+       * modules/crypto/rijndael (License): Likewise.
+       * modules/crypto/sha1 (License): Likewise.
+       * modules/memxor (License): Likewise.
+
+2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
+       and Bruno Haible  <bruno@clisp.org>
+
+       * NEWS: Describe interface changes to human, xstrtol.
+       * lib/human.h: Include <xstrtol.h>.
+       (human_options): Return enum strtol_error, not int.  Remove
+       bool arg; take int * instead.
+       * lib/human.c: Don't include "gettext.h".
+       (_): Remove; no longer used.
+       Don't include <xstrtol.h>, since human.h does it.
+       (human_options): Adjust to abovementioned interface changes.
+       Do not report error to stderr; that's now the caller's
+       responsibility.
+       * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
+       interface change.
+       * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
+       Str, Argument_type_string.  All uses changed.  Put " argument"
+       in diagnostics to make them clearer.  Change wording of suffix
+       message for clarity.
+       (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
+       Argument_type_string.
+       (STRTOL_FATAL_WARN): Remove; no longer used.
+       * modules/human (Depends-on): Remove gettext-h.
+
+2007-08-06  Simon Josefsson  <simon@josefsson.org>
+
+       * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
+
+2007-07-31  Bruno Haible  <bruno@clisp.org>
+
+       * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
+       are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
+       Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
+
+2007-07-31  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
+       Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
+
+2007-07-30  Bruno Haible  <bruno@clisp.org>
+
+       * modules/base64 (License): Use the synonymous term "LGPLv2+".
+       * modules/c-ctype (License): Likewise.
+       * modules/c-strcase (License): Likewise.
+       * modules/check-version (License): Likewise.
+       * modules/iconv (License): Likewise.
+       * modules/iconv_open (License): Likewise.
+       * modules/read-file (License): Likewise.
+       * modules/striconv (License): Likewise.
+       * modules/strverscmp (License): Likewise.
+       * modules/vasprintf (License): Likewise.
+       * modules/crypto/des (License): Likewise.
+       * modules/crypto/gc (License): Likewise.
+       * modules/crypto/gc-arcfour (License): Likewise.
+       * modules/crypto/gc-arctwo (License): Likewise.
+       * modules/crypto/gc-des (License): Likewise.
+       * modules/crypto/gc-hmac-md5 (License): Likewise.
+       * modules/crypto/gc-hmac-sha1 (License): Likewise.
+       * modules/crypto/gc-md2 (License): Likewise.
+       * modules/crypto/gc-md4 (License): Likewise.
+       * modules/crypto/gc-md5 (License): Likewise.
+       * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
+       * modules/crypto/gc-random (License): Likewise.
+       * modules/crypto/gc-rijndael (License): Likewise.
+       * modules/crypto/gc-sha1 (License): Likewise.
+       * modules/crypto/md2 (License): Likewise.
+       * modules/crypto/md4 (License): Likewise.
+
+2007-07-30  Jim Meyering  <jim@meyering.net>
+
+       * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
+       set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
+       it has valid stat data.  This bug would cause du not to count the
+       sizes of inaccessible directories.
+       Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
+       in <http://bugzilla.redhat.com/250077>.
+
+2007-07-25  Peter O'Gorman  <peter@pogma.com>
+           Bruno Haible  <bruno@clisp.org>
+
+       * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
+       really works. Needed because AIX 4.3 "xlc -E" doesn't understand
+       #include_next, gives a diagnostic about it, but reports no error in
+       the exit code.
+       Reported by Gary V. Vaughan <gary@thewrittenword.com>.
+
+2007-07-24  Ben Pfaff  <blp@gnu.org>
+
+       Improve name: "count-one-bits" is better than "popcount".
+       * MODULES.html.sh: Update name.
+       * lib/popcount.h: Renamed lib/count-one-bits.h.
+       (popcount): Renamed count_one_bits.
+       (popcountl): Renamed count_one_bits_l.
+       (popcountll): Renamed count_one_bits_ll.
+       * m4/popcount.m4: Renamed m4/count-one-bits.m4.
+       * modules/popcount: Renamed module/count-one-bits.
+       * modules/popcount-tests: Renamed module/count-one-bits-tests.
+       * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
+
+2007-07-23  Ben Pfaff  <blp@gnu.org>
+
+       * lib/popcount.h (popcount32): Reduce size of constants, to allow
+       better code generation, and add U to large constants to avoid
+       warnings, in non-GCC case.
+       Suggested by Bruno Haible.
+
+2007-07-23  Ben Pfaff  <blp@gnu.org>
+
+       * lib/popcount.h: Use verify_true instead of if...abort.
+       * modules/popcount: Depend on verify module.
+       Suggested by Jim Meyering.
+
+2007-07-23  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): Create a .cvsignore file also when the
+       directory is not yet in CVS but the toplevel directory is. When
+       creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
+       Reported by Karl Berry.
+
+2007-07-22  Ben Pfaff  <blp@gnu.org>
+
+       * lib/popcount.h: Use faster, branchless algorithm for non-GCC
+       case.
+       Suggested by Eric Blake.
+
+2007-07-22  Ben Pfaff  <blp@gnu.org>
+
+       New module: popcount.
+       * MODULES.html.sh: Add popcount.
+       * modules/popcount: New file.
+       * modules/popcount-tests: New file.
+       * tests/test-popcount.c: New file.
+       * lib/popcount.h: New file.
+       * m4/popcount.m4: New file.
+
+2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * build-aux/announce-gen: Update to GPLv3.
+
+       * build-aux/config.guess: Update from config.
+
+2007-07-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
+       * lib/verror.c (_) [ENABLE_NLS]: Likewise.
+
+2007-07-20  Jim Meyering  <jim@meyering.net>
+
+       * check-module: Diagnose a self-dependency.
+
+2007-07-19  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): Don't abort if pobase or po_domain is
+       empty.
+       Reported by Eric Blake.
+
+2007-07-18  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool: New options --po-base, --po-domain.
+       (func_usage): Document them.
+       (pobase, po_domain): New variables.
+       (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
+       DEFAULT_TEXT_DOMAIN.
+       (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
+       (func_import): Consider pobase and po_domain. Create a po/ directory.
+       (func_create_testdir): Set pobase and po_domain to empty.
+       * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
+       * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
+
+2007-07-18  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_get_automake_snippet): Synthesize also an
+       EXTRA_DIST augmentation for files in build-aux/.
+
+2007-07-16  Bruno Haible  <bruno@clisp.org>
 
        * modules/lseek (License): Use the synonymous term "LGPLv2+".
        * modules/getdelim (License): Likewise.
        * modules/sprintf-posix (Dependencies): Add stdint.
        * modules/vsprintf-posix (Dependencies): Likewise.
 
-2007-07-01  Bruno Haible <bruno@clisp.org>
+2007-07-01  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
        Windows PATH as well. Conservative double-quoting. Comments.
 
-2007-07-01  Bruno Haible <bruno@clisp.org>
+2007-07-01  Bruno Haible  <bruno@clisp.org>
            Eric Blake  <ebb9@byu.net>
            Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>