unistr/u8-strchr: Optimize ASCII argument case.
[gnulib.git] / ChangeLog
index 93e23e1..28b0b0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,172 @@
+2010-07-11  Pádraig Brady  <P@draigBrady.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       unistr/u8-strchr: Optimize ASCII argument case.
+       * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
+
+2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       (x)memcoll: minor tweaks
+       * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
+       is after the type that it qualifies.
+       (memcoll0): Likewise.
+       * lib/memcoll.h (memcoll0): Likewise.
+       * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
+       * lib/xmemcoll.h (xmemcoll0): Likewise.
+       * lib/memcoll.c (memcoll0): Correct the comment.  This function
+       differs from memcoll in that the NUL byte is part of the argument.
+       Omit the abort-checks, as performance is a real issue here.  Plus,
+       the checks were wrong anyway (an off-by-one error).  Omit local
+       variable 'diff', as it's a bit clearer that way.
+       * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
+       no longer needed.
+
+2010-07-08  Chen Guo <chenguo4@yahoo.com>
+
+       (x)memcoll: speedup when input is known to be NUL delimited
+       * lib/memcoll.c: Include stdlib.
+       (memcoll0) New function.
+       (strcoll_loop) New function, refactored for use in both memcoll
+       and memcoll0.
+       * lib/memcoll.h: Add prototype for memcoll0.
+       * lib/xmemcoll.c: (xmemcoll0) New function.
+       (collate_error) New function, refactored for use in both xmemcoll
+       and xmemcoll0.
+       * lib/xmemcoll.h: Add prototype for xmemcoll0.
+       * m4/memcoll.m4: add inline invocation.
+
+2010-07-06  Pádraig Brady  <P@draigBrady.com>
+
+       * build-aux/bootstrap: Remove any local translations
+       from the translation project synchronization directory,
+       so that local only translations are not distributed.
+
+2010-07-04  Bruno Haible  <bruno@clisp.org>
+
+       fsusage: Clarify which code applies to which platforms.
+       * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
+       platform.
+       * lib/fsusage.c (get_fs_usage): Likewise.
+
+2010-07-04  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
+       * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
+       Reported by Martin Lambers <marlam@marlam.de>.
+
+2010-07-04  Jim Meyering  <meyering@redhat.com>
+
+       hash: once again explicitly disallow insertion of NULL
+       * lib/hash.c (hash_insert0): Reinstate just-removed test:
+       inserting a NULL pointer cannot work with these functions.
+       Add a comment with details.
+       This reverts part of the 2010-07-01 commit, 5bef1a35
+       "hash: extend module to deal with non-pointer keys".
+
+2010-07-01  Bruno Haible  <bruno@clisp.org>
+
+       stdbool: Update doc.
+       * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
+       Info from Christian Weisgerber <naddy@mips.inka.de>.
+
+2010-07-01  Jim Meyering  <meyering@redhat.com>
+
+       hash: extend module to deal with non-pointer keys
+       * lib/hash.c (hash_insert0): New interface, much like hash_insert
+       but that allows insertion of non-pointer entries.
+       Do not disallow an ENTRY value of NULL.
+       (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
+       * lib/hash.h (hash_insert0): Declare.
+
+2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
+
+       gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
+       * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
+       not present (i.e. with autoconf 2.59 and when using gettextize, not
+       gnulib), require AC_GNU_SOURCE instead.
+
+2010-07-01  Ian Beckwith  <ianb@erislabs.net>
+
+       idpriv-drop: Fix tests.
+       * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
+       not to the test-idpriv-droptemp program.
+
+2010-06-29  Bruno Haible  <bruno@clisp.org>
+
+       string: Fix syntax error with g++ 2.96.
+       * lib/string.in.h (__pure__): Remove definition.
+       (_GL_ATTRIBUTE_PURE): New macro.
+       (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
+       strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
+       Reported by Christian Weisgerber <naddy@mips.inka.de>.
+
+2010-06-28  Ian Beckwith  <ianb@erislabs.net>
+
+       unitypes: Fix bug introduced on 2010-05-18.
+       * modules/unitypes (Files): Really add m4/libunistring-base.m4.
+
+2010-06-22  Eric Blake  <eblake@redhat.com>
+
+       memmem: slight optimization
+       * lib/str-two-way.h (critical_factorization): Update comments.
+       Reduce work during factorization phase.
+       Reported by Carlos Bueno <carlos@bueno.org>.
+
 2010-06-21  Bruno Haible  <bruno@clisp.org>
 
+       Fix HAVE_CALLOC_POSIX misnomer.
+       * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
+       !HAVE_CALLOC_POSIX.
+       * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
+       HAVE_CALLOC_POSIX.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
+       instead of HAVE_CALLOC_POSIX.
+       * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
+       HAVE_CALLOC_POSIX.
+
+       Use modern idiom for calloc() replacement.
+       * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
+       AC_FUNC_CALLOC.
+       * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
+       Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
+       (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
+       HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
+       (gl_REPLACE_CALLOC): New macro.
+
+2010-06-21  Bruno Haible  <bruno@clisp.org>
+
+       Fix HAVE_REALLOC_POSIX misnomer.
+       * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
+       !HAVE_REALLOC_POSIX.
+       * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
+       HAVE_REALLOC_POSIX.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
+       instead of HAVE_REALLOC_POSIX.
+       * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
+       HAVE_REALLOC_POSIX.
+
+       Use modern idiom for realloc() replacement.
+       * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
+       AC_FUNC_REALLOC.
+       * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
+       Autoconf's AC_FUNC_REALLOC.
+       (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
+       HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
+       (gl_REPLACE_REALLOC): New macro.
+       Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
+
+2010-06-21  Bruno Haible  <bruno@clisp.org>
+
+       Fix HAVE_MALLOC_POSIX misnomer.
+       * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
+       !HAVE_MALLOC_POSIX.
+       * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
+       HAVE_MALLOC_POSIX.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
+       instead of HAVE_MALLOC_POSIX.
+       * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
+       HAVE_MALLOC_POSIX.
+
        Use modern idiom for malloc() replacement.
        * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
        AC_FUNC_MALLOC.