summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-05 16:04:32 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-05 16:04:32 (GMT)
commit7bfb42d5b7721ca26e33050d025fec5c43c00058 (patch)
treec1c91a2a34361474de2c02388c8f91d4333f2ea5 /Include
parentd77e5b7211e8daf22f2b3e0df124393bca504c38 (diff)
downloadcpython-7bfb42d5b7721ca26e33050d025fec5c43c00058.zip
cpython-7bfb42d5b7721ca26e33050d025fec5c43c00058.tar.gz
cpython-7bfb42d5b7721ca26e33050d025fec5c43c00058.tar.bz2
Issue #28858: Remove _PyObject_CallArg1() macro
Replace _PyObject_CallArg1(func, arg) with PyObject_CallFunctionObjArgs(func, arg, NULL) Using the _PyObject_CallArg1() macro increases the usage of the C stack, which was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this issue.
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 900ef23..3dfac65 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -338,10 +338,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
_PyObject_FastCallDict((func), (args), (nargs), NULL)
#define _PyObject_CallNoArg(func) \
- _PyObject_FastCall((func), NULL, 0)
-
-#define _PyObject_CallArg1(func, arg) \
- _PyObject_FastCall((func), (PyObject **)&(arg), 1)
+ _PyObject_FastCallDict((func), NULL, 0, NULL)
PyAPI_FUNC(PyObject *) _PyObject_Call_Prepend(PyObject *func,
PyObject *obj, PyObject *args,