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

Function start_source_next_label

src/cypher/cypher.c:6077–6088  ·  view source on GitHub ↗

Open the next label's scan of an alternation; false when none is left. */

Source from the content-addressed store, hash-verified

6075
6076/* Open the next label's scan of an alternation; false when none is left. */
6077static bool start_source_next_label(start_source_t *src) {
6078 char *tok = strtok_r(src->labels_started ? NULL : src->labels, "|", &src->labels_save);
6079 src->labels_started = true;
6080 if (!tok) {
6081 return false;
6082 }
6083 src->scan = cbm_store_node_scan_open(src->store, src->project, tok);
6084 if (!src->scan) {
6085 start_source_fail(src, cbm_store_error(src->store));
6086 }
6087 return true;
6088}
6089
6090/* Fill out[0..max) with the next start nodes. Fewer than max only once the
6091 * scan is exhausted or has failed. */

Callers 1

start_source_nextFunction · 0.85

Calls 3

cbm_store_node_scan_openFunction · 0.85
start_source_failFunction · 0.85
cbm_store_errorFunction · 0.85

Tested by

no test coverage detected