summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-04-21 19:53:18 (GMT)
committerGitHub <noreply@github.com>2022-04-21 19:53:18 (GMT)
commit128d6241176a879ea9b6e34ea67f1d113d22a1b8 (patch)
treee7ff7c3dbc0e7cf0e499fedd8b9be03b4114af10 /Python
parentf8dc6186d1857a19edd182277a9d78e6d6cc3787 (diff)
downloadcpython-128d6241176a879ea9b6e34ea67f1d113d22a1b8.zip
cpython-128d6241176a879ea9b6e34ea67f1d113d22a1b8.tar.gz
cpython-128d6241176a879ea9b6e34ea67f1d113d22a1b8.tar.bz2
gh-89653: PEP 670: Convert unicodeobject.h macros to functions (#91773)
Convert unicodeobject.h macros to static inline functions: * PyUnicode_MAX_CHAR_VALUE() * PyUnicode_READ() * PyUnicode_READY() * PyUnicode_READ_CHAR() * PyUnicode_WRITE() Move PyUnicode_READY() after _PyUnicode_Ready(), since it uses _PyUnicode_Ready(). Static inline functions are wrapped by macros which casts arguments with _PyObject_CAST() and casts 'kind' arguments to "unsigned int" to prevent introducing new compiler warnings when passing "const PyObject*".
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions