Changeset 3167 for trunk/src/kDepPre/kDepPre.c
- Timestamp:
- Mar 20, 2018, 10:47:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kDepPre/kDepPre.c
r3065 r3167 56 56 * @returns 0 on success. 57 57 * @returns 1 or other approriate exit code on failure. 58 * @param pThis Pointer to the 'dep' instance. 58 59 * @param pInput Input stream. (probably not seekable) 59 60 */ 60 static int ParseCPrecompiler( FILE *pInput)61 static int ParseCPrecompiler(PDEPGLOBALS pThis, FILE *pInput) 61 62 { 62 63 enum … … 186 187 || pDep->cchFilename != cchFilename 187 188 || memcmp(pDep->szFilename, szBuf, cchFilename)) 188 pDep = depAdd( szBuf, cchFilename);189 pDep = depAdd(pThis, szBuf, cchFilename); 189 190 break; 190 191 } … … 225 226 { 226 227 int i; 228 DEPGLOBALS This; 227 229 228 230 /* Arguments. */ … … 450 452 * Do the parsing. 451 453 */ 452 i = ParseCPrecompiler(pInput); 454 depInit(&This); 455 i = ParseCPrecompiler(&This, pInput); 453 456 454 457 /* … … 465 468 if (!i) 466 469 { 467 depOptimize( fFixCase, 0 /* fQuiet */, NULL /*pszIgnoredExt*/);470 depOptimize(&This, fFixCase, 0 /* fQuiet */, NULL /*pszIgnoredExt*/); 468 471 fprintf(pOutput, "%s:", pszTarget); 469 depPrint( pOutput);472 depPrint(&This, pOutput); 470 473 if (fStubs) 471 depPrintStubs( pOutput);474 depPrintStubs(&This, pOutput); 472 475 } 473 476 … … 487 490 } 488 491 492 depCleanup(&This); 493 489 494 return i; 490 495 }
Note:
See TracChangeset
for help on using the changeset viewer.