summaryrefslogtreecommitdiff
path: root/tokenize.c
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:09:52 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:09:52 -0700
commitf2297c20b69d942fd1e8fdcdd8f4d142c71de662 (patch)
tree5072f8f11eea2d8265e48d6c3bce533e124f016f /tokenize.c
parentc84bbdc2a296f4b818fa8ec05a6dbe2dd46fc4f1 (diff)
bad line numbers support
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