From 19c94b20c15567bde81f5c8e93f5a462f1cec4e6 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 14 Jan 2008 21:00:56 -0700 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ doc/functions/strcasestr.texi | 6 +++--- m4/strcasestr.m4 | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index be6a23fdb..2f8cdb18b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-01-14 Eric Blake + 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. diff --git a/doc/functions/strcasestr.texi b/doc/functions/strcasestr.texi index bd6ed4453..b5a7d0519 100644 --- a/doc/functions/strcasestr.texi +++ b/doc/functions/strcasestr.texi @@ -12,8 +12,8 @@ or @code{strcasestr}: @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 @@ Portability problems fixed by Gnulib module @code{strcasestr}: @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: diff --git a/m4/strcasestr.m4 b/m4/strcasestr.m4 index 1edf8e288..a68917056 100644 --- 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 @@ AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE], ]) # 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 -- 2.11.0