mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +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:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mb/conv.c,v 1.56 2005/10/29 00:31:52 petere Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mb/conv.c,v 1.57 2005/12/25 02:14:17 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -413,7 +413,7 @@ LocalToUtf(unsigned char *iso, unsigned char *utf,
|
||||
|
||||
for (; len > 0 && *iso; len -= l)
|
||||
{
|
||||
if (*iso < 0x80)
|
||||
if (!IS_HIGHBIT_SET(*iso))
|
||||
{
|
||||
*utf++ = *iso++;
|
||||
l = 1;
|
||||
|
||||
Reference in New Issue
Block a user