code wiki / _hdl_build / _elder_census_authored.nx
_elder_census_authored.nx
buildroot/runtime/_hdl_build/_elder_census_authored.nx
about
AUTHORED BY THE NISHI BUILDER (nx_module_author_data census template) -- ELDERMIG E0.
Mechanized Elder census: compose service keys (2-space YAML keys under services:) +
data-vault *.db count via getdents64. Gate expectations arrive as argv from the caller.
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
| none |
functions
| 5 | func _ec_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 } |
| 6 | func _ec_wn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; 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(fd,bb,k); return 0 } |
| 7 | func _ec_atoi(s: *u8) -> i64 { var v: i64=0; var i: i64=0; while s[i]!=(0 as u8) { let c: i64=s[i]; if c<48 { return v } if c>57 { return v } v=v*10+(c-48); i=i+1 } return v } called by 1: main |
| 8 | func _ec_pref(buf: *u8, p: i64, pat: *u8) -> i64 { var i: i64=0; while pat[i]!=(0 as u8) { if buf[p+i]!=pat[i] { return 0 } i=i+1 } return 1 } called by 1: main |
| 9 | func _ec_eol(buf: *u8, p: i64, L: i64) -> i64 { var e: i64=p; while e<L { if buf[e]==(10 as u8) { return e } e=e+1 } return L } called by 1: main |
| 10 | func _ec_nch(c: i64) -> i64 { if c>=97 { if c<=122 { return 1 } } if c>=65 { if c<=90 { return 1 } } if c>=48 { if c<=57 { return 1 } } if c==95 { return 1 } if c==45 { return 1 } return 0 } called by 1: main |
| 11 | func main(argc: i64, argv: *i64) -> i64 |