summaryrefslogtreecommitdiffstats
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-02 01:39:38 (GMT)
committerGitHub <noreply@github.com>2023-07-02 01:39:38 (GMT)
commit8571b271e7d16fe87d669a2e1e50f5ae3732bb31 (patch)
treeeb2adf17a72bab4efbb439fa2f74cacdaa4ca5e9 /Python/frozenmain.c
parentfeb51f3a6443d7c0148e2e7be2ed58b4c69fa265 (diff)
downloadcpython-8571b271e7d16fe87d669a2e1e50f5ae3732bb31.zip
cpython-8571b271e7d16fe87d669a2e1e50f5ae3732bb31.tar.gz
cpython-8571b271e7d16fe87d669a2e1e50f5ae3732bb31.tar.bz2
gh-106320: Remove private _PyInterpreterState functions (#106325)
Remove private _PyThreadState and _PyInterpreterState C API functions: move them to the internal C API (pycore_pystate.h and pycore_interp.h). Don't export most of these functions anymore, but still export functions used by tests. Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C API, but keep it in the stable API.
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r--Python/frozenmain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index f8be165..767f980 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -1,7 +1,8 @@
/* Python interpreter main program for frozen scripts */
#include "Python.h"
-#include "pycore_runtime.h" // _PyRuntime_Initialize()
+#include "pycore_pystate.h" // _Py_GetConfig()
+#include "pycore_runtime.h" // _PyRuntime_Initialize()
#include <locale.h>
#ifdef MS_WINDOWS