diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2007-10-16 06:31:30 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-10-16 06:31:30 (GMT) |
commit | 60d241f135f10312f5a638846659d7e471f6cac9 (patch) | |
tree | 620abe8a5e99620cec51a3476ea96c2459956e70 /Objects/stringlib/find.h | |
parent | 3d2fd7f923c35fe61c0f26f2ae150d73a42859b9 (diff) | |
download | cpython-60d241f135f10312f5a638846659d7e471f6cac9.zip cpython-60d241f135f10312f5a638846659d7e471f6cac9.tar.gz cpython-60d241f135f10312f5a638846659d7e471f6cac9.tar.bz2 |
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
Diffstat (limited to 'Objects/stringlib/find.h')
-rw-r--r-- | Objects/stringlib/find.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/find.h b/Objects/stringlib/find.h index 4cdbb09..3b924b6 100644 --- a/Objects/stringlib/find.h +++ b/Objects/stringlib/find.h @@ -90,7 +90,7 @@ stringlib_rfind_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, 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) |