commit | 8cc70dcf7020f1e5c286fed5b2a1034f5ba36afe | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 11 23:22:22 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 11 23:22:22 2011 +0200 |
tree | db00355ce68c1bfaab38405c9400c22f31b6c7db | |
parent | c5af7730e34f15d917730c66076125d4e545f11a [diff] [blame] |
Fix fastsearch for UCS2 and UCS4 * If needle is 0, try (p[0] >> 16) & 0xff for UCS4 * Disable fastsearch_memchr_1char() if needle is zero for UCS2 and UCS4
diff --git a/Objects/stringlib/undef.h b/Objects/stringlib/undef.h index 40b4391..fd87e56 100644 --- a/Objects/stringlib/undef.h +++ b/Objects/stringlib/undef.h
@@ -1,5 +1,6 @@ #undef FASTSEARCH #undef STRINGLIB +#undef STRINGLIB_SIZEOF_CHAR #undef STRINGLIB_CHAR #undef STRINGLIB_STR #undef STRINGLIB_LEN