diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-12-07 21:02:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 21:02:17 (GMT) |
commit | 8262c96bcc1841188866c1b022d9087e89639d98 (patch) | |
tree | 7f57ca54cf571b95c5fe175fdc7456bbba28b667 /Include/internal/pycore_ceval.h | |
parent | 91b59a3fcdcb93d74bb89cce536f11d2990f655d (diff) | |
download | cpython-8262c96bcc1841188866c1b022d9087e89639d98.zip cpython-8262c96bcc1841188866c1b022d9087e89639d98.tar.gz cpython-8262c96bcc1841188866c1b022d9087e89639d98.tar.bz2 |
bpo-46008: Return void from _PyEval_InitState(). (gh-29970)
This falls into the category of keep-allocation-and-initialization separate. It also allows us to use _PyEval_InitState() safely in functions that return void.
https://bugs.python.org/issue46008
Diffstat (limited to 'Include/internal/pycore_ceval.h')
-rw-r--r-- | Include/internal/pycore_ceval.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index 26d5677..20508d4 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -17,7 +17,7 @@ struct _ceval_runtime_state; extern void _Py_FinishPendingCalls(PyThreadState *tstate); extern void _PyEval_InitRuntimeState(struct _ceval_runtime_state *); -extern int _PyEval_InitState(struct _ceval_state *ceval); +extern void _PyEval_InitState(struct _ceval_state *, PyThread_type_lock); extern void _PyEval_FiniState(struct _ceval_state *ceval); PyAPI_FUNC(void) _PyEval_SignalReceived(PyInterpreterState *interp); PyAPI_FUNC(int) _PyEval_AddPendingCall( |