| 269 | } op_nodes_t; |
| 270 | |
| 271 | static void op_nodes_push(op_nodes_t *v, const cbm_gbuf_node_t *n) { |
| 272 | if (v->count == v->cap) { |
| 273 | int cap = v->cap ? v->cap * PAIR_LEN : OP_GROW_MIN; |
| 274 | const cbm_gbuf_node_t **grown = |
| 275 | cbm_realloc(CBM_MEM_CLASS_OTHER, (void *)v->items, (size_t)cap * sizeof(*grown)); |
| 276 | if (!grown) { |
| 277 | return; |
| 278 | } |
| 279 | v->items = grown; |
| 280 | v->cap = cap; |
| 281 | } |
| 282 | v->items[v->count++] = n; |
| 283 | } |
| 284 | |
| 285 | static void op_free_nodes_entry(const char *key, void *value, void *ud) { |
| 286 | (void)ud; |
no test coverage detected