Changeset 5531 for trunk/tools/database/APIImport.cpp
- Timestamp:
- Apr 17, 2001, 2:26:28 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/APIImport.cpp
r5053 r5531 1 /* $Id: APIImport.cpp,v 1. 8 2001-02-02 08:45:42bird Exp $ */1 /* $Id: APIImport.cpp,v 1.9 2001-04-17 00:24:46 bird Exp $ */ 2 2 /* 3 3 * … … 18 18 #include "APIImport.h" 19 19 #include "kFile.h" 20 #include "kInterfaces.h" 20 21 #include "kFileFormatBase.h" 21 22 #include "kFilePE.h" … … 242 243 static long processFile(const char *pszFilename, const POPTIONS pOptions, long &cFunctions) 243 244 { 244 kFileFormatBase *pFile;245 245 long lRc = 1; 246 246 … … 252 252 try 253 253 { 254 kFileFormatBase * pFileBase = NULL; 255 kExportI * pExportFile; 256 kModuleI * pModuleFile; 254 257 char achDataBuffer[0x200]; 255 258 char *pszModuleName = &achDataBuffer[0]; … … 259 262 try 260 263 { 261 pFile = new kFilePE(&InFile); 264 kFilePE *pFile = new kFilePE(&InFile); 265 pExportFile = pFile; 266 pModuleFile = pFile; 267 pFileBase = pFile; 262 268 } 263 269 catch (int i) 264 270 { 265 271 i = i; 266 pFile = new kFileDef(&InFile); 267 } 268 269 if (pFile->queryModuleName(pszModuleName)) 272 kFileDef *pFile = new kFileDef(&InFile); 273 pExportFile = pFile; 274 pModuleFile = pFile; 275 pFileBase = pFile; 276 } 277 278 if (pModuleFile->moduleGetName(pszModuleName)) 270 279 { 271 280 int cch = strlen(pszModuleName); … … 281 290 BOOL fClearUpdateOk = FALSE; 282 291 BOOL fOk; 283 EXPORTENTRYexport;292 kExportEntry export; 284 293 285 294 /* Clear the update flag for all functions in this DLL. */ … … 288 297 289 298 lRc = 0; 290 fOk = p File->findFirstExport(&export);299 fOk = pExportFile->exportFindFirst(&export); 291 300 while (fOk) 292 301 { 293 302 /* check if name or not */ 294 if (!pFile ->isDef() || export.ulOrdinal < ORD_START_INTERNAL_FUNCTIONS)303 if (!pFileBase->isDef() || export.ulOrdinal < ORD_START_INTERNAL_FUNCTIONS) 295 304 { 296 305 char szIntName[256]; … … 344 353 345 354 /* next */ 346 fOk = p File->findNextExport(&export);355 fOk = pExportFile->exportFindNext(&export); 347 356 } 348 357 … … 362 371 fprintf(phLog, "%s: error - could not get module name.\n", pszFilename); 363 372 364 delete(pFile );373 delete(pFileBase); 365 374 } 366 375 catch (int err)
Note:
See TracChangeset
for help on using the changeset viewer.