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

Function node_new

src/foundation/yaml.c:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43/* ── Node lifecycle ───────────────────────────────────────────── */
44
45static cbm_yaml_node_t *node_new(yaml_type_t type) {
46 cbm_yaml_node_t *n = calloc(CBM_ALLOC_ONE, sizeof(*n));
47 if (n) {
48 n->type = type;
49 }
50 return n;
51}
52
53static bool node_add_child(cbm_yaml_node_t *parent, cbm_yaml_node_t *child) {
54 if (!parent || !child) {

Callers 3

parse_list_itemFunction · 0.85
parse_key_lineFunction · 0.85
cbm_yaml_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected