code wiki / _hdl_build / nx_xlsx_view_gate.nx
nx_xlsx_view_gate.nx
buildroot/runtime/_hdl_build/nx_xlsx_view_gate.nx
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
imports: nx_syscalls.nxnx_opc.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| none |
functions
| 12 | func xg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n } |
| 13 | func xg_p(s: *u8) -> i64 { sys_write(1, s, xg_slen(s)); return 0 } |
| 14 | func 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 } |
| 15 | func xg_catn(dst: *u8, off: i64, v: i64) -> i64 calls 1: sys_mmap |
| 21 | func xg_write(path: *u8, content: *u8) -> i64 |
| 25 | func xg_readall(path: *u8, szout: *i64) -> *u8 |
| 31 | func xg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 46 | func xg_has(path: *u8, needle: *u8) -> i64 |
| 53 | func xg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64 calls 1: sys_mmap |
| 56 | func xg_row(name: *u8, pass: i64) -> i64 calls 1: xg_p |
| 61 | func xg_write_foreign(path: *u8) -> i64 |
| 80 | func main(argc: i64, argv: *i64) -> i64 |