summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorDavid Hewitt <mail@davidhewitt.dev>2024-02-15 10:05:20 (GMT)
committerGitHub <noreply@github.com>2024-02-15 10:05:20 (GMT)
commit9e3729bbd77fb9dcaea6a06ac760160136d80b79 (patch)
treec0dee8e8044ce46296c28d1940d8987316db5e4a /Objects
parent32f8ab1ab65c13ed70f047ffd780ec1fe303ff1e (diff)
downloadcpython-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')
-rw-r--r--Objects/descrobject.c4
-rw-r--r--Objects/methodobject.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 8d771ad..805de29 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -393,7 +393,7 @@ method_vectorcall_FASTCALL(
if (method_check_args(func, args, nargs, kwnames)) {
return NULL;
}
- _PyCFunctionFast meth = (_PyCFunctionFast)
+ PyCFunctionFast meth = (PyCFunctionFast)
method_enter_call(tstate, func);
if (meth == NULL) {
return NULL;
@@ -412,7 +412,7 @@ method_vectorcall_FASTCALL_KEYWORDS(
if (method_check_args(func, args, nargs, NULL)) {
return NULL;
}
- _PyCFunctionFastWithKeywords meth = (_PyCFunctionFastWithKeywords)
+ PyCFunctionFastWithKeywords meth = (PyCFunctionFastWithKeywords)
method_enter_call(tstate, func);
if (meth == NULL) {
return NULL;
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);
}
-