diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-26 16:09:22 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-26 16:09:22 +0000 |
| commit | 081a5a52a621f3577255b30a4fa35c9b458d5689 (patch) | |
| tree | 0fe2135d6a46a8a0d0c97134c11f17e3c4b86da2 /src/tokenizer.cpp | |
| parent | fb86c23dbd4c6e9dc82fcc72deb1ad59af5e07f0 (diff) | |
Add ODIN_ERROR_POS_STYLE environment variable
Allowing for two different error message styles:
default or odin
path(line:column) message
unix
path:line:column: message
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 20815fd16..40bc5c220 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -201,14 +201,6 @@ struct TokenPos { i32 column; // starting at 1 }; -// temporary -char *token_pos_to_string(TokenPos const &pos) { - gbString s = gb_string_make_reserve(temporary_allocator(), 128); - String file = get_file_path_string(pos.file_id); - s = gb_string_append_fmt(s, "%.*s(%d:%d)", LIT(file), pos.line, pos.column); - return s; -} - i32 token_pos_cmp(TokenPos const &a, TokenPos const &b) { if (a.offset != b.offset) { return (a.offset < b.offset) ? -1 : +1; |