diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 12:00:04 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 12:00:04 +0000 |
| commit | b59c72a2a7f0f128b38f48d50e37630cc90dfe20 (patch) | |
| tree | a3442b565cb6535c1e1fb926d532e7e48f05900f /runtime/src | |
| parent | f0b1de70e7b96668712746f028b41fcfa525d8fe (diff) | |
Extract effects.h
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/effects.c | 1 | ||||
| -rw-r--r-- | runtime/src/effects.h | 9 | ||||
| -rw-r--r-- | runtime/src/shed.h | 3 |
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 |
