diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/config.h.in | 4 | ||||
| -rw-r--r-- | src/include/utils/varbit.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in index e8bb0305ca..51f22a9a63 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -8,7 +8,7 @@ * or in config.h afterwards. Of course, if you edit config.h, then your * changes will be overwritten the next time you run configure. * - * $Id: config.h.in,v 1.131 2000/08/20 10:55:34 petere Exp $ + * $Id: config.h.in,v 1.132 2000/08/26 21:53:40 tgl Exp $ */ #ifndef CONFIG_H @@ -221,7 +221,7 @@ * You can try changing this if you have a machine with bytes of another * size, but no guarantee... */ -#define BITSPERBYTE 8 +#define BITS_PER_BYTE 8 /* * Define this is your operating system kernel supports AF_UNIX family diff --git a/src/include/utils/varbit.h b/src/include/utils/varbit.h index e3ff9a8efb..ed3710ddf7 100644 --- a/src/include/utils/varbit.h +++ b/src/include/utils/varbit.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: varbit.h,v 1.6 2000/08/21 04:48:54 tgl Exp $ + * $Id: varbit.h,v 1.7 2000/08/26 21:53:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -49,13 +49,13 @@ typedef struct /* Number of bytes in the data section of a bit string */ #define VARBITBYTES(PTR) (VARSIZE(PTR) - VARHDRSZ - VARBITHDRSZ) /* Padding of the bit string at the end (in bits) */ -#define VARBITPAD(PTR) (VARBITBYTES(PTR)*BITSPERBYTE - VARBITLEN(PTR)) +#define VARBITPAD(PTR) (VARBITBYTES(PTR)*BITS_PER_BYTE - VARBITLEN(PTR)) /* Number of bytes needed to store a bit string of a given length */ -#define VARBITTOTALLEN(BITLEN) (((BITLEN) + BITSPERBYTE-1)/BITSPERBYTE + \ +#define VARBITTOTALLEN(BITLEN) (((BITLEN) + BITS_PER_BYTE-1)/BITS_PER_BYTE + \ VARHDRSZ + VARBITHDRSZ) /* pointer beyond the end of the bit string (like end() in STL containers) */ #define VARBITEND(PTR) (((bits8 *) (PTR)) + VARSIZE(PTR)) -/* Mask that will cover exactly one byte, i.e. BITSPERBYTE bits */ +/* Mask that will cover exactly one byte, i.e. BITS_PER_BYTE bits */ #define BITMASK 0xFF #define BITHIGH 0x80 |
