From 3f1533813b6692a736251e4d467a7f108229ddee Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 11:40:11 -0300 Subject: targets: the DOM web shell goes (src/web.zig and src/web/, its harnesses web_harness, web_snapshot, web_driver_test and web-snapshots/, tools/web_fixture.py, -Dplatform=web, -Ddump, and the web, web-harness, web-snap, web-e2e and web-driver-test steps), and with it what only a freestanding build needed: `hosted` and every guard on it (every build has a host now), memory's stack-fallback arenas and reduced_target sizes, the emscripten main, the tree-sitter libc shim and the stb stub, lsp's has_client, the web arms of the platform switches (-Dplatform is tui, gui or macos); the macOS files pass zig ast-check; docs/web.md is a paragraph on what it was Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/macos/Sources/PardesView.swift | 4 ++-- src/macos/pardes.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/macos') diff --git a/src/macos/Sources/PardesView.swift b/src/macos/Sources/PardesView.swift index 4ea4475a..23cd0f78 100644 --- a/src/macos/Sources/PardesView.swift +++ b/src/macos/Sources/PardesView.swift @@ -79,8 +79,8 @@ enum Trackpad { static let forceClickButton: pardes_mouse_button_e = PARDES_MOUSE_RIGHT } -// Matches bg_default/fg_default in src/gui/gui.zig and DEFAULT_FG/DEFAULT_BG in -// src/web/app.mjs. Three shells render the same core; if these drift, comparing +// Matches bg_default/fg_default in src/gui/gui.zig. Two shells render the +// same core; if these drift, comparing // a screenshot across backends stops meaning anything. let pardesDefaultFG: UInt32 = 0xCC_CC_CC let pardesDefaultBG: UInt32 = 0x12_12_12 diff --git a/src/macos/pardes.h b/src/macos/pardes.h index 33db3bb5..62ae5218 100644 --- a/src/macos/pardes.h +++ b/src/macos/pardes.h @@ -10,7 +10,7 @@ // Swift owns NSApplication, the window, input translation, and drawing. // // There is exactly one core per process, so there are no handles: the state is -// a file-scoped singleton, same as src/web.zig. Every function below must be +// a file-scoped singleton. Every function below must be // called from the main thread. The one exception is the `wakeup` callback, // which fires from a pty reader thread. @@ -28,8 +28,7 @@ extern "C" { // ---------------------------------------------------------------- frame // One rendered cell. Mirrors pardes.Cell (src/pardes.zig) flattened for the -// wire; the identical encoding is spelled a second time for the browser in -// src/web.zig as WebCell. +// wire. typedef struct { // UTF-8 grapheme, `len` bytes. The core caps graphemes at seven bytes; the // eighth is always zero so a debugger prints something sensible. -- cgit v1.3