diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-12-30 15:33:33 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-12-30 15:33:33 +0800 |
commit | 463be4aa241f9c9b8453ba46a89ce5d67995c55b (patch) | |
tree | 8575ce34c28d0cc10a4b3a98ced553a504e7c7d4 /src/state.h | |
parent | 0c0c7ab0850b6803c377ad7150305870d75bf3c0 (diff) | |
download | compiler2015-463be4aa241f9c9b8453ba46a89ce5d67995c55b.tar compiler2015-463be4aa241f9c9b8453ba46a89ce5d67995c55b.tar.gz compiler2015-463be4aa241f9c9b8453ba46a89ce5d67995c55b.tar.bz2 compiler2015-463be4aa241f9c9b8453ba46a89ce5d67995c55b.tar.lz compiler2015-463be4aa241f9c9b8453ba46a89ce5d67995c55b.tar.xz compiler2015-463be4aa241f9c9b8453ba46a89ce5d67995c55b.tar.zst compiler2015-463be4aa241f9c9b8453ba46a89ce5d67995c55b.zip |
Drop any_error from state and add asm_output to state
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state.h b/src/state.h index 8e268d3..516b7fc 100644 --- a/src/state.h +++ b/src/state.h @@ -6,13 +6,14 @@ #include <stdbool.h> #include <stddef.h> +#include <stdio.h> // All states of the compiler instance typedef struct CcmmcState_struct { CcmmcAst *ast; CcmmcSymbolTable *table; size_t line_number; - bool any_error; + FILE *asm_output; } CcmmcState; void ccmmc_state_init (CcmmcState *state); |