Mercurial > hg > Applications > Grep
diff regexParser/node.cc @ 187:ef798db705e9 pairPro
remove some warnings and errors(not working)
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 24 Dec 2015 22:38:50 +0900 |
parents | b9e913030a47 |
children | 3e8e5780ad4a |
line wrap: on
line diff
--- a/regexParser/node.cc Thu Dec 24 20:37:29 2015 +0900 +++ b/regexParser/node.cc Thu Dec 24 22:38:50 2015 +0900 @@ -15,7 +15,7 @@ break; } } - printf("(%lu)\n",nodeNumber); + printf("(%ld)\n",nodeNumber); if (cc->right) { printCharacterClass(cc->right,nodeNumber,d+1); } @@ -31,11 +31,11 @@ for (int i = 0; i < n->cc->cond.w.length; i++) { putchar(n->cc->cond.w.word[i]); } - printf("(%lu)\n",n->nodeNumber); + printf("(%d)\n",n->stateNum); } else if (n->tokenType == 'c') { - printCharacterClass(n->cc,n->nodeNumber,d); + printCharacterClass(n->cc,n->stateNum,d); } else if (n->tokenType == 'a') { - printf("%*c%c(%lu)\n",d*4, ' ',n->tokenType,n->nodeNumber); + printf("%*c%c(%d)\n",d*4, ' ',n->tokenType,n->stateNum); } else { printf("%*c%c\n",d*4, ' ',n->tokenType); }