| 183 | } |
| 184 | |
| 185 | struct option *parse_options_concat(const struct option *a, |
| 186 | const struct option *b) |
| 187 | { |
| 188 | struct option *ret; |
| 189 | size_t a_len = parse_options_count(a); |
| 190 | size_t b_len = parse_options_count(b); |
| 191 | |
| 192 | ALLOC_ARRAY(ret, st_add3(a_len, b_len, 1)); |
| 193 | COPY_ARRAY(ret, a, a_len); |
| 194 | COPY_ARRAY(ret + a_len, b, b_len + 1); /* + 1 for final OPTION_END */ |
| 195 | |
| 196 | return ret; |
| 197 | } |
| 198 | |
| 199 | int parse_opt_string_list(const struct option *opt, const char *arg, int unset) |
| 200 | { |
no test coverage detected