entity parameter tree equipment; architecture -> arch

This commit is contained in:
Ryan Fleury
2024-08-29 13:16:50 -07:00
parent df6150c811
commit 9932a30ef9
42 changed files with 395 additions and 342 deletions
+3 -3
View File
@@ -81,7 +81,7 @@ elf_parsed_from_data(Arena *arena, String8 elf_data){
//- validate & translate header values
B32 header_is_good = 0;
Architecture arch = Architecture_Null;
Arch arch = Arch_Null;
if (decoded_header){
header_is_good = 1;
@@ -96,8 +96,8 @@ elf_parsed_from_data(Arena *arena, String8 elf_data){
if (header_is_good){
switch (e_machine){
default: header_is_good = 0;
case ELF_Machine_386: arch = Architecture_x86; break;
case ELF_Machine_X86_64: arch = Architecture_x64; break;
case ELF_Machine_386: arch = Arch_x86; break;
case ELF_Machine_X86_64: arch = Arch_x64; break;
}
}
+1 -1
View File
@@ -462,7 +462,7 @@ typedef struct ELF_SegmentArray{
typedef struct ELF_Parsed{
String8 data;
ELF_Class elf_class;
Architecture arch;
Arch arch;
ELF_Shdr64 *sections;
String8 *section_names;