summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-07-01 18:47:30 (GMT)
committerGuido van Rossum <guido@python.org>1991-07-01 18:47:30 (GMT)
commitef0068ff9d0f9c9a8f90f66a253f2dee0de5d0e0 (patch)
tree5152fa0a938b4039700dc4c7be8c16a0810b6a72 /Python/modsupport.c
parent1055ecebee177d3ca4b24a101f5ac3978a9636f9 (diff)
downloadcpython-ef0068ff9d0f9c9a8f90f66a253f2dee0de5d0e0.zip
cpython-ef0068ff9d0f9c9a8f90f66a253f2dee0de5d0e0.tar.gz
cpython-ef0068ff9d0f9c9a8f90f66a253f2dee0de5d0e0.tar.bz2
Added getintintintarg() (3 int args)
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 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;