summaryrefslogtreecommitdiff
path: root/Python/modsupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 961310792b..604bd98c75 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;