Mercurial > hg > Members > masakoha > testcode
comparison regexParser/threadedSearch.cc @ 259:6a6546a753cf
tSearch of driver in main.cc (not working)
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 13:34:33 +0900 |
parents | 29e467a491ba |
children | 3f3c9902bb6d |
comparison
equal
deleted
inserted
replaced
258:29e467a491ba | 259:6a6546a753cf |
---|---|
3 | 3 |
4 #include "regexParser.h" | 4 #include "regexParser.h" |
5 #include "threadedSearch.h" | 5 #include "threadedSearch.h" |
6 #include "subsetConstruction.h" | 6 #include "subsetConstruction.h" |
7 | 7 |
8 void tSearch(TSValue tsv); | |
9 | |
8 void stateSkip(TSValue tsv) { | 10 void stateSkip(TSValue tsv) { |
9 tsv.buff.matchBegin = tsv.buff.buffptr; | 11 tsv.buff.matchBegin = tsv.buff.buffptr; |
10 tsv.current->stateSkip(tsv); | 12 tSearch(tsv); |
11 } | 13 } |
12 | 14 |
13 void stateMatch(TSValue tsv) { | 15 void stateMatch(TSValue tsv) { |
14 tsv.buff.matchBegin = tsv.buff.buffptr; | 16 fwrite(tsv.buff.matchBegin,tsv.buff.buffptr-buff.matchBegin,1,stdout); |
15 tsv.current->stateSkip(tsv); | 17 puts("\n"); |
18 grepSkip(tg,buff); | |
16 } | 19 } |
17 | 20 |
18 TStatePtr generateTState(StatePtr state) { | 21 TStatePtr generateTState(StatePtr state) { |
19 TStatePtr tState = NEW(TState); | 22 TStatePtr tState = NEW(TState); |
20 int ccvSize = 0; | 23 int ccvSize = 0; |