dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / libast / i386 / include / ast / ast_wchar.h
blobbaa224dfea18eced1868058c80826fa468aa0489
1 /***********************************************************************
2 * *
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 *
8 * *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
12 * *
13 * Information and Software Systems Research *
14 * AT&T Research *
15 * Florham Park NJ *
16 * *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
20 * *
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"
31 # else
32 # define __LINKAGE__
33 # endif
34 # define __STDARG__
35 # define __PROTO__(x) x
36 # define __OTORP__(x)
37 # define __PARAM__(n,o) n
38 # if !defined(__STDC__) && !defined(__cplusplus)
39 # if !defined(c_plusplus)
40 # define const
41 # endif
42 # define signed
43 # define void int
44 # define volatile
45 # define __V_ char
46 # else
47 # define __V_ void
48 # endif
49 # else
50 # define __PROTO__(x) ()
51 # define __OTORP__(x) x
52 # define __PARAM__(n,o) o
53 # define __LINKAGE__
54 # define __V_ char
55 # define const
56 # define signed
57 # define void int
58 # define volatile
59 # endif
60 # define __MANGLE__ __LINKAGE__
61 # if defined(__cplusplus) || defined(c_plusplus)
62 # define __VARARG__ ...
63 # else
64 # define __VARARG__
65 # endif
66 # if defined(__STDARG__)
67 # define __VA_START__(p,a) va_start(p,a)
68 # else
69 # define __VA_START__(p,a) va_start(p)
70 # endif
71 # if !defined(__INLINE__)
72 # if defined(__cplusplus)
73 # define __INLINE__ extern __MANGLE__ inline
74 # else
75 # if defined(_WIN32) && !defined(__GNUC__)
76 # define __INLINE__ __inline
77 # endif
78 # endif
79 # endif
80 #endif
81 #if !defined(__LINKAGE__)
82 #define __LINKAGE__ /* 2004-08-11 transition */
83 #endif
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> */
105 #ifndef _SFSTDIO_H
106 #include <ast_common.h>
107 #include <stdio.h>
108 #endif
109 #if _hdr_wchar && defined(_nxt_wchar)
110 #include <../include/wchar.h> /* the native wchar.h */
111 #endif
112 #if _hdr_wctype
113 #include <wctype.h>
114 #endif
116 #ifndef WEOF
117 #define WEOF (-1)
118 #endif
120 #undef fgetwc
121 #undef fgetws
122 #undef fputwc
123 #undef fputws
124 #undef getwc
125 #undef getwchar
126 #undef getws
127 #undef putwc
128 #undef putwchar
129 #undef ungetwc
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
155 #if !_typ_mbstate_t
156 #undef _typ_mbstate_t
157 #define _typ_mbstate_t 1
158 typedef char mbstate_t;
159 #endif
161 #if _BLD_ast && defined(__EXPORT__)
162 #undef __MANGLE__
163 #define __MANGLE__ __LINKAGE__ __EXPORT__
164 #endif
166 #if !_lib_mbstowcs
167 extern __MANGLE__ size_t mbstowcs __PROTO__((wchar_t*, const char*, size_t));
168 #endif
169 #if !_lib_wctomb
170 extern __MANGLE__ int wctomb __PROTO__((char*, wchar_t));
171 #endif
172 #if !_lib_wcrtomb
173 extern __MANGLE__ size_t wcrtomb __PROTO__((char*, wchar_t, mbstate_t*));
174 #endif
175 #if !_lib_wcslen
176 extern __MANGLE__ size_t wcslen __PROTO__((const wchar_t*));
177 #endif
178 #if !_lib_wcstombs
179 extern __MANGLE__ size_t wcstombs __PROTO__((char*, const wchar_t*, size_t));
180 #endif
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*, ...));
206 #undef __MANGLE__
207 #define __MANGLE__ __LINKAGE__
208 #endif