summaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/vm.h b/vm.h
index 6329655..c75df82 100644
--- a/vm.h
+++ b/vm.h
@@ -8,23 +8,7 @@
typedef struct _thread Thread;
#include "val.h"
-#include "state.h"
-
-typedef struct {
- struct {
- size_t len;
- size_t cap;
- uint8_t *d;
- } bc;
- struct {
- size_t len;
- size_t cap;
- Val *d;
- } consts;
-} Chunk;
-Chunk chunk_new(State *S);
-size_t chunk_wbc(State *S, Chunk *ch, uint8_t byte);
-size_t chunk_wconst(State *S, Chunk *ch, Val v);
+#include "com.h"
#define STACKSIZE 128
typedef struct _thread {