VirtualBox

Changeset 20374 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jun 8, 2009 12:43:21 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48298
Message:

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

Location:
trunk/src/VBox/HostDrivers
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • 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
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