removed high-level memory allocation functions from q.c to rfxswf.c.
[swftools.git] / lib / rfxswf.h
index e880917..5fa7d1b 100644 (file)
@@ -71,6 +71,10 @@ extern "C" {
 #define REVERSESWAP32(s) (REVERSESWAP16(((s)>>16)&0x0000ffff)|((REVERSESWAP16(s)<<16)&0xffff0000))
 #endif
 
+#define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num)))
+void* rfxalloc(int size);
+void rfxdealloc(void*data);
+
 // SWF Types
 
 typedef         unsigned long   U32;