| 90 | } |
| 91 | |
| 92 | void strvec_remove(struct strvec *array, size_t idx) |
| 93 | { |
| 94 | if (idx >= array->nr) |
| 95 | BUG("index outside of array boundary"); |
| 96 | free((char *)array->v[idx]); |
| 97 | memmove(array->v + idx, array->v + idx + 1, (array->nr - idx) * sizeof(char *)); |
| 98 | array->nr--; |
| 99 | } |
| 100 | |
| 101 | void strvec_pop(struct strvec *array) |
| 102 | { |
no outgoing calls