diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-30 07:53:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 07:53:42 (GMT) |
commit | e17420db5d0452a9c56c8cb324d37fc2c04309c0 (patch) | |
tree | 7139adb8b5742a1515dbed03a74521c76921173d /Objects | |
parent | f1034ba7f67400e7ed7e299dc8b22521c4e43246 (diff) | |
download | cpython-e17420db5d0452a9c56c8cb324d37fc2c04309c0.zip cpython-e17420db5d0452a9c56c8cb324d37fc2c04309c0.tar.gz cpython-e17420db5d0452a9c56c8cb324d37fc2c04309c0.tar.bz2 |
gh-106023: Rename _PyObject_FastCallDictTstate() (#106264)
Rename _PyObject_FastCallDictTstate() to
_PyObject_VectorcallDictTstate().
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/call.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Objects/call.c b/Objects/call.c index fc8a6f9..e745fc4 100644 --- a/Objects/call.c +++ b/Objects/call.c @@ -106,9 +106,9 @@ PyObject_CallNoArgs(PyObject *func) PyObject * -_PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable, - PyObject *const *args, size_t nargsf, - PyObject *kwargs) +_PyObject_VectorcallDictTstate(PyThreadState *tstate, PyObject *callable, + PyObject *const *args, size_t nargsf, + PyObject *kwargs) { assert(callable != NULL); @@ -154,7 +154,7 @@ PyObject_VectorcallDict(PyObject *callable, PyObject *const *args, size_t nargsf, PyObject *kwargs) { PyThreadState *tstate = _PyThreadState_GET(); - return _PyObject_FastCallDictTstate(tstate, callable, args, nargsf, kwargs); + return _PyObject_VectorcallDictTstate(tstate, callable, args, nargsf, kwargs); } static void @@ -453,7 +453,8 @@ PyEval_CallObjectWithKeywords(PyObject *callable, } if (args == NULL) { - return _PyObject_FastCallDictTstate(tstate, callable, NULL, 0, kwargs); + return _PyObject_VectorcallDictTstate(tstate, callable, + NULL, 0, kwargs); } else { return _PyObject_Call(tstate, callable, args, kwargs); @@ -506,9 +507,9 @@ _PyObject_Call_Prepend(PyThreadState *tstate, PyObject *callable, _PyTuple_ITEMS(args), argcount * sizeof(PyObject *)); - PyObject *result = _PyObject_FastCallDictTstate(tstate, callable, - stack, argcount + 1, - kwargs); + PyObject *result = _PyObject_VectorcallDictTstate(tstate, callable, + stack, argcount + 1, + kwargs); if (stack != small_stack) { PyMem_Free(stack); } |