Remove #opaque types

This commit is contained in:
gingerBill
2021-02-23 15:45:06 +00:00
parent 28f279329d
commit 41b854f192
23 changed files with 2 additions and 262 deletions
-6
View File
@@ -140,9 +140,6 @@ Type_Info_Bit_Set :: struct {
lower: i64,
upper: i64,
};
Type_Info_Opaque :: struct {
elem: ^Type_Info,
};
Type_Info_Simd_Vector :: struct {
elem: ^Type_Info,
elem_size: int,
@@ -193,7 +190,6 @@ Type_Info :: struct {
Type_Info_Enum,
Type_Info_Map,
Type_Info_Bit_Set,
Type_Info_Opaque,
Type_Info_Simd_Vector,
Type_Info_Relative_Pointer,
Type_Info_Relative_Slice,
@@ -224,7 +220,6 @@ Typeid_Kind :: enum u8 {
Enum,
Map,
Bit_Set,
Opaque,
Simd_Vector,
Relative_Pointer,
Relative_Slice,
@@ -399,7 +394,6 @@ type_info_core :: proc "contextless" (info: ^Type_Info) -> ^Type_Info {
#partial switch i in base.variant {
case Type_Info_Named: base = i.base;
case Type_Info_Enum: base = i.base;
case Type_Info_Opaque: base = i.elem;
case: break loop;
}
}
-3
View File
@@ -345,9 +345,6 @@ print_type :: proc "contextless" (ti: ^Type_Info) {
}
print_byte(']');
case Type_Info_Opaque:
print_string("#opaque ");
print_type(info.elem);
case Type_Info_Simd_Vector:
if info.is_x86_mmx {