code wiki / (root) / nx_twincard.nx

nx_twincard.nx

buildroot/runtime/nx_twincard.nx

11221 B199 linesdepth 7pulls 8 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_twincard.nx -- CLI over nx_twincard_lib (aesthetictwin AT23, 2026-09-16): the twin card the operator asked for, "more comprehensive than the illusion cards" -- and unlike those, every value carries its side, unit, method and source, and the card prints how much of itself is still eyeball and how many of its rulers exist. nx_twincard axes -> the sections the schema declares (face from the canon) with their value counts, and the RULER CENSUS: every ruler row judged by the estate's one symbol ruler (present/absent/unjudged) nx_twincard check <slug> -> validate knowledge/twincard/<slug>.card: every refusal named; coverage per section; method partition (measured + observed + declared + generated = valid); completed L/R pairs nx_twincard new <slug> <display> <class> <sex> <licence> -> write a header-only card (refuses to clobber an existing card) exit: 0 ok | 2 usage | 3 schema or canon unreadable | 4 no such card | 6 card refused (defects named) | 7 card exists license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_twincard_lib.nx nx_twincard.nx

imports: nx_syscalls.nxnx_twincard_lib.nx

imported by: nobody (leaf or entry point)

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

main tcc_usage sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ri_load sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close tcc_coverage sys_mmap ↻ tc_sections sys_mmap ↻ ri_line_end ri_starts ri_field tc_list_has ri_streq ri_slen ri_slen ↻ ri_cat tc_list_at ri_slen ↻ tc_declared_count

structs

none

consts

14const TCC_EXIT_USAGE: i64 = 2
15const TCC_EXIT_SCHEMA: i64 = 3
16const TCC_EXIT_NOCARD: i64 = 4
17const TCC_EXIT_REFUSED: i64 = 6
18const TCC_EXIT_EXISTS: i64 = 7
19const TCC_ARGC_NEW: i64 = 7
20const TCC_A_SLUG: i64 = 2
21const TCC_A_DISPLAY: i64 = 3
22const TCC_A_CLASS: i64 = 4
23const TCC_A_SEX: i64 = 5
24const TCC_A_LIC: i64 = 6
25const TCC_CENSUS_N: i64 = 4

functions

27func tcc_usage() -> i64
called by 1: main
32func tcc_coverage(schema: *u8, sn: i64, canon: *u8, kn: i64, card: *u8, cn: i64, tot: *i64) -> i64
55func tcc_rulers(schema: *u8, sn: i64) -> i64
called by 1: main calls 2: sys_mmaptc_ruler_census
66func tcc_ruler_coverage(schema: *u8, sn: i64, canon: *u8, kn: i64) -> i64
76func tcc_check(schema: *u8, sn: i64, canon: *u8, kn: i64, slug: *u8) -> i64
132func tcc_new(argv: *i64) -> i64
173func main(argc: i64, argv: *i64) -> i64