SIGN IN SIGN UP

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*".
V
Victor Stinner committed
636ad7b47e5e1997b6e6979342fe11ae284fc1c7
Parent: 364ed94
Committed by GitHub <noreply@github.com> on 4/21/2022, 9:07:13 PM