mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
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".
This commit is contained in:
parent
ec091bd47e
commit
042f31da55
23 changed files with 69 additions and 75 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue