[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strcasestr [was: strstr speedup]
From: |
Bruno Haible |
Subject: |
Re: strcasestr [was: strstr speedup] |
Date: |
Sat, 19 Jan 2008 13:23:45 +0100 |
User-agent: |
KMail/1.5.4 |
Eric Blake wrote:
> Here's what I'm committing for strcasestr, including a strcasestr-simple
> module, and the first attempt at a glibc function extensions chapter.
Thanks for this! I've now extended the glibc function extensions chapter.
> --- /dev/null
> +++ b/doc/functions/strcasestr.texi
> @@ -0,0 +1,29 @@
> address@hidden strcasestr
> address@hidden @code{strcasestr}
> address@hidden strcasestr
> +
> +Unspecified by POSIX, but comparable to a mix of @code{strstr} and
> address@hidden
> +
> +Gnulib module: strcasestr or strcasestr-simple
> +
> +Portability problems fixed by either Gnulib module @code{strcasestr-simple}
> +or @code{strcasestr}:
> address@hidden
> address@hidden
> +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.
> address@hidden itemize
The list of platforms is not right. I have corrected it while moving the
doc. You can get this portability info from the database that I have
uploaded to http://www.haible.de/bruno/various-symlists.tar.gz
$ ./show-portability strcasestr
libc freebsd-5.2.1
libc freebsd-6.0
libc glibc-2.3.6
libc interix-3.5
libc macosx-10.3
libc netbsd-3.0
libc openbsd-3.8
libc pips
MISSING in aix-4.3.2 aix-5.1.0 beos cygwin hpux-11.00 hpux-11.11
irix-6.5 mingw nsk-G06 osf1-4.0d osf1-5.1a solaris-2.10 solaris-2.4
solaris-2.5.1 solaris-2.6 solaris-2.7 solaris-2.8 solaris-2.9
$ ./show-portability --doc strcasestr
AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin, mingw, BeOS.
> | We can also introduce a strstr-simple module that does nothing, just for
> | orthogonality? (It does nothing because all platforms have some strstr
> | function.)
>
> I'm hesitant here. strstr-simple would truly be a no-op - there is
> nothing that it provides other than an orthoganally-named module
OK, let's drop this idea.
Bruno
2008-01-19 Bruno Haible <address@hidden>
* doc/glibc-functions/strcasestr.texi: Include contents of
doc/functions/strcasestr.texi, fixing the list of platforms.
* doc/functions/strcasestr.texi: Remove file.
http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=398c3b9ba95888804ed35f380bcaead0a493baa7
2008-01-19 Bruno Haible <address@hidden>
* doc/glibc-functions/memmem.texi: Include contents of
doc/functions/memmem.texi.
* doc/functions/memmem.texi: Remove file.
http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=e606e4f86f58f108829f84777e565eebd0a467e7
- strstr speedup, Eric Blake, 2008/01/10
- Re: strstr speedup, Bruno Haible, 2008/01/10
- Re: strstr speedup, Bruno Haible, 2008/01/10
- Re: strstr speedup, Eric Blake, 2008/01/12
- Re: strstr speedup, Bruno Haible, 2008/01/12
- Re: strstr speedup, Eric Blake, 2008/01/12
Re: strstr speedup, Bruno Haible, 2008/01/11