VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/wchar.h@ 33252

Last change on this file since 33252 was 25949, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

  • Property svn:eol-style set to native
File size: 12.8 KB
Line 
1/*
2 * Unicode definitions
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8
9/*
10 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
11 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
12 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
13 * a choice of LGPL license versions is made available with the language indicating
14 * that LGPLv2 or any later version may be used, or where a choice of which version
15 * of the LGPL is applied is otherwise unspecified.
16 */
17
18#ifndef __WINE_WCHAR_H
19#define __WINE_WCHAR_H
20
21#include <crtdefs.h>
22#include <stdarg.h>
23
24#include <pshpack8.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#ifndef NULL
31#ifdef __cplusplus
32#define NULL 0
33#else
34#define NULL ((void *)0)
35#endif
36#endif
37
38#define WCHAR_MIN 0
39#define WCHAR_MAX ((wchar_t)-1)
40
41#ifndef DECLSPEC_ALIGN
42# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
43# define DECLSPEC_ALIGN(x) __declspec(align(x))
44# elif defined(__GNUC__)
45# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
46# else
47# define DECLSPEC_ALIGN(x)
48# endif
49#endif
50
51typedef int mbstate_t;
52
53#ifndef WEOF
54#define WEOF (wint_t)(0xFFFF)
55#endif
56
57#ifndef _FSIZE_T_DEFINED
58typedef __msvcrt_ulong _fsize_t;
59#define _FSIZE_T_DEFINED
60#endif
61
62#ifndef _DEV_T_DEFINED
63typedef unsigned int _dev_t;
64#define _DEV_T_DEFINED
65#endif
66
67#ifndef _INO_T_DEFINED
68typedef unsigned short _ino_t;
69#define _INO_T_DEFINED
70#endif
71
72#ifndef _OFF_T_DEFINED
73typedef int _off_t;
74#define _OFF_T_DEFINED
75#endif
76
77#ifndef _TM_DEFINED
78#define _TM_DEFINED
79struct tm {
80 int tm_sec;
81 int tm_min;
82 int tm_hour;
83 int tm_mday;
84 int tm_mon;
85 int tm_year;
86 int tm_wday;
87 int tm_yday;
88 int tm_isdst;
89};
90#endif /* _TM_DEFINED */
91
92#ifndef _FILE_DEFINED
93#define _FILE_DEFINED
94typedef struct _iobuf
95{
96 char* _ptr;
97 int _cnt;
98 char* _base;
99 int _flag;
100 int _file;
101 int _charbuf;
102 int _bufsiz;
103 char* _tmpfname;
104} FILE;
105#endif /* _FILE_DEFINED */
106
107#ifndef _WFINDDATA_T_DEFINED
108#define _WFINDDATA_T_DEFINED
109
110struct _wfinddata_t {
111 unsigned attrib;
112 time_t time_create;
113 time_t time_access;
114 time_t time_write;
115 _fsize_t size;
116 wchar_t name[260];
117};
118
119struct _wfinddatai64_t {
120 unsigned attrib;
121 time_t time_create;
122 time_t time_access;
123 time_t time_write;
124 __int64 DECLSPEC_ALIGN(8) size;
125 wchar_t name[260];
126};
127
128#endif /* _WFINDDATA_T_DEFINED */
129
130#ifndef _STAT_DEFINED
131#define _STAT_DEFINED
132
133struct _stat {
134 _dev_t st_dev;
135 _ino_t st_ino;
136 unsigned short st_mode;
137 short st_nlink;
138 short st_uid;
139 short st_gid;
140 _dev_t st_rdev;
141 _off_t st_size;
142 time_t st_atime;
143 time_t st_mtime;
144 time_t st_ctime;
145};
146
147struct stat {
148 _dev_t st_dev;
149 _ino_t st_ino;
150 unsigned short st_mode;
151 short st_nlink;
152 short st_uid;
153 short st_gid;
154 _dev_t st_rdev;
155 _off_t st_size;
156 time_t st_atime;
157 time_t st_mtime;
158 time_t st_ctime;
159};
160
161struct _stati64 {
162 _dev_t st_dev;
163 _ino_t st_ino;
164 unsigned short st_mode;
165 short st_nlink;
166 short st_uid;
167 short st_gid;
168 _dev_t st_rdev;
169 __int64 DECLSPEC_ALIGN(8) st_size;
170 time_t st_atime;
171 time_t st_mtime;
172 time_t st_ctime;
173};
174
175struct _stat64 {
176 _dev_t st_dev;
177 _ino_t st_ino;
178 unsigned short st_mode;
179 short st_nlink;
180 short st_uid;
181 short st_gid;
182 _dev_t st_rdev;
183 __int64 DECLSPEC_ALIGN(8) st_size;
184 __time64_t st_atime;
185 __time64_t st_mtime;
186 __time64_t st_ctime;
187};
188#endif /* _STAT_DEFINED */
189
190/* ASCII char classification table - binary compatible */
191#define _UPPER 0x0001 /* C1_UPPER */
192#define _LOWER 0x0002 /* C1_LOWER */
193#define _DIGIT 0x0004 /* C1_DIGIT */
194#define _SPACE 0x0008 /* C1_SPACE */
195#define _PUNCT 0x0010 /* C1_PUNCT */
196#define _CONTROL 0x0020 /* C1_CNTRL */
197#define _BLANK 0x0040 /* C1_BLANK */
198#define _HEX 0x0080 /* C1_XDIGIT */
199#define _LEADBYTE 0x8000
200#define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
201
202#ifndef _WCTYPE_DEFINED
203#define _WCTYPE_DEFINED
204int __cdecl is_wctype(wint_t,wctype_t);
205int __cdecl isleadbyte(int);
206int __cdecl iswalnum(wint_t);
207int __cdecl iswalpha(wint_t);
208int __cdecl iswascii(wint_t);
209int __cdecl iswcntrl(wint_t);
210int __cdecl iswctype(wint_t,wctype_t);
211int __cdecl iswdigit(wint_t);
212int __cdecl iswgraph(wint_t);
213int __cdecl iswlower(wint_t);
214int __cdecl iswprint(wint_t);
215int __cdecl iswpunct(wint_t);
216int __cdecl iswspace(wint_t);
217int __cdecl iswupper(wint_t);
218int __cdecl iswxdigit(wint_t);
219wchar_t __cdecl towlower(wchar_t);
220wchar_t __cdecl towupper(wchar_t);
221#endif /* _WCTYPE_DEFINED */
222
223#ifndef _WDIRECT_DEFINED
224#define _WDIRECT_DEFINED
225int __cdecl _wchdir(const wchar_t*);
226wchar_t* __cdecl _wgetcwd(wchar_t*,int);
227wchar_t* __cdecl _wgetdcwd(int,wchar_t*,int);
228int __cdecl _wmkdir(const wchar_t*);
229int __cdecl _wrmdir(const wchar_t*);
230#endif /* _WDIRECT_DEFINED */
231
232#ifndef _WIO_DEFINED
233#define _WIO_DEFINED
234int __cdecl _waccess(const wchar_t*,int);
235int __cdecl _wchmod(const wchar_t*,int);
236int __cdecl _wcreat(const wchar_t*,int);
237__msvcrt_long __cdecl _wfindfirst(const wchar_t*,struct _wfinddata_t*);
238__msvcrt_long __cdecl _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*);
239int __cdecl _wfindnext(__msvcrt_long,struct _wfinddata_t*);
240int __cdecl _wfindnexti64(__msvcrt_long, struct _wfinddatai64_t*);
241wchar_t* __cdecl _wmktemp(wchar_t*);
242int __cdecl _wopen(const wchar_t*,int,...);
243int __cdecl _wrename(const wchar_t*,const wchar_t*);
244int __cdecl _wsopen(const wchar_t*,int,int,...);
245int __cdecl _wunlink(const wchar_t*);
246#endif /* _WIO_DEFINED */
247
248#ifndef _WLOCALE_DEFINED
249#define _WLOCALE_DEFINED
250wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
251#endif /* _WLOCALE_DEFINED */
252
253#ifndef _WPROCESS_DEFINED
254#define _WPROCESS_DEFINED
255int __cdecl _wexecl(const wchar_t*,const wchar_t*,...);
256int __cdecl _wexecle(const wchar_t*,const wchar_t*,...);
257int __cdecl _wexeclp(const wchar_t*,const wchar_t*,...);
258int __cdecl _wexeclpe(const wchar_t*,const wchar_t*,...);
259int __cdecl _wexecv(const wchar_t*,const wchar_t* const *);
260int __cdecl _wexecve(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
261int __cdecl _wexecvp(const wchar_t*,const wchar_t* const *);
262int __cdecl _wexecvpe(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
263int __cdecl _wspawnl(int,const wchar_t*,const wchar_t*,...);
264int __cdecl _wspawnle(int,const wchar_t*,const wchar_t*,...);
265int __cdecl _wspawnlp(int,const wchar_t*,const wchar_t*,...);
266int __cdecl _wspawnlpe(int,const wchar_t*,const wchar_t*,...);
267int __cdecl _wspawnv(int,const wchar_t*,const wchar_t* const *);
268int __cdecl _wspawnve(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
269int __cdecl _wspawnvp(int,const wchar_t*,const wchar_t* const *);
270int __cdecl _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
271int __cdecl _wsystem(const wchar_t*);
272#endif /* _WPROCESS_DEFINED */
273
274#ifndef _WSTAT_DEFINED
275#define _WSTAT_DEFINED
276int __cdecl _wstat(const wchar_t*,struct _stat*);
277int __cdecl _wstati64(const wchar_t*,struct _stati64*);
278int __cdecl _wstat64(const wchar_t*,struct _stat64*);
279#endif /* _WSTAT_DEFINED */
280
281#ifndef _WSTDIO_DEFINED
282#define _WSTDIO_DEFINED
283wint_t __cdecl _fgetwchar(void);
284wint_t __cdecl _fputwchar(wint_t);
285wchar_t* __cdecl _getws(wchar_t*);
286int __cdecl _putws(const wchar_t*);
287int __cdecl _snwprintf(wchar_t*,size_t,const wchar_t*,...);
288int __cdecl _vscwprintf(const wchar_t*,__ms_va_list);
289int __cdecl _vsnwprintf(wchar_t*,size_t,const wchar_t*,__ms_va_list);
290FILE* __cdecl _wfdopen(int,const wchar_t*);
291FILE* __cdecl _wfopen(const wchar_t*,const wchar_t*);
292FILE* __cdecl _wfreopen(const wchar_t*,const wchar_t*,FILE*);
293FILE* __cdecl _wfsopen(const wchar_t*,const wchar_t*,int);
294void __cdecl _wperror(const wchar_t*);
295FILE* __cdecl _wpopen(const wchar_t*,const wchar_t*);
296int __cdecl _wremove(const wchar_t*);
297wchar_t* __cdecl _wtempnam(const wchar_t*,const wchar_t*);
298wchar_t* __cdecl _wtmpnam(wchar_t*);
299
300wint_t __cdecl fgetwc(FILE*);
301wchar_t* __cdecl fgetws(wchar_t*,int,FILE*);
302wint_t __cdecl fputwc(wint_t,FILE*);
303int __cdecl fputws(const wchar_t*,FILE*);
304int __cdecl fwprintf(FILE*,const wchar_t*,...);
305int __cdecl fputws(const wchar_t*,FILE*);
306int __cdecl fwscanf(FILE*,const wchar_t*,...);
307wint_t __cdecl getwc(FILE*);
308wint_t __cdecl getwchar(void);
309wchar_t* __cdecl getws(wchar_t*);
310wint_t __cdecl putwc(wint_t,FILE*);
311wint_t __cdecl putwchar(wint_t);
312int __cdecl putws(const wchar_t*);
313int __cdecl swprintf(wchar_t*,const wchar_t*,...);
314int __cdecl swscanf(const wchar_t*,const wchar_t*,...);
315wint_t __cdecl ungetwc(wint_t,FILE*);
316int __cdecl vfwprintf(FILE*,const wchar_t*,__ms_va_list);
317int __cdecl vswprintf(wchar_t*,const wchar_t*,__ms_va_list);
318int __cdecl vwprintf(const wchar_t*,__ms_va_list);
319int __cdecl wprintf(const wchar_t*,...);
320int __cdecl wscanf(const wchar_t*,...);
321#endif /* _WSTDIO_DEFINED */
322
323#ifndef _WSTDLIB_DEFINED
324#define _WSTDLIB_DEFINED
325wchar_t* __cdecl _itow(int,wchar_t*,int);
326wchar_t* __cdecl _i64tow(__int64,wchar_t*,int);
327wchar_t* __cdecl _ltow(__msvcrt_long,wchar_t*,int);
328wchar_t* __cdecl _ui64tow(unsigned __int64,wchar_t*,int);
329wchar_t* __cdecl _ultow(__msvcrt_ulong,wchar_t*,int);
330wchar_t* __cdecl _wfullpath(wchar_t*,const wchar_t*,size_t);
331wchar_t* __cdecl _wgetenv(const wchar_t*);
332void __cdecl _wmakepath(wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
333void __cdecl _wperror(const wchar_t*);
334int __cdecl _wputenv(const wchar_t*);
335void __cdecl _wsearchenv(const wchar_t*,const wchar_t*,wchar_t*);
336void __cdecl _wsplitpath(const wchar_t*,wchar_t*,wchar_t*,wchar_t*,wchar_t*);
337int __cdecl _wsystem(const wchar_t*);
338int __cdecl _wtoi(const wchar_t*);
339__int64 __cdecl _wtoi64(const wchar_t*);
340__msvcrt_long __cdecl _wtol(const wchar_t*);
341
342size_t __cdecl mbstowcs(wchar_t*,const char*,size_t);
343int __cdecl mbtowc(wchar_t*,const char*,size_t);
344double __cdecl wcstod(const wchar_t*,wchar_t**);
345__msvcrt_long __cdecl wcstol(const wchar_t*,wchar_t**,int);
346size_t __cdecl wcstombs(char*,const wchar_t*,size_t);
347__msvcrt_ulong __cdecl wcstoul(const wchar_t*,wchar_t**,int);
348int __cdecl wctomb(char*,wchar_t);
349#endif /* _WSTDLIB_DEFINED */
350
351#ifndef _WSTRING_DEFINED
352#define _WSTRING_DEFINED
353wchar_t* __cdecl _wcsdup(const wchar_t*);
354int __cdecl _wcsicmp(const wchar_t*,const wchar_t*);
355int __cdecl _wcsicoll(const wchar_t*,const wchar_t*);
356wchar_t* __cdecl _wcslwr(wchar_t*);
357int __cdecl _wcsnicmp(const wchar_t*,const wchar_t*,size_t);
358wchar_t* __cdecl _wcsnset(wchar_t*,wchar_t,size_t);
359wchar_t* __cdecl _wcsrev(wchar_t*);
360wchar_t* __cdecl _wcsset(wchar_t*,wchar_t);
361wchar_t* __cdecl _wcsupr(wchar_t*);
362
363wchar_t* __cdecl wcscat(wchar_t*,const wchar_t*);
364wchar_t* __cdecl wcschr(const wchar_t*,wchar_t);
365int __cdecl wcscmp(const wchar_t*,const wchar_t*);
366int __cdecl wcscoll(const wchar_t*,const wchar_t*);
367wchar_t* __cdecl wcscpy(wchar_t*,const wchar_t*);
368size_t __cdecl wcscspn(const wchar_t*,const wchar_t*);
369size_t __cdecl wcslen(const wchar_t*);
370wchar_t* __cdecl wcsncat(wchar_t*,const wchar_t*,size_t);
371int __cdecl wcsncmp(const wchar_t*,const wchar_t*,size_t);
372wchar_t* __cdecl wcsncpy(wchar_t*,const wchar_t*,size_t);
373wchar_t* __cdecl wcspbrk(const wchar_t*,const wchar_t*);
374wchar_t* __cdecl wcsrchr(const wchar_t*,wchar_t wcFor);
375size_t __cdecl wcsspn(const wchar_t*,const wchar_t*);
376wchar_t* __cdecl wcsstr(const wchar_t*,const wchar_t*);
377wchar_t* __cdecl wcstok(wchar_t*,const wchar_t*);
378size_t __cdecl wcsxfrm(wchar_t*,const wchar_t*,size_t);
379#endif /* _WSTRING_DEFINED */
380
381#ifndef _WTIME_DEFINED
382#define _WTIME_DEFINED
383
384#ifdef _USE_32BIT_TIME_T
385#define _wctime32 _wctime
386#endif
387
388wchar_t* __cdecl _wasctime(const struct tm*);
389size_t __cdecl wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
390wchar_t* __cdecl _wctime32(const __time32_t*);
391wchar_t* __cdecl _wctime64(const __time64_t*);
392wchar_t* __cdecl _wstrdate(wchar_t*);
393wchar_t* __cdecl _wstrtime(wchar_t*);
394
395#ifndef _USE_32BIT_TIME_T
396static inline wchar_t* _wctime(const time_t *t) { return _wctime64(t); }
397#endif
398
399#endif /* _WTIME_DEFINED */
400
401wchar_t __cdecl btowc(int);
402size_t __cdecl mbrlen(const char *,size_t,mbstate_t*);
403size_t __cdecl mbrtowc(wchar_t*,const char*,size_t,mbstate_t*);
404size_t __cdecl mbsrtowcs(wchar_t*,const char**,size_t,mbstate_t*);
405size_t __cdecl wcrtomb(char*,wchar_t,mbstate_t*);
406size_t __cdecl wcsrtombs(char*,const wchar_t**,size_t,mbstate_t*);
407int __cdecl wctob(wint_t);
408
409#ifdef __cplusplus
410}
411#endif
412
413#include <poppack.h>
414
415#endif /* __WINE_WCHAR_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette