From 9b12a6b2823c36536026530ddc40c9837bb9a529 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 12 Feb 2024 13:42:21 +0300 Subject: [PATCH] Fix compilation --- build.zig | 2 +- src/main.zig | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.zig b/build.zig index 0c45295..175bc4f 100644 --- a/build.zig +++ b/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); -pub fn build(b: *std.build.Builder) void { +pub fn build(b: *std.Build) void { // Standard target options allows the person running `zig build` to choose // what target to build for. Here we do not override the defaults, which // means any target is allowed, and the default is native. Other options diff --git a/src/main.zig b/src/main.zig index f728b06..9727567 100644 --- a/src/main.zig +++ b/src/main.zig @@ -253,8 +253,8 @@ pub fn checkTermSz() void { } /// Part II - Show terminal capabilities -/// -/// Since user terminals vary in capabilities, handy to have a screen that renders ACTUAL colors +/// +/// Since user terminals vary in capabilities, handy to have a screen that renders ACTUAL colors /// and exercises various terminal commands prior to DOOM fire. /// pub fn showTermSz() void { @@ -433,7 +433,7 @@ pub fn showTermCap() void { } /// DOOM Fire -/// Slowest - raw emit() +/// Slowest - raw emit() /// Slower - raw emit() + \n /// Below - moderately faster @@ -577,7 +577,7 @@ pub fn showDoomFire() void { defer freeBuf(); //when there is an ez way to poll for key stroke...do that. for now, ctrl+c! - var ok = true; + const ok = true; while (ok) { //update fire buf