diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-21 21:07:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 21:07:13 (GMT) |
commit | 636ad7b47e5e1997b6e6979342fe11ae284fc1c7 (patch) | |
tree | e2443954dbaa74466cafa8bdeee97002b3c7f42f /Python/dtoa.c | |
parent | 364ed9409269fb321dc4eafdea677c09a4bc0d8d (diff) | |
download | cpython-636ad7b47e5e1997b6e6979342fe11ae284fc1c7.zip cpython-636ad7b47e5e1997b6e6979342fe11ae284fc1c7.tar.gz cpython-636ad7b47e5e1997b6e6979342fe11ae284fc1c7.tar.bz2 |
gh-89653: PEP 670: Convert unicodeobject.h macros to functions (#91799)
Convert unicodeobject.h macros to static inline functions:
* PyUnicode_AS_DATA()
* PyUnicode_AS_UNICODE()
* PyUnicode_GET_DATA_SIZE()
* PyUnicode_GET_SIZE()
Static inline functions are wrapped by macros which casts arguments
with _PyObject_CAST() to prevent introducing new compiler warnings
when passing "const PyObject*".
Diffstat (limited to 'Python/dtoa.c')
0 files changed, 0 insertions, 0 deletions