diff options
Diffstat (limited to 'tokenize.c')
-rw-r--r-- | tokenize.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,14 +64,14 @@ void error_at(char *loc, char *fmt, ...) { void error_tok(Token *tok, char *fmt, ...) { va_list ap; va_start(ap, fmt); - verror_at(tok->file->name, tok->file->contents, tok->line_no, tok->loc, fmt, ap); + verror_at(tok->filename, tok->file->contents, tok->line_no, tok->loc, fmt, ap); exit(1); } void warn_tok(Token *tok, char *fmt, ...) { va_list ap; va_start(ap, fmt); - verror_at(tok->file->name, tok->file->contents, tok->line_no, tok->loc, fmt, ap); + verror_at(tok->filename, tok->file->contents, tok->line_no, tok->loc, fmt, ap); va_end(ap); } |