summaryrefslogtreecommitdiff
path: root/state.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-20 16:00:34 +0100
committerubq323 <ubq323@ubq323.website>2024-06-20 16:00:34 +0100
commit60b3369ab24f9bd2a4a6d638ab1b3013ebc29814 (patch)
tree3ff8ec7e95ef314266673b1b3d7bedb880a4a5b0 /state.h
parent9ee73a8459eb2bb58adc29da02de312b7e4e7dca (diff)
pass State *S everywhere
contains changes from a million years ago that i don't remember much about
Diffstat (limited to 'state.h')
-rw-r--r--state.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/state.h b/state.h
new file mode 100644
index 0000000..2316d1e
--- /dev/null
+++ b/state.h
@@ -0,0 +1,15 @@
+#ifndef _state_h
+#define _state_h
+
+typedef struct _state State;
+
+#include "vm.h"
+#include "ht.h"
+
+struct _state {
+ Thread *th;
+ Ht strings;
+};
+State state_new();
+
+#endif