X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=string%2Fstr-two-way.h;h=f32df4a6f213bb6f08b2ffc7cb024836bea5bf6f;hb=0e87343e204b44468ffad0ec5dc8c8d6068f1227;hp=8912f24e57d7e4f926df454316b6a83f46fc8f8a;hpb=568035b7874a099087b77f7bba3e36a1173787b0;p=platform%2Fupstream%2Fglibc.git diff --git a/string/str-two-way.h b/string/str-two-way.h index 8912f24..f32df4a 100644 --- a/string/str-two-way.h +++ b/string/str-two-way.h @@ -1,5 +1,5 @@ /* Byte-wise substring search, using the Two-Way algorithm. - Copyright (C) 2008-2013 Free Software Foundation, Inc. + Copyright (C) 2008-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Eric Blake , 2008. @@ -19,7 +19,7 @@ /* Before including this file, you need to include (and 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