From: Facundo Batista Date: Fri, 16 Nov 2007 19:16:15 +0000 (+0000) Subject: Made _ParseTupleFinds only defined to unicodeobject.c X-Git-Tag: v2.6a1~1046 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f7e6fb7a2e5f379a140f320e7c19cb171ab72c1;p=python Made _ParseTupleFinds only defined to unicodeobject.c --- diff --git a/Objects/stringlib/find.h b/Objects/stringlib/find.h index d3490b902f..5b17c7fb07 100644 --- a/Objects/stringlib/find.h +++ b/Objects/stringlib/find.h @@ -103,6 +103,8 @@ stringlib_contains_obj(PyObject* str, PyObject* sub) #endif /* STRINGLIB_STR */ +#ifdef FROM_UNICODE + /* This function is a helper for the "find" family (find, rfind, index, rindex) of unicodeobject.c file, because they all have the same @@ -149,6 +151,7 @@ _ParseTupleFinds (PyObject *args, PyObject **substring, return 1; } +#endif /* FROM_UNICODE */ #endif /* STRINGLIB_FIND_H */ diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 06c8fc3b5a..7043d5f928 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -4533,6 +4533,7 @@ STRINGLIB_CMP(const Py_UNICODE* str, const Py_UNICODE* other, Py_ssize_t len) } #define STRINGLIB_EMPTY unicode_empty +#define FROM_UNICODE #include "stringlib/fastsearch.h"