Update of /cvsroot/pywin32/pywin32/com/win32comext/propsys/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14086/com/win32comext/propsys/src
Modified Files:
propsys.cpp
Log Message:
More modules use the PYWIN_MODULE_* macros
Index: propsys.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/propsys/src/propsys.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** propsys.cpp 3 Dec 2008 09:56:53 -0000 1.2
--- propsys.cpp 9 Dec 2008 07:21:06 -0000 1.3
***************
*** 74,90 ****
/* Module initialisation */
! extern "C" __declspec(dllexport) void initpropsys()
{
! char *modName = "propsys";
! PyObject *oModule;
! // Create the module and add the functions
! oModule = Py_InitModule(modName, propsys_methods);
! if (!oModule) /* Eeek - some serious error! */
! return;
! PyObject *dict = PyModule_GetDict(oModule);
! if (!dict) return; /* Another serious error!*/
- PyDict_SetItemString(dict, "error", PyWinExc_COMError);
// Register all of our interfaces, gateways and IIDs.
//PyCom_RegisterExtensionSupport(dict, g_interfaceSupportData, sizeof(g_interfaceSupportData)/sizeof(PyCom_InterfaceSupportInfo));
}
--- 74,88 ----
/* Module initialisation */
! PYWIN_MODULE_INIT_FUNC(propsys)
{
! PYWIN_MODULE_INIT_PREPARE(propsys, propsys_methods,
! "A module, encapsulating the Vista Property System interfaces");
!
! if (PyDict_SetItemString(dict, "error", PyWinExc_COMError) == -1)
! PYWIN_MODULE_INIT_RETURN_ERROR;
// Register all of our interfaces, gateways and IIDs.
//PyCom_RegisterExtensionSupport(dict, g_interfaceSupportData, sizeof(g_interfaceSupportData)/sizeof(PyCom_InterfaceSupportInfo));
+
+ PYWIN_MODULE_INIT_RETURN_SUCCESS;
}
|