Changeset 1991 for trunk/src/odincrt/malloc.cpp
- Timestamp:
- Dec 6, 1999, 7:09:13 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/malloc.cpp
r1906 r1991 1 /* $Id: malloc.cpp,v 1. 3 1999-12-01 00:12:26 sandervlExp $ */1 /* $Id: malloc.cpp,v 1.4 1999-12-06 18:09:13 dengert Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 22 22 void * _LNK_CONV os2calloc( size_t a, size_t b ) 23 23 { 24 unsigned short sel = RestoreOS2FS(); 24 unsigned short sel = RestoreOS2FS(); 25 25 void *rc; 26 26 … … 32 32 void _LNK_CONV os2free( void *a ) 33 33 { 34 unsigned short sel = RestoreOS2FS(); 34 unsigned short sel = RestoreOS2FS(); 35 35 36 36 free(a); 37 37 SetFS(sel); 38 38 } … … 40 40 void * _LNK_CONV os2malloc( size_t a) 41 41 { 42 unsigned short sel = RestoreOS2FS(); 42 unsigned short sel = RestoreOS2FS(); 43 43 void *rc; 44 44 … … 50 50 void * _LNK_CONV os2realloc( void *a, size_t b) 51 51 { 52 unsigned short sel = RestoreOS2FS(); 52 unsigned short sel = RestoreOS2FS(); 53 53 void *rc; 54 54 … … 60 60 void * _LNK_CONV os2_debug_calloc( size_t a, size_t b, const char *c, size_t d) 61 61 { 62 unsigned short sel = RestoreOS2FS(); 62 unsigned short sel = RestoreOS2FS(); 63 63 void *rc; 64 64 … … 70 70 void _LNK_CONV os2_debug_free( void *a, const char *b, size_t c) 71 71 { 72 unsigned short sel = RestoreOS2FS(); 72 unsigned short sel = RestoreOS2FS(); 73 73 74 74 _debug_free(a,b,c); … … 78 78 void * _LNK_CONV os2_debug_malloc( size_t a, const char *b, size_t c) 79 79 { 80 unsigned short sel = RestoreOS2FS(); 80 unsigned short sel = RestoreOS2FS(); 81 81 void *rc; 82 82 83 rc = _debug_ malloc(a,b,c);83 rc = _debug_calloc(1,a,b,c); 84 84 SetFS(sel); 85 85 return rc; … … 88 88 void * _LNK_CONV os2_debug_realloc( void *a, size_t b, const char *c, size_t d) 89 89 { 90 unsigned short sel = RestoreOS2FS(); 90 unsigned short sel = RestoreOS2FS(); 91 91 void *rc; 92 92 … … 98 98 void * _LNK_CONV os2_umalloc(Heap_t a, size_t b) 99 99 { 100 unsigned short sel = RestoreOS2FS(); 100 unsigned short sel = RestoreOS2FS(); 101 101 void *rc; 102 102 … … 108 108 void * _LNK_CONV os2_ucalloc(Heap_t a, size_t b, size_t c) 109 109 { 110 unsigned short sel = RestoreOS2FS(); 110 unsigned short sel = RestoreOS2FS(); 111 111 void *rc; 112 112 … … 118 118 void * _LNK_CONV os2_debug_umalloc(Heap_t a, size_t b, const char *c, size_t d) 119 119 { 120 unsigned short sel = RestoreOS2FS(); 120 unsigned short sel = RestoreOS2FS(); 121 121 void *rc; 122 122 123 rc = _debug_u malloc(a,b,c,d);123 rc = _debug_ucalloc(a, 1, b,c,d); 124 124 SetFS(sel); 125 125 return rc; … … 128 128 void * _LNK_CONV os2_debug_ucalloc(Heap_t a, size_t b, size_t c, const char *d, size_t e) 129 129 { 130 unsigned short sel = RestoreOS2FS(); 130 unsigned short sel = RestoreOS2FS(); 131 131 void *rc; 132 132
Note:
See TracChangeset
for help on using the changeset viewer.