Check if any call to the given callee exists. */
| 49 | |
| 50 | /* Check if any call to the given callee exists. */ |
| 51 | static int has_call(CBMFileResult *r, const char *callee) { |
| 52 | for (int i = 0; i < r->calls.count; i++) { |
| 53 | if (strstr(r->calls.items[i].callee_name, callee) != NULL) |
| 54 | return 1; |
| 55 | } |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | /* Check if any import with the given module path exists. */ |
| 60 | static int __attribute__((unused)) has_import(CBMFileResult *r, const char *path_substr) { |