diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
| commit | 0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch) | |
| tree | f2e288668decded9276ebc45907f16d651b06f9e /runtime/9p_io.zig | |
| parent | 2ab05b536bc3b063666b5aaab497157adc2a9120 (diff) | |
| parent | bf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff) | |
| download | pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.tar.gz pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.zip | |
integration: a pane's and a view's slot as types, with the regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/9p_io.zig')
| -rw-r--r-- | runtime/9p_io.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/9p_io.zig b/runtime/9p_io.zig index ef4ecfdd..bcb0f81b 100644 --- a/runtime/9p_io.zig +++ b/runtime/9p_io.zig @@ -1109,7 +1109,7 @@ pub fn start(io: std.Io, gpa: std.mem.Allocator, core: *pardes.Pardes) ?*Listene // unreachable: a u32 is at most 10 digits const fallback = std.fmt.bufPrint(&name, "{d}", .{@as(u32, @intCast(libc.getpid()))}) catch unreachable; return listen(io, gpa, core, core.opts.ninep_name, fallback, core.opts.ninep_tcp) catch { - if (refusal.len > 0) core.setMessage(0, refusal) else core.reportError(0, "9p listener", error.ListenFailed); + if (refusal.len > 0) core.setMessage(.at(0), refusal) else core.reportError(.at(0), "9p listener", error.ListenFailed); return null; }; } @@ -2647,7 +2647,7 @@ test "a held read is answered when the log has news, and a flushed one spends no try s.flush(); try heldNow.count(p, 2); pardes.turn.wake(); - p.setMessage(0, "after the flush"); + p.setMessage(.at(0), "after the flush"); pardes.turn.rest(); try heldNow.count(p, 1); pardes.turn.wake(); @@ -2670,7 +2670,7 @@ test "a held read is answered when the log has news, and a flushed one spends no try testing.expectEqual(second, refused.tag); try testing.expectEqualStrings(pardes.ctlfs.e_in_use, refused.result.fail); pardes.turn.wake(); - p.setMessage(0, "while held"); + p.setMessage(.at(0), "while held"); const retry_all = pardes.turn.parked; pardes.turn.rest(); try testing.expect(!retry_all); @@ -2698,9 +2698,9 @@ test "a held read is answered when the log has news, and a flushed one spends no try s.flush(); try heldNow.count(p, 1); pardes.turn.wake(); - p.setMessage(0, "queued one"); - p.setMessage(0, "queued two"); - p.setMessage(0, "queued three"); + p.setMessage(.at(0), "queued one"); + p.setMessage(.at(0), "queued two"); + p.setMessage(.at(0), "queued three"); l.reset(p); pardes.turn.rest(); const cut = try s.settle(); |
