code wiki / (root) / nx_mhtarget.nx

nx_mhtarget.nx

buildroot/runtime/nx_mhtarget.nx

3863 B86 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_mhtarget.nx -- CLI: MakeHuman morph-target structural facts. nx_mhtarget probe|decode <f.target> The CC0 licence-clean dialect beside nx_kkfacts and nx_bspfacts (/compare/koikatsu card-class lane). Facts + the first rows' vertex offsets in MICRO units; whole-file decode totals printed, rows shown capped so a 1675-row corpus is a summary, not a dump. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_mhtarget_lib.nx nx_mhtarget.nx

imports: nx_syscalls.nxnx_mhtarget_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main mc_e sys_write mc_slen sys_exit sys_mmap nxa_die sys_write ↻ sys_exit ↻ nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_openat_rd sys_lseek sys_read sys_close mht_probe kk_b sys_mmap ↻ mht_line_end kk_b ↻ mht_row mht_skip_ws mht_is_ws kk_b ↻ kk_b ↻ mht_tok_end mht_is_ws ↻ kk_b ↻ mht_uint kk_b ↻ mht_is_digit

structs

none

consts

9const MHC_CAP: i64 = 33554432 // targets measure KBs; 32MB refuse-beyond bound -- census abstains, never truncates silently
10const MHC_MAX_ROWS: i64 = 65536 // the base mesh has ~19k vertices; 64k is the refuse-beyond bound
11const MHC_SHOW: i64 = 6 // rows printed by decode; the totals carry the population

functions

13func mc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: mc_wmc_e
14func mc_w(s: *u8) -> i64 { sys_write(1, s, mc_slen(s)); return 0 }
called by 1: main calls 2: sys_writemc_slen
15func mc_e(s: *u8) -> i64 { sys_write(2, s, mc_slen(s)); return 0 }
called by 1: main calls 2: sys_writemc_slen
16func mc_num(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
29func mc_eq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
called by 1: main
31func main(argc: i64, argv: *i64) -> i64