summaryrefslogtreecommitdiffstats
path: root/Modules/stdwinmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-20 23:22:07 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-20 23:22:07 (GMT)
commitf6a84db034cdc5a403715391fc04294c5819417a (patch)
tree7c0acc30724e1164b81fee83622eb594ac470471 /Modules/stdwinmodule.c
parentcb4d3032ae513b6aa18ee9c458eedccae52782e0 (diff)
downloadcpython-f6a84db034cdc5a403715391fc04294c5819417a.zip
cpython-f6a84db034cdc5a403715391fc04294c5819417a.tar.gz
cpython-f6a84db034cdc5a403715391fc04294c5819417a.tar.bz2
Add getintarg(), getlongarg(), getstrarg() to macros since these no
longer exist in the general headers.
Diffstat (limited to 'Modules/stdwinmodule.c')
-rw-r--r--Modules/stdwinmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index 0403138..27ffdb2 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)