aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-03-01 03:44:13 +0100
committerGitHub <noreply@github.com>2019-03-01 03:44:13 +0100
commitf684d83d86e1990784816d4b243d724e6ab8304f (patch)
tree14d2a51e9bd7751ab89cf21363519d19e3970b28 /Python
parentab71f8b793f7b42853ccd2a127ae7720adc5bcb4 (diff)
downloadcpython3-f684d83d86e1990784816d4b243d724e6ab8304f.tar.gz
bpo-36142: Exclude coreconfig.h from Py_LIMITED_API (GH-12111)
The whole coreconfig.h header is now excluded from Py_LIMITED_API. Move functions definitions into a new internal pycore_coreconfig.h header. * Move Include/coreconfig.h to Include/cpython/coreconfig.h * coreconfig.h header is now excluded from Py_LIMITED_API * Move functions to pycore_coreconfig.h
Diffstat (limited to 'Python')
-rw-r--r--Python/coreconfig.c1
-rw-r--r--Python/pathconfig.c1
-rw-r--r--Python/pylifecycle.c1
-rw-r--r--Python/pystate.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/Python/coreconfig.c b/Python/coreconfig.c
index 2fb4e3fd19..06dbada6df 100644
--- a/Python/coreconfig.c
+++ b/Python/coreconfig.c
@@ -1,4 +1,5 @@
#include "Python.h"
+#include "pycore_coreconfig.h"
#include "pycore_fileutils.h"
#include "pycore_pylifecycle.h"
#include "pycore_pymem.h"
diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index c9bddcf6c6..eadc09baa9 100644
--- a/Python/pathconfig.c
+++ b/Python/pathconfig.c
@@ -2,6 +2,7 @@
#include "Python.h"
#include "osdefs.h"
+#include "pycore_coreconfig.h"
#include "pycore_fileutils.h"
#include "pycore_pathconfig.h"
#include "pycore_pymem.h"
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index eb0fdddb4b..1d65d3b86f 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -4,6 +4,7 @@
#include "Python-ast.h"
#undef Yield /* undefine macro conflicting with <winbase.h> */
+#include "pycore_coreconfig.h"
#include "pycore_context.h"
#include "pycore_fileutils.h"
#include "pycore_hamt.h"
diff --git a/Python/pystate.c b/Python/pystate.c
index 6fe947d364..a9a425c2f4 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2,6 +2,7 @@
/* Thread and interpreter state structures and their interfaces */
#include "Python.h"
+#include "pycore_coreconfig.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h"