code wiki / _hdl_build / nx_site_autofix.nx

nx_site_autofix.nx

buildroot/runtime/_hdl_build/nx_site_autofix.nx

5446 B109 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic site
docsdependenciesstructsconstsfunctions

about

nx_site_autofix.nx -- table-driven accessibility AUTOFIX (the finding->fix->re-gate loop of the CMS arc). Applies targeted splices for the quality gate's REAL findings on andelinwest.html: skip-link after <body>, <nav> around the header CTA, <main id="main"> after </header>, </main> before <footer>. Atomic write (.new + rename -- the live daemon hot-swaps on next request). Idempotent: each fix is skipped if its marker already exists. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_site_autofix.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 _p sys_write sys_mmap sys_openat_rd sys_exit sys_read sys_close af_find af_slen af_insert af_slen ↻ sys_openat_wr sys_write ↻ sys_renameat _pn sys_mmap ↻ sys_write ↻

structs

none

consts

7const K_MAGIC_4194320: i64 = 4194320
8const K_MAGIC_2097152: i64 = 2097152
9const K_MAGIC_8192: i64 = 8192

functions

10func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
11func _pn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
12func af_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: af_findaf_insert
13func af_find(buf: *u8, n: i64, from: i64, pat: *u8) -> i64
called by 1: main calls 1: af_slen
26func af_insert(buf: *u8, n: i64, pos: i64, s: *u8) -> i64
called by 1: main calls 1: af_slen
34func main() -> i64