summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig23
1 files changed, 13 insertions, 10 deletions
diff --git a/core/root.zig b/core/root.zig
index 69ec3ded..a57934a6 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -98,12 +98,12 @@ pub const Host = host_io.Host;
pub const frameMark = tracy.frameMark;
/// The shell this build is for (build.zig's `-Dplatform`).
-pub const platform = @import("pardes_config").platform;
+pub const platform = @import("pardes_options").platform;
-pub const version = @import("pardes_config").version;
-pub const commit: ?[]const u8 = @import("pardes_config").commit;
+pub const version = @import("build_info").version;
+pub const commit: ?[]const u8 = @import("build_info").commit;
-pub const isolated = @import("pardes_isolation").isolated;
+pub const isolated = @import("pardes_options").isolated;
pub const font_picker = platform == .gui or platform == .macos;
@@ -324,7 +324,8 @@ comptime {
}
}
-/// Said at a focus-in when the Host's `newer_build` answers yes (upgrade.zig).
+/// Said by a session's own frontend at its focus-in, when the build at the
+/// path it started from is not its own (upgrade.noticeNewer).
pub const newer_build_words = "a newer pardes is installed: Upgrade (SPC s U) moves this session onto it";
pub const Rect = layout.Rect;
@@ -442,7 +443,7 @@ test {
// A window's build links the window's C (font.c over FreeType and
// HarfBuzz) into each of its programs, and their allocator (ui_malloc
// and the rest) is gui.zig's.
- if (comptime @import("term_options").terminal and platform == .gui) _ = @import("dev").gui;
+ if (comptime @import("pardes_options").terminal and platform == .gui) _ = @import("dev").gui;
}
/// The container-level `var`s core/ may hold (at the top of a file, in a
@@ -457,9 +458,10 @@ const allowed_vars = [_]struct { []const u8, []const u8, []const u8 }{
.{ "Kind.zig", "current", "the kind call in progress, put back at its end (threadlocal)" },
.{ "Kind.zig", "breach", "Debug: the first call over budget, for the addon test tool" },
.{ "Kind.zig", "drawer heap seed_base", "set once by the host at start" },
- .{ "Kind.zig", "ready", "this process's draws done, each keyed by its core, pane and serial" },
+ .{ "Kind.zig", "ready drawn", "this process's draws: those done, each keyed by its core, pane and serial, and the last token given, which no rollback takes back" },
.{ "Names.zig", "dp_rows dp_trace", "the scorer's scratch, written before it is read in one call" },
.{ "Turn.zig", "yield_depth", "this thread's nesting of yields (threadlocal)" },
+ .{ "Term.zig", "writes reloads", "this process's emulators' writes, read across one replay on its thread (the replica engine's one rule), and its reloads' count and time" },
.{ "c_heap.zig", "allocators allocators_len allocators_lock last", "the C heap's registry of allocators and its lookup's memo" },
.{ "c_heap.zig", "test_allocator stateless", "its tests'" },
.{ "config.zig", "other_build addon_sources", "the docs check's data, a test's" },
@@ -613,7 +615,7 @@ const machine_lines = [_]struct { []const u8, usize, []const u8 }{
.{ "FrameStats.zig", 7, "a frame's clock and log: frames are local, never digested" },
.{ "Handover.zig", 29, "a window carried to another process over a socket: the session's host" },
.{ "Kind.zig", 1, "host_io's KindJob: a kind's job is the host's" },
- .{ "Messages.zig", 6, "the message clock, read through tape.value(.clock); PARDES_NOTIME, the tests' (a step's read of the environment: set on one side only it would diverge)" },
+ .{ "Messages.zig", 6, "the message clock, read through tape.value(.clock); PARDES_NOTIME, the tests', read by a host's `stamp` alone (between steps, or in a host's call), whose text the tape carries in the setMessage it makes: never a step's" },
.{ "Output.zig", 2, "the fonts module (Fonts lists them under tape.site(.fonts)) and the build's version line" },
.{ "Stream.zig", 14, "the disk search's worker: it runs off the step and its batches are inputs" },
.{ "builtins.zig", 2, "Mount's probe (tape.site(.probe)) and Term's shell check (tape.site(.shell))" },
@@ -744,12 +746,13 @@ const kept_out = [_]struct { []const u8, []const u8, []const u8 }{
.{ "panes.zig views.zig", "pan", "written by steps only (sync, a view unparked) from the pane and its terminal" },
.{ "File.zig", "cap line_starts line_cap", "the text's line index, of its bytes" },
.{ "File.zig", "highlights highlight_start syntax_dirty", "how a text looks, painted by frames: read by frames, and by a query's rows for colours only (out of their digest)" },
- .{ "File.zig", "context", "the declarations of the text at a revision: found in sync (refreshContext), by a parse's answer (a step) or a dump's load" },
+ .{ "File.zig", "allocator", "ContextCache's: what its declarations were made with, the parse's or a load's (a machine's handle, no state)" },
+ .{ "File.zig", "declarations", "ContextCache's: the text's at its revision (dumped, digested), parsed again from the text at a load" },
.{ "File.zig", "node_tree node_tree_revision node_tree_edits node_history", "the parse of the text at its revision, made by the first key that walks it" },
.{ "File.zig", "tables", "the whole text's, read at once by whoever asks first (Tables.ensure): no reading under way that a frame could move" },
.{ "Text.zig", "room", "a buffer's capacity" },
.{ "Kind.zig", "ops st gpa arena plain file opened reloads jobs record", "the kind's code and memory here: a plain kind's block is in the copy, and its state hash is checked at every call (Kind.Call.end)" },
- .{ "Kind.zig", "thumb_at thumb_span pointer painted over used draws", "a frame's: written by a paint; `painted` is read by a tick of a kind that is not plain, whose calls are the authority's alone" },
+ .{ "Kind.zig", "thumb_at thumb_span pointer painted over used", "a frame's: written by a paint; `painted` is read by a tick of a kind that is not plain, whose calls are the authority's alone" },
.{ "Places.zig", "ticks ticks_gen re", "the rail's ticks, made again when the places move (`gen`), and the compiled pattern, of the pattern" },
.{ "Plumb.zig", "parsed parsed_arena", "the rules parsed, of their text" },
.{ "Stream.zig", "parse_ns paint paint_retired paint_count ahead ahead_for painted_ahead painted_on_loop ahead_seen ahead_ask", "the workers' paints and timings: how a text looks, and numbers" },