diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-10 00:40:38 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-10 00:40:38 (GMT) |
commit | f0ccbbbc577f686ae5b4ab28a8e61bb524433d2d (patch) | |
tree | 1454cb02eef602371ce84bdf3c88621375a46df9 /Include | |
parent | a9efb2f56eb6bcb97cebfadf1e778b4cb979357f (diff) | |
download | cpython-f0ccbbbc577f686ae5b4ab28a8e61bb524433d2d.zip cpython-f0ccbbbc577f686ae5b4ab28a8e61bb524433d2d.tar.gz cpython-f0ccbbbc577f686ae5b4ab28a8e61bb524433d2d.tar.bz2 |
Emit METH_FASTCALL code in Argument Clinic
Issue #27810:
* Modify vgetargskeywordsfast() to work on a C array of PyObject* rather than
working on a tuple directly.
* Add _PyArg_ParseStack()
* Argument Clinic now emits code using the new METH_FASTCALL calling convention
Diffstat (limited to 'Include')
-rw-r--r-- | Include/modsupport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index 6b0acb8..99581a3 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -58,10 +58,13 @@ typedef struct _PyArg_Parser { } _PyArg_Parser; #ifdef PY_SSIZE_T_CLEAN #define _PyArg_ParseTupleAndKeywordsFast _PyArg_ParseTupleAndKeywordsFast_SizeT +#define _PyArg_ParseStack _PyArg_ParseStack_SizeT #define _PyArg_VaParseTupleAndKeywordsFast _PyArg_VaParseTupleAndKeywordsFast_SizeT #endif PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywordsFast(PyObject *, PyObject *, struct _PyArg_Parser *, ...); +PyAPI_FUNC(int) _PyArg_ParseStack(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, + struct _PyArg_Parser *, ...); PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywordsFast(PyObject *, PyObject *, struct _PyArg_Parser *, va_list); void _PyArg_Fini(void); |