1. 15 Jun, 2011 2 commits
    • Bruno Haible's avatar
      memcmp: Simplify autoconf macro. · 9f6141ab
      Bruno Haible authored
      * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
      the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
      * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
      9f6141ab
    • Bruno Haible's avatar
      memcmp: Move AC_LIBOBJ invocations to module description. · 676097df
      Bruno Haible authored
      * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
      (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
      AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
      * modules/memcmp (configure.ac): ... to here.
      (Depends-on): Update conditions.
      676097df
  2. 03 May, 2011 1 commit
    • Bruno Haible's avatar
      Avoid unnecessary compilation units, through conditional dependencies. · 7cbbd8a3
      Bruno Haible authored
      * modules/accept (Depends-on): Add conditions to the dependencies.
      * modules/acosl (Depends-on): Likewise.
      * modules/argz (Depends-on): Likewise.
      * modules/asinl (Depends-on): Likewise.
      * modules/atanl (Depends-on): Likewise.
      * modules/atoll (Depends-on): Likewise.
      * modules/bind (Depends-on): Likewise.
      * modules/btowc (Depends-on): Likewise.
      * modules/canonicalize-lgpl (Depends-on): Likewise.
      * modules/ceil (Depends-on): Likewise.
      * modules/ceilf (Depends-on): Likewise.
      * modules/ceill (Depends-on): Likewise.
      * modules/chdir-long (Depends-on): Likewise.
      * modules/chown (Depends-on): Likewise.
      * modules/close (Depends-on): Likewise.
      * modules/connect (Depends-on): Likewise.
      * modules/cosl (Depends-on): Likewise.
      * modules/dirfd (Depends-on): Likewise.
      * modules/dprintf (Depends-on): Likewise.
      * modules/dprintf-posix (Depends-on): Likewise.
      * modules/error (Depends-on): Likewise.
      * modules/euidaccess (Depends-on): Likewise.
      * modules/expl (Depends-on): Likewise.
      * modules/faccessat (Depends-on): Likewise.
      * modules/fchdir (Depends-on): Likewise.
      * modules/fclose (Depends-on): Likewise.
      * modules/fcntl (Depends-on): Likewise.
      * modules/fdopendir (Depends-on): Likewise.
      * modules/fflush (Depends-on): Likewise.
      * modules/floor (Depends-on): Likewise.
      * modules/floorf (Depends-on): Likewise.
      * modules/floorl (Depends-on): Likewise.
      * modules/fnmatch (Depends-on): Likewise.
      * modules/fopen (Depends-on): Likewise.
      * modules/fprintf-posix (Depends-on): Likewise.
      * modules/frexp (Depends-on): Likewise.
      * modules/frexp-nolibm (Depends-on): Likewise.
      * modules/frexpl (Depends-on): Likewise.
      * modules/frexpl-nolibm (Depends-on): Likewise.
      * modules/fseek (Depends-on): Likewise.
      * modules/fsusage (Depends-on): Likewise.
      * modules/ftell (Depends-on): Likewise.
      * modules/ftello (Depends-on): Likewise.
      * modules/futimens (Depends-on): Likewise.
      * modules/getcwd (Depends-on): Likewise.
      * modules/getcwd-lgpl (Depends-on): Likewise.
      * modules/getdelim (Depends-on): Likewise.
      * modules/getdomainname (Depends-on): Likewise.
      * modules/getgroups (Depends-on): Likewise.
      * modules/gethostname (Depends-on): Likewise.
      * modules/getline (Depends-on): Likewise.
      * modules/getlogin_r (Depends-on): Likewise.
      * modules/getopt-posix (Depends-on): Likewise.
      * modules/getpeername (Depends-on): Likewise.
      * modules/getsockname (Depends-on): Likewise.
      * modules/getsockopt (Depends-on): Likewise.
      * modules/getsubopt (Depends-on): Likewise.
      * modules/getusershell (Depends-on): Likewise.
      * modules/glob (Depends-on): Likewise.
      * modules/grantpt (Depends-on): Likewise.
      * modules/iconv_open (Depends-on): Likewise.
      * modules/iconv_open-utf (Depends-on): Likewise.
      * modules/inet_ntop (Depends-on): Likewise.
      * modules/inet_pton (Depends-on): Likewise.
      * modules/ioctl (Depends-on): Likewise.
      * modules/isapipe (Depends-on): Likewise.
      * modules/isfinite (Depends-on): Likewise.
      * modules/isinf (Depends-on): Likewise.
      * modules/lchown (Depends-on): Likewise.
      * modules/ldexpl (Depends-on): Likewise.
      * modules/link (Depends-on): Likewise.
      * modules/linkat (Depends-on): Likewise.
      * modules/listen (Depends-on): Likewise.
      * modules/logl (Depends-on): Likewise.
      * modules/lstat (Depends-on): Likewise.
      * modules/mbrlen (Depends-on): Likewise.
      * modules/mbrtowc (Depends-on): Likewise.
      * modules/mbsinit (Depends-on): Likewise.
      * modules/mbsnrtowcs (Depends-on): Likewise.
      * modules/mbsrtowcs (Depends-on): Likewise.
      * modules/mbtowc (Depends-on): Likewise.
      * modules/memcmp (Depends-on): Likewise.
      * modules/mkdir (Depends-on): Likewise.
      * modules/mkdtemp (Depends-on): Likewise.
      * modules/mkfifo (Depends-on): Likewise.
      * modules/mkfifoat (Depends-on): Likewise.
      * modules/mknod (Depends-on): Likewise.
      * modules/mkostemp (Depends-on): Likewise.
      * modules/mkostemps (Depends-on): Likewise.
      * modules/mkstemp (Depends-on): Likewise.
      * modules/mkstemps (Depends-on): Likewise.
      * modules/mktime (Depends-on): Likewise.
      * modules/nanosleep (Depends-on): Likewise.
      * modules/open (Depends-on): Likewise.
      * modules/openat (Depends-on): Likewise.
      * modules/perror (Depends-on): Likewise.
      * modules/poll (Depends-on): Likewise.
      * modules/popen (Depends-on): Likewise.
      * modules/posix_spawn (Depends-on): Likewise.
      * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
      * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
      * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
      * modules/posix_spawnp (Depends-on): Likewise.
      * modules/pread (Depends-on): Likewise.
      * modules/printf-posix (Depends-on): Likewise.
      * modules/ptsname (Depends-on): Likewise.
      * modules/putenv (Depends-on): Likewise.
      * modules/pwrite (Depends-on): Likewise.
      * modules/readline (Depends-on): Likewise.
      * modules/readlink (Depends-on): Likewise.
      * modules/readlinkat (Depends-on): Likewise.
      * modules/recv (Depends-on): Likewise.
      * modules/recvfrom (Depends-on): Likewise.
      * modules/regex (Depends-on): Likewise.
      * modules/remove (Depends-on): Likewise.
      * modules/rename (Depends-on): Likewise.
      * modules/renameat (Depends-on): Likewise.
      * modules/rmdir (Depends-on): Likewise.
      * modules/round (Depends-on): Likewise.
      * modules/roundf (Depends-on): Likewise.
      * modules/roundl (Depends-on): Likewise.
      * modules/rpmatch (Depends-on): Likewise.
      * modules/select (Depends-on): Likewise.
      * modules/send (Depends-on): Likewise.
      * modules/sendto (Depends-on): Likewise.
      * modules/setenv (Depends-on): Likewise.
      * modules/setlocale (Depends-on): Likewise.
      * modules/setsockopt (Depends-on): Likewise.
      * modules/shutdown (Depends-on): Likewise.
      * modules/sigaction (Depends-on): Likewise.
      * modules/signbit (Depends-on): Likewise.
      * modules/sigprocmask (Depends-on): Likewise.
      * modules/sinl (Depends-on): Likewise.
      * modules/sleep (Depends-on): Likewise.
      * modules/snprintf (Depends-on): Likewise.
      * modules/snprintf-posix (Depends-on): Likewise.
      * modules/socket (Depends-on): Likewise.
      * modules/sprintf-posix (Depends-on): Likewise.
      * modules/sqrtl (Depends-on): Likewise.
      * modules/stat (Depends-on): Likewise.
      * modules/strchrnul (Depends-on): Likewise.
      * modules/strdup-posix (Depends-on): Likewise.
      * modules/strerror (Depends-on): Likewise.
      * modules/strerror_r-posix (Depends-on): Likewise.
      * modules/strndup (Depends-on): Likewise.
      * modules/strnlen (Depends-on): Likewise.
      * modules/strptime (Depends-on): Likewise.
      * modules/strsep (Depends-on): Likewise.
      * modules/strsignal (Depends-on): Likewise.
      * modules/strstr-simple (Depends-on): Likewise.
      * modules/strtod (Depends-on): Likewise.
      * modules/strtoimax (Depends-on): Likewise.
      * modules/strtok_r (Depends-on): Likewise.
      * modules/strtoumax (Depends-on): Likewise.
      * modules/symlink (Depends-on): Likewise.
      * modules/symlinkat (Depends-on): Likewise.
      * modules/tanl (Depends-on): Likewise.
      * modules/tcgetsid (Depends-on): Likewise.
      * modules/tmpfile (Depends-on): Likewise.
      * modules/trunc (Depends-on): Likewise.
      * modules/truncf (Depends-on): Likewise.
      * modules/truncl (Depends-on): Likewise.
      * modules/uname (Depends-on): Likewise.
      * modules/unlink (Depends-on): Likewise.
      * modules/unlockpt (Depends-on): Likewise.
      * modules/unsetenv (Depends-on): Likewise.
      * modules/usleep (Depends-on): Likewise.
      * modules/utimensat (Depends-on): Likewise.
      * modules/vasprintf (Depends-on): Likewise.
      * modules/vdprintf (Depends-on): Likewise.
      * modules/vdprintf-posix (Depends-on): Likewise.
      * modules/vfprintf-posix (Depends-on): Likewise.
      * modules/vprintf-posix (Depends-on): Likewise.
      * modules/vsnprintf (Depends-on): Likewise.
      * modules/vsnprintf-posix (Depends-on): Likewise.
      * modules/vsprintf-posix (Depends-on): Likewise.
      * modules/wcrtomb (Depends-on): Likewise.
      * modules/wcscasecmp (Depends-on): Likewise.
      * modules/wcscspn (Depends-on): Likewise.
      * modules/wcsdup (Depends-on): Likewise.
      * modules/wcsncasecmp (Depends-on): Likewise.
      * modules/wcsnrtombs (Depends-on): Likewise.
      * modules/wcspbrk (Depends-on): Likewise.
      * modules/wcsrtombs (Depends-on): Likewise.
      * modules/wcsspn (Depends-on): Likewise.
      * modules/wcsstr (Depends-on): Likewise.
      * modules/wcstok (Depends-on): Likewise.
      * modules/wcswidth (Depends-on): Likewise.
      * modules/wctob (Depends-on): Likewise.
      * modules/wctomb (Depends-on): Likewise.
      * modules/wctype (Depends-on): Likewise.
      * modules/wcwidth (Depends-on): Likewise.
      * modules/write (Depends-on): Likewise.
      7cbbd8a3
  3. 01 Feb, 2009 1 commit
  4. 02 Nov, 2008 1 commit
  5. 20 Dec, 2007 1 commit
    • Eric Blake's avatar
      Fix memmem to avoid O(n^2) worst-case complexity. · fc068cf4
      Eric Blake authored
      * 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: 's avatarEric Blake <ebb9@byu.net>
      fc068cf4
  6. 13 Oct, 2006 1 commit
  7. 12 Oct, 2006 1 commit
  8. 22 Sep, 2004 1 commit
  9. 18 Apr, 2004 1 commit
  10. 20 Jan, 2003 1 commit
  11. 13 Jan, 2003 1 commit
  12. 31 Dec, 2002 1 commit