code wiki / _hdl_build / nx_map_delegate.nx

nx_map_delegate.nx

buildroot/runtime/_hdl_build/nx_map_delegate.nx

4029 B92 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic map
docsdependenciesstructsconstsfunctions

about

nx_map_delegate.nx -- FULL-SCALE delegation conductor: apply the SAME rule-15 delegation (add a lib import + remove a byte-identical helper block) to EVERY consumer in a list, in ONE run. SAFE BY CONSTRUCTION: only edits a file where the block occurs EXACTLY ONCE and the anchor occurs EXACTLY ONCE; else SKIP untouched (a non-matching organ never gets a half-edit / double-definition). Verify the batch by re-running nx_funcmine (the dup group collapses) + compiling a consumer. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 4 imports · 0 importers

nx_seat_drive_lib.nx nx_deploy_lib.nx nx_ge_str_lib.nx nx_syscalls.nx nx_map_delegate.nx

imports: nx_seat_drive_lib.nxnx_deploy_lib.nxnx_ge_str_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sd_w sys_write sys_exit sys_openat_wr sys_dup3 md_slen sys_mmap dp_read sys_openat_rd sys_read sys_close md_one dp_read ↻ ge_count ge_find ge_find ↻ dp_writefile sys_openat_wr ↻ sys_write ↻ sys_close ↻ sd_num sys_mmap ↻

structs

none

consts

11const MD_CAP: i64 = 1048576
12const MD_LIST: i64 = 131072
13const MD_PATH: i64 = 1024

functions

15func md_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
17func md_one(path: *u8, block: *u8, bn: i64, anchor: *u8, an: i64, imp: *u8, in2: i64, work: *u8, tmp: *u8) -> i64
43func main(argc: i64, argv: *i64) -> i64