Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
7640dbb4
Commit
7640dbb4
authored
7 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix _PyGen_Send() usage in Windows.
parent
5ca5dad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+6
-3
No files found.
Cython/Utility/Coroutine.c
View file @
7640dbb4
...
...
@@ -783,12 +783,14 @@ static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
ret
=
__Pyx_async_gen_asend_send
(
yf
,
value
);
}
else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (!defined(_MSC_VER) || PY_VERSION_HEX >= 0x03060000)
// _PyGen_Send() is not exported before Py3.6
if
(
PyGen_CheckExact
(
yf
))
{
ret
=
_PyGen_Send
((
PyGenObject
*
)
yf
,
value
==
Py_None
?
NULL
:
value
);
}
else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact)
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (!defined(_MSC_VER) || PY_VERSION_HEX >= 0x03060000)
// _PyGen_Send() is not exported before Py3.6
if
(
PyCoro_CheckExact
(
yf
))
{
ret
=
_PyGen_Send
((
PyGenObject
*
)
yf
,
value
==
Py_None
?
NULL
:
value
);
}
else
...
...
@@ -883,7 +885,8 @@ static PyObject *__Pyx_Generator_Next(PyObject *self) {
ret
=
__Pyx_Generator_Next
(
yf
);
}
else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (!defined(_MSC_VER) || PY_VERSION_HEX >= 0x03060000)
// _PyGen_Send() is not exported before Py3.6
if
(
PyGen_CheckExact
(
yf
))
{
ret
=
_PyGen_Send
((
PyGenObject
*
)
yf
,
NULL
);
}
else
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment