From 6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 31 Oct 2026 09:02:18 -0300 Subject: Enable native macOS replica sockets and repair platform validation --- src/pardes.zig | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/pardes.zig') 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 -- cgit v1.3