aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index 8f355b5ae..d8434581d 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -159,7 +159,7 @@ struct Type {
};
};
-gbString type_to_string(Type *type, gbAllocator a = gb_heap_allocator());
+gbString type_to_string(Type *type, gbAllocator a = heap_allocator());
Type *base_type(Type *t) {
for (;;) {
@@ -359,6 +359,8 @@ gb_global Type *t_byte = &basic_type_aliases[0];
gb_global Type *t_rune = &basic_type_aliases[1];
+gb_global Type *t_u8_ptr = NULL;
+
gb_global Type *t_type_info = NULL;
gb_global Type *t_type_info_ptr = NULL;
gb_global Type *t_type_info_member = NULL;
@@ -791,7 +793,7 @@ void selection_add_index(Selection *s, isize index) {
// IMPORTANT NOTE(bill): this requires a stretchy buffer/dynamic array so it requires some form
// of heap allocation
if (s->index.data == NULL) {
- array_init(&s->index, gb_heap_allocator());
+ array_init(&s->index, heap_allocator());
}
array_add(&s->index, index);
}