bpo-45459: Add pytypedefs.h header file (GH-31527)
Move forward declarations of Python C API types to a new pytypedefs.h header file to solve interdependency issues between header files. pytypedefs.h contains forward declarations of the following types: * PyCodeObject * PyFrameObject * PyGetSetDef * PyInterpreterState * PyLongObject * PyMemberDef * PyMethodDef * PyModuleDef * PyObject * PyThreadState * PyTypeObject
This commit is contained in:
@@ -72,7 +72,7 @@ typedef struct PyModuleDef_Slot{
|
||||
|
||||
#endif /* New in 3.5 */
|
||||
|
||||
typedef struct PyModuleDef{
|
||||
struct PyModuleDef {
|
||||
PyModuleDef_Base m_base;
|
||||
const char* m_name;
|
||||
const char* m_doc;
|
||||
@@ -82,7 +82,7 @@ typedef struct PyModuleDef{
|
||||
traverseproc m_traverse;
|
||||
inquiry m_clear;
|
||||
freefunc m_free;
|
||||
} PyModuleDef;
|
||||
};
|
||||
|
||||
|
||||
// Internal C API
|
||||
|
||||
Reference in New Issue
Block a user