Skip to content

Commit 6668701

Browse files
msimacektimfel
authored andcommitted
Update Cython patch
1 parent 85f4acd commit 6668701

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

graalpython/lib-graalpython/patches/Cython/Cython-0.29.32.patch

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ index 202dea7..1e83e66 100644
112112
# integers. Silently reduce values larger than PY_SSIZE_T_MAX to
113113
# PY_SSIZE_T_MAX, silently boost the start and stop values less than
114114
diff --git a/Cython/Utility/Coroutine.c b/Cython/Utility/Coroutine.c
115-
index 1ad27df..0965cb2 100644
115+
index 474e6d2..e15f984 100644
116116
--- a/Cython/Utility/Coroutine.c
117117
+++ b/Cython/Utility/Coroutine.c
118118
@@ -1299,7 +1299,7 @@ static void __Pyx_Coroutine_del(PyObject *self) {
@@ -141,10 +141,10 @@ index b2c67dc..ad80ca4 100644
141141
#endif
142142
else if (PyMethod_Check(method)) {
143143
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
144-
index f8bf885..62fec57 100644
144+
index f8bf885..94d0ca6 100644
145145
--- a/Cython/Utility/ModuleSetupCode.c
146146
+++ b/Cython/Utility/ModuleSetupCode.c
147-
@@ -591,7 +593,7 @@ class __Pyx_FakeReference {
147+
@@ -591,7 +591,7 @@ class __Pyx_FakeReference {
148148
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
149149
#else
150150
#define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
@@ -153,7 +153,20 @@ index f8bf885..62fec57 100644
153153
#endif
154154

155155
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
156-
@@ -1076,7 +1078,7 @@ PyEval_InitThreads();
156+
@@ -838,11 +838,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
157+
#define __Pyx_PyType_AsAsync(obj) NULL
158+
#endif
159+
#ifndef __Pyx_PyAsyncMethodsStruct
160+
- typedef struct {
161+
- unaryfunc am_await;
162+
- unaryfunc am_aiter;
163+
- unaryfunc am_anext;
164+
- } __Pyx_PyAsyncMethodsStruct;
165+
+ #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
166+
#endif
167+
168+
169+
@@ -1076,7 +1072,7 @@ PyEval_InitThreads();
157170
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
158171
#if PY_VERSION_HEX >= 0x030700A1
159172
static PY_INT64_T main_interpreter_id = -1;

0 commit comments

Comments
 (0)