Changeset cadaf2 in git
- Timestamp:
- Nov 27, 2012, 2:27:19 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 2abbc7658912b7ff427a0603e95ab63e9a736311
- Parents:
- 6fcddc9d1ce61bb4b060ffc6ead86cd70694c9a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omalloc.c
r6fcddc9 rcadaf2 21 21 #endif 22 22 23 #if OM_PROVIDE_MALLOC > 0 24 23 25 void* calloc(size_t nmemb, size_t size) 24 26 { … … 29 31 size = size*nmemb; 30 32 omTypeAlloc0Aligned(void*, addr, size); 31 OM_MARK_AS_STATIC(addr);32 return addr;33 }34 35 void* malloc(size_t size)36 {37 void* addr;38 if (size == 0) size = 1;39 40 omTypeAllocAligned(void*, addr, size);41 33 OM_MARK_AS_STATIC(addr); 42 34 return addr; … … 102 94 } 103 95 #endif 96 #endif 97 98 void* malloc(size_t size) 99 { 100 void* addr; 101 if (size == 0) size = 1; 102 103 omTypeAllocAligned(void*, addr, size); 104 OM_MARK_AS_STATIC(addr); 105 return addr; 106 } 107 104 108 void freeSize(void* addr, size_t size) 105 109 {
Note: See TracChangeset
for help on using the changeset viewer.