mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
eliminate all extra enums files for formats
This commit is contained in:
@@ -486,3 +486,36 @@ mscrt_catch_blocks_from_data_x8664(Arena *arena,
|
||||
return result;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Enum -> String
|
||||
|
||||
internal String8
|
||||
mscrt_string_from_eh_adjectives(Arena *arena, MSCRT_EhHandlerTypeFlags adjectives)
|
||||
{
|
||||
Temp scratch = scratch_begin(&arena, 1);
|
||||
String8List adj_list = {0};
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsConst) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Const");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsVolatile) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Volatile");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsUnaligned) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Unaligned");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsReference) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Reference");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsResumable) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Resumable");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsStdDotDot) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "StdDotDot");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsComplusEH) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "ComplusEH");
|
||||
}
|
||||
String8 result = str8_list_join(arena, &adj_list, &(StringJoin){.sep=str8_lit(", ")});
|
||||
scratch_end(scratch);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -327,6 +327,17 @@ internal U64 mscrt_parse_unwind_map_v4 (Arena *arena, String8 raw_data,
|
||||
internal U64 mscrt_parse_try_block_map_array_v4(Arena *arena, String8 raw_data, U64 off, U64 section_count, COFF_SectionHeader *sections, U64 func_voff, MSCRT_TryBlockMapV4Array *map_out);
|
||||
internal U64 mscrt_parse_ip2state_map_v4 (Arena *arena, String8 raw_data, U64 off, U64 func_voff, MSCRT_IP2State32V4 *ip2state_map_out);
|
||||
internal U64 mscrt_parse_func_info_v4 (Arena *arena, String8 raw_data, U64 section_count, COFF_SectionHeader *sections, U64 off, U64 func_voff, MSCRT_ParsedFuncInfoV4 *func_info_out);
|
||||
internal Rng1U64List
|
||||
mscrt_catch_blocks_from_data_x8664(Arena *arena,
|
||||
String8 raw_data,
|
||||
U64 section_count,
|
||||
COFF_SectionHeader *sections,
|
||||
Rng1U64 except_frange);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Enum -> String
|
||||
|
||||
internal String8 mscrt_string_from_eh_adjectives(Arena *arena, MSCRT_EhHandlerTypeFlags adjectives);
|
||||
|
||||
#endif // MSVC_CRT
|
||||
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
internal String8
|
||||
mscrt_string_from_eh_adjectives(Arena *arena, MSCRT_EhHandlerTypeFlags adjectives)
|
||||
{
|
||||
Temp scratch = scratch_begin(&arena, 1);
|
||||
String8List adj_list = {0};
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsConst) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Const");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsVolatile) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Volatile");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsUnaligned) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Unaligned");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsReference) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Reference");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsResumable) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "Resumable");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsStdDotDot) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "StdDotDot");
|
||||
}
|
||||
if (adjectives & MSCRT_EhHandlerTypeFlag_IsComplusEH) {
|
||||
str8_list_pushf(scratch.arena, &adj_list, "ComplusEH");
|
||||
}
|
||||
String8 result = str8_list_join(arena, &adj_list, &(StringJoin){.sep=str8_lit(", ")});
|
||||
scratch_end(scratch);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
#ifndef MSVC_CRT_ENUM_H
|
||||
#define MSVC_CRT_ENUM_H
|
||||
|
||||
internal String8 mscrt_string_from_eh_adjectives(Arena *arena, MSCRT_EhHandlerTypeFlags adjectives);
|
||||
|
||||
#endif // MSVC_CRT_ENUM_H
|
||||
Reference in New Issue
Block a user