From 70de5ec5ff3dad01afcc45244ad5e5a481486da6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 29 Oct 2026 17:01:35 -0300 Subject: 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 --- src/pdf.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pdf.zig') 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). -- cgit v1.3