mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +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
|
|
@ -15,8 +15,8 @@ PyAPI_DATA(PyTypeObject) PyBool_Type;
|
|||
Don't forget to apply Py_INCREF() when returning either!!! */
|
||||
|
||||
/* Don't use these directly */
|
||||
PyAPI_DATA(struct _longobject) _Py_FalseStruct;
|
||||
PyAPI_DATA(struct _longobject) _Py_TrueStruct;
|
||||
PyAPI_DATA(PyLongObject) _Py_FalseStruct;
|
||||
PyAPI_DATA(PyLongObject) _Py_TrueStruct;
|
||||
|
||||
/* Use these macros */
|
||||
#define Py_False ((PyObject *) &_Py_FalseStruct)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue