Support import files as modules (i.e. import only once)

This commit is contained in:
gingerBill
2016-07-21 00:26:14 +01:00
parent aa6a2caecb
commit cbd82e3c02
17 changed files with 1462 additions and 1481 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ struct Entity {
isize order;
union {
struct { Value value; } constant;
struct { ExactValue value; } constant;
struct {
b8 visited;
b8 is_field;
@@ -59,7 +59,7 @@ Entity *make_entity_variable(gbAllocator a, Scope *parent, Token token, Type *ty
return entity;
}
Entity *make_entity_constant(gbAllocator a, Scope *parent, Token token, Type *type, Value value) {
Entity *make_entity_constant(gbAllocator a, Scope *parent, Token token, Type *type, ExactValue value) {
Entity *entity = alloc_entity(a, Entity_Constant, parent, token, type);
entity->constant.value = value;
return entity;