From e6122f465cd8b8eebcc2657321cf7cf5732408a8 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 30 Jan 2025 04:50:11 +0330 Subject: added global variables (not constants) --- src/compiler/code-generator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/code-generator.h') diff --git a/src/compiler/code-generator.h b/src/compiler/code-generator.h index 03415a4..05a6bf4 100644 --- a/src/compiler/code-generator.h +++ b/src/compiler/code-generator.h @@ -8,6 +8,7 @@ typedef enum CodeGeneratorInstruction : uint8_t { CODE_GENERATOR_INSTRUCTION_PRINT_U64, CODE_GENERATOR_INSTRUCTION_CALL, CODE_GENERATOR_INSTRUCTION_RET, + CODE_GENERATOR_INSTRUCTION_DEF_VAR64, } CodeGeneratorInstruction; typedef struct CodeGeneratorCode { @@ -22,7 +23,7 @@ typedef struct CodeGeneratorCall { char *label_end; } CodeGeneratorCall; -typedef uint64_t CodeGeneratorOperandU64; +typedef char *CodeGeneratorOperand; typedef struct CodeGeneratorCodes { CodeGeneratorCode *codes; -- cgit v1.2.3