From 39886b26483128f4bc4c85c4e6cf0f7a7acf04ed Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:55:47 -0300 Subject: ninep: Messages is made with a literal, not its one-line init; writePager's two hosted-and-local guards are one; events' shownAs drops an alias of its argument and flag_expansion, which nothing reads, goes; doc comments sit on their own functions and fields again (noteError's, notePath's, writeEvent's, expandAt's in four fragments; Namespace's late_failure, batch and header_rewrite, whose key is a column's serial) and pane.zig's say what a name takes, blanks and controls included, as the reference does Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/fs.zig | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/fs.zig') diff --git a/src/fs.zig b/src/fs.zig index 4b7bba31..d8633593 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -18,8 +18,8 @@ const Req = tree.Req; const Reply = tree.Reply; const E = tree.E; -/// The served README; tree.zig answers it. -/// The tree's README; a build that embeds no sources lists no src/. +/// The tree's README, which tree.zig answers; a build that embeds no +/// sources lists no src/. pub const help = help: { const raw = @embedFile("fs-help.txt"); if (limits.embedded_sources) break :help raw; @@ -1353,11 +1353,8 @@ pub const Namespace = struct { refused: bool = false, failure: [256]u8 = undefined, failure_len: u16 = 0, - /// What went wrong performing a write's effects after it was answered - /// by the core (a save the host could not do): the 9P write, which - /// waits for them, fails with it (src/9p_io.zig). /// A header tag truncated by an open not yet released (ninep/cols.zig): - /// 0 the workspace's, a column's its index + 1; and whether the newline + /// 0 the workspace's, a column's its serial; and whether the newline /// that ended its last write is held back. header_rewrite: ?u32 = null, /// A column's or the workspace's tag truncated, not yet done (as a @@ -1374,6 +1371,9 @@ pub const Namespace = struct { said: [256]u8 = undefined, said_len: u16 = 0, said_at: u32 = 0, + /// What went wrong performing a write's effects after it was answered + /// by the core (a save the host could not do): the 9P write, which + /// waits for them, fails with it (src/9p_io.zig). late_failure: [256]u8 = undefined, late_failure_len: u16 = 0, /// A 9P write asked a language server something: the answer count it @@ -1402,10 +1402,6 @@ pub const Namespace = struct { /// The whole text of the newest counted log record, hashed: its record /// may be cut, and a repeat is only the same whole text again. log_full_hash: u64 = 0, - /// Writes one open made in a row into one place of a pane's body (an - /// append to `body`, an insert at `data`'s address), held and put in - /// as one edit when anything else comes (ninep/pane.zig flushBatch): a - /// 10 MB write in 8 KB pieces is one copy and one undo step, not 1280. /// The text of /pager opens closed before a read put it in, each with /// its +Pager's serial, for the editor's step to put in (ctl.fillPager): /// a close through a mount may not wait for the editor to be quiet, @@ -1416,6 +1412,10 @@ pub const Namespace = struct { /// (tree.runClosedLines): a close is answered at once, for the same /// reason as `pages`. closed_lines: std.ArrayList(struct { node: u64, bytes: std.ArrayList(u8) }) = .empty, + /// Writes one open made in a row into one place of a pane's body (an + /// append to `body`, an insert at `data`'s address), held and put in + /// as one edit when anything else comes (ninep/pane.zig flushBatch): a + /// 10 MB write in 8 KB pieces is one copy and one undo step, not 1280. batch: struct { serial: u32 = 0, node: u64 = 0, -- cgit v1.3