Pure predicate: no SQLite, store, scope or walker call, including on cancellation. */
| 18 | typedef struct { uint64_t calls, trip; bool armed, stop; } ss_cancel_t; |
| 19 | /* Pure predicate: no SQLite, store, scope or walker call, including on cancellation. */ |
| 20 | static 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 | } |
| 25 | static bool ss_eq(const char *a, const char *b) { return a && b && strcmp(a,b)==0; } |
| 26 | static int ss_sql(cbm_store_t *s, const char *sql) { |
| 27 | return sqlite3_exec(cbm_store_get_db(s), sql, NULL, NULL, NULL); |
nothing calls this directly
no outgoing calls
no test coverage detected