| 761 | } |
| 762 | |
| 763 | static struct grep_var * |
| 764 | grepsearch(const char *name) |
| 765 | { |
| 766 | /* XXX make into binary search */ |
| 767 | int x = 0; |
| 768 | |
| 769 | while (x < SIZE(grep_vars) - 1) { |
| 770 | if (!strcmp(grep_vars[x].name, name)) |
| 771 | return &grep_vars[x]; |
| 772 | x++; |
| 773 | } |
| 774 | return 0; |
| 775 | } |
| 776 | |
| 777 | static int |
| 778 | grep_check_id(const char *id) |
no outgoing calls
no test coverage detected