VirtualBox

Changeset 97906 in vbox for trunk


Ignore:
Timestamp:
Dec 29, 2022 6:23:26 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/log: Retired the RTMemExecAlloc code and replaced the RTLOGGER::pfnLogger member with a dummy placeholder.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/log.h

    r97880 r97906  
    194194
    195195
     196#if 0 /* retired */
    196197/**
    197198 * Logger function.
     
    203204/** Pointer to logger function. */
    204205typedef FNRTLOGGER *PFNRTLOGGER;
     206#endif
    205207
    206208/**
     
    404406    /** User value \#3, initialized to zero. */
    405407    uint64_t                u64UserValue3;
     408#if 0
    406409    /** Pointer to the logger function (used in non-C99 mode only).
    407410     *
     
    412415     * RTMemExecAlloc(), except for agnostic R0 code.) */
    413416    PFNRTLOGGER             pfnLogger;
     417#else
     418    /** Unused. */
     419    uintptr_t               uUsedToBeNonC99Logger;
     420#endif
    414421#if ARCH_BITS == 32
    415422    /** Explicit padding. */
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r96924 r97906  
    13611361        pLoggerInt->idxBufDesc = 0;
    13621362
    1363 # if defined(RT_ARCH_X86) && !defined(LOG_USE_C99)
     1363# if defined(RT_ARCH_X86) && !defined(LOG_USE_C99) && 0 /* retired */
    13641364        /*
    13651365         * Emit wrapper code.
     
    13931393        }
    13941394        if (RT_SUCCESS(rc))
    1395 # endif /* X86 wrapper code*/
     1395# endif /* X86 wrapper code */
    13961396        {
    13971397# ifdef IN_RING3 /* files and env.vars. are only accessible when in R3 at the present time. */
     
    15171517            pLoggerInt->pOutputIf->pfnClose(pLoggerInt->pOutputIf, pLoggerInt->pvOutputIfUser);
    15181518# endif
    1519 # if defined(RT_ARCH_X86) && !defined(LOG_USE_C99)
     1519# if defined(RT_ARCH_X86) && !defined(LOG_USE_C99) && 0 /* retired */
    15201520            if (pLoggerInt->Core.pfnLogger)
    15211521            {
     
    16291629    }
    16301630
    1631 # if defined(RT_ARCH_X86) && !defined(LOG_USE_C99)
     1631# if defined(RT_ARCH_X86) && !defined(LOG_USE_C99) && 0 /* retired */
    16321632    if (pLoggerInt->Core.pfnLogger)
    16331633    {
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