strerror_r-posix: work with glibc 2.13
[gnulib.git] / ChangeLog
index b122696..21a0936 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,100 @@
+2011-01-21  Eric Blake  <eblake@redhat.com>
+
+       strerror_r-posix: work with glibc 2.13
+       * lib/strerror_r.c (strerror_r): Fix return type.
+
+2011-01-21  Pádraig Brady  <P@draigBrady.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       uN_strstr: New unit tests.
+       * modules/unistr/u8-strstr-tests: New file.
+       * modules/unistr/u16-strstr-tests: New file.
+       * modules/unistr/u32-strstr-tests: New file.
+       * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
+       * tests/unistr/test-u8-strstr.c: New file.
+       * tests/unistr/test-u16-strstr.c: New file.
+       * tests/unistr/test-u32-strstr.c: New file.
+
+2011-01-21  Pádraig Brady  <P@draigBrady.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       Make uN_strstr functions O(n) worst-case.
+       * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
+       16-bit and 32-bit unit cases, use the unibyte algorithm from
+       lib/mbsstr.c.
+       * lib/unistr/u8-strstr.c: Include <string.h>.
+       (UNIT_IS_UINT8_T): New macro.
+       * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
+       (U_STRLEN, U_STRNLEN): New macros.
+       * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
+       (U_STRLEN, U_STRNLEN): New macros.
+       * modules/unistr/u8-strstr (Depends-on): Add strstr.
+       (configure.ac): Update required libunistring version.
+       * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
+       (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
+       malloca.
+       (configure.ac): Update required libunistring version.
+       * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
+       (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
+       malloca.
+       (configure.ac): Update required libunistring version.
+
+2011-01-21  Pádraig Brady  <P@draigBrady.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       Prepare for faster uN_strstr functions.
+       * lib/str-kmp.h: Support definable UNITs.
+       (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
+       needle_len argument.
+       * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
+       * lib/mbscasestr.c (mbscasestr): Likewise.
+
+2011-01-21  Pádraig Brady <P@draigBrady.com>
+
+       malloca-tests: make faster by unsetting MALLOC_PERTURB_
+       * tests/test-malloca.c (main): Unset the environment variable
+       to greatly speed up the test.
+       * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
+       * modules/malloca-tests: Depend on unsetenv.
+
+2011-01-21  Pádraig Brady <P@draigBrady.com>
+
+       ignore-value: remove stdint dependency
+       * lib/ignore-value.h: Remove <stdint.h>
+       * modules/ignore-value: Remove stdint dependency.
+
+2011-01-21  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: adjust variable name to be consistent with other gl_ vars
+       * top/maint.mk (gl_public_submodule_commit): Rename the variable
+       to be lower case.
+
+2011-01-20  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: make "check" depend on public-submodule-commit by default
+       * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
+
+2011-01-20  Bruno Haible  <bruno@clisp.org>
+
+       mbfile, mbiter: Complete change from 2008-12-21.
+       * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
+       * m4/mbiter.m4 (gl_MBITER): Likewise.
+
+2011-01-20  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: insert space between each function name and "()"
+       * tests/init.sh: Make it a little easier to see that a function's
+       name is "warn_", and not "warn" when looking at the first part of
+       its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
+
+2011-01-20  Jim Meyering  <meyering@redhat.com>
+
+       mountlist: clean up code formatting
+       * lib/mountlist.c (read_file_system_list): Split a long line,
+       correct bracing style, use NULL in place of "(struct statfs *)0",
+       don't parenthesize return value, add spaces around "=" and after
+       ";-in-for-stmt".
+
 2011-01-14  Markus Duft <mduft@gentoo.org>
 
        mountlist: add support for Interix