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/cpython | |
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/cpython')
-rw-r--r-- | Include/cpython/object.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 6cc3d72..65d7d85 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -262,10 +262,8 @@ PyAPI_FUNC(PyObject *) _PyObject_LookupSpecialId(PyObject *, _Py_Identifier *); PyAPI_FUNC(PyTypeObject *) _PyType_CalculateMetaclass(PyTypeObject *, PyObject *); PyAPI_FUNC(PyObject *) _PyType_GetDocFromInternalDoc(const char *, const char *); PyAPI_FUNC(PyObject *) _PyType_GetTextSignatureFromInternalDoc(const char *, const char *); -struct PyModuleDef; PyAPI_FUNC(PyObject *) PyType_GetModuleByDef(PyTypeObject *, struct PyModuleDef *); -struct _Py_Identifier; PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int); PyAPI_FUNC(void) _Py_BreakPoint(void); PyAPI_FUNC(void) _PyObject_Dump(PyObject *); @@ -462,9 +460,6 @@ partially-deallocated object. To check this, the tp_dealloc function must be passed as second argument to Py_TRASHCAN_BEGIN(). */ -/* Forward declarations for PyThreadState */ -struct _ts; - /* Python 3.9 private API, invoked by the macros below. */ PyAPI_FUNC(int) _PyTrash_begin(struct _ts *tstate, PyObject *op); PyAPI_FUNC(void) _PyTrash_end(struct _ts *tstate); |