aboutsummaryrefslogtreecommitdiff
path: root/src/copyjit.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-06-24 20:48:32 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-06-24 22:10:50 +0300
commit422b6c976e28445d2a6e14586fa416b0f16c093f (patch)
treea6bf3364cec45ed0c5d48e346a76a98fe9d0094a /src/copyjit.h
downloadcopyjit-422b6c976e28445d2a6e14586fa416b0f16c093f.tar.gz
copyjit-422b6c976e28445d2a6e14586fa416b0f16c093f.zip
initial commit
Diffstat (limited to 'src/copyjit.h')
-rw-r--r--src/copyjit.h17
1 files changed, 17 insertions, 0 deletions
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 */