Mercurial > hg > Applications > Grep
diff c/regexParser/subsetConstraction.cc @ 117:166136236891 pairPro
add header files
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 25 Nov 2015 14:58:03 +0900 |
parents | 66c633575b53 |
children | c292c67b3100 |
line wrap: on
line diff
--- a/c/regexParser/subsetConstraction.cc Tue Nov 24 17:07:08 2015 +0900 +++ b/c/regexParser/subsetConstraction.cc Wed Nov 25 14:58:03 2015 +0900 @@ -1,10 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <ctype.h> -#include "bitVector.h" - -extern BitVectorListPtr initBitVector(); -BitVectorListPtr setNextBitVectorList(unsigned char, BitVectorListPtr, BitVectorListPtr); +#include "subsetConstraction.h" void printBitVectorList (BitVectorListPtr bvl) { bool isFirstPrint = true; @@ -29,6 +26,7 @@ } } +const BitVectorListPtr descendTreeNode(NodePtr n,BitVectorListPtr bvl, BitVectorListPtr prev, bool &fromOr, bool &fromAsterisk) { bool leftIsOr, rightIsOr; if (n->cc->cond->character == '*') { @@ -72,6 +70,7 @@ return bvl; } +const BitVectorListPtr setNextBitVectorList(unsigned char inputChar, BitVectorListPtr bvl, BitVectorListPtr next){ if (isalnum((int)inputChar)){ bvl->next[(int)inputChar] = next;