]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45439: Move _PyObject_VectorcallTstate() to pycore_call.h (GH-28893)
authorVictor Stinner <vstinner@python.org>
Thu, 14 Oct 2021 19:53:04 +0000 (21:53 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 19:53:04 +0000 (21:53 +0200)
commit3cc56c828d2d8f8659ea49447234bf0d2b87cd64
tree7f204eb39062037d3575d407fda18825e314dd7e
parent39aa98346d5dd8ac591a7cafb467af21c53f1e5d
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().
Include/cpython/abstract.h
Include/internal/pycore_call.h
Modules/_functoolsmodule.c
Objects/call.c
Objects/classobject.c
Python/context.c