protect against xpdf's internal state changes in bitmaps and transparency groups
[swftools.git] / lib / mem.h
1 #ifndef __mem_h__
2 #define __mem_h__
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num)))
9 void* rfx_alloc(int size);
10 void* rfx_calloc(int size);
11 void* rfx_realloc(void*data, int size);
12 void rfx_free(void*data);
13 #ifdef MEMORY_INFO
14 long rfx_memory_used();
15 char* rfx_memory_used_str();
16 #endif
17
18 #ifdef __cplusplus
19 }
20 #endif
21
22 #endif //__mem_h__