Mercurial > hg > Applications > Grep
comparison regexParser/threadedSearch.cc @ 282:87a801c14117
fix match condition (parallel search doesn't work)
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Jan 2016 19:53:58 +0900 |
parents | b74e3b4b11d7 |
children | fbdb94df9eac |
comparison
equal
deleted
inserted
replaced
281:b74e3b4b11d7 | 282:87a801c14117 |
---|---|
81 } | 81 } |
82 | 82 |
83 TSValue tSearch(TSValue tsv) { | 83 TSValue tSearch(TSValue tsv) { |
84 next: while (tsv.buff.buffptr < tsv.buff.buffend) { | 84 next: while (tsv.buff.buffptr < tsv.buff.buffend) { |
85 unsigned char c = *tsv.buff.buffptr++; | 85 unsigned char c = *tsv.buff.buffptr++; |
86 // printState(tsv.current->state); | 86 // printState(tsv.current->state); |
87 for (int i = 0; i < tsv.current->ccvSize; i++) { | 87 for (int i = 0; i < tsv.current->ccvSize; i++) { |
88 CCVPtr ccv = &tsv.current->ccv[i]; | 88 CCVPtr ccv = &tsv.current->ccv[i]; |
89 if (c<ccv->begin) { | 89 if (c<ccv->begin) { |
90 tsv = tsv.current->stateSkip(tsv); | 90 tsv = tsv.current->stateSkip(tsv); |
91 goto next; | 91 goto next; |