From 7b2b779a2a00adef83ec530399aece723610d90c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 18 Jul 1998 18:34:34 +0000 Subject: Add auto-size to screen to \d? commands. Use UNION to show all \d? results in one query. Add \d? field search feature. Rename MB to MULTIBYTE. --- src/include/regex/regex2.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/include/regex/regex2.h') diff --git a/src/include/regex/regex2.h b/src/include/regex/regex2.h index 4590862486c..3bd1469750d 100644 --- a/src/include/regex/regex2.h +++ b/src/include/regex/regex2.h @@ -127,7 +127,7 @@ typedef struct { uch *ptr; /* -> uch [csetsize] */ uch mask; /* bit within array */ -#ifdef MB +#ifdef MULTIBYTE pg_wchar hash; /* hash code */ unsigned int lc; /* leading character (character-set) */ #else @@ -138,7 +138,7 @@ typedef struct } cset; /* note that CHadd and CHsub are unsafe, and CHIN doesn't yield 0/1 */ -#ifdef MB +#ifdef MULTIBYTE #define CHlc(c) (((unsigned)(c)&0xff0000)>>16) #define CHadd(cs, c) ((cs)->ptr[(unsigned)(c)&0xffff] |= (cs)->mask, (cs)->hash += (unsigned)(c)&0xffff,\ (cs)->lc = CHlc(c)) @@ -196,12 +196,12 @@ struct re_guts }; /* misc utilities */ -#ifdef MB -# if MB == MULE_INTERNAL +#ifdef MULTIBYTE +# if MULTIBYTE == MULE_INTERNAL # define OUT (16777216+1) /* 16777216 == 2^24 == 3 bytes */ -# elif MB == EUC_JP || MB == EUC_CN || MB == EUC_KR || MB == EUC_TW +# elif MULTIBYTE == EUC_JP || MULTIBYTE == EUC_CN || MULTIBYTE == EUC_KR || MULTIBYTE == EUC_TW # define OUT (USHRT_MAX+1) /* 2 bytes */ -# elif MB == UNICODE +# elif MULTIBYTE == UNICODE # define OUT (USHRT_MAX+1) /* 2 bytes. assuming UCS-2 */ # else # define OUT (UCHAR_MAX+1) /* other codes. assuming 1 byte */ @@ -210,7 +210,7 @@ struct re_guts # define OUT (CHAR_MAX+1) /* a non-character value */ #endif -#ifdef MB +#ifdef MULTIBYTE #define ISWORD(c) ((c >= 0 && c <= UCHAR_MAX) && \ (isalnum(c) || (c) == '_')) #else -- cgit v1.2.3