Mercurial > hg > octave-lyh > gnulib-hg
changeset 9624:1e2b5f620c05
Touch up previous patch.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
* doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 14 Jan 2008 21:00:56 -0700 |
parents | 69d9307c0aa0 |
children | a64830157230 |
files | ChangeLog doc/functions/strcasestr.texi m4/strcasestr.m4 |
diffstat | 3 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-01-14 Eric Blake <ebb9@byu.net> + Touch up previous patch. + * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo. + * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug. + Convert strcasestr module to use Two-Way algorithm. * modules/strcasestr-simple: New module, based on the old strcasestr, but with Two-Way rather than KMP.
--- a/doc/functions/strcasestr.texi +++ b/doc/functions/strcasestr.texi @@ -12,8 +12,8 @@ @itemize @item This function is missing on some platforms: -MacOS X 10.3, FreeBSD 5.2.1, OpenBSD 4.0, AIX 4.3.2, HP-UX 11, IRIX -6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw, Interix 3.5, BeOS. +MacOS X 10.3, FreeBSD 5.2.1, AIX 4.3.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, +Solaris 10, Cygwin 1.5.x, mingw, Interix 3.5, BeOS. @end itemize Portability problems fixed by Gnulib module @code{strcasestr}: @@ -21,7 +21,7 @@ @item This function has quadratic instead of linear worst-case complexity on some platforms: -glibc 2.6.1, FreeBSD 6.2, NetBSD 3.0, AIX 5.1. +glibc 2.6.1, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, AIX 5.1. @end itemize Portability problems not fixed by Gnulib:
--- a/m4/strcasestr.m4 +++ b/m4/strcasestr.m4 @@ -1,4 +1,4 @@ -# strcasestr.m4 serial 7 +# strcasestr.m4 serial 8 dnl Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -19,7 +19,7 @@ ]) # gl_FUNC_STRCASESTR_SIMPLE dnl Additionally, check that strcasestr is efficient. -AC_DEFUN([gl_FUNC_STRCASESTR]) +AC_DEFUN([gl_FUNC_STRCASESTR], [ AC_REQUIRE([gl_FUNC_STRCASESTR_SIMPLE]) if test $ac_cv_func_strcasestr = yes; then