Mercurial > hg > Applications > Grep
diff regexParser/cerium/ppe/Exec.cc @ 304:c48a8671ce34
fix parallel search first match
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Feb 2016 12:24:47 +0900 |
parents | cc770cd8d000 |
children |
line wrap: on
line diff
--- a/regexParser/cerium/ppe/Exec.cc Mon Feb 08 11:56:13 2016 +0900 +++ b/regexParser/cerium/ppe/Exec.cc Mon Feb 08 12:24:47 2016 +0900 @@ -16,9 +16,9 @@ ResultPtr result = NULL; tsv.blk->resultEnd = &result; tsv.blk->blockBegin = tsv.current; + addResult(tsv,true,buff.buff,buff.buffend); // entire buffer tsv = tSearch(tsv); tsv.blk->blockEnd = tsv.current; - addResult(tsv,true,buff.buff,buff.buffend); // entire buffer if (tsv.blk->blockEnd->state->bitState.bitContainer != 1) { if (tsv.matchBegin != tsv.buff.buffptr) { // partial match case at block end.