diff options
| author | Josh Wolfe <thejoshwolfe@gmail.com> | 2015-12-01 10:44:30 -0700 |
|---|---|---|
| committer | Josh Wolfe <thejoshwolfe@gmail.com> | 2015-12-01 10:44:30 -0700 |
| commit | ab327344b671bff7f874f24691d7e3f19176167c (patch) | |
| tree | c437760bbc1f7059417b21e37c3d15a42534d4e8 /src/codegen.hpp | |
| parent | 9278dbedd5242bf4253da29c0fab36eea9dda61b (diff) | |
| parent | dfb6682089ad758b7ba72733778a9aa8c544c164 (diff) | |
| download | zig-ab327344b671bff7f874f24691d7e3f19176167c.tar.gz zig-ab327344b671bff7f874f24691d7e3f19176167c.zip | |
merge conflicts
Diffstat (limited to 'src/codegen.hpp')
| -rw-r--r-- | src/codegen.hpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/codegen.hpp b/src/codegen.hpp index 4476017840..8c83e2144a 100644 --- a/src/codegen.hpp +++ b/src/codegen.hpp @@ -9,6 +9,7 @@ #define ZIG_CODEGEN_HPP #include "parser.hpp" +#include "errmsg.hpp" struct CodeGen; @@ -19,16 +20,6 @@ enum OutType { OutTypeObj, }; - -struct ErrorMsg { - int line_start; - int column_start; - int line_end; - int column_end; - Buf *msg; -}; - - CodeGen *codegen_create(Buf *root_source_dir); enum CodeGenBuildType { @@ -39,6 +30,7 @@ void codegen_set_build_type(CodeGen *codegen, CodeGenBuildType build_type); void codegen_set_is_static(CodeGen *codegen, bool is_static); void codegen_set_strip(CodeGen *codegen, bool strip); void codegen_set_verbose(CodeGen *codegen, bool verbose); +void codegen_set_errmsg_color(CodeGen *codegen, ErrColor err_color); void codegen_set_out_type(CodeGen *codegen, OutType out_type); void codegen_set_out_name(CodeGen *codegen, Buf *out_name); |
