#define PYTESTCAPI_NEED_INTERNAL_API
#include "parts.h"
#include "clinic/vectorcall.c.h"
#include <stddef.h>
static int
fastcall_args(PyObject *args, PyObject ***stack, Py_ssize_t *nargs)
{ … }
static PyObject *
_testcapi_pyobject_fastcalldict_impl(PyObject *module, PyObject *func,
PyObject *func_args, PyObject *kwargs)
{ … }
static PyObject *
_testcapi_pyobject_vectorcall_impl(PyObject *module, PyObject *func,
PyObject *func_args, PyObject *kwnames)
{ … }
static PyObject *
override_vectorcall(PyObject *callable, PyObject *const *args, size_t nargsf,
PyObject *kwnames)
{ … }
static PyObject *
function_setvectorcall(PyObject *self, PyObject *func)
{ … }
static PyObject *
_testcapi_pyvectorcall_call_impl(PyObject *module, PyObject *func,
PyObject *argstuple, PyObject *kwargs)
{ … }
PyObject *
VectorCallClass_tpcall(PyObject *self, PyObject *args, PyObject *kwargs) { … }
PyObject *
VectorCallClass_vectorcall(PyObject *callable,
PyObject *const *args,
size_t nargsf,
PyObject *kwnames) { … }
static PyObject *
_testcapi_VectorCallClass_set_vectorcall_impl(PyObject *self,
PyTypeObject *type)
{ … }
PyMethodDef VectorCallClass_methods[] = …;
PyMemberDef VectorCallClass_members[] = …;
PyType_Slot VectorCallClass_slots[] = …;
static PyObject *
_testcapi_make_vectorcall_class_impl(PyObject *module, PyTypeObject *base)
{ … }
static int
_testcapi_has_vectorcall_flag_impl(PyObject *module, PyTypeObject *type)
{ … }
static PyMethodDef TestMethods[] = …;
MethodDescriptorObject;
static PyObject *
MethodDescriptor_vectorcall(PyObject *callable, PyObject *const *args,
size_t nargsf, PyObject *kwnames)
{ … }
static PyObject *
MethodDescriptor_new(PyTypeObject* type, PyObject* args, PyObject *kw)
{ … }
static PyObject *
func_descr_get(PyObject *func, PyObject *obj, PyObject *type)
{ … }
static PyObject *
nop_descr_get(PyObject *func, PyObject *obj, PyObject *type)
{ … }
static PyObject *
call_return_args(PyObject *self, PyObject *args, PyObject *kwargs)
{ … }
static PyTypeObject MethodDescriptorBase_Type = …;
static PyTypeObject MethodDescriptorDerived_Type = …;
static PyTypeObject MethodDescriptorNopGet_Type = …;
MethodDescriptor2Object;
static PyObject *
MethodDescriptor2_new(PyTypeObject* type, PyObject* args, PyObject *kw)
{ … }
static PyTypeObject MethodDescriptor2_Type = …;
int
_PyTestCapi_Init_Vectorcall(PyObject *m) { … }