changeset 237:b809e7b62986

add memo
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Tue, 19 Jan 2016 19:24:01 +0900
parents c90d155c1063
children 5d66672e5029
files regexParser/grepWalk.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;