| 1803 | } |
| 1804 | |
| 1805 | static void clr_hit_marker(struct grep_expr *x) |
| 1806 | { |
| 1807 | /* All-hit markers are meaningful only at the very top level |
| 1808 | * OR node. |
| 1809 | */ |
| 1810 | while (1) { |
| 1811 | x->hit = 0; |
| 1812 | if (x->node != GREP_NODE_OR) |
| 1813 | return; |
| 1814 | x->u.binary.left->hit = 0; |
| 1815 | x = x->u.binary.right; |
| 1816 | } |
| 1817 | } |
| 1818 | |
| 1819 | static int chk_hit_marker(struct grep_expr *x) |
| 1820 | { |