summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-17 01:33:55 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-01-17 01:33:55 (GMT)
commitfe54dd8a08b171c20bafe0759c17464a2642030d (patch)
treeedefe68768c964102c2e249b6536624c65c998b3 /Include
parent259f0e4437ed30036578aba822560feb531b7735 (diff)
downloadcpython-fe54dd8a08b171c20bafe0759c17464a2642030d.zip
cpython-fe54dd8a08b171c20bafe0759c17464a2642030d.tar.gz
cpython-fe54dd8a08b171c20bafe0759c17464a2642030d.tar.bz2
Add _PyArg_UnpackStack() function helper
Issue #29286.
Diffstat (limited to 'Include')
-rw-r--r--Include/modsupport.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index e6713e2..e464a1c 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -47,7 +47,16 @@ PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize
PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...);
#endif
+
#ifndef Py_LIMITED_API
+PyAPI_FUNC(int) _PyArg_UnpackStack(
+ PyObject **args,
+ Py_ssize_t nargs,
+ const char *name,
+ Py_ssize_t min,
+ Py_ssize_t max,
+ ...);
+
PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kwargs);
PyAPI_FUNC(int) _PyArg_NoStackKeywords(const char *funcname, PyObject *kwnames);
PyAPI_FUNC(int) _PyArg_NoPositional(const char *funcname, PyObject *args);
@@ -56,6 +65,7 @@ PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list);
PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
const char *, char **, va_list);
#endif
+
PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject **) _Py_VaBuildStack(