code wiki / (root) / nx_unidoc.nx

nx_unidoc.nx

buildroot/runtime/nx_unidoc.nx

2722 B51 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_unidoc.nx -- CLI over nx_unidoc_lib: the unified document page (rung UD1 of /compare/unidoc). nx_unidoc html <in> <out.html> [download_url] -- the doc_viewers.conf renderer interface nx_unidoc page <in> <out.html> [download_url] [portal_base] -- the same page with the portal's forms nx_unidoc kinds -- the kinds this page understands Exit 0 = page written, 1 = a NAMED refusal (printed), 2 = usage. The refusal name is the whole diagnosis: UNKNOWN-KIND, REFUSED-HTML, RENDERER-FAILED, TOO-BIG, READ-FAILED, OUT-CAP. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_unidoc_lib.nx nx_unidoc.nx

imports: nx_unidoc_lib.nx

imported by: nobody (leaf or entry point)

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

main ud_streq uc_puts ud_slen ud_render_path ud_kind_of_path sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ud_ext ud_slen ↻ ud_lower ud_kind_of_ext ud_streq ↻ sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ud_check_size ud_spec_of ud_spec_from_fork sys_mmap ↻ tr_run_capture sys_mmap ↻

structs

none

consts

11const UC_OUT_CAP: i64 = 33554432 // 32 MiB page buffer: 8 MiB of document text cannot exceed this even fully escaped
12const UC_USAGE: i64 = 2

functions

14func uc_puts(s: *u8) -> i64 { sys_write(1, s, ud_slen(s)); return 0 }
called by 1: main calls 1: ud_slen
15func uc_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main
17func main(argc: i64, argv: *i64) -> i64