diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-08-03 21:21:56 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-08-03 21:21:56 +0100 |
| commit | 49d337c83039715fd3100f6ec8a88dff80c08c4b (patch) | |
| tree | f129486fb80a44dc106a277a576438d0ce344d8c /src/checker.cpp | |
| parent | 294092979e89faa67dc77d2261e9ddafc18b0d0d (diff) | |
v0.6.2; Use Ada_Case for typesv0.6.2
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 73539a214..d40e05bfa 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -1341,14 +1341,14 @@ void check_entity_decl(Checker *c, Entity *e, DeclInfo *d, Type *named_type); void init_preload(Checker *c) { if (t_type_info == nullptr) { - Entity *type_info_entity = find_core_entity(c, str_lit("TypeInfo")); + Entity *type_info_entity = find_core_entity(c, str_lit("Type_Info")); t_type_info = type_info_entity->type; t_type_info_ptr = make_type_pointer(c->allocator, t_type_info); GB_ASSERT(is_type_struct(type_info_entity->type)); TypeStruct *tis = &base_type(type_info_entity->type)->Struct; - Entity *type_info_enum_value = find_sub_core_entity(tis, str_lit("EnumValue")); + Entity *type_info_enum_value = find_sub_core_entity(tis, str_lit("Enum_Value")); t_type_info_enum_value = type_info_enum_value->type; t_type_info_enum_value_ptr = make_type_pointer(c->allocator, t_type_info_enum_value); @@ -1361,7 +1361,7 @@ void init_preload(Checker *c) { TypeUnion *tiv = &tiv_type->Union; if (tiv->variants.count != 20) { - compiler_error("Invalid `TypeInfo` layout"); + compiler_error("Invalid `Type_Info` layout"); } t_type_info_named = tiv->variants[ 0]; t_type_info_integer = tiv->variants[ 1]; @@ -1420,18 +1420,18 @@ void init_preload(Checker *c) { } if (t_source_code_location == nullptr) { - Entity *e = find_core_entity(c, str_lit("SourceCodeLocation")); + Entity *e = find_core_entity(c, str_lit("Source_Code_Location")); t_source_code_location = e->type; t_source_code_location_ptr = make_type_pointer(c->allocator, t_allocator); } if (t_map_key == nullptr) { - Entity *e = find_core_entity(c, str_lit("__MapKey")); + Entity *e = find_core_entity(c, str_lit("__Map_Key")); t_map_key = e->type; } if (t_map_header == nullptr) { - Entity *e = find_core_entity(c, str_lit("__MapHeader")); + Entity *e = find_core_entity(c, str_lit("__Map_Header")); t_map_header = e->type; } |