code wiki / _hdl_build / nx_docx_html_gate.nx

nx_docx_html_gate.nx

buildroot/runtime/_hdl_build/nx_docx_html_gate.nx

7530 B140 linesdepth 3pulls 3 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 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_docx_html_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.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 nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ 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 ↻

structs

none

consts

none

functions

10func 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
11func hg_p(s: *u8) -> i64 { sys_write(1, s, hg_slen(s)); return 0 }
called by 2: hg_rowmain calls 2: sys_writehg_slen
13func 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
14func hg_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
21func hg_write(path: *u8, content: *u8) -> i64
26func hg_readall(path: *u8, szout: *i64) -> *u8
33func hg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64
49func hg_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmaphg_readallhg_slen
57func hg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64
called by 1: main calls 1: sys_mmap
61func hg_row(name: *u8, pass: i64) -> i64
called by 1: main calls 1: hg_p
65func main(argc: i64, argv: *i64) -> i64