diff options
| author | Victor Stinner <vstinner@python.org> | 2022-02-24 17:07:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-24 17:07:12 +0100 |
| commit | ec091bd47e2f968b0d1631b9a8104283a7beeb1b (patch) | |
| tree | 7ca12e5891f3965a971da6d19098687f513839f7 /Include/methodobject.h | |
| parent | a52d2528a405c1e2bfeb6470cb3313a5338dc45f (diff) | |
| download | cpython-git-ec091bd47e2f968b0d1631b9a8104283a7beeb1b.tar.gz | |
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/methodobject.h')
| -rw-r--r-- | Include/methodobject.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h index 1be5873a30..5d2e06c3e7 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -39,7 +39,6 @@ struct PyMethodDef { describe the args expected by the C func */ const char *ml_doc; /* The __doc__ attribute, or NULL */ }; -typedef struct PyMethodDef PyMethodDef; /* PyCFunction_New is declared as a function for stable ABI (declaration is * needed for e.g. GCC with -fvisibility=hidden), but redefined as a macro |
