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

Function gc_is_param

src/pipeline/pass_operator.c:1433–1440  ·  view source on GitHub ↗

Is `name` a word of the enclosing function's signature (a parameter). */

Source from the content-addressed store, hash-verified

1431
1432/* Is `name` a word of the enclosing function's signature (a parameter). */
1433static bool gc_is_param(const gc_scope_t *sc, const char *name, size_t nl) {
1434 for (const char *p = sc->sig; sc->sig && p + nl <= sc->body; p++) {
1435 if (strncmp(p, name, nl) == 0 && !op_ident_char(p[-SKIP_ONE]) && !op_ident_char(p[nl])) {
1436 return true;
1437 }
1438 }
1439 return false;
1440}
1441
1442static void gc_eval(const gc_scope_t *sc, const char *s, size_t n, int depth, gc_val_t *out);
1443

Callers 1

gc_evalFunction · 0.85

Calls 1

op_ident_charFunction · 0.85

Tested by

no test coverage detected