Check if any definition has the given name (any label). */
| 40 | |
| 41 | /* Check if any definition has the given name (any label). */ |
| 42 | static int has_def_any(CBMFileResult *r, const char *name) { |
| 43 | for (int i = 0; i < r->defs.count; i++) { |
| 44 | if (strcmp(r->defs.items[i].name, name) == 0) |
| 45 | return 1; |
| 46 | } |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | /* Check if any call to the given callee exists. */ |
| 51 | static int has_call(CBMFileResult *r, const char *callee) { |