code wiki / _hdl_build / nx_jq_locate.nx
nx_jq_locate.nx
buildroot/runtime/_hdl_build/nx_jq_locate.nx
about
nx_jq_locate.nx -- find the EXACT construct where our parser rejects minified jQuery. Fetches jquery.min.js,
parses it RAW, and on PST_ERR prints the error token's source offset + the surrounding bytes -> identify+fix the
next parser gap directly (no guessing). Repeat (fix -> re-run) until "PARSED OK" -> then jQuery runs.
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_video_sniff.nxnx_video_sniff_fetch.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
| 9 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 11 | func cw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 12 | func cn(v0: i64) -> i64 { let nb: *u8 = sys_mmap(32); var d: i64=0; var v: i64=v0; if v==0 { nb[0]=48; d=1 } else { let tmp: *u8=sys_mmap(32); var t: i64=0; while v>0 { tmp[t]=(48+(v%10)) as u8; v=v/10; t=t+1 } while t>0 { t=t-1; nb[d]=tmp[t]; d=d+1 } } nb[d]=0 as u8; cw(nb); return 0 } |
| 14 | func main() -> i64 |