VarDecl and ConstDecl split; error, warning, et al. now global

This commit is contained in:
Ginger Bill committed 2016-09-17 11:40:00 +01:00
1 parent eb424bb315
commit 67694c0df0
13 files changed
+1840 -670

No files matched your search

+1 -9
View File
@@ -7,17 +7,9 @@ struct ssaGen {
};
b32 ssa_gen_init(ssaGen *s, Checker *c) {
if (c->error_collector.count != 0)
if (global_error_collector.count != 0)
return false;
gb_for_array(i, c->parser->files) {
AstFile *f = &c->parser->files[i];
if (f->error_collector.count != 0)
return false;
if (f->tokenizer.error_count != 0)
return false;
}
isize tc = c->parser->total_token_count;
if (tc < 2) {
return false;