code wiki / _hdl_build / nx_pdf_gate.nx
nx_pdf_gate.nx
buildroot/runtime/_hdl_build/nx_pdf_gate.nx
about
nx_pdf_gate.nx -- gate for the PDF viewer (nx_pdf: nx_pdf_text extract -> language-filter -> 0-JS preview).
Evidence source = a REAL 634KB PubMed/Cochrane PDF fixture (knowledge/fetched/pmc_cd004504.pdf), not a toy.
Rows: 1 instruments 2 render-ok 3 real-content(Cochrane Library) 4 readable-head (filter kills the binary
prefix: "Cochrane" within the first 3600 bytes) 5 valid-0js-html 6 registry-dispatch(.pdf via nx_doc_view)
7 loud-fail-missing[neg]. license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 8 | func pg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n } |
| 9 | func pg_p(s: *u8) -> i64 { sys_write(1, s, pg_slen(s)); return 0 } |
| 10 | func pg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { dst[off+i]=s[i]; i=i+1 } return off+i } called by 1: main |
| 11 | func pg_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 17 | func pg_exists(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 } |
| 18 | func pg_readn(path: *u8, buf: *u8, cap: i64) -> i64 |
| 24 | func pg_scan(buf: *u8, sz: i64, needle: *u8) -> i64 |
| 30 | func pg_has(path: *u8, needle: *u8) -> i64 |
| 36 | func pg_has_pre(path: *u8, needle: *u8, cap: i64) -> i64 |
| 42 | func pg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 57 | func pg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64 |
| 60 | func pg_row(name: *u8, pass: i64) -> i64 |
| 64 | func main(argc: i64, argv: *i64) -> i64 |