VirtualBox

Changeset 20374 in vbox for trunk/src


Ignore:
Timestamp:
Jun 8, 2009 12:43:21 AM (16 years ago)
Author:
vboxsync
Message:

*: s/RT_\(BEGIN|END\)_DECLS/RT_C_DECLS_\1/g

Location:
trunk/src
Files:
137 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h

    r20369 r20374  
    3232#endif /* VBOX_WITH_HGSMI */
    3333
    34 RT_BEGIN_DECLS
     34RT_C_DECLS_BEGIN
    3535#include "dderror.h"
    3636#include "devioctl.h"
     
    3838#include "ntddvdeo.h"
    3939#include "video.h"
    40 RT_END_DECLS
     40RT_C_DECLS_END
    4141
    4242
     
    158158{
    159159
    160 RT_BEGIN_DECLS
     160RT_C_DECLS_BEGIN
    161161ULONG DriverEntry(IN PVOID Context1, IN PVOID Context2);
    162 RT_END_DECLS
     162RT_C_DECLS_END
    163163
    164164VP_STATUS VBoxVideoFindAdapter(
  • trunk/src/VBox/Additions/WINNT/MouseFilter/VBoxMouse.cpp

    r20369 r20374  
    3030// VBOX end
    3131
    32 RT_BEGIN_DECLS
     32RT_C_DECLS_BEGIN
    3333NTSTATUS DriverEntry (PDRIVER_OBJECT, PUNICODE_STRING);
    34 RT_END_DECLS
     34RT_C_DECLS_END
    3535
    3636#ifdef ALLOC_PRAGMA
  • trunk/src/VBox/Additions/WINNT/MouseFilter/VBoxMouse.h

    r20369 r20374  
    2525
    2626#include <iprt/assert.h>
    27 RT_BEGIN_DECLS
     27RT_C_DECLS_BEGIN
    2828#include "ntddk.h"
    2929#include "kbdmou.h"
    3030#include <ntddmou.h>
    3131#include <ntdd8042.h>
    32 RT_END_DECLS
     32RT_C_DECLS_END
    3333#include <VBox/VBoxGuest.h>
    3434
     
    151151// Prototypes
    152152//
    153 RT_BEGIN_DECLS
     153RT_C_DECLS_BEGIN
    154154
    155155NTSTATUS
     
    226226    );
    227227
    228 RT_END_DECLS
     228RT_C_DECLS_END
    229229
    230230#endif  // VBOXMOUSE_H
  • trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp

    r20369 r20374  
    8080*   Exported Functions                                                         *
    8181*******************************************************************************/
    82 RT_BEGIN_DECLS
     82RT_C_DECLS_BEGIN
    8383ULONG DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath);
    84 RT_END_DECLS
     84RT_C_DECLS_END
    8585
    8686#ifdef ALLOC_PRAGMA
  • trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest_Internal.h

    r20369 r20374  
    3636#  define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
    3737#  pragma warning(disable : 4163)
    38 RT_BEGIN_DECLS
     38RT_C_DECLS_BEGIN
    3939#  include <ntddk.h>
    40 RT_END_DECLS
     40RT_C_DECLS_END
    4141#  pragma warning(default : 4163)
    4242#  undef  _InterlockedExchange
     
    4545#  undef  _InterlockedAddLargeStatistic
    4646# else
    47 RT_BEGIN_DECLS
     47RT_C_DECLS_BEGIN
    4848#  include <ntddk.h>
    49 RT_END_DECLS
     49RT_C_DECLS_END
    5050# endif
    5151#endif
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-os2.cpp

    r20369 r20374  
    8888#define SESSION_HASH(sfn) ((sfn) % RT_ELEMENTS(g_apSessionHashTab))
    8989
    90 RT_BEGIN_DECLS
     90RT_C_DECLS_BEGIN
    9191/* Defined in VBoxGuestA-os2.asm */
    9292extern uint32_t             g_PhysMMIOBase;
     
    109109extern uint16_t             g_cchInitText;
    110110extern uint16_t             g_cchInitTextMax;
    111 RT_END_DECLS
     111RT_C_DECLS_END
    112112
    113113
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r20369 r20374  
    147147
    148148
    149 RT_BEGIN_DECLS
     149RT_C_DECLS_BEGIN
    150150
    151151int  VBoxGuestInitDevExt(PVBOXGUESTDEVEXT pDevExt, uint16_t IOPortBase, void *pvMMIOBase, uint32_t cbMMIO, VBOXOSTYPE enmOSType);
     
    162162                          void *pvData, size_t cbData, size_t *pcbDataReturned);
    163163
    164 RT_END_DECLS
     164RT_C_DECLS_END
    165165
    166166#endif
  • trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp

    r20369 r20374  
    142142
    143143#ifdef RT_OS_LINUX
    144 RT_BEGIN_DECLS
     144RT_C_DECLS_BEGIN
    145145extern DECLVBGL(void *) vboxadd_cmc_open (void);
    146146extern DECLVBGL(void) vboxadd_cmc_close (void *);
    147147extern DECLVBGL(int) vboxadd_cmc_call (void *opaque, uint32_t func, void *data);
    148 RT_END_DECLS
     148RT_C_DECLS_END
    149149#endif /* RT_OS_LINUX */
    150150
    151151#ifdef RT_OS_OS2
    152 RT_BEGIN_DECLS
     152RT_C_DECLS_BEGIN
    153153/*
    154154 * On OS/2 we'll do the connecting in the assembly code of the
     
    157157 */
    158158extern VBOXGUESTOS2IDCCONNECT g_VBoxGuestIDC;
    159 RT_END_DECLS
     159RT_C_DECLS_END
    160160#endif
    161161
    162162#ifdef RT_OS_SOLARIS
    163 RT_BEGIN_DECLS
     163RT_C_DECLS_BEGIN
    164164extern DECLVBGL(void *) VBoxGuestSolarisServiceOpen (uint32_t *pu32Version);
    165165extern DECLVBGL(void) VBoxGuestSolarisServiceClose (void *pvOpaque);
    166166extern DECLVBGL(int) VBoxGuestSolarisServiceCall (void *pvOpaque, unsigned int iCmd, void *pvData, size_t cbSize, size_t *pcbReturn);
    167 RT_END_DECLS
     167RT_C_DECLS_END
    168168
    169169#elif defined (RT_OS_FREEBSD)
    170 RT_BEGIN_DECLS
     170RT_C_DECLS_BEGIN
    171171extern DECLVBGL(void *) VBoxGuestFreeBSDServiceOpen (uint32_t *pu32Version);
    172172extern DECLVBGL(void) VBoxGuestFreeBSDServiceClose (void *pvOpaque);
    173173extern DECLVBGL(int) VBoxGuestFreeBSDServiceCall (void *pvOpaque, unsigned int iCmd, void *pvData, size_t cbSize, size_t *pcbReturn);
    174 RT_END_DECLS
     174RT_C_DECLS_END
    175175
    176176#endif
  • trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h

    r20369 r20374  
    3232#  define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
    3333#  pragma warning(disable : 4163)
    34 RT_BEGIN_DECLS
     34RT_C_DECLS_BEGIN
    3535#  include <ntddk.h>
    36 RT_END_DECLS
     36RT_C_DECLS_END
    3737#  pragma warning(default : 4163)
    3838#  undef  _InterlockedExchange
     
    4141#  undef  _InterlockedAddLargeStatistic
    4242# else
    43 RT_BEGIN_DECLS
     43RT_C_DECLS_BEGIN
    4444#  include <ntddk.h>
    45 RT_END_DECLS
     45RT_C_DECLS_END
    4646# endif
    4747/* XP DDK #defines ExFreePool to ExFreePoolWithTag. The latter does not exist on NT4, so...
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLR3Internal.h

    r20369 r20374  
    2828#include <VBox/VBoxGuest.h>
    2929
    30 RT_BEGIN_DECLS
     30RT_C_DECLS_BEGIN
    3131
    3232int     vbglR3DoIOCtl(unsigned iFunction, void *pvData, size_t cbData);
     
    9393#endif /* ___iprt_string_h */
    9494
    95 RT_END_DECLS
     95RT_C_DECLS_END
    9696
    9797#endif
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.h

    r20369 r20374  
    3434#   define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKvsCompilerCrap
    3535#   pragma warning(disable : 4163)
    36     RT_BEGIN_DECLS
     36    RT_C_DECLS_BEGIN
    3737#   include <ntddk.h>
    38     RT_END_DECLS
     38    RT_C_DECLS_END
    3939#   pragma warning(default : 4163)
    4040#   undef  _InterlockedExchange
     
    4343#   undef  _InterlockedAddLargeStatistic
    4444#  else
    45     RT_BEGIN_DECLS
     45    RT_C_DECLS_BEGIN
    4646#   include <ntddk.h>
    47     RT_END_DECLS
     47    RT_C_DECLS_END
    4848#  endif
    4949# endif
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h

    r20369 r20374  
    116116#endif
    117117
    118 RT_BEGIN_DECLS
     118RT_C_DECLS_BEGIN
    119119
    120120extern char *g_pszProgName;
     
    155155#endif /* RT_OS_WINDOWS */
    156156
    157 RT_END_DECLS
     157RT_C_DECLS_END
    158158
    159159#endif
  • trunk/src/VBox/Additions/os2/VBoxSF/VBoxSFInit.cpp

    r20371 r20374  
    4646*   Global Variables                                                           *
    4747*******************************************************************************/
    48 RT_BEGIN_DECLS
     48RT_C_DECLS_BEGIN
    4949/* from VBoxSFA.asm */
    5050extern RTFAR16 g_fpfnDevHlp;
     
    5353/* from sys0.asm and the linker/end.lib. */
    5454extern char _text, _etext, _data, _end;
    55 RT_END_DECLS
     55RT_C_DECLS_END
    5656
    5757
  • trunk/src/VBox/Devices/Builtins.h

    r20367 r20374  
    2525#include <VBox/pdm.h>
    2626
    27 RT_BEGIN_DECLS
     27RT_C_DECLS_BEGIN
    2828
    2929/** The default BIOS logo data. */
     
    127127#endif
    128128
    129 RT_END_DECLS
     129RT_C_DECLS_END
    130130
    131131#endif
  • trunk/src/VBox/Devices/Builtins2.h

    r20367 r20374  
    2525#include <VBox/pdm.h>
    2626
    27 RT_BEGIN_DECLS
     27RT_C_DECLS_BEGIN
    2828
    2929#ifdef IN_VBOXDD2
     
    4949extern const PDMDEVREG g_DeviceIOAPIC;
    5050
    51 RT_END_DECLS
     51RT_C_DECLS_END
    5252
    5353#endif
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r20367 r20374  
    215215*   Internal Functions                                                         *
    216216*******************************************************************************/
    217 RT_BEGIN_DECLS
     217RT_C_DECLS_BEGIN
    218218
    219219PDMBOTHCBDECL(void) pciSetIrq(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, int iIrq, int iLevel);
     
    228228#endif
    229229
    230 RT_END_DECLS
     230RT_C_DECLS_END
    231231
    232232#define DEBUG_PCI
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r20367 r20374  
    307307*   Internal Functions                                                         *
    308308*******************************************************************************/
    309 RT_BEGIN_DECLS
     309RT_C_DECLS_BEGIN
    310310
    311311PDMBOTHCBDECL(int) vgaIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
     
    336336
    337337
    338 RT_END_DECLS
     338RT_C_DECLS_END
    339339
    340340
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r20367 r20374  
    6464*   Internal Functions                                                         *
    6565*******************************************************************************/
    66 RT_BEGIN_DECLS
     66RT_C_DECLS_BEGIN
    6767PDMBOTHCBDECL(int) kbdIOPortDataRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    6868PDMBOTHCBDECL(int) kbdIOPortDataWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
    6969PDMBOTHCBDECL(int) kbdIOPortStatusRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    7070PDMBOTHCBDECL(int) kbdIOPortCommandWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
    71 RT_END_DECLS
     71RT_C_DECLS_END
    7272#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    7373#endif /* VBOX */
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r20367 r20374  
    997997
    998998/* Forward declarations ******************************************************/
    999 RT_BEGIN_DECLS
     999RT_C_DECLS_BEGIN
    10001000PDMBOTHCBDECL(int) e1kMMIORead (PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb);
    10011001PDMBOTHCBDECL(int) e1kMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb);
    10021002PDMBOTHCBDECL(int) e1kIOPortIn (PPDMDEVINS pDevIns, void *pvUser, RTIOPORT port, uint32_t *pu32, unsigned cb);
    10031003PDMBOTHCBDECL(int) e1kIOPortOut(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT port, uint32_t u32, unsigned cb);
    1004 RT_END_DECLS
     1004RT_C_DECLS_END
    10051005
    10061006static int e1kRegReadUnimplemented (E1KSTATE* pState, uint32_t offset, uint32_t index, uint32_t *pu32Value);
  • trunk/src/VBox/Devices/Network/DevINIP.cpp

    r20367 r20374  
    2525*******************************************************************************/
    2626#define LOG_GROUP LOG_GROUP_DEV_INIP
    27 #include <iprt/cdefs.h>     /* include early to allow RT_BEGIN_DECLS hack */
     27#include <iprt/cdefs.h>     /* include early to allow RT_C_DECLS_BEGIN hack */
    2828#include <iprt/mem.h>       /* include anything of ours that the lwip headers use. */
    2929#include <iprt/semaphore.h>
     
    3131#include <iprt/alloca.h>
    3232/* All lwip header files are not C++ safe. So hack around this. */
    33 RT_BEGIN_DECLS
     33RT_C_DECLS_BEGIN
    3434#include "lwip/sys.h"
    3535#include "lwip/stats.h"
     
    4444#include "lwip/sockets.h"
    4545#include "netif/etharp.h"
    46 RT_END_DECLS
     46RT_C_DECLS_END
    4747#include <VBox/pdmdev.h>
    4848#include <VBox/tm.h>
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r20367 r20374  
    11391139}
    11401140
    1141 RT_BEGIN_DECLS
     1141RT_C_DECLS_BEGIN
    11421142PDMBOTHCBDECL(int) pcnetIOPortRead(PPDMDEVINS pDevIns, void *pvUser,
    11431143                                   RTIOPORT Port, uint32_t *pu32, unsigned cb);
     
    11561156                                     RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser);
    11571157#endif
    1158 RT_END_DECLS
     1158RT_C_DECLS_END
    11591159
    11601160#undef htonl
  • trunk/src/VBox/Devices/Network/Pcap.h

    r20367 r20374  
    2525#include <iprt/stream.h>
    2626
    27 RT_BEGIN_DECLS
     27RT_C_DECLS_BEGIN
    2828
    2929int PcapStreamHdr(PRTSTREAM pStream, uint64_t StartNanoTS);
     
    3333int PcapFileFrame(RTFILE File, uint64_t StartNanoTS, const void *pvFrame, size_t cbFrame, size_t cbMax);
    3434
    35 RT_END_DECLS
     35RT_C_DECLS_END
    3636
    3737#endif
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r20367 r20374  
    542542*   Internal Functions                                                         *
    543543*******************************************************************************/
    544 RT_BEGIN_DECLS
     544RT_C_DECLS_BEGIN
    545545PDMBOTHCBDECL(int) acpiPMTmrRead(       PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    546546#ifdef IN_RING3
     
    566566# endif
    567567#endif /* IN_RING3 */
    568 RT_END_DECLS
     568RT_C_DECLS_END
    569569
    570570
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r20367 r20374  
    438438#ifdef VBOX
    439439static uint32_t apic_get_delivery_bitmask(APICDeviceInfo* dev, uint8_t dest, uint8_t dest_mode);
    440 RT_BEGIN_DECLS
     440RT_C_DECLS_BEGIN
    441441PDMBOTHCBDECL(int)  apicMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb);
    442442PDMBOTHCBDECL(int)  apicMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb);
     
    457457
    458458static void apic_update_tpr(APICDeviceInfo *dev, APICState* s, uint32_t val);
    459 RT_END_DECLS
     459RT_C_DECLS_END
    460460#endif /* VBOX */
    461461
  • trunk/src/VBox/Devices/PC/DevPIC.cpp

    r20367 r20374  
    5353*   Internal Functions                                                         *
    5454*******************************************************************************/
    55 RT_BEGIN_DECLS
     55RT_C_DECLS_BEGIN
    5656
    5757PDMBOTHCBDECL(void) picSetIrq(PPDMDEVINS pDevIns, int iIrq, int iLevel);
     
    6262PDMBOTHCBDECL(int) picIOPortElcrWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
    6363
    64 RT_END_DECLS
     64RT_C_DECLS_END
    6565#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    6666
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r20367 r20374  
    156156*   Internal Functions                                                         *
    157157*******************************************************************************/
    158 RT_BEGIN_DECLS
     158RT_C_DECLS_BEGIN
    159159PDMBOTHCBDECL(int) pitIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    160160PDMBOTHCBDECL(int) pitIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
     
    164164static void pit_irq_timer_update(PITChannelState *s, uint64_t current_time, uint64_t now);
    165165#endif
    166 RT_END_DECLS
     166RT_C_DECLS_END
    167167
    168168
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r20367 r20374  
    7070*******************************************************************************/
    7171#ifndef VBOX_DEVICE_STRUCT_TESTCASE
    72 RT_BEGIN_DECLS
     72RT_C_DECLS_BEGIN
    7373PDMBOTHCBDECL(int) rtcIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    7474PDMBOTHCBDECL(int) rtcIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
     
    7676PDMBOTHCBDECL(void) rtcTimerSecond(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser);
    7777PDMBOTHCBDECL(void) rtcTimerSecond2(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser);
    78 RT_END_DECLS
     78RT_C_DECLS_END
    7979#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    8080
  • trunk/src/VBox/Devices/Parallel/DevParallel.cpp

    r20367 r20374  
    153153*   Internal Functions                                                         *
    154154*******************************************************************************/
    155 RT_BEGIN_DECLS
     155RT_C_DECLS_BEGIN
    156156PDMBOTHCBDECL(int) parallelIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    157157PDMBOTHCBDECL(int) parallelIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
     
    160160PDMBOTHCBDECL(int) parallelIOPortWriteECP(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
    161161#endif
    162 RT_END_DECLS
     162RT_C_DECLS_END
    163163
    164164
  • trunk/src/VBox/Devices/Serial/DevSerial.cpp

    r20367 r20374  
    185185*   Internal Functions                                                         *
    186186*******************************************************************************/
    187 RT_BEGIN_DECLS
     187RT_C_DECLS_BEGIN
    188188PDMBOTHCBDECL(int) serialIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    189189PDMBOTHCBDECL(int) serialIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
    190 RT_END_DECLS
     190RT_C_DECLS_END
    191191
    192192#ifdef IN_RING3
  • trunk/src/VBox/Devices/Storage/ATAController.h

    r20367 r20374  
    397397 *  Internal Functions                                                         *
    398398 ******************************************************************************/
    399 RT_BEGIN_DECLS
     399RT_C_DECLS_BEGIN
    400400int ataControllerIOPortWrite1(PAHCIATACONTROLLER pCtl, RTIOPORT Port, uint32_t u32, unsigned cb);
    401401int ataControllerIOPortRead1(PAHCIATACONTROLLER pCtl, RTIOPORT Port, uint32_t *u32, unsigned cb);
     
    406406int ataControllerBMDMAIOPortRead(PAHCIATACONTROLLER pCtl, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    407407int ataControllerBMDMAIOPortWrite(PAHCIATACONTROLLER pCtl, RTIOPORT Port, uint32_t u32, unsigned cb);
    408 RT_END_DECLS
     408RT_C_DECLS_END
    409409
    410410#ifdef IN_RING3
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r20367 r20374  
    472472 *  Internal Functions                                                         *
    473473 ******************************************************************************/
    474 RT_BEGIN_DECLS
     474RT_C_DECLS_BEGIN
    475475PDMBOTHCBDECL(int) ataIOPortWrite1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
    476476PDMBOTHCBDECL(int) ataIOPortRead1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *u32, unsigned cb);
     
    481481PDMBOTHCBDECL(int) ataBMDMAIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);
    482482PDMBOTHCBDECL(int) ataBMDMAIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);
    483 RT_END_DECLS
     483RT_C_DECLS_END
    484484
    485485
  • trunk/src/VBox/Devices/Storage/DrvHostBase.h

    r20367 r20374  
    2525#include <VBox/cdefs.h>
    2626
    27 RT_BEGIN_DECLS
     27RT_C_DECLS_BEGIN
    2828
    2929
     
    198198#define PDMIBLOCK_2_DRVHOSTBASE(pInterface)        ( (PDRVHOSTBASE)((uintptr_t)pInterface - RT_OFFSETOF(DRVHOSTBASE, IBlock)) )
    199199
    200 RT_END_DECLS
    201 
    202 #endif
     200RT_C_DECLS_END
     201
     202#endif
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r20367 r20374  
    3939#ifdef VBOX_WITH_INIP
    4040/* All lwip header files are not C++ safe. So hack around this. */
    41 RT_BEGIN_DECLS
     41RT_C_DECLS_BEGIN
    4242#include <lwip/inet.h>
    4343#include <lwip/tcp.h>
    4444#include <lwip/sockets.h>
    45 RT_END_DECLS
     45RT_C_DECLS_END
    4646#endif /* VBOX_WITH_INIP */
    4747
  • trunk/src/VBox/Devices/Storage/VDICore.h

    r20367 r20374  
    643643*   Internal Functions                                                         *
    644644*******************************************************************************/
    645 RT_BEGIN_DECLS
     645RT_C_DECLS_BEGIN
    646646
    647647#ifndef VBOX_VDICORE_VD
     
    651651#endif /* !VBOX_VDICORE_VD */
    652652
    653 RT_END_DECLS
     653RT_C_DECLS_END
    654654
    655655#endif
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.h

    r20367 r20374  
    3030#include "VMMDevState.h"
    3131
    32 RT_BEGIN_DECLS
     32RT_C_DECLS_BEGIN
    3333DECLCALLBACK(int) vmmdevHGCMConnect (VMMDevState *pVMMDevState, VMMDevHGCMConnect *pHGCMConnect, RTGCPHYS GCPtr);
    3434DECLCALLBACK(int) vmmdevHGCMDisconnect (VMMDevState *pVMMDevState, VMMDevHGCMDisconnect *pHGCMDisconnect, RTGCPHYS GCPtr);
     
    4141int vmmdevHGCMLoadState(VMMDevState *pVMMDevState, PSSMHANDLE pSSM);
    4242int vmmdevHGCMLoadStateDone(VMMDevState *pVMMDevState, PSSMHANDLE pSSM);
    43 RT_END_DECLS
     43RT_C_DECLS_END
    4444
    4545#endif /* !___VMMDev_VMMDevHGCM_h */
  • trunk/src/VBox/Devices/vl_vbox.h

    r20371 r20374  
    4141#include "Builtins.h"
    4242
    43 RT_BEGIN_DECLS
     43RT_C_DECLS_BEGIN
    4444
    4545/*
     
    372372/* end of bswap.h */
    373373
    374 RT_END_DECLS
     374RT_C_DECLS_END
    375375
    376376#endif /* __vl_vbox_h__ */
  • trunk/src/VBox/Frontends/VBoxBFE/HGCM.h

    r20368 r20374  
    3737typedef struct _HGCMSVCEXTHANDLEDATA *HGCMSVCEXTHANDLE;
    3838
    39 RT_BEGIN_DECLS
     39RT_C_DECLS_BEGIN
    4040int HGCMHostInit (void);
    4141int HGCMHostShutdown (void);
     
    5757int HGCMHostLoadState (PSSMHANDLE pSSM);
    5858
    59 RT_END_DECLS
     59RT_C_DECLS_END
    6060
    6161#endif /* __HGCM_h__ */
  • trunk/src/VBox/Frontends/VBoxBFE/SDLConsole.cpp

    r20368 r20374  
    10721072#ifdef RT_OS_DARWIN
    10731073
    1074 RT_BEGIN_DECLS
     1074RT_C_DECLS_BEGIN
    10751075/* Private interface in 10.3 and later. */
    10761076typedef int CGSConnection;
     
    10841084extern CGError CGSGetGlobalHotKeyOperatingMode(CGSConnection Connection, CGSGlobalHotKeyOperatingMode *enmMode);
    10851085extern CGError CGSSetGlobalHotKeyOperatingMode(CGSConnection Connection, CGSGlobalHotKeyOperatingMode enmMode);
    1086 RT_END_DECLS
     1086RT_C_DECLS_END
    10871087
    10881088/** Keeping track of whether we disabled the hotkeys or not. */
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r20368 r20374  
    37193719#ifdef RT_OS_DARWIN
    37203720#include <Carbon/Carbon.h>
    3721 RT_BEGIN_DECLS
     3721RT_C_DECLS_BEGIN
    37223722/* Private interface in 10.3 and later. */
    37233723typedef int CGSConnection;
     
    37313731extern CGError CGSGetGlobalHotKeyOperatingMode(CGSConnection Connection, CGSGlobalHotKeyOperatingMode *enmMode);
    37323732extern CGError CGSSetGlobalHotKeyOperatingMode(CGSConnection Connection, CGSGlobalHotKeyOperatingMode enmMode);
    3733 RT_END_DECLS
     3733RT_C_DECLS_END
    37343734
    37353735/** Keeping track of whether we disabled the hotkeys or not. */
  • trunk/src/VBox/Frontends/VirtualBox/include/DarwinKeyboard.h

    r20368 r20374  
    2828#include <CoreFoundation/CFBase.h>
    2929
    30 RT_BEGIN_DECLS
     30RT_C_DECLS_BEGIN
    3131
    3232/** Private hack for missing rightCmdKey enum. */
     
    5151void     DarwinReleaseKeyboard(void);
    5252
    53 RT_END_DECLS
     53RT_C_DECLS_END
    5454
    5555#endif
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxDockIconPreview.h

    r20368 r20374  
    2626#include "VBoxUtils-darwin.h"
    2727
    28 RT_BEGIN_DECLS
     28RT_C_DECLS_BEGIN
    2929void darwinCreateVBoxDockIconTileView (void);
    3030void darwinDestroyVBoxDockIconTileView (void);
     
    3535void darwinOverlayApplicationDockTileImage (CGImageRef pImage);
    3636void darwinRestoreApplicationDockTileImage (void);
    37 RT_END_DECLS
     37RT_C_DECLS_END
    3838
    3939#ifndef __OBJC__
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxIChatTheaterWrapper.h

    r20368 r20374  
    2727# include <ApplicationServices/ApplicationServices.h>
    2828
    29 RT_BEGIN_DECLS
     29RT_C_DECLS_BEGIN
    3030
    3131void initSharedAVManager();
    3232void setImageRef (CGImageRef aImage);
    3333
    34 RT_END_DECLS
     34RT_C_DECLS_END
    3535
    3636#endif
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxUtils-darwin.h

    r20368 r20374  
    3939typedef NSView *NativeViewRef;
    4040#else
    41 # include <iprt/cdefs.h> /* for RT_BEGIN_DECLS/RT_END_DECLS & stuff */
     41# include <iprt/cdefs.h> /* for RT_C_DECLS_BEGIN/RT_C_DECLS_END & stuff */
    4242
    4343# include <qglobal.h> /* for QT_MAC_USE_COCOA */
     
    6262#endif /* __OBJC__ */
    6363
    64 RT_BEGIN_DECLS
     64RT_C_DECLS_BEGIN
    6565
    6666/********************************************************************************
     
    9292void darwinWindowInvalidateShadowImpl (NativeWindowRef aWindow);
    9393
    94 RT_END_DECLS
     94RT_C_DECLS_END
    9595
    9696#ifndef __OBJC__
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxX11Helper.cpp

    r20368 r20374  
    2727
    2828/* rhel3 build hack */
    29 RT_BEGIN_DECLS
     29RT_C_DECLS_BEGIN
    3030#include <X11/Xlib.h>
    3131#include <X11/extensions/dpms.h>
    32 RT_END_DECLS
     32RT_C_DECLS_END
    3333
    3434static int  gX11ScreenSaverTimeout;
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp

    r20368 r20374  
    5252
    5353
    54 RT_BEGIN_DECLS
     54RT_C_DECLS_BEGIN
    5555/* Private interface in 10.3 and later. */
    5656typedef int CGSConnection;
     
    6464extern CGError CGSGetGlobalHotKeyOperatingMode(CGSConnection Connection, CGSGlobalHotKeyOperatingMode *enmMode);
    6565extern CGError CGSSetGlobalHotKeyOperatingMode(CGSConnection Connection, CGSGlobalHotKeyOperatingMode enmMode);
    66 RT_END_DECLS
     66RT_C_DECLS_END
    6767
    6868
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxCocoaApplication.h

    r20368 r20374  
    2929#include <Carbon/Carbon.h>
    3030
    31 RT_BEGIN_DECLS
     31RT_C_DECLS_BEGIN
    3232
    3333/** Event handler callback.
     
    9494/** @} */
    9595
    96 RT_END_DECLS
     96RT_C_DECLS_END
    9797
    9898#endif
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_string.h

    r20371 r20374  
    1010#include <iprt/cdefs.h>
    1111
    12 RT_BEGIN_DECLS
     12RT_C_DECLS_BEGIN
    1313
    1414DECLEXPORT(char *)  crStrdup( const char *str );
     
    3737DECLEXPORT(void)    crWordsToString( char *string, int nstring, void *data, int ndata );
    3838
    39 RT_END_DECLS
     39RT_C_DECLS_END
    4040
    4141#endif /* CR_STRING_H */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIDC.h

    r20366 r20374  
    226226 * Most OSes uses
    227227 */
    228 RT_BEGIN_DECLS
     228RT_C_DECLS_BEGIN
    229229
    230230#if defined(RT_OS_DARWIN)
     
    250250#endif
    251251
    252 RT_END_DECLS
     252RT_C_DECLS_END
    253253
    254254/**
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r20366 r20374  
    4949
    5050#if defined(RT_OS_WINDOWS)
    51     RT_BEGIN_DECLS
     51    RT_C_DECLS_BEGIN
    5252#   if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
    5353#       define _InterlockedExchange           _InterlockedExchange_StupidDDKVsCompilerCrap
     
    7676#   define memcmp(a,b,c) mymemcmp(a,b,c)
    7777    int VBOXCALL mymemcmp(const void *, const void *, size_t);
    78     RT_END_DECLS
     78    RT_C_DECLS_END
    7979
    8080#elif defined(RT_OS_LINUX)
     
    191191#endif
    192192
    193 RT_BEGIN_DECLS
     193RT_C_DECLS_BEGIN
    194194int  linux_dprintf(const char *format, ...);
    195 RT_END_DECLS
     195RT_C_DECLS_END
    196196
    197197/* debug printf */
     
    624624
    625625
    626 RT_BEGIN_DECLS
     626RT_C_DECLS_BEGIN
    627627
    628628/*******************************************************************************
     
    651651bool VBOXCALL   supdrvDetermineAsyncTsc(uint64_t *pu64DiffCores);
    652652
    653 RT_END_DECLS
    654 
    655 #endif
    656 
     653RT_C_DECLS_END
     654
     655#endif
     656
  • trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h

    r20366 r20374  
    242242*   OS Specific Function                                                       *
    243243*******************************************************************************/
    244 RT_BEGIN_DECLS
     244RT_C_DECLS_BEGIN
    245245int     suplibOsInstall(void);
    246246int     suplibOsUninstall(void);
     
    315315
    316316
    317 RT_END_DECLS
    318 
    319 
    320 #endif
    321 
     317RT_C_DECLS_END
     318
     319
     320#endif
     321
  • trunk/src/VBox/HostDrivers/Support/SUPR0IdcClientInternal.h

    r20366 r20374  
    4343#  define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
    4444#  pragma warning(disable : 4163)
    45 RT_BEGIN_DECLS
     45RT_C_DECLS_BEGIN
    4646#  include <ntddk.h>
    47 RT_END_DECLS
     47RT_C_DECLS_END
    4848#  pragma warning(default : 4163)
    4949#  undef  _InterlockedExchange
     
    5252#  undef  _InterlockedAddLargeStatistic
    5353# else
    54 RT_BEGIN_DECLS
     54RT_C_DECLS_BEGIN
    5555#  include <ntddk.h>
    56 RT_END_DECLS
     56RT_C_DECLS_END
    5757# endif
    5858#endif /* RT_OS_WINDOWS */
     
    8080AssertCompile(RT_SIZEOFMEMB(SUPDRVIDCHANDLE, apvPadding) >= sizeof(struct SUPDRVIDCHANDLEPRIVATE));
    8181
    82 RT_BEGIN_DECLS
     82RT_C_DECLS_BEGIN
    8383PSUPDRVIDCHANDLE supR0IdcGetHandleFromSession(PSUPDRVSESSION pSession);
    8484int VBOXCALL supR0IdcNativeOpen(PSUPDRVIDCHANDLE pHandle, PSUPDRVIDCREQCONNECT pReq);
    8585int VBOXCALL supR0IdcNativeClose(PSUPDRVIDCHANDLE pHandle, PSUPDRVIDCREQHDR pReq);
    8686int VBOXCALL supR0IdcNativeCall(PSUPDRVIDCHANDLE pHandle, uint32_t iReq, PSUPDRVIDCREQHDR pReq);
    87 RT_END_DECLS
     87RT_C_DECLS_END
    8888
    8989#endif
  • trunk/src/VBox/HostDrivers/Support/SUPSvcInternal.h

    r20366 r20374  
    3737#include <iprt/getopt.h>
    3838
    39 RT_BEGIN_DECLS
     39RT_C_DECLS_BEGIN
    4040
    4141/** @name Common Helpers
     
    9090/** @} */
    9191
    92 RT_END_DECLS
     92RT_C_DECLS_END
    9393
    9494#endif
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r20366 r20374  
    7171
    7272#ifdef VBOX_WITH_HOST_VMX
    73 RT_BEGIN_DECLS
     73RT_C_DECLS_BEGIN
    7474# include <i386/vmx.h>
    75 RT_END_DECLS
     75RT_C_DECLS_END
    7676#endif
    7777
     
    8989*   Internal Functions                                                         *
    9090*******************************************************************************/
    91 RT_BEGIN_DECLS
     91RT_C_DECLS_BEGIN
    9292static kern_return_t    VBoxDrvDarwinStart(struct kmod_info *pKModInfo, void *pvData);
    9393static kern_return_t    VBoxDrvDarwinStop(struct kmod_info *pKModInfo, void *pvData);
     
    101101
    102102static IOReturn         VBoxDrvDarwinSleepHandler(void *pvTarget, void *pvRefCon, UInt32 uMessageType, IOService *pProvider, void *pvMessageArgument, vm_size_t argSize);
    103 RT_END_DECLS
     103RT_C_DECLS_END
    104104
    105105
     
    162162 * Declare the module stuff.
    163163 */
    164 RT_BEGIN_DECLS
     164RT_C_DECLS_BEGIN
    165165extern kern_return_t _start(struct kmod_info *pKModInfo, void *pvData);
    166166extern kern_return_t _stop(struct kmod_info *pKModInfo, void *pvData);
     
    170170DECLHIDDEN(kmod_stop_func_t *)  _antimain = VBoxDrvDarwinStop;
    171171DECLHIDDEN(int)                 _kext_apple_cc = __APPLE_CC__;
    172 RT_END_DECLS
     172RT_C_DECLS_END
    173173
    174174
  • trunk/src/VBox/HostDrivers/Support/os2/SUPDrv-os2.cpp

    r20366 r20374  
    6464#define SESSION_HASH(sfn) ((sfn) % RT_ELEMENTS(g_apSessionHashTab))
    6565
    66 RT_BEGIN_DECLS
     66RT_C_DECLS_BEGIN
    6767/* Defined in SUPDrvA-os2.asm */
    6868extern uint16_t             g_offLogHead;
     
    7474extern uint16_t             g_cchInitText;
    7575extern uint16_t             g_cchInitTextMax;
    76 RT_END_DECLS
     76RT_C_DECLS_END
    7777
    7878
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r20366 r20374  
    9191*   Exported Functions                                                         *
    9292*******************************************************************************/
    93 RT_BEGIN_DECLS
     93RT_C_DECLS_BEGIN
    9494ULONG _stdcall DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath);
    95 RT_END_DECLS
     95RT_C_DECLS_END
    9696
    9797
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdpInternal.h

    r20366 r20374  
    2929
    3030
    31 RT_BEGIN_DECLS
     31RT_C_DECLS_BEGIN
    3232
    3333/** Pointer to the globals. */
     
    338338
    339339
    340 RT_END_DECLS
     340RT_C_DECLS_END
    341341
    342342#endif
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/darwin/VBoxNetAdp-darwin.cpp

    r20366 r20374  
    4545
    4646#include <sys/systm.h>
    47 RT_BEGIN_DECLS /* Buggy 10.4 headers, fixed in 10.5. */
     47RT_C_DECLS_BEGIN /* Buggy 10.4 headers, fixed in 10.5. */
    4848#include <sys/kpi_mbuf.h>
    49 RT_END_DECLS
     49RT_C_DECLS_END
    5050
    5151#include <net/ethernet.h>
     
    9696*   Internal Functions                                                         *
    9797*******************************************************************************/
    98 RT_BEGIN_DECLS
     98RT_C_DECLS_BEGIN
    9999static kern_return_t    VBoxNetAdpDarwinStart(struct kmod_info *pKModInfo, void *pvData);
    100100static kern_return_t    VBoxNetAdpDarwinStop(struct kmod_info *pKModInfo, void *pvData);
    101 RT_END_DECLS
     101RT_C_DECLS_END
    102102
    103103static int VBoxNetAdpDarwinOpen(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess);
     
    111111 * Declare the module stuff.
    112112 */
    113 RT_BEGIN_DECLS
     113RT_C_DECLS_BEGIN
    114114extern kern_return_t _start(struct kmod_info *pKModInfo, void *pvData);
    115115extern kern_return_t _stop(struct kmod_info *pKModInfo, void *pvData);
     
    119119DECLHIDDEN(kmod_stop_func_t  *) _antimain = VBoxNetAdpDarwinStop;
    120120DECLHIDDEN(int)                 _kext_apple_cc = __APPLE_CC__;
    121 RT_END_DECLS
     121RT_C_DECLS_END
    122122
    123123/**
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFltInternal.h

    r20366 r20374  
    2929
    3030
    31 RT_BEGIN_DECLS
     31RT_C_DECLS_BEGIN
    3232
    3333/** Pointer to the globals. */
     
    419419
    420420
    421 RT_END_DECLS
    422 
    423 #endif
    424 
     421RT_C_DECLS_END
     422
     423#endif
     424
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp

    r20366 r20374  
    5858#include <sys/kern_event.h>
    5959#include <net/kpi_interface.h>
    60 RT_BEGIN_DECLS /* Buggy 10.4 headers, fixed in 10.5. */
     60RT_C_DECLS_BEGIN /* Buggy 10.4 headers, fixed in 10.5. */
    6161#include <sys/kpi_mbuf.h>
    6262#include <net/kpi_interfacefilter.h>
    63 RT_END_DECLS
     63RT_C_DECLS_END
    6464#include <net/if.h>
    6565
     
    8484*   Internal Functions                                                         *
    8585*******************************************************************************/
    86 RT_BEGIN_DECLS
     86RT_C_DECLS_BEGIN
    8787static kern_return_t    VBoxNetFltDarwinStart(struct kmod_info *pKModInfo, void *pvData);
    8888static kern_return_t    VBoxNetFltDarwinStop(struct kmod_info *pKModInfo, void *pvData);
    89 RT_END_DECLS
     89RT_C_DECLS_END
    9090
    9191
     
    118118 * Declare the module stuff.
    119119 */
    120 RT_BEGIN_DECLS
     120RT_C_DECLS_BEGIN
    121121extern kern_return_t _start(struct kmod_info *pKModInfo, void *pvData);
    122122extern kern_return_t _stop(struct kmod_info *pKModInfo, void *pvData);
     
    126126DECLHIDDEN(kmod_stop_func_t  *) _antimain = VBoxNetFltDarwinStop;
    127127DECLHIDDEN(int)                 _kext_apple_cc = __APPLE_CC__;
    128 RT_END_DECLS
     128RT_C_DECLS_END
    129129
    130130
  • trunk/src/VBox/Main/Doxyfile.Main

    r20370 r20374  
    11661166# instead of the = operator.
    11671167
    1168 PREDEFINED             = __DOXYGEN__ RT_END_DECLS RT_BEGIN_DECLS
     1168PREDEFINED             = __DOXYGEN__ RT_C_DECLS_END RT_C_DECLS_BEGIN
    11691169
    11701170# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
  • trunk/src/VBox/Main/darwin/iokit.h

    r20371 r20374  
    7777#define VBOX_IOKIT_MODE_STRING "VBoxIOKitMode"
    7878
    79 RT_BEGIN_DECLS
     79RT_C_DECLS_BEGIN
    8080#ifdef VBOX_WITH_USB
    8181void *          DarwinSubscribeUSBNotifications(void);
     
    8787PDARWINDVD      DarwinGetDVDDrives(void);
    8888PDARWINETHERNIC DarwinGetEthernetControllers(void);
    89 RT_END_DECLS
     89RT_C_DECLS_END
    9090
    9191#endif
  • trunk/src/VBox/Main/include/hgcm/HGCM.h

    r20370 r20374  
    3737typedef struct _HGCMSVCEXTHANDLEDATA *HGCMSVCEXTHANDLE;
    3838
    39 RT_BEGIN_DECLS
     39RT_C_DECLS_BEGIN
    4040int HGCMHostInit (void);
    4141int HGCMHostShutdown (void);
     
    5757int HGCMHostLoadState (PSSMHANDLE pSSM);
    5858
    59 RT_END_DECLS
     59RT_C_DECLS_END
    6060
    6161#endif /* __HGCM_h__ */
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetLib.h

    r20370 r20374  
    2626#include <VBox/intnet.h>
    2727
    28 RT_BEGIN_DECLS
     28RT_C_DECLS_BEGIN
    2929
    3030
     
    6868
    6969
    70 RT_END_DECLS
     70RT_C_DECLS_END
    7171
    7272#endif
  • trunk/src/VBox/Runtime/Doxyfile

    r20364 r20374  
    11631163
    11641164PREDEFINED             = DOXYGEN_RUNNING __DOXYGEN__ \
    1165     RT_END_DECLS=  \
    1166     RT_BEGIN_DECLS=  \
     1165    RT_C_DECLS_END=  \
     1166    RT_C_DECLS_BEGIN=  \
    11671167    VBOX=1 \
    11681168    RT_STRICT=1 \
  • trunk/src/VBox/Runtime/common/math/gcc/quad.h

    r20364 r20374  
    136136#endif
    137137
    138 RT_BEGIN_DECLS
     138RT_C_DECLS_BEGIN
    139139quad_t __adddi3 __P((quad_t, quad_t));
    140140quad_t __anddi3 __P((quad_t, quad_t));
     
    163163u_quad_t __umoddi3 __P((u_quad_t, u_quad_t ));
    164164quad_t __xordi3 __P((quad_t, quad_t));
    165 RT_END_DECLS
     165RT_C_DECLS_END
  • trunk/src/VBox/Runtime/generic/env-generic.cpp

    r20364 r20374  
    4949#endif
    5050#if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) || defined(RT_OS_OPENBSD)
    51 RT_BEGIN_DECLS
     51RT_C_DECLS_BEGIN
    5252extern char **environ;
    53 RT_END_DECLS
     53RT_C_DECLS_END
    5454#endif
    5555
  • trunk/src/VBox/Runtime/include/internal/dbgmod.h

    r20364 r20374  
    2727#include "internal/magics.h"
    2828
    29 RT_BEGIN_DECLS
     29RT_C_DECLS_BEGIN
    3030
    3131/** @defgroup grp_rt_dbgmod     RTDbgMod - Debug Module Interperter
     
    248248/** @} */
    249249
    250 RT_END_DECLS
     250RT_C_DECLS_END
    251251
    252252#endif
  • trunk/src/VBox/Runtime/include/internal/file.h

    r20364 r20374  
    3434#include <iprt/file.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737
    3838/**
     
    4848int rtFileRecalcAndValidateFlags(unsigned *pfOpen);
    4949
    50 RT_END_DECLS
     50RT_C_DECLS_END
    5151
    5252#endif
  • trunk/src/VBox/Runtime/include/internal/fileaio.h

    r20364 r20374  
    109109
    110110
    111 RT_BEGIN_DECLS
     111RT_C_DECLS_BEGIN
    112112
    113 RT_END_DECLS
     113RT_C_DECLS_END
    114114
    115115#endif
  • trunk/src/VBox/Runtime/include/internal/fs.h

    r20364 r20374  
    3737#endif
    3838
    39 RT_BEGIN_DECLS
     39RT_C_DECLS_BEGIN
    4040
    4141RTFMODE rtFsModeFromDos(RTFMODE fMode, const char *pszName, size_t cbName);
     
    5858#endif
    5959
    60 RT_END_DECLS
     60RT_C_DECLS_END
    6161
    6262#endif
  • trunk/src/VBox/Runtime/include/internal/initterm.h

    r20364 r20374  
    3434#include <iprt/cdefs.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737
    3838#ifdef IN_RING0
     
    5252#endif /* IN_RING0 */
    5353
    54 RT_END_DECLS
     54RT_C_DECLS_END
    5555
    5656#endif
  • trunk/src/VBox/Runtime/include/internal/ldr.h

    r20364 r20374  
    3535#include "internal/magics.h"
    3636
    37 RT_BEGIN_DECLS
     37RT_C_DECLS_BEGIN
    3838
    3939
     
    379379
    380380
    381 RT_END_DECLS
     381RT_C_DECLS_END
    382382
    383383#endif
  • trunk/src/VBox/Runtime/include/internal/memobj.h

    r20364 r20374  
    3636#include "internal/magics.h"
    3737
    38 RT_BEGIN_DECLS
     38RT_C_DECLS_BEGIN
    3939
    4040/** @defgroup grp_rt_memobj_int Internals.
     
    427427/** @} */
    428428
    429 RT_END_DECLS
     429RT_C_DECLS_END
    430430
    431431#endif
  • trunk/src/VBox/Runtime/include/internal/path.h

    r20364 r20374  
    3535#include <iprt/param.h>
    3636
    37 RT_BEGIN_DECLS
     37RT_C_DECLS_BEGIN
    3838
    3939#if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS)
     
    109109
    110110
    111 RT_END_DECLS
     111RT_C_DECLS_END
    112112
    113113#endif
  • trunk/src/VBox/Runtime/include/internal/process.h

    r20364 r20374  
    3535#include <iprt/param.h>
    3636
    37 RT_BEGIN_DECLS
     37RT_C_DECLS_BEGIN
    3838
    3939extern RTPROCESS        g_ProcessSelf;
     
    6767DECLHIDDEN(int) rtProcInitExePath(char *pszPath, size_t cchPath);
    6868
    69 RT_END_DECLS
     69RT_C_DECLS_END
    7070
    7171#endif
  • trunk/src/VBox/Runtime/include/internal/rand.h

    r20364 r20374  
    161161
    162162
    163 RT_BEGIN_DECLS
     163RT_C_DECLS_BEGIN
    164164
    165165/**
     
    190190DECLCALLBACK(int)       rtRandAdvDefaultDestroy(PRTRANDINT pThis);
    191191
    192 RT_END_DECLS
     192RT_C_DECLS_END
    193193
    194194#endif
  • trunk/src/VBox/Runtime/include/internal/sched.h

    r20364 r20374  
    3636#include "internal/thread.h"
    3737
    38 RT_BEGIN_DECLS
     38RT_C_DECLS_BEGIN
    3939
    4040/**
     
    4747int rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType);
    4848
    49 RT_END_DECLS
     49RT_C_DECLS_END
    5050
    5151#endif
  • trunk/src/VBox/Runtime/include/internal/string.h

    r20364 r20374  
    3434#include <iprt/string.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737
    3838/** @def RTSTR_STRICT
     
    5858size_t rtstrFormatType(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize);
    5959
    60 RT_END_DECLS
     60RT_C_DECLS_END
    6161
    6262#endif
  • trunk/src/VBox/Runtime/include/internal/thread.h

    r20364 r20374  
    4141#include "internal/magics.h"
    4242
    43 RT_BEGIN_DECLS
     43RT_C_DECLS_BEGIN
    4444
    4545
     
    208208#endif
    209209
    210 RT_END_DECLS
    211 
    212 #endif
     210RT_C_DECLS_END
     211
     212#endif
  • trunk/src/VBox/Runtime/include/internal/time.h

    r20364 r20374  
    3434#include <iprt/types.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737
    3838#if defined(IN_RING3) || defined(IN_RC)
     
    4444#endif
    4545
    46 RT_END_DECLS
     46RT_C_DECLS_END
    4747
    4848#endif
  • trunk/src/VBox/Runtime/r0drv/alloc-r0drv.h

    r20364 r20374  
    3636#include "internal/magics.h"
    3737
    38 RT_BEGIN_DECLS
     38RT_C_DECLS_BEGIN
    3939
    4040/**
     
    6868void        rtMemFree(PRTMEMHDR pHdr);
    6969
    70 RT_END_DECLS
     70RT_C_DECLS_END
    7171#endif
    7272
  • trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h

    r20364 r20374  
    8787
    8888
    89 RT_BEGIN_DECLS
     89RT_C_DECLS_BEGIN
    9090/* mach/vm_types.h */
    9191typedef struct pmap *pmap_t;
     
    120120extern int ml_get_max_cpus(void);
    121121
    122 RT_END_DECLS
     122RT_C_DECLS_END
    123123
    124124
     
    127127 */
    128128
    129 RT_BEGIN_DECLS
     129RT_C_DECLS_BEGIN
    130130extern lck_grp_t *g_pDarwinLockGroup;
    131131int  rtThreadPreemptDarwinInit(void);
    132132void rtThreadPreemptDarwinTerm(void);
    133 RT_END_DECLS
     133RT_C_DECLS_END
    134134
    135135
  • trunk/src/VBox/Runtime/r0drv/linux/string.h

    r20364 r20374  
    3434#include <iprt/cdefs.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737#ifndef bool /* Linux 2.6.19 C++ nightmare */
    3838#define bool bool_type
     
    5656    ;
    5757
    58 RT_END_DECLS
     58RT_C_DECLS_END
    5959
    6060#endif
  • trunk/src/VBox/Runtime/r0drv/mp-r0drv.h

    r20364 r20374  
    3434#include <iprt/mp.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737
    3838/**
     
    7171void rtMpNotificationDoCallbacks(RTMPEVENT enmEvent, RTCPUID idCpu);
    7272
    73 RT_END_DECLS
     73RT_C_DECLS_END
    7474
    7575#endif
  • trunk/src/VBox/Runtime/r0drv/nt/internal-r0drv-nt.h

    r20364 r20374  
    3434#include <iprt/cpuset.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737
    3838/*******************************************************************************
     
    5454
    5555
    56 RT_END_DECLS
     56RT_C_DECLS_END
    5757
    5858#endif
  • trunk/src/VBox/Runtime/r0drv/nt/the-nt-kernel.h

    r20364 r20374  
    4141# define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
    4242# pragma warning(disable : 4163)
    43 RT_BEGIN_DECLS
     43RT_C_DECLS_BEGIN
    4444# include <ntddk.h>
    45 RT_END_DECLS
     45RT_C_DECLS_END
    4646# pragma warning(default : 4163)
    4747# undef  _InterlockedExchange
     
    5050# undef  _InterlockedAddLargeStatistic
    5151#else
    52 RT_BEGIN_DECLS
     52RT_C_DECLS_BEGIN
    5353# include <ntddk.h>
    54 RT_END_DECLS
     54RT_C_DECLS_END
    5555#endif
    5656
  • trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp

    r20364 r20374  
    4141#include "internal-r0drv-nt.h"
    4242
    43 RT_BEGIN_DECLS
     43RT_C_DECLS_BEGIN
    4444NTSTATUS NTAPI ZwYieldExecution(void);
    45 RT_END_DECLS
     45RT_C_DECLS_END
    4646
    4747
  • trunk/src/VBox/Runtime/r0drv/os2/the-os2-kernel.h

    r20364 r20374  
    4040#include <os2ddk/devhlp.h>
    4141
    42 RT_BEGIN_DECLS
     42RT_C_DECLS_BEGIN
    4343
    4444extern PCDOSTABLE   g_pDosTable;
     
    5151DECLASM(int) RTR0Os2DHVMGlobalToProcess(ULONG fFlags, PVOID pvR0, ULONG cb, PPVOID ppvR3);
    5252
    53 RT_END_DECLS
     53RT_C_DECLS_END
    5454
    5555#endif
  • trunk/src/VBox/Runtime/r0drv/os2/timer-r0drv-os2.cpp

    r20364 r20374  
    101101*   Internal Functions                                                         *
    102102*******************************************************************************/
    103 RT_BEGIN_DECLS
     103RT_C_DECLS_BEGIN
    104104DECLASM(void) rtTimerOs2Tick(void);
    105105DECLASM(int) rtTimerOs2Arm(void);
    106106DECLASM(int) rtTimerOs2Dearm(void);
    107 RT_END_DECLS
     107RT_C_DECLS_END
    108108
    109109
  • trunk/src/VBox/Runtime/r0drv/power-r0drv.h

    r20364 r20374  
    3434#include <iprt/power.h>
    3535
    36 RT_BEGIN_DECLS
     36RT_C_DECLS_BEGIN
    3737
    3838/* Called from initterm-r0drv.cpp: */
     
    4040void rtR0PowerNotificationTerm(void);
    4141
    42 RT_END_DECLS
     42RT_C_DECLS_END
    4343
    4444#endif
  • trunk/src/VBox/Runtime/r0drv/solaris/the-solaris-kernel.h

    r20364 r20374  
    6161#include <iprt/cdefs.h>
    6262
    63 RT_BEGIN_DECLS
     63RT_C_DECLS_BEGIN
    6464extern struct ddi_dma_attr g_SolarisX86PhysMemLimits;
    65 RT_END_DECLS
     65RT_C_DECLS_END
    6666
    6767#endif
  • trunk/src/VBox/Runtime/r3/alloc-ef.h

    r20364 r20374  
    159159*   Internal Functions                                                         *
    160160******************************************************************************/
    161 RT_BEGIN_DECLS
     161RT_C_DECLS_BEGIN
    162162void *  rtMemAlloc(const char *pszOp, RTMEMTYPE enmType, size_t cb, void *pvCaller, unsigned iLine, const char *pszFile, const char *pszFunction);
    163163void *  rtMemRealloc(const char *pszOp, RTMEMTYPE enmType, void *pvOld, size_t cbNew, void *pvCaller, unsigned iLine, const char *pszFile, const char *pszFunction);
    164164void    rtMemFree(const char *pszOp, RTMEMTYPE enmType, void *pv, void *pvCaller, unsigned iLine, const char *pszFile, const char *pszFunction);
    165 RT_END_DECLS
     165RT_C_DECLS_END
    166166
    167167#endif
  • trunk/src/VBox/Runtime/r3/win/timer-win.cpp

    r20364 r20374  
    7575#include "internal/magics.h"
    7676
    77 RT_BEGIN_DECLS
     77RT_C_DECLS_BEGIN
    7878/* from sysinternals. */
    7979NTSYSAPI LONG NTAPI NtSetTimerResolution(IN ULONG DesiredResolution, IN BOOLEAN SetResolution, OUT PULONG CurrentResolution);
    8080NTSYSAPI LONG NTAPI NtQueryTimerResolution(OUT PULONG MaximumResolution, OUT PULONG MinimumResolution, OUT PULONG CurrentResolution);
    81 RT_END_DECLS
     81RT_C_DECLS_END
    8282
    8383
  • trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.h

    r20364 r20374  
    3030
    3131#ifdef IN_RING0
    32 RT_BEGIN_DECLS
     32RT_C_DECLS_BEGIN
    3333DECLEXPORT(int) TSTR0ThreadPreemptionSrvReqHandler(PSUPDRVSESSION pSession, uint32_t uOperation,
    3434                                                   uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr);
    35 RT_END_DECLS
     35RT_C_DECLS_END
    3636#endif
    3737
  • trunk/src/VBox/VMM/CPUMInternal.h

    r20365 r20374  
    384384typedef CPUMCPU *PCPUMCPU;
    385385
    386 RT_BEGIN_DECLS
     386RT_C_DECLS_BEGIN
    387387
    388388DECLASM(int)      cpumHandleLazyFPUAsm(PCPUMCPU pCPUM);
     
    405405#endif
    406406
    407 RT_END_DECLS
     407RT_C_DECLS_END
    408408
    409409/** @} */
  • trunk/src/VBox/VMM/DBGFBp.cpp

    r20365 r20374  
    4040*   Internal Functions                                                         *
    4141*******************************************************************************/
    42 RT_BEGIN_DECLS
     42RT_C_DECLS_BEGIN
    4343static DECLCALLBACK(int) dbgfR3BpSetReg(PVM pVM, PCDBGFADDRESS pAddress, uint64_t *piHitTrigger, uint64_t *piHitDisable,
    4444                                        uint8_t u8Type, uint8_t cb, PRTUINT piBp);
     
    5353static int dbgfR3BpInt3Arm(PVM pVM, PDBGFBP pBp);
    5454static int dbgfR3BpInt3Disarm(PVM pVM, PDBGFBP pBp);
    55 RT_END_DECLS
     55RT_C_DECLS_END
    5656
    5757
  • trunk/src/VBox/VMM/EMInternal.h

    r20365 r20374  
    3333#include <setjmp.h>
    3434
    35 RT_BEGIN_DECLS
     35RT_C_DECLS_BEGIN
    3636
    3737
     
    396396/** @} */
    397397
    398 RT_END_DECLS
     398RT_C_DECLS_END
    399399
    400400#endif
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r20365 r20374  
    4545#define HWACCM_VTX_WITH_VPID
    4646
    47 RT_BEGIN_DECLS
     47RT_C_DECLS_BEGIN
    4848
    4949
     
    731731/** @} */
    732732
    733 RT_END_DECLS
    734 
    735 #endif
    736 
     733RT_C_DECLS_END
     734
     735#endif
     736
  • trunk/src/VBox/VMM/IOMInternal.h

    r20365 r20374  
    402402
    403403
    404 RT_BEGIN_DECLS
     404RT_C_DECLS_BEGIN
    405405
    406406#ifdef IN_RING3
     
    535535bool    iomSaveDataToReg(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t u32Data);
    536536
    537 RT_END_DECLS
     537RT_C_DECLS_END
    538538
    539539
  • trunk/src/VBox/VMM/MMInternal.h

    r20365 r20374  
    770770
    771771
    772 RT_BEGIN_DECLS
     772RT_C_DECLS_BEGIN
    773773
    774774
     
    815815void *mmPagePoolPhys2Ptr(PMMPAGEPOOL pPool, RTHCPHYS HCPhys);
    816816
    817 RT_END_DECLS
     817RT_C_DECLS_END
    818818
    819819/** @} */
  • trunk/src/VBox/VMM/PATM/CSAMInternal.h

    r20365 r20374  
    279279}
    280280
    281 RT_BEGIN_DECLS
     281RT_C_DECLS_BEGIN
    282282VMMRCDECL(int) CSAMGCCodePageWriteHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange);
    283 RT_END_DECLS
    284 
    285 #endif
     283RT_C_DECLS_END
     284
     285#endif
  • trunk/src/VBox/VMM/PATM/PATMA.h

    r20365 r20374  
    139139
    140140
    141 RT_BEGIN_DECLS
     141RT_C_DECLS_BEGIN
    142142
    143143extern PATCHASMRECORD PATMCliRecord;
     
    187187extern uint32_t       PATMInterruptFlag;
    188188
    189 RT_END_DECLS
     189RT_C_DECLS_END
    190190
    191191#endif
  • trunk/src/VBox/VMM/PATM/PATMInternal.h

    r20365 r20374  
    727727#endif /* !IN_RC */
    728728
    729 RT_BEGIN_DECLS
     729RT_C_DECLS_BEGIN
    730730/**
    731731 * #PF Virtual Handler callback for Guest access a page monitored by PATM
     
    834834}
    835835
    836 RT_END_DECLS
     836RT_C_DECLS_END
    837837
    838838#ifdef LOG_ENABLED
  • trunk/src/VBox/VMM/PDMAsyncCompletionInternal.h

    r20365 r20374  
    2929#include <VBox/pdmasynccompletion.h>
    3030
    31 RT_BEGIN_DECLS
     31RT_C_DECLS_BEGIN
    3232
    3333/**
     
    252252void pdmR3AsyncCompletionCompleteTask(PPDMASYNCCOMPLETIONTASK pTask);
    253253
    254 RT_END_DECLS
     254RT_C_DECLS_END
    255255
    256256extern const PDMASYNCCOMPLETIONEPCLASSOPS g_PDMAsyncCompletionEndpointClassFile;
  • trunk/src/VBox/VMM/PDMInternal.h

    r20365 r20374  
    3535#endif
    3636
    37 RT_BEGIN_DECLS
     37RT_C_DECLS_BEGIN
    3838
    3939
     
    290290# error "Invalid header PDM order. Include PDMInternal.h before VBox/pdm.h!"
    291291#endif
    292 RT_END_DECLS
     292RT_C_DECLS_END
    293293#include <VBox/pdm.h>
    294 RT_BEGIN_DECLS
     294RT_C_DECLS_BEGIN
    295295
    296296/**
     
    10421042/** @} */
    10431043
    1044 RT_END_DECLS
    1045 
    1046 #endif
     1044RT_C_DECLS_END
     1045
     1046#endif
  • trunk/src/VBox/VMM/PGMBth.h

    r20365 r20374  
    2424*   Internal Functions                                                         *
    2525*******************************************************************************/
    26 RT_BEGIN_DECLS
     26RT_C_DECLS_BEGIN
    2727PGM_BTH_DECL(int, InitData)(PVM pVM, PPGMMODEDATA pModeData, bool fResolveGCAndR0);
    2828PGM_BTH_DECL(int, Enter)(PVMCPU pVCpu, RTGCPHYS GCPhysCR3);
     
    3838PGM_BTH_DECL(int, MapCR3)(PVMCPU pVCpu, RTGCPHYS GCPhysCR3);
    3939PGM_BTH_DECL(int, UnmapCR3)(PVMCPU pVCpu);
    40 RT_END_DECLS
     40RT_C_DECLS_END
    4141
    4242
  • trunk/src/VBox/VMM/PGMGst.h

    r20365 r20374  
    2424*   Internal Functions                                                         *
    2525*******************************************************************************/
    26 RT_BEGIN_DECLS
     26RT_C_DECLS_BEGIN
    2727/* r3 */
    2828PGM_GST_DECL(int, InitData)(PVM pVM, PPGMMODEDATA pModeData, bool fResolveGCAndR0);
     
    3535PGM_GST_DECL(int, ModifyPage)(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
    3636PGM_GST_DECL(int, GetPDE)(PVMCPU pVCpu, RTGCPTR GCPtr, PX86PDEPAE pPDE);
    37 RT_END_DECLS
     37RT_C_DECLS_END
    3838
    3939
  • trunk/src/VBox/VMM/PGMInternal.h

    r20365 r20374  
    29172917
    29182918
    2919 RT_BEGIN_DECLS
     2919RT_C_DECLS_BEGIN
    29202920
    29212921int             pgmLock(PVM pVM);
     
    30073007PX86PML4        pgmGstLazyMapPml4(PPGMCPU pPGM);
    30083008
    3009 RT_END_DECLS
     3009RT_C_DECLS_END
    30103010
    30113011
  • trunk/src/VBox/VMM/PGMShw.h

    r20365 r20374  
    118118*   Internal Functions                                                         *
    119119*******************************************************************************/
    120 RT_BEGIN_DECLS
     120RT_C_DECLS_BEGIN
    121121/* r3 */
    122122PGM_SHW_DECL(int, InitData)(PVM pVM, PPGMMODEDATA pModeData, bool fResolveGCAndR0);
     
    128128PGM_SHW_DECL(int, GetPage)(PVMCPU pVCpu, RTGCPTR GCPtr, uint64_t *pfFlags, PRTHCPHYS pHCPhys);
    129129PGM_SHW_DECL(int, ModifyPage)(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
    130 RT_END_DECLS
     130RT_C_DECLS_END
    131131
    132132
  • trunk/src/VBox/VMM/SELMInternal.h

    r20365 r20374  
    179179} SELM, *PSELM;
    180180
    181 RT_BEGIN_DECLS
     181RT_C_DECLS_BEGIN
    182182
    183183VMMRCDECL(int) selmRCGuestGDTWriteHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange);
     
    191191void           selmSetRing1Stack(PVM pVM, uint32_t ss, RTGCPTR32 esp);
    192192
    193 RT_END_DECLS
     193RT_C_DECLS_END
    194194
    195195/** @} */
  • trunk/src/VBox/VMM/SSMInternal.h

    r20365 r20374  
    2727#include <VBox/ssm.h>
    2828
    29 RT_BEGIN_DECLS
     29RT_C_DECLS_BEGIN
    3030
    3131/** @defgroup grp_ssm_int       Internals
     
    179179/** @} */
    180180
    181 RT_END_DECLS
     181RT_C_DECLS_END
    182182
    183183#endif /* !___SSMInternal_h */
  • trunk/src/VBox/VMM/STAMInternal.h

    r20365 r20374  
    3131
    3232
    33 RT_BEGIN_DECLS
     33RT_C_DECLS_BEGIN
    3434
    3535/** @defgroup grp_stam_int   Internals
     
    123123/** @} */
    124124
    125 RT_END_DECLS
     125RT_C_DECLS_END
    126126
    127127#endif
  • trunk/src/VBox/VMM/TM.cpp

    r20365 r20374  
    17821782}
    17831783
    1784 //RT_BEGIN_DECLS
     1784//RT_C_DECLS_BEGIN
    17851785//int     iomLock(PVM pVM);
    17861786//void    iomUnlock(PVM pVM);
    1787 //RT_END_DECLS
     1787//RT_C_DECLS_END
    17881788
    17891789
  • trunk/src/VBox/VMM/TMInternal.h

    r20365 r20374  
    3131#include <VBox/pdmcritsect.h>
    3232
    33 RT_BEGIN_DECLS
     33RT_C_DECLS_BEGIN
    3434
    3535
     
    584584/** @} */
    585585
    586 RT_END_DECLS
     586RT_C_DECLS_END
    587587
    588588#endif
  • trunk/src/VBox/VMM/TRPMInternal.h

    r20365 r20374  
    3636#define TRPM_HANDLER_INT_BASE  0x20
    3737
    38 RT_BEGIN_DECLS
     38RT_C_DECLS_BEGIN
    3939
    4040
     
    287287/** @} */
    288288
    289 RT_END_DECLS
    290 
    291 #endif
     289RT_C_DECLS_END
     290
     291#endif
  • trunk/src/VBox/VMM/VMInternal.h

    r20365 r20374  
    454454typedef VMINTUSERPERVMCPU *PVMINTUSERPERVMCPU;
    455455
    456 RT_BEGIN_DECLS
     456RT_C_DECLS_BEGIN
    457457
    458458DECLCALLBACK(int)   vmR3EmulationThread(RTTHREAD ThreadSelf, void *pvArg);
     
    466466void                vmR3SetState(PVM pVM, VMSTATE enmStateNew);
    467467
    468 RT_END_DECLS
     468RT_C_DECLS_END
    469469
    470470
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r20365 r20374  
    2525*   Internal Functions                                                         *
    2626*******************************************************************************/
    27 RT_BEGIN_DECLS
     27RT_C_DECLS_BEGIN
    2828PGM_BTH_DECL(int, Trap0eHandler)(PVMCPU pVCpu, RTGCUINT uErr, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault);
    2929PGM_BTH_DECL(int, InvalidatePage)(PVMCPU pVCpu, RTGCPTR GCPtrPage);
     
    4242PGM_BTH_DECL(int, MapCR3)(PVMCPU pVCpu, RTGCPHYS GCPhysCR3);
    4343PGM_BTH_DECL(int, UnmapCR3)(PVMCPU pVCpu);
    44 RT_END_DECLS
     44RT_C_DECLS_END
    4545
    4646
     
    34483448 * @param   pHlp        Pointer to the output functions.
    34493449 */
    3450 RT_BEGIN_DECLS
     3450RT_C_DECLS_BEGIN
    34513451VMMR3DECL(int) PGMR3DumpHierarchyHC(PVM pVM, uint32_t cr3, uint32_t cr4, bool fLongMode, unsigned cMaxDepth, PCDBGFINFOHLP pHlp);
    3452 RT_END_DECLS
     3452RT_C_DECLS_END
    34533453
    34543454#endif
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r20365 r20374  
    2424*   Internal Functions                                                         *
    2525*******************************************************************************/
    26 RT_BEGIN_DECLS
     26RT_C_DECLS_BEGIN
    2727PGM_GST_DECL(int, GetPage)(PVMCPU pVCpu, RTGCPTR GCPtr, uint64_t *pfFlags, PRTGCPHYS pGCPhys);
    2828PGM_GST_DECL(int, ModifyPage)(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
    2929PGM_GST_DECL(int, GetPDE)(PVMCPU pVCpu, RTGCPTR GCPtr, PX86PDEPAE pPDE);
    3030PGM_GST_DECL(bool, HandlerVirtualUpdate)(PVM pVM, uint32_t cr4);
    31 RT_END_DECLS
     31RT_C_DECLS_END
    3232
    3333
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r20365 r20374  
    4646*   Internal Functions                                                         *
    4747*******************************************************************************/
    48 RT_BEGIN_DECLS
     48RT_C_DECLS_BEGIN
    4949static void pgmPoolFlushAllInt(PPGMPOOL pPool);
    5050#ifdef PGMPOOL_WITH_USER_TRACKING
     
    7676void            pgmPoolTrackPhysExtFreeList(PVM pVM, uint16_t iPhysExt);
    7777
    78 RT_END_DECLS
     78RT_C_DECLS_END
    7979
    8080
  • trunk/src/VBox/VMM/VMMAll/PGMAllShw.h

    r20365 r20374  
    120120*   Internal Functions                                                         *
    121121*******************************************************************************/
    122 RT_BEGIN_DECLS
     122RT_C_DECLS_BEGIN
    123123PGM_SHW_DECL(int, GetPage)(PVMCPU pVCpu, RTGCUINTPTR GCPtr, uint64_t *pfFlags, PRTHCPHYS pHCPhys);
    124124PGM_SHW_DECL(int, ModifyPage)(PVMCPU pVCpu, RTGCUINTPTR GCPtr, size_t cbPages, uint64_t fFlags, uint64_t fMask);
    125 RT_END_DECLS
     125RT_C_DECLS_END
    126126
    127127
  • trunk/src/VBox/VMM/VMMGC/CPUMGC.cpp

    r20365 r20374  
    3838*   Internal Functions                                                         *
    3939*******************************************************************************/
    40 RT_BEGIN_DECLS /* addressed from asm (not called so no DECLASM). */
     40RT_C_DECLS_BEGIN /* addressed from asm (not called so no DECLASM). */
    4141DECLCALLBACK(int) cpumGCHandleNPAndGP(PVM pVM, PCPUMCTXCORE pRegFrame, uintptr_t uUser);
    42 RT_END_DECLS
     42RT_C_DECLS_END
    4343
    4444
  • trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp

    r20365 r20374  
    4343*   Global Variables                                                           *
    4444*******************************************************************************/
    45 RT_BEGIN_DECLS
     45RT_C_DECLS_BEGIN
    4646extern DECLEXPORT(const PDMDEVHLPRC)    g_pdmRCDevHlp;
    4747extern DECLEXPORT(const PDMPICHLPRC)    g_pdmRCPicHlp;
     
    4949extern DECLEXPORT(const PDMIOAPICHLPRC) g_pdmRCIoApicHlp;
    5050extern DECLEXPORT(const PDMPCIHLPRC)    g_pdmRCPciHlp;
    51 RT_END_DECLS
     51RT_C_DECLS_END
    5252
    5353
  • trunk/src/VBox/VMM/VMMGC/PGMGCBth.h

    r20365 r20374  
    2424*   Internal Functions                                                         *
    2525*******************************************************************************/
    26 RT_BEGIN_DECLS
    27 RT_END_DECLS
     26RT_C_DECLS_BEGIN
     27RT_C_DECLS_END
    2828
    2929
  • trunk/src/VBox/VMM/VMMGC/PGMGCShw.h

    r20365 r20374  
    7474*   Internal Functions                                                         *
    7575*******************************************************************************/
    76 RT_BEGIN_DECLS
    77 RT_END_DECLS
     76RT_C_DECLS_BEGIN
     77RT_C_DECLS_END
    7878
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r20365 r20374  
    9999*   Global Variables                                                           *
    100100*******************************************************************************/
    101 RT_BEGIN_DECLS
     101RT_C_DECLS_BEGIN
    102102/** Defined in VMMGC0.asm or VMMGC99.asm.
    103103 * @{ */
     
    109109extern const TRPMGCHYPER g_aTrap0eHandlersEnd[1];
    110110/** @} */
    111 RT_END_DECLS
     111RT_C_DECLS_END
    112112
    113113
     
    115115*   Internal Functions                                                         *
    116116*******************************************************************************/
    117 RT_BEGIN_DECLS /* addressed from asm (not called so no DECLASM). */
     117RT_C_DECLS_BEGIN /* addressed from asm (not called so no DECLASM). */
    118118DECLCALLBACK(int) trpmGCTrapInGeneric(PVM pVM, PCPUMCTXCORE pRegFrame, uintptr_t uUser);
    119 RT_END_DECLS
     119RT_C_DECLS_END
    120120
    121121
  • trunk/src/VBox/VMM/VMMInternal.h

    r20365 r20374  
    429429
    430430
    431 RT_BEGIN_DECLS
     431RT_C_DECLS_BEGIN
    432432
    433433#ifdef IN_RING3
     
    552552#endif /* IN_RC */
    553553
    554 RT_END_DECLS
     554RT_C_DECLS_END
    555555
    556556/** @} */
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.h

    r20365 r20374  
    3232#include <VBox/hwacc_svm.h>
    3333
    34 RT_BEGIN_DECLS
     34RT_C_DECLS_BEGIN
    3535
    3636/** @defgroup grp_svm_int  Internal
     
    224224/** @} */
    225225
    226 RT_END_DECLS
     226RT_C_DECLS_END
    227227
    228228#endif
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.h

    r20365 r20374  
    3232#include <VBox/hwacc_vmx.h>
    3333
    34 RT_BEGIN_DECLS
     34RT_C_DECLS_BEGIN
    3535
    3636/** @defgroup grp_vmx_int   Internal
     
    368368/** @} */
    369369
    370 RT_END_DECLS
     370RT_C_DECLS_END
    371371
    372372#endif
  • trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp

    r20365 r20374  
    4545*   Global Variables                                                           *
    4646*******************************************************************************/
    47 RT_BEGIN_DECLS
     47RT_C_DECLS_BEGIN
    4848extern DECLEXPORT(const PDMDEVHLPR0)    g_pdmR0DevHlp;
    4949extern DECLEXPORT(const PDMPICHLPR0)    g_pdmR0PicHlp;
     
    5151extern DECLEXPORT(const PDMIOAPICHLPR0) g_pdmR0IoApicHlp;
    5252extern DECLEXPORT(const PDMPCIHLPR0)    g_pdmR0PciHlp;
    53 RT_END_DECLS
     53RT_C_DECLS_END
    5454
    5555
  • trunk/src/VBox/VMM/VMMR0/PGMR0.cpp

    r20365 r20374  
    3131#include <iprt/assert.h>
    3232
    33 RT_BEGIN_DECLS
     33RT_C_DECLS_BEGIN
    3434#define PGM_BTH_NAME(name)          PGM_BTH_NAME_32BIT_PROT(name)
    3535#include "PGMR0Bth.h"
     
    4848#undef PGM_BTH_NAME
    4949
    50 RT_END_DECLS
     50RT_C_DECLS_END
    5151
    5252
  • trunk/src/VBox/VMM/VMMR0/PGMR0Bth.h

    r20365 r20374  
    2424*   Internal Functions                                                         *
    2525*******************************************************************************/
    26 RT_BEGIN_DECLS
     26RT_C_DECLS_BEGIN
    2727PGM_BTH_DECL(int, Trap0eHandler)(PVMCPU pVCpu, RTGCUINT uErr, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault);
    28 RT_END_DECLS
     28RT_C_DECLS_END
    2929
    3030
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r20365 r20374  
    5959*   Internal Functions                                                         *
    6060*******************************************************************************/
    61 RT_BEGIN_DECLS
     61RT_C_DECLS_BEGIN
    6262VMMR0DECL(int) ModuleInit(void);
    6363VMMR0DECL(void) ModuleTerm(void);
    64 RT_END_DECLS
     64RT_C_DECLS_END
    6565
    6666
  • trunk/src/VBox/VMM/VMMSwitcher/VMMSwitcher.h

    r20365 r20374  
    131131#pragma pack()
    132132
    133 RT_BEGIN_DECLS
     133RT_C_DECLS_BEGIN
    134134extern VMMSWITCHERDEF vmmR3Switcher32BitTo32Bit_Def;
    135135extern VMMSWITCHERDEF vmmR3Switcher32BitToPAE_Def;
     
    151151extern DECLCALLBACK(void) vmmR3SwitcherAMD64ToPAE_Relocate(PVM pVM, PVMMSWITCHERDEF pSwitcher, RTR0PTR R0PtrCode, uint8_t *pu8CodeR3, RTGCPTR GCPtrCode, uint32_t u32IdCode);
    152152extern DECLCALLBACK(void) vmmR3SwitcherAMD64ToAMD64_Relocate(PVM pVM, PVMMSWITCHERDEF pSwitcher, RTR0PTR R0PtrCode, uint8_t *pu8CodeR3, RTGCPTR GCPtrCode, uint32_t u32IdCode);
    153 RT_END_DECLS
     153RT_C_DECLS_END
    154154
    155155#endif
  • trunk/src/VBox/VMM/testcase/tstHelp.h

    r20365 r20374  
    2626#include <VBox/cpum.h>
    2727
    28 RT_BEGIN_DECLS
     28RT_C_DECLS_BEGIN
    2929void tstDumpCtx(PCPUMCTX pCtx, const char *pszComment);
    30 RT_END_DECLS
     30RT_C_DECLS_END
    3131
    3232
  • trunk/src/VBox/VMM/testcase/tstMicro.h

    r20365 r20374  
    118118
    119119
    120 RT_BEGIN_DECLS
     120RT_C_DECLS_BEGIN
    121121
    122122DECLASM(void) idtOnly42(PTSTMICRO pTst);
     
    143143DECLASM(void) tstInterrupt42(void);
    144144
    145 RT_END_DECLS
     145RT_C_DECLS_END
    146146
    147147#endif
  • trunk/src/VBox/VMM/testcase/tstMicroGC.cpp

    r20365 r20374  
    3838*   Internal Functions                                                         *
    3939*******************************************************************************/
    40 RT_BEGIN_DECLS
     40RT_C_DECLS_BEGIN
    4141DECLEXPORT(int) tstMicroGC(PTSTMICRO pTst, unsigned uTestcase);
    42 RT_END_DECLS
     42RT_C_DECLS_END
    4343
    4444
  • trunk/src/recompiler/Sun/crt/stdio.h

    r20372 r20374  
    3838#endif
    3939
    40 RT_BEGIN_DECLS
     40RT_C_DECLS_BEGIN
    4141
    4242typedef struct FILE FILE;
     
    7272#endif
    7373
    74 RT_END_DECLS
     74RT_C_DECLS_END
    7575
    7676#endif
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