configure: Add a check for sys/ucontext.h and include it where appropriate.
[wine.git] / dlls / msvcp90 / msvcp90.h
blob5062bdc785ab37389ccd1cbfba014c7259fbf7ce
1 /*
2 * Copyright 2010 Piotr Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "stdlib.h"
20 #include "windef.h"
21 #include "cxx.h"
23 #define ALIGNED_SIZE(size, alignment) (((size)+((alignment)-1))/(alignment)*(alignment))
25 typedef unsigned char MSVCP_bool;
26 typedef SIZE_T MSVCP_size_t;
28 #if _MSVCP_VER >= 100
29 typedef __int64 DECLSPEC_ALIGN(8) streamoff;
30 typedef __int64 DECLSPEC_ALIGN(8) streamsize;
31 #define STREAMOFF_BITS 64
32 #define STREAMSIZE_BITS 64
33 #else
34 typedef SSIZE_T streamoff;
35 typedef SSIZE_T streamsize;
36 #define STREAMOFF_BITS 32
37 #define STREAMSIZE_BITS 32
38 #endif
40 void __cdecl _invalid_parameter(const wchar_t*, const wchar_t*,
41 const wchar_t*, unsigned int, uintptr_t);
42 BOOL __cdecl __uncaught_exception(void);
44 extern void* (__cdecl *MSVCRT_operator_new)(MSVCP_size_t);
45 extern void (__cdecl *MSVCRT_operator_delete)(void*);
46 extern void* (__cdecl *MSVCRT_set_new_handler)(void*);
48 #if _MSVCP_VER >= 110
49 /* keep in sync with msvcrt/lock.c */
50 typedef struct cs_queue
52 struct cs_queue *next;
53 BOOL free;
54 int unknown;
55 } cs_queue;
57 typedef struct
59 ULONG_PTR unk_thread_id;
60 cs_queue unk_active;
61 void *unknown[2];
62 cs_queue *head;
63 void *tail;
64 } critical_section;
66 extern critical_section* (__thiscall *critical_section_ctor)(critical_section*);
67 extern void (__thiscall *critical_section_dtor)(critical_section*);
68 extern void (__thiscall *critical_section_lock)(critical_section*);
69 extern void (__thiscall *critical_section_unlock)(critical_section*);
70 extern MSVCP_bool (__thiscall *critical_section_trylock)(critical_section*);
71 #endif
73 /* basic_string<char, char_traits<char>, allocator<char>> */
74 #define BUF_SIZE_CHAR 16
75 typedef struct
77 void *allocator;
78 union {
79 char buf[BUF_SIZE_CHAR];
80 char *ptr;
81 } data;
82 MSVCP_size_t size;
83 MSVCP_size_t res;
84 } basic_string_char;
86 basic_string_char* __thiscall MSVCP_basic_string_char_ctor(basic_string_char*);
87 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr(basic_string_char*, const char*);
88 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr_len(basic_string_char*, const char*, MSVCP_size_t);
89 basic_string_char* __thiscall MSVCP_basic_string_char_copy_ctor(basic_string_char*, const basic_string_char*);
90 void __thiscall MSVCP_basic_string_char_dtor(basic_string_char*);
91 const char* __thiscall MSVCP_basic_string_char_c_str(const basic_string_char*);
92 void __thiscall MSVCP_basic_string_char_clear(basic_string_char*);
93 basic_string_char* __thiscall MSVCP_basic_string_char_append_ch(basic_string_char*, char);
94 MSVCP_size_t __thiscall MSVCP_basic_string_char_length(const basic_string_char*);
95 basic_string_char* __thiscall MSVCP_basic_string_char_assign(basic_string_char*, const basic_string_char*);
97 #define BUF_SIZE_WCHAR 8
98 typedef struct
100 void *allocator;
101 union {
102 wchar_t buf[BUF_SIZE_WCHAR];
103 wchar_t *ptr;
104 } data;
105 MSVCP_size_t size;
106 MSVCP_size_t res;
107 } basic_string_wchar;
109 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor(basic_string_wchar*);
110 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr(basic_string_wchar*, const wchar_t*);
111 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_len(basic_string_wchar*, const wchar_t*, MSVCP_size_t);
112 void __thiscall MSVCP_basic_string_wchar_dtor(basic_string_wchar*);
113 const wchar_t* __thiscall MSVCP_basic_string_wchar_c_str(const basic_string_wchar*);
114 void __thiscall MSVCP_basic_string_wchar_clear(basic_string_wchar*);
115 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_ch(basic_string_wchar*, wchar_t);
116 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_length(const basic_string_wchar*);
118 char* __thiscall MSVCP_allocator_char_allocate(void*, MSVCP_size_t);
119 void __thiscall MSVCP_allocator_char_deallocate(void*, char*, MSVCP_size_t);
120 MSVCP_size_t __thiscall MSVCP_allocator_char_max_size(void*);
121 wchar_t* __thiscall MSVCP_allocator_wchar_allocate(void*, MSVCP_size_t);
122 void __thiscall MSVCP_allocator_wchar_deallocate(void*, wchar_t*, MSVCP_size_t);
123 MSVCP_size_t __thiscall MSVCP_allocator_wchar_max_size(void*);
125 typedef struct
127 char *str;
128 char null_str;
129 } _Yarn_char;
131 _Yarn_char* __thiscall _Yarn_char_ctor_cstr(_Yarn_char*, const char*);
132 _Yarn_char* __thiscall _Yarn_char_copy_ctor(_Yarn_char*, const _Yarn_char*);
133 const char* __thiscall _Yarn_char_c_str(const _Yarn_char*);
134 void __thiscall _Yarn_char_dtor(_Yarn_char*);
135 _Yarn_char* __thiscall _Yarn_char_op_assign(_Yarn_char*, const _Yarn_char*);
137 /* class locale::facet */
138 typedef struct {
139 const vtable_ptr *vtable;
140 MSVCP_size_t refs;
141 } locale_facet;
143 typedef enum {
144 CODECVT_ok = 0,
145 CODECVT_partial = 1,
146 CODECVT_error = 2,
147 CODECVT_noconv = 3
148 } codecvt_base_result;
150 typedef struct {
151 #if _MSVCP_VER < 110
152 LCID handle;
153 #endif
154 unsigned page;
155 const short *table;
156 int delfl;
157 #if _MSVCP_VER >= 110
158 wchar_t *name;
159 #endif
160 } _Ctypevec;
162 /* class codecvt_base */
163 typedef struct {
164 locale_facet facet;
165 } codecvt_base;
167 /* class codecvt<char> */
168 typedef struct {
169 codecvt_base base;
170 } codecvt_char;
172 MSVCP_bool __thiscall codecvt_base_always_noconv(const codecvt_base*);
173 int __thiscall codecvt_char_unshift(const codecvt_char*, int*, char*, char*, char**);
174 int __thiscall codecvt_char_out(const codecvt_char*, int*, const char*,
175 const char*, const char**, char*, char*, char**);
176 int __thiscall codecvt_char_in(const codecvt_char*, int*, const char*,
177 const char*, const char**, char*, char*, char**);
178 int __thiscall codecvt_base_max_length(const codecvt_base*);
180 typedef struct {
181 LCID handle;
182 unsigned page;
183 } _Cvtvec;
185 /* class codecvt<wchar> */
186 typedef struct {
187 codecvt_base base;
188 _Cvtvec cvt;
189 } codecvt_wchar;
191 int __thiscall codecvt_wchar_unshift(const codecvt_wchar*, int*, char*, char*, char**);
192 int __thiscall codecvt_wchar_out(const codecvt_wchar*, int*, const wchar_t*,
193 const wchar_t*, const wchar_t**, char*, char*, char**);
194 int __thiscall codecvt_wchar_in(const codecvt_wchar*, int*, const char*,
195 const char*, const char**, wchar_t*, wchar_t*, wchar_t**);
197 /* class ctype_base */
198 typedef struct {
199 locale_facet facet;
200 } ctype_base;
202 /* class ctype<char> */
203 typedef struct {
204 ctype_base base;
205 _Ctypevec ctype;
206 } ctype_char;
208 MSVCP_bool __thiscall ctype_char_is_ch(const ctype_char*, short, char);
209 char __thiscall ctype_char_narrow_ch(const ctype_char*, char, char);
210 char __thiscall ctype_char_widen_ch(const ctype_char*, char);
212 /* class ctype<wchar> */
213 typedef struct {
214 ctype_base base;
215 _Ctypevec ctype;
216 _Cvtvec cvt;
217 } ctype_wchar;
219 MSVCP_bool __thiscall ctype_wchar_is_ch(const ctype_wchar*, short, wchar_t);
220 char __thiscall ctype_wchar_narrow_ch(const ctype_wchar*, wchar_t, char);
221 wchar_t __thiscall ctype_wchar_widen_ch(const ctype_wchar*, char);
223 /* class locale */
224 typedef struct
226 struct _locale__Locimp *ptr;
227 } locale;
229 locale* __thiscall locale_ctor(locale*);
230 locale* __thiscall locale_copy_ctor(locale*, const locale*);
231 locale* __thiscall locale_operator_assign(locale*, const locale*);
232 void __thiscall locale_dtor(locale*);
233 void free_locale(void);
234 codecvt_char* codecvt_char_use_facet(const locale*);
235 codecvt_wchar* codecvt_wchar_use_facet(const locale*);
236 codecvt_wchar* codecvt_short_use_facet(const locale*);
237 ctype_char* ctype_char_use_facet(const locale*);
238 ctype_wchar* ctype_wchar_use_facet(const locale*);
239 ctype_wchar* ctype_short_use_facet(const locale*);
241 /* class _Lockit */
242 typedef struct {
243 int locktype;
244 } _Lockit;
246 #define _LOCK_LOCALE 0
247 #define _LOCK_MALLOC 1
248 #define _LOCK_STREAM 2
249 #define _LOCK_DEBUG 3
250 #define _MAX_LOCK 4
252 void init_lockit(void);
253 void free_lockit(void);
254 _Lockit* __thiscall _Lockit_ctor_locktype(_Lockit*, int);
255 void __thiscall _Lockit_dtor(_Lockit*);
257 /* class mutex */
258 typedef struct {
259 void *mutex;
260 } mutex;
262 mutex* __thiscall mutex_ctor(mutex*);
263 void __thiscall mutex_dtor(mutex*);
264 void __thiscall mutex_lock(mutex*);
265 void __thiscall mutex_unlock(mutex*);
267 typedef enum {
268 FMTFLAG_skipws = 0x0001,
269 FMTFLAG_unitbuf = 0x0002,
270 FMTFLAG_uppercase = 0x0004,
271 FMTFLAG_showbase = 0x0008,
272 FMTFLAG_showpoint = 0x0010,
273 FMTFLAG_showpos = 0x0020,
274 FMTFLAG_left = 0x0040,
275 FMTFLAG_right = 0x0080,
276 FMTFLAG_internal = 0x0100,
277 FMTFLAG_dec = 0x0200,
278 FMTFLAG_oct = 0x0400,
279 FMTFLAG_hex = 0x0800,
280 FMTFLAG_scientific = 0x1000,
281 FMTFLAG_fixed = 0x2000,
282 FMTFLAG_hexfloat = 0x3000,
283 FMTFLAG_boolalpha = 0x4000,
284 FMTFLAG_stdio = 0x8000,
285 FMTFLAG_adjustfield = FMTFLAG_left|FMTFLAG_right|FMTFLAG_internal,
286 FMTFLAG_basefield = FMTFLAG_dec|FMTFLAG_oct|FMTFLAG_hex,
287 FMTFLAG_floatfield = FMTFLAG_scientific|FMTFLAG_fixed,
288 FMTFLAG_mask = 0xffff
289 } IOSB_fmtflags;
291 typedef enum {
292 OPENMODE_in = 0x01,
293 OPENMODE_out = 0x02,
294 OPENMODE_ate = 0x04,
295 OPENMODE_app = 0x08,
296 OPENMODE_trunc = 0x10,
297 OPENMODE__Nocreate = 0x40,
298 OPENMODE__Noreplace = 0x80,
299 OPENMODE_binary = 0x20,
300 OPENMODE_mask = 0xff
301 } IOSB_openmode;
303 typedef enum {
304 SEEKDIR_beg = 0x0,
305 SEEKDIR_cur = 0x1,
306 SEEKDIR_end = 0x2,
307 SEEKDIR_mask = 0x3
308 } IOSB_seekdir;
310 typedef enum {
311 IOSTATE_goodbit = 0x00,
312 IOSTATE_eofbit = 0x01,
313 IOSTATE_failbit = 0x02,
314 IOSTATE_badbit = 0x04,
315 IOSTATE__Hardfail = 0x10,
316 IOSTATE_mask = 0x17
317 } IOSB_iostate;
319 typedef struct _iosarray {
320 struct _iosarray *next;
321 int index;
322 int long_val;
323 void *ptr_val;
324 } IOS_BASE_iosarray;
326 typedef enum {
327 EVENT_erase_event,
328 EVENT_imbue_event,
329 EVENT_copyfmt_event
330 } IOS_BASE_event;
332 struct _ios_base;
333 typedef void (CDECL *IOS_BASE_event_callback)(IOS_BASE_event, struct _ios_base*, int);
334 typedef struct _fnarray {
335 struct _fnarray *next;
336 int index;
337 IOS_BASE_event_callback event_handler;
338 } IOS_BASE_fnarray;
340 /* class ios_base */
341 typedef struct _ios_base {
342 const vtable_ptr *vtable;
343 #if _MSVCP_VER >= 100
344 MSVCP_size_t DECLSPEC_ALIGN(8) stdstr;
345 #else
346 MSVCP_size_t stdstr;
347 #endif
348 IOSB_iostate state;
349 IOSB_iostate except;
350 IOSB_fmtflags fmtfl;
351 streamsize prec;
352 streamsize wide;
353 IOS_BASE_iosarray *arr;
354 IOS_BASE_fnarray *calls;
355 locale *loc;
356 } ios_base;
358 /* class basic_streambuf<char> */
359 typedef struct {
360 const vtable_ptr *vtable;
361 #if _MSVCP_VER <= 100
362 mutex lock;
363 #endif
364 char *rbuf;
365 char *wbuf;
366 char **prbuf;
367 char **pwbuf;
368 char *rpos;
369 char *wpos;
370 char **prpos;
371 char **pwpos;
372 int rsize;
373 int wsize;
374 int *prsize;
375 int *pwsize;
376 locale *loc;
377 } basic_streambuf_char;
379 typedef struct {
380 basic_streambuf_char *strbuf;
381 MSVCP_bool got;
382 char val;
383 } istreambuf_iterator_char;
385 typedef struct {
386 #if _MSVCP_VER == 80
387 void *iter_container;
388 #endif
389 MSVCP_bool failed;
390 basic_streambuf_char *strbuf;
391 } ostreambuf_iterator_char;
393 int __thiscall basic_streambuf_char_sgetc(basic_streambuf_char*);
394 int __thiscall basic_streambuf_char_sbumpc(basic_streambuf_char*);
395 int __thiscall basic_streambuf_char_sputc(basic_streambuf_char*, char);
397 /* class basic_streambuf<wchar> */
398 typedef struct {
399 const vtable_ptr *vtable;
400 #if _MSVCP_VER <= 100
401 mutex lock;
402 #endif
403 wchar_t *rbuf;
404 wchar_t *wbuf;
405 wchar_t **prbuf;
406 wchar_t **pwbuf;
407 wchar_t *rpos;
408 wchar_t *wpos;
409 wchar_t **prpos;
410 wchar_t **pwpos;
411 int rsize;
412 int wsize;
413 int *prsize;
414 int *pwsize;
415 locale *loc;
416 } basic_streambuf_wchar;
418 typedef struct {
419 basic_streambuf_wchar *strbuf;
420 MSVCP_bool got;
421 wchar_t val;
422 } istreambuf_iterator_wchar;
424 typedef struct {
425 #if _MSVCP_VER == 80
426 void *iter_container;
427 #endif
428 MSVCP_bool failed;
429 basic_streambuf_wchar *strbuf;
430 } ostreambuf_iterator_wchar;
432 unsigned short __thiscall basic_streambuf_wchar_sgetc(basic_streambuf_wchar*);
433 unsigned short __thiscall basic_streambuf_wchar_sbumpc(basic_streambuf_wchar*);
434 unsigned short __thiscall basic_streambuf_wchar_sputc(basic_streambuf_wchar*, wchar_t);
436 /* class num_get<char> */
437 typedef struct {
438 locale_facet facet;
439 _Cvtvec cvt;
440 } num_get;
442 num_get* num_get_char_use_facet(const locale*);
443 istreambuf_iterator_char* __thiscall num_get_char_get_long(const num_get*, istreambuf_iterator_char*,
444 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, LONG*);
445 istreambuf_iterator_char* __thiscall num_get_char_get_ushort(const num_get*, istreambuf_iterator_char*,
446 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, unsigned short*);
447 istreambuf_iterator_char* __thiscall num_get_char_get_uint(const num_get*, istreambuf_iterator_char*,
448 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, unsigned int*);
449 istreambuf_iterator_char* __thiscall num_get_char_get_ulong(const num_get*, istreambuf_iterator_char*,
450 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, ULONG*);
451 istreambuf_iterator_char* __thiscall num_get_char_get_float(const num_get*, istreambuf_iterator_char*,
452 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, float*);
453 istreambuf_iterator_char *__thiscall num_get_char_get_double(const num_get*, istreambuf_iterator_char*,
454 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, double*);
455 istreambuf_iterator_char *__thiscall num_get_char_get_ldouble(const num_get*, istreambuf_iterator_char*,
456 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, double*);
457 istreambuf_iterator_char *__thiscall num_get_char_get_void(const num_get*, istreambuf_iterator_char*,
458 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, void**);
459 istreambuf_iterator_char *__thiscall num_get_char_get_int64(const num_get*, istreambuf_iterator_char*,
460 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, LONGLONG*);
461 istreambuf_iterator_char *__thiscall num_get_char_get_uint64(const num_get*, istreambuf_iterator_char*,
462 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, ULONGLONG*);
463 istreambuf_iterator_char *__thiscall num_get_char_get_bool(const num_get*, istreambuf_iterator_char*,
464 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, MSVCP_bool*);
466 num_get* num_get_wchar_use_facet(const locale*);
467 num_get* num_get_short_use_facet(const locale*);
468 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_long(const num_get*, istreambuf_iterator_wchar*,
469 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, LONG*);
470 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_ushort(const num_get*, istreambuf_iterator_wchar*,
471 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, unsigned short*);
472 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_uint(const num_get*, istreambuf_iterator_wchar*,
473 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, unsigned int*);
474 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_ulong(const num_get*, istreambuf_iterator_wchar*,
475 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, ULONG*);
476 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_float(const num_get*, istreambuf_iterator_wchar*,
477 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, float*);
478 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_double(const num_get*, istreambuf_iterator_wchar*,
479 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, double*);
480 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_ldouble(const num_get*, istreambuf_iterator_wchar*,
481 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, double*);
482 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_void(const num_get*, istreambuf_iterator_wchar*,
483 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, void**);
484 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_int64(const num_get*, istreambuf_iterator_wchar*,
485 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, LONGLONG*);
486 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_uint64(const num_get*, istreambuf_iterator_wchar*,
487 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, ULONGLONG*);
488 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_bool(const num_get*, istreambuf_iterator_wchar*,
489 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, MSVCP_bool*);
491 /* class num_put<char> */
492 /* class num_put<wchar> */
493 typedef struct {
494 locale_facet facet;
495 _Cvtvec cvt;
496 } num_put;
498 num_put* num_put_char_use_facet(const locale*);
499 ostreambuf_iterator_char* __thiscall num_put_char_put_long(const num_put*, ostreambuf_iterator_char*,
500 ostreambuf_iterator_char, ios_base*, char, LONG);
501 ostreambuf_iterator_char* __thiscall num_put_char_put_ulong(const num_put*, ostreambuf_iterator_char*,
502 ostreambuf_iterator_char, ios_base*, char, ULONG);
503 ostreambuf_iterator_char* __thiscall num_put_char_put_double(const num_put*, ostreambuf_iterator_char*,
504 ostreambuf_iterator_char, ios_base*, char, double);
505 ostreambuf_iterator_char* __thiscall num_put_char_put_ldouble(const num_put*, ostreambuf_iterator_char*,
506 ostreambuf_iterator_char, ios_base*, char, double);
507 ostreambuf_iterator_char* __thiscall num_put_char_put_ptr(const num_put*, ostreambuf_iterator_char*,
508 ostreambuf_iterator_char, ios_base*, char, const void*);
509 ostreambuf_iterator_char* __thiscall num_put_char_put_int64(const num_put*, ostreambuf_iterator_char*,
510 ostreambuf_iterator_char, ios_base*, char, __int64);
511 ostreambuf_iterator_char* __thiscall num_put_char_put_uint64(const num_put*, ostreambuf_iterator_char*,
512 ostreambuf_iterator_char, ios_base*, char, unsigned __int64);
513 ostreambuf_iterator_char* __thiscall num_put_char_put_bool(const num_put*, ostreambuf_iterator_char*,
514 ostreambuf_iterator_char, ios_base*, char, MSVCP_bool);
516 num_put* num_put_wchar_use_facet(const locale*);
517 num_put* num_put_short_use_facet(const locale*);
518 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_long(const num_put*, ostreambuf_iterator_wchar*,
519 ostreambuf_iterator_wchar, ios_base*, wchar_t, LONG);
520 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_ulong(const num_put*, ostreambuf_iterator_wchar*,
521 ostreambuf_iterator_wchar, ios_base*, wchar_t, ULONG);
522 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_double(const num_put*, ostreambuf_iterator_wchar*,
523 ostreambuf_iterator_wchar, ios_base*, wchar_t, double);
524 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_ldouble(const num_put*, ostreambuf_iterator_wchar*,
525 ostreambuf_iterator_wchar, ios_base*, wchar_t, double);
526 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_ptr(const num_put*, ostreambuf_iterator_wchar*,
527 ostreambuf_iterator_wchar, ios_base*, wchar_t, const void*);
528 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_int64(const num_put*, ostreambuf_iterator_wchar*,
529 ostreambuf_iterator_wchar, ios_base*, wchar_t, __int64);
530 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_uint64(const num_put*, ostreambuf_iterator_wchar*,
531 ostreambuf_iterator_wchar, ios_base*, wchar_t, unsigned __int64);
532 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_bool(const num_put*, ostreambuf_iterator_wchar*,
533 ostreambuf_iterator_wchar, ios_base*, wchar_t, MSVCP_bool);
535 void init_exception(void*);
536 void init_locale(void*);
537 void init_io(void*);
538 void free_io(void);
540 /* class complex<float> */
541 typedef struct {
542 float real;
543 float imag;
544 } complex_float;
546 /* class complex<double> */
547 /* class complex<long double> */
548 typedef struct {
549 double real;
550 double imag;
551 } complex_double;
553 #if _MSVCP_VER < 80
554 #define memcpy_s( dst, size, src, count ) (memcpy( (dst), (src), (count) ), 0)
555 #define memmove_s( dst, size, src, count ) (memmove( (dst), (src), (count) ), 0)
556 #define mbstowcs_s( ret, wcs, size, mbs, count ) (mbstowcs( (wcs), (mbs), (count) ), 0)
557 #define hypotf( x, y ) ((float)hypot( (double)(x), (double)(y) ))
558 #endif