diff options
| author | Victor Stinner <vstinner@python.org> | 2022-02-24 17:51:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-24 17:51:59 +0100 |
| commit | 042f31da552c19054acd3ef7bb6cfd857bce172b (patch) | |
| tree | d1aa8f20f873c89adebbac7072d80dceb19d32c4 /Objects/typeobject.c | |
| parent | ec091bd47e2f968b0d1631b9a8104283a7beeb1b (diff) | |
| download | cpython-git-042f31da552c19054acd3ef7bb6cfd857bce172b.tar.gz | |
bpo-45459: C API uses type names rather than structure names (GH-31528)
Thanks to the new pytypedefs.h, it becomes to use type names like
PyObject rather like structure names like "struct _object".
Diffstat (limited to 'Objects/typeobject.c')
| -rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 4b7035c81e..286261226f 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3716,7 +3716,7 @@ PyType_GetModuleState(PyTypeObject *type) * given PyModuleDef. */ PyObject * -PyType_GetModuleByDef(PyTypeObject *type, struct PyModuleDef *def) +PyType_GetModuleByDef(PyTypeObject *type, PyModuleDef *def) { assert(PyType_Check(type)); @@ -3869,7 +3869,7 @@ _PyType_Lookup(PyTypeObject *type, PyObject *name) } PyObject * -_PyType_LookupId(PyTypeObject *type, struct _Py_Identifier *name) +_PyType_LookupId(PyTypeObject *type, _Py_Identifier *name) { PyObject *oname; oname = _PyUnicode_FromId(name); /* borrowed */ |
