#ifndef __abc_registry_h__
#define __abc_registry_h__
-#include "pool.h"
+#include "abc.h"
+DECLARE(asset_bundle);
+DECLARE_LIST(asset_bundle);
DECLARE(slotinfo);
DECLARE(classinfo);
DECLARE(memberinfo);
/* member/class flags */
#define FLAG_FINAL 1
#define FLAG_BUILTIN 128
+#define FLAG_USED 64
/* member flags */
#define FLAG_STATIC 2
dict_t members;
dict_t static_members;
void*data; //TODO: get rid of this- parser.y should pass type/value/code triples around
+ asset_bundle_t*assets;
classinfo_t*interfaces[];
};
struct _memberinfo {
constant_t*value;
};
+struct _asset_bundle {
+ abc_file_t*file;
+ asset_bundle_list_t*dependencies;
+ char used;
+};
+
extern type_t memberinfo_type;
extern type_t slotinfo_type;
char slotinfo_equals(slotinfo_t*c1, slotinfo_t*c2);
char registry_ispackage(const char*package);
+void registry_add_asset(asset_bundle_t*bundle);
+void registry_use(slotinfo_t*s);
+asset_bundle_list_t*registry_getassets();
+
// static multinames
classinfo_t voidclass;
classinfo_t* registry_getanytype();