Returns USAGE edge count (-1 on DB failure). */
| 193 | |
| 194 | /* Returns USAGE edge count (-1 on DB failure). */ |
| 195 | static int lrp_usage(LRP_Proj *lp, const LRP_File *files, int nfiles) { |
| 196 | cbm_store_t *store = lrp_index(lp, files, nfiles); |
| 197 | int n = store ? cbm_store_count_edges_by_type(store, lp->project, "USAGE") : -1; |
| 198 | lrp_cleanup(lp, store); |
| 199 | return n; |
| 200 | } |
| 201 | |
| 202 | /* Diagnostic: dump edge histogram to stderr on failure. */ |
| 203 | static const char *LRP_ALL_EDGE_TYPES[] = { |
no test coverage detected