diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-23 10:36:48 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-23 10:36:48 +0000 |
| commit | 8ecfca0c9b4d8a8f7c553f99b0bf10142eea88e6 (patch) | |
| tree | d04d929f7cd07cddf064704b7171ad3524f092a7 /src/checker/entity.cpp | |
| parent | cb7b9a413d66b1dce30a4d810f17ed8453c0a738 (diff) | |
Remove templated Map; replace with #include macro "templates" trick
Diffstat (limited to 'src/checker/entity.cpp')
| -rw-r--r-- | src/checker/entity.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp index 4c0e86ab8..2fdc0f480 100644 --- a/src/checker/entity.cpp +++ b/src/checker/entity.cpp @@ -66,7 +66,7 @@ struct Entity { String path; String name; Scope *scope; - b32 used; + bool used; } ImportName; struct {} Nil; struct { @@ -77,7 +77,7 @@ struct Entity { }; }; -b32 is_entity_exported(Entity *e) { +bool is_entity_exported(Entity *e) { if (e->kind == Entity_ImportName) { return false; } @@ -125,7 +125,7 @@ Entity *make_entity_type_name(gbAllocator a, Scope *scope, Token token, Type *ty return entity; } -Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type, b32 anonymous) { +Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type, bool anonymous) { Entity *entity = make_entity_variable(a, scope, token, type); entity->flags |= EntityFlag_Used; entity->flags |= EntityFlag_Anonymous*(anonymous != 0); @@ -133,7 +133,7 @@ Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type, return entity; } -Entity *make_entity_field(gbAllocator a, Scope *scope, Token token, Type *type, b32 anonymous, i32 field_src_index) { +Entity *make_entity_field(gbAllocator a, Scope *scope, Token token, Type *type, bool anonymous, i32 field_src_index) { Entity *entity = make_entity_variable(a, scope, token, type); entity->Variable.field_src_index = field_src_index; entity->Variable.field_index = field_src_index; |