code wiki / _hdl_build / nx_dupname_worklist.nx
nx_dupname_worklist.nx
buildroot/runtime/_hdl_build/nx_dupname_worklist.nx
about
nx_dupname_worklist.nx -- turns the 22 shadow collisions into a PRIORITIZED, actionable rename worklist:
for EVERY collision, how many files reference that organ name (fewer = easier/safer to rename). Composes
nx_janitor_dupname (the collision set) + a single sovereign tree walk (the caller count) -- ONE walk that
checks every .nx against ALL collision names at once (not N walks), reusing the nx_organ_callers reference
test. READ-ONLY (never-brick). The caller count INCLUDES the organ's own 2 copies, so external callers ~=
count - 2; the RANKING (which collisions are cheapest to resolve) is what matters. license_tier: ORIGINAL
dependencies 3 imports · 1 importers
imports: nx_janitor_dupname.nxnx_organ_callers.nxnx_syscalls.nx
imported by: nx_dupname_worklist_gate.nx
structs
| none |
consts
| 10 | const K_MAGIC_16384: i64 = 16384 |
| 11 | const K_MAGIC_65536: i64 = 65536 |
| 12 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 15 | func wl_walk(root: *u8, fnames: *u8, colloff: *i64, ncoll: i64, counts: *i64) -> i64 |
| 70 | func wl_collisions(fnames: *u8, fnoff: *i64, hc: i64, NF: i64, colloff: *i64, maxc: i64) -> i64 |