VirtualBox

Changeset 542 in kBuild for trunk/src/gmake


Ignore:
Timestamp:
Sep 20, 2006 3:11:40 AM (18 years ago)
Author:
bird
Message:

a couple of fixes.

File:
1 edited

Legend:

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

    r538 r542  
    567567    pSdks->cTarget = 0;
    568568    sprintf(pszTmp, "$(%s_SDKS) $(%s_SDKS.%s) $(%s_SDKS.%s) $(%s_SDKS.%s.%s)",
     569            pTarget->value,
    569570            pTarget->value, pBldType->value,
    570571            pTarget->value, pBldTrg->value,
    571             pTarget->value, pBldTrg->value,
    572             pTarget->value, pBldTrgArch->value);
     572            pTarget->value, pBldTrg->value, pBldTrgArch->value);
    573573    pszIterator = pSdks->apsz[1] = allocated_variable_expand(pszTmp);
    574574    while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0)
     
    580580    pSdks->cSource = 0;
    581581    sprintf(pszTmp, "$(%s_SDKS) $(%s_SDKS.%s) $(%s_SDKS.%s) $(%s_SDKS.%s.%s)",
     582            pSource->value,
    582583            pSource->value, pBldType->value,
    583584            pSource->value, pBldTrg->value,
    584             pSource->value, pBldTrg->value,
    585             pSource->value, pBldTrgArch->value);
     585            pSource->value, pBldTrg->value, pBldTrgArch->value);
    586586    pszIterator = pSdks->apsz[2] = allocated_variable_expand(pszTmp);
    587587    while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0)
     
    593593    pSdks->cTargetSource = 0;
    594594    sprintf(pszTmp, "$(%s_%s_SDKS) $(%s_%s_SDKS.%s) $(%s_%s_SDKS.%s) $(%s_%s_SDKS.%s.%s)",
     595            pTarget->value, pSource->value,
    595596            pTarget->value, pSource->value, pBldType->value,
    596597            pTarget->value, pSource->value, pBldTrg->value,
    597             pTarget->value, pSource->value, pBldTrg->value,
    598             pTarget->value, pSource->value, pBldTrgArch->value);
     598            pTarget->value, pSource->value, pBldTrg->value, pBldTrgArch->value);
    599599    pszIterator = pSdks->apsz[3] = allocated_variable_expand(pszTmp);
    600600    while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0)
     
    782782     * Get the variables.
    783783     */
    784     cVars = 12 + (pSdks->c + 1) * 12 * 4;
     784    cVars = 12 /* the tool */
     785          + 12 * pSdks->cGlobal /* global sdks */
     786          + 12 /* the globals */
     787          + 12 * pSdks->cTarget /* target sdks */
     788          + 12 /* the target */
     789          + 12 * pSdks->cSource /* source sdks */
     790          + 12 /* the source */
     791          + 12 * pSdks->cTargetSource /* target + source sdks */
     792          + 12 /* the target + source */;
    785793    paVars = alloca(cVars * sizeof(paVars[0]));
    786794
     
    10621070     */
    10631071    /* calc variable name. */
    1064     cch = pTarget->value_length + pSource->value_length + 7;
     1072    cch = sizeof("PATH_")-1 + pTarget->value_length + sizeof("_")-1 + pSource->value_length;
    10651073    psz = pszName = alloca(cch + 1);
    10661074    memcpy(psz, "PATH_", sizeof("PATH_") - 1);          psz += sizeof("PATH_") - 1;
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