code wiki / _hdl_build / nx_sweep_dir.nx
nx_sweep_dir.nx
buildroot/runtime/_hdl_build/nx_sweep_dir.nx
about
nx_sweep_dir.nx -- enumerate .nx files in a dir, emit "<dir>/<name>" one per line to stdout
(or an outfile via argv[2]). Single-responsibility enumerator (rule 9) so list-based tools like
nx_map_remove_func can run FULL-SCALE over a whole tree with no context round-trip. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_deploy_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 6 | const SW_MAGIC_4096: i64 = 4096 |
| 8 | const SW_DBUF: i64 = 262144 |
functions
| 10 | func sw_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 11 | func sw_reclen(rec: *u8) -> i64 { return (rec[16] as i64) | ((rec[17] as i64) << 8) } called by 1: main |
| 12 | func sw_ends_nx(nm: *u8) -> i64 |
| 21 | func main(argc: i64, argv: *i64) -> i64 |