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

Function pc_same_binding

src/pipeline/pass_calls.c:408–412  ·  view source on GitHub ↗

Two imports bind the same name to the same thing. */

Source from the content-addressed store, hash-verified

406
407/* Two imports bind the same name to the same thing. */
408static bool pc_same_binding(const CBMImport *a, const CBMImport *b) {
409 return a->is_default == b->is_default && strcmp(a->module_path, b->module_path) == 0 &&
410 (a->member == b->member ||
411 (a->member && b->member && strcmp(a->member, b->member) == 0));
412}
413
414/* The callee as its import makes it; false when the import adds nothing to
415 * the callee's own spelling.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected