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

Function spawn_val_names

internal/cbm/spawn_patterns.c:408–416  ·  view source on GitHub ↗

True when `val` names `name` as its last segment ("subprocess.run" for * run, "java.lang.ProcessBuilder" for ProcessBuilder). */

Source from the content-addressed store, hash-verified

406/* True when `val` names `name` as its last segment ("subprocess.run" for
407 * run, "java.lang.ProcessBuilder" for ProcessBuilder). */
408static bool spawn_val_names(const char *val, const char *name) {
409 size_t vl = strlen(val);
410 size_t nl = strlen(name);
411 if (vl <= nl || strcmp(val + vl - nl, name) != 0) {
412 return false;
413 }
414 char sep = val[vl - nl - 1];
415 return sep == '.' || sep == ':' || sep == '/' || sep == '\\';
416}
417
418/* The callee as its import makes it: `sp.run` -> subprocess.run (an alias),
419 * `run` -> subprocess.run (a member import), `spawn` -> child_process.spawn

Callers 1

spawn_expandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected