VirtualBox

Changeset 2022 in kBuild for trunk


Ignore:
Timestamp:
Nov 2, 2008 2:15:00 AM (16 years ago)
Author:
bird
Message:

exprval.c: fixed bug parsing unqoted variable references ($(VAR) == $(VAR)). Converted ifcond testcases to the GNU Make tests and supplemented it with tests for this bug.

Location:
trunk/src/kmk
Files:
3 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/expreval.c

    r2019 r2022  
    18821882            int     iPar = -1;
    18831883            char    chEndPar = '\0';
    1884             char    ch;
     1884            char    ch, ch2;
    18851885
    18861886            pszStart = psz;
     
    18891889                /* $(adsf) or ${asdf} needs special handling. */
    18901890                if (    ch == '$'
    1891                     &&  (   psz[1] == '('
    1892                          || psz[1] == '{'))
     1891                    &&  (   (ch2 = psz[1]) == '('
     1892                         || ch2 == '{'))
    18931893                {
    18941894                    psz++;
     
    18991899                        break;
    19001900                    }
    1901                     achPars[++iPar] = chEndPar = ch == '(' ? ')' : '}';
     1901                    achPars[++iPar] = chEndPar = ch2 == '(' ? ')' : '}';
    19021902                }
    19031903                else if (ch == chEndPar)
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