diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2019-05-10 17:29:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 17:29:55 (GMT) |
commit | 86ea58149c3e83f402cecd17e6a536865fb06ce1 (patch) | |
tree | a7a26190fcb98d298cc992da4ad9d8f663304bdb /Include | |
parent | 351c67416ba4451eb3928fa0b2e933c2f25df1a3 (diff) | |
download | cpython-86ea58149c3e83f402cecd17e6a536865fb06ce1.zip cpython-86ea58149c3e83f402cecd17e6a536865fb06ce1.tar.gz cpython-86ea58149c3e83f402cecd17e6a536865fb06ce1.tar.bz2 |
bpo-36737: Use the module state C-API for warnings. (gh-13159)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_pystate.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index adb1f5d..7144bbc 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -81,7 +81,7 @@ extern void PyLong_Fini(void); extern void _PyFaulthandler_Fini(void); extern void _PyHash_Fini(void); extern int _PyTraceMalloc_Fini(void); -extern void _PyWarnings_Fini(_PyRuntimeState *runtime); +extern void _PyWarnings_Fini(PyInterpreterState *interp); extern void _PyGILState_Init( _PyRuntimeState *runtime, diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 67bcd14..69ceecb 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -90,6 +90,8 @@ struct _is { PyObject *pyexitmodule; uint64_t tstate_next_unique_id; + + struct _warnings_runtime_state warnings; }; PyAPI_FUNC(struct _is*) _PyInterpreterState_LookUpID(PY_INT64_T); @@ -179,7 +181,6 @@ typedef struct pyruntimestate { int nexitfuncs; struct _gc_runtime_state gc; - struct _warnings_runtime_state warnings; struct _ceval_runtime_state ceval; struct _gilstate_runtime_state gilstate; |