VirtualBox

Changeset 20364 in vbox


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

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

Location:
trunk/src/VBox/Runtime
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Doxyfile

    r18638 r20364  
    11631163
    11641164PREDEFINED             = DOXYGEN_RUNNING __DOXYGEN__ \
    1165     __END_DECLS=  \
    1166     __BEGIN_DECLS=  \
     1165    RT_END_DECLS=  \
     1166    RT_BEGIN_DECLS=  \
    11671167    VBOX=1 \
    11681168    RT_STRICT=1 \
  • trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp

    r20360 r20364  
    199199}
    200200
     201
     202RTDECL(int)         RTDbgModCreateDeferred(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR cb, uint32_t fFlags)
     203{
     204    return VERR_NOT_IMPLEMENTED;
     205}
     206
     207
    201208RTDECL(int)         RTDbgModCreateFromImage(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, uint32_t fFlags)
    202209{
  • trunk/src/VBox/Runtime/common/math/gcc/quad.h

    r4474 r20364  
    136136#endif
    137137
    138 __BEGIN_DECLS
     138RT_BEGIN_DECLS
    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 __END_DECLS
     165RT_END_DECLS
  • trunk/src/VBox/Runtime/generic/env-generic.cpp

    r8245 r20364  
    4949#endif
    5050#if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) || defined(RT_OS_OPENBSD)
    51 __BEGIN_DECLS
     51RT_BEGIN_DECLS
    5252extern char **environ;
    53 __END_DECLS
     53RT_END_DECLS
    5454#endif
    5555
     
    7373    /** Magic value . */
    7474    uint32_t    u32Magic;
    75     /** Number of variables in the array. 
     75    /** Number of variables in the array.
    7676     * This does not include the terminating NULL entry. */
    7777    size_t      cVars;
    78     /** Capacity (allocated size) of the array. 
    79      * This includes space for the terminating NULL element (for compatibility 
     78    /** Capacity (allocated size) of the array.
     79     * This includes space for the terminating NULL element (for compatibility
    8080     * with the C library), so that c <= cCapacity - 1. */
    8181    size_t      cAllocated;
    8282    /** Array of environment variables. */
    8383    char      **papszEnv;
    84     /** Array of environment variables in the process CP. 
     84    /** Array of environment variables in the process CP.
    8585     * This get (re-)constructed when RTEnvGetExecEnvP method is called. */
    8686    char      **papszEnvOtherCP;
     
    9292
    9393/**
    94  * Internal worker that resolves the pointer to the default 
     94 * Internal worker that resolves the pointer to the default
    9595 * process environment. (environ)
    96  * 
     96 *
    9797 * @returns Pointer to the default environment.
    9898 *          This may be NULL.
     
    102102#ifdef RT_OS_DARWIN
    103103    return *(_NSGetEnviron());
    104 #elif defined(RT_OS_L4) 
     104#elif defined(RT_OS_L4)
    105105    /* So far, our L4 libraries do not include environment support. */
    106106    return NULL;
    107107#else
    108108    return environ;
    109 #endif 
     109#endif
    110110}
    111111
     
    113113/**
    114114 * Internal worker that creates an environment handle with a specified capacity.
    115  * 
     115 *
    116116 * @returns IPRT status code.
    117117 * @param   ppIntEnv    Where to store the result.
     
    141141
    142142        RTMemFree(pIntEnv);
    143     }   
     143    }
    144144
    145145    return VERR_NO_MEMORY;
     
    156156RTDECL(int) RTEnvDestroy(RTENV Env)
    157157{
    158     /* 
     158    /*
    159159     * Ignore NIL_RTENV and validate input.
    160160     */
     
    167167    AssertReturn(pIntEnv->u32Magic == RTENV_MAGIC, VERR_INVALID_HANDLE);
    168168
    169     /* 
     169    /*
    170170     * Do the cleanup.
    171171     */
     
    192192    /*RTCritSectDelete(&pIntEnv->CritSect) */
    193193    RTMemFree(pIntEnv);
    194    
     194
    195195    return VINF_SUCCESS;
    196196}
     
    285285    else
    286286    {
    287         /* 
     287        /*
    288288         * Make a copy of the variable name so we can terminate it
    289289         * properly and then pass the request on to RTEnvSetEx.
     
    312312    if (Env == RTENV_DEFAULT)
    313313    {
    314         /* 
     314        /*
    315315         * Since RTEnvPut isn't UTF-8 clean and actually expects the strings
    316          * to be in the current code page (codeset), we'll do the necessary 
     316         * to be in the current code page (codeset), we'll do the necessary
    317317         * conversions here.
    318318         */
     
    362362            if (iVar < pIntEnv->cVars)
    363363            {
    364                 /* 
     364                /*
    365365                 * Replace the current entry. Simple.
    366366                 */
     
    371371            {
    372372                /*
    373                  * Adding a new variable. Resize the array if required 
     373                 * Adding a new variable. Resize the array if required
    374374                 * and then insert the new value at the end.
    375375                 */
     
    395395                }
    396396            }
    397    
     397
    398398            RTENV_UNLOCK(pIntEnv);
    399399
     
    416416    if (Env == RTENV_DEFAULT)
    417417    {
    418         /* 
     418        /*
    419419         * Since RTEnvUnset isn't UTF-8 clean and actually expects the strings
    420          * to be in the current code page (codeset), we'll do the necessary 
     420         * to be in the current code page (codeset), we'll do the necessary
    421421         * conversions here.
    422422         */
     
    459459    }
    460460    return rc;
    461    
     461
    462462}
    463463
     
    475475    if (Env == RTENV_DEFAULT)
    476476    {
    477         /* 
     477        /*
    478478         * Since RTEnvGet isn't UTF-8 clean and actually expects the strings
    479          * to be in the current code page (codeset), we'll do the necessary 
     479         * to be in the current code page (codeset), we'll do the necessary
    480480         * conversions here.
    481481         */
     
    545545    }
    546546    return rc;
    547    
     547
    548548}
    549549
     
    556556    if (Env == RTENV_DEFAULT)
    557557    {
    558         /* 
     558        /*
    559559         * Since RTEnvExist isn't UTF-8 clean and actually expects the strings
    560          * to be in the current code page (codeset), we'll do the necessary 
     560         * to be in the current code page (codeset), we'll do the necessary
    561561         * conversions here.
    562562         */
     
    615615        RTENV_LOCK(pIntEnv);
    616616
    617         /* 
    618          * Free any old envp. 
     617        /*
     618         * Free any old envp.
    619619         */
    620620        if (pIntEnv->papszEnvOtherCP)
  • trunk/src/VBox/Runtime/include/internal/dbgmod.h

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

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

    r19562 r20364  
    109109
    110110
    111 __BEGIN_DECLS
     111RT_BEGIN_DECLS
    112112
    113 __END_DECLS
     113RT_END_DECLS
    114114
    115115#endif
  • trunk/src/VBox/Runtime/include/internal/fs.h

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

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

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

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

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

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

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

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

    r8245 r20364  
    3434#include <iprt/string.h>
    3535
    36 __BEGIN_DECLS
     36RT_BEGIN_DECLS
    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 __END_DECLS
     60RT_END_DECLS
    6161
    6262#endif
  • trunk/src/VBox/Runtime/include/internal/thread.h

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

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

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

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

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

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

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

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

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

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

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

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

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

    r19547 r20364  
    159159*   Internal Functions                                                         *
    160160******************************************************************************/
    161 __BEGIN_DECLS
     161RT_BEGIN_DECLS
    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 __END_DECLS
     165RT_END_DECLS
    166166
    167167#endif
  • trunk/src/VBox/Runtime/r3/win/timer-win.cpp

    r9950 r20364  
    7575#include "internal/magics.h"
    7676
    77 __BEGIN_DECLS
     77RT_BEGIN_DECLS
    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 __END_DECLS
     81RT_END_DECLS
    8282
    8383
  • trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.h

    r19935 r20364  
    3030
    3131#ifdef IN_RING0
    32 __BEGIN_DECLS
     32RT_BEGIN_DECLS
    3333DECLEXPORT(int) TSTR0ThreadPreemptionSrvReqHandler(PSUPDRVSESSION pSession, uint32_t uOperation,
    3434                                                   uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr);
    35 __END_DECLS
     35RT_END_DECLS
    3636#endif
    3737
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