- Timestamp:
- Oct 29, 2005 8:38:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kDepPre/kDepPre.c
r326 r330 209 209 && pDep->szFilename[pDep->cchFilename - 1] == '>') 210 210 continue; 211 #ifdef __WIN32__ 212 { 213 char *psz; 214 char szFilename[_MAX_PATH + 1]; 215 if (_fullpath(szFilename, pDep->szFilename, sizeof(szFilename))) 216 w32_fixcase(szFilename); 217 psz = szFilename; 218 while ((psz = strchr(psz, '\\')) != NULL) 219 *psz++ = '/'; 220 fprintf(pOutput, " \\\n\t%s", szFilename); 221 } 222 #else 211 212 #if defined(__WIN32__) 213 { 214 char *psz; 215 char szFilename[_MAX_PATH + 1]; 216 if (_fullpath(szFilename, pDep->szFilename, sizeof(szFilename))) 217 w32_fixcase(szFilename); 218 psz = szFilename; 219 while ((psz = strchr(psz, '\\')) != NULL) 220 *psz++ = '/'; 221 fprintf(pOutput, " \\\n\t%s", szFilename); 222 } 223 224 #elif !defined(__OS2__) 225 { 226 const char *psz = strchr(pDep->szFilename, ':'); 227 if (psz) 228 fprintf(pOutput, " \\\n\t%s", psz + 1); 229 else 230 fprintf(pOutput, " \\\n\t%s", pDep->szFilename); 231 } 232 233 #else /* __OS2__ */ 223 234 fprintf(pOutput, " \\\n\t%s", pDep->szFilename); 224 #endif 235 236 #endif /* __OS2__ */ 225 237 } 226 238 fprintf(pOutput, "\n\n"); … … 602 614 { 603 615 pInput = fopen(argv[i], "r"); 604 if (!p Output)616 if (!pInput) 605 617 { 606 fprintf(stderr, "%s: error: Failed to open optput file '%s'.\n", argv[0], argv[i]);618 fprintf(stderr, "%s: error: Failed to open input file '%s'.\n", argv[0], argv[i]); 607 619 return 1; 608 620 }
Note:
See TracChangeset
for help on using the changeset viewer.