summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-29 02:18:52 (GMT)
committerGitHub <noreply@github.com>2023-08-29 02:18:52 (GMT)
commit15c5a50797020944e9ccb72bf3e28c3cca2e35c3 (patch)
tree19d539d1c82456c79cb8a7d4f45bd117a60fdead /Modules
parent301eb7e607be6ea15c7a1e792f1cb927ba423932 (diff)
downloadcpython-15c5a50797020944e9ccb72bf3e28c3cca2e35c3.zip
cpython-15c5a50797020944e9ccb72bf3e28c3cca2e35c3.tar.gz
cpython-15c5a50797020944e9ccb72bf3e28c3cca2e35c3.tar.bz2
gh-106320: Remove private pythonrun API (#108599)
Remove these private functions from the public C API: * _PyRun_AnyFileObject() * _PyRun_InteractiveLoopObject() * _PyRun_SimpleFileObject() * _Py_SourceAsString() Move them to the internal C API: add a new pycore_pythonrun.h header file. No longer export these functions.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c1
-rw-r--r--Modules/symtablemodule.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c
index a5c0093..7f88c97 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -7,6 +7,7 @@
#include "pycore_pathconfig.h" // _PyPathConfig_ComputeSysPath0()
#include "pycore_pylifecycle.h" // _Py_PreInitializeFromPyArgv()
#include "pycore_pystate.h" // _PyInterpreterState_GET()
+#include "pycore_pythonrun.h" // _PyRun_AnyFileObject()
/* Includes for exit_sigint() */
#include <stdio.h> // perror()
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c
index 1cc319c..dba8003 100644
--- a/Modules/symtablemodule.c
+++ b/Modules/symtablemodule.c
@@ -1,4 +1,5 @@
#include "Python.h"
+#include "pycore_pythonrun.h" // _Py_SourceAsString()
#include "pycore_symtable.h" // struct symtable
#include "clinic/symtablemodule.c.h"