diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-31 14:37:44 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-31 14:37:44 (GMT) |
commit | 031829d3ef22fcc0f5a6d325fee075ee11186599 (patch) | |
tree | 1339a83e8d8b8fd86ca803ebbb63406465ae26b6 /PC/msvcrtmodule.c | |
parent | 93cf79fde418725f2c2334eb062f9999da9e806d (diff) | |
download | cpython-031829d3ef22fcc0f5a6d325fee075ee11186599.zip cpython-031829d3ef22fcc0f5a6d325fee075ee11186599.tar.gz cpython-031829d3ef22fcc0f5a6d325fee075ee11186599.tar.bz2 |
Use symbolic METH_VARARGS instead of 1 for ml_flags
Diffstat (limited to 'PC/msvcrtmodule.c')
-rwxr-xr-x | PC/msvcrtmodule.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 4584370..5afa45f 100755 --- a/PC/msvcrtmodule.c +++ b/PC/msvcrtmodule.c @@ -204,16 +204,16 @@ insertint(PyObject *d, char *name, int value) /* List of functions exported by this module */ static struct PyMethodDef msvcrt_functions[] = { - {"heapmin", msvcrt_heapmin, 1}, - {"locking", msvcrt_locking, 1}, - {"setmode", msvcrt_setmode, 1}, - {"open_osfhandle", msvcrt_open_osfhandle, 1}, - {"get_osfhandle", msvcrt_get_osfhandle, 1}, - {"kbhit", msvcrt_kbhit, 1}, - {"getch", msvcrt_getch, 1}, - {"getche", msvcrt_getche, 1}, - {"putch", msvcrt_putch, 1}, - {"ungetch", msvcrt_ungetch, 1}, + {"heapmin", msvcrt_heapmin, METH_VARARGS}, + {"locking", msvcrt_locking, METH_VARARGS}, + {"setmode", msvcrt_setmode, METH_VARARGS}, + {"open_osfhandle", msvcrt_open_osfhandle, METH_VARARGS}, + {"get_osfhandle", msvcrt_get_osfhandle, METH_VARARGS}, + {"kbhit", msvcrt_kbhit, METH_VARARGS}, + {"getch", msvcrt_getch, METH_VARARGS}, + {"getche", msvcrt_getche, METH_VARARGS}, + {"putch", msvcrt_putch, METH_VARARGS}, + {"ungetch", msvcrt_ungetch, METH_VARARGS}, {NULL, NULL} }; |