]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added getintintintarg() (3 int args)
authorGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:47:30 +0000 (18:47 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:47:30 +0000 (18:47 +0000)
Python/modsupport.c

index 961310792b3182466cd3f7be97eaa446255cc26d..604bd98c751b4bf95b508be8d670206c2ed16b63 100644 (file)
@@ -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;