diff options
| author | Andrew Chambers <[email protected]> | 2021-10-13 12:20:42 +1300 |
|---|---|---|
| committer | Andrew Chambers <[email protected]> | 2021-10-13 12:20:42 +1300 |
| commit | 17505af0c36e993f48cb072b5c2ecf41bc540ec4 (patch) | |
| tree | 1ab61b1d8bfe6cec953a1a5337cab63aa31f48ba /minias.h | |
| parent | 4fc6bfe524c3f708111e4659627d474d73f3352d (diff) | |
Add const in places we might be using a cache.
Diffstat (limited to 'minias.h')
| -rw-r--r-- | minias.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 { |
