From 422b6c976e28445d2a6e14586fa416b0f16c093f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 24 Jun 2023 20:48:32 +0300 Subject: initial commit --- src/copyjit.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/copyjit.h (limited to 'src/copyjit.h') diff --git a/src/copyjit.h b/src/copyjit.h new file mode 100644 index 0000000..8582217 --- /dev/null +++ b/src/copyjit.h @@ -0,0 +1,17 @@ +#ifndef HMMJIT_H +#define HMMJIT_H + +typedef struct { + char *pc; + char *buf; + size_t size; +} ctx_t; + +#include "../lib/decls.h" + +void *compile_uli(ctx_t *ctx, unsigned long i); +void compile_start(ctx_t *ctx); +void compile_finish(ctx_t *ctx); +void run(ctx_t *ctx); + +#endif /* HMMJIT_H */ -- cgit v1.3