Changeset 8003 for trunk/tools/common/kFileSDF.cpp
- Timestamp:
- Feb 24, 2002, 3:47:28 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/kFileSDF.cpp
r5534 r8003 1 /* $Id: kFileSDF.cpp,v 1. 1 2001-04-17 04:16:03bird Exp $1 /* $Id: kFileSDF.cpp,v 1.2 2002-02-24 02:47:27 bird Exp $ 2 2 * 3 3 * kFileSDF- Structure Defintion File class Implementation. … … 18 18 * Header Files * 19 19 *******************************************************************************/ 20 #include <os2.h>21 22 20 #include <string.h> 23 #include <malloc.h> 24 25 #include "kInterfaces.h" 21 22 #include "kTypes.h" 23 #include "kError.h" 24 #include "kFileInterfaces.h" 26 25 #include "kFile.h" 27 26 #include "kFileFormatBase.h" … … 34 33 35 34 35 36 36 /******************************************************************************* 37 37 * Global Variables * 38 38 *******************************************************************************/ 39 #if 139 #if 0 40 40 static kFileSDF tst((kFile*)NULL); 41 41 #endif … … 67 67 * 68 68 */ 69 void kFileSDF::parseSDFFile(void *pvFile) throw(int)69 void kFileSDF::parseSDFFile(void *pvFile) 70 70 { 71 71 /* … … 75 75 if ( pHdr->cStructs >= 0x8000 /* 32k is a reasonable limit. */ 76 76 || pHdr->cTypes >= 0x8000) 77 throw( 1);77 throw(kError(kError::SDF_TOO_MANY)); 78 78 79 79 /* … … 160 160 * @remark Will throw error codes. 161 161 */ 162 kFileSDF::kFileSDF(kFile *pFile) throw(int):163 papStructs(NULL), pHdr(NULL), paTypes(NULL)162 kFileSDF::kFileSDF(kFile *pFile) : 163 kFileFormatBase(pFile), papStructs(NULL), pHdr(NULL), paTypes(NULL) 164 164 { 165 165 long cchFile = pFile->getSize(); 166 void * pvFile = pFile-> readFile();166 void * pvFile = pFile->mapFile(); 167 167 168 168 /* … … 197 197 catch (int err) 198 198 { 199 free(pvFile);199 kFile::mapFree(pvFile); 200 200 if (papStructs); 201 201 delete papStructs; … … 209 209 if (papStructs); 210 210 delete papStructs; 211 free(pHdr); 212 } 211 kFile::mapFree(pHdr); 212 } 213 214 215 216 kDbgTypeEntry * kFileSDF::dbgtypeFindFirst(int flFlags) 217 { 218 return NULL; 219 } 220 221 kDbgTypeEntry * kFileSDF::dbgtypeFindNext(kDbgTypeEntry *kDbgTypeEntry) 222 { 223 return NULL; 224 } 225 226 void kFileSDF::dbgtypeFindClose(kDbgTypeEntry *kDbgTypeEntry) 227 { 228 return; 229 } 230 231 kDbgTypeEntry * kFileSDF::dbgtypeLookup(const char *pszName, int flFlags) 232 { 233 return NULL; 234 } 235 236 237 238 239 KBOOL kFileSDF::dump(kFile *pOut) 240 { 241 return FALSE; 242 } 243
Note:
See TracChangeset
for help on using the changeset viewer.