tosort=abc->classes;
for(t=0;t<abc->classes->num;t++) {index[t]=t;}
qsort(index, abc->classes->num, sizeof(int), compare_classes);
-
for(t=0;t<abc->classes->num;t++) {
abc_class_t*cls = array_getvalue(abc->classes, index[t]);
int access = cls->classname->ns->access;
if(id) free(id);
if(superid) free(superid);
}
+
+ for(t=0;t<abc->scripts->num;t++) {
+ abc_script_t*s = array_getvalue(abc->scripts, t);
+ trait_list_t*l=0;
+ for(l=s->traits;l;l=l->next) {
+ trait_t*trait = l->trait;
+ if(trait->kind == TRAIT_METHOD) {
+ printf("%s\n", multiname_tostring(trait->name));
+ }
+ }
+ }
+
swf_FreeABC(abc);
memfile_close(file);tag->data=0;