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 /Include/boolobject.h | |
| 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 'Include/boolobject.h')
| -rw-r--r-- | Include/boolobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/boolobject.h b/Include/boolobject.h index cda6f89a99..28068d1cbe 100644 --- a/Include/boolobject.h +++ b/Include/boolobject.h @@ -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) |
