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