]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45459: Add pytypedefs.h header file (GH-31527)
authorVictor Stinner <vstinner@python.org>
Thu, 24 Feb 2022 16:07:12 +0000 (17:07 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Feb 2022 16:07:12 +0000 (17:07 +0100)
commitec091bd47e2f968b0d1631b9a8104283a7beeb1b
tree7ca12e5891f3965a971da6d19098687f513839f7
parenta52d2528a405c1e2bfeb6470cb3313a5338dc45f
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
16 files changed:
Include/Python.h
Include/code.h
Include/cpython/object.h
Include/descrobject.h
Include/longobject.h
Include/methodobject.h
Include/moduleobject.h
Include/object.h
Include/pybuffer.h
Include/pyframe.h
Include/pystate.h
Include/pytypedefs.h [new file with mode: 0644]
Include/structmember.h
Makefile.pre.in
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters