bpo-40421: Add Include/cpython/code.h header file by vstinner · Pull Request #19756 · python/cpython (original) (raw)

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.

Name 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.

https://bugs.python.org/issue40421