VirtualBox

Changeset 41301 in vbox for trunk/src/bldprogs


Ignore:
Timestamp:
May 15, 2012 10:01:07 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77970
Message:

recursive expansion needs to be prevent in a different way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxCPP.cpp

    r41297 r41301  
    111111    /** The string space core. */
    112112    RTSTRSPACECORE      Core;
     113#if 0
    113114    /** For linking macros that have the fExpanding flag set. */
    114115    struct VBCPPMACRO  *pUpExpanding;
     116#endif
    115117    /** Whether it's a function. */
    116118    bool                fFunction;
     
    144146    /** The expansion buffer. */
    145147    VBCPPSTRBUF     StrBuf;
     148#if 0
    146149    /** List of expanding macros (Stack). */
    147150    PVBCPPMACRO     pMacroStack;
     151#endif
    148152    /** The input stream (in case we want to look for parameter lists). */
    149153    PSCMSTREAM      pStrmInput;
     
    15641568         */
    15651569        VBCPPMACROEXP ExpCtx;
     1570#if 0
    15661571        ExpCtx.pMacroStack    = NULL;
     1572#endif
    15671573        ExpCtx.pStrmInput     = pStrmInput;
    15681574        ExpCtx.papszArgs      = NULL;
     
    22392245    if (rcExit == RTEXITCODE_SUCCESS)
    22402246    {
     2247#if 0 /* wrong */
    22412248        /*
    22422249         * Push the macro onto the stack.
     
    22452252        pMacro->pUpExpanding = pExp->pMacroStack;
    22462253        pExp->pMacroStack    = pMacro;
     2254#endif
    22472255    }
    22482256
     
    24712479static void vbcppMacroExpandCleanup(PVBCPPMACROEXP pExp)
    24722480{
     2481#if 0
    24732482    while (pExp->pMacroStack)
    24742483    {
     
    24792488        pMacro->pUpExpanding = NULL;
    24802489    }
     2490#endif
    24812491
    24822492    while (pExp->cArgs > 0)
     
    44524462    size_t              offComment;
    44534463    VBCPPMACROEXP       ExpCtx;
     4464#if 0
    44544465    ExpCtx.pMacroStack    = NULL;
     4466#endif
    44554467    ExpCtx.pStrmInput     = NULL;
    44564468    ExpCtx.papszArgs      = NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette