| 43 | /* ── Node lifecycle ───────────────────────────────────────────── */ |
| 44 | |
| 45 | static 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 | |
| 53 | static bool node_add_child(cbm_yaml_node_t *parent, cbm_yaml_node_t *child) { |
| 54 | if (!parent || !child) { |
no outgoing calls
no test coverage detected