code wiki / (root) / nx_comparestale_lib.nx

nx_comparestale_lib.nx

buildroot/runtime/nx_comparestale_lib.nx

11475 B191 linesdepth 6pulls 7 transitivereach 39 importersview sourcekind librarytopic comparestale
docsdependenciesstructsconstsfunctions

about

Consumer and dependency artifacts must be nonempty; matching empty digests are not usable artifacts. One explicitly selected edge. Expected hashes are caller assertions, not qualification receipts. Literal occurrence binds an observation to consumer bytes; it cannot prove runtime reachability.

dependencies 3 imports · 12 importers

nx_fio.nx nx_sha256.nx json_emit.nx nx_comparestale_lib.nx nx_comparestale.nx nx_selected_edge_canonical_cli_gat nx_site_publish_alpha_candidate_t3 nx_site_publish_boundary_candidate nx_site_publish_lib.nx nx_site_publish_lib_pre_release_t1 nx_site_publish_prepare_lib_t256.n nx_site_publish_prepare_t198.nx nx_site_publish_release_candidate_ nx_wfcost.nx

diagram shows first 10 each side; +0 more imports, +2 more importers in the complete lists below.

imports: nx_fio.nxnx_sha256.nxjson_emit.nx

imported by: nx_comparestale.nxnx_selected_edge_canonical_cli_gate_t139.nxnx_site_publish_alpha_candidate_t343.nxnx_site_publish_boundary_candidate_t336.nxnx_site_publish_lib.nxnx_site_publish_lib_pre_release_t141.nxnx_site_publish_prepare_lib_t256.nxnx_site_publish_prepare_t198.nxnx_site_publish_release_candidate_t141.nxnx_wfcost.nxnx_wfcost_artifact_t173.nxnx_wfcost_outcomes_t144.nx

structs

18struct CsDependencyFile

consts

9const CD_ABI_WORD_BYTES: i64=8
10const CD_REGION_BYTES: i64=9*CD_ABI_WORD_BYTES
11const CD_FILE_BYTES: i64=6*CD_ABI_WORD_BYTES
12const CD_WRITER_BYTES: i64=5*CD_ABI_WORD_BYTES
13const CD_HASH_CHARS: i64=64
14const CD_I64_MAX: i64=9223372036854775807
15const CD_SCHEMA_FIELDS: i64=32
16const CD_JSON_INTEGER_CHARS: i64=21
17const CD_JSON_ESCAPE_EXPANSION: i64=6

functions

22func cd_len(s: *u8) -> i64 { var n: i64=0;while s[n]!=(0 as u8){n=n+1};return n }
23func cd_equal(a: *u8,b: *u8) -> i64 { var i: i64=0;while a[i]==b[i]{if a[i]==(0 as u8){return 1};i=i+1};return 0 }
24func cd_hash_valid(s: *u8) -> i64
called by 1: cd_buffer_command calls 1: cd_len
28func cd_file_init(o: *CsDependencyFile,hex: *u8) -> i64
32func cd_prefix(token: *u8,n: i64,pi: *i64) -> i64
36func cd_scan(path: *u8,token: *u8,o: *CsDependencyFile) -> i64
80func cd_file_state(o: *CsDependencyFile,expected: *u8) -> *u8
87func cd_pair(j: *JsonWriter,key: *u8,value: *u8) -> i64
90func cd_num(j: *JsonWriter,key: *u8,value: i64) -> i64
93func cd_file_json(j: *JsonWriter,key: *u8,path: *u8,expected: *u8,o: *CsDependencyFile) -> i64
101func cd_report(cp: *u8,ch: *u8,dp: *u8,dh: *u8,token: *u8,c: *CsDependencyFile,d: *CsDependencyFile,buffer: *u8,capacity: i64,j: *JsonWriter,prior: *u8) -> i64
129func cd_buffer_command(argc: i64,argv: *i64,owned: *u8,owned_n: i64) -> i64
166func cd_scan_buffer(body: *u8,n: i64,token: *u8,o: *CsDependencyFile) -> i64
190func cd_puts(s: *u8) -> i64 {return sys_write(1,s,cd_len(s))}
called by 1: cd_buffer_command calls 1: cd_len
191func cd_command(argc: i64,argv: *i64) -> i64 {return cd_buffer_command(argc,argv,0 as *u8,0)}
called by 1: main calls 1: cd_buffer_command