SIGN IN SIGN UP

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.
V
Victor Stinner committed
f802c8bf872ab882d3056675acc79c950fe5b93c
Parent: 91c5508
Committed by GitHub <noreply@github.com> on 12/18/2024, 3:34:31 PM