code wiki / _hdl_build / nx_census_to_bg.nx
nx_census_to_bg.nx
buildroot/runtime/_hdl_build/nx_census_to_bg.nx
about
nx_census_to_bg.nx -- generic adapter: a RICH census (id\tcategory\tfeature\tstatus\tweight, the
nx_math_census/nx_sci_census/nx_wolfram_census output format) -> the nx_backlog_gen CONTRACT
(status\tfeature\tunion\tevidence, ABSENT-keyed). So ANY rich census's gaps flow into the self-feed
-> GEN-<rung>-<id> queue tasks -> the swarm/clones build them (hardware-rung-up, sovereign, EXCEED).
Reusable (operator: "get functionalities from across LOTS of systems ... S-class exceed, time the only
limit") -- one adapter serves every incumbent catalog. argv[1]=input rich census, argv[2]=output bg.
module: nishi-core.meta.census_to_bg
depends: nishi-core.sys.syscalls
capability: RICH_CENSUS_TO_BACKLOG_CONTRACT_ADAPTER
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
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
structs
| none |
consts
| 13 | const K_MAGIC_262144: i64 = 262144 |
functions
| 15 | func cb_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 16 | func cb_wn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" 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)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } |
| 17 | func cb_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 19 | func cb_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 29 | func cb_field(buf: *u8, ls: i64, le: i64, f: i64, dst: *u8, cap: i64) -> i64 called by 1: main |
| 42 | func main(argc: i64, argv: *i64) -> i64 |