| 2474 | } |
| 2475 | |
| 2476 | static int count_live_nodes(cbm_gbuf_t *gb) { |
| 2477 | int count = 0; |
| 2478 | for (int i = 0; i < gb->nodes.count; i++) { |
| 2479 | cbm_gbuf_node_t *n = gb->nodes.items[i]; |
| 2480 | if (n->qualified_name && cbm_ht_get(gb->node_by_qn, n->qualified_name)) { |
| 2481 | count++; |
| 2482 | } |
| 2483 | } |
| 2484 | return count; |
| 2485 | } |
| 2486 | |
| 2487 | static void generate_iso_timestamp(char *buf, size_t buf_size) { |
| 2488 | time_t now = time(NULL); |
no test coverage detected