summaryrefslogtreecommitdiff
path: root/modules/memchr
Commit message (Collapse)AuthorAgeFilesLines
* memchr: Respect rules for use of AC_LIBOBJ.Bruno Haible2011-06-161-0/+4
| | | | | | * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR invocations from here... * modules/memchr (configure.ac): ... to here.
* strnlen: Avoid memchr related link error on old obsolete platforms.Bruno Haible2011-04-251-0/+1
| | | | | | | | | | * 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.
* modules/memchr (Depends-on): Drop getpagesize dependency.Simon Josefsson2009-11-061-1/+0
|
* memchr, memchr2: add valgrind exceptionEric Blake2009-06-151-0/+1
| | | | | | | | | * 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>
* memchr: detect broken x86_64 and alpha implementationsEric Blake2009-06-121-0/+5
| | | | | | | | | | | | | | | * 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>
* memchr: no longer obsolete, for wider field testingEric Blake2009-06-081-7/+0
| | | | | | | | * 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>
* Mark 'memchr' obsolete.Bruno Haible2008-11-021-0/+6
|
* Remove intprops dependency.Eric Blake2008-04-281-1/+0
| | | | | | | | | | | | * 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>
* Optimize parallel detection of matching bytes.Bruno Haible2008-04-261-0/+1
|
* Fix memmem to avoid O(n^2) worst-case complexity.Eric Blake2007-12-201-1/+1
| | | | | | | | | | | | | | | | | | | * 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>
* gnulib-tool now synthesizes the EXTRA_DIST line.Bruno Haible2006-10-131-1/+0
|
* Distribute all lib/* source files through EXTRA_DIST.Bruno Haible2006-10-121-0/+1
|
* Add a license tag to every module.Bruno Haible2004-09-221-0/+3
|
* Add a Maintainer.Bruno Haible2003-01-201-0/+3
|
* Add module descriptions.Bruno Haible2003-01-131-0/+1
|
* Module description.Bruno Haible2002-12-311-0/+16