code wiki / _hdl_build / nx_docx_html_gate.nx
nx_docx_html_gate.nx
buildroot/runtime/_hdl_build/nx_docx_html_gate.nx
about
nx_docx_html_gate.nx -- gate for the .docx -> HTML PREVIEW renderer (nx_docx html). Browsers can't render a
raw .docx (they download it); this proves nx_docx turns OOXML into a clean, sovereign, 0-JS HTML page the Nishi
browser shows INLINE -- headings, bold/italic runs, tables, and a "Download .docx" interop link. Evidence: it
writes a rich .docx (writerich), renders it (html), and greps the produced HTML for real structural markup.
Rows: 1 render-ok 2 valid-html 3 heading 4 bold+italic 5 table+cell 6 download-link 7 sovereign-0-JS 8 neg-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
| 9 | func hg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n } |
| 10 | func hg_p(s: *u8) -> i64 { sys_write(1, s, hg_slen(s)); return 0 } |
| 12 | func hg_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 |
| 13 | func hg_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 20 | func hg_write(path: *u8, content: *u8) -> i64 |
| 25 | func hg_readall(path: *u8, szout: *i64) -> *u8 |
| 32 | func hg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 48 | func hg_has(path: *u8, needle: *u8) -> i64 |
| 56 | func hg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64 |
| 60 | func hg_row(name: *u8, pass: i64) -> i64 |
| 64 | func main(argc: i64, argv: *i64) -> i64 |