code wiki / _hdl_build / nx_dupname_worklist.nx

nx_dupname_worklist.nx

buildroot/runtime/_hdl_build/nx_dupname_worklist.nx

4173 B74 linesdepth 3pulls 4 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_janitor_dupname.nx nx_organ_callers.nx nx_syscalls.nx nx_dupname_worklist.nx nx_dupname_worklist_gate.nx

imports: nx_janitor_dupname.nxnx_organ_callers.nxnx_syscalls.nx

imported by: nx_dupname_worklist_gate.nx

structs

none

consts

10const K_MAGIC_16384: i64 = 16384
11const K_MAGIC_65536: i64 = 65536
12const K_MAGIC_4194304: i64 = 4194304

functions

15func wl_walk(root: *u8, fnames: *u8, colloff: *i64, ncoll: i64, counts: *i64) -> i64
70func wl_collisions(fnames: *u8, fnoff: *i64, hc: i64, NF: i64, colloff: *i64, maxc: i64) -> i64
called by 1: main calls 1: jdn_is_shadowed