diff options
author | keichii <keichii@FreeBSD.org> | 2002-08-16 13:42:59 +0000 |
---|---|---|
committer | keichii <keichii@FreeBSD.org> | 2002-08-16 13:42:59 +0000 |
commit | 74943c8903a3a81bf7cbeca7f906cbae26802fa8 (patch) | |
tree | 37b8d1103991c1de05d0e95ec3c0c792c388fa89 /include | |
parent | 2b82cd24f10c789221e2b4edc59b96a7733b9e71 (diff) | |
download | FreeBSD-src-74943c8903a3a81bf7cbeca7f906cbae26802fa8.zip FreeBSD-src-74943c8903a3a81bf7cbeca7f906cbae26802fa8.tar.gz |
Add swidth definition for wchar stuff
Submitted by: clkao@clkao.org
Reviewed by: keichii
Obtained from: NetBSD
MFC after: 1 month
Diffstat (limited to 'include')
-rw-r--r-- | include/_ctype.h | 6 | ||||
-rw-r--r-- | include/ctype.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/_ctype.h b/include/_ctype.h index e5ec784..294ab23 100644 --- a/include/_ctype.h +++ b/include/_ctype.h @@ -65,6 +65,12 @@ #define _CTYPE_I 0x00080000L /* Ideogram */ #define _CTYPE_T 0x00100000L /* Special */ #define _CTYPE_Q 0x00200000L /* Phonogram */ +#define _CTYPE_SWM 0xe0000000L /* Mask to get screen width data */ +#define _CTYPE_SWS 30 /* Bits to shift to get width */ +#define _CTYPE_SW0 0x20000000L /* 0 width character */ +#define _CTYPE_SW1 0x00000000L /* 1 width character / default*/ +#define _CTYPE_SW2 0x80000000L /* 2 width character */ +#define _CTYPE_SW3 0xc0000000L /* 3 width character */ __BEGIN_DECLS int isalnum(int); diff --git a/include/ctype.h b/include/ctype.h index e5ec784..294ab23 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -65,6 +65,12 @@ #define _CTYPE_I 0x00080000L /* Ideogram */ #define _CTYPE_T 0x00100000L /* Special */ #define _CTYPE_Q 0x00200000L /* Phonogram */ +#define _CTYPE_SWM 0xe0000000L /* Mask to get screen width data */ +#define _CTYPE_SWS 30 /* Bits to shift to get width */ +#define _CTYPE_SW0 0x20000000L /* 0 width character */ +#define _CTYPE_SW1 0x00000000L /* 1 width character / default*/ +#define _CTYPE_SW2 0x80000000L /* 2 width character */ +#define _CTYPE_SW3 0xc0000000L /* 3 width character */ __BEGIN_DECLS int isalnum(int); |