summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-08 23:40:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-08 23:40:33 (GMT)
commit7f39c0ccfcaba95de1eaba87f117b89b032b1fa0 (patch)
tree96e11f02c4777cc90aeda3f1ed2e69210de84fdb /Objects
parentdbe28d26b46adb7ed3d6731bc148fc095ff43bba (diff)
downloadcpython-7f39c0ccfcaba95de1eaba87f117b89b032b1fa0.zip
cpython-7f39c0ccfcaba95de1eaba87f117b89b032b1fa0.tar.gz
cpython-7f39c0ccfcaba95de1eaba87f117b89b032b1fa0.tar.bz2
Add _PyObject_VaCallFunctionObjArgs() private function
Issue #28915: Similar to _PyObject_CallFunctionObjArgs() but use va_list to pass arguments.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 5c3344c..2c5057d 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2706,8 +2706,8 @@ _PyObject_CallMethodId_SizeT(PyObject *obj, _Py_Identifier *name,
return retval;
}
-static PyObject *
-_PyObject_FastCallVa(PyObject *callable, va_list vargs)
+PyObject *
+_PyObject_VaCallFunctionObjArgs(PyObject *callable, va_list vargs)
{
PyObject *small_stack[5];
PyObject **stack;
@@ -2773,7 +2773,7 @@ PyObject_CallMethodObjArgs(PyObject *callable, PyObject *name, ...)
}
va_start(vargs, name);
- result = _PyObject_FastCallVa(callable, vargs);
+ result = _PyObject_VaCallFunctionObjArgs(callable, vargs);
va_end(vargs);
Py_DECREF(callable);
@@ -2797,7 +2797,7 @@ _PyObject_CallMethodIdObjArgs(PyObject *obj,
}
va_start(vargs, name);
- result = _PyObject_FastCallVa(callable, vargs);
+ result = _PyObject_VaCallFunctionObjArgs(callable, vargs);
va_end(vargs);
Py_DECREF(callable);
@@ -2811,7 +2811,7 @@ PyObject_CallFunctionObjArgs(PyObject *callable, ...)
PyObject *result;
va_start(vargs, callable);
- result = _PyObject_FastCallVa(callable, vargs);
+ result = _PyObject_VaCallFunctionObjArgs(callable, vargs);
va_end(vargs);
return result;