Changeset 3322 for trunk/src/kmk/kbuild.c
- Timestamp:
- Apr 17, 2020, 12:23:49 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kbuild.c
r3278 r3322 382 382 kbuild_apply_defpath(struct variable *pDefPath, char **ppsz, unsigned int *pcch, unsigned int *pcchAlloc, int fCanFree) 383 383 { 384 const char *pszIterator;385 const char *pszInCur;386 384 unsigned int cchInCur; 387 385 unsigned int cchMaxRelative = 0; 388 unsigned int cRelativePaths;386 const char *pszInCur; 389 387 390 388 /* 391 389 * The first pass, count the relative paths. 392 390 */ 393 cRelativePaths = 0; 394 pszIterator = *ppsz; 395 while ((pszInCur = find_next_token(&pszIterator, &cchInCur)) != NULL) 391 const char *pszIterator = *ppsz; 392 const char * const pszEos = pszIterator + *pcch; 393 unsigned int cRelativePaths = 0; 394 assert(*pszEos == '\0'); 395 while ((pszInCur = find_next_file_token(&pszIterator, pszEos, &cchInCur)) != NULL) 396 396 { 397 397 /* is relative? */ … … 438 438 cRelativePaths = 0; 439 439 pszIterator = *ppsz; 440 while ((pszInCur = find_next_ token(&pszIterator, &cchInCur)))440 while ((pszInCur = find_next_file_token(&pszIterator, pszEos, &cchInCur))) 441 441 { 442 442 /* is relative? */
Note:
See TracChangeset
for help on using the changeset viewer.