Changeset f0bd4c in git
- Timestamp:
- Jan 10, 2017, 12:36:04 PM (7 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- d22092faa534a77b8f85e33d87fee0070e584166
- Parents:
- b8b76ef3092b3162aa763b4c5b7705ceab2203fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xalloc/omalloc.h
rb8b76e rf0bd4c 87 87 } 88 88 #define omReallocAligned(A,B) omRealloc(A,B) 89 static inline void *omReallocSize(void *d, size_t os, size_t ns)89 static inline void *omReallocSize(void *d, __attribute__((unused)) size_t os, size_t ns) 90 90 { if (d==NULL) return omAlloc(ns); 91 91 else … … 114 114 return n; 115 115 } 116 static inline void omFreeSize(void *d, size_t s)116 static inline void omFreeSize(void *d, __attribute__((unused)) size_t s) 117 117 { if (d!=NULL) { long *dd=(long*)d; dd--; free(dd);}} 118 118 … … 185 185 #define omMarkMemoryAsStatic() 186 186 #define omfree(P) omFree(P) 187 #define omFree(P) omFree(P)188 187 #define omFreeBin(P,B) omFree(P) 189 188 #define omfreeSize(P,S) omFreeSize(P,S) … … 208 207 #define omReallocAlignedSize omReallocSize 209 208 #define omRealloc0AlignedSize omRealloc0Size 210 #define omMemDupAligned omMemDup209 #define omMemDupAligned omMemDup 211 210 #define omCheckIf(cond, test) do {} while (0) 212 211 #define omCheckBinAddr(addr) do {} while (0)
Note: See TracChangeset
for help on using the changeset viewer.