diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-11 16:01:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 16:01:10 (GMT) |
commit | e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b (patch) | |
tree | ac91009aa5e26c8eccd7ddd1d19a7616b9968c40 /Misc | |
parent | 4f9386661d51b78348395e78710f3bfbee9fd1de (diff) | |
download | cpython-e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b.zip cpython-e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b.tar.gz cpython-e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b.tar.bz2 |
bpo-45490: Rename static inline functions (GH-31217)
When a static inline function is wrapped by a macro which casts its
arguments to the expected type, there is no need that the function
has a different name than the macro. Use the same name for the macro
and the function to avoid confusion.
Rename _PyUnicode_get_wstr_length() to PyUnicode_WSTR_LENGTH().
Don't rename static inline _Py_NewRef() and _Py_XNewRef() functions,
since the C API exports Py_NewRef() and Py_XNewRef() functions as
regular functions. The name cannot be reused in this case.
Diffstat (limited to 'Misc')
0 files changed, 0 insertions, 0 deletions