From a75956bb3443aa8aac778d2ff12c42f5ef99e0e9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 18 Nov 2026 20:52:50 -0300 Subject: runtime: main, daemon, upgrade, crash, addon_test, 9p_io, 9p and macos.zig into runtime/ (the reorganisation's tree, step 2a), skill.txt with main.zig, its one reader: module `runtime` (runtime/root.zig) and the core, each naming the other, a product's root (main.zig, macos.zig) a module of its own over both; the files name across by module (`@import("runtime").daemon`, `@import("core").look`), pardes.zig exporting what they name (ctl, edit_cmd, tracy, selection_pipe, and the frontends until they move); core-test and shell-test run each module's test program, so the same tests run (the ledger: every named test of every suite the base's, tui and gui); nothing else changes: frames byte-identical, the same counts (tui core-test 822/963, the one more an anonymous collector) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- runtime/root.zig | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 runtime/root.zig (limited to 'runtime/root.zig') diff --git a/runtime/root.zig b/runtime/root.zig new file mode 100644 index 00000000..86fd9a75 --- /dev/null +++ b/runtime/root.zig @@ -0,0 +1,26 @@ +//! What runs a session: the daemon and a session's link to it, the +//! upgrade, the crash file, `--addon-test`, the 9P listener and client +//! (9p_io) over cloud9's options (9p). Module `runtime`; a product's root +//! (main.zig, macos.zig) sits beside it as a module of its own, naming it +//! and `core`. +pub const daemon = @import("daemon.zig"); +pub const upgrade = @import("upgrade.zig"); +pub const crash = @import("crash.zig"); +pub const addon_test = @import("addon_test.zig"); +pub const ninep_io = @import("9p_io.zig"); +pub const ninep = @import("9p.zig"); + +test { + _ = daemon; + _ = upgrade; + _ = ninep_io; + _ = ninep_io.Client; + _ = ninep; + // main.zig's test block collected the crash file's: a shell's build + // (shell-test); the core without a terminal (core-test) never compiled it. + if (comptime @import("term_options").terminal) _ = crash; + // 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 @import("pardes_config").platform == .gui) _ = @import("core").gui; +} -- cgit v1.3