Changeset 27784 for branches/czw_branch/20100427/ippTools/src/pxtools.c
- Timestamp:
- Apr 27, 2010, 11:50:36 AM (16 years ago)
- Location:
- branches/czw_branch/20100427
- Files:
-
- 1 edited
- 1 copied
-
. (copied) (copied from trunk )
-
ippTools/src/pxtools.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20100427/ippTools/src/pxtools.c
r27417 r27784 48 48 } 49 49 50 psString pxMergeCodeVersions(psString version1, psString version2) { 51 psString out = NULL; 52 53 bool mod1 = false; 54 bool mod2 = false; 55 56 psS32 num1; 57 psS32 num2; 58 psS32 numO; 59 60 if (strchr(version1,'M')) { 61 psStringSubstitute(&version1,"M",""); 62 mod1 = true; 63 } 64 if (strchr(version2,'M')) { 65 psStringSubstitute(&version2,"M",""); 66 mod2 = true; 67 } 68 69 num1 = strtol(version1,NULL,10); 70 num2 = strtol(version2,NULL,10); 71 72 if (num1 >= num2) { 73 numO = num1; 74 } 75 else { 76 numO = num2; 77 } 78 79 psStringAppend(&out,"%" PRId32,numO); 80 if (mod1 || mod2) { 81 psStringAppend(&out,"M"); 82 } 83 return(out); 84 } 85 86 87 50 88 // 'scrubbed' is no longer a virtual state equivalent to cleaned, but allows files to be removed 51 89 // even if the config files is missing. This change was prompted as files that are cleaned can
Note:
See TracChangeset
for help on using the changeset viewer.
