view c/regexParser/bitVector.h @ 161:584f32e18398 testcode

close
author masa
date Fri, 18 Dec 2015 19:17:02 +0900
parents 66c633575b53
children c292c67b3100
line wrap: on
line source

#include "regexParser.h"

#define BITBLOCK (sizeof(unsigned long) * 8)
typedef struct bitVector {
    int arrayNum;
    unsigned long *bitContainer;
}BitVector,*BitVectorPtr;

typedef struct bitVectorList {
    bitVectorList *self;
    BitVectorPtr bi;
    bitVectorList* initBvl;
    bitVectorList* next[256];
    bool isLoopAnker;
    bool isLoop;
}BitVectorList, *BitVectorListPtr;

BitVectorListPtr createBitVector(NodePtr,BitVectorListPtr);
BitVectorPtr bitSet(int);
void bitPrint(BitVectorPtr);