summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/stringdefs.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-02 21:12:58 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-02 21:12:58 (GMT)
commit5b7139aab41becad7ad736bd9ff2332960bf67f9 (patch)
tree9d3d3e7da0c0073af1fd2784fa7892d3222f9e88 /Objects/stringlib/stringdefs.h
parentd3e323215c6d9f303bf42875f98e365e2ff1734f (diff)
downloadcpython-5b7139aab41becad7ad736bd9ff2332960bf67f9.zip
cpython-5b7139aab41becad7ad736bd9ff2332960bf67f9.tar.gz
cpython-5b7139aab41becad7ad736bd9ff2332960bf67f9.tar.bz2
Issue #7462: Implement the stringlib fast search algorithm for the `rfind`,
`rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna.
Diffstat (limited to 'Objects/stringlib/stringdefs.h')
-rw-r--r--Objects/stringlib/stringdefs.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/stringlib/stringdefs.h b/Objects/stringlib/stringdefs.h
index f6d0b51..4a95258 100644
--- a/Objects/stringlib/stringdefs.h
+++ b/Objects/stringlib/stringdefs.h
@@ -21,7 +21,6 @@
#define STRINGLIB_NEW PyString_FromStringAndSize
#define STRINGLIB_RESIZE _PyString_Resize
#define STRINGLIB_CHECK PyString_Check
-#define STRINGLIB_CMP memcmp
#define STRINGLIB_TOSTR PyObject_Str
#define STRINGLIB_GROUPING _PyString_InsertThousandsGrouping
#define STRINGLIB_GROUPING_LOCALE _PyString_InsertThousandsGroupingLocale