code wiki / _hdl_build / nx_url_index.nx
nx_url_index.nx
buildroot/runtime/_hdl_build/nx_url_index.nx
about
nx_url_index.nx -- Fetches and indexes a single live URL into the web scope using a neutral, sovereign stack.
dependencies 9 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_corpus_ingest.nxnx_struct_extract.nxnx_feed_extract.nxnx_crawl_pace.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.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
| 18 | const K_MAGIC_4194304: i64 = 4194304 |
| 19 | const K_MAGIC_1048576: i64 = 1048576 |
| 20 | const K_MAGIC_1024: i64 = 1024 |
| 21 | const K_MAGIC_2048: i64 = 2048 |
| 22 | const K_MAGIC_4096: i64 = 4096 |
| 23 | const K_MAGIC_8192: i64 = 8192 |
| 24 | const K_MAGIC_8191: i64 = 8191 |
| 25 | const K_MAGIC_65536: i64 = 65536 |
| 26 | const K_MAGIC_70000: i64 = 70000 |
| 27 | const K_MAGIC_69998: i64 = 69998 |
functions
| 29 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 31 | func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 32 | func has(hay: *u8, hn: i64, ndl: *u8) -> i64 { var nl: i64=0; while ndl[nl]!=(0 as u8){nl=nl+1} var i: i64=0; while i+nl<=hn { var m: i64=1; var j: i64=0; while j<nl { if hay[i+j]!=ndl[j] { m=0; j=nl } else { j=j+1 } } if m==1 { return 1 } i=i+1 } return 0 } |
| 36 | func ui_host(url: *u8, out: *u8) -> i64 |
| 55 | func ui_resolve(base: *u8, href: *u8, out: *u8) -> i64 |
| 80 | func main(argc: i64, argv: *i64) -> i64 |