| 1579 | } |
| 1580 | |
| 1581 | static int count_live_nodes(cbm_gbuf_t *gb) { |
| 1582 | int count = 0; |
| 1583 | for (int i = 0; i < gb->nodes.count; i++) { |
| 1584 | cbm_gbuf_node_t *n = gb->nodes.items[i]; |
| 1585 | if (n->qualified_name && cbm_ht_get(gb->node_by_qn, n->qualified_name)) { |
| 1586 | count++; |
| 1587 | } |
| 1588 | } |
| 1589 | return count; |
| 1590 | } |
| 1591 | |
| 1592 | static void generate_iso_timestamp(char *buf, size_t buf_size) { |
| 1593 | time_t now = time(NULL); |
no test coverage detected