Return the first definition with the given name, or NULL. */
| 6321 | |
| 6322 | /* Return the first definition with the given name, or NULL. */ |
| 6323 | static const CBMDefinition *find_def(CBMFileResult *r, const char *name) { |
| 6324 | for (int i = 0; i < r->defs.count; i++) { |
| 6325 | if (strcmp(r->defs.items[i].name, name) == 0) |
| 6326 | return &r->defs.items[i]; |
| 6327 | } |
| 6328 | return NULL; |
| 6329 | } |
| 6330 | |
| 6331 | TEST(complexity_nested_loops_depth) { |
| 6332 | CBMFileResult *r = extract("package p\n" |