Mercurial > hg > Applications > Grep
diff 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 |
line wrap: on
line diff
--- a/regexParser/threadedSearch.cc Fri Jan 29 19:37:11 2016 +0900 +++ b/regexParser/threadedSearch.cc Fri Jan 29 20:38:18 2016 +0900 @@ -7,15 +7,18 @@ void tSearch(TSValue tsv); +static TSValue stateNothing(TSValue tsv) { return tsv; } +static TSValue stateSkip(TSValue tsv) { tsv.buff.matchBegin = tsv.buff.buffptr; return tsv; } +static TSValue stateMatch(TSValue tsv) { fwrite(tsv.buff.matchBegin,tsv.buff.buffptr-tsv.buff.matchBegin-1,1,stdout); puts("");