diff options
author | shadchin <shadchin@yandex-team.com> | 2024-04-17 10:05:37 +0300 |
---|---|---|
committer | shadchin <shadchin@yandex-team.com> | 2024-04-17 10:16:13 +0300 |
commit | fe11d950c6acd58ff2addba72daf8a9216c550dd (patch) | |
tree | 8c87ea09f267183a95bb2005ca9eb63585826cb4 /contrib | |
parent | 78f427d10a1aa4f27b0b4eff5a510a214a5a93a2 (diff) | |
download | ydb-fe11d950c6acd58ff2addba72daf8a9216c550dd.tar.gz |
Backport for update oracledb
f24378ca43fc28be283610a9bf8df88c4307f174
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/tools/cython/Cython/Includes/cpython/unicode.pxd | 5 | ||||
-rwxr-xr-x | contrib/tools/cython/cython.py | 2 | ||||
-rw-r--r-- | contrib/tools/cython/patches/backport-for-oracledb.patch | 11 |
3 files changed, 17 insertions, 1 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/unicode.pxd b/contrib/tools/cython/Cython/Includes/cpython/unicode.pxd index 2072c8cb2a..81260f2adc 100644 --- a/contrib/tools/cython/Cython/Includes/cpython/unicode.pxd +++ b/contrib/tools/cython/Cython/Includes/cpython/unicode.pxd @@ -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) diff --git a/contrib/tools/cython/cython.py b/contrib/tools/cython/cython.py index 4111f048da..554ba1b4ff 100755 --- a/contrib/tools/cython/cython.py +++ b/contrib/tools/cython/cython.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Change content of this file to change uids for cython programs - cython 0.29.37 r1 +# Change content of this file to change uids for cython programs - cython 0.29.37 r0 # # Cython -- Main Program, generic diff --git a/contrib/tools/cython/patches/backport-for-oracledb.patch b/contrib/tools/cython/patches/backport-for-oracledb.patch new file mode 100644 index 0000000000..10c3a54843 --- /dev/null +++ b/contrib/tools/cython/patches/backport-for-oracledb.patch @@ -0,0 +1,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) |