diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-22 21:29:57 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-22 21:29:57 +0000 |
| commit | cb7b9a413d66b1dce30a4d810f17ed8453c0a738 (patch) | |
| tree | dcad81e0edbf4a2619f394c706e0825b162553c7 /src/tokenizer.cpp | |
| parent | 3517f96668636f80cac0ee726bb52976027e47d9 (diff) | |
Remove Array<T> and replace with macro version
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 42c2b7b69..331d5a1a9 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -296,7 +296,7 @@ struct Tokenizer { isize line_count; isize error_count; - Array<String> allocated_strings; + Array(String) allocated_strings; }; @@ -400,7 +400,7 @@ gb_inline void destroy_tokenizer(Tokenizer *t) { gb_free(heap_allocator(), t->start); } for_array(i, t->allocated_strings) { - gb_free(heap_allocator(), t->allocated_strings[i].text); + gb_free(heap_allocator(), t->allocated_strings.e[i].text); } array_free(&t->allocated_strings); } |