summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--build.zig90
-rw-r--r--exercises/060_floats.zig4
-rw-r--r--exercises/065_builtins2.zig2
-rw-r--r--exercises/071_comptime6.zig2
-rw-r--r--exercises/082_anonymous_structs3.zig2
5 files changed, 51 insertions, 49 deletions
diff --git a/build.zig b/build.zig
index 1cfa098..59ec8a1 100644
--- a/build.zig
+++ b/build.zig
@@ -418,47 +418,48 @@ const exercises = [_]Exercise{
.main_file = "083_anonymous_lists.zig",
.output = "I say hello!",
},
- .{
- .main_file = "084_async.zig",
- .output = "foo() A",
- .hint = "Read the facts. Use the facts.",
- .@"async" = true,
- },
- .{
- .main_file = "085_async2.zig",
- .output = "Hello async!",
- .@"async" = true,
- },
- .{
- .main_file = "086_async3.zig",
- .output = "5 4 3 2 1",
- .@"async" = true,
- },
- .{
- .main_file = "087_async4.zig",
- .output = "1 2 3 4 5",
- .@"async" = true,
- },
- .{
- .main_file = "088_async5.zig",
- .output = "Example Title.",
- .@"async" = true,
- },
- .{
- .main_file = "089_async6.zig",
- .output = ".com: Example Title, .org: Example Title.",
- .@"async" = true,
- },
- .{
- .main_file = "090_async7.zig",
- .output = "beef? BEEF!",
- .@"async" = true,
- },
- .{
- .main_file = "091_async8.zig",
- .output = "ABCDEF",
- .@"async" = true,
- },
+ // disabled because of https://github.com/ratfactor/ziglings/issues/163
+ // .{
+ // .main_file = "084_async.zig",
+ // .output = "foo() A",
+ // .hint = "Read the facts. Use the facts.",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "085_async2.zig",
+ // .output = "Hello async!",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "086_async3.zig",
+ // .output = "5 4 3 2 1",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "087_async4.zig",
+ // .output = "1 2 3 4 5",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "088_async5.zig",
+ // .output = "Example Title.",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "089_async6.zig",
+ // .output = ".com: Example Title, .org: Example Title.",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "090_async7.zig",
+ // .output = "beef? BEEF!",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "091_async8.zig",
+ // .output = "ABCDEF",
+ // .@"async" = true,
+ // },
};
/// Check the zig version to make sure it can compile the examples properly.
@@ -711,9 +712,10 @@ const ZiglingStep = struct {
zig_args.append("build-exe") catch unreachable;
// Enable the stage 1 compiler if using the async feature
- if (self.exercise.@"async") {
- zig_args.append("-fstage1") catch unreachable;
- }
+ // disabled because of https://github.com/ratfactor/ziglings/issues/163
+ // if (self.exercise.@"async") {
+ // zig_args.append("-fstage1") catch unreachable;
+ // }
if (builder.color != .auto) {
zig_args.append("--color") catch unreachable;
diff --git a/exercises/060_floats.zig b/exercises/060_floats.zig
index e13a216..8ba51db 100644
--- a/exercises/060_floats.zig
+++ b/exercises/060_floats.zig
@@ -1,7 +1,7 @@
//
// Zig has support for IEEE-754 floating-point numbers in these
-// specific sizes: f16, f32, f64, f128. Floating point literals
-// may be written in scientific notation:
+// specific sizes: f16, f32, f64, f80, and f128. Floating point
+// literals may be written in scientific notation:
//
// const a1: f32 = 1200.0; // 1,200
// const a2: f32 = 1.2e+3; // 1,200
diff --git a/exercises/065_builtins2.zig b/exercises/065_builtins2.zig
index a0f9160..7d3e770 100644
--- a/exercises/065_builtins2.zig
+++ b/exercises/065_builtins2.zig
@@ -100,7 +100,7 @@ pub fn main() void {
//
// pub const StructField = struct {
// name: []const u8,
- // field_type: type,
+ // type: type,
// default_value: anytype,
// is_comptime: bool,
// alignment: comptime_int,
diff --git a/exercises/071_comptime6.zig b/exercises/071_comptime6.zig
index f764590..7723291 100644
--- a/exercises/071_comptime6.zig
+++ b/exercises/071_comptime6.zig
@@ -41,7 +41,7 @@ pub fn main() void {
const fields = @typeInfo(Narcissus).Struct.fields;
??? {
- if (field.field_type != void) {
+ if (field.type != void) {
print(" {s}", .{field.name});
}
}
diff --git a/exercises/082_anonymous_structs3.zig b/exercises/082_anonymous_structs3.zig
index e5c6839..6760ff3 100644
--- a/exercises/082_anonymous_structs3.zig
+++ b/exercises/082_anonymous_structs3.zig
@@ -96,7 +96,7 @@ fn printTuple(tuple: anytype) void {
//
// pub const StructField = struct {
// name: []const u8,
- // field_type: type,
+ // type: type,
// default_value: anytype,
// is_comptime: bool,
// alignment: comptime_int,