diff options
author | Bruce Momjian | 2005-12-25 02:14:19 +0000 |
---|---|---|
committer | Bruce Momjian | 2005-12-25 02:14:19 +0000 |
commit | 261114a23f51c3d35a50ac27f2f453c6767bfeff (patch) | |
tree | be7be693d6fe6782a4f1535fa3b05cb2e76cb363 /src/include/c.h | |
parent | a4d69a410d9690340456c11dec5be1200ce760b7 (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/c.h')
-rw-r--r-- | src/include/c.h | 5 |
1 files changed, 3 insertions, 2 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) |