]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128013: Convert unicodeobject.c macros to functions (#128061)
authorVictor Stinner <vstinner@python.org>
Wed, 18 Dec 2024 15:34:31 +0000 (16:34 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Dec 2024 15:34:31 +0000 (16:34 +0100)
commitf802c8bf872ab882d3056675acc79c950fe5b93c
tree6ba0239ec24576d28d1085cff94f4f2be4ded5c4
parent91c55085a959016250f1877e147ef379bb97dd12
gh-128013: Convert unicodeobject.c macros to functions (#128061)

Convert unicodeobject.c macros to static inline functions.

* Add _PyUnicode_SET_UTF8() and _PyUnicode_SET_UTF8_LENGTH() macros.
* Add PyUnicode_HASH() and PyUnicode_SET_HASH() macros.
* Remove unused _PyUnicode_KIND() and _PyUnicode_GET_LENGTH() macros.
Objects/unicodeobject.c