]> granicus.if.org Git - python/commitdiff
Made _ParseTupleFinds only defined to unicodeobject.c
authorFacundo Batista <facundobatista@gmail.com>
Fri, 16 Nov 2007 19:16:15 +0000 (19:16 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Fri, 16 Nov 2007 19:16:15 +0000 (19:16 +0000)
Objects/stringlib/find.h
Objects/unicodeobject.c

index d3490b902fbf868b1395d654264b873d7ac8a7a7..5b17c7fb0797f35bbe95f2311beaaf283d74b9df 100644 (file)
@@ -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 */
 
index 06c8fc3b5a86a1353979c70d5c295dc3c9c7cd0f..7043d5f9280ffbe27e9d7df4e3d990c137324fbc 100644 (file)
@@ -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"