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

Function build_entry_path

src/pipeline/pass_pkgmap.c:376–382  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

parse_cargo_tomlFunction · 0.85
parse_pyproject_tomlFunction · 0.85

Calls 1

path_dirnameFunction · 0.85

Tested by

no test coverage detected