mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
I have added these macros to c.h:
#define HIGHBIT (0x80) #define IS_HIGHBIT_SET(ch) ((unsigned char)(ch) & HIGHBIT) and removed CSIGNBIT and mapped it uses to HIGHBIT. I have also added uses for IS_HIGHBIT_SET where appropriate. This change is purely for code clarity.
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.104 2005/11/22 18:17:05 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.105 2005/12/25 02:14:17 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -111,7 +111,7 @@ heap_fill_tuple(TupleDesc tupleDesc,
|
||||
if (bit != NULL)
|
||||
{
|
||||
bitP = &bit[-1];
|
||||
bitmask = CSIGNBIT;
|
||||
bitmask = HIGHBIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -128,7 +128,7 @@ heap_fill_tuple(TupleDesc tupleDesc,
|
||||
|
||||
if (bit != NULL)
|
||||
{
|
||||
if (bitmask != CSIGNBIT)
|
||||
if (bitmask != HIGHBIT)
|
||||
bitmask <<= 1;
|
||||
else
|
||||
{
|
||||
@ -210,7 +210,7 @@ DataFill(char *data,
|
||||
if (bit != NULL)
|
||||
{
|
||||
bitP = &bit[-1];
|
||||
bitmask = CSIGNBIT;
|
||||
bitmask = HIGHBIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -227,7 +227,7 @@ DataFill(char *data,
|
||||
|
||||
if (bit != NULL)
|
||||
{
|
||||
if (bitmask != CSIGNBIT)
|
||||
if (bitmask != HIGHBIT)
|
||||
bitmask <<= 1;
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user