summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig15
1 files changed, 9 insertions, 6 deletions
diff --git a/core/root.zig b/core/root.zig
index a57934a6..45948189 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -600,10 +600,13 @@ test "nothing of a core is a process global: every container-level var in core/
/// The lines of each file of core/ that name the machine outside a test:
/// `std.c.`, `libc.`, `std.posix.`, `getenv`, std.Io's File, Dir, net and
-/// Threaded (a path's text, `Dir.path`, and `max_path_bytes` are none), and
-/// `@import("dev")` and `@import("runtime")`, by file, how many and why. A
-/// step's read of its own machine with no tape diverges a far client, and
-/// the soak (one machine) never sees it: a new line here makes someone look.
+/// Threaded (a path's text, `Dir.path`, and `max_path_bytes` are none),
+/// `@import("dev")` and `@import("runtime")`, and the host's table
+/// (`host.vtable`, `host.ctx`: only the tape's own lines call the host, a
+/// call made past it is no call a replica replays), by file, how many and
+/// why. A step's read of its own machine with no tape diverges a far
+/// client, and the soak (one machine) never sees it: a new line here makes
+/// someone look.
/// The count is a file's, so it cannot tell a step's read from its host
/// half's; the reason says which the file's are.
const machine_lines = [_]struct { []const u8, usize, []const u8 }{
@@ -633,7 +636,7 @@ const machine_lines = [_]struct { []const u8, usize, []const u8 }{
.{ "rollback.zig", 1, "a test helper's directory" },
.{ "root.zig", 4, "dev's modules re-exported (host_io, file_watch, glide, fonts)" },
.{ "selection_pipe.zig", 14, "a pipe's child processes and their files: the host's `pipe` entry" },
- .{ "tape.zig", 11, "the tape's own files and host_io's types: a recording, a replay; the `io` a tape hands a site's body" },
+ .{ "tape.zig", 12, "the tape's own files and host_io's types: a recording, a replay; the `io` a tape hands a site's body; which host the core holds (noteHost), the one file that names the host's table" },
.{ "lsp/lsp.zig", 1, "the language server's client (dev): the host's `lsp` entry" },
.{ "ninep/ctl.zig", 1, "the session's pid in a 9P read: the session's server" },
.{ "ninep/events.zig", 2, "the 9P event log's clock: the session's server" },
@@ -645,7 +648,7 @@ const machine_lines = [_]struct { []const u8, usize, []const u8 }{
/// The lines of `src` that name the machine (`machine_lines`'s rules).
fn machineLines(src: []const u8, gpa: std.mem.Allocator, out: *std.ArrayList(usize)) !void {
- const names = [_][]const u8{ "std.c.", "libc.", "std.posix.", "getenv", "std.Io.File", "std.Io.Dir", "std.Io.net", "std.Io.Threaded", "Io.File", "Io.Dir", "Io.net", "Io.Threaded" };
+ const names = [_][]const u8{ "std.c.", "libc.", "std.posix.", "getenv", "std.Io.File", "std.Io.Dir", "std.Io.net", "std.Io.Threaded", "Io.File", "Io.Dir", "Io.net", "Io.Threaded", "host.vtable", "host.ctx" };
const pure = [_][]const u8{ "std.Io.Dir.path.", "Io.Dir.path.", "std.Io.Dir.max_path_bytes", "Io.Dir.max_path_bytes" };
var open: std.ArrayList(u8) = .empty;
defer open.deinit(gpa);