Return 1 if any extracted definition has the given short name. */
| 45 | |
| 46 | /* Return 1 if any extracted definition has the given short name. */ |
| 47 | static int has_def(CBMFileResult *r, const char *name) { |
| 48 | for (int i = 0; i < r->defs.count; i++) { |
| 49 | if (r->defs.items[i].name && strcmp(r->defs.items[i].name, name) == 0) { |
| 50 | return 1; |
| 51 | } |
| 52 | } |
| 53 | return 0; |
| 54 | } |
| 55 | |
| 56 | /* ── Fixtures ─────────────────────────────────────────────────────────────── */ |
| 57 |