00001 00008 #ifndef _PDLMALLOC_H_JUI112 00009 #define _PDLMALLOC_H_JUI112 00010 00011 #include <stdlib.h> 00012 00013 #define PDL_MALLOC(x) pdl_malloc(x) 00014 #define PDL_FREE(x) pdl_free(x) 00015 #define PDL_REALLOC(x,y) pdl_realloc(x,y) 00016 #define PDL_CALLOC(x,y) pdl_calloc(x,y) 00017 #define PDL_CFREE(x) pdl_cfree(x) 00018 #define PDL_MEMALIGN(x,y) pdl_memalign(x,y) 00019 #define PDL_VALLOC(x) pdl_valloc(x) 00020 #define PDL_GET_USABLE_SIZE(x) pdl_malloc_usable_size(x) 00021 #define PDL_MALLOC_STATS pdl_malloc_stats 00022 00023 #define PDL_OBJSIZE(x) pdl_objsize(x) 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 TM_CALLABLE void* PDL_MALLOC(size_t); 00030 TM_CALLABLE void PDL_FREE(void* mem); 00031 TM_CALLABLE void* PDL_REALLOC(void* mem, size_t bytes); 00032 TM_CALLABLE void* PDL_CALLOC(size_t n, size_t elem_size); 00033 TM_CALLABLE void PDL_CFREE(void *mem); 00034 TM_CALLABLE void* PDL_MEMALIGN(size_t alignment, size_t bytes); 00035 TM_CALLABLE void* PDL_VALLOC(size_t bytes); 00036 TM_CALLABLE void PDL_MALLOC_STATS(); 00037 TM_CALLABLE size_t PDL_GET_USABLE_SIZE(void* mem); 00038 size_t PDL_OBJSIZE(void *ptr); 00039 00040 00041 #ifdef __cplusplus 00042 } /* end of extern "C" */ 00043 #endif 00044 00045 #endif /* _PDLMALLOC_H_JUI112 */