formally support hresult codes as distinct from handles in debug info & visualization

This commit is contained in:
Ryan Fleury
2024-08-14 13:48:09 -07:00
parent a9f4a11c0a
commit 33fe9ba485
19 changed files with 340 additions and 215 deletions
+1
View File
@@ -19,6 +19,7 @@ E_TypeKindTable:
{Null "" 0 }
{Void "void" 0 }
{Handle "HANDLE" 0xFF }
{HResult "HRESULT" 4 }
{Char8 "char8" 1 }
{Char16 "char16" 2 }
{Char32 "char32" 4 }
+1
View File
@@ -13,6 +13,7 @@ e_type_kind_from_rdi(RDI_TypeKind kind)
default:{}break;
case RDI_TypeKind_Void: {result = E_TypeKind_Void;}break;
case RDI_TypeKind_Handle: {result = E_TypeKind_Handle;}break;
case RDI_TypeKind_HResult: {result = E_TypeKind_HResult;}break;
case RDI_TypeKind_Char8: {result = E_TypeKind_Char8;}break;
case RDI_TypeKind_Char16: {result = E_TypeKind_Char16;}break;
case RDI_TypeKind_Char32: {result = E_TypeKind_Char32;}break;
+4 -2
View File
@@ -119,11 +119,12 @@ str8_lit_comp("function"),
str8_lit_comp("="),
};
U8 e_kind_basic_byte_size_table[54] =
U8 e_kind_basic_byte_size_table[55] =
{
0,
0,
0xFF,
4,
1,
2,
4,
@@ -177,11 +178,12 @@ U8 e_kind_basic_byte_size_table[54] =
0,
};
String8 e_kind_basic_string_table[54] =
String8 e_kind_basic_string_table[55] =
{
str8_lit_comp(""),
str8_lit_comp("void"),
str8_lit_comp("HANDLE"),
str8_lit_comp("HRESULT"),
str8_lit_comp("char8"),
str8_lit_comp("char16"),
str8_lit_comp("char32"),
+3 -2
View File
@@ -22,6 +22,7 @@ typedef enum E_TypeKind
E_TypeKind_Null,
E_TypeKind_Void,
E_TypeKind_Handle,
E_TypeKind_HResult,
E_TypeKind_Char8,
E_TypeKind_Char16,
E_TypeKind_Char32,
@@ -154,8 +155,8 @@ extern String8 e_token_kind_strings[6];
extern String8 e_expr_kind_strings[41];
extern String8 e_interpretation_code_display_strings[11];
extern String8 e_expr_op_strings[41];
extern U8 e_kind_basic_byte_size_table[54];
extern String8 e_kind_basic_string_table[54];
extern U8 e_kind_basic_byte_size_table[55];
extern String8 e_kind_basic_string_table[55];
C_LINKAGE_END