Mercurial > cpython-lru_cache-weakref
diff Modules/stdwinmodule.c @ 6500:879130f1ff5f legacy-trunk
Add getintarg(), getlongarg(), getstrarg() to macros since these no
longer exist in the general headers.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 20 Oct 1997 23:22:07 +0000 |
| parents | 2c29b8982643 |
| children | 07dae6fdae79 |
line wrap: on
line diff
--- a/Modules/stdwinmodule.c Mon Oct 20 23:21:23 1997 +0000 +++ b/Modules/stdwinmodule.c Mon Oct 20 23:22:07 1997 +0000 @@ -101,6 +101,9 @@ #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)
