From: Guido van Rossum Date: Mon, 1 Jul 1991 18:47:30 +0000 (+0000) Subject: Added getintintintarg() (3 int args) X-Git-Tag: v0.9.8~877 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef0068ff9d0f9c9a8f90f66a253f2dee0de5d0e0;p=thirdparty%2FPython%2Fcpython.git Added getintintintarg() (3 int args) --- diff --git a/Python/modsupport.c b/Python/modsupport.c index 961310792b31..604bd98c751b 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -95,6 +95,21 @@ getintintarg(v, a, b) getintarg(gettupleitem(v, 1), b); } +int +getintintintarg(v, a, b, c) + object *v; + int *a; + int *b; + int *c; +{ + if (v == NULL || !is_tupleobject(v) || gettuplesize(v) != 3) { + return err_badarg(); + } + return getintarg(gettupleitem(v, 0), a) && + getintarg(gettupleitem(v, 1), b) && + getintarg(gettupleitem(v, 2), c); +} + int getlongarg(v, a) object *v;