Subversion Repositories Kolibri OS

Rev

Rev 342 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 342 Rev 550
Line 40... Line 40...
40
#include 
40
#include 
Line 41... Line 41...
41
 
41
 
Line 42... Line -...
42
 
-
 
43
extern char *main_file;
-
 
44
 
-
 
45
#ifdef DLHEAP
-
 
46
 
-
 
47
void* _cdecl dlmalloc(size_t);
-
 
48
void  _cdecl dlfree(void*);
-
 
49
void _cdecl mf_init();
-
 
50
 
-
 
51
#define malloc dlmalloc
-
 
52
#define free dlfree
-
 
53
#define realloc dlrealloc
-
 
54
 
42
 
Line 55... Line 43...
55
#endif
43
extern char *main_file;
56
 
44
 
Line 57... Line 45...
57
size_t FileSize(FILE *handle); 
45
size_t FileSize(FILE *handle); 
58
 
46
 
Line 194... Line 182...
194
        header.infotableofs = LONG(header.infotableofs);
182
        header.infotableofs = LONG(header.infotableofs);
Line 195... Line 183...
195
 
183
 
Line 196... Line 184...
196
        length = header.numlumps*sizeof(filelump_t);
184
        length = header.numlumps*sizeof(filelump_t);
197
 
-
 
198
        fileinfo = alloca(length);
185
 
199
        
186
        fileinfo = alloca(length);
200
        fseek (handle, header.infotableofs, SEEK_SET);
187
        fseek (handle, header.infotableofs, SEEK_SET);
201
        fread (fileinfo, 1, length, handle);
188
        fread (fileinfo, 1, length, handle);