authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-09-12 00:07:37-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-09-12 00:07:37-04:00
logbf52a748037fad46571a9a76009ea1ca66c9d965
tree2ca1a08f3072e88ce32c138b58fe7e2b4a2ef954
parent99cb6e955a4a044a19f98abd1d486560ee9c9729

fix error messages


2 files changed, 2 insertions(+), 2 deletions(-)

src/codegen.cpp+1-1
...@@ -5021,7 +5021,7 @@ void codegen_parsec(CodeGen *g, Buf *full_path) {...@@ -5021,7 +5021,7 @@ void codegen_parsec(CodeGen *g, Buf *full_path) {
5021 ZigList<ErrorMsg *> errors = {0};5021 ZigList<ErrorMsg *> errors = {0};
5022 int err = parse_h_file(import, &errors, buf_ptr(full_path), g, nullptr);5022 int err = parse_h_file(import, &errors, buf_ptr(full_path), g, nullptr);
5023 if (err) {5023 if (err) {
5024 fprintf(stderr, "unable to parse .h file: %s\n", err_str(err));5024 fprintf(stderr, "unable to parse C file: %s\n", err_str(err));
5025 exit(1);5025 exit(1);
5026 }5026 }
50275027
src/ir.cpp+1-1
...@@ -13421,7 +13421,7 @@ static TypeTableEntry *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstruc...@@ -13421,7 +13421,7 @@ static TypeTableEntry *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstruc
1342113421
13422 int err;13422 int err;
13423 if ((err = parse_h_buf(child_import, &errors, &cimport_scope->buf, ira->codegen, node))) {13423 if ((err = parse_h_buf(child_import, &errors, &cimport_scope->buf, ira->codegen, node))) {
13424 zig_panic("unable to parse h file: %s\n", err_str(err));13424 zig_panic("unable to parse C file: %s\n", err_str(err));
13425 }13425 }
1342613426
13427 if (errors.length > 0) {13427 if (errors.length > 0) {