Changeset 3167 for trunk/src/kObjCache/kObjCache.c
- Timestamp:
- Mar 20, 2018, 10:47:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kObjCache/kObjCache.c
r3110 r3167 807 807 /** The current dependency file. */ 808 808 PDEP pCurDep; 809 /** The core dependency collector state. */ 810 DEPGLOBALS Core; 809 811 } KOCDEP; 810 812 /** Pointer to a KOCDEP. */ … … 824 826 pDepState->pszFilename = NULL; 825 827 pDepState->pCurDep = NULL; 828 depInit(&pDepState->Core); 826 829 } 827 830 … … 837 840 free(pDepState->pszFilename); 838 841 pDepState->pszFilename = NULL; 839 depCleanup( );842 depCleanup(&pDepState->Core); 840 843 } 841 844 … … 908 911 || cchFilename != pDepState->pCurDep->cchFilename 909 912 || strcmp(pDepState->pszFilename, pDepState->pCurDep->szFilename)) 910 pDepState->pCurDep = depAdd( pDepState->pszFilename, cchFilename);913 pDepState->pCurDep = depAdd(&pDepState->Core, pDepState->pszFilename, cchFilename); 911 914 } 912 915 … … 1070 1073 || cchFilename != pDepState->pCurDep->cchFilename 1071 1074 || strcmp(pDepState->pszFilename, pDepState->pCurDep->szFilename)) 1072 pDepState->pCurDep = depAdd( pDepState->pszFilename, cchFilename);1075 pDepState->pCurDep = depAdd(&pDepState->Core, pDepState->pszFilename, cchFilename); 1073 1076 pDepState->offFilename = 0; 1074 1077 break; … … 1112 1115 FatalMsg("Failed to open dependency file '%s': %s\n", pszFilename, strerror(errno)); 1113 1116 1114 depOptimize( fFixCase, fQuiet, NULL /*pszIgnoredExt*/);1117 depOptimize(&pDepState->Core, fFixCase, fQuiet, NULL /*pszIgnoredExt*/); 1115 1118 1116 1119 /* Make object file name with unix slashes. */ … … 1122 1125 fprintf(pFile, "%s:", pszObjFileAbs); 1123 1126 free(pszObjFileAbs); 1124 depPrint( pFile);1127 depPrint(&pDepState->Core, pFile); 1125 1128 if (fGenStubs) 1126 depPrintStubs( pFile);1129 depPrintStubs(&pDepState->Core, pFile); 1127 1130 1128 1131 if (fclose(pFile) != 0)
Note:
See TracChangeset
for help on using the changeset viewer.