mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Made _ParseTupleFinds only defined to unicodeobject.c
This commit is contained in:
parent
292a069b88
commit
6f7e6fb7a2
2 changed files with 4 additions and 0 deletions
|
@ -103,6 +103,8 @@ stringlib_contains_obj(PyObject* str, PyObject* sub)
|
||||||
|
|
||||||
#endif /* STRINGLIB_STR */
|
#endif /* STRINGLIB_STR */
|
||||||
|
|
||||||
|
#ifdef FROM_UNICODE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This function is a helper for the "find" family (find, rfind, index,
|
This function is a helper for the "find" family (find, rfind, index,
|
||||||
rindex) of unicodeobject.c file, because they all have the same
|
rindex) of unicodeobject.c file, because they all have the same
|
||||||
|
@ -149,6 +151,7 @@ _ParseTupleFinds (PyObject *args, PyObject **substring,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* FROM_UNICODE */
|
||||||
|
|
||||||
#endif /* STRINGLIB_FIND_H */
|
#endif /* STRINGLIB_FIND_H */
|
||||||
|
|
||||||
|
|
|
@ -4533,6 +4533,7 @@ STRINGLIB_CMP(const Py_UNICODE* str, const Py_UNICODE* other, Py_ssize_t len)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define STRINGLIB_EMPTY unicode_empty
|
#define STRINGLIB_EMPTY unicode_empty
|
||||||
|
#define FROM_UNICODE
|
||||||
|
|
||||||
#include "stringlib/fastsearch.h"
|
#include "stringlib/fastsearch.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue