Check if any definition has the given name (any label). */
| 23 | |
| 24 | /* Check if any definition has the given name (any label). */ |
| 25 | static int has_def_any(CBMFileResult *r, const char *name) { |
| 26 | for (int i = 0; i < r->defs.count; i++) { |
| 27 | if (strcmp(r->defs.items[i].name, name) == 0) |
| 28 | return 1; |
| 29 | } |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | /* Check if any call to the given callee exists. */ |
| 34 | static int has_call(CBMFileResult *r, const char *callee) { |