Changeset 644 for trunk/src


Ignore:
Timestamp:
Dec 3, 2006, 6:06:18 AM (19 years ago)
Author:
bird
Message:

Fixed bugs dealing with the order SDK properties was applied to sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kbuild.c

    r595 r644  
    806806    Prop.value_length = strlen(pszProp);
    807807
     808    assert(iDirection == 1 || iDirection == -1);
     809
    808810    /*
    809811     * Get the variables.
     
    971973     */
    972974    cchTotal = 0;
    973     iVarEnd = iDirection > -1 ? cVars : 0;
    974     for (iVar = iDirection > 0 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
     975    iVarEnd = iDirection == 1 ? cVars : 0;
     976    for (iVar = iDirection == 1 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
    975977    {
    976978        paVars[iVar].cchExp = 0;
     
    995997     */
    996998    psz = pszResult = xmalloc(cchTotal + 1);
    997     iVarEnd = iDirection > -1 ? cVars : 0;
    998     for (iVar = iDirection > 0 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
     999    iVarEnd = iDirection == 1 ? cVars : 0;
     1000    for (iVar = iDirection == 1 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
    9991001    {
    10001002        if (!paVars[iVar].cchExp)
     
    10341036        iDirection = 1;
    10351037    else if (!strcmp(argv[2], "right-to-left"))
    1036         iDirection = 1;
     1038        iDirection = -1;
    10371039    else
    10381040        fatal(NILF, _("incorrect direction argument `%s'!"), argv[2]);
     
    11961198                                        "DEFS", "defs", 1/* left-to-right */);
    11971199    pIncs  = kbuild_collect_source_prop(pTarget, pSource, pTool, &Sdks, pType, pBldType, pBldTrg, pBldTrgArch, pBldTrgCpu,
    1198                                         "INCS", "incs", 1/* right-to-left */);
     1200                                        "INCS", "incs", -1/* right-to-left */);
    11991201    pFlags = kbuild_collect_source_prop(pTarget, pSource, pTool, &Sdks, pType, pBldType, pBldTrg, pBldTrgArch, pBldTrgCpu,
    1200                                         "FLAGS", "flags", 1/* right-to-left */);
     1202                                        "FLAGS", "flags", -1/* right-to-left */);
    12011203    pDeps  = kbuild_collect_source_prop(pTarget, pSource, pTool, &Sdks, pType, pBldType, pBldTrg, pBldTrgArch, pBldTrgCpu,
    12021204                                        "DEPS", "deps", 1/* left-to-right */);
Note: See TracChangeset for help on using the changeset viewer.