From 288727f09a1b3458c268497d111349e608c3f9fa Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Tue, 2 Aug 2022 01:20:12 +0200 Subject: init --- src_c/ctx.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src_c/ctx.h (limited to 'src_c/ctx.h') diff --git a/src_c/ctx.h b/src_c/ctx.h new file mode 100644 index 0000000..02740a0 --- /dev/null +++ b/src_c/ctx.h @@ -0,0 +1,16 @@ +#ifndef LISP16_CTX_H +#define LISP16_CTX_H + +#include "mem.h" + + +lsp_status_t lsp_ctx_create(lsp_mem_t *m, lsp_addr_t *ctx); +lsp_status_t lsp_ctx_copy(lsp_mem_t *m, lsp_addr_t ctx, lsp_addr_t *result); +lsp_status_t lsp_ctx_add(lsp_mem_t *m, lsp_addr_t ctx, lsp_addr_t symbol, + lsp_addr_t value); +lsp_status_t lsp_ctx_set(lsp_mem_t *m, lsp_addr_t ctx, lsp_addr_t symbol, + lsp_addr_t value); +lsp_status_t lsp_ctx_get(lsp_mem_t *m, lsp_addr_t ctx, lsp_addr_t symbol, + lsp_addr_t *value); + +#endif -- cgit v1.2.3-70-g09d2