summaryrefslogtreecommitdiff
path: root/src/esp32p4
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-21 14:35:15 -0300
committerGabriel Schneider <[email protected]>2026-10-22 10:03:15 -0300
commitbc3d18d27f9fc1155db7fac3946c4d38774f9e65 (patch)
tree9178ce95952797f8a78b16c2b805e53368efb35a /src/esp32p4
parent1ecb9b720840ea8e4753823fa8cddcf5d6a3a4d2 (diff)
downloadpardes-bc3d18d27f9fc1155db7fac3946c4d38774f9e65.tar.gz
pardes-bc3d18d27f9fc1155db7fac3946c4d38774f9e65.zip
Build with Zig 0.17
ghostty, libvaxis and uucode move to ghostty's 0.17 pins, cloud9 to its 0.17 main, SDL to castholm's release-3.4.x (3.4.18), zstbi and tree-sitter to forks with 0.17 build files (see build.zig.zon). A bare zig build copies the binaries into ~/.local/bin (-Dhome-install=false leaves it out): 0.17 keeps the prefix from build scripts. A terminal's edited copy goes when the program clears the screen. tinywin.snap is gone; perf baselines are re-recorded. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/esp32p4')
-rw-r--r--src/esp32p4/input_rescue.zig2
-rw-r--r--src/esp32p4/selftest.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/esp32p4/input_rescue.zig b/src/esp32p4/input_rescue.zig
index ba6974d2..d7556d46 100644
--- a/src/esp32p4/input_rescue.zig
+++ b/src/esp32p4/input_rescue.zig
@@ -245,7 +245,7 @@ test "a long transmit does not lose the input that arrives during it" {
defer port.sent.deinit(std.testing.allocator);
var ring: Ring = .{};
- const frame = "\x1b[1;1H" ++ "x" ** 400;
+ const frame = "\x1b[1;1H" ++ &@as([400]u8, @splat('x'));
try std.testing.expectEqual(@as(u32, 0), pump(&port, &ring, frame, 1_000_000));
// Every output byte went out, in order.
diff --git a/src/esp32p4/selftest.zig b/src/esp32p4/selftest.zig
index 97b43059..19b71e90 100644
--- a/src/esp32p4/selftest.zig
+++ b/src/esp32p4/selftest.zig
@@ -270,7 +270,7 @@ export fn zig_main() noreturn {
const typed = "the quick brown fox jumps over the lazy dog, and then some more besides";
var port: FakePort = .{ .tx_cap = 2, .incoming = typed };
var ring: input_rescue.Ring = .{};
- const frame = "\x1b[1;1H" ++ "x" ** 300;
+ const frame = "\x1b[1;1H" ++ &@as([300]u8, @splat('x'));
const abandoned = input_rescue.pump(&port, &ring, frame, 1_000_000);
check("the frame went out whole", abandoned == 0 and port.sent == frame.len);