summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 21:34:19 -0300
committerGabriel Schneider <[email protected]>2026-11-06 21:36:55 -0300
commit5a42ad8d8033c589231e81afdc6f9cb1279b5c22 (patch)
treea0e345b55031e07d02bd6fa19dd5f05e67d36028 /src
parent9589f6878ffd2501b4ce5a034ead58119d38749c (diff)
downloadpardes-5a42ad8d8033c589231e81afdc6f9cb1279b5c22.tar.gz
pardes-5a42ad8d8033c589231e81afdc6f9cb1279b5c22.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src')
-rw-r--r--src/Addon.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Addon.zig b/src/Addon.zig
index 030da7d4..04cffcb9 100644
--- a/src/Addon.zig
+++ b/src/Addon.zig
@@ -178,8 +178,7 @@ var nfound: usize = 0;
/// addon's module and the PDF's C, its `pardes_addon` renamed. A static
/// binary cannot dlopen, and macOS's loader has no memfd: this is how
/// either has image and PDF panes.
-const compiled_in: []const *const Kind.Ops = if (@import("builtin_addons").on) &.{ &@import("image_addon").pardes_addon, &pardes_addon_pdf } else &.{};
-extern const pardes_addon_pdf: Kind.Ops;
+const compiled_in: []const *const Kind.Ops = if (@import("builtin_addons").on) &.{ &@import("image_addon").pardes_addon, &@import("pdf_addon").pardes_addon } else &.{};
/// The addons compiled in, as if loaded (`builtin` their path); else every
/// library of the two directories, in name order each, the user's first. A