From ef0068ff9d0f9c9a8f90f66a253f2dee0de5d0e0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 1 Jul 1991 18:47:30 +0000 Subject: [PATCH] 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 961310792b3..604bd98c751 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;