| 191 | } op_modules_t; |
| 192 | |
| 193 | static void op_modules_free(op_modules_t *m) { |
| 194 | for (int i = 0; i < m->count; i++) { |
| 195 | cbm_free(CBM_MEM_CLASS_OTHER, m->items[i].path); |
| 196 | cbm_free(CBM_MEM_CLASS_OTHER, m->items[i].dir); |
| 197 | } |
| 198 | cbm_free(CBM_MEM_CLASS_OTHER, m->items); |
| 199 | *m = (op_modules_t){0}; |
| 200 | } |
| 201 | |
| 202 | /* Note the `module` line of a go.mod at `file`. */ |
| 203 | static void op_note_module(op_modules_t *m, const char *file, const char *text) { |
no test coverage detected