summaryrefslogtreecommitdiff
path: root/tokenize.c
diff options
context:
space:
mode:
Diffstat (limited to 'tokenize.c')
-rw-r--r--tokenize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokenize.c b/tokenize.c
index 5c49c02..4cfb1bd 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -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);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback