MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ptr_changed

Function ptr_changed

tests/test_test_impact_tree.c:2843–2854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2841}
2842
2843static bool ptr_changed(pt_fixture *fx, size_t index, bool missing) {
2844 cbm_pinned_tree_control_t control = ptr_control();
2845 cbm_pinned_tree_error_t error;
2846 unsigned char byte = 0xa5;
2847 size_t copied = SIZE_MAX;
2848 cbm_pinned_tree_status_t status =
2849 cbm_pinned_tree_read_prefix(fx->tree, index, PT_LARGE, &byte, 1, &copied, &control, &error);
2850 bool typed = status == CBM_PINNED_TREE_CHANGED || (missing && status == CBM_PINNED_TREE_IO);
2851 return pt_h_tree_step("prefix-read", "native-change", typed && error.status == status, status,
2852 &error) &&
2853 copied == 0 && ptr_disposal(fx->tree);
2854}
2855
2856static bool ptr_change_suffix(const char *path) {
2857 if (!pt_make_writable(path))

Callers 5

ptr_content_caseFunction · 0.85
ptr_file_identity_caseFunction · 0.85
ptr_hardlink_caseFunction · 0.85
ptr_ancestor_policyFunction · 0.85
ptr_ancestor_replacementFunction · 0.85

Calls 4

ptr_controlFunction · 0.85
pt_h_tree_stepFunction · 0.85
ptr_disposalFunction · 0.85

Tested by

no test coverage detected