aboutsummaryrefslogtreecommitdiff
path: root/minias.h
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-13 12:20:42 +1300
committerAndrew Chambers <[email protected]>2021-10-13 12:20:42 +1300
commit17505af0c36e993f48cb072b5c2ecf41bc540ec4 (patch)
tree1ab61b1d8bfe6cec953a1a5337cab63aa31f48ba /minias.h
parent4fc6bfe524c3f708111e4659627d474d73f3352d (diff)
Add const in places we might be using a cache.
Diffstat (limited to 'minias.h')
-rw-r--r--minias.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/minias.h b/minias.h
index cbaae9b..100eaa2 100644
--- a/minias.h
+++ b/minias.h
@@ -200,6 +200,7 @@ typedef enum {
ASM_REG_END,
} AsmKind;
+
typedef union Parsev Parsev;
typedef struct {
@@ -282,7 +283,7 @@ typedef struct {
AsmKind kind;
uint8_t indirect;
union {
- Parsev *indirect;
+ const Parsev *indirect;
Value direct;
} target;
} Call;
@@ -296,9 +297,9 @@ typedef struct {
typedef struct {
AsmKind kind;
uint8_t variant;
- Parsev *arg1;
- Parsev *arg2;
- Parsev *arg3;
+ const Parsev *arg1;
+ const Parsev *arg2;
+ const Parsev *arg3;
} Instr;
union Parsev {