| 834 | */ |
| 835 | |
| 836 | static short find_found(FOUND_SET *found_set,uint table_offset, |
| 837 | int found_offset) |
| 838 | { |
| 839 | int i; |
| 840 | for (i=0 ; (uint) i < found_sets ; i++) |
| 841 | if (found_set[i].table_offset == table_offset && |
| 842 | found_set[i].found_offset == found_offset) |
| 843 | return (short) (-i-2); |
| 844 | found_set[i].table_offset=table_offset; |
| 845 | found_set[i].found_offset=found_offset; |
| 846 | found_sets++; |
| 847 | return (short) (-i-2); /* return new position */ |
| 848 | } |
| 849 | |
| 850 | /* Return 1 if regexp starts with \b or ends with \b*/ |
| 851 |