Changeset 542 in kBuild for trunk/src/gmake
- Timestamp:
- Sep 20, 2006 3:11:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/kbuild.c
r538 r542 567 567 pSdks->cTarget = 0; 568 568 sprintf(pszTmp, "$(%s_SDKS) $(%s_SDKS.%s) $(%s_SDKS.%s) $(%s_SDKS.%s.%s)", 569 pTarget->value, 569 570 pTarget->value, pBldType->value, 570 571 pTarget->value, pBldTrg->value, 571 pTarget->value, pBldTrg->value, 572 pTarget->value, pBldTrgArch->value); 572 pTarget->value, pBldTrg->value, pBldTrgArch->value); 573 573 pszIterator = pSdks->apsz[1] = allocated_variable_expand(pszTmp); 574 574 while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0) … … 580 580 pSdks->cSource = 0; 581 581 sprintf(pszTmp, "$(%s_SDKS) $(%s_SDKS.%s) $(%s_SDKS.%s) $(%s_SDKS.%s.%s)", 582 pSource->value, 582 583 pSource->value, pBldType->value, 583 584 pSource->value, pBldTrg->value, 584 pSource->value, pBldTrg->value, 585 pSource->value, pBldTrgArch->value); 585 pSource->value, pBldTrg->value, pBldTrgArch->value); 586 586 pszIterator = pSdks->apsz[2] = allocated_variable_expand(pszTmp); 587 587 while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0) … … 593 593 pSdks->cTargetSource = 0; 594 594 sprintf(pszTmp, "$(%s_%s_SDKS) $(%s_%s_SDKS.%s) $(%s_%s_SDKS.%s) $(%s_%s_SDKS.%s.%s)", 595 pTarget->value, pSource->value, 595 596 pTarget->value, pSource->value, pBldType->value, 596 597 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); 599 599 pszIterator = pSdks->apsz[3] = allocated_variable_expand(pszTmp); 600 600 while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0) … … 782 782 * Get the variables. 783 783 */ 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 */; 785 793 paVars = alloca(cVars * sizeof(paVars[0])); 786 794 … … 1062 1070 */ 1063 1071 /* 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; 1065 1073 psz = pszName = alloca(cch + 1); 1066 1074 memcpy(psz, "PATH_", sizeof("PATH_") - 1); psz += sizeof("PATH_") - 1;
Note:
See TracChangeset
for help on using the changeset viewer.