cstr -> str where possible

This commit is contained in:
2025-02-02 19:18:01 +05:00
parent 8a38813ba5
commit 823223ffa7
14 changed files with 119 additions and 121 deletions

View File

@@ -19,13 +19,13 @@ typedef enum __attribute__((__packed__)) Opcode {
} Opcode;
typedef struct Instruction {
cstr name;
str name;
InstructionImplFunc_t implementation;
Opcode opcode;
} Instruction;
#define Instruction_construct(NAME) {\
.name = #NAME, \
.name = STR(#NAME), \
.implementation = NAME##_impl, \
.opcode = Opcode_##NAME\
}