Lines Matching refs:nargs
30 PyAPI_FUNC(int) _PyArg_ParseStack_SizeT(PyObject *const *args, Py_ssize_t nargs,
32 PyAPI_FUNC(int) _PyArg_ParseStackAndKeywords_SizeT(PyObject *const *args, Py_ssize_t nargs,
73 static int vgetargs1_impl(PyObject *args, PyObject *const *stack, Py_ssize_t nargs,
90 static int vgetargskeywordsfast_impl(PyObject *const *args, Py_ssize_t nargs,
147 _PyArg_ParseStack(PyObject *const *args, Py_ssize_t nargs, const char *format, ...) in _PyArg_ParseStack() argument
153 retval = vgetargs1_impl(NULL, args, nargs, format, &va, 0); in _PyArg_ParseStack()
159 _PyArg_ParseStack_SizeT(PyObject *const *args, Py_ssize_t nargs, const char *format, ...) in _PyArg_ParseStack_SizeT() argument
165 retval = vgetargs1_impl(NULL, args, nargs, format, &va, FLAG_SIZE_T); in _PyArg_ParseStack_SizeT()
254 vgetargs1_impl(PyObject *compat_args, PyObject *const *stack, Py_ssize_t nargs, const char *format, in vgetargs1_impl() argument
272 assert(nargs == 0 || stack != NULL); in vgetargs1_impl()
371 if (nargs < min || max < nargs) { in vgetargs1_impl()
378 : nargs < min ? "at least" : "at most", in vgetargs1_impl()
379 nargs < min ? min : max, in vgetargs1_impl()
380 (nargs < min ? min : max) == 1 ? "" : "s", in vgetargs1_impl()
381 Py_SAFE_DOWNCAST(nargs, Py_ssize_t, long)); in vgetargs1_impl()
387 for (i = 0; i < nargs; i++) { in vgetargs1_impl()
414 Py_ssize_t nargs; in vgetargs1() local
426 nargs = PyTuple_GET_SIZE(args); in vgetargs1()
430 nargs = 0; in vgetargs1()
433 return vgetargs1_impl(args, stack, nargs, format, p_va, flags); in vgetargs1()
1526 _PyArg_ParseStackAndKeywords(PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames, in _PyArg_ParseStackAndKeywords() argument
1533 retval = vgetargskeywordsfast_impl(args, nargs, NULL, kwnames, parser, &va, 0); in _PyArg_ParseStackAndKeywords()
1539 _PyArg_ParseStackAndKeywords_SizeT(PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames, in _PyArg_ParseStackAndKeywords_SizeT() argument
1546 retval = vgetargskeywordsfast_impl(args, nargs, NULL, kwnames, parser, &va, FLAG_SIZE_T); in _PyArg_ParseStackAndKeywords_SizeT()
1608 Py_ssize_t nargs, nkwargs; in vgetargskeywords() local
1656 nargs = PyTuple_GET_SIZE(args); in vgetargskeywords()
1658 if (nargs + nkwargs > len) { in vgetargskeywords()
1666 (nargs == 0) ? "keyword " : "", in vgetargskeywords()
1668 nargs + nkwargs); in vgetargskeywords()
1711 if (max < nargs) { in vgetargskeywords()
1725 max, nargs); in vgetargskeywords()
1737 if (i < nargs) { in vgetargskeywords()
1804 Py_MIN(pos, min), nargs); in vgetargskeywords()
1819 for (i = pos; i < nargs; i++) { in vgetargskeywords()
2021 vgetargskeywordsfast_impl(PyObject *const *args, Py_ssize_t nargs, in vgetargskeywordsfast_impl() argument
2079 kwstack = args + nargs; in vgetargskeywordsfast_impl()
2084 if (nargs + nkwargs > len) { in vgetargskeywordsfast_impl()
2092 (nargs == 0) ? "keyword " : "", in vgetargskeywordsfast_impl()
2094 nargs + nkwargs); in vgetargskeywordsfast_impl()
2097 if (parser->max < nargs) { in vgetargskeywordsfast_impl()
2110 parser->max, nargs); in vgetargskeywordsfast_impl()
2126 if (i < nargs) { in vgetargskeywordsfast_impl()
2159 min, nargs); in vgetargskeywordsfast_impl()
2190 for (i = pos; i < nargs; i++) { in vgetargskeywordsfast_impl()
2247 Py_ssize_t nargs; in vgetargskeywordsfast() local
2258 nargs = PyTuple_GET_SIZE(args); in vgetargskeywordsfast()
2259 return vgetargskeywordsfast_impl(stack, nargs, keywords, NULL, in vgetargskeywordsfast()
2401 unpack_stack(PyObject *const *args, Py_ssize_t nargs, const char *name, in unpack_stack() argument
2410 if (nargs < min) { in unpack_stack()
2415 name, (min == max ? "" : "at least "), min, nargs); in unpack_stack()
2421 (min == max ? "" : "at least "), min, nargs); in unpack_stack()
2425 if (nargs == 0) { in unpack_stack()
2429 if (nargs > max) { in unpack_stack()
2434 name, (min == max ? "" : "at most "), max, nargs); in unpack_stack()
2440 (min == max ? "" : "at most "), max, nargs); in unpack_stack()
2444 for (i = 0; i < nargs; i++) { in unpack_stack()
2455 Py_ssize_t nargs; in PyArg_UnpackTuple() local
2465 nargs = PyTuple_GET_SIZE(args); in PyArg_UnpackTuple()
2472 retval = unpack_stack(stack, nargs, name, min, max, vargs); in PyArg_UnpackTuple()
2478 _PyArg_UnpackStack(PyObject *const *args, Py_ssize_t nargs, const char *name, in _PyArg_UnpackStack() argument
2489 retval = unpack_stack(args, nargs, name, min, max, vargs); in _PyArg_UnpackStack()