projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid macro redefinition warnings.
[gnulib.git]
/
lib
/
mbscasestr.c
diff --git
a/lib/mbscasestr.c
b/lib/mbscasestr.c
index
82eb968
..
a136b21
100644
(file)
--- a/
lib/mbscasestr.c
+++ b/
lib/mbscasestr.c
@@
-1,5
+1,5
@@
/* Case-insensitive searching in a string.
/* Case-insensitive searching in a string.
- Copyright (C) 2005-200
7
Free Software Foundation, Inc.
+ Copyright (C) 2005-200
8
Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2005.
This program is free software: you can redistribute it and/or modify
Written by Bruno Haible <bruno@clisp.org>, 2005.
This program is free software: you can redistribute it and/or modify
@@
-38,7
+38,9
@@
#if HAVE_MBRTOWC
/* Knuth-Morris-Pratt algorithm.
See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm
#if HAVE_MBRTOWC
/* Knuth-Morris-Pratt algorithm.
See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm
- Return a boolean indicating success. */
+ Return a boolean indicating success:
+ Return true and set *RESULTP if the search was completed.
+ Return false if it was aborted because not enough memory was available. */
static bool
knuth_morris_pratt_multibyte (const char *haystack, const char *needle,
const char **resultp)
static bool
knuth_morris_pratt_multibyte (const char *haystack, const char *needle,
const char **resultp)