- Timestamp:
- Dec 3, 2006, 6:06:18 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r613 r644 1 1 /* $Id$ */ 2 3 2006-12-02: 4 - kmk: 5 o Fixed bugs dealing with the order SDK properties was applied to sources. 6 7 2006-12-01: 8 - kBuild: 9 o Added support for compiling resource files. 10 o Fixed bug causing object files take from the SOURCES to be cleaned up. 2 11 3 12 2006-11-25: -
trunk/src/gmake/kbuild.c
r595 r644 806 806 Prop.value_length = strlen(pszProp); 807 807 808 assert(iDirection == 1 || iDirection == -1); 809 808 810 /* 809 811 * Get the variables. … … 971 973 */ 972 974 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) 975 977 { 976 978 paVars[iVar].cchExp = 0; … … 995 997 */ 996 998 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) 999 1001 { 1000 1002 if (!paVars[iVar].cchExp) … … 1034 1036 iDirection = 1; 1035 1037 else if (!strcmp(argv[2], "right-to-left")) 1036 iDirection = 1;1038 iDirection = -1; 1037 1039 else 1038 1040 fatal(NILF, _("incorrect direction argument `%s'!"), argv[2]); … … 1196 1198 "DEFS", "defs", 1/* left-to-right */); 1197 1199 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 */); 1199 1201 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 */); 1201 1203 pDeps = kbuild_collect_source_prop(pTarget, pSource, pTool, &Sdks, pType, pBldType, pBldTrg, pBldTrgArch, pBldTrgCpu, 1202 1204 "DEPS", "deps", 1/* left-to-right */);
Note:
See TracChangeset
for help on using the changeset viewer.