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

Function spawn_string_receiver

internal/cbm/spawn_patterns.c:460–465  ·  view source on GitHub ↗

Groovy `"git status".execute`: a quoted receiver, then the api suffix. */

Source from the content-addressed store, hash-verified

458
459/* Groovy `"git status".execute`: a quoted receiver, then the api suffix. */
460static bool spawn_string_receiver(const char *callee, const char *suffix) {
461 size_t cl = strlen(callee);
462 size_t sl = strlen(suffix);
463 return (callee[0] == '"' || callee[0] == '\'') && cl > sl + 1 &&
464 strcmp(callee + cl - sl, suffix) == 0 && callee[cl - sl - 1] == callee[0];
465}
466
467static bool spawn_entry_matches(const cbm_spawn_api_t *e, const char *callee, const char *expanded,
468 const CBMImport *imports, int count) {

Callers 1

spawn_entry_matchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected