summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian2005-12-25 02:14:19 +0000
committerBruce Momjian2005-12-25 02:14:19 +0000
commit261114a23f51c3d35a50ac27f2f453c6767bfeff (patch)
treebe7be693d6fe6782a4f1535fa3b05cb2e76cb363 /src/include
parenta4d69a410d9690340456c11dec5be1200ce760b7 (diff)
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.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/c.h5
-rw-r--r--src/include/utils/varbit.h3
2 files changed, 4 insertions, 4 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 16b9f25a78c..1bf160f1618 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.192 2005/12/06 02:29:03 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.193 2005/12/25 02:14:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -704,7 +704,8 @@ typedef NameData *Name;
*/
/* msb for char */
-#define CSIGNBIT (0x80)
+#define HIGHBIT (0x80)
+#define IS_HIGHBIT_SET(ch) ((unsigned char)(ch) & HIGHBIT)
#define STATUS_OK (0)
#define STATUS_ERROR (-1)
diff --git a/src/include/utils/varbit.h b/src/include/utils/varbit.h
index 0ce818249b7..9565afed845 100644
--- a/src/include/utils/varbit.h
+++ b/src/include/utils/varbit.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/varbit.h,v 1.21 2004/12/31 22:03:46 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/utils/varbit.h,v 1.22 2005/12/25 02:14:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -58,7 +58,6 @@ typedef struct
#define VARBITEND(PTR) (((bits8 *) (PTR)) + VARSIZE(PTR))
/* Mask that will cover exactly one byte, i.e. BITS_PER_BYTE bits */
#define BITMASK 0xFF
-#define BITHIGH 0x80
extern Datum bit_in(PG_FUNCTION_ARGS);