summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-31 09:02:18 -0300
committerGabriel Schneider <[email protected]>2026-10-31 09:02:18 -0300
commit6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5 (patch)
tree0809839cacd93451df22563271d0c07fd2bafdbd /src/pardes.zig
parenta479792a1ab2b593642d7f648194bfa23ce01dba (diff)
downloadpardes-6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5.tar.gz
pardes-6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5.zip
Enable native macOS replica sockets and repair platform validation
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index edab4a58..e14e9273 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -2872,7 +2872,7 @@ test "Pet command is SDL-only optional and validates its argument" {
try std.testing.expectEqual(.off, p.settings.pet);
if (comptime platform != .gui) {
// A terminal's view has the word and takes it not.
- try std.testing.expect(p.executeBuiltinLine(p.active, "Pet cat"));
+ try std.testing.expectEqual(@hasField(Builtin, "Pet"), p.executeBuiltinLine(p.active, "Pet cat"));
try std.testing.expectEqual(.off, p.settings.pet);
return;
}
@@ -4762,19 +4762,20 @@ pub const Pardes = struct {
pub const replica = .{
.local = .{
// A frame, and the animations and timings that make it.
- "surface", "presentation", "frames", "chrome_animation", "lifts", "lift_serials",
- "cursor_glide", "cursor_view", "cursor_crossing", "cursor_held", "frame_arena", "scratch",
- "needs_frame", "present_skipped", "shell_continuous", "native_image_patches",
- "echo",
+ "surface", "presentation", "frames", "chrome_animation", "lifts", "lift_serials",
+ "cursor_glide", "cursor_view", "cursor_crossing", "cursor_held", "frame_arena", "scratch",
+ "needs_frame", "present_skipped", "shell_continuous", "native_image_patches", "echo",
// Drained by every pump before its digest; a replica's queues
// are its own.
- "effects", "effects_head", "effects_len", "in_q", "in_head", "in_len",
+ "effects",
+ "effects_head", "effects_len", "in_q", "in_head", "in_len",
// The views not live: written whenever one goes out, so the
// live one's slot is stale (views.zig).
- "parked", "undrawn",
+ "parked",
+ "undrawn",
// How this process was started, and the last dump it made for
// its host to write: a session loaded elsewhere has its own.
- "opts", "dump_out",
+ "opts", "dump_out",
},
.derived = .{ "shell_rows", "diff_output", "locations_cache", "retired_panes", "tty_filter_palette", "body_chrome" },
// The host's handles, the 9P server's fids and log, the store file