]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use _Py_RVALUE() in macros (#99844)
authorVictor Stinner <vstinner@python.org>
Mon, 28 Nov 2022 16:42:22 +0000 (17:42 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2022 16:42:22 +0000 (17:42 +0100)
commit7bae15cf37239d4d345e09cc318bd82d03ec30cd
tree578f5942b8a43b9720cf02bb5d35e7cd4d3926c6
parent65417988a589e6edfeada83227a8b0884a64af4f
Use _Py_RVALUE() in macros (#99844)

The following macros are modified to use _Py_RVALUE(), so they can no
longer be used as l-value:

* DK_LOG_SIZE()
* _PyCode_CODE()
* _PyList_ITEMS()
* _PyTuple_ITEMS()
* _Py_SLIST_HEAD()
* _Py_SLIST_ITEM_NEXT()

_PyCode_CODE() is private and other macros are part of the internal
C API.
Include/cpython/code.h
Include/internal/pycore_dict.h
Include/internal/pycore_hashtable.h
Include/internal/pycore_list.h
Include/internal/pycore_tuple.h