Commit 5e02687b authored by Guido van Rossum's avatar Guido van Rossum

Added getintintintarg() (3 int args)

parent c2e26859
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment