| 76 | } dl_fix_t; |
| 77 | |
| 78 | static bool dl_fix_init(dl_fix_t *fx) { |
| 79 | snprintf(fx->tmpdir, sizeof(fx->tmpdir), "/tmp/cbm_doclinks_XXXXXX"); |
| 80 | if (!cbm_mkdtemp(fx->tmpdir)) { |
| 81 | return false; |
| 82 | } |
| 83 | fx->project = cbm_project_name_from_path(fx->tmpdir); |
| 84 | fx->gb = cbm_gbuf_new(fx->project, fx->tmpdir); |
| 85 | return fx->gb != NULL; |
| 86 | } |
| 87 | |
| 88 | static void dl_fix_free(dl_fix_t *fx) { |
| 89 | cbm_gbuf_free(fx->gb); |
no test coverage detected