diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-14 21:53:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 21:53:04 +0200 |
commit | 3cc56c828d2d8f8659ea49447234bf0d2b87cd64 (patch) | |
tree | 7f204eb39062037d3575d407fda18825e314dd7e /Objects/classobject.c | |
parent | 39aa98346d5dd8ac591a7cafb467af21c53f1e5d (diff) | |
download | cpython-3cc56c828d2d8f8659ea49447234bf0d2b87cd64.tar.gz cpython-3cc56c828d2d8f8659ea49447234bf0d2b87cd64.zip |
bpo-45439: Move _PyObject_VectorcallTstate() to pycore_call.h (GH-28893)
* Move _PyObject_VectorcallTstate() and _PyObject_FastCallTstate() to
pycore_call.h (internal C API).
* Convert PyObject_CallOneArg(), PyObject_Vectorcall(),
_PyObject_FastCall() and PyVectorcall_Function() static inline
functions to regular functions.
* Add _PyVectorcall_FunctionInline() static inline function.
* PyObject_Vectorcall(), _PyObject_FastCall(), and
PyObject_CallOneArg() now call _PyThreadState_GET() rather
than PyThreadState_Get().
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index af73be3d262..9d4fc99f1f8 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -1,6 +1,7 @@ /* Class object implementation (dead now except for methods) */ #include "Python.h" +#include "pycore_call.h" // _PyObject_VectorcallTstate() #include "pycore_object.h" #include "pycore_pyerrors.h" #include "pycore_pystate.h" // _PyThreadState_GET() |