Mercurial > hg > Applications > Grep
changeset 258:29e467a491ba
remove error and add threadedSearch.h
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 02:30:51 +0900 |
parents | ebb429c2b6a7 |
children | 6a6546a753cf |
files | regexParser/threadedSearch.cc regexParser/threadedSearch.h |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/regexParser/threadedSearch.cc Mon Jan 25 19:20:32 2016 +0900 +++ b/regexParser/threadedSearch.cc Tue Jan 26 02:30:51 2016 +0900 @@ -2,6 +2,7 @@ #include <stdlib.h> #include "regexParser.h" +#include "threadedSearch.h" #include "subsetConstruction.h" void stateSkip(TSValue tsv) { @@ -46,7 +47,7 @@ for (int i = 0; i < tsv.current->ccvSize; i++) { CCVPtr ccv = &tsv.current->ccv[i]; if (c<ccv->begin) { - tsv.stateSkip(tsv); + tsv.current->stateSkip(tsv); goto next; } else if (c<=ccv->end) { // range matched. @@ -73,7 +74,7 @@ } tsv.current = ccv->tState; if (tsv.current->state->bitState.bitContainer & 2) { - tsv.stateMatch(); + tsv.current->stateMatch(tsv); } goto next; }