code wiki / _hdl_build / nx_estate.nx
nx_estate.nx
buildroot/runtime/_hdl_build/nx_estate.nx
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
imports: nx_inventory.nxnx_syscalls.nx
imported by: nx_estate_gate.nx
structs
| none |
consts
| 14 | const ER_RESID: *u8 = "(residuary)" |
functions
| 10 | func 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 } |
| 15 | func er_is_residuary(o: *u8) -> i64 { return er_streq(o, ER_RESID) } |
| 18 | func er_distinct_owners(inv_prefix: *u8, domain: *u8, owners_out: *i64) -> i64 |
| 36 | func er_owner_total(inv_prefix: *u8, domain: *u8, owner: *u8) -> i64 |
| 51 | func er_item_row(inv_prefix: *u8, domain: *u8, id: *u8, with_ben: i64, out: *u8, off: i64) -> i64 |
| 72 | func er_owner_section(inv_prefix: *u8, domain: *u8, owner: *u8, out: *u8, off: i64) -> i64 called by 1: er_render_schedule calls 10: as_appender_is_residuaryas_append_escapedsys_mmapiv_listiv_field_of+4 |
| 96 | func er_render_schedule(inv_prefix: *u8, domain: *u8, estate_owner: *u8, out: *u8) -> i64 called by 1: main calls 11: as_appendas_append_escapedsys_mmapiv_lister_distinct_ownersiv_value_total+5 |