| 1253 | } |
| 1254 | |
| 1255 | static int count_calls_named(const CBMFileResult *r, const char *name) { |
| 1256 | int n = 0; |
| 1257 | for (int i = 0; i < r->calls.count; i++) { |
| 1258 | if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, name) == 0) { |
| 1259 | n++; |
| 1260 | } |
| 1261 | } |
| 1262 | return n; |
| 1263 | } |
| 1264 | |
| 1265 | /* The same source parsed with the row exclusion and without it (test seam). */ |
| 1266 | static CBMFileResult *extract_sql_full(const char *src, const char *path) { |