summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-15 07:46:29 (GMT)
committerGitHub <noreply@github.com>2021-10-15 07:46:29 (GMT)
commit8e5de40f90476249e9a2e5ef135143b5c6a0b512 (patch)
tree4a4442049bd006be2760d8456c4bb6837f5d1db8 /Include/Python.h
parent9ce9cfe595d64e3081e69de7296042cc54bccf18 (diff)
downloadcpython-8e5de40f90476249e9a2e5ef135143b5c6a0b512.zip
cpython-8e5de40f90476249e9a2e5ef135143b5c6a0b512.tar.gz
cpython-8e5de40f90476249e9a2e5ef135143b5c6a0b512.tar.bz2
bpo-35134: Move classobject.h to Include/cpython/ (GH-28968)
Move classobject.h, context.h, genobject.h and longintrepr.h header files from Include/ to Include/cpython/. Remove redundant "#ifndef Py_LIMITED_API" in context.h. Remove explicit #include "longintrepr.h" in C files. It's not needed, Python.h already includes it.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 89f60fe..bc8d4f9 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -46,7 +46,7 @@
#include "bytesobject.h"
#include "unicodeobject.h"
#include "longobject.h"
-#include "longintrepr.h"
+#include "cpython/longintrepr.h"
#include "boolobject.h"
#include "floatobject.h"
#include "complexobject.h"
@@ -61,7 +61,7 @@
#include "methodobject.h"
#include "moduleobject.h"
#include "cpython/funcobject.h"
-#include "classobject.h"
+#include "cpython/classobject.h"
#include "fileobject.h"
#include "pycapsule.h"
#include "code.h"
@@ -70,7 +70,8 @@
#include "sliceobject.h"
#include "cpython/cellobject.h"
#include "iterobject.h"
-#include "genobject.h"
+#include "pystate.h"
+#include "cpython/genobject.h"
#include "descrobject.h"
#include "genericaliasobject.h"
#include "warnings.h"
@@ -83,8 +84,7 @@
#include "pyerrors.h"
#include "cpython/initconfig.h"
#include "pythread.h"
-#include "pystate.h"
-#include "context.h"
+#include "cpython/context.h"
#include "modsupport.h"
#include "compile.h"
#include "pythonrun.h"