X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=vm%2FBitVector.h;h=2ac0ddf58f6fdb48e8cd27bc97edde796ae1d205;hb=c5d0614f778e0f26db913fdc7320f08e9417e984;hp=d1a0ca31d85edcc2542a995a0b590211c1450238;hpb=a8c503a292fd9e40d683a28f445319d09094f4e3;p=android-x86%2Fdalvik.git diff --git a/vm/BitVector.h b/vm/BitVector.h index d1a0ca31d..2ac0ddf58 100644 --- a/vm/BitVector.h +++ b/vm/BitVector.h @@ -17,8 +17,8 @@ /* * Miscellaneous utility functions. */ -#ifndef _DALVIK_BITVECTOR -#define _DALVIK_BITVECTOR +#ifndef DALVIK_BITVECTOR_H_ +#define DALVIK_BITVECTOR_H_ /* * Expanding bitmap, used for tracking resources. Bits are numbered starting @@ -26,18 +26,18 @@ * * All operations on a BitVector are unsynchronized. */ -typedef struct BitVector { +struct BitVector { bool expandable; /* expand bitmap if we run out? */ u4 storageSize; /* current size, in 32-bit words */ u4* storage; -} BitVector; +}; /* Handy iterator to walk through the bit positions set to 1 */ -typedef struct BitVectorIterator { +struct BitVectorIterator { BitVector *pBits; u4 idx; u4 bitSize; -} BitVectorIterator; +}; /* allocate a bit vector with enough space to hold "startBits" bits */ BitVector* dvmAllocBitVector(unsigned int startBits, bool expandable); @@ -100,4 +100,4 @@ void dvmBitVectorIteratorInit(BitVector* pBits, BitVectorIterator* iterator); /* Return the next position set to 1. -1 means end-of-vector reached */ int dvmBitVectorIteratorNext(BitVectorIterator* iterator); -#endif /*_DALVIK_BITVECTOR*/ +#endif // DALVIK_BITVECTOR_H_