nx_barfresh_lib.nx
buildroot/runtime/nx_barfresh_lib.nx
about
dependencies 3 imports · 26 importers
diagram shows first 10 each side; +0 more imports, +16 more importers in the complete lists below.
imports: nx_syscalls.nxnx_timefmt.nxnx_comparetree_lib.nx
imported by: nx_barfresh.nxnx_barfresh_gate.nxnx_compare_rank.nxnx_compare_rank_artifact_20260910.nxnx_compare_rank_refresh_test_20260907.nxnx_compare_shared_fit_lib_20260910.nxnx_costcal.nxnx_frontier_scan.nxnx_frontier_scan_review_candidate_t346.nxnx_incumbents.nxnx_ladder.nxnx_ladder_gate.nxnx_ladder_lib.nxnx_lbclimb.nxnx_lbclimb_gate.nxnx_lbclimb_lib.nxnx_rungclose.nxnx_swcompare_evidence_lib_t138.nxnx_swcompare_growth_candidate_20260910.nxnx_swcompare_heading_lib_20260907.nxnx_swcompare_ladder_candidate.nxnx_swcompare_lib.nxnx_swcompare_preview_lib_t56.nxnx_swcompare_production_lib_20260907.nxnx_swcompare_release_candidate.nxnx_treatment.nx
structs
| none |
consts
| 47 | const BF_SECS_PER_DAY: i64 = 86400 |
| 48 | const BF_MONTHS_PER_YEAR: i64 = 12 |
| 49 | const BF_PIPE: i64 = 124 |
| 50 | const BF_NL: i64 = 10 |
| 51 | const BF_DASH: i64 = 45 |
| 52 | const BF_DIGIT0: i64 = 48 |
| 53 | const BF_DIGIT9: i64 = 57 |
| 54 | const BF_YM_LEN: i64 = 7 // "YYYY-MM" |
| 55 | const BF_YM_YEAR_DIGITS: i64 = 4 |
| 56 | const BF_YM_MONTH_AT: i64 = 5 |
| 57 | const BF_YM_MONTH_DIGITS: i64 = 2 |
| 58 | const BF_YM_DASH_AT: i64 = 4 |
| 62 | const BF_BAR_TAG: *u8 = "sotabar|" |
| 63 | const BF_SCAN_TAG: *u8 = "barscan|" |
| 64 | const BF_NEWEST_TAG: *u8 = "newest=" |
| 65 | const BF_NEWEST_TAG_LEN: i64 = 7 |
| 66 | const BF_PLAN_SUFFIX: *u8 = ".plan" |
| 67 | const BF_I64: i64 = 8 |
| 68 | const BF_CLOCK_WORDS: i64 = 2 // sys_clock_gettime_real fills seconds and nanoseconds |
| 70 | const BF_F_BAR_ID: i64 = 1 |
| 71 | const BF_F_BAR_YM: i64 = 2 |
| 72 | const BF_F_BAR_SUBJECT: i64 = 3 |
| 73 | const BF_F_BAR_SAYS: i64 = 4 |
| 74 | const BF_F_BAR_REF: i64 = 5 |
| 75 | const BF_F_SCAN_DATE: i64 = 1 |
| 76 | const BF_F_SCAN_REF: i64 = 2 |
| 77 | const BF_F_SCAN_NEWEST: i64 = 3 |
| 79 | const BF_S_FRESH: i64 = 0 |
| 80 | const BF_S_ATTESTED: i64 = 1 |
| 81 | const BF_S_STALE: i64 = 2 |
| 82 | const BF_S_UNATTESTED: i64 = 3 |
| 83 | const BF_S_MALFORMED: i64 = 4 |
| 84 | const BF_S_DUPLICATE: i64 = 5 |
| 86 | const BF_EXIT_FRESH: i64 = 0 |
| 87 | const BF_EXIT_STALE: i64 = 1 |
| 88 | const BF_EXIT_NOBAR: i64 = 3 |
| 90 | const BF_C_BARS: i64 = 0 |
| 91 | const BF_C_FRESH: i64 = 1 |
| 92 | const BF_C_ATTESTED: i64 = 2 |
| 93 | const BF_C_STALE: i64 = 3 |
| 94 | const BF_C_UNATTESTED: i64 = 4 |
| 95 | const BF_C_MALFORMED: i64 = 5 |
| 96 | const BF_C_SCANS: i64 = 6 |
| 97 | const BF_C_SCANS_CUR: i64 = 7 |
| 98 | const BF_C_DUPLICATE: i64 = 8 // sotabar rows whose id an earlier row already carries (state DUPLICATE) |
| 99 | const BF_C_SCANS_DUP: i64 = 9 // barscan rows repeating an earlier row's date AND ref |
| 100 | const BF_C_N: i64 = 10 |
| 101 | const BF_NONE: i64 = 0 - 1 |
functions
| 103 | func bf_slen(s: *u8) -> i64 |
| 110 | func bf_line_end(buf: *u8, n: i64, p: i64) -> i64 |
| 122 | func bf_line_starts(buf: *u8, p: i64, e: i64, tag: *u8) -> i64 |
| 133 | func bf_field(buf: *u8, p: i64, e: i64, k: i64, off: *i64) -> i64 |
| 149 | func bf_is_digit(b: u8) -> i64 called by 1: bf_parse_ym |
| 155 | func bf_ym_index(y: i64, m: i64) -> i64 |
| 158 | func bf_ym_year(ix: i64) -> i64 |
| 161 | func bf_ym_month(ix: i64) -> i64 |
| 166 | func bf_parse_ym(s: *u8, len: i64) -> i64 |
| 186 | func bf_parse_newest(s: *u8, len: i64) -> i64 |
| 194 | func bf_ym_of_epoch(secs: i64) -> i64 |
| 202 | func bf_now_ym() -> i64 called by 14: mainmainmainmainmainplan_pass_heading+8 calls 3: sys_mmapsys_clock_gettime_realbf_ym_of_epoch |
| 210 | func bf_ym_write(dst: *u8, off: i64, ix: i64) -> i64 called by 27: bfc_wymswl_bar_stateplan_pass_headingfs_w_ymfs_todayfs_attest_row+21 calls 2: bf_ym_yearbf_ym_month |
| 224 | func bf_count_rows(buf: *u8, n: i64, tag: *u8) -> i64 |
| 236 | func bf_span_eq(buf: *u8, o1: i64, l1: i64, o2: i64, l2: i64) -> i64 |
| 246 | func bf_classify(buf: *u8, n: i64, cur: i64, off: *i64, ym: *i64, st: *i64, seen: *i64, c: *i64) -> i64 called by 15: maing_runmainmainmainmain+9 calls 8: bf_count_rowssys_mmapbf_line_endbf_line_startsbf_fieldbf_parse_ym+2 |
| 349 | func bf_verdict(c: *i64) -> i64 |
| 362 | func bf_refusal_rule(c: *i64) -> *u8 |
| 371 | func bf_partition_sum(c: *i64) -> i64 |
| 375 | func bf_state_name(s: i64) -> *u8 |
| 384 | func bf_verdict_name(v: i64) -> *u8 |
| 393 | func bf_read_plan(d1: *u8, d2: *u8, dom: *u8, lenp: *i64, which: *i64) -> *u8 |