Jim Meyering [Fri, 16 May 2008 08:38:02 +0000 (10:38 +0200)]
fix typo in ChangeLog
Eric Blake [Fri, 16 May 2008 01:55:56 +0000 (19:55 -0600)]
Extend previous patch to cygwin 1.7.0.
* m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
fast implementation in cygwin >= 1.7.0.
* m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible [Thu, 15 May 2008 21:29:37 +0000 (23:29 +0200)]
Update cross-compiling guess now that glibc 2.9 will have fast implementations.
Bruno Haible [Thu, 15 May 2008 21:04:58 +0000 (23:04 +0200)]
Update after linebreak module was split.
Eric Blake [Thu, 15 May 2008 20:51:43 +0000 (14:51 -0600)]
Fix violation of <stdbool.h> replacement in regex.
* lib/regexec.c (re_search_internal): Avoid implicit cast to bool.
Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Thu, 15 May 2008 20:37:29 +0000 (14:37 -0600)]
Fix violation of <stdbool.h> replacement in regex.
* lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
Signed-off-by: Eric Blake <ebb9@byu.net>
Jim Meyering [Thu, 15 May 2008 12:52:01 +0000 (14:52 +0200)]
avoid distracting test output when git or cvs is not fount
* tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
* tests/test-vc-list-files-git.sh: Likewise.
Eric Blake [Thu, 15 May 2008 12:16:11 +0000 (06:16 -0600)]
Glibc finally accepted the memmem speedup code, bugzilla #5514.
* doc/glibc-functions/memmem.texi (memmem): Mention last broken
glibc version.
* doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
* doc/posix-functions/strstr.texi (strstr): Likewise.
* lib/str-two-way.h (MAX): Sychronize with glibc.
Signed-off-by: Eric Blake <ebb9@byu.net>
Paolo Bonzini [Thu, 15 May 2008 06:50:06 +0000 (08:50 +0200)]
optimize double anchors such as ^$
2008-05-15 Paolo Bonzini <bonzini@gnu.org>
* lib/regcomp.c (optimize_utf8): Add a note on why we test
opr.ctx_type.
(calc_first): Initialize constraint field.
(duplicate_node_closure): Use it instead of special casing ANCHORS.
Fix grammar.
(duplicate_node): Merge constraint field for all node types.
(calc_eclosure_iter): Look at constraint field for all node types.
* lib/regex_internal.c (create_cd_newstate): Don't look at
opr.ctx_type.
Bruno Haible [Thu, 15 May 2008 00:01:46 +0000 (02:01 +0200)]
Help GCC to do better code generation.
Bruno Haible [Wed, 14 May 2008 21:05:26 +0000 (23:05 +0200)]
Fix typo in ChangeLog entry.
Lasse Collin [Wed, 14 May 2008 16:50:53 +0000 (18:50 +0200)]
use "echo STR|wc -c" rather than unportable "expr length STR"
* build-aux/mktempd (mktempd): Vendor-supplied expr from at least
OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
Jim Meyering [Wed, 14 May 2008 15:20:42 +0000 (17:20 +0200)]
use dd ifs=$n count=1 ... rather than less-portable head -c$n
* build-aux/mktempd (rand_bytes): head's -cN option is not accepted
by Solaris 10's /bin/head or by the one from HP-UX 11.x.
Reported in http://sourceforge.net/forum/message.php?msg_id=
4960334
via Collin Lasse.
Eric Blake [Wed, 14 May 2008 12:42:55 +0000 (06:42 -0600)]
Avoid quadratic growth in gl_LIBSOURCES.
* gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
Suggested by Bruno Haible.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Wed, 14 May 2008 12:12:16 +0000 (06:12 -0600)]
Test xmemdup0.
* modules/xmemdup0-tests: New file.
* tests/test-xmemdup0.c: Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Wed, 14 May 2008 03:28:43 +0000 (21:28 -0600)]
Split xmemdup0 into its own module.
* modules/xmemdup0: New file.
* lib/xmemdup0.h: Likewise.
* lib/xmemdup0.c: Likewise.
* MODULES.html.sh (Memory management functions): Add xmemdup0.
* lib/xalloc.h (xmemdup0): Remove.
* lib/xmalloc.c (xmemdup0): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible [Wed, 14 May 2008 02:09:49 +0000 (04:09 +0200)]
Oops, fix small mistake in last commit.
Eric Blake [Wed, 14 May 2008 00:07:46 +0000 (02:07 +0200)]
Reduce number of forks required during autoconf.
Eric Blake [Tue, 13 May 2008 20:14:33 +0000 (14:14 -0600)]
* gnulib-tool: Fix various comment typos.
Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible [Mon, 12 May 2008 17:22:07 +0000 (19:22 +0200)]
Tailor the linebreaking algorithm.
Bruno Haible [Mon, 12 May 2008 12:07:28 +0000 (14:07 +0200)]
Update to Unicode 5.0.0.
Bruno Haible [Sun, 11 May 2008 14:43:47 +0000 (16:43 +0200)]
Fix whitespace.
Bruno Haible [Sun, 11 May 2008 14:42:12 +0000 (16:42 +0200)]
Move gen-lbrkprop from GNU gettext to here.
Bruno Haible [Sun, 11 May 2008 13:22:35 +0000 (15:22 +0200)]
Update license to GPLv3+.
Bruno Haible [Sun, 11 May 2008 10:42:47 +0000 (12:42 +0200)]
Add prerequisites for using 'inline'.
Jim Meyering [Sun, 11 May 2008 07:05:36 +0000 (09:05 +0200)]
New modules: crypto/sha256, crypto/sha512 (from coreutils)
* modules/crypto/sha256: New file.
* modules/crypto/sha512: Likewise.
* lib/sha256.c: Likewise.
* lib/sha256.h: Likewise.
* lib/sha512.c: Likewise.
* lib/sha512.h: Likewise.
* lib/u64.h: Likewise.
* m4/sha256.m4: Likewise.
* m4/sha512.m4: Likewise.
* MODULES.html.sh (Cryptographic computations (low-level)): List them.
Bruno Haible [Sun, 11 May 2008 01:49:32 +0000 (03:49 +0200)]
Update modules list.
Bruno Haible [Sun, 11 May 2008 01:07:18 +0000 (03:07 +0200)]
New module 'unictype/gen-ctype'.
Bruno Haible [Sun, 11 May 2008 00:33:36 +0000 (02:33 +0200)]
Update comments.
Jim Meyering [Sat, 10 May 2008 13:19:43 +0000 (15:19 +0200)]
Make chdir-safer.c more efficient on a system with no symlinks.
* lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
also if ELOOP is zero. Suggested by Bruno Haible.
Jim Meyering [Sat, 10 May 2008 13:15:11 +0000 (15:15 +0200)]
Make chdir-safer.c slightly safer.
* lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
Jim Meyering [Sat, 10 May 2008 12:50:12 +0000 (14:50 +0200)]
Avoid compile failure on systems without ELOOP (like mingw).
* lib/chdir-safer.c (ELOOP): Define if not already defined.
Reported by Bruno Haible.
Bruno Haible [Sat, 10 May 2008 13:40:48 +0000 (15:40 +0200)]
Use case-insensitive comparison.
Bruno Haible [Sat, 10 May 2008 13:23:28 +0000 (15:23 +0200)]
Use u8_conv_from_encoding instead of using special code for the conversion.
Bruno Haible [Sat, 10 May 2008 12:32:53 +0000 (14:32 +0200)]
Tests for module unilbrk/ulc-width-linebreaks.
Bruno Haible [Sat, 10 May 2008 12:32:19 +0000 (14:32 +0200)]
Tests for module 'unilbrk/u32-width-linebreaks'.
Bruno Haible [Sat, 10 May 2008 12:31:55 +0000 (14:31 +0200)]
Tests for module unilbrk/u16-width-linebreaks.
Bruno Haible [Sat, 10 May 2008 12:31:27 +0000 (14:31 +0200)]
Tests for module unilbrk/u8-width-linebreaks.
Bruno Haible [Sat, 10 May 2008 12:30:49 +0000 (14:30 +0200)]
Tests for module unilbrk/ulc-possible-linebreaks
Bruno Haible [Sat, 10 May 2008 12:30:18 +0000 (14:30 +0200)]
Tests for module unilbrk/u32-possible-linebreaks.
Bruno Haible [Sat, 10 May 2008 12:29:49 +0000 (14:29 +0200)]
Tests for module unilbrk/u16-possible-linebreaks.
Bruno Haible [Sat, 10 May 2008 12:29:02 +0000 (14:29 +0200)]
Tests for module unilbrk/u8-possible-linebreaks.
Bruno Haible [Sat, 10 May 2008 12:24:14 +0000 (14:24 +0200)]
Split up the 'linebreak' module.
Eric Blake [Fri, 9 May 2008 19:54:18 +0000 (13:54 -0600)]
Add xmemdup0.
* lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
implementation.
* lib/xmalloc.c (xmemdup0): New C implementation.
Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible [Thu, 8 May 2008 12:10:43 +0000 (14:10 +0200)]
Correct indentation.
Eric Blake [Thu, 8 May 2008 02:53:19 +0000 (20:53 -0600)]
Support cross-compilation of <wctype.h>.
* m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
AC_CACHE_CHECK.
Signed-off-by: Eric Blake <ebb9@byu.net>
Karl Berry [Wed, 7 May 2008 13:07:42 +0000 (06:07 -0700)]
autoupdate
Soren Hansen [Tue, 6 May 2008 21:12:55 +0000 (23:12 +0200)]
build-aux/vc-list-files: Add support for bzr.
Jim Meyering [Sat, 3 May 2008 09:50:31 +0000 (11:50 +0200)]
test-getaddrinfo.c: include <netinet/in.h>
* tests/test-getaddrinfo.c: This is required for the new use
of "struct sockaddr_in", at least on FreeBSD 6.
Jim Meyering [Sat, 3 May 2008 09:46:58 +0000 (11:46 +0200)]
getaddrinfo.h: handle undefined EAI_NODATA
* lib/getaddrinfo.h [!defined EAI_NODATA && defined EAI_NONAME]
(EAI_NODATA): Define.
* tests/test-getaddrinfo.c (EAI_NODATA): Don't define here.
This also reverts
c9a6a9bb007294bb8878d685f3e9336b3a5be1ed.
Jim Meyering [Sat, 3 May 2008 10:51:08 +0000 (12:51 +0200)]
avoid failed assertion with tight malloc
* tests/test-getndelim2.c: Correct an off-by-one assertion.
Simon Josefsson [Sat, 3 May 2008 04:22:26 +0000 (06:22 +0200)]
Make sure inet_ntop/inet_pton is declared when needed.
Jim Meyering [Thu, 1 May 2008 21:34:53 +0000 (23:34 +0200)]
avoid compilation error on FreeBSD 6
* tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
Jim Meyering [Thu, 1 May 2008 19:12:30 +0000 (21:12 +0200)]
useless-if-before-free: correct --help's exit status description
* build-aux/useless-if-before-free (usage): Like grep, exit 0
for one or more matches, etc. Reported by Bruno Haible.
Jim Meyering [Thu, 1 May 2008 19:01:36 +0000 (21:01 +0200)]
vc-list-files: make the stand-alone gnulib test work
* modules/vc-list-files-tests (configure.ac):
Define and AC_SUBST abs_aux_dir.
(Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
$(abs_top_srcdir) to each script and having each of them
duplicate the work of setting PATH, set PATH here, using
the new variable, abs_aux_dir instead.
* tests/test-vc-list-files-cvs.sh: Don't set PATH here.
* tests/test-vc-list-files-git.sh: Likewise.
Reported by Bruno Haible.
Bruno Haible [Thu, 1 May 2008 14:49:21 +0000 (16:49 +0200)]
Fix computation of newsize during reallocation.
Bruno Haible [Thu, 1 May 2008 14:43:43 +0000 (16:43 +0200)]
Add comments.
Jim Meyering [Thu, 1 May 2008 08:17:19 +0000 (10:17 +0200)]
vc-list-files: accommodate /bin/sh like the one from Solaris 10
* build-aux/vc-list-files: Use `...`, not $(...).
Jim Meyering [Wed, 30 Apr 2008 13:01:23 +0000 (15:01 +0200)]
add tests for vc-list-files
* modules/vc-list-files-tests: New module.
* tests/test-vc-list-files-cvs.sh: New file.
* tests/test-vc-list-files-git.sh: New file.
Jim Meyering [Wed, 30 Apr 2008 15:39:54 +0000 (17:39 +0200)]
avoid a warning from gcc
* lib/getndelim2.c (IF_LINT): Define.
(getndelim2): Use it to void a "may be used uninitialized" warning.
Signed-off-by: Jim Meyering <meyering@redhat.com>
Jim Meyering [Wed, 30 Apr 2008 15:09:04 +0000 (17:09 +0200)]
* ChangeLog: Mention Soren Hansen and add thread URL.
Jim Meyering [Wed, 30 Apr 2008 10:17:13 +0000 (12:17 +0200)]
vc-list-files: work properly with build-aux/cvsu, too
* build-aux/vc-list-files: Hoist the "./"-removing code to apply
to all cvs-based clauses.
Jim Meyering [Wed, 30 Apr 2008 10:10:09 +0000 (12:10 +0200)]
vc-list-files: work properly in the CVS+awk case, too
* build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
Jim Meyering [Wed, 30 Apr 2008 09:36:06 +0000 (11:36 +0200)]
vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
* build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
take more than one file argument, so . Add quotes, just in case $dir
ever contains a shell meta-character.
Eric Blake [Tue, 29 Apr 2008 17:59:35 +0000 (11:59 -0600)]
Optimize getndelim2 to use block operations when possible.
* modules/getndelim2 (Depends-on): Add stdbool, freadptr,
freadseek, and memchr2.
* lib/getndelim2.c (getndelim2): Use them for block reads.
Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible [Tue, 29 Apr 2008 23:27:49 +0000 (01:27 +0200)]
Ensure the system declares inet_ntop, inet_pton when possible.
Jim Meyering [Tue, 29 Apr 2008 20:04:47 +0000 (22:04 +0200)]
When the is more than one match in a block, match all of them.
* build-aux/useless-if-before-free: Iterate through each block
until there are no more matches.
Jim Meyering [Tue, 29 Apr 2008 18:02:22 +0000 (20:02 +0200)]
Fix broken useless-if-before-free script.
* build-aux/useless-if-before-free: Fix typo: missing "?" after
the expression to match cast of argument to free-like function.
Bruno Haible [Tue, 29 Apr 2008 17:47:39 +0000 (19:47 +0200)]
Mention Simon's recent changes.
Eric Blake [Tue, 29 Apr 2008 17:00:46 +0000 (11:00 -0600)]
Use new header.
* lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
Signed-off-by: Eric Blake <ebb9@byu.net>
Jim Meyering [Tue, 29 Apr 2008 16:48:40 +0000 (18:48 +0200)]
Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
* tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
by gnulib to exist and to declare e.g., inet_ntop.
Don't include "inet_ntop.h", now removed.
Jim Meyering [Tue, 29 Apr 2008 16:00:32 +0000 (18:00 +0200)]
* m4/arpa_inet_h.m4: Remove trailing blanks.
Eric Blake [Tue, 29 Apr 2008 12:08:44 +0000 (06:08 -0600)]
Silence valgrind on safe reads beyond potential array bounds.
* lib/rawmemchr.valgrind: New file.
* lib/strchrnul.valgrind: Likewise.
* modules/rawmemchr (Files): Distribute new file.
* modules/strchrnul (Files): Likewise.
Suggested by Bruno Haible.
Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible [Tue, 29 Apr 2008 11:37:51 +0000 (13:37 +0200)]
Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Jim Meyering [Tue, 29 Apr 2008 11:15:02 +0000 (13:15 +0200)]
* modules/mkdir (License): Re-license as LGPLv2+.
Bruno Haible [Tue, 29 Apr 2008 10:24:35 +0000 (12:24 +0200)]
Set the module maintainer.
Simon Josefsson [Tue, 29 Apr 2008 09:26:41 +0000 (11:26 +0200)]
Make arpa/inet module build under MinGW.
Eric Blake [Tue, 29 Apr 2008 03:36:17 +0000 (21:36 -0600)]
Test getndelim2.
* modules/getndelim2-tests: New file.
* tests/test-getndelim2.c: Likewise.
* lib/getndelim2.c (getndelim2): Never return 0. Lock the
stream.
* m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Tue, 29 Apr 2008 02:16:06 +0000 (20:16 -0600)]
Document rawmemchr.
* MODULES.html.sh: Document new module.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Tue, 29 Apr 2008 02:08:36 +0000 (20:08 -0600)]
Ensure sane coding of ChangeLog.
Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible [Tue, 29 Apr 2008 01:04:35 +0000 (03:04 +0200)]
Use 'raise'.
Bruno Haible [Tue, 29 Apr 2008 01:00:57 +0000 (03:00 +0200)]
Expect rpmatch to be declared.
Bruno Haible [Tue, 29 Apr 2008 00:55:59 +0000 (02:55 +0200)]
Declare rpmatch.
Bruno Haible [Tue, 29 Apr 2008 00:37:52 +0000 (02:37 +0200)]
Change rpmatch to use nl_langinfo when appropriate.
Eric Blake [Mon, 28 Apr 2008 23:08:43 +0000 (17:08 -0600)]
Add rawmemchr module, matching glibc.
* modules/string (Makefile.am): New indicator.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
* lib/string.in.h (rawmemchr): Declare when appropriate.
* modules/rawmemchr: New file.
* m4/rawmemchr.m4: Likewise.
* lib/rawmemchr.c: Likewise.
* modules/rawmemchr-tests: Likewise.
* tests/test-rawmemchr.c: Likewise.
* doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
module.
* modules/strchrnul (Depends-on): Add rawmemchr.
* lib/strchrnul.c (strchrnul): Optimize a corner case.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Mon, 28 Apr 2008 23:02:16 +0000 (17:02 -0600)]
Whitespace cleanup.
* tests/test-strchrnul.c: Reindent.
* lib/strchrnul.c: Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Mon, 28 Apr 2008 21:43:04 +0000 (15:43 -0600)]
Optimize and test strchrnul.
* lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
* modules/strchrnul-tests: New file.
* tests/test-strchrnul.c: Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Mon, 28 Apr 2008 21:18:09 +0000 (15:18 -0600)]
* .gitignore: Ignore bad patch applications.
Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake [Mon, 28 Apr 2008 16:24:14 +0000 (10:24 -0600)]
Remove intprops dependency.
* modules/memchr (Depends-on): Remove intprops.
* modules/memrchr (Depends-on): Likewise.
* modules/memchr2 (Depends-on): Likewise.
* lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
* lib/memrchr.c (__memrchr): Likewise.
* lib/memrchr2.c (memchr2): Likewise.
Reported by Simon Josefsson.
Signed-off-by: Eric Blake <ebb9@byu.net>
Simon Josefsson [Mon, 28 Apr 2008 18:08:35 +0000 (20:08 +0200)]
Move AC_REQUIRE([AC_C_INLINE]) to top.
Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
Simon Josefsson [Mon, 28 Apr 2008 15:40:25 +0000 (17:40 +0200)]
Move inet_ntop and inet_pton declarations to arpa/inet.h.
Simon Josefsson [Mon, 28 Apr 2008 14:38:34 +0000 (16:38 +0200)]
Fix proper win32 checks and use of inline for setsockopt.
Reported by Bruno Haible <bruno@clisp.org>.
Bruno Haible [Mon, 28 Apr 2008 09:24:51 +0000 (11:24 +0200)]
Mention a problem on mingw.
Bruno Haible [Sun, 27 Apr 2008 22:12:56 +0000 (00:12 +0200)]
Make test-stat-time pass on mingw.
Bruno Haible [Sun, 27 Apr 2008 21:30:18 +0000 (23:30 +0200)]
Add some comments.
Bruno Haible [Sun, 27 Apr 2008 20:51:28 +0000 (22:51 +0200)]
Stricter test whether isnanl works.
Bruno Haible [Sun, 27 Apr 2008 14:22:30 +0000 (16:22 +0200)]
Make test-yesno.sh work on mingw.
Bruno Haible [Sun, 27 Apr 2008 12:07:20 +0000 (14:07 +0200)]
Fix 'isfinite' on x86, x86_64, ia64 platforms.
Bruno Haible [Sun, 27 Apr 2008 10:41:21 +0000 (12:41 +0200)]
Allow local renaming in config.h.
Bruno Haible [Sun, 27 Apr 2008 10:37:28 +0000 (12:37 +0200)]
Avoid gcc warnings.