summaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2013-02-11 23:47:13 +0100
committerTom de Vries <tom@codesourcery.com>2013-02-12 00:00:49 +0100
commita175b684e2fdf1849a4be8168456e36bf8ce3f6a (patch)
tree42a683d0b7f847ad8d5bc4bc5be65199cb4e2771 /string
parent310998fe2b7ec34ffeeec51ade90e368f3e2fb55 (diff)
Fix typo, improve comment, remove superfluous #undefs, add missing #undef.
Diffstat (limited to 'string')
-rw-r--r--string/str-two-way.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/string/str-two-way.h b/string/str-two-way.h
index 8912f24e57..1cc20ee47e 100644
--- a/string/str-two-way.h
+++ b/string/str-two-way.h
@@ -19,7 +19,7 @@
/* Before including this file, you need to include <string.h> (and
<config.h> before that, if not part of libc), and define:
- RESULT_TYPE A macro that expands to the return type.
+ RETURN_TYPE A macro that expands to the return type.
AVAILABLE(h, h_l, j, n_l)
A macro that returns nonzero if there are
at least N_L bytes left starting at H[J].
@@ -37,7 +37,11 @@
The argument is an 'unsigned char'; the result
must be an 'unsigned char' as well.
- This file undefines the macros documented above, and defines
+ Other macros you may optionally define:
+ RET0_IF_0(a) Documented below at default definition.
+ CHECK_EOL Same.
+
+ This file undefines the macros listed above, and defines
LONG_NEEDLE_THRESHOLD.
*/
@@ -516,10 +520,8 @@ two_way_long_needle (const unsigned char *haystack, size_t haystack_len,
}
#undef AVAILABLE
-#undef AVAILABLE1
-#undef AVAILABLE2
-#undef AVAILABLE1_USES_J
#undef CANON_ELEMENT
#undef CMP_FUNC
#undef RET0_IF_0
#undef RETURN_TYPE
+#undef CHECK_EOL