summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-28 15:07:12 (GMT)
committerGitHub <noreply@github.com>2020-04-28 15:07:12 (GMT)
commitb8f704d2190125a7750b50cd9b67267b9c20fd43 (patch)
tree291e738b27f0c804e51b8b5cf93821d8c89d5dc7 /Include/Python.h
parent7c59d7c9860cdbaf4a9c26c9142aebd3259d046e (diff)
downloadcpython-b8f704d2190125a7750b50cd9b67267b9c20fd43.zip
cpython-b8f704d2190125a7750b50cd9b67267b9c20fd43.tar.gz
cpython-b8f704d2190125a7750b50cd9b67267b9c20fd43.tar.bz2
bpo-40421: Add Include/cpython/code.h header file (GH-19756)
bpo-35134, bpo-40421: Add Include/cpython/code.h header file. code.h now defines PyCodeObject type in the limited C API. It is now included by Python.h. Give a name to the PyCodeObject structure: it is now called "struct PyCodeObject". So it becomes possible to define PyCodeObject as "struct PyCodeObject" in the limited C API without defining the structure.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 868e31b..dcd0a57 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -114,6 +114,7 @@
#include "classobject.h"
#include "fileobject.h"
#include "pycapsule.h"
+#include "code.h"
#include "pyframe.h"
#include "traceback.h"
#include "sliceobject.h"