From b2d341d3401964f5d1bdde74cd3335ee5da13226 Mon Sep 17 00:00:00 2001 From: Tomasz Polgrabia Date: Tue, 11 Mar 2025 10:08:44 +0100 Subject: [PATCH] Updating backup files list + zig build for version 0.14.0 --- .gitignore | 5 ++++- 2024/10/golang_webserver_demo1/main.go | 6 +++--- current/algorithms/callingc_zig/build.zig | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index de8be27..eba4c17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ output-vagrant *~ +*.old +*.old.* +*.bak .git .vagrant .secret @@ -7,4 +10,4 @@ output-vagrant .idea # test .gradle -build \ No newline at end of file +build diff --git a/2024/10/golang_webserver_demo1/main.go b/2024/10/golang_webserver_demo1/main.go index da9f8b3..33a79b3 100644 --- a/2024/10/golang_webserver_demo1/main.go +++ b/2024/10/golang_webserver_demo1/main.go @@ -26,10 +26,10 @@ func main() { return } - for i := 0; i < len(dirs); i++ { + for _, dir := range dirs { m := make(map[string]string) - m["name"] = dirs[i].Name() - if dirs[i].IsDir() { + m["name"] = dir.Name() + if dir.IsDir() { m["dir"] = "yes" } else { m["dir"] = "no" diff --git a/current/algorithms/callingc_zig/build.zig b/current/algorithms/callingc_zig/build.zig index 82b816c..56ced37 100644 --- a/current/algorithms/callingc_zig/build.zig +++ b/current/algorithms/callingc_zig/build.zig @@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "callingc", .root_source_file = b.path("src/callingc.zig"), - .target = b.host, + .target = b.graph.host, .optimize = b.standardOptimizeOption(.{}), }); exe.addIncludePath(b.path("c-src"));