Mercurial > hg > Applications > Grep
diff regexParser/node.cc @ 214:a94f57af1600
remove allocateCCstate createCCState
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 28 Dec 2015 20:32:36 +0900 |
parents | b0ae5273925c |
children | 4852bfa85db4 |
line wrap: on
line diff
--- a/regexParser/node.cc Mon Dec 28 19:02:14 2015 +0900 +++ b/regexParser/node.cc Mon Dec 28 20:32:36 2015 +0900 @@ -17,7 +17,7 @@ break; } } - printf("(%d)\n",cc->stateNum); + printf("(%lx)\n",cc->nextState.bitContainer); if (cc->right) { printCharacterClass(cc->right,nodeNumber,d+1); } @@ -33,7 +33,9 @@ for (int i = 0; i < n->cc->cond.w.length; i++) { putchar(n->cc->cond.w.word[i]); } - printf("(%ld)\n",n->state->bitState.bitContainer); + if (n->state) { + printf("(%ld)\n",n->state->bitState.bitContainer); + } } else if (n->tokenType == 'c') { printCharacterClass(n->cc,n->stateNum,d); } else if (n->tokenType == 'a') {