dxgi/tests: Fix output ownership test failures on Win10 1909.
[wine.git] / dlls / msvcp60 / msvcp.h
blob81b74ef150d9f815e3239670c44673e9af67d7cd
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;
27 typedef SSIZE_T streamoff;
28 typedef SSIZE_T streamsize;
29 #define STREAMOFF_BITS 32
30 #define STREAMSIZE_BITS 32
32 void __cdecl _invalid_parameter(const wchar_t*, const wchar_t*,
33 const wchar_t*, unsigned int, uintptr_t);
34 BOOL __cdecl __uncaught_exception(void);
36 extern void* (__cdecl *MSVCRT_operator_new)(MSVCP_size_t);
37 extern void (__cdecl *MSVCRT_operator_delete)(void*);
39 /* basic_string<char, char_traits<char>, allocator<char>> */
40 typedef struct
42 void *allocator;
43 char *ptr;
44 MSVCP_size_t size;
45 MSVCP_size_t res;
46 } basic_string_char;
48 basic_string_char* __thiscall MSVCP_basic_string_char_ctor(basic_string_char*);
49 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr(basic_string_char*, const char*);
50 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr_len(basic_string_char*, const char*, MSVCP_size_t);
51 basic_string_char* __thiscall MSVCP_basic_string_char_copy_ctor(basic_string_char*, const basic_string_char*);
52 void __thiscall MSVCP_basic_string_char_dtor(basic_string_char*);
53 const char* __thiscall MSVCP_basic_string_char_c_str(const basic_string_char*);
54 void __thiscall MSVCP_basic_string_char_clear(basic_string_char*);
55 basic_string_char* __thiscall MSVCP_basic_string_char_append_ch(basic_string_char*, char);
56 MSVCP_size_t __thiscall MSVCP_basic_string_char_length(const basic_string_char*);
57 basic_string_char* __thiscall MSVCP_basic_string_char_append_len_ch(basic_string_char*, MSVCP_size_t, char);
58 basic_string_char* __thiscall MSVCP_basic_string_char_assign(basic_string_char*, const basic_string_char*);
60 typedef struct
62 void *allocator;
63 wchar_t *ptr;
64 MSVCP_size_t size;
65 MSVCP_size_t res;
66 } basic_string_wchar;
68 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor(basic_string_wchar*);
69 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr(basic_string_wchar*, const wchar_t*);
70 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_len(basic_string_wchar*, const wchar_t*, MSVCP_size_t);
71 void __thiscall MSVCP_basic_string_wchar_dtor(basic_string_wchar*);
72 const wchar_t* __thiscall MSVCP_basic_string_wchar_c_str(const basic_string_wchar*);
73 void __thiscall MSVCP_basic_string_wchar_clear(basic_string_wchar*);
74 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_ch(basic_string_wchar*, wchar_t);
75 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_length(const basic_string_wchar*);
77 char* __thiscall MSVCP_allocator_char_allocate(void*, MSVCP_size_t);
78 void __thiscall MSVCP_allocator_char_deallocate(void*, char*, MSVCP_size_t);
79 MSVCP_size_t __thiscall MSVCP_allocator_char_max_size(const void*);
80 wchar_t* __thiscall MSVCP_allocator_wchar_allocate(void*, MSVCP_size_t);
81 void __thiscall MSVCP_allocator_wchar_deallocate(void*, wchar_t*, MSVCP_size_t);
82 MSVCP_size_t __thiscall MSVCP_allocator_wchar_max_size(const void*);
84 /* class locale::facet */
85 typedef struct {
86 const vtable_ptr *vtable;
87 MSVCP_size_t refs;
88 } locale_facet;
90 typedef enum {
91 CODECVT_ok = 0,
92 CODECVT_partial = 1,
93 CODECVT_error = 2,
94 CODECVT_noconv = 3
95 } codecvt_base_result;
97 typedef struct {
98 LCID handle;
99 unsigned page;
100 const short *table;
101 int delfl;
102 } _Ctypevec;
104 /* class codecvt_base */
105 typedef struct {
106 locale_facet facet;
107 } codecvt_base;
109 /* class codecvt<char> */
110 typedef struct {
111 codecvt_base base;
112 } codecvt_char;
114 MSVCP_bool __thiscall codecvt_base_always_noconv(const codecvt_base*);
115 int __thiscall codecvt_char_unshift(const codecvt_char*, int*, char*, char*, char**);
116 int __thiscall codecvt_char_out(const codecvt_char*, int*, const char*,
117 const char*, const char**, char*, char*, char**);
118 int __thiscall codecvt_char_in(const codecvt_char*, int*, const char*,
119 const char*, const char**, char*, char*, char**);
120 int __thiscall codecvt_base_max_length(const codecvt_base*);
122 typedef struct {
123 LCID handle;
124 unsigned page;
125 } _Cvtvec;
127 /* class codecvt<wchar> */
128 typedef struct {
129 codecvt_base base;
130 _Cvtvec cvt;
131 } codecvt_wchar;
133 int __thiscall codecvt_wchar_unshift(const codecvt_wchar*, int*, char*, char*, char**);
134 int __thiscall codecvt_wchar_out(const codecvt_wchar*, int*, const wchar_t*,
135 const wchar_t*, const wchar_t**, char*, char*, char**);
136 int __thiscall codecvt_wchar_in(const codecvt_wchar*, int*, const char*,
137 const char*, const char**, wchar_t*, wchar_t*, wchar_t**);
139 /* class ctype_base */
140 typedef struct {
141 locale_facet facet;
142 } ctype_base;
144 /* class ctype<char> */
145 typedef struct {
146 ctype_base base;
147 _Ctypevec ctype;
148 } ctype_char;
150 MSVCP_bool __thiscall ctype_char_is_ch(const ctype_char*, short, char);
151 char __thiscall ctype_char_narrow_ch(const ctype_char*, char, char);
152 char __thiscall ctype_char_widen_ch(const ctype_char*, char);
154 /* class ctype<wchar> */
155 typedef struct {
156 ctype_base base;
157 _Ctypevec ctype;
158 _Cvtvec cvt;
159 } ctype_wchar;
161 MSVCP_bool __thiscall ctype_wchar_is_ch(const ctype_wchar*, short, wchar_t);
162 char __thiscall ctype_wchar_narrow_ch(const ctype_wchar*, wchar_t, char);
163 wchar_t __thiscall ctype_wchar_widen_ch(const ctype_wchar*, char);
165 /* class locale */
166 typedef struct
168 struct _locale__Locimp *ptr;
169 } locale;
171 locale* __thiscall locale_ctor(locale*);
172 locale* __thiscall locale_copy_ctor(locale*, const locale*);
173 locale* __thiscall locale_ctor_uninitialized(locale *, int);
174 locale* __thiscall locale_operator_assign(locale*, const locale*);
175 void __thiscall locale_dtor(locale*);
176 void free_locale(void);
177 locale* __thiscall locale__Addfac(locale*, locale_facet*, MSVCP_size_t, MSVCP_size_t);
178 codecvt_char* codecvt_char_use_facet(const locale*);
179 codecvt_wchar* codecvt_wchar_use_facet(const locale*);
180 codecvt_wchar* codecvt_short_use_facet(const locale*);
181 ctype_char* ctype_char_use_facet(const locale*);
182 ctype_wchar* ctype_wchar_use_facet(const locale*);
183 ctype_wchar* ctype_short_use_facet(const locale*);
185 typedef struct {
186 MSVCP_size_t id;
187 } locale_id;
188 extern locale_id codecvt_char_id;
189 extern locale_id codecvt_short_id;
191 /* class _Init_locks */
192 typedef struct {
193 char empty_struct;
194 } _Init_locks;
196 void __cdecl _Init_locks__Init_locks_ctor(_Init_locks*);
197 void __cdecl _Init_locks__Init_locks_dtor(_Init_locks*);
199 /* class _Lockit */
200 typedef struct {
201 char empty_struct;
202 } _Lockit;
204 #define _LOCK_LOCALE 0
205 #define _LOCK_MALLOC 1
206 #define _LOCK_STREAM 2
207 #define _LOCK_DEBUG 3
208 #define _MAX_LOCK 4
210 void init_lockit(void);
211 void free_lockit(void);
212 _Lockit* __thiscall _Lockit_ctor_locktype(_Lockit*, int);
213 void __thiscall _Lockit_dtor(_Lockit*);
215 typedef enum {
216 FMTFLAG_skipws = 0x0001,
217 FMTFLAG_unitbuf = 0x0002,
218 FMTFLAG_uppercase = 0x0004,
219 FMTFLAG_showbase = 0x0008,
220 FMTFLAG_showpoint = 0x0010,
221 FMTFLAG_showpos = 0x0020,
222 FMTFLAG_left = 0x0040,
223 FMTFLAG_right = 0x0080,
224 FMTFLAG_internal = 0x0100,
225 FMTFLAG_dec = 0x0200,
226 FMTFLAG_oct = 0x0400,
227 FMTFLAG_hex = 0x0800,
228 FMTFLAG_scientific = 0x1000,
229 FMTFLAG_fixed = 0x2000,
230 FMTFLAG_hexfloat = 0x3000,
231 FMTFLAG_boolalpha = 0x4000,
232 FMTFLAG_stdio = 0x8000,
233 FMTFLAG_adjustfield = FMTFLAG_left|FMTFLAG_right|FMTFLAG_internal,
234 FMTFLAG_basefield = FMTFLAG_dec|FMTFLAG_oct|FMTFLAG_hex,
235 FMTFLAG_floatfield = FMTFLAG_scientific|FMTFLAG_fixed,
236 FMTFLAG_mask = 0xffff
237 } IOSB_fmtflags;
239 typedef enum {
240 OPENMODE_in = 0x01,
241 OPENMODE_out = 0x02,
242 OPENMODE_ate = 0x04,
243 OPENMODE_app = 0x08,
244 OPENMODE_trunc = 0x10,
245 OPENMODE__Nocreate = 0x40,
246 OPENMODE__Noreplace = 0x80,
247 OPENMODE_binary = 0x20,
248 OPENMODE_mask = 0xff
249 } IOSB_openmode;
251 typedef enum {
252 SEEKDIR_beg = 0x0,
253 SEEKDIR_cur = 0x1,
254 SEEKDIR_end = 0x2,
255 SEEKDIR_mask = 0x3
256 } IOSB_seekdir;
258 typedef enum {
259 IOSTATE_goodbit = 0x00,
260 IOSTATE_eofbit = 0x01,
261 IOSTATE_failbit = 0x02,
262 IOSTATE_badbit = 0x04,
263 IOSTATE__Hardfail = 0x10,
264 IOSTATE_mask = 0x17
265 } IOSB_iostate;
267 typedef struct _iosarray {
268 struct _iosarray *next;
269 int index;
270 int long_val;
271 void *ptr_val;
272 } IOS_BASE_iosarray;
274 typedef enum {
275 EVENT_erase_event,
276 EVENT_imbue_event,
277 EVENT_copyfmt_event
278 } IOS_BASE_event;
280 struct _ios_base;
281 typedef void (CDECL *IOS_BASE_event_callback)(IOS_BASE_event, struct _ios_base*, int);
282 typedef struct _fnarray {
283 struct _fnarray *next;
284 int index;
285 IOS_BASE_event_callback event_handler;
286 } IOS_BASE_fnarray;
288 /* class ios_base */
289 typedef struct _ios_base {
290 const vtable_ptr *vtable;
291 IOSB_iostate state;
292 IOSB_iostate except;
293 IOSB_fmtflags fmtfl;
294 streamsize prec;
295 streamsize wide;
296 IOS_BASE_iosarray *arr;
297 IOS_BASE_fnarray *calls;
298 locale loc;
299 MSVCP_size_t stdstr;
300 } ios_base;
302 /* class basic_streambuf<char> */
303 typedef struct {
304 const vtable_ptr *vtable;
305 char *rbuf;
306 char *wbuf;
307 char **prbuf;
308 char **pwbuf;
309 char *rpos;
310 char *wpos;
311 char **prpos;
312 char **pwpos;
313 int rsize;
314 int wsize;
315 int *prsize;
316 int *pwsize;
317 locale loc;
318 } basic_streambuf_char;
320 typedef struct {
321 basic_streambuf_char *strbuf;
322 MSVCP_bool got;
323 char val;
324 } istreambuf_iterator_char;
326 typedef struct {
327 MSVCP_bool failed;
328 basic_streambuf_char *strbuf;
329 } ostreambuf_iterator_char;
331 int __thiscall basic_streambuf_char_sgetc(basic_streambuf_char*);
332 int __thiscall basic_streambuf_char_sbumpc(basic_streambuf_char*);
333 int __thiscall basic_streambuf_char_sputc(basic_streambuf_char*, char);
335 /* class basic_streambuf<wchar> */
336 typedef struct {
337 const vtable_ptr *vtable;
338 wchar_t *rbuf;
339 wchar_t *wbuf;
340 wchar_t **prbuf;
341 wchar_t **pwbuf;
342 wchar_t *rpos;
343 wchar_t *wpos;
344 wchar_t **prpos;
345 wchar_t **pwpos;
346 int rsize;
347 int wsize;
348 int *prsize;
349 int *pwsize;
350 locale loc;
351 } basic_streambuf_wchar;
353 typedef struct {
354 basic_streambuf_wchar *strbuf;
355 MSVCP_bool got;
356 wchar_t val;
357 } istreambuf_iterator_wchar;
359 typedef struct {
360 MSVCP_bool failed;
361 basic_streambuf_wchar *strbuf;
362 } ostreambuf_iterator_wchar;
364 unsigned short __thiscall basic_streambuf_wchar_sgetc(basic_streambuf_wchar*);
365 unsigned short __thiscall basic_streambuf_wchar_sbumpc(basic_streambuf_wchar*);
366 unsigned short __thiscall basic_streambuf_wchar_sputc(basic_streambuf_wchar*, wchar_t);
368 #define IOS_LOCALE(ios) (&(ios)->loc)
370 /* class num_get<char> */
371 typedef struct {
372 locale_facet facet;
373 _Cvtvec cvt;
374 } num_get;
376 num_get* num_get_char_use_facet(const locale*);
377 istreambuf_iterator_char* __thiscall num_get_char_get_long(const num_get*, istreambuf_iterator_char*,
378 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, LONG*);
379 istreambuf_iterator_char* __thiscall num_get_char_get_ushort(const num_get*, istreambuf_iterator_char*,
380 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, unsigned short*);
381 istreambuf_iterator_char* __thiscall num_get_char_get_uint(const num_get*, istreambuf_iterator_char*,
382 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, unsigned int*);
383 istreambuf_iterator_char* __thiscall num_get_char_get_ulong(const num_get*, istreambuf_iterator_char*,
384 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, ULONG*);
385 istreambuf_iterator_char* __thiscall num_get_char_get_float(const num_get*, istreambuf_iterator_char*,
386 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, float*);
387 istreambuf_iterator_char *__thiscall num_get_char_get_double(const num_get*, istreambuf_iterator_char*,
388 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, double*);
389 istreambuf_iterator_char *__thiscall num_get_char_get_ldouble(const num_get*, istreambuf_iterator_char*,
390 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, double*);
391 istreambuf_iterator_char *__thiscall num_get_char_get_void(const num_get*, istreambuf_iterator_char*,
392 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, void**);
393 istreambuf_iterator_char *__thiscall num_get_char_get_int64(const num_get*, istreambuf_iterator_char*,
394 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, LONGLONG*);
395 istreambuf_iterator_char *__thiscall num_get_char_get_uint64(const num_get*, istreambuf_iterator_char*,
396 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, ULONGLONG*);
397 istreambuf_iterator_char *__thiscall num_get_char_get_bool(const num_get*, istreambuf_iterator_char*,
398 istreambuf_iterator_char, istreambuf_iterator_char, ios_base*, int*, MSVCP_bool*);
400 num_get* num_get_wchar_use_facet(const locale*);
401 num_get* num_get_short_use_facet(const locale*);
402 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_long(const num_get*, istreambuf_iterator_wchar*,
403 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, LONG*);
404 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_ushort(const num_get*, istreambuf_iterator_wchar*,
405 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, unsigned short*);
406 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_uint(const num_get*, istreambuf_iterator_wchar*,
407 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, unsigned int*);
408 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_ulong(const num_get*, istreambuf_iterator_wchar*,
409 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, ULONG*);
410 istreambuf_iterator_wchar* __thiscall num_get_wchar_get_float(const num_get*, istreambuf_iterator_wchar*,
411 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, float*);
412 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_double(const num_get*, istreambuf_iterator_wchar*,
413 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, double*);
414 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_ldouble(const num_get*, istreambuf_iterator_wchar*,
415 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, double*);
416 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_void(const num_get*, istreambuf_iterator_wchar*,
417 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, void**);
418 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_int64(const num_get*, istreambuf_iterator_wchar*,
419 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, LONGLONG*);
420 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_uint64(const num_get*, istreambuf_iterator_wchar*,
421 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, ULONGLONG*);
422 istreambuf_iterator_wchar *__thiscall num_get_wchar_get_bool(const num_get*, istreambuf_iterator_wchar*,
423 istreambuf_iterator_wchar, istreambuf_iterator_wchar, ios_base*, int*, MSVCP_bool*);
425 /* class num_put<char> */
426 /* class num_put<wchar> */
427 typedef struct {
428 locale_facet facet;
429 _Cvtvec cvt;
430 } num_put;
432 num_put* num_put_char_use_facet(const locale*);
433 ostreambuf_iterator_char* __thiscall num_put_char_put_long(const num_put*, ostreambuf_iterator_char*,
434 ostreambuf_iterator_char, ios_base*, char, LONG);
435 ostreambuf_iterator_char* __thiscall num_put_char_put_ulong(const num_put*, ostreambuf_iterator_char*,
436 ostreambuf_iterator_char, ios_base*, char, ULONG);
437 ostreambuf_iterator_char* __thiscall num_put_char_put_double(const num_put*, ostreambuf_iterator_char*,
438 ostreambuf_iterator_char, ios_base*, char, double);
439 ostreambuf_iterator_char* __thiscall num_put_char_put_ldouble(const num_put*, ostreambuf_iterator_char*,
440 ostreambuf_iterator_char, ios_base*, char, double);
441 ostreambuf_iterator_char* __thiscall num_put_char_put_ptr(const num_put*, ostreambuf_iterator_char*,
442 ostreambuf_iterator_char, ios_base*, char, const void*);
443 ostreambuf_iterator_char* __thiscall num_put_char_put_int64(const num_put*, ostreambuf_iterator_char*,
444 ostreambuf_iterator_char, ios_base*, char, __int64);
445 ostreambuf_iterator_char* __thiscall num_put_char_put_uint64(const num_put*, ostreambuf_iterator_char*,
446 ostreambuf_iterator_char, ios_base*, char, unsigned __int64);
447 ostreambuf_iterator_char* __thiscall num_put_char_put_bool(const num_put*, ostreambuf_iterator_char*,
448 ostreambuf_iterator_char, ios_base*, char, MSVCP_bool);
450 num_put* num_put_wchar_use_facet(const locale*);
451 num_put* num_put_short_use_facet(const locale*);
452 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_long(const num_put*, ostreambuf_iterator_wchar*,
453 ostreambuf_iterator_wchar, ios_base*, wchar_t, LONG);
454 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_ulong(const num_put*, ostreambuf_iterator_wchar*,
455 ostreambuf_iterator_wchar, ios_base*, wchar_t, ULONG);
456 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_double(const num_put*, ostreambuf_iterator_wchar*,
457 ostreambuf_iterator_wchar, ios_base*, wchar_t, double);
458 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_ldouble(const num_put*, ostreambuf_iterator_wchar*,
459 ostreambuf_iterator_wchar, ios_base*, wchar_t, double);
460 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_ptr(const num_put*, ostreambuf_iterator_wchar*,
461 ostreambuf_iterator_wchar, ios_base*, wchar_t, const void*);
462 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_int64(const num_put*, ostreambuf_iterator_wchar*,
463 ostreambuf_iterator_wchar, ios_base*, wchar_t, __int64);
464 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_uint64(const num_put*, ostreambuf_iterator_wchar*,
465 ostreambuf_iterator_wchar, ios_base*, wchar_t, unsigned __int64);
466 ostreambuf_iterator_wchar* __thiscall num_put_wchar_put_bool(const num_put*, ostreambuf_iterator_wchar*,
467 ostreambuf_iterator_wchar, ios_base*, wchar_t, MSVCP_bool);
469 void init_exception(void*);
470 void init_locale(void*);
471 void init_io(void*);
472 void free_io(void);
473 void init_misc(void*);
475 /* class complex<float> */
476 typedef struct {
477 float real;
478 float imag;
479 } complex_float;
481 /* class complex<double> */
482 /* class complex<long double> */
483 typedef struct {
484 double real;
485 double imag;
486 } complex_double;