diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-13 18:09:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 18:09:40 (GMT) |
commit | df22eec4215e515e36e387b9022fb8ca95fd39af (patch) | |
tree | 4ffe387870208583adfa22ab275ba72dcdbea1c5 /Include/cpython/dictobject.h | |
parent | c2007573dd449ae054f9fd5227e49ac9eef00ae8 (diff) | |
download | cpython-df22eec4215e515e36e387b9022fb8ca95fd39af.zip cpython-df22eec4215e515e36e387b9022fb8ca95fd39af.tar.gz cpython-df22eec4215e515e36e387b9022fb8ca95fd39af.tar.bz2 |
gh-89653: PEP 670: Macros always cast arguments in cpython/ (#93766)
Header files in the Include/cpython/ are only included if
the Py_LIMITED_API macro is not defined.
Diffstat (limited to 'Include/cpython/dictobject.h')
-rw-r--r-- | Include/cpython/dictobject.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h index 5788012..565ad791 100644 --- a/Include/cpython/dictobject.h +++ b/Include/cpython/dictobject.h @@ -52,9 +52,7 @@ static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) { mp = _Py_CAST(PyDictObject*, op); return mp->ma_used; } -#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030c0000 -# define PyDict_GET_SIZE(op) PyDict_GET_SIZE(_PyObject_CAST(op)) -#endif +#define PyDict_GET_SIZE(op) PyDict_GET_SIZE(_PyObject_CAST(op)) PyAPI_FUNC(int) _PyDict_Contains_KnownHash(PyObject *, PyObject *, Py_hash_t); PyAPI_FUNC(int) _PyDict_ContainsId(PyObject *, _Py_Identifier *); |