From 3cc56c828d2d8f8659ea49447234bf0d2b87cd64 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 14 Oct 2021 21:53:04 +0200 Subject: 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(). --- Python/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/context.c') diff --git a/Python/context.c b/Python/context.c index ad47992d9e3..d78f7f993bb 100644 --- a/Python/context.c +++ b/Python/context.c @@ -1,5 +1,5 @@ #include "Python.h" - +#include "pycore_call.h" // _PyObject_VectorcallTstate() #include "pycore_context.h" #include "pycore_gc.h" // _PyObject_GC_MAY_BE_TRACKED() #include "pycore_hamt.h" -- cgit v1.2.3