Mailing List Archive

CVS: python/dist/src/PC _winreg.c,1.8,1.9 msvcrtmodule.c,1.7,1.8 winsound.c,1.8,1.9
Update of /cvsroot/python/python/dist/src/PC
In directory usw-pr-cvs1:/tmp/cvs-serv11467/PC

Modified Files:
_winreg.c msvcrtmodule.c winsound.c
Log Message:
Use symbolic METH_VARARGS instead of 1 for ml_flags

Index: _winreg.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/_winreg.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** _winreg.c 28 Jul 2000 03:44:41 -0000 1.8
--- _winreg.c 31 Mar 2002 14:37:44 -0000 1.9
***************
*** 522,527 ****

static struct PyMethodDef PyHKEY_methods[] = {
! {"Close", PyHKEY_CloseMethod, 1, PyHKEY_Close_doc},
! {"Detach", PyHKEY_DetachMethod, 1, PyHKEY_Detach_doc},
{NULL}
};
--- 522,527 ----

static struct PyMethodDef PyHKEY_methods[] = {
! {"Close", PyHKEY_CloseMethod, METH_VARARGS, PyHKEY_Close_doc},
! {"Detach", PyHKEY_DetachMethod, METH_VARARGS, PyHKEY_Detach_doc},
{NULL}
};
***************
*** 1383,1403 ****

static struct PyMethodDef winreg_methods[] = {
! {"CloseKey", PyCloseKey, 1, CloseKey_doc},
! {"ConnectRegistry", PyConnectRegistry, 1, ConnectRegistry_doc},
! {"CreateKey", PyCreateKey, 1, CreateKey_doc},
! {"DeleteKey", PyDeleteKey, 1, DeleteKey_doc},
! {"DeleteValue", PyDeleteValue, 1, DeleteValue_doc},
! {"EnumKey", PyEnumKey, 1, EnumKey_doc},
! {"EnumValue", PyEnumValue, 1, EnumValue_doc},
! {"FlushKey", PyFlushKey, 1, FlushKey_doc},
! {"LoadKey", PyLoadKey, 1, LoadKey_doc},
! {"OpenKey", PyOpenKey, 1, OpenKey_doc},
! {"OpenKeyEx", PyOpenKey, 1, OpenKeyEx_doc},
! {"QueryValue", PyQueryValue, 1, QueryValue_doc},
! {"QueryValueEx", PyQueryValueEx, 1, QueryValueEx_doc},
! {"QueryInfoKey", PyQueryInfoKey, 1, QueryInfoKey_doc},
! {"SaveKey", PySaveKey, 1, SaveKey_doc},
! {"SetValue", PySetValue, 1, SetValue_doc},
! {"SetValueEx", PySetValueEx, 1, SetValueEx_doc},
NULL,
};
--- 1383,1403 ----

static struct PyMethodDef winreg_methods[] = {
! {"CloseKey", PyCloseKey, METH_VARARGS, CloseKey_doc},
! {"ConnectRegistry", PyConnectRegistry, METH_VARARGS, ConnectRegistry_doc},
! {"CreateKey", PyCreateKey, METH_VARARGS, CreateKey_doc},
! {"DeleteKey", PyDeleteKey, METH_VARARGS, DeleteKey_doc},
! {"DeleteValue", PyDeleteValue, METH_VARARGS, DeleteValue_doc},
! {"EnumKey", PyEnumKey, METH_VARARGS, EnumKey_doc},
! {"EnumValue", PyEnumValue, METH_VARARGS, EnumValue_doc},
! {"FlushKey", PyFlushKey, METH_VARARGS, FlushKey_doc},
! {"LoadKey", PyLoadKey, METH_VARARGS, LoadKey_doc},
! {"OpenKey", PyOpenKey, METH_VARARGS, OpenKey_doc},
! {"OpenKeyEx", PyOpenKey, METH_VARARGS, OpenKeyEx_doc},
! {"QueryValue", PyQueryValue, METH_VARARGS, QueryValue_doc},
! {"QueryValueEx", PyQueryValueEx, METH_VARARGS, QueryValueEx_doc},
! {"QueryInfoKey", PyQueryInfoKey, METH_VARARGS, QueryInfoKey_doc},
! {"SaveKey", PySaveKey, METH_VARARGS, SaveKey_doc},
! {"SetValue", PySetValue, METH_VARARGS, SetValue_doc},
! {"SetValueEx", PySetValueEx, METH_VARARGS, SetValueEx_doc},
NULL,
};

Index: msvcrtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/msvcrtmodule.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** msvcrtmodule.c 29 Aug 2001 21:37:09 -0000 1.7
--- msvcrtmodule.c 31 Mar 2002 14:37:44 -0000 1.8
***************
*** 205,218 ****
/* 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},
{NULL, NULL}
};
--- 205,218 ----
/* List of functions exported by this module */
static struct PyMethodDef msvcrt_functions[] = {
! {"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}
};

Index: winsound.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/winsound.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** winsound.c 20 Feb 2001 10:02:21 -0000 1.8
--- winsound.c 31 Mar 2002 14:37:44 -0000 1.9
***************
*** 176,181 ****
static struct PyMethodDef sound_methods[] =
{
! {"PlaySound", sound_playsound, 1, sound_playsound_doc},
! {"Beep", sound_beep, 1, sound_beep_doc},
{NULL, NULL}
};
--- 176,181 ----
static struct PyMethodDef sound_methods[] =
{
! {"PlaySound", sound_playsound, METH_VARARGS, sound_playsound_doc},
! {"Beep", sound_beep, METH_VARARGS, sound_beep_doc},
{NULL, NULL}
};