summaryrefslogtreecommitdiffstats
path: root/Include/compile.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/compile.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/compile.h')
-rw-r--r--Include/compile.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/compile.h b/Include/compile.h
index dbba85b..12417ce 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -2,7 +2,6 @@
#define Py_COMPILE_H
#ifndef Py_LIMITED_API
-#include "code.h"
#ifdef __cplusplus
extern "C" {