aboutsummaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 12:00:04 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 12:00:04 +0000
commitb59c72a2a7f0f128b38f48d50e37630cc90dfe20 (patch)
treea3442b565cb6535c1e1fb926d532e7e48f05900f /runtime/src
parentf0b1de70e7b96668712746f028b41fcfa525d8fe (diff)
Extract effects.h
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/effects.c1
-rw-r--r--runtime/src/effects.h9
-rw-r--r--runtime/src/shed.h3
3 files changed, 10 insertions, 3 deletions
diff --git a/runtime/src/effects.c b/runtime/src/effects.c
index 3bf9852c..3c6e9567 100644
--- a/runtime/src/effects.c
+++ b/runtime/src/effects.c
@@ -1,4 +1,5 @@
#include "./std/unistd.h"
+#include "./effects.h"
#include "./shed.h"
struct ShedEffectHandler {
diff --git a/runtime/src/effects.h b/runtime/src/effects.h
new file mode 100644
index 00000000..8f496784
--- /dev/null
+++ b/runtime/src/effects.h
@@ -0,0 +1,9 @@
+#ifndef SHED_EFFECTS_H
+#define SHED_EFFECTS_H
+
+#include "./patio/patio.h"
+
+typedef PatioInt ShedEffectTag;
+typedef PatioInt ShedEffectMethodIndex;
+
+#endif
diff --git a/runtime/src/shed.h b/runtime/src/shed.h
index a8fc7fda..fe859f50 100644
--- a/runtime/src/shed.h
+++ b/runtime/src/shed.h
@@ -19,7 +19,4 @@ typedef ShedObject* ShedEnv;
void* shed__runtime__alloc(size_t size);
-typedef PatioInt ShedEffectTag;
-typedef PatioInt ShedEffectMethodIndex;
-
#endif