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