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:
Victor Stinner 2022-02-24 17:07:12 +01:00 committed by GitHub
parent a52d2528a4
commit ec091bd47e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 44 additions and 40 deletions

View file

@ -279,6 +279,7 @@
<ClInclude Include="..\Include\pystrtod.h" />
<ClInclude Include="..\Include\pythonrun.h" />
<ClInclude Include="..\Include\pythread.h" />
<ClInclude Include="..\Include\pytypedefs.h" />
<ClInclude Include="..\Include\rangeobject.h" />
<ClInclude Include="..\Include\setobject.h" />
<ClInclude Include="..\Include\sliceobject.h" />

View file

@ -192,6 +192,9 @@
<ClInclude Include="..\Include\pythread.h">
<Filter>Include</Filter>
</ClInclude>
<ClInclude Include="..\Include\pytypedefs.h">
<Filter>Include</Filter>
</ClInclude>
<ClInclude Include="..\Include\rangeobject.h">
<Filter>Include</Filter>
</ClInclude>