This commit is contained in:
gingerBill
2018-02-09 18:03:06 +00:00
parent 8f913c656c
commit 54976c3249
3 changed files with 49 additions and 9 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ String get_fullpath_core(gbAllocator a, String path) {
}
String const ODIN_VERSION = str_lit("0.8.0-dev");
String const ODIN_VERSION = str_lit("0.8.0");
String cross_compile_target = str_lit("");
String cross_compile_lib_dir = str_lit("");
+5 -6
View File
@@ -387,12 +387,6 @@ void check_stmt(Checker *c, AstNode *node, u32 flags) {
}
struct TypeAndToken {
Type *type;
Token token;
};
void check_when_stmt(Checker *c, AstNodeWhenStmt *ws, u32 flags) {
Operand operand = {Addressing_Invalid};
check_expr(c, &operand, ws->cond);
@@ -634,6 +628,11 @@ void check_switch_stmt(Checker *c, AstNode *node, u32 mod_flags) {
}
}
struct TypeAndToken {
Type *type;
Token token;
};
Map<TypeAndToken> seen = {}; // NOTE(bill): Multimap
map_init(&seen, heap_allocator());
defer (map_destroy(&seen));