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

Function sh_make_join

src/pipeline/pass_shell.c:1883–1888  ·  view source on GitHub ↗

-C DIR after `base`: DIR from base, an absolute (anchored) DIR alone. */

Source from the content-addressed store, hash-verified

1881
1882/* -C DIR after `base`: DIR from base, an absolute (anchored) DIR alone. */
1883static const char *sh_make_join(CBMArena *a, const char *base, const char *dir) {
1884 if (dir[0] == SH_ANCHOR || dir[0] == '/' || sh_eq(base, ".")) {
1885 return dir;
1886 }
1887 return cbm_arena_sprintf(a, "%s/%s", base, dir);
1888}
1889
1890/* The makefile make reads in directory `dir` (GNUmakefile, makefile,
1891 * Makefile, the first there is), for the one candidate of `dir` that has

Callers 1

sh_makeFunction · 0.85

Calls 2

sh_eqFunction · 0.85
cbm_arena_sprintfFunction · 0.50

Tested by

no test coverage detected