/*  DO NOT EDIT THIS FILE.

    It has been auto-edited by fixincludes from:

	"/usr/include/wchar.h"

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

/* "@(#) wchar.h $Revision: ../hdr/wchar.h@@/main/r11ros/cup_ros-cpe/cup_libc-ros-cpe/3 $" */

#ifndef _WCHAR_INCLUDED
#  define _WCHAR_INCLUDED

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

#ifdef _NAMESPACE_STD
#define _NAMESPACE_STD_START namespace std {
#define _NAMESPACE_STD_END }
#define _hpux_size_t std::size_t
#define __time_t std::time_t
#define __FILE std::FILE
#define __wint_t std::wint_t
#define __struct_tm std::tm
#define __va__list std::va_list
#else
#define _NAMESPACE_STD_START
#define _NAMESPACE_STD_END
#define _hpux_size_t size_t
#define __time_t time_t
#define __FILE FILE
#define __wint_t wint_t
#define __struct_tm struct tm
#define __va__list va_list
#endif

/* preinclude guards needed for aC++ namespace std */
#ifndef _CTYPE_INCLUDED
#  include <ctype.h>      /* _U, _L, etc             */
#endif
#ifndef _STDDEF_INCLUDED
#  include <stddef.h>     /* NULL, size_t, etc       */
#endif
#ifndef _STDIO_INCLUDED
#  include <stdio.h>      /* stdio prototypes        */
#endif
#ifndef _STDLIB_INCLUDED
#  include <stdlib.h>     /* multibyte prototypes    */
#endif
#ifndef _TIME_INCLUDED
#  include <time.h>       /* tm struct               */
#endif

#ifdef __cplusplus
extern "C" {
#endif

#   ifndef _WCHAR_T_INCLUDED
#       include <sys/_wchar_t.h>
#   endif /** _WCHAR_T_INCLUDED **/

_NAMESPACE_STD_START
#  ifndef _WINT_T
#     define _WINT_T 
   typedef unsigned int wint_t;
#  endif

#  ifndef _WCTYPE_T
#     define _WCTYPE_T
      typedef unsigned int wctype_t;
#  endif
_NAMESPACE_STD_END

#  define WEOF  (wint_t)(-1)

#  ifndef _WPI_PROTOS
#     define _WPI_PROTOS
#     if defined(__STDC__) || defined(__cplusplus)
_NAMESPACE_STD_START
	 /* Wide String Manipulation */
         extern wchar_t       *wcscat(wchar_t *, const wchar_t *);
         extern wchar_t       *wcsncat(wchar_t *, const wchar_t *, size_t);
         extern wchar_t       *wcscpy(wchar_t *, const wchar_t *);
         extern wchar_t       *wcsncpy(wchar_t *, const wchar_t *, size_t);
#if defined(__HP_NO_STRING_OVERLOADS) ||        \
   !(defined(_NAMESPACE_STD)          ||        \
     defined(__HPACC_STRICTER_ANSI__) ||        \
     defined(_HP_NAMESPACE_STD))
#      ifdef _XPG4_EXTENDED
         extern wchar_t       *wcschr(const wchar_t *, wchar_t);
         extern wchar_t       *wcsrchr(const wchar_t *, wchar_t);
#      else /* ! _XPG4_EXTENDED */
         extern wchar_t       *wcschr(const wchar_t *, wint_t);
         extern wchar_t       *wcsrchr(const wchar_t *, wint_t);
#      endif /* _XPG4_EXTENDED */
         extern wchar_t       *wcspbrk(const wchar_t *, const wchar_t *);
#else
/* These functions are defined in <cwchar> */
#endif /* defined(__HP_NO_STRING_OVERLOADS) || ... */
         extern size_t        wcslen(const wchar_t *);
         extern size_t        wcsspn(const wchar_t *, const wchar_t *);
         extern size_t        wcscspn(const wchar_t *, const wchar_t *);
         extern int           wcscmp(const wchar_t *, const wchar_t *);
         extern int           wcsncmp(const wchar_t *, const wchar_t *, size_t);
         extern wchar_t       *wcstok(wchar_t *, const wchar_t *);
_NAMESPACE_STD_END
         extern wchar_t       *wcswcs(const wchar_t *, const wchar_t *);
#      ifdef _REENTRANT
#    ifdef _PTHREADS_DRAFT4
         extern wchar_t       *wcstok_r(wchar_t *, const wchar_t *, wchar_t **);
#     endif /* _PTHREADS_DRAFT4 */
#      endif /* _REENTRANT */
_NAMESPACE_STD_START
	 extern int           wcscoll(const wchar_t *, const wchar_t *);
         extern size_t        wcsxfrm(wchar_t *, const wchar_t *, size_t);
_NAMESPACE_STD_END
         extern int           wcswidth(const wchar_t *, _hpux_size_t);
#      ifdef _XPG4_EXTENDED
         extern int           wcwidth(wchar_t);
#      else /* ! _XPG4_EXTENDED */
         extern int           wcwidth(__wint_t);
#      endif /* _XPG4_EXTENDED */
_NAMESPACE_STD_START
	 /* Wide Character Classification */
         extern int           iswalnum(wint_t);
         extern int           iswalpha(wint_t);
         extern int           iswcntrl(wint_t);
         extern int           iswdigit(wint_t);
         extern int           iswgraph(wint_t);
         extern int           iswlower(wint_t);
         extern int           iswprint(wint_t);
         extern int           iswpunct(wint_t);
         extern int           iswspace(wint_t);
         extern int           iswupper(wint_t);
         extern int           iswxdigit(wint_t);
         extern wint_t        towlower(wint_t);
         extern wint_t        towupper(wint_t);
         extern wctype_t      wctype(const char *);
         extern int           iswctype(wint_t, wctype_t);

	 /* Wide Character I/O */
         extern wint_t        fgetwc(FILE *);
         extern wchar_t       *fgetws(wchar_t *, int, FILE *);
         extern wint_t        fputwc(wint_t, FILE *);
         extern int           fputws(const wchar_t *, FILE *);
         extern wint_t        getwc(FILE *);
         extern wint_t        getwchar(void);
         extern wint_t        putwc(wint_t, FILE *);
         extern wint_t        putwchar(wint_t);
         extern wint_t        ungetwc(wint_t, FILE *);

	 /* Wide Character Numeric/Time Conversion */
         extern double        wcstod(const wchar_t *, wchar_t **);
         extern long int      wcstol(const wchar_t *, wchar_t **, int);
         extern unsigned long int wcstoul(const wchar_t *, wchar_t **, int);
         extern size_t        wcsftime(wchar_t *, size_t, const char *,
				       const struct tm *);
_NAMESPACE_STD_END

#ifdef _INCLUDE_XOPEN_SOURCE_EXTENDED 
	 extern wchar_t	      *getws(wchar_t *);
	 extern int	      putws(const wchar_t *);
#endif /* _INCLUDE_XOPEN_SOURCE_EXTENDED */

#     else  /* _STDC_ || __cplusplus */
	 /* Wide String Manipulation */
         extern wchar_t       *wcscat();
         extern wchar_t       *wcsncat();
         extern wchar_t       *wcscpy();
         extern wchar_t       *wcsncpy();
         extern wchar_t       *wcschr();
         extern wchar_t       *wcsrchr();
         extern size_t        wcslen();
         extern size_t        wcsspn();
         extern size_t        wcscspn();
         extern int           wcscmp();
         extern int           wcsncmp();
         extern wchar_t       *wcspbrk();
         extern wchar_t       *wcswcs();
         extern wchar_t       *wcstok();
#      ifdef _REENTRANT
#    ifdef _PTHREADS_DRAFT4
         extern wchar_t       *wcstok_r();
#     endif /* _PTHREADS_DRAFT4 */
#      endif /* _REENTRANT */
	 extern int           wcscoll();
         extern size_t        wcsxfrm();
         extern int           wcswidth();
         extern int           wcwidth();

	 /* Wide Character Classification */
         extern int           iswalnum();
         extern int           iswalpha();
         extern int           iswcntrl();
         extern int           iswdigit();
         extern int           iswgraph();
         extern int           iswlower();
         extern int           iswprint();
         extern int           iswpunct();
         extern int           iswspace();
         extern int           iswupper();
         extern int           iswxdigit();
         extern wint_t        towlower();
         extern wint_t        towupper();
         extern wctype_t      wctype();
         extern int           iswctype();

	 /* Wide Character I/O */
         extern wint_t        fgetwc();
         extern wchar_t       *fgetws();
         extern wint_t        fputwc();
         extern int           fputws();
         extern wint_t        getwc();
         extern wint_t        getwchar();
         extern wint_t        putwc();
         extern wint_t        putwchar();
         extern wint_t        ungetwc();

	 /* Wide Character Numeric/Time Conversion */
         extern double        wcstod();
         extern long int      wcstol();
         extern unsigned long int wcstoul();
         extern size_t        wcsftime();

#ifdef _INCLUDE_XOPEN_SOURCE_EXTENDED 
	 extern wchar_t	      *getws();
	 extern int	      putws();
#endif /* _INCLUDE_XOPEN_SOURCE_EXTENDED */

#     endif /* _STDC_ || __cplusplus */
#  endif /* _WPI_PROTOS */

#ifdef _INCLUDE_HPUX_SOURCE

#  ifdef _PROTOTYPES
     extern int iswblank(__wint_t);
#       ifdef _PTHREADS_DRAFT4
     extern wchar_t       *fgetws_unlocked(wchar_t *, int, __FILE *);
     extern int           fputws_unlocked(const wchar_t *, __FILE *);
     extern __wint_t      getwc_unlocked(__FILE *);
     extern __wint_t      getwchar_unlocked(void);
     extern __wint_t      putwc_unlocked(__wint_t, __FILE *);
     extern __wint_t      putwchar_unlocked(__wint_t);
     extern int           putws_unlocked(const wchar_t *);
     extern __wint_t      ungetwc_unlocked(__wint_t, __FILE *);
#	endif /* _PTHREADS_DRAFT4 */
#  else /* NOT _PROTOTYPES */
     extern int iswblank();
#	ifdef _PTHREADS_DRAFT4
     extern wchar_t       *fgetws_unlocked();
     extern int           fputws_unlocked();
     extern wint_t        getwc_unlocked();     
     extern wint_t        getwchar_unlocked();
     extern wint_t        putwc_unlocked();
     extern wint_t        putwchar_unlocked();
     extern int           putws_unlocked();
     extern wint_t        ungetwc_unlocked();
#	endif /* _PTHREADS_DRAFT4 */
#  endif /* _PROTOTYPES */

#endif /* _INCLUDE_HPUX_SOURCE */

#  ifndef __lint
#     define getwchar()			getwc(stdin)
#     define putwchar(wc)		putwc(wc,stdout)
#  endif /* __lint */

#ifdef __cplusplus
}
#endif

#endif  /* _WCHAR_INCLUDED */
