Check if any call to the given callee exists. */
| 35 | |
| 36 | /* Check if any call to the given callee exists. */ |
| 37 | static int has_call(CBMFileResult *r, const char *callee) { |
| 38 | for (int i = 0; i < r->calls.count; i++) { |
| 39 | if (strstr(r->calls.items[i].callee_name, callee) != NULL) |
| 40 | return 1; |
| 41 | } |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | /* Check if any import with the given module path exists. */ |
| 46 | static int __attribute__((unused)) has_import(CBMFileResult *r, const char *path_substr) { |