From 4f9a2c7a2d8464b04cc08075a7762c6d457090df Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Wed, 22 May 2024 14:04:36 +0200 Subject: WIP --- private_include/nw/interp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'private_include/nw/interp.h') diff --git a/private_include/nw/interp.h b/private_include/nw/interp.h index 5fa37bf..c8f3249 100644 --- a/private_include/nw/interp.h +++ b/private_include/nw/interp.h @@ -28,12 +28,14 @@ int interp_start(const struct nw_interp_cfg *cfg, FILE *f, struct nw_interp *i); int interp_run(struct nw_interp *i); int interp_run_limited(struct nw_interp *i, const struct interp_set *ops); int interp_check_opcode(uint8_t op, FILE *f); -int interp_push(struct nw_interp *i, const struct nw_frame *f); int interp_pop(struct nw_interp *i); void *interp_stackptr(const struct nw_interp *i); int interp_stack_push(struct nw_interp *i, const void *src, size_t n); int interp_stack_pop(struct nw_interp *i, void *dst, size_t n); int interp_heap_store(struct nw_interp *i, size_t addr, const void *src, size_t n); int interp_heap_load(struct nw_interp *i, size_t addr, void *dst, size_t n); +int interp_global_push(struct nw_interp *i, const void *src, size_t n); +int interp_global_pop(struct nw_interp *i, void *dst, size_t n); +void *interp_globalptr(const struct nw_interp *i); #endif -- cgit v1.2.3