mirror of
https://github.com/python/cpython.git
synced 2024-11-27 23:47:29 +01:00
b8f704d219
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.
21 lines
318 B
C
21 lines
318 B
C
/* Definitions for bytecode */
|
|
|
|
#ifndef Py_CODE_H
|
|
#define Py_CODE_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct PyCodeObject PyCodeObject;
|
|
|
|
#ifndef Py_LIMITED_API
|
|
# define Py_CPYTHON_CODE_H
|
|
# include "cpython/code.h"
|
|
# undef Py_CPYTHON_CODE_H
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_CODE_H */
|