code wiki / _hdl_build / nx_mark_migrate.nx
nx_mark_migrate.nx
buildroot/runtime/_hdl_build/nx_mark_migrate.nx
about
nx_mark_migrate.nx -- X-Q-003b: migrate hand-seeded queue rows from prose
gate cells to LITERAL machine markers, so nx_reconcile can own their DONE
flip. Reads the marker MAP knowledge/registry/row_markers.tsv (id -> marker)
and, for each queue row whose id is in the map and whose gate cell lacks
"||MARK=", appends "||MARK=<marker>" to that row's gate field (field 7, before
the 8th tab). Idempotent (already-marked rows skipped); whole-file rewrite,
safe at this row count. (Rows generated by nx_gap_to_queue self-embed their
marker and need no map entry -- this organ is for pre-existing rows whose
gates ship later.) Appends MARKMIGRATE rows to knowledge/status/mark_migrate.log.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_registry_lock.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
| 12 | const K_MAGIC_131072: i64 = 131072 |
| 13 | const K_MAGIC_1048576: i64 = 1048576 |
| 14 | const K_MAGIC_1310720: i64 = 1310720 |
functions
| 16 | func mm_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } called by 1: main |
| 17 | func mm_wn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } called by 1: main |
| 19 | func mm_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 30 | func mm_at(buf: *u8, n: i64, i: i64, pat: *u8, pl: i64) -> i64 called by 1: main |
| 38 | func mm_lookup(mb: *u8, mn: i64, id: *u8, out: *u8, ocap: i64) -> i64 called by 1: main |
| 80 | func main() -> i64 |