aboutsummaryrefslogtreecommitdiff
path: root/src/as_codegen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/as_codegen.h')
-rw-r--r--src/as_codegen.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/as_codegen.h b/src/as_codegen.h
index 1d7392a..4265f07 100644
--- a/src/as_codegen.h
+++ b/src/as_codegen.h
@@ -8,12 +8,14 @@ struct bytearray {
size_t cap;
size_t len;
char* buf;
+ allocator *alct;
};
typedef struct bytearray bytearray;
void bytearray_emit8(bytearray *self, int8_t data);
void bytearray_emit64(bytearray *self, int64_t data);
+// return: result<bytearray*>
struct result codegen(struct allocator *alct, struct prog *prog, struct sym_table tbl);
#endif // FVM_AS_CODEGEN_H_