code wiki / _hdl_build / nx_xlsx_view_gate.nx

nx_xlsx_view_gate.nx

buildroot/runtime/_hdl_build/nx_xlsx_view_gate.nx

11108 B160 linesdepth 7pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic xlsx
docsdependenciesstructsconstsfunctions

about

nx_xlsx_view_gate.nx -- gate for the .xlsx VIEWER (nx_xlsx html) + the SHAREDSTRINGS close. Two fixtures: (a) our own fromtsv workbook (inlineStr+numeric) -> html table with escaped '&' round-trip; (b) a FOREIGN-shaped workbook the gate authors DIRECTLY via nx_opc -- t="s" cells indexing a real xl/sharedStrings.xml part (the shape Excel/Sheets actually emit; previously an HONEST LIMITATION that yielded raw indices) -> `read` must resolve the INDICES to TEXT, and `html` must show the text. Rows: 1 own-write 2 own-html(th/td + &-escape) 3 FOREIGN sharedStrings resolved in read 4 foreign html 5 registry-dispatch(.xlsx via nx_doc_view) 6 outputs-0js 7 loud-fail-missing[neg] license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_opc.nx nx_xlsx_view_gate.nx

imports: nx_syscalls.nxnx_opc.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

12func xg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n }
called by 3: xg_pxg_writexg_has
13func xg_p(s: *u8) -> i64 { sys_write(1, s, xg_slen(s)); return 0 }
called by 1: xg_row calls 2: sys_writexg_slen
14func xg_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 }
15func xg_catn(dst: *u8, off: i64, v: i64) -> i64
calls 1: sys_mmap
21func xg_write(path: *u8, content: *u8) -> i64
25func xg_readall(path: *u8, szout: *i64) -> *u8
31func xg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64
46func xg_has(path: *u8, needle: *u8) -> i64
53func xg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64
calls 1: sys_mmap
56func xg_row(name: *u8, pass: i64) -> i64
calls 1: xg_p
61func xg_write_foreign(path: *u8) -> i64
80func main(argc: i64, argv: *i64) -> i64