| 113 | } |
| 114 | |
| 115 | static void mkc_cleanup(MKC_Proj *lp, cbm_store_t *store) { |
| 116 | if (store) |
| 117 | cbm_store_close(store); |
| 118 | if (lp->srv) { |
| 119 | cbm_mcp_server_free(lp->srv); |
| 120 | lp->srv = NULL; |
| 121 | } |
| 122 | free(lp->project); |
| 123 | lp->project = NULL; |
| 124 | th_rmtree(lp->tmpdir); |
| 125 | unlink(lp->dbpath); |
| 126 | char wal[600], shm[600]; |
| 127 | snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath); |
| 128 | snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath); |
| 129 | unlink(wal); |
| 130 | unlink(shm); |
| 131 | } |
| 132 | |
| 133 | static const char *MKC_ALL_EDGE_TYPES[] = {"CALLS", "DEFINES", "DEFINES_METHOD", "IMPORTS", |
| 134 | "INHERITS", "IMPLEMENTS", "USAGE", "DECORATES", |
no test coverage detected