[pywin32-checkins] pywin32/win32/src/win32print win32print.cpp, 1.31, 1.32
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-09 07:21:15
|
Update of /cvsroot/pywin32/pywin32/win32/src/win32print In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14086/win32/src/win32print Modified Files: win32print.cpp Log Message: More modules use the PYWIN_MODULE_* macros Index: win32print.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32print/win32print.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** win32print.cpp 13 Nov 2008 11:11:58 -0000 1.31 --- win32print.cpp 9 Dec 2008 07:21:06 -0000 1.32 *************** *** 2639,2651 **** ! extern "C" __declspec(dllexport) void ! initwin32print(void) { ! PyObject *module, *dict; ! PyWinGlobals_Ensure(); ! module = Py_InitModule("win32print", win32print_functions); ! if (!module) return; ! dict = PyModule_GetDict(module); ! if (!dict) return; AddConstant(dict, "PRINTER_INFO_1", 1); AddConstant(dict, "PRINTER_ENUM_LOCAL", PRINTER_ENUM_LOCAL); --- 2639,2647 ---- ! PYWIN_MODULE_INIT_FUNC(win32print) { ! PYWIN_MODULE_INIT_PREPARE(win32print, win32print_functions, ! "A module encapsulating the Windows printing API.") ! AddConstant(dict, "PRINTER_INFO_1", 1); AddConstant(dict, "PRINTER_ENUM_LOCAL", PRINTER_ENUM_LOCAL); *************** *** 2829,2831 **** --- 2825,2829 ---- } dummy_tuple=PyTuple_New(0); + + PYWIN_MODULE_INIT_RETURN_SUCCESS; } |