summaryrefslogtreecommitdiff
path: root/abi
diff options
context:
space:
mode:
Diffstat (limited to 'abi')
-rw-r--r--abi/pardes.h6
-rw-r--r--abi/pardes_addon.h2
-rw-r--r--abi/plain.zig2
-rw-r--r--abi/term.zig6
-rw-r--r--abi/wire.zig18
5 files changed, 17 insertions, 17 deletions
diff --git a/abi/pardes.h b/abi/pardes.h
index c4470569..65ca5c60 100644
--- a/abi/pardes.h
+++ b/abi/pardes.h
@@ -1,7 +1,7 @@
// libpardes — the C ABI the macOS app links against.
//
// Hand-written, and kept honest by a test: build.zig translate-C's this file
-// into the unit-test build, and src/macos.zig asserts every constant and
+// into the unit-test build, and runtime/macos.zig asserts every constant and
// struct layout below against the Zig side (ghostty's trick — see docs/macos.md).
// Change nothing here without running `zig build unit-test -Dplatform=macos`.
//
@@ -27,7 +27,7 @@ extern "C" {
// ---------------------------------------------------------------- frame
-// One rendered cell. Mirrors pardes.Cell (src/pardes.zig) flattened for the
+// One rendered cell. Mirrors pardes.Cell (core/root.zig) flattened for the
// wire.
typedef struct {
// UTF-8 grapheme, `len` bytes. The core caps graphemes at seven bytes; the
@@ -322,7 +322,7 @@ uint32_t pardes_topbar_pane_border_rgb(void);
// Rows the global topbar occupies, and therefore the row index of the FIRST
// pane tagline — the one the rule above joins the topbar band to. Mirrors
-// pardes.TOPBAR_H, and src/macos.zig asserts the two agree.
+// pardes.TOPBAR_H, and runtime/macos.zig asserts the two agree.
#define PARDES_TOPBAR_H 1u
// The active pane's tag row background, for hosts that afford the active
diff --git a/abi/pardes_addon.h b/abi/pardes_addon.h
index 11dcec38..2f5c53de 100644
--- a/abi/pardes_addon.h
+++ b/abi/pardes_addon.h
@@ -25,7 +25,7 @@
* its head's minor, an addon pardes's by api->size.
*
* addons/fake/fake.c implements every function; it is the template. In
- * Zig, src/kinds/addon.zig makes the pa_ops from a struct, and
+ * Zig, abi/addon.zig makes the pa_ops from a struct, and
* addons/snake/snake.zig is a game in it.
*/
#ifndef PARDES_ADDON_H
diff --git a/abi/plain.zig b/abi/plain.zig
index 6ca96fe9..c250de03 100644
--- a/abi/plain.zig
+++ b/abi/plain.zig
@@ -2,7 +2,7 @@
//! (docs/next-terminal.md, Phase 1): a frame's cells, their styles and
//! colours, the pictures over them and a key read. Data that needs
//! nothing else, in a module of its own: the core (surface.zig and
-//! Event.zig, under their old names) and the terminal (src/term/) both
+//! Event.zig, under their old names) and the terminal (core/term/) both
//! import it, and neither imports the other.
const std = @import("std");
/// The terminal as the core sees it: its entries and the records they
diff --git a/abi/term.zig b/abi/term.zig
index de969796..de32a575 100644
--- a/abi/term.zig
+++ b/abi/term.zig
@@ -2,8 +2,8 @@
//! entries (`Ops`) a terminal module gives the core, and the records they
//! take and give. A terminal's state, its replicas' encoder and tracks are
//! handles the core holds and never looks into; what it knows of them it is
-//! told here, as numbers, bytes, text and cells. src/term/term.zig is the
-//! one implementation (ghostty-vt behind it); src/Term.zig is the core's
+//! told here, as numbers, bytes, text and cells. core/term/term.zig is the
+//! one implementation (ghostty-vt behind it); core/Term.zig is the core's
//! side of it.
const std = @import("std");
const plain = @import("plain.zig");
@@ -282,7 +282,7 @@ pub const Peer = struct {
pub const Applied = struct { seq: u32, extra: []const u8 };
/// What the dump keeps of a terminal beside its emulator, by name as every
-/// dump is (src/walk.zig, through the core's `Term.State`).
+/// dump is (core/walk.zig, through the core's `Term.State`).
pub const Parts = struct {
reply: []const u8 = "",
reply_dropped: u32 = 0,
diff --git a/abi/wire.zig b/abi/wire.zig
index d6098325..cf3daf2e 100644
--- a/abi/wire.zig
+++ b/abi/wire.zig
@@ -16,9 +16,9 @@ const config = @import("pardes_config");
/// 22: a PDF's pixel scroll (0x1a) is gone with the core's PDF, the pdf
/// addon's panes scrolled by the wheel as any kind's are;
/// 21: a session's views are `Pardes.views` in its dump and its digest
-/// (src/views.zig), the panes' shares of the others under `shares`;
+/// (core/views.zig), the panes' shares of the others under `shares`;
/// 20: a digest takes a blob of 4 KiB and up (a file's text, a register's,
-/// an undo entry's bytes) by its length, not its bytes (src/walk.zig): a
+/// an undo entry's bytes) by its length, not its bytes (core/walk.zig): a
/// text's revision says what it holds;
/// 19: a client joining again names the view it had in its hello, and a
/// bye says whether it joins again for it (views.away);
@@ -90,7 +90,7 @@ pub const ClientTag = enum(u8) {
hello = 0x01,
bye = 0x02,
ping = 0x03,
- /// A replica's word about a terminal's state (src/term/screen_state.zig): the
+ /// A replica's word about a terminal's state (core/term/screen_state.zig): the
/// delta it holds, or rows it asks for. Opaque here.
screen_ack = 0x04,
/// What is the session's digest, in stream order (a replica checks
@@ -103,7 +103,7 @@ pub const ClientTag = enum(u8) {
want = 0x07,
/// The session's clocks (realtime and monotonic, ns) as the client
/// guessed them for the input that follows: its time, which the step
- /// reads (src/replica.zig).
+ /// reads (core/replica.zig).
stamp = 0x08,
key = 0x10,
@@ -166,26 +166,26 @@ pub const ServerTag = enum(u8) {
refused = 0x02,
/// A ping's value back.
pong = 0x03,
- /// A piece of the join's dump (src/dump.zig): the welcome says how long
+ /// A piece of the join's dump (core/dump.zig): the welcome says how long
/// it is whole.
dump = 0x04,
- /// A unit of the authority's stream (src/replica.zig): its origin, seq,
+ /// A unit of the authority's stream (core/replica.zig): its origin, seq,
/// clocks and tape.
unit = 0x05,
- /// A terminal's delta, or rows asked for (src/term/screen_state.zig), applied
+ /// A terminal's delta, or rows asked for (core/term/screen_state.zig), applied
/// before the next unit. Opaque here.
screen = 0x06,
/// The session's digest (u64le), after every unit before it.
check = 0x07,
/// Part of the join's list of blobs, to a far client: each one's place
- /// in the state, its length and its BLAKE3 hash (src/replica.zig).
+ /// in the state, its length and its BLAKE3 hash (core/replica.zig).
blobs = 0x08,
/// A piece of a far client's stream from here on, zstd-compressed: the
/// messages in it are framed as these are. Opaque here.
zstd = 0x09,
/// A piece of a record's bytes by hash (tape.zig `Big`), before the
/// unit naming it: the hash, the whole's length and this piece's place
- /// (u64le each), then at most 1 MiB of it (src/replica.zig).
+ /// (u64le each), then at most 1 MiB of it (core/replica.zig).
blob = 0x0a,
};