int slot;
classinfo_t*superclass;
dict_t members;
+ dict_t static_members;
void*data; //TODO: get rid of this- parser.y should pass type/value/code triples around
classinfo_t*interfaces[];
};
void registry_init();
classinfo_t* classinfo_register(int access, const char*package, const char*name, int num_interfaces);
-methodinfo_t* methodinfo_register_onclass(classinfo_t*cls, U8 access, const char*ns, const char*name);
+methodinfo_t* methodinfo_register_onclass(classinfo_t*cls, U8 access, const char*ns, const char*name, char is_static);
methodinfo_t* methodinfo_register_global(U8 access, const char*package, const char*name);
-varinfo_t* varinfo_register_onclass(classinfo_t*cls, U8 access, const char*ns, const char*name);
+varinfo_t* varinfo_register_onclass(classinfo_t*cls, U8 access, const char*ns, const char*name, char is_static);
varinfo_t* varinfo_register_global(U8 access, const char*package, const char*name);
slotinfo_t* registry_resolve(slotinfo_t*s);
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);
-memberinfo_t* registry_findmember_nsset(classinfo_t*cls, namespace_list_t*ns, const char*name, char superclasses);
+memberinfo_t* registry_findmember(classinfo_t*cls, const char*ns, const char*name, char superclasses, char is_static);
+memberinfo_t* registry_findmember_nsset(classinfo_t*cls, namespace_list_t*ns, const char*name, char superclasses, char is_static);
void registry_fill_multiname(multiname_t*m, namespace_t*n, slotinfo_t*c);
#define MULTINAME(m,x) \
namespace_t access2namespace(U8 access, char*package);
-char registry_ispackage(char*package);
+char registry_ispackage(const char*package);
// static multinames
+classinfo_t voidclass;
classinfo_t* registry_getanytype();
classinfo_t* registry_getarrayclass();
classinfo_t* registry_getobjectclass();
classinfo_t* registry_getnumberclass();
classinfo_t* registry_getstringclass();
+classinfo_t* registry_getdateclass();
classinfo_t* registry_getintclass();
classinfo_t* registry_getuintclass();
classinfo_t* registry_getnullclass();
+classinfo_t* registry_getvoidclass();
+classinfo_t* registry_getarrayclass();
classinfo_t* registry_getregexpclass();
+classinfo_t* registry_getxmlclass();
+classinfo_t* registry_getxmllistclass();
classinfo_t* registry_getbooleanclass();
classinfo_t* registry_getMovieClip();
classinfo_t* registry_getclassclass(classinfo_t*a);
classinfo_t* registry_getnamespaceclass();
+extern classinfo_t voidclass;
char* infotypename(slotinfo_t*s);
void slotinfo_dump(slotinfo_t*s);
#define TYPE_IS_BOOLEAN(t) ((t) == registry_getbooleanclass())
#define TYPE_STRING registry_getstringclass()
#define TYPE_IS_STRING(t) ((t) == registry_getstringclass())
+#define TYPE_DATE registry_getdateclass()
+#define TYPE_IS_DATE(t) ((t) == registry_getdateclass())
#define TYPE_OBJECT registry_getobjectclass()
#define TYPE_IS_OBJECT(t) ((t) == registry_getobjectclass())
#define TYPE_REGEXP registry_getregexpclass()
#define TYPE_IS_REGEXP(t) ((t) == registry_getregexpclass())
+#define TYPE_VOID registry_getvoidclass()
+#define TYPE_IS_VOID(t) ((t) == registry_getvoidclass())
+#define TYPE_ARRAY registry_getarrayclass()
+#define TYPE_IS_ARRAY(t) ((t) == registry_getarrayclass())
#define TYPE_NAMESPACE registry_getnamespaceclass()
#define TYPE_IS_NAMESPACE(t) ((t) == registry_getnamespaceclass())
#define TYPE_FUNCTION(f) ((f)->return_type,slotinfo_asclass((slotinfo_t*)(f)))
#define TYPE_IS_CLASS(t) registry_isclassclass(t)
#define TYPE_NULL registry_getnullclass()
#define TYPE_IS_NULL(t) ((t) == registry_getnullclass())
+#define TYPE_VOID registry_getvoidclass()
+#define TYPE_IS_VOID(t) ((t) == registry_getvoidclass())
+#define TYPE_XML registry_getxmlclass()
+#define TYPE_IS_XML(t) ((t) == registry_getxmlclass())
+#define TYPE_XMLLIST registry_getxmllistclass()
+#define TYPE_IS_XMLLIST(t) ((t) == registry_getxmllistclass())
#define TYPE_IS_BUILTIN_SIMPLE(type) (TYPE_IS_INT(type) || \
TYPE_IS_UINT(type) || \
TYPE_IS_BOOLEAN(type) || \
TYPE_IS_STRING(type))
+#define IS_NUMBER_OR_INT(a) (TYPE_IS_INT((a)) || TYPE_IS_UINT((a)) || TYPE_IS_NUMBER((a)))
+
#endif