diff options
Diffstat (limited to 'docs/shared-libs.md')
| -rw-r--r-- | docs/shared-libs.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/shared-libs.md b/docs/shared-libs.md index 70e585b3..52457bf1 100644 --- a/docs/shared-libs.md +++ b/docs/shared-libs.md @@ -21,6 +21,20 @@ a second FreeType (tools/shared_libs_check.zig). It counts static functions too, and several functions per family, because a release build inlines some of them. +## PDF panes became an addon (2026-11-06) + +`lib/pardes/addons/pdf.so` (addons/pdf/pdf.c and pdf_bridge.c) holds MuPDF, +built against the build's FreeType and zlib and linked into the library +with them, all three compiled position-independent; it exports +`pardes_addon` alone (a version script), so its FreeType and zlib never +meet the window's. The binaries hold no MuPDF: the tty none of FreeType or +zlib either, the window the one FreeType its glyph atlas uses. MuPDF and +the bridge allocate through pardes's heap for kinds (`pa_api.heap` over the +`addon` region, memory.zig), never their own malloc, so the Debug leak check +sees them. A window that loads pdf.so holds a second FreeType and zlib +beside its own: a library apart, as image.so's decoders are. The rows below +are the binaries before both addons. + ## Image panes became an addon (2026-11-06) `lib/pardes/addons/image.so` (addons/image/image.c) decodes image panes with |
