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

Function spawn_imports_module

internal/cbm/spawn_patterns.c:444–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444static bool spawn_imports_module(const CBMImport *imports, int count, const char *module) {
445 size_t ml = strlen(module);
446 for (int i = 0; i < count; i++) {
447 if (!imports[i].module_path) {
448 continue;
449 }
450 const char *val = spawn_module(imports[i].module_path);
451 if (strncmp(val, module, ml) == 0 &&
452 (val[ml] == '\0' || val[ml] == '.' || val[ml] == ':' || val[ml] == '/')) {
453 return true;
454 }
455 }
456 return false;
457}
458
459/* Groovy `"git status".execute`: a quoted receiver, then the api suffix. */
460static bool spawn_string_receiver(const char *callee, const char *suffix) {

Callers 1

spawn_entry_matchesFunction · 0.85

Calls 1

spawn_moduleFunction · 0.85

Tested by

no test coverage detected