DEADSOFTWARE

5e7552f9c7c968c7d172dcdd6ec931ebc4d1347b
[mp3cc.git] / mpc / util / memory.h
1 /********************************************************************
3 memory.h - memory handling routines
5 Niksa Orlic, 2005-03-22
7 ********************************************************************/
9 struct memory_object_struct
10 {
11 struct memory_object_struct *next;
12 struct memory_object_struct *prev;
13 char *data;
14 };
16 typedef struct memory_object_struct memory_object;
18 void mem_init();
19 void mem_close();
21 void* mem_alloc(size_t);
23 // j-a-s-d
24 #ifdef __GNUC__
25 void* mem_realloc(char*, int);
26 void mem_free(char*);
27 #else
28 void* mem_realloc(void*, int);
29 void mem_free(void*);
30 #endif