Update of /cvsroot/pywin32/pywin32/win32/src/PerfMon
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14086/win32/src/PerfMon
Modified Files:
PyPerfMon.cpp
Log Message:
More modules use the PYWIN_MODULE_* macros
Index: PyPerfMon.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/PerfMon/PyPerfMon.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PyPerfMon.cpp 13 Nov 2008 11:11:58 -0000 1.3
--- PyPerfMon.cpp 9 Dec 2008 07:21:06 -0000 1.4
***************
*** 97,109 ****
!
! extern "C" __declspec(dllexport) void
! initperfmon(void)
{
! PyObject *dict, *module;
! module = Py_InitModule("perfmon", perfmon_functions);
! if (!module) return;
! dict = PyModule_GetDict(module);
}
-
--- 97,109 ----
! PYWIN_MODULE_INIT_FUNC(perfmon)
{
! PYWIN_MODULE_INIT_PREPARE(perfmon, perfmon_functions,
! "Contains functions and objects wrapping the Performance Monitor APIs");
! if (PyType_Ready(&PyPerfMonManager::type) == -1
! || PyType_Ready(&PyPERF_COUNTER_DEFINITION::type) == -1
! || PyType_Ready(&PyPERF_OBJECT_TYPE::type) == -1)
! PYWIN_MODULE_INIT_RETURN_ERROR;
! PYWIN_MODULE_INIT_RETURN_SUCCESS;
}
|