home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / euc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.1 KB  |  37 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_EUC_H
  11. #define _SYS_EUC_H
  12.  
  13. #ident    "@(#)/usr/include/sys/euc.h.sl 1.1 4.0 12/08/90 26061 AT&T-USL"
  14.  
  15. #ifndef    NOTASCII
  16. #define    SS2    0x8e
  17. #define    SS3    0x8f
  18.  
  19.     /* NOTE: c of following macros must be the 1st byte of characters */
  20. #define    ISASCII(c)    (!((c) & ~0177))
  21. #define    NOTASCII(c)    ((c) & ~0177)
  22. #define    ISSET2(c)    ((c) == SS2)
  23. #define    ISSET3(c)    ((c) == SS3)
  24. #define ISPRINT(c, wp)    (wp._multibyte && !ISASCII(c) || isprint(c))
  25.             /* eucwidth_t wp; */
  26.  
  27. typedef struct {
  28.     short int _eucw1, _eucw2, _eucw3;    /*    EUC width    */
  29.     short int _scrw1, _scrw2, _scrw3;    /*    screen width    */
  30.     short int _pcw;        /*    WIDE_CHAR width    */
  31.     char _multibyte;    /*    1=multi-byte, 0=single-byte    */
  32. } eucwidth_t;
  33. #endif
  34.  
  35.  
  36. #endif    /* _SYS_EUC_H */
  37.