WIP DW_OP_piece

This commit is contained in:
Nikita Smith
2025-12-17 17:32:03 -08:00
parent 43cb8b7b1a
commit ce4d09d431
4 changed files with 128 additions and 34 deletions
+4 -12
View File
@@ -40,6 +40,8 @@ typedef S8 DW_ExprBool;
typedef struct DW_ExprValue
{
DW_ExprValueType type;
Rng1U64Array ranges;
U64 *offsets;
union {
U8 u8;
U16 u16;
@@ -77,13 +79,8 @@ typedef enum
typedef struct DW_Piece
{
DW_PieceKind kind;
union {
U64 undef_bit_size;
struct {
U64 bit_size;
void *ptr;
} value;
};
U64 bit_size;
U8 *value;
} DW_Piece;
typedef struct DW_PieceNode
@@ -105,11 +102,6 @@ typedef struct DW_ExprStack
DW_ExprValueNode *top;
} DW_ExprStack;
typedef struct DW_ExprResult
{
int x;
} DW_ExprResult;
typedef enum
{
DW_ExprEvalResult_Fail,