diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-08-22 20:48:54 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-08-22 20:48:54 (GMT) |
commit | 559bb6a71399af3b1b2a0ba97230d2bcc649e993 (patch) | |
tree | 94927374ac025ae249aa487ce4a17df99c3df2d8 /Include | |
parent | c98afb7a26ac611a4544c5b8dd445d8ea05e6360 (diff) | |
download | cpython-559bb6a71399af3b1b2a0ba97230d2bcc649e993.zip cpython-559bb6a71399af3b1b2a0ba97230d2bcc649e993.tar.gz cpython-559bb6a71399af3b1b2a0ba97230d2bcc649e993.tar.bz2 |
Rename _PyObject_FastCall() to _PyObject_FastCallDict()
Issue #27809:
* Rename _PyObject_FastCall() function to _PyObject_FastCallDict()
* Add _PyObject_FastCall(), _PyObject_CallNoArg() and _PyObject_CallArg1()
macros calling _PyObject_FastCallDict()
Diffstat (limited to 'Include')
-rw-r--r-- | Include/abstract.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index f67c6b2..69c4890 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -279,9 +279,18 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ Return the result on success. Raise an exception on return NULL on error. */ - PyAPI_FUNC(PyObject *) _PyObject_FastCall(PyObject *func, - PyObject **args, int nargs, - PyObject *kwargs); + PyAPI_FUNC(PyObject *) _PyObject_FastCallDict(PyObject *func, + PyObject **args, int nargs, + PyObject *kwargs); + +#define _PyObject_FastCall(func, args, nargs) \ + _PyObject_FastCallDict((func), (args), (nargs), NULL) + +#define _PyObject_CallNoArg(func) \ + _PyObject_FastCall((func), NULL, 0) + +#define _PyObject_CallArg1(func, arg) \ + _PyObject_FastCall((func), &(arg), 1) PyAPI_FUNC(PyObject *) _Py_CheckFunctionResult(PyObject *func, PyObject *result, @@ -291,7 +300,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ /* Call a callable Python object, callable_object, with arguments and keywords arguments. The 'args' argument can not be - NULL, but the 'kw' argument can be NULL. + NULL. */ PyAPI_FUNC(PyObject *) PyObject_CallObject(PyObject *callable_object, |