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

Function build_entry_path

src/pipeline/pass_pkgmap.c:380–386  ·  view source on GitHub ↗

Build entry path: dir/suffix or just suffix if dir is empty. */

Source from the content-addressed store, hash-verified

378
379/* Build entry path: dir/suffix or just suffix if dir is empty. */
380static char *build_entry_path(const char *rel_path, const char *suffix) {
381 char *dir = path_dirname(rel_path);
382 char buf[PKGMAP_PATH_BUF];
383 snprintf(buf, sizeof(buf), "%s%s%s", dir[0] ? dir : "", dir[0] ? "/" : "", suffix);
384 free(dir);
385 return strdup(buf);
386}
387
388/* Rust: Cargo.toml — [package] name */
389static void parse_cargo_toml(const char *source, int source_len, const char *rel_path,

Callers 3

parse_cargo_tomlFunction · 0.85
parse_pyproject_tomlFunction · 0.85
swift_register_targetFunction · 0.85

Calls 1

path_dirnameFunction · 0.85

Tested by

no test coverage detected