VirtualBox

Changeset 20367 in vbox for trunk/src


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

Devices: BEGIN_DECLS -> RT_BEGIN_DECLS; END_DECLS -> RT_END_DECLS.

Location:
trunk/src/VBox/Devices
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Builtins.h

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

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

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

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

    r19614 r20367  
    6464*   Internal Functions                                                         *
    6565*******************************************************************************/
    66 __BEGIN_DECLS
     66RT_BEGIN_DECLS
    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 __END_DECLS
     71RT_END_DECLS
    7272#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    7373#endif /* VBOX */
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r20087 r20367  
    997997
    998998/* Forward declarations ******************************************************/
    999 __BEGIN_DECLS
     999RT_BEGIN_DECLS
    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 __END_DECLS
     1004RT_END_DECLS
    10051005
    10061006static int e1kRegReadUnimplemented (E1KSTATE* pState, uint32_t offset, uint32_t index, uint32_t *pu32Value);
  • trunk/src/VBox/Devices/Network/DevINIP.cpp

    r20087 r20367  
    2525*******************************************************************************/
    2626#define LOG_GROUP LOG_GROUP_DEV_INIP
    27 #include <iprt/cdefs.h>     /* include early to allow __BEGIN_DECLS hack */
     27#include <iprt/cdefs.h>     /* include early to allow RT_BEGIN_DECLS 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 __BEGIN_DECLS
     33RT_BEGIN_DECLS
    3434#include "lwip/sys.h"
    3535#include "lwip/stats.h"
     
    4444#include "lwip/sockets.h"
    4545#include "netif/etharp.h"
    46 __END_DECLS
     46RT_END_DECLS
    4747#include <VBox/pdmdev.h>
    4848#include <VBox/tm.h>
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r20119 r20367  
    11391139}
    11401140
    1141 __BEGIN_DECLS
     1141RT_BEGIN_DECLS
    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 __END_DECLS
     1158RT_END_DECLS
    11591159
    11601160#undef htonl
  • trunk/src/VBox/Devices/Network/Pcap.h

    r10755 r20367  
    2525#include <iprt/stream.h>
    2626
    27 __BEGIN_DECLS
     27RT_BEGIN_DECLS
    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 __END_DECLS
     35RT_END_DECLS
    3636
    3737#endif
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r20217 r20367  
    542542*   Internal Functions                                                         *
    543543*******************************************************************************/
    544 __BEGIN_DECLS
     544RT_BEGIN_DECLS
    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 __END_DECLS
     568RT_END_DECLS
    569569
    570570
     
    18521852                                N_("Configuration error: Failed to read \"ShowCpu\""));
    18531853
    1854     /* Always show the CPU leafs when we have multiple VCPUs or when the IO-APIC is enabled. 
    1855      * The Windows SMP kernel needs a CPU leaf or else its idle loop will burn cpu cycles; the 
     1854    /* Always show the CPU leafs when we have multiple VCPUs or when the IO-APIC is enabled.
     1855     * The Windows SMP kernel needs a CPU leaf or else its idle loop will burn cpu cycles; the
    18561856     * intelppm driver refuses to register an idle state handler.
    18571857     */
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r20197 r20367  
    438438#ifdef VBOX
    439439static uint32_t apic_get_delivery_bitmask(APICDeviceInfo* dev, uint8_t dest, uint8_t dest_mode);
    440 __BEGIN_DECLS
     440RT_BEGIN_DECLS
    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 __END_DECLS
     459RT_END_DECLS
    460460#endif /* VBOX */
    461461
  • trunk/src/VBox/Devices/PC/DevPIC.cpp

    r12977 r20367  
    5353*   Internal Functions                                                         *
    5454*******************************************************************************/
    55 __BEGIN_DECLS
     55RT_BEGIN_DECLS
    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 __END_DECLS
     64RT_END_DECLS
    6565#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    6666
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r20131 r20367  
    156156*   Internal Functions                                                         *
    157157*******************************************************************************/
    158 __BEGIN_DECLS
     158RT_BEGIN_DECLS
    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 __END_DECLS
     166RT_END_DECLS
    167167
    168168
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r20087 r20367  
    7070*******************************************************************************/
    7171#ifndef VBOX_DEVICE_STRUCT_TESTCASE
    72 __BEGIN_DECLS
     72RT_BEGIN_DECLS
    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 __END_DECLS
     78RT_END_DECLS
    7979#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    8080
  • trunk/src/VBox/Devices/Parallel/DevParallel.cpp

    r12978 r20367  
    153153*   Internal Functions                                                         *
    154154*******************************************************************************/
    155 __BEGIN_DECLS
     155RT_BEGIN_DECLS
    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 __END_DECLS
     162RT_END_DECLS
    163163
    164164
  • trunk/src/VBox/Devices/Serial/DevSerial.cpp

    r16583 r20367  
    185185*   Internal Functions                                                         *
    186186*******************************************************************************/
    187 __BEGIN_DECLS
     187RT_BEGIN_DECLS
    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 __END_DECLS
     190RT_END_DECLS
    191191
    192192#ifdef IN_RING3
  • trunk/src/VBox/Devices/Storage/ATAController.h

    r15252 r20367  
    179179    /** Pointer to the I/O buffer. */
    180180    RCPTRTYPE(uint8_t *) pbIOBufferRC;
    181    
     181
    182182    RTRCPTR Aligmnent1; /**< Align the statistics at an 8-byte boundrary. */
    183183
     
    397397 *  Internal Functions                                                         *
    398398 ******************************************************************************/
    399 __BEGIN_DECLS
     399RT_BEGIN_DECLS
    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 __END_DECLS
     408RT_END_DECLS
    409409
    410410#ifdef IN_RING3
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r19366 r20367  
    472472 *  Internal Functions                                                         *
    473473 ******************************************************************************/
    474 __BEGIN_DECLS
     474RT_BEGIN_DECLS
    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 __END_DECLS
     483RT_END_DECLS
    484484
    485485
  • trunk/src/VBox/Devices/Storage/DrvHostBase.h

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

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

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

    r11282 r20367  
    3030#include "VMMDevState.h"
    3131
    32 __BEGIN_DECLS
     32RT_BEGIN_DECLS
    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 __END_DECLS
     43RT_END_DECLS
    4444
    4545#endif /* !___VMMDev_VMMDevHGCM_h */
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