VirtualBox

Changeset 3149 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Jun 18, 2007 10:24:11 PM (18 years ago)
Author:
vboxsync
Message:

XPCOM: Ported necessary bits of IPC/DConnect tp OS/2.

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  
    176176#define NS_EXPORT_(type) __declspec(export) type
    177177#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
    178190#define NS_IMETHODIMP_(type) type
    179191#define NS_METHOD_(type) type
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/public/xptcall.h

    r2443 r3149  
    5858#define XPTC_PUBLIC_API(t)    PR_IMPLEMENT(t)
    5959#define XPTC_PUBLIC_DATA(t)   PR_IMPLEMENT_DATA(t)
    60 #ifdef _WIN32
     60#if defined(_WIN32)
    6161#    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
    6266#else
    6367#  ifdef VBOX_HAVE_VISIBILITY_HIDDEN
     
    6872#endif
    6973#else
    70 #ifdef _WIN32
     74#if defined(_WIN32)
    7175#    define XPTC_PUBLIC_API(t)    __declspec(dllimport) t
    7276#    define XPTC_PUBLIC_DATA(t)   __declspec(dllimport) t
    7377#    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
    7486#else
    7587#    define XPTC_PUBLIC_API(t)    PR_IMPLEMENT(t)
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/xptinfo.h

    r1 r3149  
    5353#define XPTI_PUBLIC_API(t)    PR_IMPLEMENT(t)
    5454#define XPTI_PUBLIC_DATA(t)   PR_IMPLEMENT_DATA(t)
    55 #ifdef _WIN32
     55#if defined(_WIN32)
    5656#    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
    5761#else
    5862#    define XPTI_EXPORT
    5963#endif
    6064#else
    61 #ifdef _WIN32
     65#if defined(_WIN32)
    6266#    define XPTI_PUBLIC_API(t)    __declspec(dllimport) t
    6367#    define XPTI_PUBLIC_DATA(t)   __declspec(dllimport) t
    6468#    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
    6577#else
    6678#    define XPTI_PUBLIC_API(t)    PR_IMPLEMENT(t)
  • trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/tests/PrimitiveTest.c

    r1 r3149  
    6262
    6363struct TestData {
    64     uint32      bit32;
    65     uint16      bit16;
    66     uint8       bit8[2];
     64    PRUint32    bit32;
     65    PRUint16    bit16;
     66    PRUint8     bit8[2];
    6767    char        *cstr;
    6868    XPTString   *str;
     
    9797    XPTCursor curs, *cursor = &curs;
    9898    char *header, *data, *whole;
    99     uint32 hlen, dlen, i;
     99    PRUint32 hlen, dlen, i;
    100100
    101101    TRY("XPT_NewArena", (arena = XPT_NewArena(1024, sizeof(double), "main")));
  • trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/tests/SimpleTypeLib.c

    r1 r3149  
    8181    char *data, *head;
    8282    FILE *out;
    83     uint32 len, header_sz;
     83    PRUint32 len, header_sz;
    8484
    8585    PRBool ok;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette