Changeset 2955 in kBuild for trunk/src/lib/kDep.c
- Timestamp:
- Sep 21, 2016 7:05:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/kDep.c
r2950 r2955 187 187 * 'Optimizes' and corrects the dependencies. 188 188 */ 189 void depOptimize(int fFixCase, int fQuiet )189 void depOptimize(int fFixCase, int fQuiet, const char *pszIgnoredExt) 190 190 { 191 191 /* 192 192 * Walk the list correct the names and re-insert them. 193 193 */ 194 PDEP pDepOrg = g_pDeps; 195 PDEP pDep = g_pDeps; 194 size_t cchIgnoredExt = pszIgnoredExt ? strlen(pszIgnoredExt) : 0; 195 PDEP pDepOrg = g_pDeps; 196 PDEP pDep = g_pDeps; 196 197 g_pDeps = NULL; 197 198 for (; pDep; pDep = pDep->pNext) … … 214 215 continue; 215 216 pszFilename = pDep->szFilename; 217 218 /* 219 * Skip pszIgnoredExt if given. 220 */ 221 if ( pszIgnoredExt 222 && pDep->cchFilename > cchIgnoredExt 223 && memcmp(&pDep->szFilename[pDep->cchFilename - cchIgnoredExt], pszIgnoredExt, cchIgnoredExt) == 0) 224 continue; 216 225 217 226 #if K_OS != K_OS_OS2 && K_OS != K_OS_WINDOWS
Note:
See TracChangeset
for help on using the changeset viewer.