code wiki / _hdl_build / nx_pdf_reflow.nx

nx_pdf_reflow.nx

buildroot/runtime/_hdl_build/nx_pdf_reflow.nx

4273 B55 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic pdf
docsdependenciesstructsconstsfunctions

about

nx_pdf_reflow.nx -- KAT GATE for the sovereign PDF -> reflowable-mobile-HTML pipeline (_pdf_reflow_lib.nx). Library arc R3 ("PDFs readable on mobile"). The pipeline lives in _pdf_reflow_lib (shared with the live /reflow route in nx_media_server). This gate proves it: a hand-built KAT PDF + image-only negative controls + an optional REAL PDF at /tmp/in.pdf (-> /tmp/out.reflow.html + a text preview). No hardware writes (Rule 26). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx _pdf_reflow_lib.nx nx_pdf_reflow.nx

imports: nx_syscalls.nxnx_itoa_lib.nx_pdf_reflow_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main pr_p sys_write sys_mmap pr_slen pr_pdf_to_reflow pr_sub pr_back_flate pr_sub ↻ inflate sys_mmap ↻ ibr ihb sys_mmap ↻ icodes ihd ibr ↻ ibr ↻ ihd ↻ pr_extract sys_mmap ↻ pr_lit pr_hex pr_alpha nx_charset_repair_utf8 sys_mmap ↻ _cs_fill_w1252 _cs_utf8_seqlen _cs_emit pr_cat pr_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap pr_has pr_slen ↻ sys_read_file

structs

none

consts

9const K_MAGIC_4194304: i64 = 4194304

functions

11func pr_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
16func pr_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
18func main() -> i64