Mercurial > hg > Applications > Grep
comparison regexParser/threadedSearch.cc @ 262:157f6886ba55
write driver of threadedSearch
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 19:32:18 +0900 |
parents | 3f3c9902bb6d |
children | 292753bb31e4 |
comparison
equal
deleted
inserted
replaced
261:2b36dde3ffb7 | 262:157f6886ba55 |
---|---|
83 } | 83 } |
84 } | 84 } |
85 tsv.current->stateSkip(tsv); | 85 tsv.current->stateSkip(tsv); |
86 } | 86 } |
87 } | 87 } |
88 | |
89 void threadedSearch(TransitionGeneratorPtr tg, Buffer buff) { | |
90 TSValue tsv; | |
91 tsv.buff = buff; | |
92 tsv.tg = tg; | |
93 tsv.current = generateTState(tg->stateList); | |
94 stateSkip(tsv); | |
95 } |