From ef0068ff9d0f9c9a8f90f66a253f2dee0de5d0e0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 1 Jul 1991 18:47:30 +0000 Subject: Added getintintintarg() (3 int args) --- Python/modsupport.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Python/modsupport.c b/Python/modsupport.c index 9613107..604bd98 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -96,6 +96,21 @@ getintintarg(v, a, 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; long *a; -- cgit v0.12