Mercurial > hg > Applications > Grep
diff regexParser/threadedSearch.cc @ 281:b74e3b4b11d7
parallel search done
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Jan 2016 18:28:58 +0900 |
parents | 99d635926ef3 |
children | 87a801c14117 |
line wrap: on
line diff
--- a/regexParser/threadedSearch.cc Sun Jan 31 16:59:43 2016 +0900 +++ b/regexParser/threadedSearch.cc Sun Jan 31 18:28:58 2016 +0900 @@ -5,8 +5,6 @@ #include "threadedSearch.h" #include "subsetConstruction.h" -void tSearch(TSValue tsv); - static TSValue stateNothing(TSValue tsv) { return tsv; @@ -82,7 +80,7 @@ return state->tState; } -void tSearch(TSValue tsv) { +TSValue tSearch(TSValue tsv) { next: while (tsv.buff.buffptr < tsv.buff.buffend) { unsigned char c = *tsv.buff.buffptr++; // printState(tsv.current->state); @@ -109,6 +107,7 @@ } tsv = tsv.current->stateSkip(tsv); } + return tsv; } void threadedSearch(TransitionGeneratorPtr tg, Buffer buff) {