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

Function tf_same_dir

src/pipeline/pass_terraform.c:741–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741static bool tf_same_dir(const char *p, const char *q) {
742 const char *ps = strrchr(p, '/');
743 const char *qs = strrchr(q, '/');
744 size_t pl = ps ? (size_t)(ps - p) : 0;
745 size_t ql = qs ? (size_t)(qs - q) : 0;
746 return pl == ql && strncmp(p, q, pl) == 0;
747}
748
749/* One reference edge; 1 when made. */
750static int tf_ref_edge(tf_mod_t *m, int64_t src, int64_t tgt, const char *type, const char *ref,

Callers 1

tf_link_repoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected