| 641 | }; |
| 642 | |
| 643 | static void handle_attr_line(struct attr_stack *res, |
| 644 | const char *line, |
| 645 | const char *src, |
| 646 | int lineno, |
| 647 | unsigned flags) |
| 648 | { |
| 649 | struct match_attr *a; |
| 650 | |
| 651 | a = parse_attr_line(line, src, lineno, flags); |
| 652 | if (!a) |
| 653 | return; |
| 654 | ALLOC_GROW_BY(res->attrs, res->num_matches, 1, res->alloc); |
| 655 | res->attrs[res->num_matches - 1] = a; |
| 656 | } |
| 657 | |
| 658 | static struct attr_stack *read_attr_from_array(const char **list) |
| 659 | { |
no test coverage detected