diff Objects/stringlib/find.h @ 43576:697cc31a83f6

For PEP3137: Adds missing methods to the mutable PyBytes object (soon to be called a buffer). Shares code with stringobject when possible. Adds unit tests with common code that should be usable to test the PEPs mutable buffer() and immutable bytes() types. http://bugs.python.org/issue1261
author Gregory P. Smith <greg@mad-scientist.com>
date Tue, 16 Oct 2007 06:31:30 +0000
parents 19fd6141940d
children 41f7c13ef161
line wrap: on
line diff
--- a/Objects/stringlib/find.h	Tue Oct 16 00:26:33 2007 +0000
+++ b/Objects/stringlib/find.h	Tue Oct 16 06:31:30 2007 +0000
@@ -90,7 +90,7 @@
     return stringlib_rfind(str + start, end - start, sub, sub_len, start);
 }
 
-#ifdef STRINGLIB_STR
+#ifdef STRINGLIB_WANT_CONTAINS_OBJ
 
 Py_LOCAL_INLINE(int)
 stringlib_contains_obj(PyObject* str, PyObject* sub)