Subversion Repositories Kolibri OS

Rev

Rev 4921 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4921 Rev 6099
Line 14... Line 14...
14
#define __need___va_list
14
#define __need___va_list
15
#include 
15
#include 
Line 16... Line 16...
16
 
16
 
17
/* For _mbstate_t definition. */
17
/* For _mbstate_t definition. */
18
#include 
-
 
-
 
18
#include 
19
 
19
#include 
20
/* For __STDC_ISO_10646__ */
20
/* For __STDC_ISO_10646__ */
Line 21... Line 21...
21
#include 
21
#include 
22
 
22
 
23
#ifndef WEOF
23
#ifndef WEOF
Line -... Line 24...
-
 
24
# define WEOF ((wint_t)-1)
24
# define WEOF ((wint_t)-1)
25
#endif
25
#endif
26
 
26
 
27
/* This must match definition in  */
27
#ifndef WCHAR_MIN
28
#ifndef WCHAR_MIN
28
#ifdef __WCHAR_MIN__
29
#ifdef __WCHAR_MIN__
29
#define WCHAR_MIN __WCHAR_MIN__
30
#define WCHAR_MIN __WCHAR_MIN__
30
#elif defined(__WCHAR_UNSIGNED__) || (L'\0' - 1 > 0)
31
#elif defined(__WCHAR_UNSIGNED__) || (L'\0' - 1 > 0)
31
#define WCHAR_MIN (0 + L'\0')
32
#define WCHAR_MIN (0 + L'\0')
32
#else
33
#else
Line -... Line 34...
-
 
34
#define WCHAR_MIN (-0x7fffffff - 1 + L'\0')
33
#define WCHAR_MIN (-0x7fffffff - 1 + L'\0')
35
#endif
34
#endif
36
#endif
35
#endif
37
 
36
 
38
/* This must match definition in  */
37
#ifndef WCHAR_MAX
39
#ifndef WCHAR_MAX
Line 45... Line 47...
45
#endif
47
#endif
Line 46... Line 48...
46
 
48
 
Line 47... Line 49...
47
_BEGIN_STD_C
49
_BEGIN_STD_C
-
 
50
 
48
 
51
/* As in stdio.h,  defines __FILE. */
-
 
52
#if !defined(__FILE_defined)
-
 
53
typedef __FILE FILE;
Line 49... Line 54...
49
/* As in stdio.h,  defines __FILE. */
54
# define __FILE_defined
50
typedef __FILE FILE;
55
#endif
51
 
56
 
Line 139... Line 144...
139
						   wchar_t **__restrict, int));
144
						   wchar_t **__restrict, int));
140
long    _EXFUN(_wcstol_r, (struct _reent *, const wchar_t *, wchar_t **, int));
145
long    _EXFUN(_wcstol_r, (struct _reent *, const wchar_t *, wchar_t **, int));
141
long long _EXFUN(_wcstoll_r, (struct _reent *, const wchar_t *, wchar_t **, int));
146
long long _EXFUN(_wcstoll_r, (struct _reent *, const wchar_t *, wchar_t **, int));
142
unsigned long _EXFUN(_wcstoul_r, (struct _reent *, const wchar_t *, wchar_t **, int));
147
unsigned long _EXFUN(_wcstoul_r, (struct _reent *, const wchar_t *, wchar_t **, int));
143
unsigned long long _EXFUN(_wcstoull_r, (struct _reent *, const wchar_t *, wchar_t **, int));
148
unsigned long long _EXFUN(_wcstoull_r, (struct _reent *, const wchar_t *, wchar_t **, int));
144
/* On platforms where long double equals double.  */
-
 
145
#ifdef _LDBL_EQ_DBL
-
 
146
long double _EXFUN(wcstold, (const wchar_t *, wchar_t **));
149
long double _EXFUN(wcstold, (const wchar_t *, wchar_t **));
147
#endif /* _LDBL_EQ_DBL */
-
 
Line 148... Line 150...
148
 
150
 
149
wint_t _EXFUN(fgetwc, (__FILE *));
151
wint_t _EXFUN(fgetwc, (__FILE *));
150
wchar_t *_EXFUN(fgetws, (wchar_t *__restrict, int, __FILE *__restrict));
152
wchar_t *_EXFUN(fgetws, (wchar_t *__restrict, int, __FILE *__restrict));
151
wint_t _EXFUN(fputwc, (wchar_t, __FILE *));
153
wint_t _EXFUN(fputwc, (wchar_t, __FILE *));
Line 156... Line 158...
156
wint_t _EXFUN(putwc, (wchar_t, __FILE *));
158
wint_t _EXFUN(putwc, (wchar_t, __FILE *));
157
wint_t _EXFUN(putwchar, (wchar_t));
159
wint_t _EXFUN(putwchar, (wchar_t));
158
wint_t _EXFUN (ungetwc, (wint_t wc, __FILE *));
160
wint_t _EXFUN (ungetwc, (wint_t wc, __FILE *));
Line 159... Line 161...
159
 
161
 
-
 
162
wint_t _EXFUN(_fgetwc_r, (struct _reent *, __FILE *));
160
wint_t _EXFUN(_fgetwc_r, (struct _reent *, __FILE *));
163
wint_t _EXFUN(_fgetwc_unlocked_r, (struct _reent *, __FILE *));
-
 
164
wchar_t *_EXFUN(_fgetws_r, (struct _reent *, wchar_t *, int, __FILE *));
161
wchar_t *_EXFUN(_fgetws_r, (struct _reent *, wchar_t *, int, __FILE *));
165
wchar_t *_EXFUN(_fgetws_unlocked_r, (struct _reent *, wchar_t *, int, __FILE *));
-
 
166
wint_t _EXFUN(_fputwc_r, (struct _reent *, wchar_t, __FILE *));
162
wint_t _EXFUN(_fputwc_r, (struct _reent *, wchar_t, __FILE *));
167
wint_t _EXFUN(_fputwc_unlocked_r, (struct _reent *, wchar_t, __FILE *));
-
 
168
int _EXFUN(_fputws_r, (struct _reent *, const wchar_t *, __FILE *));
163
int _EXFUN(_fputws_r, (struct _reent *, const wchar_t *, __FILE *));
169
int _EXFUN(_fputws_unlocked_r, (struct _reent *, const wchar_t *, __FILE *));
164
int _EXFUN (_fwide_r, (struct _reent *, __FILE *, int));
170
int _EXFUN (_fwide_r, (struct _reent *, __FILE *, int));
-
 
171
wint_t _EXFUN (_getwc_r, (struct _reent *, __FILE *));
165
wint_t _EXFUN (_getwc_r, (struct _reent *, __FILE *));
172
wint_t _EXFUN (_getwc_unlocked_r, (struct _reent *, __FILE *));
-
 
173
wint_t _EXFUN (_getwchar_r, (struct _reent *ptr));
166
wint_t _EXFUN (_getwchar_r, (struct _reent *ptr));
174
wint_t _EXFUN (_getwchar_unlocked_r, (struct _reent *ptr));
-
 
175
wint_t _EXFUN(_putwc_r, (struct _reent *, wchar_t, __FILE *));
167
wint_t _EXFUN(_putwc_r, (struct _reent *, wchar_t, __FILE *));
176
wint_t _EXFUN(_putwc_unlocked_r, (struct _reent *, wchar_t, __FILE *));
-
 
177
wint_t _EXFUN(_putwchar_r, (struct _reent *, wchar_t));
168
wint_t _EXFUN(_putwchar_r, (struct _reent *, wchar_t));
178
wint_t _EXFUN(_putwchar_unlocked_r, (struct _reent *, wchar_t));
Line -... Line 179...
-
 
179
wint_t _EXFUN (_ungetwc_r, (struct _reent *, wint_t wc, __FILE *));
-
 
180
 
-
 
181
#if __GNU_VISIBLE
-
 
182
wint_t _EXFUN(fgetwc_unlocked, (__FILE *));
-
 
183
wchar_t *_EXFUN(fgetws_unlocked, (wchar_t *__restrict, int, __FILE *__restrict));
-
 
184
wint_t _EXFUN(fputwc_unlocked, (wchar_t, __FILE *));
-
 
185
int _EXFUN(fputws_unlocked, (const wchar_t *__restrict, __FILE *__restrict));
-
 
186
wint_t _EXFUN(getwc_unlocked, (__FILE *));
-
 
187
wint_t _EXFUN(getwchar_unlocked, (void));
-
 
188
wint_t _EXFUN(putwc_unlocked, (wchar_t, __FILE *));
-
 
189
wint_t _EXFUN(putwchar_unlocked, (wchar_t));
169
wint_t _EXFUN (_ungetwc_r, (struct _reent *, wint_t wc, __FILE *));
190
#endif
170
 
191
 
Line 171... Line 192...
171
__FILE *_EXFUN (open_wmemstream, (wchar_t **, size_t *));
192
__FILE *_EXFUN (open_wmemstream, (wchar_t **, size_t *));
172
__FILE *_EXFUN (_open_wmemstream_r, (struct _reent *, wchar_t **, size_t *));
193
__FILE *_EXFUN (_open_wmemstream_r, (struct _reent *, wchar_t **, size_t *));
Line 216... Line 237...
216
#define getwc(fp)	fgetwc(fp)
237
#define getwc(fp)	fgetwc(fp)
217
#define putwc(wc,fp)	fputwc((wc), (fp))
238
#define putwc(wc,fp)	fputwc((wc), (fp))
218
#define getwchar()	fgetwc(_REENT->_stdin)
239
#define getwchar()	fgetwc(_REENT->_stdin)
219
#define putwchar(wc)	fputwc((wc), _REENT->_stdout)
240
#define putwchar(wc)	fputwc((wc), _REENT->_stdout)
Line -... Line 241...
-
 
241
 
-
 
242
#if __GNU_VISIBLE
-
 
243
#define getwc_unlocked(fp)	fgetwc_unlocked(fp)
-
 
244
#define putwc_unlocked(wc,fp)	fputwc_unlocked((wc), (fp))
-
 
245
#define getwchar_unlocked()	fgetwc_unlocked(_REENT->_stdin)
-
 
246
#define putwchar_unlocked(wc)	fputwc_unlocked((wc), _REENT->_stdout)
-
 
247
#endif
220
 
248
 
Line 221... Line 249...
221
_END_STD_C
249
_END_STD_C