mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Fix warnings for PyEval_GetCoroutineWrapper
This commit is contained in:
parent
7544508f02
commit
f487a005d6
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj,
|
||||||
PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
|
PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
|
||||||
PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
|
PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
|
||||||
PyAPI_FUNC(void) PyEval_SetCoroutineWrapper(PyObject *wrapper);
|
PyAPI_FUNC(void) PyEval_SetCoroutineWrapper(PyObject *wrapper);
|
||||||
PyAPI_FUNC(PyObject *) PyEval_GetCoroutineWrapper();
|
PyAPI_FUNC(PyObject *) PyEval_GetCoroutineWrapper(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct _frame; /* Avoid including frameobject.h */
|
struct _frame; /* Avoid including frameobject.h */
|
||||||
|
|
|
@ -4414,7 +4414,7 @@ PyEval_SetCoroutineWrapper(PyObject *wrapper)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
PyEval_GetCoroutineWrapper()
|
PyEval_GetCoroutineWrapper(void)
|
||||||
{
|
{
|
||||||
PyThreadState *tstate = PyThreadState_GET();
|
PyThreadState *tstate = PyThreadState_GET();
|
||||||
return tstate->coroutine_wrapper;
|
return tstate->coroutine_wrapper;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue