X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fpool.h;h=2a850e9c51be4caa3e5ed8dc4722cc494222f4e2;hb=3dea7306ae2c9590673c10dec1fbabcd6d7e1806;hp=09e73774f608d7b70058a4b8c92c475ee6cfb18b;hpb=bb864e1a88e670c99d559c7dee4f74e9bf7d978b;p=swftools.git diff --git a/lib/as3/pool.h b/lib/as3/pool.h index 09e7377..2a850e9 100644 --- a/lib/as3/pool.h +++ b/lib/as3/pool.h @@ -80,19 +80,23 @@ CONSTANT_NAMESPACE_PROTECTED=0x18, CONSTANT_NAMESPACE_EXPLICIT=0x19, CONSTANT_NAMESPACE_STATICPROTECTED=0x1A, CONSTANT_NAMESPACE_PRIVATE=0x05, +CONSTANT_UNKNOWN=0x55, /*used internally */ } contant_type_t; +#define NS_TYPE(x) ((x) == 0x08 || (x) == 0x16 || (x) == 0x17 || (x) == 0x18 || (x) == 0x19 || (x) == 0x1a || (x) == 0x05) + struct _constant { + int type; union { + string_t* s; + namespace_t*ns; double f; int i; unsigned int u; - string_t* s; - namespace_t*ns; }; - int type; }; +constant_t* constant_clone(); constant_t* constant_new_int(int x); constant_t* constant_new_uint(unsigned int x); constant_t* constant_new_float(double x);