From 335a78f8f5ef8b86922dc241422acb033e0b3b2a Mon Sep 17 00:00:00 2001 From: Nuno Mendes <98030270+nm-remarkable@users.noreply.github.com> Date: Sun, 15 Sep 2024 20:14:49 +0200 Subject: 108: Add a exercise for a labeled switch --- build.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 0ddc23f..06d6483 100644 --- a/build.zig +++ b/build.zig @@ -1197,6 +1197,12 @@ const exercises = [_]Exercise{ \\Successfully Read 18 bytes: It's zigling time! , }, + .{ + .main_file = "108_labeled_switch.zig", + .output = + \\The pull request has been merged + , + }, .{ .main_file = "999_the_end.zig", .output = -- cgit v1.2.3 From 798bb403963f15028db7d0325d93ab1af6dde684 Mon Sep 17 00:00:00 2001 From: Nuno Mendes <98030270+nm-remarkable@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:34:35 +0200 Subject: update zig version in build and readme --- README.md | 5 +++-- build.zig | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'build.zig') diff --git a/README.md b/README.md index d33754c..6d15f9f 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,8 @@ that if you update one, you may need to also update the other. ### Version Changes -Version-0.14.0-dev.1224 +Version-0.14.0-dev.1575 +* *2024-09-16* zig 0.14.0-dev.1575 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) * *2024-09-02* zig 0.14.0-dev.1409 - several changes in std.builtin, see [#21225](https://github.com/ziglang/zig/pull/21225) * *2024-08-04* zig 0.14.0-dev.1224 - several changes in build system, see [#21115](https://github.com/ziglang/zig/pull/21115) * *2024-08-04* zig 0.14.0-dev.839 - several changes in build system, see [#20580](https://github.com/ziglang/zig/pull/20580), [#20600](https://github.com/ziglang/zig/issues/20600) @@ -229,7 +230,7 @@ Zig Core Language * [X] Bit manipulation * [X] Working with C * [X] Threading -* [ ] Labeled switch (#21257) +* [x] Labeled switch Zig Standard Library diff --git a/build.zig b/build.zig index 06d6483..dbd08d5 100644 --- a/build.zig +++ b/build.zig @@ -15,7 +15,7 @@ const print = std.debug.print; // 1) Getting Started // 2) Version Changes comptime { - const required_zig = "0.14.0-dev.1409"; + const required_zig = "0.14.0-dev.1575"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { -- cgit v1.2.3 From d9ce18631d160a011a64bbdea19b64a2fd65a523 Mon Sep 17 00:00:00 2001 From: Nuno Mendes <98030270+nm-remarkable@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:44:36 +0200 Subject: downgrade zig version to eowyn version It is just 2 days behind so all features are already present for the new labeled switch test --- README.md | 4 ++-- build.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'build.zig') diff --git a/README.md b/README.md index 6d15f9f..eb3036a 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,8 @@ that if you update one, you may need to also update the other. ### Version Changes -Version-0.14.0-dev.1575 -* *2024-09-16* zig 0.14.0-dev.1575 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) +Version-0.14.0-dev.1573 +* *2024-09-16* zig 0.14.0-dev.1573 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) * *2024-09-02* zig 0.14.0-dev.1409 - several changes in std.builtin, see [#21225](https://github.com/ziglang/zig/pull/21225) * *2024-08-04* zig 0.14.0-dev.1224 - several changes in build system, see [#21115](https://github.com/ziglang/zig/pull/21115) * *2024-08-04* zig 0.14.0-dev.839 - several changes in build system, see [#20580](https://github.com/ziglang/zig/pull/20580), [#20600](https://github.com/ziglang/zig/issues/20600) diff --git a/build.zig b/build.zig index dbd08d5..8041e07 100644 --- a/build.zig +++ b/build.zig @@ -15,7 +15,7 @@ const print = std.debug.print; // 1) Getting Started // 2) Version Changes comptime { - const required_zig = "0.14.0-dev.1575"; + const required_zig = "0.14.0-dev.1573"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { -- cgit v1.2.3