code wiki / _hdl_build / nx_doc_view_gate.nx
nx_doc_view_gate.nx
buildroot/runtime/_hdl_build/nx_doc_view_gate.nx
about
nx_doc_view_gate.nx -- gate for the document-viewer DISPATCH (the browser omnitool core). Proves nx_doc_view
reads the registry (knowledge/doc_viewers.conf) and routes each extension to the right sovereign renderer,
producing inline 0-JS HTML: docx->nx_docx, md->nx_md, csv->nx_csv. Negative control: an unregistered extension
is refused (not silently mis-rendered). Requires the renderers blessed in _offc. 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
| 7 | func gv_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n } |
| 8 | func gv_p(s: *u8) -> i64 { sys_write(1, s, gv_slen(s)); return 0 } |
| 9 | func gv_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 |
| 10 | func gv_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 16 | func gv_write(path: *u8, content: *u8) -> i64 |
| 20 | func gv_readall(path: *u8, szout: *i64) -> *u8 |
| 26 | func gv_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 41 | func gv_has(path: *u8, needle: *u8) -> i64 |
| 48 | func gv_args(a1: *u8, a2: *u8, a3: *u8) -> *i64 |
| 51 | func gv_row(name: *u8, pass: i64) -> i64 |
| 55 | func main(argc: i64, argv: *i64) -> i64 |