Mercurial > hg > Applications > Grep
diff regexParser/grepWalk.cc @ 237:b809e7b62986
add memo
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 19 Jan 2016 19:24:01 +0900 |
parents | 4aab1e93a971 |
children | 6aebc4d7dd75 |
line wrap: on
line diff
--- a/regexParser/grepWalk.cc Tue Jan 19 18:21:09 2016 +0900 +++ b/regexParser/grepWalk.cc Tue Jan 19 19:24:01 2016 +0900 @@ -17,11 +17,11 @@ unsigned char c = *buff.buffptr++; if (c=='\0') return; StatePtr state = tg->stateList; - bool found = false; - while (state->bitState.bitContainer != d) state = state->next; + while (state->bitState.bitContainer != d) state = state->next; // 配列へのアクセスへ変更 CharClassWalkerPtr ccw = createCharClassWalker(state->cc); CharClassPtr cc = NULL; + bool found = false; while (hasNext(ccw)) { cc = getNext(ccw); unsigned long begin = cc->cond.range.begin;