X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=23fa6f67bd167389af6b930939a813185e17dd76;hb=68c030bfb760590c72d65dd94da6b704287dcda2;hp=88d33e4b702e5b304562b41dbec0a7108c3c69b9;hpb=e3147ae362f22e9627c7eace0b33d01c09e30f25;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 88d33e4..23fa6f6 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -38,6 +38,7 @@ extern "C" { #include "../config.h" #include "./bitio.h" #include "./drawer.h" +#include "./mem.h" #define DEBUG_RFXSWF #ifdef RFXSWF_DISABLESOUND @@ -72,16 +73,6 @@ 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* rfx_alloc(int size); -void* rfx_calloc(int size); -void* rfx_realloc(void*data, int size); -void rfx_free(void*data); -#ifdef MEMORY_INFO -long rfx_memory_used(); -char* rfx_memory_used_str(); -#endif - // SWF Types typedef unsigned long U32; @@ -501,6 +492,7 @@ typedef struct typedef struct _FONTUSAGE { int* chars; char is_reduced; + int used_glyphs; } FONTUSAGE; #define FONT_STYLE_BOLD 1 @@ -799,7 +791,7 @@ typedef struct _ActionTAG struct _ActionTAG * prev; struct _ActionTAG * parent; - U8 tmp[4]; // store small operands here. + U8 tmp[8]; // store small operands here. } ActionTAG; typedef struct _ActionMarker