home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / update701 / root.18 / usr / include / unctrl.h / unctrl.h
Encoding:
C/C++ Source or Header  |  1998-08-18  |  1.5 KB  |  60 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. /*        copyright    "%c%"     */
  12.  
  13. /*
  14.  *      Copyright (c) 1982, 1986, 1988
  15.  *      The Regents of the University of California
  16.  *      All Rights Reserved.
  17.  *      Portions of this document are derived from
  18.  *      software developed by the University of
  19.  *      California, Berkeley, and its contributors.
  20.  */
  21.  
  22. #ifdef IDENT
  23. #ident    "@(#)icurses:screen/include/unctrl.h    1.4.2.2"
  24. #endif /* IDENT */
  25.  
  26. /*
  27.  * unctrl.h
  28.  *
  29.  */
  30.  
  31. #ifndef _UNCTRL_H
  32. #define    _UNCTRL_H
  33.  
  34. /*VSU5 change - added for UNIX98 mode compilation, line was:
  35. #if ((defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE_EXTENDED >= 1))
  36. */
  37. #if ((defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE_EXTENDED - 0 >= 1)) || (_XOPEN_SOURCE - 0 >= 500))
  38. /*VSU5 end change*/
  39. #ifndef _CHTYPE_T
  40. #define _CHTYPE_T
  41. #ifdef  CHTYPE
  42.     typedef CHTYPE chtype;
  43. #else
  44.     typedef unsigned long chtype;
  45. #endif /* CHTYPE */
  46. #endif /* _CHTYPE_T */
  47.  
  48. char *unctrl(chtype);
  49. #endif
  50.  
  51. extern char    *_unctrl[];
  52.  
  53. #if    !defined(NOMACROS) && !defined(lint)
  54.  
  55. #define    unctrl(ch)    (_unctrl[ch&0377])
  56.  
  57. #endif    /* NOMACROS && lint */
  58.  
  59. #endif    /* _UNCTRL_H */
  60.