code wiki / _hdl_build / nx_docx_html_gate.nx

nx_docx_html_gate.nx

buildroot/runtime/_hdl_build/nx_docx_html_gate.nx

6981 B132 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic docx
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_docx_html_gate.nx

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

main hg_p sys_write hg_slen sys_openat_rd sys_close hg_runv sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 hg_args4 sys_mmap ↻ hg_write sys_openat_wr ↻ sys_write ↻ hg_slen ↻ sys_close ↻ hg_has sys_mmap ↻ hg_readall sys_openat_rd ↻ sys_mmap ↻ sys_read sys_close ↻ hg_slen ↻ hg_row hg_p ↻ sys_openat_append sys_mmap ↻ hg_cat hg_catn sys_mmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_write ↻

structs

none

consts

none

functions

9func hg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n }
called by 3: hg_phg_writehg_has
10func hg_p(s: *u8) -> i64 { sys_write(1, s, hg_slen(s)); return 0 }
called by 2: hg_rowmain calls 2: sys_writehg_slen
12func 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
13func hg_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
20func hg_write(path: *u8, content: *u8) -> i64
25func hg_readall(path: *u8, szout: *i64) -> *u8
32func hg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64
48func hg_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmaphg_readallhg_slen
56func hg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64
called by 1: main calls 1: sys_mmap
60func hg_row(name: *u8, pass: i64) -> i64
called by 1: main calls 1: hg_p
64func main(argc: i64, argv: *i64) -> i64