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

Function mcp_sqlite_transient

src/mcp/mcp.c:4009–4014  ·  view source on GitHub ↗

Module-local SQLITE_TRANSIENT wrapper to dodge performance-no-int-to-ptr. * See the matching helper in src/store/store.c for the same pattern. */

Source from the content-addressed store, hash-verified

4007/* Module-local SQLITE_TRANSIENT wrapper to dodge performance-no-int-to-ptr.
4008 * See the matching helper in src/store/store.c for the same pattern. */
4009static sqlite3_destructor_type mcp_sqlite_transient(void) {
4010 static const volatile intptr_t raw = -1;
4011 sqlite3_destructor_type dtor = NULL;
4012 memcpy(&dtor, (const void *)&raw, sizeof(dtor));
4013 return dtor;
4014}
4015#define MCP_SQLITE_TRANSIENT (mcp_sqlite_transient())
4016
4017static int bm25_build_match(const char *query, char *out, size_t out_size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected