00001 #ifndef __CG_MALLOC_H__ 00002 #define __CG_MALLOC_H__ 00003 00004 #define malloc(S) cgmalloc(S) 00005 #define realloc(P,S) cgrealloc(P,S) 00006 #define calloc(N,S) cgcalloc(N,S) 00007 #define free(P) cgfree(P) 00008 00009 extern void *cgmalloc(size_t); 00010 extern void *cgrealloc(void *,size_t); 00011 extern void *cgcalloc(size_t,size_t); 00012 extern void cgfree(void *); 00013 00014 extern size_t cgmemnow(); 00015 extern size_t cgmemmax(); 00016 extern size_t cgalloccalls(); 00017 extern size_t cgfreecalls(); 00018 00019 #endif