From 5a42ad8d8033c589231e81afdc6f9cb1279b5c22 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 21:34:19 -0300 Subject: kinds #43, the PDF kind in Zig: addons/pdf/pdf.zig replaces pdf.c over the same pdf_bridge.c (its header translated by build.zig, Zig 0.17 having no @cImport), one place a pane (a page and how far down it, which where says and address takes) laid out by each view its own way (a view with pictures its own strip, rasters and thumb by its id, a view of glyphs the page's text layer), the view of the last input the one whose window's top the place follows; the pages' sizes, the page's text and its hits, and the search over every page on the lanes as jobs (rows streamed through found, a stale search cancelled, its first hit gone to as a Look of its first row went), the tick asking and laying out only, open's one parse and close kept on the loop (0.4 and 0.8 ms; a truncated file stays a refused Look); a band at most PA_RASTER_MAX; the static build reads the module's pardes_addon, exported only from the library Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/behaviour/addons_pdf.zig | 2 +- test/panes.zig | 2 +- test/session.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/behaviour/addons_pdf.zig b/test/behaviour/addons_pdf.zig index 7b92b84c..48b75806 100644 --- a/test/behaviour/addons_pdf.zig +++ b/test/behaviour/addons_pdf.zig @@ -1,6 +1,6 @@ //! docs/typ/reference.typ, Addons and the PDF passages of Panes //! and Look and exec : a PDF is a pane of the pdf -//! addon (addons/pdf/pdf.c), driven here as a 9P client drives it. What +//! addon (addons/pdf/pdf.zig), driven here as a 9P client drives it. What //! test/pdf.zig asked of the core's PDF code before it left the core. const std = @import("std"); const Session = @import("session").Session; diff --git a/test/panes.zig b/test/panes.zig index 3e147c95..2da7a313 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -3720,7 +3720,7 @@ test "a terminal keeps its tag and two body rows through a squeeze, a drag and a try std.testing.expect(p.view().rects[term].h >= p.panes[term].?.tag_rows + layout.min_body_rows); } -// ---- a PDF: a pane of the pdf addon (addons/pdf/pdf.c) ---- +// ---- a PDF: a pane of the pdf addon (addons/pdf/pdf.zig) ---- const PdfAddon = struct { const addons = @import("test_addons"); diff --git a/test/session.zig b/test/session.zig index 8c71cfb1..8e03b424 100644 --- a/test/session.zig +++ b/test/session.zig @@ -403,7 +403,7 @@ pub const Session = struct { // pdf: - /// The pdf addon (addons/pdf/pdf.c), as the build makes it; none + /// The pdf addon (addons/pdf/pdf.zig), as the build makes it; none /// before the build has fetched MuPDF. pub const pdf_addon: ?[]const u8 = if (@import("session_options").has_pdf_addon) @import("session_options").pdf_addon else null; -- cgit v1.3