1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
23 /* : : generated by proto : : */
24 /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_32bit/src/lib/libast/features/wchar by iffe version 2009-12-04 : : */
26 #ifndef _def_wchar_ast
27 #if !defined(__PROTO__)
28 # if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
29 # if defined(__cplusplus)
30 # define __LINKAGE__ "C"
35 # define __PROTO__(x) x
37 # define __PARAM__(n,o) n
38 # if !defined(__STDC__) && !defined(__cplusplus)
39 # if !defined(c_plusplus)
50 # define __PROTO__(x) ()
51 # define __OTORP__(x) x
52 # define __PARAM__(n,o) o
60 # define __MANGLE__ __LINKAGE__
61 # if defined(__cplusplus) || defined(c_plusplus)
62 # define __VARARG__ ...
66 # if defined(__STDARG__)
67 # define __VA_START__(p,a) va_start(p,a)
69 # define __VA_START__(p,a) va_start(p)
71 # if !defined(__INLINE__)
72 # if defined(__cplusplus)
73 # define __INLINE__ extern __MANGLE__ inline
75 # if defined(_WIN32) && !defined(__GNUC__)
76 # define __INLINE__ __inline
81 #if !defined(__LINKAGE__)
82 #define __LINKAGE__ /* 2004-08-11 transition */
85 #define _def_wchar_ast 1
86 #define _sys_types 1 /* #include <sys/types.h> ok */
87 #define _hdr_stdlib 1 /* #include <stdlib.h> ok */
88 #define _hdr_stdio 1 /* #include <stdio.h> ok */
89 #define _hdr_wchar 1 /* #include <wchar.h> ok */
90 #define _lib_mbstowcs 1 /* mbstowcs() in default lib(s) */
91 #define _lib_wctomb 1 /* wctomb() in default lib(s) */
92 #define _lib_wcrtomb 1 /* wcrtomb() in default lib(s) */
93 #define _lib_wcslen 1 /* wcslen() in default lib(s) */
94 #define _lib_wcstombs 1 /* wcstombs() in default lib(s) */
95 #define _lib_wcwidth 1 /* wcwidth() in default lib(s) */
96 #define _lib_towlower 1 /* towlower() in default lib(s) */
97 #define _lib_towupper 1 /* towupper() in default lib(s) */
98 #define _hdr_time 1 /* #include <time.h> ok */
99 #define _sys_time 1 /* #include <sys/time.h> ok */
100 #define _sys_times 1 /* #include <sys/times.h> ok */
101 #define _hdr_stddef 1 /* #include <stddef.h> ok */
102 #define _typ_mbstate_t 1 /* mbstate_t is a type */
103 #define _nxt_wchar <../include/wchar.h> /* include path for the native <wchar.h> */
104 #define _nxt_wchar_str "../include/wchar.h" /* include string for the native <wchar.h> */
106 #include <ast_common.h>
109 #if _hdr_wchar && defined(_nxt_wchar)
110 #include <../include/wchar.h> /* the native wchar.h */
131 #define fgetwc _ast_fgetwc
132 #define fgetws _ast_fgetws
133 #define fputwc _ast_fputwc
134 #define fputws _ast_fputws
135 #define fwide _ast_fwide
136 #define fwprintf _ast_fwprintf
137 #define fwscanf _ast_fwscanf
138 #define getwc _ast_getwc
139 #define getwchar _ast_getwchar
140 #define getws _ast_getws
141 #define putwc _ast_putwc
142 #define putwchar _ast_putwchar
143 #define swprintf _ast_swprintf
144 #define swscanf _ast_swscanf
145 #define ungetwc _ast_ungetwc
146 #define vfwprintf _ast_vfwprintf
147 #define vfwscanf _ast_vfwscanf
148 #define vswprintf _ast_vswprintf
149 #define vswscanf _ast_vswscanf
150 #define vwprintf _ast_vwprintf
151 #define vwscanf _ast_vwscanf
152 #define wprintf _ast_wprintf
153 #define wscanf _ast_wscanf
156 #undef _typ_mbstate_t
157 #define _typ_mbstate_t 1
158 typedef char mbstate_t;
161 #if _BLD_ast && defined(__EXPORT__)
163 #define __MANGLE__ __LINKAGE__ __EXPORT__
167 extern __MANGLE__
size_t mbstowcs
__PROTO__((wchar_t*, const char*, size_t));
170 extern __MANGLE__
int wctomb
__PROTO__((char*, wchar_t));
173 extern __MANGLE__
size_t wcrtomb
__PROTO__((char*, wchar_t, mbstate_t*));
176 extern __MANGLE__
size_t wcslen
__PROTO__((const wchar_t*));
179 extern __MANGLE__
size_t wcstombs
__PROTO__((char*, const wchar_t*, size_t));
182 extern __MANGLE__
int fwprintf
__PROTO__((FILE*, const wchar_t*, ...));
183 extern __MANGLE__
int fwscanf
__PROTO__((FILE*, const wchar_t*, ...));
184 extern __MANGLE__
wint_t fgetwc
__PROTO__((FILE*));
185 extern __MANGLE__
wchar_t* fgetws
__PROTO__((wchar_t*, int, FILE*));
186 extern __MANGLE__
wint_t fputwc
__PROTO__((wchar_t, FILE*));
187 extern __MANGLE__
int fputws
__PROTO__((const wchar_t*, FILE*));
188 extern __MANGLE__
int fwide
__PROTO__((FILE*, int));
189 extern __MANGLE__
wint_t getwc
__PROTO__((FILE*));
190 extern __MANGLE__
wint_t getwchar
__PROTO__((void));
191 extern __MANGLE__
wchar_t* getws
__PROTO__((wchar_t*));
192 extern __MANGLE__
wint_t putwc
__PROTO__((wchar_t, FILE*));
193 extern __MANGLE__
wint_t putwchar
__PROTO__((wchar_t));
194 extern __MANGLE__
int swprintf
__PROTO__((wchar_t*, size_t, const wchar_t*, ...));
195 extern __MANGLE__
int swscanf
__PROTO__((const wchar_t*, const wchar_t*, ...));
196 extern __MANGLE__
wint_t ungetwc
__PROTO__((wint_t, FILE*));
197 extern __MANGLE__
int vfwprintf
__PROTO__((FILE*, const wchar_t*, va_list));
198 extern __MANGLE__
int vfwscanf
__PROTO__((FILE*, const wchar_t*, va_list));
199 extern __MANGLE__
int vwprintf
__PROTO__((const wchar_t*, va_list));
200 extern __MANGLE__
int vwscanf
__PROTO__((const wchar_t*, va_list));
201 extern __MANGLE__
int vswprintf
__PROTO__((wchar_t*, size_t, const wchar_t*, va_list));
202 extern __MANGLE__
int vswscanf
__PROTO__((const wchar_t*, const wchar_t*, va_list));
203 extern __MANGLE__
int wprintf
__PROTO__((const wchar_t*, ...));
204 extern __MANGLE__
int wscanf
__PROTO__((const wchar_t*, ...));
207 #define __MANGLE__ __LINKAGE__