00001 00021 #ifndef FREELIST_H 00022 #define FREELIST_H 00023 00024 /*---------------------------------------------------------------------- 00025 I n c l u d e s 00026 ----------------------------------------------------------------------*/ 00027 #include <stdio.h> 00028 00029 /*---------------------------------------------------------------------- 00030 F u n c t i o n s 00031 ----------------------------------------------------------------------*/ 00032 int *memalloc_p(int size); 00033 00034 int *memalloc(int size); 00035 00036 int *memrealloc(void *ptr, int size, int oldsize); 00037 00038 void memfree(void *element); 00039 00040 void mem_tidy(int level); 00041 00042 /* 00043 #if defined(__STDC__) || defined(__cplusplus) 00044 # define _ARGS(s) s 00045 #else 00046 # define _ARGS(s) () 00047 #endif*/ 00048 00049 /* freelist.c 00050 int *memalloc_p 00051 _ARGS((int size)); 00052 00053 int *memalloc 00054 _ARGS((int size)); 00055 00056 void memfree 00057 _ARGS((void *element)); 00058 00059 void mem_tidy 00060 _ARGS((void)); 00061 00062 #undef _ARGS 00063 */ 00064 #endif