diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-26 21:53:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-26 21:53:44 +0000 |
commit | d70bf0dd35544eba874007a9edc3ec08e047ef97 (patch) | |
tree | 2fd61e491850b15e3e2e07e3d55f58a2540d69f4 /src/backend/lib | |
parent | 662f6a557cbcaf977cdd8b58bc627ac2a8aa82d5 (diff) | |
download | postgresql-d70bf0dd35544eba874007a9edc3ec08e047ef97.tar.gz postgresql-d70bf0dd35544eba874007a9edc3ec08e047ef97.zip |
Rename BITSPERBYTE to BITS_PER_BYTE to avoid conflict with <values.h>
on some platforms.
Diffstat (limited to 'src/backend/lib')
-rw-r--r-- | src/backend/lib/bit.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/lib/bit.c b/src/backend/lib/bit.c index 2a0bcb24df7..cf5b720d960 100644 --- a/src/backend/lib/bit.c +++ b/src/backend/lib/bit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/lib/Attic/bit.c,v 1.10 2000/08/20 19:31:37 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/lib/Attic/bit.c,v 1.11 2000/08/26 21:53:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -21,21 +21,21 @@ void BitArraySetBit(BitArray bitArray, BitIndex bitIndex) { - bitArray[bitIndex / BITSPERBYTE] |= - (1 << (BITSPERBYTE - 1 - (bitIndex % BITSPERBYTE))); + bitArray[bitIndex / BITS_PER_BYTE] |= + (1 << (BITS_PER_BYTE - 1 - (bitIndex % BITS_PER_BYTE))); } void BitArrayClearBit(BitArray bitArray, BitIndex bitIndex) { - bitArray[bitIndex / BITSPERBYTE] &= - ~(1 << (BITSPERBYTE - 1 - (bitIndex % BITSPERBYTE))); + bitArray[bitIndex / BITS_PER_BYTE] &= + ~(1 << (BITS_PER_BYTE - 1 - (bitIndex % BITS_PER_BYTE))); } bool BitArrayBitIsSet(BitArray bitArray, BitIndex bitIndex) { - return ((bitArray[bitIndex / BITSPERBYTE] & - (1 << (BITSPERBYTE - 1 - (bitIndex % BITSPERBYTE))) + return ((bitArray[bitIndex / BITS_PER_BYTE] & + (1 << (BITS_PER_BYTE - 1 - (bitIndex % BITS_PER_BYTE))) ) != 0); } |