summaryrefslogtreecommitdiffhomepage
path: root/ast.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-02 23:52:22 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-02 23:55:03 +0200
commitd03f4f4b0f770cdb16abf630179070c46031518d (patch)
treef6c746bdf64006acf0366d125b2deea5a14c2d1e /ast.h
parenta57aa8262ead82aaf2e9eec3d11d473186e7a33a (diff)
ast: store function declarations as opcode offsets
We cannot use direct pointers since the opcode array might be reallocated resulting in potentially changed memory addresses. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index 45032d5..3cf0b4f 100644
--- a/ast.h
+++ b/ast.h
@@ -72,6 +72,7 @@ struct ut_op {
struct json_object *proto;
size_t type;
void *data;
+ uint32_t off;
} tag;
struct {
uint32_t next;