Changeset 103176 in vbox for trunk/src/libs
- Timestamp:
- Feb 2, 2024 2:07:50 PM (10 months ago)
- Location:
- trunk/src/libs/xpcom18a4/python/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/src/ErrorUtils.cpp
r101955 r103176 83 83 84 84 // Our "normal" error logger - calls back to the logging module. 85 void DoLogMessage(const char *methodName, const char *pszMessageText)85 static void DoLogMessage(const char *methodName, const char *pszMessageText) 86 86 { 87 87 // We use the logging module now. Originally this code called … … 131 131 } 132 132 133 void LogMessage(const char *methodName, const char *pszMessageText)133 static void LogMessage(const char *methodName, const char *pszMessageText) 134 134 { 135 135 // Be careful to save and restore the Python exception state … … 142 142 143 143 144 void LogMessage(const char *methodName, nsACString &text)144 static void LogMessage(const char *methodName, nsACString &text) 145 145 { 146 146 char *c = ToNewCString(text); -
trunk/src/libs/xpcom18a4/python/src/PyGBase.cpp
r101955 r103176 60 60 } 61 61 62 extern PyG_Base *MakePyG_nsIModule(PyObject *);63 extern PyG_Base *MakePyG_nsIComponentLoader(PyObject *instance);64 extern PyG_Base *MakePyG_nsIInputStream(PyObject *instance);65 66 62 static char *PyXPCOM_szDefaultGatewayAttributeName = (char*)"_com_instance_default_gateway_"; 67 63 PyG_Base *GetDefaultGateway(PyObject *instance); -
trunk/src/libs/xpcom18a4/python/src/PyGInputStream.cpp
r86333 r103176 64 64 65 65 66 PyG_Base *MakePyG_nsIInputStream(PyObject *instance)66 DECLHIDDEN (PyG_Base *) MakePyG_nsIInputStream(PyObject *instance) 67 67 { 68 68 return new PyG_nsIInputStream(instance); -
trunk/src/libs/xpcom18a4/python/src/PyGModule.cpp
r11746 r103176 65 65 }; 66 66 67 PyG_Base *MakePyG_nsIModule(PyObject *instance)67 DECLHIDDEN(PyG_Base *) MakePyG_nsIModule(PyObject *instance) 68 68 { 69 69 return new PyG_nsIModule(instance); … … 169 169 }; 170 170 171 PyG_Base *MakePyG_nsIComponentLoader(PyObject *instance)171 DECLHIDDEN(PyG_Base *) MakePyG_nsIComponentLoader(PyObject *instance) 172 172 { 173 173 return new PyG_nsIComponentLoader(instance); -
trunk/src/libs/xpcom18a4/python/src/PyIVariant.cpp
r59809 r103176 161 161 return Py_nsISupports::PyObjectFromInterface(p, *iid); 162 162 } 163 164 extern PyObject *PyObject_FromVariantArray( Py_nsISupports*, nsIVariant *v);165 163 166 164 static PyObject *GetAsArray(PyObject *self, PyObject *args) { -
trunk/src/libs/xpcom18a4/python/src/PyXPCOM.h
r102411 r103176 980 980 // deprecated, but retained for backward compatibility: 981 981 PyXPCOM_INTERFACE_DECLARE(Py_nsIComponentManagerObsolete, nsIComponentManagerObsolete, PyMethods_IComponentManagerObsolete) 982 983 984 /* VariantUtils.cpp. */ 985 DECLHIDDEN(PyObject *) PyObject_FromVariantArray( Py_nsISupports *parent, nsIVariant *v); 986 987 /* PyGModule.cpp */ 988 DECLHIDDEN(PyG_Base *) MakePyG_nsIComponentLoader(PyObject *instance); 989 DECLHIDDEN(PyG_Base *) MakePyG_nsIModule(PyObject *instance); 990 991 /* PyGInputStream.cpp */ 992 DECLHIDDEN(PyG_Base *) MakePyG_nsIInputStream(PyObject *instance); 993 994 982 995 #endif // __PYXPCOM_H__ -
trunk/src/libs/xpcom18a4/python/src/VariantUtils.cpp
r94562 r103176 59 59 // ------------------------------------------------------------------------ 60 60 // one day we may know what they look like. 61 inline61 static inline 62 62 PRBool 63 63 IsNullDOMString( const nsAString& aString ) … … 66 66 } 67 67 68 inline68 static inline 69 69 PRBool 70 70 IsNullDOMString( const nsACString& aString ) … … 322 322 323 323 324 void FreeSingleArray(void *array_ptr, PRUint32 sequence_size, PRUint8 array_type)324 static void FreeSingleArray(void *array_ptr, PRUint32 sequence_size, PRUint8 array_type) 325 325 { 326 326 // Free each array element - NOT the array itself … … 372 372 373 373 374 PRBool FillSingleArray(void *array_ptr, PyObject *sequence_ob, PRUint32 sequence_size,375 PRUint32 array_element_size, PRUint8 array_type, nsIID *pIID)374 static PRBool FillSingleArray(void *array_ptr, PyObject *sequence_ob, PRUint32 sequence_size, 375 PRUint32 array_element_size, PRUint8 array_type, nsIID *pIID) 376 376 { 377 377 PRUint8 *pthis = (PRUint8 *)array_ptr; … … 925 925 } 926 926 927 PyObject *PyObject_FromVariantArray( Py_nsISupports *parent, nsIVariant *v)927 DECLHIDDEN(PyObject *) PyObject_FromVariantArray( Py_nsISupports *parent, nsIVariant *v) 928 928 { 929 929 nsresult nr; -
trunk/src/libs/xpcom18a4/python/src/dllmain.cpp
r101955 r103176 129 129 } 130 130 131 void pyxpcom_construct(void)131 static void pyxpcom_construct(void) 132 132 { 133 133 int vrc = RTSemFastMutexCreate(&g_lockMain); … … 138 138 } 139 139 140 void pyxpcom_destruct(void)140 static void pyxpcom_destruct(void) 141 141 { 142 142 RTSemFastMutexDestroy(g_lockMain); -
trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp
r102031 r103176 521 521 } 522 522 523 PyObject *PyGetSpecialDirectory(PyObject *self, PyObject *args)523 static PyObject *PyGetSpecialDirectory(PyObject *self, PyObject *args) 524 524 { 525 525 char *dirname; … … 534 534 } 535 535 536 PyObject *AllocateBuffer(PyObject *self, PyObject *args)536 static PyObject *AllocateBuffer(PyObject *self, PyObject *args) 537 537 { 538 538 int bufSize;
Note:
See TracChangeset
for help on using the changeset viewer.