summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/partition.h
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-05-27 14:58:20 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2006-05-27 14:58:20 (GMT)
commitc2d29c5a6dc701f6fc1dc9b5274053f17c660960 (patch)
treedbd3a26ab83c74ddbe7a6ca59770e56821436d9d /Objects/stringlib/partition.h
parent94b8c122fddac469dd6af9ebf7c2eca27f39eb76 (diff)
downloadcpython-c2d29c5a6dc701f6fc1dc9b5274053f17c660960.zip
cpython-c2d29c5a6dc701f6fc1dc9b5274053f17c660960.tar.gz
cpython-c2d29c5a6dc701f6fc1dc9b5274053f17c660960.tar.bz2
needforspeed: replace improvements, changed to Py_LOCAL_INLINE
where appropriate
Diffstat (limited to 'Objects/stringlib/partition.h')
-rw-r--r--Objects/stringlib/partition.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringlib/partition.h b/Objects/stringlib/partition.h
index 11a12c6..1486347 100644
--- a/Objects/stringlib/partition.h
+++ b/Objects/stringlib/partition.h
@@ -7,7 +7,7 @@
#error must include "stringlib/fastsearch.h" before including this module
#endif
-Py_LOCAL(PyObject*)
+Py_LOCAL_INLINE(PyObject*)
stringlib_partition(
PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len,
PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len
@@ -51,7 +51,7 @@ stringlib_partition(
return out;
}
-Py_LOCAL(PyObject*)
+Py_LOCAL_INLINE(PyObject*)
stringlib_rpartition(
PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len,
PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len