omMallocSystem.h
Go to the documentation of this file.
1 /*******************************************************************
2  * File: omMallocSystem.h
3  * Purpose: declaration of macros for malloc to be used from the system
4  * Author: obachman (Olaf Bachmann)
5  * Created: 11/99
6  *******************************************************************/
7 #ifndef OM_MALLOC_SYSTEM_H
8 #define OM_MALLOC_SYSTEM_H
9 
10 /* this is the minimal set of OM_MALLOC_* macros which must be defined */
11 #define OM_MALLOC_MALLOC malloc
12 #define OM_MALLOC_REALLOC realloc
13 #define OM_MALLOC_FREE free
14 #define OM_MALLOC_VALLOC valloc
15 #define OM_MALLOC_VFREE(addr, size) OM_MALLOC_FREE(addr)
16 /* the following will work under Mac OS X */
17 #define OM_MALLOC_SIZEOF_ADDR(addr) (malloc_size(addr))
18 
19 #endif /* OM_MALLOC_SYSTEM_H */