diff options
Diffstat (limited to 'tokenizer.c')
-rw-r--r-- | tokenizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokenizer.c b/tokenizer.c index 3393e0d..3b8ed6b 100644 --- a/tokenizer.c +++ b/tokenizer.c @@ -173,8 +173,8 @@ static void tokr_get_location(Tokenizer *tokr, Token *t) { } static void tokr_create(Tokenizer *t, Identifiers *idents, const char *filename) { - arr_create(&t->tokens, sizeof(Token)); - arr_reserve(&t->tokens, 256); + t->tokens = NULL; + arr_resv(&t->tokens, 256); allocr_create(&t->allocr); t->idents = idents; t->filename = filename; |