]> granicus.if.org Git - python/commitdiff
Add getintarg(), getlongarg(), getstrarg() to macros since these no
authorGuido van Rossum <guido@python.org>
Mon, 20 Oct 1997 23:22:07 +0000 (23:22 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 20 Oct 1997 23:22:07 +0000 (23:22 +0000)
longer exist in the general headers.

Modules/stdwinmodule.c

index 0403138753acc29b41e2c676c1bd0b90733ad73a..27ffdb2c75d6d14c899c06d976088543beec62b6 100644 (file)
@@ -101,6 +101,9 @@ static type_lock StdwinLock; /* Lock held when interpreter not locked */
 
 #endif
 
+#define getintarg(v,a) PyArg_Parse(v, "i", a)
+#define getlongarg(v,a) PyArg_Parse(v, "l", a)
+#define getstrarg(v,a) PyArg_Parse(v, "s", a)
 #define getpointarg(v, a) PyArg_Parse(v, "(ii)", a, (a)+1)
 #define get3pointarg(v, a) PyArg_Parse(v, "((ii)(ii)(ii))", \
                                        a, a+1, a+2, a+3, a+4, a+5)