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

Function sh_set

src/pipeline/pass_shell.c:469–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467} sh_t;
468
469static void sh_set(sh_t *s, const char *name, const sh_val_t *v, bool local) {
470 if (!sh_grow((void **)&s->undo, &s->cap_undo, s->nundo, sizeof(*s->undo))) {
471 return;
472 }
473 s->undo[s->nundo++] = (sh_undo_t){name, cbm_ht_get(s->env, name), local};
474 cbm_ht_set(s->env, name, (void *)v);
475}
476
477static sh_mark_t sh_mark(const sh_t *s) {
478 return (sh_mark_t){s->nundo, s->cwd, s->ndirs};

Callers 7

sh_group_endFunction · 0.85
sh_eval_expansionFunction · 0.85
sh_assignFunction · 0.85
sh_declareFunction · 0.85
sh_loopFunction · 0.85
sh_walkFunction · 0.85
sh_ci_varFunction · 0.85

Calls 3

sh_growFunction · 0.85
cbm_ht_getFunction · 0.85
cbm_ht_setFunction · 0.85

Tested by

no test coverage detected