diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-21 18:38:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-21 18:38:55 -0700 |
| commit | 528832bd3a2e7b686ee84aef5887df740a6114db (patch) | |
| tree | 90ccff9faa2ba2604c8538aeec0a147a4b01148c /src/errmsg.hpp | |
| parent | b9f61d401502f5d221e72c0d0e3bf448b11dcd68 (diff) | |
| download | zig-528832bd3a2e7b686ee84aef5887df740a6114db.tar.gz zig-528832bd3a2e7b686ee84aef5887df740a6114db.zip | |
rename src-self-hosted/ to src/
Diffstat (limited to 'src/errmsg.hpp')
| -rw-r--r-- | src/errmsg.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/errmsg.hpp b/src/errmsg.hpp deleted file mode 100644 index 73cbd4e0d9..0000000000 --- a/src/errmsg.hpp +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2015 Andrew Kelley - * - * This file is part of zig, which is MIT licensed. - * See http://opensource.org/licenses/MIT - */ - -#ifndef ZIG_ERRMSG_HPP -#define ZIG_ERRMSG_HPP - -#include "buffer.hpp" -#include "list.hpp" -#include "stage1.h" - -struct ErrorMsg { - size_t line_start; - size_t column_start; - Buf *msg; - Buf *path; - Buf line_buf; - - ZigList<ErrorMsg *> notes; -}; - -void print_err_msg(ErrorMsg *msg, ErrColor color); - -void err_msg_add_note(ErrorMsg *parent, ErrorMsg *note); -ErrorMsg *err_msg_create_with_offset(Buf *path, size_t line, size_t column, size_t offset, - const char *source, Buf *msg); - -ErrorMsg *err_msg_create_with_line(Buf *path, size_t line, size_t column, - Buf *source, ZigList<size_t> *line_offsets, Buf *msg); - -#endif |
