Ticket #1: include.2.diff

File include.2.diff, 8.1 KB (added by Valery V. Sedletski, 9 years ago)

Headers

  • \include/iprt/cpp/ministring.h

    diff -urN vbox-trunk-bk\include/iprt/cpp/ministring.h vbox-trunk\include/iprt/cpp/ministring.h
    old new  
    10101010 *
    10111011 * @relates RTCString
    10121012 */
    1013 RTDECL(const RTCString) operator+(const RTCString &a_rstr1, const RTCString &a_rstr2);
     1013const RTCString operator+(const RTCString &a_rstr1, const RTCString &a_rstr2);
    10141014
    10151015/**
    10161016 * Concatenate two strings.
     
    10211021 *
    10221022 * @relates RTCString
    10231023 */
    1024 RTDECL(const RTCString) operator+(const RTCString &a_rstr1, const char *a_psz2);
     1024const RTCString operator+(const RTCString &a_rstr1, const char *a_psz2);
    10251025
    10261026/**
    10271027 * Concatenate two strings.
     
    10321032 *
    10331033 * @relates RTCString
    10341034 */
    1035 RTDECL(const RTCString) operator+(const char *a_psz1, const RTCString &a_rstr2);
     1035const RTCString operator+(const char *a_psz1, const RTCString &a_rstr2);
    10361036
    10371037/**
    10381038 * Class with RTCString::printf as constructor for your convenience.
  • \include/iprt/string.h

    diff -urN vbox-trunk-bk\include/iprt/string.h vbox-trunk\include/iprt/string.h
    old new  
    8585# undef ffs
    8686# undef strpbrk
    8787
     88#elif defined(RT_OS_OS2)
     89# define __USE_GNU
     90# include <string.h>
    8891#else
    8992# include <string.h>
    9093#endif
     
    115118
    116119#if !defined(RT_OS_LINUX) || !defined(_GNU_SOURCE)
    117120RT_C_DECLS_BEGIN
     121#ifndef RT_OS_OS2
    118122void *memrchr(const char *pv, int ch, size_t cb);
     123#endif
    119124RT_C_DECLS_END
    120125#endif
    121126
  • \include/iprt/x86extra.mac

    diff -urN vbox-trunk-bk\include/iprt/x86extra.mac vbox-trunk\include/iprt/x86extra.mac
    old new  
    140140        .ds             resw 1
    141141        .selLdt         resw 1
    142142endstruc
     143%ifndef RT_OS_OS2
    143144AssertCompileSize(X86TSS16, 44)
     145%endif
    144146
    145147
    146148struc X86TSS32
     
    203205        .offIoBitmap    resw 1
    204206        .IntRedirBitmap resb 32
    205207endstruc
     208%ifndef RT_OS_OS2
    206209AssertCompileSize(X86TSS64, 136)
     210%endif
    207211
    208212%endif
    209213
  • \include/VBox/com/defs.h

    diff -urN vbox-trunk-bk\include/VBox/com/defs.h vbox-trunk\include/VBox/com/defs.h
    old new  
    4242# endif
    4343# undef RT_MAX
    4444
     45#if !defined(QT_GUI_LIB)
     46
    4547/* Make sure OS/2 Toolkit headers are pulled in to have BOOL/ULONG/etc. typedefs
    4648 * already defined in order to be able to redefine them using #define. */
    4749# define INCL_BASE
     
    5254# undef FALSE
    5355# undef TRUE
    5456
     57#else
     58# include <QtGui/qwindowdefs_pm.h>
     59#endif /* !defined(QT_CORE_LIB) */
     60
    5561/* */
    5662# undef RT_MAX
    5763# ifdef REDEFINE_RT_MAX
    5864#  define RT_MAX(Value1, Value2)                  ( (Value1) >= (Value2) ? (Value1) : (Value2) )
    5965# endif
    6066
     67# undef ULONG
     68# undef LONG
     69# undef USHORT
     70
    6171#endif /* defined(RT_OS_OS2) */
    6272
    6373/* Include iprt/types.h (which also includes iprt/types.h) now to make sure iprt
  • \include/VBox/intnet.h

    diff -urN vbox-trunk-bk\include/VBox/intnet.h vbox-trunk\include/VBox/intnet.h
    old new  
    12921292INTNETR0DECL(int)       IntNetR0IfSetActive(INTNETIFHANDLE hIf, PSUPDRVSESSION pSession, bool fActive);
    12931293INTNETR0DECL(int)       IntNetR0IfSend(INTNETIFHANDLE hIf, PSUPDRVSESSION pSession);
    12941294INTNETR0DECL(int)       IntNetR0IfWait(INTNETIFHANDLE hIf, PSUPDRVSESSION pSession, uint32_t cMillies);
    1295 INTNETR0DECL(int)       IntNetR0IfAbortWait(INTNETIFHANDLE hIf, PSUPDRVSESSION pSession);
     1295INTNETR0DECL(int)       IntNetR0IfAbortWait(INTNETIFHANDLE hIf, PSUPDRVSESSION pSession, bool fNoMoreWaits);
    12961296
    12971297/** @} */
    12981298#endif /* IN_RING0 */
  • \include/VBox/sup.h

    diff -urN vbox-trunk-bk\include/VBox/sup.h vbox-trunk\include/VBox/sup.h
    old new  
    461461#if defined(IN_SUP_R3) || defined(IN_SUP_R0)
    462462extern DECLEXPORT(PSUPGLOBALINFOPAGE)   g_pSUPGlobalInfoPage;
    463463
    464 #elif !defined(IN_RING0) || defined(RT_OS_WINDOWS) || defined(RT_OS_SOLARIS)
     464#elif !defined(IN_RING0) || defined(RT_OS_WINDOWS) || defined(RT_OS_SOLARIS) || defined(RT_OS_OS2)
    465465extern DECLIMPORT(PSUPGLOBALINFOPAGE)   g_pSUPGlobalInfoPage;
    466466
    467467#else /* IN_RING0 && !RT_OS_WINDOWS */
  • \include/VBox/vmm/dbgf.h

    diff -urN vbox-trunk-bk\include/VBox/vmm/dbgf.h vbox-trunk\include/VBox/vmm/dbgf.h
    old new  
    15161516VMMR3DECL(int) DBGFR3RegNmQueryU64( PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, uint64_t    *pu64);
    15171517VMMR3DECL(int) DBGFR3RegNmQueryU128(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PRTUINT128U  pu128);
    15181518/*VMMR3DECL(int) DBGFR3RegNmQueryLrd( PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, long double *plrd);*/
    1519 VMMR3DECL(int) DBGFR3RegNmQueryXdtr(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, uint64_t *pu64Base, uint16_t *pu16Limit);
     1519VMMR3DECL(int) DBGFR3RegNmQueryXdtr(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, uint64_t *pu64Base, uint32_t *pu16Limit);
    15201520VMMR3DECL(int) DBGFR3RegNmQueryBatch(PUVM pUVM,VMCPUID idDefCpu, PDBGFREGENTRYNM paRegs, size_t cRegs);
    15211521VMMR3DECL(int) DBGFR3RegNmQueryAllCount(PUVM pUVM, size_t *pcRegs);
    15221522VMMR3DECL(int) DBGFR3RegNmQueryAll( PUVM pUVM,                   PDBGFREGENTRYNM paRegs, size_t cRegs);
  • \include/VBox/vmm/gmm.h

    diff -urN vbox-trunk-bk\include/VBox/vmm/gmm.h vbox-trunk\include/VBox/vmm/gmm.h
    old new  
    418418GMMR0DECL(int)  GMMR0ResetSharedModules(PVM pVM, VMCPUID idCpu);
    419419GMMR0DECL(int)  GMMR0CheckSharedModulesStart(PVM pVM);
    420420GMMR0DECL(int)  GMMR0CheckSharedModulesEnd(PVM pVM);
    421 GMMR0DECL(int)  GMMR0QueryStatistics(PGMMSTATS pStats, PSUPDRVSESSION pSession);
    422 GMMR0DECL(int)  GMMR0ResetStatistics(PCGMMSTATS pStats, PSUPDRVSESSION pSession);
     421GMMR0DECL(int)  GMMR0QueryStatistics(PGMMSTATS pStats, PSUPDRVSESSION pSession, PVM pVM);
     422GMMR0DECL(int)  GMMR0ResetStatistics(PCGMMSTATS pStats, PSUPDRVSESSION pSession, PVM pVM);
    423423
    424424/**
    425425 * Request buffer for GMMR0InitialReservationReq / VMMR0_DO_GMM_INITIAL_RESERVATION.
  • \include/VBox/vmm/hm_vmx.mac

    diff -urN vbox-trunk-bk\include/VBox/vmm/hm_vmx.mac vbox-trunk\include/VBox/vmm/hm_vmx.mac
    old new  
    175175    .uHostFSBase        resq    1
    176176    .uHostGSBase        resq    1
    177177endstruc
     178
     179%ifndef RT_OS_OS2
     180; // vs -- symbol referencies not supported in preprocess-only mode
    178181AssertCompileMemberOffset(VMXRESTOREHOST, HostGdtr,     16-2)
    179182AssertCompileMemberOffset(VMXRESTOREHOST, HostIdtr,     32-2)
    180183AssertCompileMemberOffset(VMXRESTOREHOST, uHostFSBase,    40)
    181184AssertCompileSize(VMXRESTOREHOST, 56)
    182 
     185%endif
  • \include/VBox/vmm/pdmapi.h

    diff -urN vbox-trunk-bk\include/VBox/vmm/pdmapi.h vbox-trunk\include/VBox/vmm/pdmapi.h
    old new  
    4646VMM_INT_DECL(int)       PDMIoApicSetIrq(PVM pVM, uint8_t u8Irq, uint8_t u8Level, uint32_t uTagSrc);
    4747VMM_INT_DECL(int)       PDMIoApicSendMsi(PVM pVM, RTGCPHYS GCAddr, uint32_t uValue, uint32_t uTagSrc);
    4848VMM_INT_DECL(bool)      PDMHasApic(PVM pVM);
    49 VMM_INT_DECL(int)       PDMApicHasPendingIrq(PVM pVM, bool *pfPending);
     49VMM_INT_DECL(int)       PDMApicHasPendingIrq(PVMCPU pVCpu, bool *pfPending);
    5050VMMDECL(int)            PDMApicSetBase(PVMCPU pVCpu, uint64_t u64Base);
    5151VMMDECL(int)            PDMApicGetBase(PVMCPU pVCpu, uint64_t *pu64Base);
    5252VMMDECL(int)            PDMApicSetTPR(PVMCPU pVCpu, uint8_t u8TPR);