Mercurial > hg > Applications > Grep
comparison regexParser/subsetConstruction.cc @ 268:0e423d9f9647
remove error (remain 1 warning(no use variable))
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 29 Jan 2016 16:06:11 +0900 |
parents | 5d4afe6f6d00 |
children | 6640b0d5bf13 |
comparison
equal
deleted
inserted
replaced
267:5d4afe6f6d00 | 268:0e423d9f9647 |
---|---|
196 // if (word case) setNext(bitVector to the word list) | 196 // if (word case) setNext(bitVector to the word list) |
197 cc->nextState = bi; | 197 cc->nextState = bi; |
198 if (cc->left) { | 198 if (cc->left) { |
199 setState(cc->left,bi); | 199 setState(cc->left,bi); |
200 } | 200 } |
201 cc->nextState = bi; | |
202 if (cc->right) { | 201 if (cc->right) { |
203 setState(cc->right,bi); | 202 setState(cc->right,bi); |
204 } | 203 } |
205 } | 204 } |
206 | 205 |
420 while (hasNext(cw)) { | 419 while (hasNext(cw)) { |
421 CharClassPtr cc = getNext(cw); | 420 CharClassPtr cc = getNext(cw); |
422 BitVector bi = cc->nextState; | 421 BitVector bi = cc->nextState; |
423 if (tg->stateArray[bi.bitContainer]) continue; // already done | 422 if (tg->stateArray[bi.bitContainer]) continue; // already done |
424 StatePtr s = createState(tg,bi); // s is added at the end of stateList. | 423 StatePtr s = createState(tg,bi); // s is added at the end of stateList. |
424 determinize(s,tg); | |
425 tg->stateArray[bi.bitContainer] = s; | 425 tg->stateArray[bi.bitContainer] = s; |
426 determinize(s,tg); | |
427 } | 426 } |
428 free(cw); | 427 free(cw); |
429 } | 428 } |
430 } | 429 } |