xref: /illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/wchar (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
1
2/* : : generated by proto : : */
3/* : : generated from contrib/ast/src/lib/libast/features/wchar by iffe version 2012-07-17 : : */
4
5
6#if !defined(__PROTO__)
7#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
8#    if defined(__cplusplus)
9#      define __LINKAGE__	"C"
10#    else
11#      define __LINKAGE__
12#    endif
13#    define __STDARG__
14#    define __PROTO__(x)	x
15#    define __OTORP__(x)
16#    define __PARAM__(n,o)	n
17#    if !defined(__STDC__) && !defined(__cplusplus)
18#      if !defined(c_plusplus)
19#      	define const
20#      endif
21#      define signed
22#      define void		int
23#      define volatile
24#      define __V_		char
25#    else
26#      define __V_		void
27#    endif
28#  else
29#    define __PROTO__(x)	()
30#    define __OTORP__(x)	x
31#    define __PARAM__(n,o)	o
32#    define __LINKAGE__
33#    define __V_		char
34#    define const
35#    define signed
36#    define void		int
37#    define volatile
38#  endif
39#  define __MANGLE__	__LINKAGE__
40#  if defined(__cplusplus) || defined(c_plusplus)
41#    define __VARARG__	...
42#  else
43#    define __VARARG__
44#  endif
45#  if defined(__STDARG__)
46#    define __VA_START__(p,a)	va_start(p,a)
47#  else
48#    define __VA_START__(p,a)	va_start(p)
49#  endif
50#  if !defined(__INLINE__)
51#    if defined(__cplusplus)
52#      define __INLINE__	extern __MANGLE__ inline
53#    else
54#      if defined(_WIN32) && !defined(__GNUC__)
55#      	define __INLINE__	__inline
56#      endif
57#    endif
58#  endif
59#endif
60#if !defined(__LINKAGE__)
61#define __LINKAGE__		/* 2004-08-11 transition */
62#endif
63#define _sys_types	1	/* #include <sys/types.h> ok */
64#ifndef _AST_WCHAR_H
65#define _AST_WCHAR_H	1
66
67#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
68#define _hdr_stdio	1	/* #include <stdio.h> ok */
69#define _hdr_wchar	1	/* #include <wchar.h> ok */
70#define _lib_mbstowcs	1	/* mbstowcs() in default lib(s) */
71#define _lib_wctomb	1	/* wctomb() in default lib(s) */
72#define _lib_wcrtomb	1	/* wcrtomb() in default lib(s) */
73#define _lib_wcslen	1	/* wcslen() in default lib(s) */
74#define _lib_wcstombs	1	/* wcstombs() in default lib(s) */
75#define _lib_wcwidth	1	/* wcwidth() in default lib(s) */
76#define _lib_towlower	1	/* towlower() in default lib(s) */
77#define _lib_towupper	1	/* towupper() in default lib(s) */
78#define _hdr_time	1	/* #include <time.h> ok */
79#define _sys_time	1	/* #include <sys/time.h> ok */
80#define _sys_times	1	/* #include <sys/times.h> ok */
81#define _hdr_stddef	1	/* #include <stddef.h> ok */
82#define _typ_mbstate_t	1	/* mbstate_t is a type */
83#define _nxt_wchar <../include/wchar.h>	/* include path for the native <wchar.h> */
84#define _nxt_wchar_str "../include/wchar.h"	/* include string for the native <wchar.h> */
85#ifndef _SFSTDIO_H
86#include <ast_common.h>
87#include <stdio.h>
88#endif
89
90#define _hdr_unistd	1	/* #include <unistd.h> ok */
91#include <wctype.h> /* <wchar.h> includes <wctype.h> */
92
93#if _hdr_wchar && defined(_nxt_wchar)
94#include <../include/wchar.h>	/* the native wchar.h */
95#endif
96
97#ifndef WEOF
98#define WEOF		(-1)
99#endif
100
101#undef	fgetwc
102#undef	fgetws
103#undef	fputwc
104#undef	fputws
105#undef	getwc
106#undef	getwchar
107#undef	getws
108#undef	putwc
109#undef	putwchar
110#undef	ungetwc
111
112#define fgetwc		_ast_fgetwc
113#define fgetws		_ast_fgetws
114#define fputwc		_ast_fputwc
115#define fputws		_ast_fputws
116#define fwide		_ast_fwide
117#define fwprintf	_ast_fwprintf
118#define fwscanf		_ast_fwscanf
119#define getwc		_ast_getwc
120#define getwchar	_ast_getwchar
121#define getws		_ast_getws
122#define putwc		_ast_putwc
123#define putwchar	_ast_putwchar
124#define swprintf	_ast_swprintf
125#define swscanf		_ast_swscanf
126#define ungetwc		_ast_ungetwc
127#define vfwprintf	_ast_vfwprintf
128#define vfwscanf	_ast_vfwscanf
129#define vswprintf	_ast_vswprintf
130#define vswscanf	_ast_vswscanf
131#define vwprintf	_ast_vwprintf
132#define vwscanf		_ast_vwscanf
133#define wprintf		_ast_wprintf
134#define wscanf		_ast_wscanf
135
136#if !_typ_mbstate_t
137#undef	_typ_mbstate_t
138#define _typ_mbstate_t	1
139typedef char mbstate_t;
140#endif
141
142#if _BLD_ast && defined(__EXPORT__)
143#undef __MANGLE__
144#define __MANGLE__ __LINKAGE__		__EXPORT__
145#endif
146
147#if !_lib_mbstowcs
148extern __MANGLE__ size_t		mbstowcs __PROTO__((wchar_t*, const char*, size_t));
149#endif
150#if !_lib_wctomb
151extern __MANGLE__ int		wctomb __PROTO__((char*, wchar_t));
152#endif
153#if !_lib_wcrtomb
154extern __MANGLE__ size_t		wcrtomb __PROTO__((char*, wchar_t, mbstate_t*));
155#endif
156#if !_lib_wcslen
157extern __MANGLE__ size_t		wcslen __PROTO__((const wchar_t*));
158#endif
159#if !_lib_wcstombs
160extern __MANGLE__ size_t		wcstombs __PROTO__((char*, const wchar_t*, size_t));
161#endif
162
163extern __MANGLE__ int		fwprintf __PROTO__((FILE*, const wchar_t*, ...));
164extern __MANGLE__ int		fwscanf __PROTO__((FILE*, const wchar_t*, ...));
165extern __MANGLE__ wint_t		fgetwc __PROTO__((FILE*));
166extern __MANGLE__ wchar_t*		fgetws __PROTO__((wchar_t*, int, FILE*));
167extern __MANGLE__ wint_t		fputwc __PROTO__((wchar_t, FILE*));
168extern __MANGLE__ int		fputws __PROTO__((const wchar_t*, FILE*));
169extern __MANGLE__ int		fwide __PROTO__((FILE*, int));
170extern __MANGLE__ wint_t		getwc __PROTO__((FILE*));
171extern __MANGLE__ wint_t		getwchar __PROTO__((void));
172extern __MANGLE__ wchar_t*		getws __PROTO__((wchar_t*));
173extern __MANGLE__ wint_t		putwc __PROTO__((wchar_t, FILE*));
174extern __MANGLE__ wint_t		putwchar __PROTO__((wchar_t));
175extern __MANGLE__ int		swprintf __PROTO__((wchar_t*, size_t, const wchar_t*, ...));
176extern __MANGLE__ int		swscanf __PROTO__((const wchar_t*, const wchar_t*, ...));
177extern __MANGLE__ wint_t		ungetwc __PROTO__((wint_t, FILE*));
178extern __MANGLE__ int		vfwprintf __PROTO__((FILE*, const wchar_t*, va_list));
179extern __MANGLE__ int		vfwscanf __PROTO__((FILE*, const wchar_t*, va_list));
180extern __MANGLE__ int		vwprintf __PROTO__((const wchar_t*, va_list));
181extern __MANGLE__ int		vwscanf __PROTO__((const wchar_t*, va_list));
182extern __MANGLE__ int		vswprintf __PROTO__((wchar_t*, size_t, const wchar_t*, va_list));
183extern __MANGLE__ int		vswscanf __PROTO__((const wchar_t*, const wchar_t*, va_list));
184extern __MANGLE__ int		wprintf __PROTO__((const wchar_t*, ...));
185extern __MANGLE__ int		wscanf __PROTO__((const wchar_t*, ...));
186
187#undef __MANGLE__
188#define __MANGLE__ __LINKAGE__
189
190#else
191
192/* on some systems <wchar.h> is included multiple times with multiple effects */
193
194#if _hdr_wchar && defined(_nxt_wchar)
195#include <../include/wchar.h>	/* the native wchar.h */
196#endif
197
198#endif
199