git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed switch+try/catch problem
[swftools.git]
/
lib
/
as3
/
registry.h
diff --git
a/lib/as3/registry.h
b/lib/as3/registry.h
index
0640a78
..
4d58394
100644
(file)
--- a/
lib/as3/registry.h
+++ b/
lib/as3/registry.h
@@
-30,8
+30,10
@@
DECLARE(slotinfo);
DECLARE(classinfo);
DECLARE(memberinfo);
DECLARE(methodinfo);
DECLARE(classinfo);
DECLARE(memberinfo);
DECLARE(methodinfo);
+DECLARE(unresolvedinfo);
DECLARE(varinfo);
DECLARE_LIST(classinfo);
DECLARE(varinfo);
DECLARE_LIST(classinfo);
+DECLARE_LIST(slotinfo);
/* member/class flags */
#define FLAG_FINAL 1
/* member/class flags */
#define FLAG_FINAL 1
@@
-49,6
+51,7
@@
DECLARE_LIST(classinfo);
#define INFOTYPE_SLOT 1
#define INFOTYPE_METHOD 2
#define INFOTYPE_CLASS 3
#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
#define SUBTYPE_GET 1
#define SUBTYPE_SET 2
#define SUBTYPE_GETSET 3
@@
-59,6
+62,13
@@
struct _slotinfo {
const char*name;
int slot;
};
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;
struct _classinfo {
U8 kind,subtype,flags,access;
const char*package;
@@
-67,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*superclass;
dict_t members;
void*data; //TODO: get rid of this- parser.y should pass type/value/code triples around
- classinfo_t*interfaces[];
+ classinfo_t*interfaces[0];
};
struct _memberinfo {
U8 kind,subtype,flags,access;
};
struct _memberinfo {
U8 kind,subtype,flags,access;
@@
-105,14
+115,18
@@
char slotinfo_equals(slotinfo_t*c1, slotinfo_t*c2);
void registry_init();
classinfo_t* classinfo_register(int access, const char*package, const char*name, int num_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*name);
+methodinfo_t* methodinfo_register_onclass(classinfo_t*cls, U8 access, const char*ns, const char*name);
methodinfo_t* methodinfo_register_global(U8 access, const char*package, const char*name);
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*name);
+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);
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();
slotinfo_t* registry_find(const char*package, const char*name);
void registry_dump();
-memberinfo_t* registry_findmember(classinfo_t*cls, const char*name, char superclasses);
+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);
void registry_fill_multiname(multiname_t*m, namespace_t*n, slotinfo_t*c);
multiname_t* classinfo_to_multiname(slotinfo_t*cls);
void registry_fill_multiname(multiname_t*m, namespace_t*n, slotinfo_t*c);
multiname_t* classinfo_to_multiname(slotinfo_t*cls);