diff options
author | David Hewitt <mail@davidhewitt.dev> | 2024-02-15 10:05:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 10:05:20 (GMT) |
commit | 9e3729bbd77fb9dcaea6a06ac760160136d80b79 (patch) | |
tree | c0dee8e8044ce46296c28d1940d8987316db5e4a /Objects/methodobject.c | |
parent | 32f8ab1ab65c13ed70f047ffd780ec1fe303ff1e (diff) | |
download | cpython-9e3729bbd77fb9dcaea6a06ac760160136d80b79.zip cpython-9e3729bbd77fb9dcaea6a06ac760160136d80b79.tar.gz cpython-9e3729bbd77fb9dcaea6a06ac760160136d80b79.tar.bz2 |
gh-114626: add PyCFunctionFast and PyCFunctionFastWithKeywords (GH-114627)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index b40b282..599fb05 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -417,7 +417,7 @@ cfunction_vectorcall_FASTCALL( return NULL; } Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); - _PyCFunctionFast meth = (_PyCFunctionFast) + PyCFunctionFast meth = (PyCFunctionFast) cfunction_enter_call(tstate, func); if (meth == NULL) { return NULL; @@ -433,7 +433,7 @@ cfunction_vectorcall_FASTCALL_KEYWORDS( { PyThreadState *tstate = _PyThreadState_GET(); Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); - _PyCFunctionFastWithKeywords meth = (_PyCFunctionFastWithKeywords) + PyCFunctionFastWithKeywords meth = (PyCFunctionFastWithKeywords) cfunction_enter_call(tstate, func); if (meth == NULL) { return NULL; @@ -552,4 +552,3 @@ cfunction_call(PyObject *func, PyObject *args, PyObject *kwargs) } return _Py_CheckFunctionResult(tstate, func, result, NULL); } - |