| 196 | } |
| 197 | |
| 198 | void string_list_setlen(struct string_list *list, size_t nr) |
| 199 | { |
| 200 | if (list->strdup_strings) |
| 201 | BUG("cannot setlen a string_list which owns its entries"); |
| 202 | if (nr > list->nr) |
| 203 | BUG("cannot grow a string_list with setlen"); |
| 204 | list->nr = nr; |
| 205 | } |
| 206 | |
| 207 | struct string_list_item *string_list_append_nodup(struct string_list *list, |
| 208 | char *string) |
no outgoing calls