diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 22:03:14 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 22:23:51 -0300 |
| commit | 99f5b10eccd95aa0066ea6fe6bb75f367ab56a47 (patch) | |
| tree | 813596ea84318a7bae4fd7416ba463de8e3b7107 /dev | |
| parent | 92d553123673376adf6126ab90d49a22c5b833d2 (diff) | |
| download | pardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.tar.gz pardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.zip | |
core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/gui/gui.zig | 4 | ||||
| -rw-r--r-- | dev/macos/Info.plist | 2 | ||||
| -rw-r--r-- | dev/macos/Sources/AppDelegate.swift | 4 | ||||
| -rw-r--r-- | dev/macos/Sources/PardesView.swift | 8 | ||||
| -rw-r--r-- | dev/tui/tui.zig | 6 |
5 files changed, 12 insertions, 12 deletions
diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig index 595e867d..b7698015 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -1350,7 +1350,7 @@ const OwnView = struct { /// `pardes-gui --attach=<where>:<session>`: the window, made as a session's /// is, a replica client of that session (docs/next-daemon.md, "Phase 6: GUI /// replica notes"). Its own core, loaded from the session's dump, applies -/// its input at once (src/replica.zig) and draws its own view; the +/// its input at once (core/replica.zig) and draws its own view; the /// session's units are the truth it rolls back to. The tty's `runClient`, with /// a window for a terminal. fn clientSession(init: std.process.Init, g: *Gui, opts_in: pardes.Options, test_mode: bool, to: Dial) !void { @@ -2467,7 +2467,7 @@ const Shell = struct { upgrade_asked: ?u8 = null, /// This window a replica client of a session elsewhere (`runClient`). client: ?*Client = null, - /// The session's replica clients (src/replica.zig), on sockets: views + /// The session's replica clients (core/replica.zig), on sockets: views /// of their own with no window here. peers: replica.Peers = .{}, /// This wait took only a replica's post (its input, its join): the pump diff --git a/dev/macos/Info.plist b/dev/macos/Info.plist index 3cb2e488..c4141826 100644 --- a/dev/macos/Info.plist +++ b/dev/macos/Info.plist @@ -18,7 +18,7 @@ <string>3</string> <!-- No extension: Launch Services appends .icns and looks in Contents/Resources, where build.zig installs the pardes.icns - src/macos/icon.swift draws. Without this key the Dock shows the blank + dev/macos/icon.swift draws. Without this key the Dock shows the blank generic app even though the icon is sitting right there in the bundle. --> <key>CFBundleIconFile</key> <string>pardes</string> diff --git a/dev/macos/Sources/AppDelegate.swift b/dev/macos/Sources/AppDelegate.swift index dbc0fbc9..767d3766 100644 --- a/dev/macos/Sources/AppDelegate.swift +++ b/dev/macos/Sources/AppDelegate.swift @@ -423,7 +423,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, PardesViewDelegate { } // Look's operand is the whole tail of the line (executeBuiltinLine in - // src/pardes.zig splits on the first space and trims the rest), so a path + // core/root.zig splits on the first space and trims the rest), so a path // with spaces in it needs no quoting and must not get any — quotes would // become part of the filename. private func look(_ path: String) { run("Look \(path)") } @@ -558,7 +558,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, PardesViewDelegate { // Exec did something, so it gets .generic, the definite tap of a // committed action; Look went somewhere, so it gets .alignment, the // lighter detent AppKit uses when a dragged guide snaps into place. - // Same distinction the core draws in Haptic (src/pardes.zig). + // Same distinction the core draws in Haptic (core/root.zig). // // No capability check on purpose. perform() is a silent no-op on a Mac // with no Force Touch trackpad and when the user has turned feedback diff --git a/dev/macos/Sources/PardesView.swift b/dev/macos/Sources/PardesView.swift index 23cd0f78..11818e10 100644 --- a/dev/macos/Sources/PardesView.swift +++ b/dev/macos/Sources/PardesView.swift @@ -2,7 +2,7 @@ // CoreGraphics pass per frame back. // // This file keeps no model of the screen. The core owns the grid and hands it -// over whole through src/macos/pardes.h, so everything here is translation, and +// over whole through abi/pardes.h, so everything here is translation, and // the only state worth holding is the font metrics — expensive to measure and // replaced only by Font/TaglineSize/zoom — plus the gesture state remembered // between events: which button a click started with, and how hard it is being @@ -79,7 +79,7 @@ enum Trackpad { static let forceClickButton: pardes_mouse_button_e = PARDES_MOUSE_RIGHT } -// Matches bg_default/fg_default in src/gui/gui.zig. Two shells render the +// Matches bg_default/fg_default in dev/gui/gui.zig. Two shells render the // same core; if these drift, comparing // a screenshot across backends stops meaning anything. let pardesDefaultFG: UInt32 = 0xCC_CC_CC @@ -162,7 +162,7 @@ private func resolve( var bg = decodeColor(cell.bg, ground) // The block cursor is a second reverse, so a cell that is already reversed // cancels back to normal underneath it. Same rule as emitInstance in - // src/gui/gui.zig; the two must not drift. + // dev/gui/gui.zig; the two must not drift. var reverse = block if cell.attrs & UInt16(PARDES_ATTR_REVERSE) != 0 { reverse = !reverse } if reverse { swap(&fg, &bg) } @@ -2537,7 +2537,7 @@ final class PardesView: NSView { } /// What the trackpad actually delivered, under PARDES_LOG — the same - /// variable the Zig side gates its logger on (src/macos.zig). + /// variable the Zig side gates its logger on (runtime/macos.zig). /// /// This is not scaffolding left behind. Which events a trackpad produces is /// decided by the hardware and by four different System Settings switches diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index df2d0016..142e56bf 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -661,7 +661,7 @@ fn linkReader(gpa: std.mem.Allocator, fd: posix.fd_t, rest: *replica.Framer, loo /// `pardes --attach=<socket>:<session>` (and `<host>:<session>`, through /// ssh, main.zig): this terminal a replica client of a session elsewhere /// (docs/next-daemon.md, "Phase 5 part B notes"). Its own core, loaded -/// from the session's dump, applies its keys at once (src/replica.zig); +/// from the session's dump, applies its keys at once (core/replica.zig); /// the session's units are the truth it rolls back to. Its own view of the /// session is drawn here, as the session draws its terminals'. pub fn runClient(init: std.process.Init, opts: pardes.Options, path: []const u8, session: []const u8, far_link: bool) !void { @@ -1242,7 +1242,7 @@ const Shell = struct { upgrade_asked: ?u8 = null, /// Its pty readers stopped for it: their end of file is not a shell's. upgrading: bool = false, - /// The session's replica clients (src/replica.zig), on sockets. + /// The session's replica clients (core/replica.zig), on sockets. peers: replica.Peers = .{}, /// This wait took only a replica's post (its input, its join): the /// pump after it reads no new time, so it moves nothing the replicas' @@ -1590,7 +1590,7 @@ const Shell = struct { // an RTT later). // Detached, its clients' echo is the frame's after an input: what a // flood says after that goes a unit a frame (their own echo is - // predicted, src/echo.zig), not a unit and a delta a read for a second. + // predicted, core/echo.zig), not a unit and a delta a read for a second. const echo_ns: u64 = if (s.detached()) pardes.frame_ns else std.time.ns_per_s; while (!paced and s.output_seen and !s.input_seen and !s.core.quit and s.test_clock == null) { if (s.input_ns > s.drawn_ns) break; |
