diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-06 12:44:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 12:44:48 (GMT) |
commit | c7bf74bacd2b2db308e80e532153ffaf6dbca851 (patch) | |
tree | bff6836b63b54d70a62d1810ecfe9bd0000fdc83 /Python/sysmodule.c | |
parent | 963099ebd9ada501d125fc5101ae42f55967a6e8 (diff) | |
download | cpython-c7bf74bacd2b2db308e80e532153ffaf6dbca851.zip cpython-c7bf74bacd2b2db308e80e532153ffaf6dbca851.tar.gz cpython-c7bf74bacd2b2db308e80e532153ffaf6dbca851.tar.bz2 |
gh-105268: Add _Py_FROM_GC() function to pycore_gc.h (#105362)
* gcmodule.c reuses _Py_AS_GC(op) for AS_GC()
* Move gcmodule.c FROM_GC() implementation to a new _Py_FROM_GC()
static inline function in pycore_gc.h.
* _PyObject_IS_GC(): only get the type once
* gc_is_finalized(à) and PyObject_GC_IsFinalized() use
_PyGC_FINALIZED(), instead of _PyGCHead_FINALIZED().
* Remove _Py_CAST() in pycore_gc.h: this header file is not built
with C++.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions