diff Python/modsupport.c @ 306:c8a979029df4 legacy-trunk

Added getintintintarg() (3 int args)
author Guido van Rossum <guido@python.org>
date Mon, 01 Jul 1991 18:47:30 +0000
parents 1ed7f6f65983
children 2a84b16f91b0
line wrap: on
line diff
--- a/Python/modsupport.c	Mon Jul 01 18:46:03 1991 +0000
+++ b/Python/modsupport.c	Mon Jul 01 18:47:30 1991 +0000
@@ -96,6 +96,21 @@
 }
 
 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;