diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-10-02 23:52:22 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-10-02 23:55:03 +0200 |
commit | d03f4f4b0f770cdb16abf630179070c46031518d (patch) | |
tree | f6c746bdf64006acf0366d125b2deea5a14c2d1e /ast.h | |
parent | a57aa8262ead82aaf2e9eec3d11d473186e7a33a (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -72,6 +72,7 @@ struct ut_op { struct json_object *proto; size_t type; void *data; + uint32_t off; } tag; struct { uint32_t next; |