FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use _Py_RVALUE() in macros by vstinner · Pull Request #99844 · python/cpython · GitHub

Repository navigation

Use _Py_RVALUE() in macros - #99844

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:rvalue
Nov 28, 2022
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:rvalue

Conversation

Copy link
Copy Markdown
Member

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.

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.

Copy link
Copy Markdown
Member Author

PR rebased to fix a conflict.

vstinner merged commit 7bae15c into python:main Nov 28, 2022
vstinner deleted the rvalue branch November 28, 2022 16:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL