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

Function sh_ci_var

src/pipeline/pass_shell.c:3852–3858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3850} sh_ci_t;
3851
3852static void sh_ci_var(sh_t *s, const char *name, const char *value) {
3853 sh_val_t *v = value ? cbm_arena_alloc(s->a, sizeof(*v)) : NULL;
3854 if (v) {
3855 *v = (sh_val_t){value, NULL, 0};
3856 }
3857 sh_set(s, name, v ? v : &SH_UNKNOWN_VAL, false);
3858}
3859
3860/* A command line CI runs: evaluated from its directory with its variables;
3861 * $0 is unknown. */

Callers 1

sh_ci_cmdFunction · 0.85

Calls 2

sh_setFunction · 0.85
cbm_arena_allocFunction · 0.50

Tested by

no test coverage detected