X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fregistry.h;h=52ea55a6f7d8f55d6ca9164d297d4167cade3664;hb=71c8242a8242eeb6e8b6dcf57239550a6f35c88a;hp=4d58394c8887a0d9b4853178a0acbacc5b8996d8;hpb=15d3df10f09bd780efa101d0c253db96716eb145;p=swftools.git diff --git a/lib/as3/registry.h b/lib/as3/registry.h index 4d58394..52ea55a 100644 --- a/lib/as3/registry.h +++ b/lib/as3/registry.h @@ -77,7 +77,7 @@ struct _classinfo { classinfo_t*superclass; dict_t members; void*data; //TODO: get rid of this- parser.y should pass type/value/code triples around - classinfo_t*interfaces[0]; + classinfo_t*interfaces[]; }; struct _memberinfo { U8 kind,subtype,flags,access; @@ -152,6 +152,7 @@ classinfo_t* registry_getregexpclass(); classinfo_t* registry_getbooleanclass(); classinfo_t* registry_getMovieClip(); classinfo_t* registry_getclassclass(classinfo_t*a); +classinfo_t* registry_getnamespaceclass(); char* infotypename(slotinfo_t*s); @@ -173,6 +174,8 @@ char* infotypename(slotinfo_t*s); #define TYPE_IS_STRING(t) ((t) == registry_getstringclass()) #define TYPE_REGEXP registry_getregexpclass() #define TYPE_IS_REGEXP(t) ((t) == registry_getregexpclass()) +#define TYPE_NAMESPACE registry_getnamespaceclass() +#define TYPE_IS_NAMESPACE(t) ((t) == registry_getnamespaceclass()) #define TYPE_OBJECT registry_getobjectclass()