From f9a3179542012ec1a700e2020ac9f616b819f972 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 18 Nov 2026 21:23:22 -0300 Subject: dev: the frontends (dev/tui, dev/gui, the macOS app's Swift and resources in dev/macos), host_io, file_watch, fonts, the lsp client and Scip, Art, jump_trail, glide and vaxis_input into dev/ (the reorganisation's tree, step 2b): module `dev` (dev/root.zig) beside the core and the runtime, each naming the others; the window wired into it, sketchbook's devices imported as `sketchbook` (its `dev` would be ours); pardes.zig keeps its re-exports (host_io, file_watch, glide, fonts) so every caller reads as before; core-test and shell-test run the devices' test program too, so the same tests run (the ledger, tui and gui); nothing else changes: frames byte-identical, replicas and process-test the base's Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- src/fs.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fs.zig') diff --git a/src/fs.zig b/src/fs.zig index d352866e..c249ed6d 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -60,7 +60,7 @@ const source_files = [_]Source{ .{ .path = "src/look.zig", .contents = @embedFile("look.zig") }, .{ .path = "src/9p.zig", .contents = @embedFile("runtime/9p.zig") }, .{ .path = "src/9p_io.zig", .contents = @embedFile("runtime/9p_io.zig") }, - .{ .path = "src/host_io.zig", .contents = @embedFile("host_io.zig") }, + .{ .path = "src/host_io.zig", .contents = @embedFile("dev/host_io.zig") }, .{ .path = "src/config.zig", .contents = @embedFile("config.zig") }, .{ .path = "src/main.zig", .contents = @embedFile("runtime/main.zig") }, .{ .path = "src/builtins.zig", .contents = @embedFile("builtins.zig") }, @@ -804,7 +804,7 @@ pub fn readHost(gpa: std.mem.Allocator, path_z: [:0]const u8, limit: usize) ![]u /// it returned and what the file was before the read: a watch armed over a /// text whose content is that very buffer (file_watch.applyEffect) finds the /// disk the same without reading it again. -pub var last_reads: [8]struct { path: u64 = 0, bytes: [*]const u8 = undefined, len: usize = 0, file: @import("file_watch.zig").Identity = undefined } = @splat(.{}); +pub var last_reads: [8]struct { path: u64 = 0, bytes: [*]const u8 = undefined, len: usize = 0, file: @import("dev").file_watch.Identity = undefined } = @splat(.{}); var last_read: usize = 0; /// A 9P write of an Edit held while its commands run (Namespace.edit_hold). -- cgit v1.3