summaryrefslogtreecommitdiff
path: root/runtime/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 20:52:50 -0300
committerGabriel Schneider <[email protected]>2026-11-18 21:22:58 -0300
commita75956bb3443aa8aac778d2ff12c42f5ef99e0e9 (patch)
tree17547cbf6606c8bd05be313cd8f835cb85d13e57 /runtime/root.zig
parent5b33c88476054fffc1044fff0526f7f0b28563cf (diff)
downloadpardes-a75956bb3443aa8aac778d2ff12c42f5ef99e0e9.tar.gz
pardes-a75956bb3443aa8aac778d2ff12c42f5ef99e0e9.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/root.zig')
-rw-r--r--runtime/root.zig26
1 files changed, 26 insertions, 0 deletions
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;
+}