mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 03:40:08 +00:00
Remove bit_field in type info, runtime, and general core library
This commit is contained in:
@@ -136,11 +136,6 @@ Type_Info_Map :: struct {
|
||||
key_equal: Equal_Proc,
|
||||
key_hasher: Hasher_Proc,
|
||||
};
|
||||
Type_Info_Bit_Field :: struct {
|
||||
names: []string,
|
||||
bits: []i32,
|
||||
offsets: []i32,
|
||||
};
|
||||
Type_Info_Bit_Set :: struct {
|
||||
elem: ^Type_Info,
|
||||
underlying: ^Type_Info, // Possibly nil
|
||||
@@ -199,7 +194,6 @@ Type_Info :: struct {
|
||||
Type_Info_Union,
|
||||
Type_Info_Enum,
|
||||
Type_Info_Map,
|
||||
Type_Info_Bit_Field,
|
||||
Type_Info_Bit_Set,
|
||||
Type_Info_Opaque,
|
||||
Type_Info_Simd_Vector,
|
||||
@@ -231,7 +225,6 @@ Typeid_Kind :: enum u8 {
|
||||
Union,
|
||||
Enum,
|
||||
Map,
|
||||
Bit_Field,
|
||||
Bit_Set,
|
||||
Opaque,
|
||||
Simd_Vector,
|
||||
|
||||
@@ -324,22 +324,6 @@ print_type :: proc "contextless" (ti: ^Type_Info) {
|
||||
}
|
||||
print_string("}");
|
||||
|
||||
case Type_Info_Bit_Field:
|
||||
print_string("bit_field ");
|
||||
if ti.align != 1 {
|
||||
print_string("#align ");
|
||||
print_u64(u64(ti.align));
|
||||
print_byte(' ');
|
||||
}
|
||||
print_string(" {");
|
||||
for name, i in info.names {
|
||||
if i > 0 { print_string(", "); }
|
||||
print_string(name);
|
||||
print_string(": ");
|
||||
print_u64(u64(info.bits[i]));
|
||||
}
|
||||
print_string("}");
|
||||
|
||||
case Type_Info_Bit_Set:
|
||||
print_string("bit_set[");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user