code wiki / _hdl_build / nx_estate.nx

nx_estate.nx

buildroot/runtime/_hdl_build/nx_estate.nx

7972 B135 linesdepth 4pulls 5 transitivereach 1 importersview sourcekind librarytopic estate
docsdependenciesstructsconstsfunctions

about

nx_estate.nx -- LIB: renders a will's SCHEDULE OF ASSETS (a tangible-personal-property memorandum) from the universal inventory's `estate` domain. Sovereign no-JS document: estate summary (net worth, item count), per-beneficiary bequests with subtotals, residuary (unassigned) section, and the full asset schedule. Boundary defense (rule 12): every asset name / owner is HTML-escaped. Money is integer CENTS (no float). One more CONSUMER of the universal inventory (like the restaurant site is a consumer of the food engine). license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_inventory.nx nx_syscalls.nx nx_estate.nx nx_estate_gate.nx

imports: nx_inventory.nxnx_syscalls.nx

imported by: nx_estate_gate.nx

structs

none

consts

14const ER_RESID: *u8 = "(residuary)"

functions

10func er_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
15func er_is_residuary(o: *u8) -> i64 { return er_streq(o, ER_RESID) }
18func er_distinct_owners(inv_prefix: *u8, domain: *u8, owners_out: *i64) -> i64
36func er_owner_total(inv_prefix: *u8, domain: *u8, owner: *u8) -> i64
51func er_item_row(inv_prefix: *u8, domain: *u8, id: *u8, with_ben: i64, out: *u8, off: i64) -> i64
72func er_owner_section(inv_prefix: *u8, domain: *u8, owner: *u8, out: *u8, off: i64) -> i64
96func er_render_schedule(inv_prefix: *u8, domain: *u8, estate_owner: *u8, out: *u8) -> i64