blob: 10c3a54843507ea0c9410aba4ad5aee0496090a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- contrib/tools/cython/Cython/Includes/cpython/unicode.pxd (index)
+++ contrib/tools/cython/Cython/Includes/cpython/unicode.pxd (working tree)
@@ -570,3 +570,8 @@ cdef extern from *:
int Py_UCS4_strncmp(const Py_UCS4 *s1, const Py_UCS4 *s2, size_t n)
Py_UCS4* Py_UCS4_strchr(const Py_UCS4 *s, Py_UCS4 c)
Py_UCS4* Py_UCS4_strrchr(const Py_UCS4 *s, Py_UCS4 c)
+
+# Backport from Cython 3
+ Py_UCS4 PyUnicode_READ(int kind, void *data, Py_ssize_t index)
+ unsigned int PyUnicode_KIND(object o)
+ void *PyUnicode_DATA(object o)
|