Returns USAGE edge count (-1 on DB failure). */
| 176 | |
| 177 | /* Returns USAGE edge count (-1 on DB failure). */ |
| 178 | static int lrp_usage(LRP_Proj *lp, const LRP_File *files, int nfiles) { |
| 179 | cbm_store_t *store = lrp_index(lp, files, nfiles); |
| 180 | int n = store ? cbm_store_count_edges_by_type(store, lp->project, "USAGE") : -1; |
| 181 | lrp_cleanup(lp, store); |
| 182 | return n; |
| 183 | } |
| 184 | |
| 185 | /* Diagnostic: dump edge histogram to stderr on failure. */ |
| 186 | static const char *LRP_ALL_EDGE_TYPES[] = { |
no test coverage detected