Check if any definition with the given label has the given name. */
| 31 | |
| 32 | /* Check if any definition with the given label has the given name. */ |
| 33 | static int has_def(CBMFileResult *r, const char *label, const char *name) { |
| 34 | for (int i = 0; i < r->defs.count; i++) { |
| 35 | if (strcmp(r->defs.items[i].label, label) == 0 && strcmp(r->defs.items[i].name, name) == 0) |
| 36 | return 1; |
| 37 | } |
| 38 | return 0; |
| 39 | } |
| 40 | |
| 41 | /* Check if any definition has the given name (any label). */ |
| 42 | static int has_def_any(CBMFileResult *r, const char *name) { |
no outgoing calls
no test coverage detected