code wiki / _hdl_build / nx_code_depgraph.nx

nx_code_depgraph.nx

buildroot/runtime/_hdl_build/nx_code_depgraph.nx

5463 B106 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic code
docsdependenciesstructsconstsfunctions

about

nx_code_depgraph.nx -- Analyzes source code to build a dependency graph of modules, identifying relationships and architectural hubs.

dependencies 4 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_dir.nx nx_code_depgraph.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nxnx_dir.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write sys_mmap nx_dir_list nx_openat nx_dirent_read nx_dirent_iter nx_dir_is_dotlike nx_dir_name_strlen nx_dir_arena_copy_name gn nx_dir_row_at nx_dir_row_is_regular_file sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close match_at sys_munmap sys_write ↻

structs

none

consts

11const K_MAGIC_8192: i64 = 8192
12const K_MAGIC_2097152: i64 = 2097152
13const K_MAGIC_4096: i64 = 4096
19const MAXT: i64 = 65536
20const ARENA: i64 = 8388608

functions

15func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
17func match_at(buf: *u8, n: i64, i: i64, pat: *u8) -> i64 { var j: i64=0; while pat[j]!=(0 as u8){ if i+j>=n {return 0} if buf[i+j]!=pat[j]{return 0} j=j+1 } return 1 }
22func main(argc: i64, argv: *i64) -> i64