summaryrefslogtreecommitdiff
path: root/src/pdf.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 17:01:35 -0300
committerGabriel Schneider <[email protected]>2026-10-29 21:13:33 -0300
commit70de5ec5ff3dad01afcc45244ad5e5a481486da6 (patch)
treecd4b723dcc2cfd94c4ba2361c134927b0e2df60b /src/pdf.zig
parent349790339897466f323ff28748916aa48aa344f7 (diff)
downloadpardes-70de5ec5ff3dad01afcc45244ad5e5a481486da6.tar.gz
pardes-70de5ec5ff3dad01afcc45244ad5e5a481486da6.zip
dump: one walker dump of the whole session, by name across builds, for Restore, -l, Handover and the store; dump.zig's hand-written schema gone
A dump is walk.zig's walk of the core with a table of every type it reaches (fields, enum and union names, number widths), read back by name; terminals are ghostty's snapshot (screens, history, kitty images); a failed load frees what it made. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pdf.zig')
-rw-r--r--src/pdf.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pdf.zig b/src/pdf.zig
index d3796d70..262af8b9 100644
--- a/src/pdf.zig
+++ b/src/pdf.zig
@@ -700,7 +700,9 @@ test "oriented selection containment delegates to MuPDF quad geometry" {
}
pub const Document = struct {
- handle: *c.pardes_pdf_document,
+ /// None in a document loaded from a dump until its PDF is opened again
+ /// (pdf_view.reopen).
+ handle: ?*c.pardes_pdf_document = null,
pages: usize,
/// The open document is MuPDF's, made from the file's bytes (src/walk.zig).