Bruno Haible
0447803a9a
memchr: Respect rules for use of AC_LIBOBJ.
...
* m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
invocations from here...
* modules/memchr (configure.ac): ... to here.
2011-06-16 00:06:28 +02:00
Bruno Haible
e3a7a9fd96
strnlen: Avoid memchr related link error on old obsolete platforms.
...
* modules/memchr-obsolete: New file.
* m4/memchr-obsolete.m4: New file.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
gl_FUNC_MEMCHR_OBSOLETE is not also defined.
* modules/memchr (Depends-on): Add memchr-obsolete.
* modules/strnlen (Depends-on): Likewise.
* doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2011-04-25 19:43:59 +02:00
Simon Josefsson
4902acb2d8
modules/memchr (Depends-on): Drop getpagesize dependency.
2009-11-06 14:37:15 +01:00
Eric Blake
dcc2f67b6f
memchr, memchr2: add valgrind exception
...
* lib/memchr.valgrind: New file.
* lib/memchr2.valgrind: New file.
* modules/memchr (Files): Distribute valgrind file.
* modules/memchr2 (Files): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net >
2009-06-15 21:05:08 -06:00
Eric Blake
7cf183c33e
memchr: detect broken x86_64 and alpha implementations
...
* modules/memchr-tests (Depends-on): Move mmap detection...
* modules/memchr (Depends-on): ...here.
(configure.ac): Set indicator.
* lib/string.in.h (memchr): Declare replacement.
* modules/string (Makefile.am): Trigger replacement.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
bugs.
* doc/posix-functions/memchr.texi (memchr): Document the bug.
* modules/getpagesize (License): Relax license.
Signed-off-by: Eric Blake <ebb9@byu.net >
2009-06-12 21:52:09 -06:00
Eric Blake
5030430b04
memchr: no longer obsolete, for wider field testing
...
* modules/memchr (Status, Notice): Delete, this module is no
longer obsolete.
* modules/vasnprintf (Depends-on): Add memchr.
Signed-off-by: Eric Blake <ebb9@byu.net >
2009-06-08 06:30:50 -06:00
Bruno Haible
e7221a5e9d
Mark 'memchr' obsolete.
2008-11-02 16:34:09 +01:00
Eric Blake
8b8527c54c
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 >
2008-04-28 15:04:49 -06:00
Bruno Haible
945223b6cd
Optimize parallel detection of matching bytes.
2008-04-26 12:38:15 +02:00
Eric Blake
fc068cf4eb
Fix memmem to avoid O(n^2) worst-case complexity.
...
* lib/memmem.c (knuth_morris_pratt): New function.
(memmem): Use it if first few naive iterations fail.
* m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
* modules/memcmp (License): Set to LGPLv2+, not LGPL.
* modules/memchr (License): Likewise.
* modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
malloca.
* tests/test-memmem.c: Rewrite, borrowing ideas from
test-mbsstr1.c; the old version wouldn't even compile!
* modules/memmem-tests: New file.
* lib/string.in.h (rpl_memmem): Add declaration.
* modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
REPLACE_MEMMEM.
Signed-off-by: Eric Blake <ebb9@byu.net >
2007-12-20 06:02:01 -07:00
Bruno Haible
5eeec029e8
gnulib-tool now synthesizes the EXTRA_DIST line.
2006-10-13 12:40:22 +00:00
Bruno Haible
e8684643a2
Distribute all lib/* source files through EXTRA_DIST.
2006-10-12 18:52:30 +00:00
Bruno Haible
5143f4e91f
Add a license tag to every module.
2004-09-22 15:11:04 +00:00
Bruno Haible
6f99528a90
Add a Maintainer.
2003-01-20 10:02:37 +00:00
Bruno Haible
2e82f91f46
Add module descriptions.
2003-01-13 16:07:17 +00:00
Bruno Haible
740e9a30ef
Module description.
2002-12-31 13:46:30 +00:00