From b59c72a2a7f0f128b38f48d50e37630cc90dfe20 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 12:00:04 +0000 Subject: Extract effects.h --- runtime/src/effects.c | 1 + runtime/src/effects.h | 9 +++++++++ runtime/src/shed.h | 3 --- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 runtime/src/effects.h (limited to 'runtime/src') 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 -- cgit v1.2.3