Changeset 3149 in vbox for trunk/src/libs/xpcom18a4/xpcom
- Timestamp:
- Jun 18, 2007 10:24:11 PM (18 years ago)
- Location:
- trunk/src/libs/xpcom18a4/xpcom
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/base/nscore.h
r2443 r3149 176 176 #define NS_EXPORT_(type) __declspec(export) type 177 177 #define NS_IMETHOD_(type) virtual type 178 #define NS_IMETHODIMP_(type) type 179 #define NS_METHOD_(type) type 180 #define NS_CALLBACK_(_type, _name) _type (* _name) 181 #define NS_STDCALL 182 183 #elif defined(XP_OS2) && defined(__declspec) 184 185 #define NS_IMPORT __declspec(dllimport) 186 #define NS_IMPORT_(type) type __declspec(dllimport) __stdcall 187 #define NS_EXPORT __declspec(dllexport) 188 #define NS_EXPORT_(type) type __declspec(dllexport) __stdcall 189 #define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL 178 190 #define NS_IMETHODIMP_(type) type 179 191 #define NS_METHOD_(type) type -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/public/xptcall.h
r2443 r3149 58 58 #define XPTC_PUBLIC_API(t) PR_IMPLEMENT(t) 59 59 #define XPTC_PUBLIC_DATA(t) PR_IMPLEMENT_DATA(t) 60 #if def _WIN3260 #if defined(_WIN32) 61 61 # define XPTC_EXPORT __declspec(dllexport) 62 #elif defined(XP_OS2) && defined(__declspec) 63 # define XPTC_EXPORT __declspec(dllexport) 64 #elif defined(XP_OS2_VACPP) 65 # define XPTC_EXPORT extern 62 66 #else 63 67 # ifdef VBOX_HAVE_VISIBILITY_HIDDEN … … 68 72 #endif 69 73 #else 70 #if def _WIN3274 #if defined(_WIN32) 71 75 # define XPTC_PUBLIC_API(t) __declspec(dllimport) t 72 76 # define XPTC_PUBLIC_DATA(t) __declspec(dllimport) t 73 77 # define XPTC_EXPORT __declspec(dllimport) 78 #elif defined(XP_OS2) && defined(__declspec) 79 # define XPTC_PUBLIC_API(t) __declspec(dllimport) t 80 # define XPTC_PUBLIC_DATA(t) __declspec(dllimport) t 81 # define XPTC_EXPORT __declspec(dllimport) 82 #elif defined(XP_OS2_VACPP) 83 # define XPTC_PUBLIC_API(t) extern t 84 # define XPTC_PUBLIC_DATA(t) extern t 85 # define XPTC_EXPORT extern 74 86 #else 75 87 # define XPTC_PUBLIC_API(t) PR_IMPLEMENT(t) -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/xptinfo.h
r1 r3149 53 53 #define XPTI_PUBLIC_API(t) PR_IMPLEMENT(t) 54 54 #define XPTI_PUBLIC_DATA(t) PR_IMPLEMENT_DATA(t) 55 #if def _WIN3255 #if defined(_WIN32) 56 56 # define XPTI_EXPORT __declspec(dllexport) 57 #elif defined(XP_OS2) && defined(__declspec) 58 # define XPTI_EXPORT __declspec(dllexport) 59 #elif defined(XP_OS2_VACPP) 60 # define XPTI_EXPORT extern 57 61 #else 58 62 # define XPTI_EXPORT 59 63 #endif 60 64 #else 61 #if def _WIN3265 #if defined(_WIN32) 62 66 # define XPTI_PUBLIC_API(t) __declspec(dllimport) t 63 67 # define XPTI_PUBLIC_DATA(t) __declspec(dllimport) t 64 68 # define XPTI_EXPORT __declspec(dllimport) 69 #elif defined(XP_OS2) && defined(__declspec) 70 # define XPTI_PUBLIC_API(t) __declspec(dllimport) t 71 # define XPTI_PUBLIC_DATA(t) __declspec(dllimport) t 72 # define XPTI_EXPORT __declspec(dllimport) 73 #elif defined(XP_OS2_VACPP) 74 # define XPTI_PUBLIC_API(t) extern t 75 # define XPTI_PUBLIC_DATA(t) extern t 76 # define XPTI_EXPORT extern 65 77 #else 66 78 # define XPTI_PUBLIC_API(t) PR_IMPLEMENT(t) -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/tests/PrimitiveTest.c
r1 r3149 62 62 63 63 struct TestData { 64 uint32 bit32;65 uint16bit16;66 uint8bit8[2];64 PRUint32 bit32; 65 PRUint16 bit16; 66 PRUint8 bit8[2]; 67 67 char *cstr; 68 68 XPTString *str; … … 97 97 XPTCursor curs, *cursor = &curs; 98 98 char *header, *data, *whole; 99 uint32 hlen, dlen, i;99 PRUint32 hlen, dlen, i; 100 100 101 101 TRY("XPT_NewArena", (arena = XPT_NewArena(1024, sizeof(double), "main"))); -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/tests/SimpleTypeLib.c
r1 r3149 81 81 char *data, *head; 82 82 FILE *out; 83 uint32 len, header_sz;83 PRUint32 len, header_sz; 84 84 85 85 PRBool ok;
Note:
See TracChangeset
for help on using the changeset viewer.