summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_context.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-22 17:55:48 (GMT)
committerGitHub <noreply@github.com>2022-01-22 17:55:48 (GMT)
commit500c146387b01ea797b52e6a54caf228384e184c (patch)
treeb10c015f37540da45ed534d0b4f9711c12a19f3e /Include/internal/pycore_context.h
parent1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 (diff)
downloadcpython-500c146387b01ea797b52e6a54caf228384e184c.zip
cpython-500c146387b01ea797b52e6a54caf228384e184c.tar.gz
cpython-500c146387b01ea797b52e6a54caf228384e184c.tar.bz2
bpo-46417: Clear more static types (GH-30796)
* Move PyContext static types into object.c static_types list. * Rename PyContextTokenMissing_Type to _PyContextTokenMissing_Type and declare it in pycore_context.h. * _PyHamtItems types are no long exported: replace PyAPI_DATA() with extern.
Diffstat (limited to 'Include/internal/pycore_context.h')
-rw-r--r--Include/internal/pycore_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/internal/pycore_context.h b/Include/internal/pycore_context.h
index 31ca0a4..1bf4e8f 100644
--- a/Include/internal/pycore_context.h
+++ b/Include/internal/pycore_context.h
@@ -8,9 +8,11 @@
#include "pycore_hamt.h" /* PyHamtObject */
+extern PyTypeObject _PyContextTokenMissing_Type;
+
/* runtime lifecycle */
-PyStatus _PyContext_InitTypes(PyInterpreterState *);
+PyStatus _PyContext_Init(PyInterpreterState *);
void _PyContext_Fini(PyInterpreterState *);