| 123 | } |
| 124 | |
| 125 | static void aa_collect_keys(const char *key, void *value, void *userdata) { |
| 126 | (void)value; |
| 127 | /* Keys were heap copies owned by us; collect for freeing. */ |
| 128 | struct { |
| 129 | char **keys; |
| 130 | int count; |
| 131 | int cap; |
| 132 | } *box = userdata; |
| 133 | if (box->count >= box->cap) |
| 134 | return; |
| 135 | box->keys[box->count++] = (char *)key; |
| 136 | } |
| 137 | |
| 138 | static void aa_children_free(aa_children_t *set) { |
| 139 | struct { |
nothing calls this directly
no outgoing calls
no test coverage detected