summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-21 21:27:47 (GMT)
committerGitHub <noreply@github.com>2018-11-21 21:27:47 (GMT)
commitbcda8f1d42a98d9022736dd52d855be8e220fe15 (patch)
treed340839a87b14d84adf04fceb230c0922fef0b6c /Python
parentaac1f81eef971876ba5b1673db9ce6620311c469 (diff)
downloadcpython-bcda8f1d42a98d9022736dd52d855be8e220fe15.zip
cpython-bcda8f1d42a98d9022736dd52d855be8e220fe15.tar.gz
cpython-bcda8f1d42a98d9022736dd52d855be8e220fe15.tar.bz2
bpo-35081: Add Include/internal/pycore_object.h (GH-10640)
Move _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() from Include/objimpl.h to Include/internal/pycore_object.h.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c1
-rw-r--r--Python/context.c5
-rw-r--r--Python/hamt.c5
3 files changed, 7 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 9c0ab06..7b24655 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -10,6 +10,7 @@
#define PY_LOCAL_AGGRESSIVE
#include "Python.h"
+#include "pycore_object.h"
#include "pycore_pystate.h"
#include "code.h"
diff --git a/Python/context.c b/Python/context.c
index b548ffe..302f769 100644
--- a/Python/context.c
+++ b/Python/context.c
@@ -1,9 +1,10 @@
#include "Python.h"
-#include "structmember.h"
-#include "pycore_pystate.h"
#include "pycore_context.h"
#include "pycore_hamt.h"
+#include "pycore_object.h"
+#include "pycore_pystate.h"
+#include "structmember.h"
#define CONTEXT_FREELIST_MAXLEN 255
diff --git a/Python/hamt.c b/Python/hamt.c
index 3fe70b40..d734d6e 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -1,8 +1,9 @@
#include "Python.h"
-#include "structmember.h"
-#include "pycore_pystate.h"
#include "pycore_hamt.h"
+#include "pycore_object.h"
+#include "pycore_pystate.h"
+#include "structmember.h"
/*
This file provides an implemention of an immutable mapping using the