mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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().
This commit is contained in:
parent
39aa98346d
commit
3cc56c828d
6 changed files with 127 additions and 100 deletions
|
@ -269,7 +269,7 @@ partial_vectorcall(partialobject *pto, PyObject *const *args,
|
|||
static void
|
||||
partial_setvectorcall(partialobject *pto)
|
||||
{
|
||||
if (PyVectorcall_Function(pto->fn) == NULL) {
|
||||
if (_PyVectorcall_Function(pto->fn) == NULL) {
|
||||
/* Don't use vectorcall if the underlying function doesn't support it */
|
||||
pto->vectorcall = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue