/*  DO NOT EDIT THIS FILE.

    It has been auto-edited by fixincludes from:

	"/usr/include/ctype.h"

    This had to be done to correct non-standard usages in the
    original, manufacturer supplied header file.  */

/* @(#) $Revision: ../hdr/ctype.h@@/main/i80/7 $ */
#ifndef _CTYPE_INCLUDED
#define _CTYPE_INCLUDED

#ifndef _SYS_STDSYMS_INCLUDED
#  include <sys/stdsyms.h>
#endif /* _SYS_STDSYMS_INCLUDED */


#ifndef _FAST_SHLIB_CALLS
#  if defined(_HP_SHLIB_CALLS) && !defined(__LP64__)
#    define _FAST_SHLIB_CALLS
#  endif
#endif /* _FAST_SHLIB_CALLS */

#ifdef __cplusplus
extern "C" {
#endif

#ifdef _INCLUDE__STDC__
#ifdef _PROTOTYPES
_NAMESPACE_STD_START
     extern int isalnum(int);
     extern int isalpha(int);
     extern int iscntrl(int);
     extern int isdigit(int);
     extern int isgraph(int);
     extern int islower(int);
     extern int isprint(int);
     extern int ispunct(int);
     extern int isspace(int);
     extern int isupper(int);
     extern int isxdigit(int);
_NAMESPACE_STD_END
#  else /* not _PROTOTYPES */
     extern int isalnum();
     extern int isalpha();
     extern int iscntrl();
     extern int isdigit();
     extern int isgraph();
     extern int islower();
     extern int isprint();
     extern int ispunct();
     extern int isspace();
     extern int isupper();
     extern int isxdigit();
#endif /* _PROTOTYPES */

#  ifndef __lint
     extern unsigned char 		*__ctype;
     extern unsigned char               *__ctype2;

     extern unsigned char		*__upshift;
     extern unsigned char		*__downshift;

#  endif /* __lint */

#endif /* _INCLUDE__STDC__ */

/* These are Standard C APIs and should always be available. */
#ifdef _HP_SHLIB_CALLS
#  pragma HP_DEFINED_EXTERNAL tolower,toupper
#endif /* _HP_SHLIB_CALLS */
#ifdef _FAST_SHLIB_CALLS
#  pragma HP_NO_RELOCATION tolower,toupper
#  pragma HP_LONG_RETURN tolower,toupper
#endif /* _FAST_SHLIB_CALLS */

#ifdef _PROTOTYPES
_NAMESPACE_STD_START
extern int tolower(int);
extern int toupper(int);
_NAMESPACE_STD_END
#else /* NOT _PROTOTYPES */
extern int tolower();
extern int toupper();
#endif /* _PROTOTYPES */

#ifdef _INCLUDE_XOPEN_SOURCE

#if !defined(_SB_CTYPE_MACROS)
#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL isascii,toascii
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION isascii,toascii
#    pragma HP_LONG_RETURN isascii,toascii
#  endif /* _FAST_SHLIB_CALLS */

#  ifdef _PROTOTYPES
     extern int isascii(int);
     extern int toascii(int);
#  else /* NOT _PROTOTYPES */
     extern int isascii();
     extern int toascii();
#  endif /* _PROTOTYPES */

#else /* !defined(_SB_CTYPE_MACROS) */

#  ifndef __lint
#    define isascii(__c)		((unsigned) (__c)<=0177)
#    define toascii(__c)		((__c)&0177)
#  endif /* __lint */
#endif /* !defined(_SB_CTYPE_MACROS) */

#ifdef _HP_SHLIB_CALLS
#  pragma HP_DEFINED_EXTERNAL __tolower,__toupper
#endif /* _HP_SHLIB_CALLS */
#ifdef _FAST_SHLIB_CALLS
#  pragma HP_NO_RELOCATION __tolower,__toupper
#  pragma HP_LONG_RETURN __tolower,__toupper
#endif /* _FAST_SHLIB_CALLS */

#ifdef _PROTOTYPES
extern int __tolower(int);
extern int __toupper(int);
#else /* NOT _PROTOTYPES */
extern int __tolower();
extern int __toupper();
#endif /* _PROTOTYPES */


#  define _toupper(__c)         __toupper(__c)
#  define _tolower(__c)         __tolower(__c) 

#endif /* _INCLUDE_XOPEN_SOURCE */

#ifdef _INCLUDE_HPUX_SOURCE

#  define _ISALPHA	0x001
#  define _ISALNUM	0x002
#  define _ISBLANK	0x004
#  define _ISCNTRL	0x008
#  define _ISDIGIT	0x010
#  define _ISGRAPH	0x020
#  define _ISLOWER	0x040
#  define _ISPRINT	0x080
#  define _ISPUNCT	0x100
#  define _ISSPACE	0x200
#  define _ISUPPER	0x400
#  define _ISXDIGIT	0x800
   /*
    * Number of character classes defined above
    */
#  define _NUM_CLASSES	12

#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL isctype,isblank,_isalnum,_isalpha,_iscntrl
#    pragma HP_DEFINED_EXTERNAL _isdigit,_isgraph,_islower,_isprint
#    pragma HP_DEFINED_EXTERNAL _ispunct,_isspace,_isupper,_isxdigit
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION isctype,isblank,_isalnum,_isalpha,_iscntrl
#    pragma HP_NO_RELOCATION _isdigit,_isgraph,_islower,_isprint
#    pragma HP_NO_RELOCATION _ispunct,_isspace,_isupper,_isxdigit
#    pragma HP_LONG_RETURN isctype,isblank,_isalnum,_isalpha,_iscntrl
#    pragma HP_LONG_RETURN _isdigit,_isgraph,_islower,_isprint
#    pragma HP_LONG_RETURN _ispunct,_isspace,_isupper,_isxdigit
#  endif /* _FAST_SHLIB_CALLS */

#  ifdef _PROTOTYPES
     extern int isctype(int, unsigned int);
     extern int isblank(int);
#  else /* NOT _PROTOTYPES */
     extern int isctype();
     extern int isblank();
#  endif /* _PROTOTYPES */

#  if !defined(__lint)
     extern unsigned int *__SB_masks;
#ifdef _PROTOTYPES
     extern int _isalnum(int);
     extern int _isalpha(int);
     extern int _iscntrl(int);
     extern int _isdigit(int);
     extern int _isgraph(int);
     extern int _islower(int);
     extern int _isprint(int);
     extern int _ispunct(int);
     extern int _isspace(int);
     extern int _isupper(int);
     extern int _isxdigit(int);
#  else /* not _PROTOTYPES */
     extern int _isalnum();
     extern int _isalpha();
     extern int _iscntrl();
     extern int _isdigit();
     extern int _isgraph();
     extern int _islower();
     extern int _isprint();
     extern int _ispunct();
     extern int _isspace();
     extern int _isupper();
     extern int _isxdigit();
#endif /* _PROTOTYPES */


#    define isalpha(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISALPHA \
				             : _isalpha(__c))
#    define isalnum(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISALNUM \
					     : _isalnum(__c))
#    define iscntrl(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISCNTRL \
					     : _iscntrl(__c))
#    define isdigit(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISDIGIT \
					     : _isdigit(__c))
#    define isgraph(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISGRAPH \
					     : _isgraph(__c))
#    define islower(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISLOWER \
					     : _islower(__c))
#    define isprint(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISPRINT \
					     : _isprint(__c))
#    define ispunct(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISPUNCT \
					     : _ispunct(__c))
#    define isspace(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISSPACE \
					     : _isspace(__c))
#    define isupper(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISUPPER \
					     : _isupper(__c))
#    define isxdigit(__c)	(__SB_masks ? (int)__SB_masks[__c] & _ISXDIGIT \
					     : _isxdigit(__c))
#  endif /* !defined(__lint) */

   /* The following character class constants are obsolete: */
#  define _U	01
#  define _L	02
#  define _N	04
#  define _S	010 
#  define _P	020
#  define _C	040
#  define _B	0100 
#  define _X	0200
#  define _A    01
#  define _G    02
#  define _PR   04

#endif /* _INCLUDE_HPUX_SOURCE */

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* _CTYPE_INCLUDED */
