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

Function ss_cancel

tests/test_store_scope.c:20–24  ·  view source on GitHub ↗

Pure predicate: no SQLite, store, scope or walker call, including on cancellation. */

Source from the content-addressed store, hash-verified

18typedef struct { uint64_t calls, trip; bool armed, stop; } ss_cancel_t;
19/* Pure predicate: no SQLite, store, scope or walker call, including on cancellation. */
20static bool ss_cancel(void *opaque) {
21 ss_cancel_t *c = opaque;
22 if (c->calls < UINT64_MAX) c->calls++;
23 return c->stop || (c->armed && c->calls >= c->trip);
24}
25static bool ss_eq(const char *a, const char *b) { return a && b && strcmp(a,b)==0; }
26static int ss_sql(cbm_store_t *s, const char *sql) {
27 return sqlite3_exec(cbm_store_get_db(s), sql, NULL, NULL, NULL);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected