From: Guido van Rossum Date: Mon, 20 Oct 1997 23:22:07 +0000 (+0000) Subject: Add getintarg(), getlongarg(), getstrarg() to macros since these no X-Git-Tag: v1.5b1~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6a84db034cdc5a403715391fc04294c5819417a;p=python Add getintarg(), getlongarg(), getstrarg() to macros since these no longer exist in the general headers. --- diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c index 0403138753..27ffdb2c75 100644 --- a/Modules/stdwinmodule.c +++ b/Modules/stdwinmodule.c @@ -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)