aboutsummaryrefslogtreecommitdiff
path: root/src/errmsg.hpp
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2015-12-01 10:44:30 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2015-12-01 10:44:30 -0700
commitab327344b671bff7f874f24691d7e3f19176167c (patch)
treec437760bbc1f7059417b21e37c3d15a42534d4e8 /src/errmsg.hpp
parent9278dbedd5242bf4253da29c0fab36eea9dda61b (diff)
parentdfb6682089ad758b7ba72733778a9aa8c544c164 (diff)
downloadzig-ab327344b671bff7f874f24691d7e3f19176167c.tar.gz
zig-ab327344b671bff7f874f24691d7e3f19176167c.zip
merge conflicts
Diffstat (limited to 'src/errmsg.hpp')
-rw-r--r--src/errmsg.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/errmsg.hpp b/src/errmsg.hpp
new file mode 100644
index 0000000000..1f31020902
--- /dev/null
+++ b/src/errmsg.hpp
@@ -0,0 +1,33 @@
+/*
+ * 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"
+
+enum ErrColor {
+ ErrColorAuto,
+ ErrColorOff,
+ ErrColorOn,
+};
+
+struct ErrorMsg {
+ int line_start;
+ int column_start;
+ int line_end;
+ int column_end;
+ Buf *msg;
+ Buf *path;
+ Buf *source;
+ ZigList<int> *line_offsets;
+};
+
+void print_err_msg(ErrorMsg *msg, ErrColor color);
+
+#endif