diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-02-11 21:29:15 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-02-11 21:29:15 +0000 |
| commit | a01ee103f9bc0c6defe9ce8cd85651f19f7127bd (patch) | |
| tree | 8634fd33dde74b4aab1519e1b61bc3343d99606f /runtime | |
| parent | 3d4e3f4a54d128a2a280b5adc921f3d95fb963bb (diff) | |
Create separate lib for patio runtime
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/meson.build | 20 | ||||
| -rw-r--r-- | runtime/src/shed/alloc.c (renamed from runtime/src/alloc.c) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/alloc.h (renamed from runtime/src/alloc.h) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/closures.h (renamed from runtime/src/closures.h) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/effects.c (renamed from runtime/src/effects.c) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/effects.h (renamed from runtime/src/effects.h) | 2 | ||||
| -rw-r--r-- | runtime/src/shed/gc.c (renamed from runtime/src/gc.c) | 2 | ||||
| -rw-r--r-- | runtime/src/shed/gc.h (renamed from runtime/src/gc.h) | 2 | ||||
| -rw-r--r-- | runtime/src/shed/ints.c (renamed from runtime/src/ints.c) | 2 | ||||
| -rw-r--r-- | runtime/src/shed/namespaces/Shed/Builtins.c (renamed from runtime/src/namespaces/Shed/Builtins.c) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/primitives.c (renamed from runtime/src/primitives.c) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/primitives.h (renamed from runtime/src/primitives.h) | 2 | ||||
| -rw-r--r-- | runtime/src/shed/shed.h (renamed from runtime/src/shed.h) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/std/unistd.h (renamed from runtime/src/std/unistd.h) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/strings.c (renamed from runtime/src/strings.c) | 0 | ||||
| -rw-r--r-- | runtime/src/shed/strings.h (renamed from runtime/src/strings.h) | 2 |
16 files changed, 18 insertions, 14 deletions
diff --git a/runtime/meson.build b/runtime/meson.build index 569d2d92..2acb806a 100644 --- a/runtime/meson.build +++ b/runtime/meson.build @@ -1,15 +1,19 @@ project('shed-runtime', 'c', default_options : ['warning_level=1']) static_library( - 'shed', + 'patio', 'src/patio/exceptions.c', - 'src/alloc.c', - 'src/effects.c', - 'src/gc.c', - 'src/ints.c', - 'src/primitives.c', - 'src/strings.c', - 'src/namespaces/Shed/Builtins.c', +) + +static_library( + 'shed', + 'src/shed/alloc.c', + 'src/shed/effects.c', + 'src/shed/gc.c', + 'src/shed/ints.c', + 'src/shed/primitives.c', + 'src/shed/strings.c', + 'src/shed/namespaces/Shed/Builtins.c', ) if meson.get_external_property('shed_runtime_is_wasm', false) diff --git a/runtime/src/alloc.c b/runtime/src/shed/alloc.c index f68fb128..f68fb128 100644 --- a/runtime/src/alloc.c +++ b/runtime/src/shed/alloc.c diff --git a/runtime/src/alloc.h b/runtime/src/shed/alloc.h index 07a14436..07a14436 100644 --- a/runtime/src/alloc.h +++ b/runtime/src/shed/alloc.h diff --git a/runtime/src/closures.h b/runtime/src/shed/closures.h index e32244ea..e32244ea 100644 --- a/runtime/src/closures.h +++ b/runtime/src/shed/closures.h diff --git a/runtime/src/effects.c b/runtime/src/shed/effects.c index 39dabe56..39dabe56 100644 --- a/runtime/src/effects.c +++ b/runtime/src/shed/effects.c diff --git a/runtime/src/effects.h b/runtime/src/shed/effects.h index 8f496784..e74ed171 100644 --- a/runtime/src/effects.h +++ b/runtime/src/shed/effects.h @@ -1,7 +1,7 @@ #ifndef SHED_EFFECTS_H #define SHED_EFFECTS_H -#include "./patio/patio.h" +#include "../patio/patio.h" typedef PatioInt ShedEffectTag; typedef PatioInt ShedEffectMethodIndex; diff --git a/runtime/src/gc.c b/runtime/src/shed/gc.c index 12f668cb..2d6ab05f 100644 --- a/runtime/src/gc.c +++ b/runtime/src/shed/gc.c @@ -1,6 +1,6 @@ #include <stdbool.h> -#include "./patio/patio.h" +#include "../patio/patio.h" #include "./alloc.h" #include "./gc.h" #include "./primitives.h" diff --git a/runtime/src/gc.h b/runtime/src/shed/gc.h index a91e57d1..9e39e7b7 100644 --- a/runtime/src/gc.h +++ b/runtime/src/shed/gc.h @@ -3,7 +3,7 @@ #include "./std/unistd.h" -#include "./patio/patio.h" +#include "../patio/patio.h" struct ShedGcObjectHeader { struct ShedGcObjectHeader* next; diff --git a/runtime/src/ints.c b/runtime/src/shed/ints.c index 572a2ee7..c7c2c8ea 100644 --- a/runtime/src/ints.c +++ b/runtime/src/shed/ints.c @@ -1,6 +1,6 @@ #include <stdbool.h> -#include "./patio/patio.h" +#include "../patio/patio.h" #include "./gc.h" #include "./primitives.h" diff --git a/runtime/src/namespaces/Shed/Builtins.c b/runtime/src/shed/namespaces/Shed/Builtins.c index 142a1317..142a1317 100644 --- a/runtime/src/namespaces/Shed/Builtins.c +++ b/runtime/src/shed/namespaces/Shed/Builtins.c diff --git a/runtime/src/primitives.c b/runtime/src/shed/primitives.c index a103ba6d..a103ba6d 100644 --- a/runtime/src/primitives.c +++ b/runtime/src/shed/primitives.c diff --git a/runtime/src/primitives.h b/runtime/src/shed/primitives.h index 25bcbf5c..c523e4a4 100644 --- a/runtime/src/primitives.h +++ b/runtime/src/shed/primitives.h @@ -1,7 +1,7 @@ #ifndef SHED_PRIMITIVES_H #define SHED_PRIMITIVES_H -#include "./patio/patio.h" +#include "../patio/patio.h" typedef PatioInt ShedObject; diff --git a/runtime/src/shed.h b/runtime/src/shed/shed.h index ff44cd9c..ff44cd9c 100644 --- a/runtime/src/shed.h +++ b/runtime/src/shed/shed.h diff --git a/runtime/src/std/unistd.h b/runtime/src/shed/std/unistd.h index 8f4dc71a..8f4dc71a 100644 --- a/runtime/src/std/unistd.h +++ b/runtime/src/shed/std/unistd.h diff --git a/runtime/src/strings.c b/runtime/src/shed/strings.c index 8ef25433..8ef25433 100644 --- a/runtime/src/strings.c +++ b/runtime/src/shed/strings.c diff --git a/runtime/src/strings.h b/runtime/src/shed/strings.h index d299a098..060262fa 100644 --- a/runtime/src/strings.h +++ b/runtime/src/shed/strings.h @@ -3,7 +3,7 @@ #include <stdint.h> -#include "./patio/patio.h" +#include "../patio/patio.h" #include "./gc.h" typedef PatioInt ShedStringLength; |
