DEADSOFTWARE

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