- Timestamp:
- Oct 15, 2005 12:43:02 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kDepPre/kDepPre.c
r325 r326 211 211 #ifdef __WIN32__ 212 212 { 213 char *psz; 213 214 char szFilename[_MAX_PATH + 1]; 214 215 if (_fullpath(szFilename, pDep->szFilename, sizeof(szFilename))) 215 216 w32_fixcase(szFilename); 217 psz = szFilename; 218 while ((psz = strchr(psz, '\\')) != NULL) 219 *psz++ = '/'; 216 220 fprintf(pOutput, " \\\n\t%s", szFilename); 217 221 } … … 387 391 */ 388 392 case C_SKIP_LINE: 389 # if 0 390 for (;;) 391 { 392 if (!fgets(szBuf, sizeof(szBuf), pInput)) 393 { 394 enmMode = C_EOF; 395 break; 396 } 397 ch = szBuf[strlen(szBuf) - 1]; 393 do 394 { 398 395 if ( ch == '\r' 399 396 || ch == '\n') 400 397 break; 401 } 402 # else 403 while ((ch = FGETC(pInput)) != EOF) 404 if ( ch == '\r' 405 || ch == '\n') 406 break; 407 # endif 398 } while ((ch = FGETC(pInput)) != EOF); 408 399 enmMode = C_DISCOVER; 409 400 break; … … 613 604 if (!pOutput) 614 605 { 615 fprintf(stderr, "%s: error: Failed to open input file '%s'.\n", argv[0], argv[i]);606 fprintf(stderr, "%s: error: Failed to open optput file '%s'.\n", argv[0], argv[i]); 616 607 return 1; 617 608 } … … 643 634 if (!pOutput) 644 635 { 645 fprintf(stderr, "%s: syntax error: No input!\n", argv[0]);636 fprintf(stderr, "%s: syntax error: No output!\n", argv[0]); 646 637 return 1; 647 638 }
Note:
See TracChangeset
for help on using the changeset viewer.