1
2/* : : generated by proto : : */
3/* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_32bit/src/lib/libast/features/wchar by iffe version 2009-12-04 : : */
4
5#ifndef _def_wchar_ast
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
64#define _def_wchar_ast	1
65#define _sys_types	1	/* #include <sys/types.h> ok */
66#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
67#define _hdr_stdio	1	/* #include <stdio.h> ok */
68#define _hdr_wchar	1	/* #include <wchar.h> ok */
69#define _lib_mbstowcs	1	/* mbstowcs() in default lib(s) */
70#define _lib_wctomb	1	/* wctomb() in default lib(s) */
71#define _lib_wcrtomb	1	/* wcrtomb() in default lib(s) */
72#define _lib_wcslen	1	/* wcslen() in default lib(s) */
73#define _lib_wcstombs	1	/* wcstombs() in default lib(s) */
74#define _lib_wcwidth	1	/* wcwidth() in default lib(s) */
75#define _lib_towlower	1	/* towlower() in default lib(s) */
76#define _lib_towupper	1	/* towupper() in default lib(s) */
77#define _hdr_time	1	/* #include <time.h> ok */
78#define _sys_time	1	/* #include <sys/time.h> ok */
79#define _sys_times	1	/* #include <sys/times.h> ok */
80#define _hdr_stddef	1	/* #include <stddef.h> ok */
81#define _typ_mbstate_t	1	/* mbstate_t is a type */
82#define _nxt_wchar <../include/wchar.h>	/* include path for the native <wchar.h> */
83#define _nxt_wchar_str "../include/wchar.h"	/* include string for the native <wchar.h> */
84#ifndef _SFSTDIO_H
85#include <ast_common.h>
86#include <stdio.h>
87#endif
88#if _hdr_wchar && defined(_nxt_wchar)
89#include <../include/wchar.h>	/* the native wchar.h */
90#endif
91#if _hdr_wctype
92#include <wctype.h>
93#endif
94
95#ifndef WEOF
96#define WEOF		(-1)
97#endif
98
99#undef	fgetwc
100#undef	fgetws
101#undef	fputwc
102#undef	fputws
103#undef	getwc
104#undef	getwchar
105#undef	getws
106#undef	putwc
107#undef	putwchar
108#undef	ungetwc
109
110#define fgetwc		_ast_fgetwc
111#define fgetws		_ast_fgetws
112#define fputwc		_ast_fputwc
113#define fputws		_ast_fputws
114#define fwide		_ast_fwide
115#define fwprintf	_ast_fwprintf
116#define fwscanf		_ast_fwscanf
117#define getwc		_ast_getwc
118#define getwchar	_ast_getwchar
119#define getws		_ast_getws
120#define putwc		_ast_putwc
121#define putwchar	_ast_putwchar
122#define swprintf	_ast_swprintf
123#define swscanf		_ast_swscanf
124#define ungetwc		_ast_ungetwc
125#define vfwprintf	_ast_vfwprintf
126#define vfwscanf	_ast_vfwscanf
127#define vswprintf	_ast_vswprintf
128#define vswscanf	_ast_vswscanf
129#define vwprintf	_ast_vwprintf
130#define vwscanf		_ast_vwscanf
131#define wprintf		_ast_wprintf
132#define wscanf		_ast_wscanf
133
134#if !_typ_mbstate_t
135#undef	_typ_mbstate_t
136#define _typ_mbstate_t	1
137typedef char mbstate_t;
138#endif
139
140#if _BLD_ast && defined(__EXPORT__)
141#undef __MANGLE__
142#define __MANGLE__ __LINKAGE__		__EXPORT__
143#endif
144
145#if !_lib_mbstowcs
146extern __MANGLE__ size_t		mbstowcs __PROTO__((wchar_t*, const char*, size_t));
147#endif
148#if !_lib_wctomb
149extern __MANGLE__ int		wctomb __PROTO__((char*, wchar_t));
150#endif
151#if !_lib_wcrtomb
152extern __MANGLE__ size_t		wcrtomb __PROTO__((char*, wchar_t, mbstate_t*));
153#endif
154#if !_lib_wcslen
155extern __MANGLE__ size_t		wcslen __PROTO__((const wchar_t*));
156#endif
157#if !_lib_wcstombs
158extern __MANGLE__ size_t		wcstombs __PROTO__((char*, const wchar_t*, size_t));
159#endif
160
161extern __MANGLE__ int		fwprintf __PROTO__((FILE*, const wchar_t*, ...));
162extern __MANGLE__ int		fwscanf __PROTO__((FILE*, const wchar_t*, ...));
163extern __MANGLE__ wint_t		fgetwc __PROTO__((FILE*));
164extern __MANGLE__ wchar_t*		fgetws __PROTO__((wchar_t*, int, FILE*));
165extern __MANGLE__ wint_t		fputwc __PROTO__((wchar_t, FILE*));
166extern __MANGLE__ int		fputws __PROTO__((const wchar_t*, FILE*));
167extern __MANGLE__ int		fwide __PROTO__((FILE*, int));
168extern __MANGLE__ wint_t		getwc __PROTO__((FILE*));
169extern __MANGLE__ wint_t		getwchar __PROTO__((void));
170extern __MANGLE__ wchar_t*		getws __PROTO__((wchar_t*));
171extern __MANGLE__ wint_t		putwc __PROTO__((wchar_t, FILE*));
172extern __MANGLE__ wint_t		putwchar __PROTO__((wchar_t));
173extern __MANGLE__ int		swprintf __PROTO__((wchar_t*, size_t, const wchar_t*, ...));
174extern __MANGLE__ int		swscanf __PROTO__((const wchar_t*, const wchar_t*, ...));
175extern __MANGLE__ wint_t		ungetwc __PROTO__((wint_t, FILE*));
176extern __MANGLE__ int		vfwprintf __PROTO__((FILE*, const wchar_t*, va_list));
177extern __MANGLE__ int		vfwscanf __PROTO__((FILE*, const wchar_t*, va_list));
178extern __MANGLE__ int		vwprintf __PROTO__((const wchar_t*, va_list));
179extern __MANGLE__ int		vwscanf __PROTO__((const wchar_t*, va_list));
180extern __MANGLE__ int		vswprintf __PROTO__((wchar_t*, size_t, const wchar_t*, va_list));
181extern __MANGLE__ int		vswscanf __PROTO__((const wchar_t*, const wchar_t*, va_list));
182extern __MANGLE__ int		wprintf __PROTO__((const wchar_t*, ...));
183extern __MANGLE__ int		wscanf __PROTO__((const wchar_t*, ...));
184
185#undef __MANGLE__
186#define __MANGLE__ __LINKAGE__
187#endif
188