#include "import.h"
#include "abc.h"
#include "registry.h"
+#include "common.h"
+#include "common.h"
#include "tokenizer.h"
#include "../os.h"
tag = tag->next;
}
+ tag = swf->firstTag;
/* pass 2 */
while(tag) {
if(tag->id == ST_DOABC || tag->id == ST_RAWABC) {
c->flags |= FLAG_DYNAMIC;
}
return;
- }
+ }
for(t=0;t<abc->classes->num;t++) {
abc_class_t*cls = array_getvalue(abc->classes, t);
m = (memberinfo_t*)methodinfo_register_global(access, package, name);
m->return_type = resolve_class(filename, "return type", trait->method->return_type);
} else {
- m = (memberinfo_t*)varinfo_register_global(access, package, name);
- m->type = resolve_class(filename, "type", trait->type_name);
+ varinfo_t*v = varinfo_register_global(access, package, name);
+ v->type = resolve_class(filename, "type", trait->type_name);
+ v->value = constant_clone(trait->value);
+ m = (memberinfo_t*)v;
}
m->flags |= FLAG_BUILTIN;
m->parent = 0;