The def with this label and name, or NULL. */
| 9264 | |
| 9265 | /* The def with this label and name, or NULL. */ |
| 9266 | static const CBMDefinition *doc_def(CBMFileResult *r, const char *label, const char *name) { |
| 9267 | for (int i = 0; i < r->defs.count; i++) { |
| 9268 | const CBMDefinition *d = &r->defs.items[i]; |
| 9269 | if (d->label && d->name && strcmp(d->label, label) == 0 && strcmp(d->name, name) == 0) { |
| 9270 | return d; |
| 9271 | } |
| 9272 | } |
| 9273 | return NULL; |
| 9274 | } |
| 9275 | |
| 9276 | TEST(doc_go_comment_group_without_directives) { |
| 9277 | CBMFileResult *r = extract("package knob\n\n" |