From 1644bbec6161ec971a2ba3c213ce285b995cac22 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 1 Jun 2023 11:04:38 +0200 Subject: cooker: OP_CALL and OP_COPY stuff ...mostly. Signed-off-by: Stefano Brivio --- cooker/gluten.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cooker/gluten.h') diff --git a/cooker/gluten.h b/cooker/gluten.h index edd3240..0fcea26 100644 --- a/cooker/gluten.h +++ b/cooker/gluten.h @@ -47,10 +47,15 @@ enum jump_type { JUMP_COUNT, }; -struct gluten_offset gluten_alloc(struct gluten_ctx *g, size_t size); -struct gluten_offset gluten_alloc_type(struct gluten_ctx *g, enum type type); +struct gluten_offset gluten_rw_alloc(struct gluten_ctx *g, size_t size); +struct gluten_offset gluten_rw_alloc_type(struct gluten_ctx *g, enum type type); +struct gluten_offset gluten_ro_alloc(struct gluten_ctx *g, size_t size); +struct gluten_offset gluten_ro_alloc_type(struct gluten_ctx *g, enum type type); void gluten_add_tag(struct gluten_ctx *g, const char *name, struct gluten_offset offset); +void gluten_add_tag_post(struct gluten_ctx *g, const char *name, + struct gluten_offset offset); +struct gluten_offset gluten_get_tag(struct gluten_ctx *g, const char *name); void gluten_init(struct gluten_ctx *g); void gluten_block_init(struct gluten_ctx *g); void gluten_write(struct gluten_ctx *g, const char *path); -- cgit v1.2.3