X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fregistry.h;h=31267bf2a86fa02655371478990ae4e006653073;hb=36a1fac8ea3a7457f25b1b4209b5fc918cc6af44;hp=148958e0ab8988c83fe439406fdf5e7d18533d23;hpb=434d5040b814eae784d080c695fe8c3d370a166b;p=swftools.git diff --git a/lib/as3/registry.h b/lib/as3/registry.h index 148958e..31267bf 100644 --- a/lib/as3/registry.h +++ b/lib/as3/registry.h @@ -30,6 +30,7 @@ DECLARE(slotinfo); DECLARE(classinfo); DECLARE(memberinfo); DECLARE(methodinfo); +DECLARE(unresolvedinfo); DECLARE(varinfo); DECLARE_LIST(classinfo); DECLARE_LIST(slotinfo); @@ -50,6 +51,7 @@ DECLARE_LIST(slotinfo); #define INFOTYPE_SLOT 1 #define INFOTYPE_METHOD 2 #define INFOTYPE_CLASS 3 +#define INFOTYPE_UNRESOLVED 4 #define SUBTYPE_GET 1 #define SUBTYPE_SET 2 #define SUBTYPE_GETSET 3 @@ -60,6 +62,13 @@ struct _slotinfo { const char*name; int slot; }; +struct _unresolvedinfo { + U8 kind,subtype,flags,access; + const char*package; + const char*name; + int slot; + namespace_list_t*nsset; +}; struct _classinfo { U8 kind,subtype,flags,access; const char*package; @@ -100,6 +109,7 @@ struct _varinfo { constant_t*value; }; +extern type_t memberinfo_type; extern type_t slotinfo_type; char slotinfo_equals(slotinfo_t*c1, slotinfo_t*c2); @@ -111,6 +121,9 @@ methodinfo_t* methodinfo_register_global(U8 access, const char*package, const ch varinfo_t* varinfo_register_onclass(classinfo_t*cls, U8 access, const char*ns, const char*name); varinfo_t* varinfo_register_global(U8 access, const char*package, const char*name); +slotinfo_t* registry_resolve(slotinfo_t*s); +void registry_resolve_all(); + slotinfo_t* registry_find(const char*package, const char*name); void registry_dump(); memberinfo_t* registry_findmember(classinfo_t*cls, const char*ns, const char*name, char superclasses); @@ -127,6 +140,8 @@ classinfo_t* slotinfo_gettype(slotinfo_t*); namespace_t access2namespace(U8 access, char*package); +char registry_ispackage(char*package); + // static multinames classinfo_t* registry_getanytype(); classinfo_t* registry_getarrayclass(); @@ -140,6 +155,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); @@ -161,6 +177,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()