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

Function ej_add_reader

src/pipeline/pass_envjoin.c:293–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static void ej_add_reader(ej_t *j, const char *key, int64_t node, const char *file) {
294 if (!key || !file || !file[0] || cbm_is_test_path(file)) {
295 return;
296 }
297 ej_reader_t r = {node, cbm_arena_strdup(&j->a, file)};
298 if (r.file) {
299 ej_push(&j->a, j->readers, j->nreaders, key, &r, sizeof(r));
300 }
301}
302
303/* Build edges: an Image's Dockerfile (when exactly one), a compose service's
304 * own build. */

Callers 2

ej_index_gbufFunction · 0.85
ej_index_baseFunction · 0.85

Calls 3

cbm_is_test_pathFunction · 0.85
ej_pushFunction · 0.85
cbm_arena_strdupFunction · 0.50

Tested by

no test coverage detected