From 74943c8903a3a81bf7cbeca7f906cbae26802fa8 Mon Sep 17 00:00:00 2001 From: keichii Date: Fri, 16 Aug 2002 13:42:59 +0000 Subject: Add swidth definition for wchar stuff Submitted by: clkao@clkao.org Reviewed by: keichii Obtained from: NetBSD MFC after: 1 month --- include/_ctype.h | 6 ++++++ include/ctype.h | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'include') 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); -- cgit v1.1