renamed: `core/std` -> `core/module`; `--no-std` -> `--no-core`
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 19 Nov 2023 03:55:09 +0000 (21:55 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 19 Nov 2023 03:55:09 +0000 (21:55 -0600)
115 files changed:
compiler/include/astnodes.h
compiler/src/onyx.c
core/module.onyx [new file with mode: 0644]
core/onyx/cbindgen.onyx
core/std.onyx [deleted file]
docs/ideas/mapped_directories.md
examples/01_hello_world.onyx
examples/02_variables.onyx
examples/04_fixed_arrays.onyx
examples/05_slices.onyx
examples/06_dynamic_arrays.onyx
examples/07_structs.onyx
examples/08_enums.onyx
examples/09_for_loops.onyx
examples/10_switch_statements.onyx
examples/11_map.onyx
examples/12_varargs.onyx
examples/13_use_keyword.onyx
examples/14_overloaded_procs.onyx
examples/15_polymorphic_procs.onyx
examples/16_pipe_operator.onyx
examples/17_operator_overload.onyx
examples/18_macros.onyx
examples/19_do_blocks.onyx
examples/20_auto_return.onyx
examples/21_quick_functions.onyx
examples/22_interfaces.onyx
examples/50_misc.onyx
scripts/core_tests.onyx
scripts/onyx-pkg.onyx
scripts/run_tests.onyx
tests/aoc-2020/day1.onyx
tests/aoc-2020/day10.onyx
tests/aoc-2020/day12.onyx
tests/aoc-2020/day13.onyx
tests/aoc-2020/day14.onyx
tests/aoc-2020/day15.onyx
tests/aoc-2020/day16.onyx
tests/aoc-2020/day17.onyx
tests/aoc-2020/day18.onyx
tests/aoc-2020/day19.onyx
tests/aoc-2020/day2.onyx
tests/aoc-2020/day20.onyx
tests/aoc-2020/day21.onyx
tests/aoc-2020/day22.onyx
tests/aoc-2020/day23.onyx
tests/aoc-2020/day24.onyx
tests/aoc-2020/day25.onyx
tests/aoc-2020/day3.onyx
tests/aoc-2020/day4.onyx
tests/aoc-2020/day5.onyx
tests/aoc-2020/day6.onyx
tests/aoc-2020/day7.onyx
tests/aoc-2020/day8.onyx
tests/aoc-2020/day9.onyx
tests/aoc-2021/day01.onyx
tests/aoc-2021/day03.onyx
tests/aoc-2021/day05.onyx
tests/aoc-2021/day06.onyx
tests/aoc-2021/day07.onyx
tests/aoc-2021/day08.onyx
tests/aoc-2021/day09.onyx
tests/aoc-2021/day10.onyx
tests/aoc-2021/day11.onyx
tests/aoc-2021/day12.onyx
tests/aoc-2021/day13.onyx
tests/aoc-2021/day14.onyx
tests/aoc-2021/day15.onyx
tests/aoc-2021/day16.onyx
tests/aoc-2021/day17.onyx
tests/aoc-2021/day18.onyx
tests/array_struct_robustness.onyx
tests/arrow_notation.onyx
tests/atomics.onyx
tests/auto_poly.onyx
tests/avl_test.onyx
tests/baked_parameters.onyx
tests/better_field_accesses.onyx
tests/bucket_array.onyx
tests/bugs/anonymous_struct_defaults.onyx
tests/bugs/defer_block_in_macro.onyx
tests/bugs/fallthrough_defer_interaction.onyx
tests/bugs/macro_auto_return_not_resolved.onyx
tests/bugs/namespace_aliasing.onyx
tests/caller_location.onyx
tests/compile_time_procedures.onyx
tests/complicated_polymorph.onyx
tests/defer_with_continue.onyx
tests/defined_test.onyx
tests/float_parsing.onyx
tests/hello_world.onyx
tests/i32map.onyx
tests/if_expressions.onyx
tests/implicit_initialize_locals.onyx
tests/init_procedures.onyx
tests/interfaces.onyx
tests/lazy_iterators.onyx
tests/multiple_returns_robustness.onyx
tests/named_arguments_test.onyx
tests/new_printf.onyx
tests/new_struct_behaviour.onyx
tests/operator_overload.onyx
tests/overload_precedence.onyx
tests/overload_with_autocast.onyx
tests/persist_locals.onyx
tests/poly_struct_in_type_info.onyx
tests/poly_structs_with_values.onyx
tests/polymorphic_array_lengths.onyx
tests/remove_test.onyx
tests/sets.onyx
tests/string_stream_test.onyx
tests/struct_robustness.onyx
tests/struct_use_pointer_member.onyx
tests/switch_using_equals.onyx
tests/vararg_test.onyx

index 136ae2a3cdba442eee759602aaedc903d1cedea3..95ab9110fc13ae2f4533bcdc34dfbb1147dba7c1 100644 (file)
@@ -1815,7 +1815,7 @@ struct CompileOptions {
     b32 use_multi_threading   : 1;
     b32 generate_foreign_info : 1;
     b32 generate_type_info    : 1;
-    b32 no_std                : 1;
+    b32 no_core               : 1;
     b32 no_stale_code         : 1;
     b32 show_all_errors       : 1;
 
index 2e6eec7fc63d279fe824de239e3f4861e3d02396..eb77f02fd60b8205b50d473a97564a179a9e47b3 100644 (file)
@@ -84,7 +84,7 @@ static const char *build_docstring = DOCSTRING_HEADER
     "\t--syminfo <target_file> (DEPRECATED) Generates a symbol resolution information file. Used by onyx-lsp.\n"
     "\t--lspinfo <target_file> Generates an LSP information file. Used by onyx-lsp.\n"
     "\t--stack-trace           Enable dynamic stack trace.\n"
-    "\t--no-std                Disable automatically including \"core/std\".\n"
+    "\t--no-core               Disable automatically including \"core/module\".\n"
     "\t--no-stale-code         Disables use of `#allow_stale_code` directive\n"
     "\t--no-type-info          Disables generating type information\n"
     "\t--generate-foreign-info Generate information for foreign blocks. Rarely needed, so disabled by default.\n"
@@ -113,7 +113,7 @@ static CompileOptions compile_opts_parse(bh_allocator alloc, int argc, char *arg
         .use_multi_threading     = 0,
         .generate_foreign_info   = 0,
         .generate_type_info      = 1,
-        .no_std                  = 0,
+        .no_core                 = 0,
         .no_stale_code           = 0,
         .show_all_errors         = 0,
 
@@ -262,8 +262,8 @@ static CompileOptions compile_opts_parse(bh_allocator alloc, int argc, char *arg
             else if (!strcmp(argv[i], "--no-type-info")) {
                 options.generate_type_info = 0;
             }
-            else if (!strcmp(argv[i], "--no-std")) {
-                options.no_std = 1;
+            else if (!strcmp(argv[i], "--no-core")) {
+                options.no_core = 1;
             }
             else if (!strcmp(argv[i], "--no-stale-code")) {
                 options.no_stale_code = 1;
@@ -546,12 +546,12 @@ static void context_init(CompileOptions* opts) {
         add_entities_for_node(NULL, (AstNode *) load_node, context.global_scope, NULL);
     }
 
-    if (!context.options->no_std) {
+    if (!context.options->no_core) {
         entity_heap_insert(&context.entities, ((Entity) {
             .state = Entity_State_Parse,
             .type = Entity_Type_Load_File,
             .package = NULL,
-            .include = create_load(context.ast_alloc, "core/std"),
+            .include = create_load(context.ast_alloc, "core/module"),
         }));
     }
 
diff --git a/core/module.onyx b/core/module.onyx
new file mode 100644 (file)
index 0000000..ab028a0
--- /dev/null
@@ -0,0 +1,137 @@
+package core
+
+use runtime
+
+
+#load "./alloc/alloc"
+#load "./memory/memory"
+
+#load "./container/array"
+#load "./container/avl_tree"
+#load "./container/map"
+#load "./container/list"
+#load "./container/iter"
+#load "./container/set"
+#load "./container/bucket_array"
+#load "./container/heap"
+#load "./container/pair"
+#load "./container/optional"
+#load "./container/result"
+#load "./container/slice"
+
+#load "./conv/conv"
+#load "./conv/format"
+#load "./conv/parse"
+
+#load "./math/math"
+#load "./random/random"
+
+#load "./hash/hash"
+#load "./hash/md5"
+#load "./hash/sha256"
+
+#load "./string/string"
+#load "./string/buffer"
+#load "./string/char_utils"
+#load "./string/string_pool"
+
+#load "./intrinsics/onyx"
+#load "./intrinsics/wasm"
+#load "./intrinsics/type_interfaces"
+#load "./intrinsics/atomics"
+
+#load "./io/io"
+#load "./io/stream"
+#load "./io/reader"
+#load "./io/writer"
+#load "./io/binary"
+#load "./io/binary_reader"
+
+#load "./runtime/build_opts"
+#load "./runtime/common"
+#load "./runtime/default_link_options"
+
+#load "./test/testing"
+
+#load "./time/time"
+#load "./time/date"
+
+#load "./misc/arg_parse"
+#load "./misc/method_ops"
+
+#load "./encoding/base64"
+#load "./encoding/hex"
+#load "./encoding/utf8"
+#load "./encoding/osad"
+#load_all "./encoding/json"
+
+#load "./runtime/common"
+
+#load "./doc/doc"
+
+#if runtime.platform.Supports_Files {
+    #load "./os/file"
+}
+
+#if runtime.platform.Supports_Directories {
+    #load "./os/dir"
+    #load "./os/path"
+}
+
+#if runtime.platform.Supports_Os {
+    #load "./os/os"
+}
+
+#if runtime.platform.Supports_Processes {
+    #load "./os/process"
+}
+
+
+#if runtime.platform.Supports_Networking {
+    #load "./net/net"
+    #load "./net/tcp"
+}
+
+#if runtime.platform.Supports_Type_Info {
+    #load "./runtime/info/helper"
+    #load "./io/stdio"
+    #load "./misc/any_utils"
+    #load "./encoding/csv"
+}
+
+#if runtime.platform.Supports_Threads && runtime.Multi_Threading_Enabled {
+    #load "./threads/thread"
+}
+
+#if runtime.platform.Supports_Env_Vars {
+    #load "./os/env"
+}
+
+#if runtime.platform.Supports_TTY {
+    #load "./os/tty"
+}
+
+#if runtime.Multi_Threading_Enabled {
+    #load "./sync/mutex"
+    #load "./sync/condition_variable"
+    #load "./sync/semaphore"
+    #load "./sync/barrier"
+    #load "./sync/once"
+}
+
+
+//
+// Load platform files
+//
+
+#if runtime.runtime == .Onyx {
+    #load "./runtime/platform/onyx/platform"
+}
+
+#if runtime.runtime == .Wasi   {
+    #load "./runtime/platform/wasi/platform"
+}
+
+#if runtime.runtime == .Js {
+    #load "./runtime/platform/js/platform"
+}
index c1b9ad0e5734fb130cd578d2620c0eb00a7a39a8..fe97d219edf46fe82f046c83ea712478af03fd50 100644 (file)
@@ -8,7 +8,6 @@ package cbindgen
 // 3. Run the build file with the --generate-foreign-info flag enabled.
 //
 // Full example:
-// #load "core/std"
 // #load "./module"
 //
 // use core {*}
diff --git a/core/std.onyx b/core/std.onyx
deleted file mode 100644 (file)
index ab028a0..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-package core
-
-use runtime
-
-
-#load "./alloc/alloc"
-#load "./memory/memory"
-
-#load "./container/array"
-#load "./container/avl_tree"
-#load "./container/map"
-#load "./container/list"
-#load "./container/iter"
-#load "./container/set"
-#load "./container/bucket_array"
-#load "./container/heap"
-#load "./container/pair"
-#load "./container/optional"
-#load "./container/result"
-#load "./container/slice"
-
-#load "./conv/conv"
-#load "./conv/format"
-#load "./conv/parse"
-
-#load "./math/math"
-#load "./random/random"
-
-#load "./hash/hash"
-#load "./hash/md5"
-#load "./hash/sha256"
-
-#load "./string/string"
-#load "./string/buffer"
-#load "./string/char_utils"
-#load "./string/string_pool"
-
-#load "./intrinsics/onyx"
-#load "./intrinsics/wasm"
-#load "./intrinsics/type_interfaces"
-#load "./intrinsics/atomics"
-
-#load "./io/io"
-#load "./io/stream"
-#load "./io/reader"
-#load "./io/writer"
-#load "./io/binary"
-#load "./io/binary_reader"
-
-#load "./runtime/build_opts"
-#load "./runtime/common"
-#load "./runtime/default_link_options"
-
-#load "./test/testing"
-
-#load "./time/time"
-#load "./time/date"
-
-#load "./misc/arg_parse"
-#load "./misc/method_ops"
-
-#load "./encoding/base64"
-#load "./encoding/hex"
-#load "./encoding/utf8"
-#load "./encoding/osad"
-#load_all "./encoding/json"
-
-#load "./runtime/common"
-
-#load "./doc/doc"
-
-#if runtime.platform.Supports_Files {
-    #load "./os/file"
-}
-
-#if runtime.platform.Supports_Directories {
-    #load "./os/dir"
-    #load "./os/path"
-}
-
-#if runtime.platform.Supports_Os {
-    #load "./os/os"
-}
-
-#if runtime.platform.Supports_Processes {
-    #load "./os/process"
-}
-
-
-#if runtime.platform.Supports_Networking {
-    #load "./net/net"
-    #load "./net/tcp"
-}
-
-#if runtime.platform.Supports_Type_Info {
-    #load "./runtime/info/helper"
-    #load "./io/stdio"
-    #load "./misc/any_utils"
-    #load "./encoding/csv"
-}
-
-#if runtime.platform.Supports_Threads && runtime.Multi_Threading_Enabled {
-    #load "./threads/thread"
-}
-
-#if runtime.platform.Supports_Env_Vars {
-    #load "./os/env"
-}
-
-#if runtime.platform.Supports_TTY {
-    #load "./os/tty"
-}
-
-#if runtime.Multi_Threading_Enabled {
-    #load "./sync/mutex"
-    #load "./sync/condition_variable"
-    #load "./sync/semaphore"
-    #load "./sync/barrier"
-    #load "./sync/once"
-}
-
-
-//
-// Load platform files
-//
-
-#if runtime.runtime == .Onyx {
-    #load "./runtime/platform/onyx/platform"
-}
-
-#if runtime.runtime == .Wasi   {
-    #load "./runtime/platform/wasi/platform"
-}
-
-#if runtime.runtime == .Js {
-    #load "./runtime/platform/js/platform"
-}
index 83e9eff174e26760230cad1ad7b931c34609d557..f279a25f4f2edb65cbefb980701e44be97427f58 100644 (file)
@@ -13,7 +13,7 @@ scheme for file resolution, UNLESS you specify the full path,
 or a *mapped directory* to use as the base directory.
 
 For example, instead of relying on "/usr/share/onyx" to be in
-the search path to make "core/std" work, we would instead have
+the search path to make "core/module" work, we would instead have
 "core" be a mapped directory to "/usr/share/onyx/core". Then,
-you would say, `#load "core:std"` or `#load core "std"` to
+you would say, `#load "core:module"` or `#load core "module"` to
 specify the base path.
index 67e41eb11da2c04f3a84c1ec094dab52cfa51182..f1a5bf5843febe782b079d46b255d9c4bca2c9b0 100644 (file)
@@ -14,7 +14,7 @@ package main
 // option to disable loading the standard library, if that is needed. For the sake
 // of completeness, the following line manually includes the standard library, but
 // this is not necessary.
-#load "core/std"
+#load "core/module"
 
 // Below is the function declaration for `main`. While it might look weird at first
 // sight, Onyx uses a consistent syntax for declaring static "things" (functions,
index 813f2d98ad83faafc0aff8a0c3e0265ff9c09561..8b749b2faf0271519b3f74f27c2fe6c6c9c15afd 100644 (file)
@@ -1,4 +1,4 @@
-// Notice this time, we are not adding, 'package main' or '#load "core/std"'
+// Notice this time, we are not adding, 'package main' or '#load "core/module"'
 // to the top of the file, since every file is automatically part of the
 // main package unless specified otherwise, and every compilations includes
 // the standard library.
index 2ac9e93f882ab84b6af476bd49c6cc106e53bb97..5c9fc860a701c6fba014af164940a6bf3a476ffa 100644 (file)
@@ -15,7 +15,7 @@
 // This file will give examples of all of these things, as well as some of the gotchas
 // you need to be aware of.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 66b0b22a2f7386646525253e2535bbffa3e03445..2b218d3742bc6b84617ada48e3a1dbcf85082595 100644 (file)
@@ -5,7 +5,7 @@
 // is a powerful construct to have. In fact, strings in Onyx, i.e.
 // the 'str' type, is actually just a slice of u8.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index b6e203c28484c71e91cc47261b9defb24080eaec..cd1e1d96adfff3cd4afa2bfdc122c7772a450267 100644 (file)
@@ -7,7 +7,7 @@
 // Dynamic arrays in Onyx are easy to use on purpose, because I
 // know how useful they are in almost every program I write.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 1e2347e15f7d155f7fc5d704caa8b7fc1ab046a5..44601ee536fae7647b1c956f9eb11a2e7b592ee7 100644 (file)
@@ -5,7 +5,7 @@
 // 'structs' in Onyx are very similar to structs in C and C++, with a couple
 // of additional capabilities to make using them even easier.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 041865ce7c17fc0e5582180ad8cd7bcf134e1fca..1ae2a7358af1e1b014adcca2342bb1ef53e896ae 100644 (file)
@@ -4,7 +4,7 @@
 // expressions. This is going to improve in the future, but for the moment,
 // enums are rather limited.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 385fe70040c6d937f409a635d32ebb84547c5302..99a0f9d363636e2d940fbaae2a10791b006ae7e8 100644 (file)
@@ -4,7 +4,7 @@
 // in Onyx are extremely simple to use by design and should make programming very
 // enjoyable. But I digress, let's look at some examples.
 
-#load "core/std"
+#load "core/module"
 
 use core {package, *}
 
index ef85b5763880989f773dc86ee00f05eda1073b4c..29aa997a0849b08f6145cef302fbb8aa7daaf392 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 8bd0084650dcf1f24b21a6c35d5415bbc879c38b..a8944247900782d480697124a7d98ee28da399e1 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 26c29a017be1fa9fa099c7d8fab792a4da2d698b..5aef693533a38d1ad0af000dbc86e55865b6bb64 100644 (file)
@@ -15,7 +15,7 @@
 //   - 'variadic argument' is shortened to 'vararg' in many situtations
 
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 635b4e75a531ccf0add61668f10b148802d3bf11..2b8a13bdbb0cb55d2eb32c3d31026ab4dc23f3a4 100644 (file)
@@ -14,7 +14,7 @@
 // most cases, but can easily break and require you to write the code without it. This
 // is being address and hopefully in the next couple months it will be much more robust.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index c3645e5a9d7148292ad53094446bc6601b4c179a..1ebac42edc37eaba76dfd3f0432d27358177a02a 100644 (file)
@@ -32,7 +32,7 @@
 // Let's look at some examples of overloaded procedures and how they are resolved.
 
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 34c6a865f119a2c6c8d9721fa7637dc22df4163c..9ce5e24baf142ba0a2afb80b39c2a67e0de858f9 100644 (file)
@@ -57,7 +57,7 @@ compose :: (a: $A, f: (A) -> $B, g: (B) -> $C) -> C {
 
 }
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index aa1336a0ba0a10b5e1cec2f2608092b61815630f..c82e7c8525e6a253efbe336b91756ea4866ac3c8 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core { println }
 
index 5b86907f031bc7d9a9228f7064d8dbae86c7356b..a2a84c76e0ca62ca6e87b43619978014a93ba867 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 use core {*}
 
 // Operator overloading allows you to define what it means to perform
index 39a55e73ba70f4cbdae3698846fe48cbdf2ac093..76d394d63a44e8ebbc83fa5e6f661253d459d4d3 100644 (file)
@@ -134,5 +134,5 @@ main :: (args: [] cstr) {
     //     }
 }
 
-#load "core/std"
+#load "core/module"
 use core {*}
index 8c60673b42231b45442f7cc48fc80ad04d04909d..1c48671f3c3dd15d4984a634883c09f51e7fe393 100644 (file)
@@ -65,5 +65,5 @@ main :: (args: [] cstr) {
 
 }
 
-#load "core/std"
+#load "core/module"
 use core {*}
index 72519dd4deda487a6b39b0ce88e202045d293832..a56ac4df5031577907efe13a5682e75101d0692d 100644 (file)
@@ -42,6 +42,6 @@ main :: (args: [] cstr) {
     println(arr);
 }
 
-#load "core/std"
+#load "core/module"
 use core {*}
 
index 6434ef0d441348710897f26bb8d3d0519032efda..5d794f9792fc15db61bae756a0cda97f8cf371a6 100644 (file)
@@ -44,5 +44,5 @@ main :: (args) => {
     println(val);
 }
 
-#load "core/std"
+#load "core/module"
 use core {*}
index 9b5e5678b7925ebc278e012d255ee0edbab260a2..da875cd5271589fd2646fce83bc5968386923614 100644 (file)
@@ -134,6 +134,6 @@ main :: (args) => {
     overloaded_procedure_example();
 }
 
-#load "core/std"
+#load "core/module"
 use core {*}
 use core.intrinsics.onyx {*}
index 57d6ee40a7c5ca70c5dd6965b0ac48c42d8f8635..2eb514329fbfa40e1d2097effcae8b04b6acea47 100644 (file)
@@ -66,5 +66,5 @@ main :: (args) => {
     multiple_declaration_improvements();
 }
 
-#load "core/std"
+#load "core/module"
 use core {*}
index eefbc138dde0991ac1b48ebe02877155b84797a6..eecc5061a80159ca08331d53bc82821c60d00383 100644 (file)
@@ -1,6 +1,6 @@
 
 
-#load "core/std"
+#load "core/module"
 
 use core {package, test}
 
index 1fd21907bc1600c95cda080343b4d3024b3f2ad6..bbfc753de7def759ffd64177c0a99545c6cb872a 100644 (file)
@@ -1,5 +1,5 @@
 
-#load "core/std"
+#load "core/module"
 #load "core/encoding/ini"
 
 //
index e8f59db61419333824cbeb2b28aa2a2dea9b46f1..190ee0ee00665a9300db5407e1e4baaeff7f14f3 100644 (file)
@@ -2,9 +2,6 @@
 //     - Fancy display
 
 
-
-#load "core/std"
-
 use runtime
 use core {package, *}
 use core.intrinsics.onyx { init }
index 54784b7b931f6a44fdd7a259583c4c385f73f330..4e5fdcd5827f5df1d389929ff917b2f21fc44af5 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core
 use core.io
index 0cf43692f4f3faaac80b16fa8ff456f138db2bbf..eca37c87de679a6dcaa7e42d9a0741300c1fa18f 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 81b9eea004ae9721f6c0d7930b7ab13dc22d9334..08dcaf0b1aa5a75bfa2053aea828a59f96660e8d 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index b8d408a4257e491669fe0a5933bfde90873c829f..00995587bca3e75572b197dee3513c1db19ed0df 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 34b4118f4e89dfd3bbb842632325cd24b258746f..9a094958a87b67fe3b608369e05e51851ca95d2b 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 1bc2335c71e1e8a6ab955484ac24b65ee491050e..0ce1b716f3809f87e33f7e60e87872a48d970548 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 6ad35350bca36e55fbd7c42e7d59594118bc80f0..73088aafc35a88ac53fac0c4ce8b26dc9c9ccd72 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index f1b5a87c1c25981f01ecf3cea3e6d25a0660b1d8..5cf9434efe0f8c303afa1d25872e636ac72491bf 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {package, *}
 
index 4e2bff1255505ff078ad67978f76b27c42e69537..87c7b5d3797674a61b96040d4aa9d7f72b9e17eb 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index be0ad640f9582c8d3b4270de52004bbb7442e37c..ec61e74425477870416d002fb2ccaab388af722b 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 32a150fdd711d37378d0b300b84697b42d9db699..4ab43dfb8de95dbb728ac4d14b07ce3cdd6128c4 100644 (file)
@@ -1,6 +1,6 @@
 package main
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index a4ed485802a7e11fd705e04ba408644bf5cfad16..dc7b75020d11a0dc239730dd63346b2e39e9a9cd 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 729bbdd54d2e9537db7ea164470e58486143a887..05889f7a72f4290aeff755657b40d1efed606392 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 9a95b8115bf97d77cc11a80af5d8f53c5aee349b..e05ca22fe53af7b6a09e1a0c484efecc7cdb1c60 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 521e9ad4d1f4237042d60b621b631efae38f980b..6c185f3e5f6d061ce094965e1bf9c2c065c15e4e 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index d781376fd33d3524ab284a988282dd25b7e9acf9..a5f937f59ced38bce29e13c1eea7bf43a73ba679 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 9b6f80b699eff6a10af9a93f8856237b598e2537..1d31169e6f52fa28ad1446e7bff4106395ba00bd 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 074241a04083894f64d18db0ce8685f4f75e7760..2ab75cbba5aa52db9fafeb932aaeae97dc4f814a 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 5bcd8b3db6e077711d72c17fc806005a84efe419..dbec2f5ab0b2403c73ec20e4c2aac753857f4c11 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 80fa256bcdc72966d8c7e3b086a2b2efa68755e1..e725110388830389b9c293fcc7eb30cef3a3fea7 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index ba4848acb822a48945962b0ea26e6a72b9c3b4c8..aaecf0ed93f7b3ce91cc56eb532bf1359c9e0664 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 5b030823c873a3b98589947a7997b38edf3d2a67..b1b6f71eee60e8cfe3e3a88c843624abc875fb41 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index c883c126ba99e8366e2e03f9cf1a46eea396ce5b..294661fa28844470e1ddcbcba2268312bc5e0a6f 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 0c73e274aa3da1ffa7f49e084e26c479e8039f3d..f69569b120d0a514262ebfa0849df71b846ced57 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index e306be1a0b17d9c56c358c00ea2b76cf119b3f28..8f2bc6028c0d22cafbd691d8f110e829f38c4839 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core.io
 use core.os
index e922a5f8b61fc9cc7a35f6b126bb2c2c89908d9d..2665d7a3d196d3aed8cbfdde68f7a23bf919d449 100644 (file)
@@ -1,6 +1,6 @@
 PART :: 2
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index cf34dc22ddae299888bd28ebb1156699dd71218b..ae8761e56aad01fae905e730e50b365d2246e4ab 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 680caa9048c13857b4b5100cd5770009b8181794..462747bdb76b5d0d7c57a0065a6fea0359174add 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 05a12ec789224d5137dfc477cc25b7e35476f164..dc72f98a25a7186000c9a676945a5b326c26d22a 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index ff2583575d75a6d5f1dc177117c58bd9b29f67f7..25f60f7a913abe2f3bb4626e3d3aeb9c054f2ce8 100644 (file)
@@ -1,5 +1,5 @@
 PART :: 2
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 1eb4e92dec115d5fa0ea0e91bf42976f8fb8954b..08e8c88ef18803bf491cdfa8789e5e15df85c995 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index b64b9542b999e1b34e9c8668d1bb80e101181b74..fa98a02159e61578885414996f74bc4ede97daa6 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 81e872abecff949976ff990040362102d8d9d540..9a492d9b09df33467ed3d7d173f8ea648fb0f1b7 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index fe7d7a93b447fd49bf6d49bcfb6ba7542ab4045f..d485bf3ffd2484a8c9657e4aa5340a68fb32aa24 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 5d5daa13f77b6f353942521f0ed5549b8bf73a5d..bfdbc68b6fd32bb1a66d02f278e06060c5dbb7e6 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 64362d380b68b38fff910784c50f4ad31f109db8..64a9327fcf5e067933aa383b1ecca8b911eeae0a 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index e9ff322ff160b58818da5a897a8a1998e1035df4..a2edaf12ecd2136266af2e12c7f9e39b3614d6f6 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 886cc86d5f3681a50d01022d2d2a6bad015377dc..314d8798ad1ddd9fbfbac60c6b5157ecf1ccdf0a 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index c0d8cbba227286414393ddee19cb01ff1196f835..2cd92b96147510b3a20898dd74e16ec425e3b01a 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 927c467c2bb69cee79ec2ba95f686568544ae508..6ad6aeaa2f64feb73eed62f174997abe6abc453e 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 PART :: 2
 
index 1eb734e527305d281aee504e943ffe622ddcb44d..965b8d6262ab0a21840ddb71ba3ed458c3e81881 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 9fd69352e1f90509f95e74cde090980e7d7f419b..c6861372516a49b6225460d74225925022ffb409 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core
 use core.conv
index bfc23104c541ce869ff8e552ce08630a4be12c01..0e08f584c980bc06735a2d0be6c93794887562ad 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 #load "core/intrinsics/atomics"
 
 use core {*}
index 683159564a428d857794e92bc8998d4882efde14..a744e61fad133629e307d4f5715ddfc282bafe01 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index de302e7744e27d9b0bf88dc4ddf4b4d12845ef96..edaf538adb689994501ea050ad6c07fda8f04887 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 459f032e36b799fcd27ee75444abfe3eb6929612..c6d8e5ba764d0abc7f12c276ed13c67389ed813e 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 6b949e5131dad751ec0910f8b39ba3cb7134a513..8d6e4d89e619f4b91cdde42cdcd41ea016efb65e 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 8a78e2e338b3531260ab267df049e2ac7b1c6434..fd1603986ebc38256615ce25ffa30b466901ef9c 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 28adc09eae49bfb3dbee88c1ff3fc7f8417c23b5..5b6dc99b75c6d0c372d746122f3307819329b5b3 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 9ebc0c95d22ac7e39e2e9e1d9a195468cf863164..ce5e623581997060efc0efb24c1c982ce0a8513a 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 1e470ae78b42effd5bc9bf2a75c0b5e62d0d00f8..68ce1de1a611ed6862da77ab4949153c882301b6 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index d4820a78a744deae08f47f76129f584a223be6ce..6b6485c852bcc8f938e6540d5900e2ebe6a1a91f 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index f373624663540ae02a09b9aa5e6fbcead1648563..aaa91b3be47fbc0b6bd04bc09522a4564e7150ee 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 use core {*}
 
 SomeNamespace :: struct {
index f53026affc7564b1916a4a25ca56c22a13d9005d..2939defe9c396d5ed597b8a90174dc7f2f9b81a4 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index af5d251c09a9b278452c4eb0f22d8c63171f43b6..652b4a23183101b462e383e3740fb55b0c910793 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index a66b3091aa91f8c5255b33cf3b26a8235129892f..80162f03b4625c3644fbe25edcf8ae1dd636afcc 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index d3758e6afdf60f7763ee02ffd4c303b561447fa0..10d27418a5f52ffec65f36f555cd44d2bbc0e6da 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index bc4b684324065266b87f896a71b50c2264334fbb..b9962d38f0c8c89f3ea2f84f3cd45c60a19707cf 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index d8e4c653b594ac5f6a81e5ec014019a493ee3fa2..b2dc9dfc89225519746165a3b0c0e0bd2cacbe71 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 5302c31e970001316f56a08d37ef894ac9ea0724..dff9ba3593178b65b9d84cdcf266b865ac0a4604 100644 (file)
@@ -1,6 +1,6 @@
 package main
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index fdc163682580c4ace344d7de48ee20261d8d7bd6..dfa46e76136c0dc5044865d7675e9b0b653b21dd 100644 (file)
@@ -1,6 +1,6 @@
 package main
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 4fb0a1a1b801fdcf4da240d427fff4ba9e27ce2b..1de27b55d38930245516af93701c7bbf01c3a2ea 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {package, println, printf}
 
index b888294d3662ca6216960d71a475f71da43618a9..33c14b11ced8a843f4b0af7de6a1a644731807cc 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index c45559f5008b48e3040a1b4607d79d589682cd65..17414000bbb9444eeab483c137b06e14289fc939 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 4c4e04200f886d2f177d2017b10dbb694e77d5b6..dcec9b542b10e1d580c3e6e56d6c0957b8aed363 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core
 use core.hash
index 953f9737c00f4b14d8d5d02eba02e54c9bfbbad9..5dd8caedacc104ecc67e4c332c5f4e9c8580457b 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 52963323cedb519cad39605603989bb537ea86eb..f9f99f948401cbcc65d611d9ee8f8c92b579ca83 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {package, *}
 
index 0b3b692214bb22a6cd168c43755a0871d2fbf196..918cc5c6bc79793b1dba5f25dcfc452a4b1bbc23 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 60cd3c67be8f5a64f5b91e831ab5d2275d040cc8..e1d46a19b7b7bf802a04dc9174a9c22c14638451 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {printf, map}
 
index 8063a110d8961c3c7590e0388a08e079f4234a11..5e94952b3f1ce27dcdc4f30b9d71e16e2c8822e5 100644 (file)
@@ -1,6 +1,6 @@
 // This is a needlessly complicated test of some of the newer features with structs.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 40e726c1ba0d0cf685e58ee8bd615c5e146ac1d3..971694d8322bc6f081b41d3dc93299e7a7918de4 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 37c04132fe831ac3d3ca075716385545848f9140..fc40f131a2c4841768aba5b311dcf7391a3231e6 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index fdd15b0e76b583ccb68b892fab80a6a4ae8ace89..0323ebc761d642c4e068262be73a5c5fbd279ded 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core
 use core {println}
index 2cf4da09938a5b1b340996d07957961b9a635c80..c209911a81b398bdef80a8eafd35b32940a16551 100644 (file)
@@ -1,6 +1,6 @@
 // This test does not make a whole ton of sense, but it does thoroughly test the #persist local capability.
 
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 8ee9da74090734fc2093a1bd4ac2546e2bed2ca4..8281ad549c667d59a794a12ea8a3d58fe6ea3b0e 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 use runtime.info
index df466d14a5c530a9af50e857293707f7e7e23e3e..67525943160080665923705a49f1b570ddcdc330 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index e44edcde6a522baac7a52cf2e8dc8c20ba686563..e813bf052091daee111ac23d5716448aeb615b01 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 24e7a6bc5bd00384a281429a4f3b46d05159d698..753f2ae339cf70f6ccb0de00fa32ca6632b9beb8 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index a1cf8b9b988a3460e1a60d9e2df9bdfd266e5cf7..1918c4729ec8afb6882f21d4a2aa0e5981e2639e 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 516c112e7c512c6f93ef42693553676e1517be3e..c629bea20d768a52016b9ed84144cf0d049ef13d 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core
 use core.io
index a35e9396d9ffc6cb91d446a7d5fdeb6d32dee7b2..a940dc8bc2340046f36b0452292e8806bfafd102 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index 84a8ed26fffe1edc89a95989efa1b3ec70169527..0fce1d1cfe77080fe4fbd165b653c53ed9d6271d 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 use core {*}
 
 Person_Vtable :: struct {
index e0fd805172dfd8142d1359d82f2f8ca1f1db3f02..1f18f55fcdfec7a84213a1ba0f6937d8041d2f3f 100644 (file)
@@ -1,4 +1,4 @@
-#load "core/std"
+#load "core/module"
 
 use core {*}
 
index f9994ac45e73657027d55e9ce4aa0673715300c8..125703aa5df60e38d6587a26858bfe2baa26f183 100644 (file)
@@ -1,6 +1,6 @@
 package main
 
-#load "core/std"
+#load "core/module"
 
 use core {*};