diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-24 16:07:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 16:07:12 (GMT) |
commit | ec091bd47e2f968b0d1631b9a8104283a7beeb1b (patch) | |
tree | 7ca12e5891f3965a971da6d19098687f513839f7 /Include/pybuffer.h | |
parent | a52d2528a405c1e2bfeb6470cb3313a5338dc45f (diff) | |
download | cpython-ec091bd47e2f968b0d1631b9a8104283a7beeb1b.zip cpython-ec091bd47e2f968b0d1631b9a8104283a7beeb1b.tar.gz cpython-ec091bd47e2f968b0d1631b9a8104283a7beeb1b.tar.bz2 |
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
Diffstat (limited to 'Include/pybuffer.h')
-rw-r--r-- | Include/pybuffer.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Include/pybuffer.h b/Include/pybuffer.h index 31795b7..6893505 100644 --- a/Include/pybuffer.h +++ b/Include/pybuffer.h @@ -17,10 +17,6 @@ extern "C" { * */ -// Forward declaration to be able to include pybuffer.h before object.h: -// pybuffer.h uses PyObject and object.h uses Py_buffer. -typedef struct _object PyObject; - typedef struct { void *buf; PyObject *obj; /* owned reference */ |