aboutsummaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 11:44:09 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 11:44:09 +0000
commit10a0cbfed64907030399ed69879ee495ae8b692c (patch)
tree70b120c60b6e58acfe9e19941be56d114bc1ac45 /runtime/src
parent5230ee879b633ce89af4b8d34fe60874d96c04b2 (diff)
Extract patio.h
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/patio/patio.h10
-rw-r--r--runtime/src/shed.h8
2 files changed, 11 insertions, 7 deletions
diff --git a/runtime/src/patio/patio.h b/runtime/src/patio/patio.h
new file mode 100644
index 00000000..93af56d0
--- /dev/null
+++ b/runtime/src/patio/patio.h
@@ -0,0 +1,10 @@
+#ifndef SHED_PATIO_PATIO_H
+#define SHED_PATIO_PATIO_H
+
+#ifdef __WASM__
+typedef uint32_t PatioInt;
+#else
+typedef uint64_t PatioInt;
+#endif
+
+#endif
diff --git a/runtime/src/shed.h b/runtime/src/shed.h
index b8ff14a0..4f694e2d 100644
--- a/runtime/src/shed.h
+++ b/runtime/src/shed.h
@@ -2,16 +2,10 @@
#define SHED_H
#include "./std.h"
+#include "./patio/patio.h"
-#ifdef __WASM__
-typedef uint32_t PatioInt;
typedef PatioInt ShedObject;
typedef PatioInt ShedStringLength;
-#else
-typedef uint64_t PatioInt;
-typedef PatioInt ShedObject;
-typedef PatioInt ShedStringLength;
-#endif
extern ShedObject const shed_unit;