Changeset 9709 for trunk/src/odincrt/malloc.cpp
- Timestamp:
- Jan 22, 2003, 6:06:44 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/malloc.cpp
r9266 r9709 1 /* $Id: malloc.cpp,v 1. 7 2002-09-19 09:38:26sandervl Exp $ */1 /* $Id: malloc.cpp,v 1.8 2003-01-22 17:06:42 sandervl Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 8 8 */ 9 9 10 //#undef __DEBUG_ALLOC__ 10 #define ORIGINAL_VAC_FUNCTIONS 11 11 #include <malloc.h> 12 12 #include <umalloc.h> … … 48 48 #endif 49 49 50 void * _LNK_CONV os2calloc( size_t a, size_t b )50 void * _LNK_CONV CRTWRAP(calloc)( size_t a, size_t b ) 51 51 { 52 52 unsigned short sel = RestoreOS2FS(); … … 62 62 } 63 63 64 void _LNK_CONV os2free( void *a )64 void _LNK_CONV CRTWRAP(free)( void *a ) 65 65 { 66 66 unsigned short sel = RestoreOS2FS(); … … 74 74 } 75 75 76 void * _LNK_CONV os2malloc( size_t a)76 void * _LNK_CONV CRTWRAP(malloc)( size_t a) 77 77 { 78 78 unsigned short sel = RestoreOS2FS(); … … 89 89 } 90 90 91 void * _LNK_CONV os2realloc( void *a, size_t b)91 void * _LNK_CONV CRTWRAP(realloc)( void *a, size_t b) 92 92 { 93 93 unsigned short sel = RestoreOS2FS(); … … 103 103 } 104 104 105 void * _LNK_CONV os2_debug_calloc( size_t a, size_t b, const char *c, size_t d)105 void * _LNK_CONV CRTWRAP(_debug_calloc)( size_t a, size_t b, const char *c, size_t d) 106 106 { 107 107 unsigned short sel = RestoreOS2FS(); … … 118 118 } 119 119 120 void _LNK_CONV os2_debug_free( void *a, const char *b, size_t c)120 void _LNK_CONV CRTWRAP(_debug_free)( void *a, const char *b, size_t c) 121 121 { 122 122 unsigned short sel = RestoreOS2FS(); … … 131 131 } 132 132 133 void * _LNK_CONV os2_debug_malloc( size_t a, const char *b, size_t c)133 void * _LNK_CONV CRTWRAP(_debug_malloc)( size_t a, const char *b, size_t c) 134 134 { 135 135 unsigned short sel = RestoreOS2FS(); … … 145 145 } 146 146 147 void * _LNK_CONV os2_debug_realloc( void *a, size_t b, const char *c, size_t d)147 void * _LNK_CONV CRTWRAP(_debug_realloc)( void *a, size_t b, const char *c, size_t d) 148 148 { 149 149 unsigned short sel = RestoreOS2FS(); … … 158 158 } 159 159 160 void * _LNK_CONV os2_umalloc(Heap_t a, size_t b)160 void * _LNK_CONV CRTWRAP(_umalloc)(Heap_t a, size_t b) 161 161 { 162 162 unsigned short sel = RestoreOS2FS(); … … 172 172 } 173 173 174 void * _LNK_CONV os2_ucalloc(Heap_t a, size_t b, size_t c)174 void * _LNK_CONV CRTWRAP(_ucalloc)(Heap_t a, size_t b, size_t c) 175 175 { 176 176 unsigned short sel = RestoreOS2FS(); … … 186 186 } 187 187 188 void * _LNK_CONV os2_debug_umalloc(Heap_t a, size_t b, const char *c, size_t d)188 void * _LNK_CONV CRTWRAP(_debug_umalloc)(Heap_t a, size_t b, const char *c, size_t d) 189 189 { 190 190 unsigned short sel = RestoreOS2FS(); … … 200 200 } 201 201 202 void * _LNK_CONV os2_debug_ucalloc(Heap_t a, size_t b, size_t c, const char *d, size_t e)202 void * _LNK_CONV CRTWRAP(_debug_ucalloc)(Heap_t a, size_t b, size_t c, const char *d, size_t e) 203 203 { 204 204 unsigned short sel = RestoreOS2FS();
Note:
See TracChangeset
for help on using the changeset viewer.