[Python-checkins] r59022 - in python/trunk/Objects: stringlib/find.h unicodeobject.c

facundo.batista python-checkins at python.org
Fri Nov 16 20:16:15 CET 2007


Author: facundo.batista
Date: Fri Nov 16 20:16:15 2007
New Revision: 59022

Modified:
   python/trunk/Objects/stringlib/find.h
   python/trunk/Objects/unicodeobject.c
Log:

Made _ParseTupleFinds only defined to unicodeobject.c


Modified: python/trunk/Objects/stringlib/find.h
==============================================================================
--- python/trunk/Objects/stringlib/find.h	(original)
+++ python/trunk/Objects/stringlib/find.h	Fri Nov 16 20:16:15 2007
@@ -103,6 +103,8 @@
 
 #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 @@
     return 1;
 }
 
+#endif /* FROM_UNICODE */
 
 #endif /* STRINGLIB_FIND_H */
 

Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c	(original)
+++ python/trunk/Objects/unicodeobject.c	Fri Nov 16 20:16:15 2007
@@ -4533,6 +4533,7 @@
 }
 
 #define STRINGLIB_EMPTY unicode_empty
+#define FROM_UNICODE
 
 #include "stringlib/fastsearch.h"
 


More information about the Python-checkins mailing list