mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-31 19:30:03 +00:00
metagen: simplify enum generation; reading/organization pass over raddbgi_from_pdb
This commit is contained in:
@@ -85,7 +85,7 @@ REGS_RegCodeX64_ymm12,
|
||||
REGS_RegCodeX64_ymm13,
|
||||
REGS_RegCodeX64_ymm14,
|
||||
REGS_RegCodeX64_ymm15,
|
||||
REGS_RegCodeX64_COUNT
|
||||
REGS_RegCodeX64_COUNT,
|
||||
} REGS_RegCodeX64;
|
||||
|
||||
typedef enum REGS_AliasCodeX64
|
||||
@@ -170,7 +170,7 @@ REGS_AliasCodeX64_mm4,
|
||||
REGS_AliasCodeX64_mm5,
|
||||
REGS_AliasCodeX64_mm6,
|
||||
REGS_AliasCodeX64_mm7,
|
||||
REGS_AliasCodeX64_COUNT
|
||||
REGS_AliasCodeX64_COUNT,
|
||||
} REGS_AliasCodeX64;
|
||||
|
||||
typedef enum REGS_RegCodeX86
|
||||
@@ -236,7 +236,7 @@ REGS_RegCodeX86_ymm4,
|
||||
REGS_RegCodeX86_ymm5,
|
||||
REGS_RegCodeX86_ymm6,
|
||||
REGS_RegCodeX86_ymm7,
|
||||
REGS_RegCodeX86_COUNT
|
||||
REGS_RegCodeX86_COUNT,
|
||||
} REGS_RegCodeX86;
|
||||
|
||||
typedef enum REGS_AliasCodeX86
|
||||
@@ -277,7 +277,7 @@ REGS_AliasCodeX86_mm4,
|
||||
REGS_AliasCodeX86_mm5,
|
||||
REGS_AliasCodeX86_mm6,
|
||||
REGS_AliasCodeX86_mm7,
|
||||
REGS_AliasCodeX86_COUNT
|
||||
REGS_AliasCodeX86_COUNT,
|
||||
} REGS_AliasCodeX86;
|
||||
|
||||
typedef struct REGS_RegBlockX64 REGS_RegBlockX64;
|
||||
|
||||
+16
-16
@@ -299,18 +299,18 @@ REGS_ArchTable:
|
||||
////////////////////////////////
|
||||
//~ rjf: X64 Generators
|
||||
|
||||
@table_gen_enum REGS_RegCodeX64:
|
||||
@enum REGS_RegCodeX64:
|
||||
{
|
||||
`REGS_RegCodeX64_NULL,`;
|
||||
@expand(REGS_RegTableX64 a) `REGS_RegCodeX64_$(a.name),`;
|
||||
`REGS_RegCodeX64_COUNT`;
|
||||
NULL,
|
||||
@expand(REGS_RegTableX64 a) `$(a.name)`,
|
||||
COUNT,
|
||||
}
|
||||
|
||||
@table_gen_enum REGS_AliasCodeX64:
|
||||
@enum REGS_AliasCodeX64:
|
||||
{
|
||||
`REGS_AliasCodeX64_NULL,`;
|
||||
@expand(REGS_AliasTableX64 a) `REGS_AliasCodeX64_$(a.name),`;
|
||||
`REGS_AliasCodeX64_COUNT`;
|
||||
NULL,
|
||||
@expand(REGS_AliasTableX64 a) `$(a.name)`,
|
||||
COUNT,
|
||||
}
|
||||
|
||||
@table_gen_struct
|
||||
@@ -364,18 +364,18 @@ regs_g_alias_code_x64_slice_table:
|
||||
////////////////////////////////
|
||||
//~ rjf: X86 Generators
|
||||
|
||||
@table_gen_enum REGS_RegCodeX86:
|
||||
@enum REGS_RegCodeX86:
|
||||
{
|
||||
`REGS_RegCodeX86_NULL,`;
|
||||
@expand(REGS_RegTableX86 a) `REGS_RegCodeX86_$(a.name),`;
|
||||
`REGS_RegCodeX86_COUNT`;
|
||||
NULL,
|
||||
@expand(REGS_RegTableX86 a) `$(a.name)`,
|
||||
COUNT,
|
||||
}
|
||||
|
||||
@table_gen_enum REGS_AliasCodeX86:
|
||||
@enum REGS_AliasCodeX86:
|
||||
{
|
||||
`REGS_AliasCodeX86_NULL,`;
|
||||
@expand(REGS_AliasTableX86 a) `REGS_AliasCodeX86_$(a.name),`;
|
||||
`REGS_AliasCodeX86_COUNT`;
|
||||
NULL,
|
||||
@expand(REGS_AliasTableX86 a) `$(a.name)`,
|
||||
COUNT,
|
||||
}
|
||||
|
||||
@table_gen_struct
|
||||
|
||||
Reference in New Issue
Block a user