| 1817 | } |
| 1818 | |
| 1819 | static int chk_hit_marker(struct grep_expr *x) |
| 1820 | { |
| 1821 | /* Top level nodes have hit markers. See if they all are hits */ |
| 1822 | while (1) { |
| 1823 | if (x->node != GREP_NODE_OR) |
| 1824 | return x->hit; |
| 1825 | if (!x->u.binary.left->hit) |
| 1826 | return 0; |
| 1827 | x = x->u.binary.right; |
| 1828 | } |
| 1829 | } |
| 1830 | |
| 1831 | int grep_source(struct grep_opt *opt, struct grep_source *gs) |
| 1832 | { |