| 194 | } |
| 195 | |
| 196 | static cbm_ti_source_t *tis_build(const char *const *files, int count) { |
| 197 | cbm_ti_source_t *s = cbm_ti_source_new(); |
| 198 | if (!s) { |
| 199 | return NULL; |
| 200 | } |
| 201 | for (int i = 0; i < count; i += 2) { |
| 202 | if (!cbm_ti_source_add(s, files[i], files[i + 1], strlen(files[i + 1]))) { |
| 203 | cbm_ti_source_free(s); |
| 204 | return NULL; |
| 205 | } |
| 206 | } |
| 207 | if (!cbm_ti_source_finish(s)) { |
| 208 | cbm_ti_source_free(s); |
| 209 | return NULL; |
| 210 | } |
| 211 | return s; |
| 212 | } |
| 213 | |
| 214 | static bool tis_has(const char *const *list, int count, const char *word) { |
| 215 | for (int i = 0; i < count; i++) { |
no test coverage detected