Mercurial > hg > Applications > Grep
comparison regexParser/threadedSearch.cc @ 272:5aa9d01926f1
Cerium version no compile errors
author | kono |
---|---|
date | Fri, 29 Jan 2016 20:38:18 +0900 |
parents | c82f7e7f66f7 |
children | 8879eb8c64a8 |
comparison
equal
deleted
inserted
replaced
271:6640b0d5bf13 | 272:5aa9d01926f1 |
---|---|
5 #include "threadedSearch.h" | 5 #include "threadedSearch.h" |
6 #include "subsetConstruction.h" | 6 #include "subsetConstruction.h" |
7 | 7 |
8 void tSearch(TSValue tsv); | 8 void tSearch(TSValue tsv); |
9 | 9 |
10 static | |
10 TSValue stateNothing(TSValue tsv) { | 11 TSValue stateNothing(TSValue tsv) { |
11 return tsv; | 12 return tsv; |
12 } | 13 } |
13 | 14 |
15 static | |
14 TSValue stateSkip(TSValue tsv) { | 16 TSValue stateSkip(TSValue tsv) { |
15 tsv.buff.matchBegin = tsv.buff.buffptr; | 17 tsv.buff.matchBegin = tsv.buff.buffptr; |
16 return tsv; | 18 return tsv; |
17 } | 19 } |
18 | 20 |
21 static | |
19 TSValue stateMatch(TSValue tsv) { | 22 TSValue stateMatch(TSValue tsv) { |
20 fwrite(tsv.buff.matchBegin,tsv.buff.buffptr-tsv.buff.matchBegin-1,1,stdout); | 23 fwrite(tsv.buff.matchBegin,tsv.buff.buffptr-tsv.buff.matchBegin-1,1,stdout); |
21 puts(""); | 24 puts(""); |
22 tsv.current = tsv.tg->stateList->tState; | 25 tsv.current = tsv.tg->stateList->tState; |
23 tsv.buff.buffptr--; | 26 tsv.buff.buffptr--; |