From b8f704d2190125a7750b50cd9b67267b9c20fd43 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 28 Apr 2020 17:07:12 +0200 Subject: 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. --- Include/Python.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/Python.h') diff --git a/Include/Python.h b/Include/Python.h index 868e31bfa4..dcd0a57ac1 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" -- cgit v1.2.1