Changeset 21178 in vbox
- Timestamp:
- Jul 2, 2009 4:13:44 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49475
- Location:
- trunk/src/libs/xpcom18a4/python/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/src/PyGBase.cpp
r11746 r21178 62 62 extern PyG_Base *MakePyG_nsIInputStream(PyObject *instance); 63 63 64 static char *PyXPCOM_szDefaultGatewayAttributeName = "_com_instance_default_gateway_";64 static char *PyXPCOM_szDefaultGatewayAttributeName = (char*)"_com_instance_default_gateway_"; 65 65 PyG_Base *GetDefaultGateway(PyObject *instance); 66 66 void AddDefaultGateway(PyObject *instance, nsISupports *gateway); … … 302 302 303 303 result = PyObject_CallMethod(m_pPyObject, 304 "_MakeInterfaceParam_",305 "OOiOi",304 (char*)"_MakeInterfaceParam_", 305 (char*)"OOiOi", 306 306 obISupports, 307 307 obIID, … … 372 372 } 373 373 374 PyObject *result = PyObject_CallMethod(m_pPyObject, "_QueryInterface_",375 "OO",374 PyObject *result = PyObject_CallMethod(m_pPyObject, (char*)"_QueryInterface_", 375 (char*)"OO", 376 376 this_interface_ob, ob); 377 377 Py_DECREF(ob); … … 481 481 482 482 PyObject *err_result = PyObject_CallMethod(m_pPyObject, 483 "_GatewayException_",484 "z(OOO)",483 (char*)"_GatewayException_", 484 (char*)"z(OOO)", 485 485 szMethodName, 486 486 exc_typ ? exc_typ : Py_None, // should never be NULL, but defensive programming... -
trunk/src/libs/xpcom18a4/python/src/PyGStub.cpp
r11746 r21178 103 103 goto done; 104 104 result = PyObject_CallMethod(m_pPyObject, 105 "_CallMethod_",106 "OiOO",105 (char*)"_CallMethod_", 106 (char*)"OiOO", 107 107 obThisObject, 108 108 (int)methodIndex, … … 138 138 139 139 PyObject *err_result = PyObject_CallMethod(m_pPyObject, 140 "_CallMethodException_",141 "OiOO(OOO)",140 (char*)"_CallMethodException_", 141 (char*)"OiOO(OOO)", 142 142 obThisObject, 143 143 (int)methodIndex, -
trunk/src/libs/xpcom18a4/python/src/dllmain.cpp
r11746 r21178 202 202 PyXPCOM_Globals_Ensure(); 203 203 // Make sure we have _something_ as sys.argv. 204 if (PySys_GetObject( "argv")==NULL) {204 if (PySys_GetObject((char*)"argv")==NULL) { 205 205 PyObject *path = PyList_New(0); 206 206 PyObject *str = PyString_FromString(""); 207 207 PyList_Append(path, str); 208 PySys_SetObject( "argv", path);208 PySys_SetObject((char*)"argv", path); 209 209 Py_XDECREF(path); 210 210 Py_XDECREF(str);
Note:
See TracChangeset
for help on using the changeset viewer.