]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39543: Remove unused _Py_Dealloc() macro (GH-18361)
authorVictor Stinner <vstinner@python.org>
Wed, 5 Feb 2020 11:18:28 +0000 (12:18 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2020 11:18:28 +0000 (12:18 +0100)
commitf16433a73138f279642e581074135694ddcfe965
treeb115e194f876673ec7e53a2e7bcc0aa0999f7521
parent787b6d548c250f36df6d3f3179f60d754c8aa5e3
bpo-39543: Remove unused _Py_Dealloc() macro (GH-18361)

The macro is defined after Py_DECREF() and so is no longer used by
Py_DECREF().

Moving _Py_Dealloc() macro back from cpython/object.h to object.h
would require to move a lot of definitions as well: PyTypeObject and
many related types used by PyTypeObject.

Keep _Py_Dealloc() as an opaque function call to avoid leaking
implementation details in the limited C API (object.h): remove
_Py_Dealloc() macro from cpython/object.h.
Include/cpython/object.h
Objects/object.c