more ices
[ICEs.git] / bfin-5624 / qfontengine.i.0
1 # 1 "/home/test/work/cruise/checkouts/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qfontengine.cpp"
2 # 1 "<built-in>"
3 #define __STDC__ 1
4 #define __cplusplus 1
5 #define __STDC_HOSTED__ 1
6 #define __GNUC__ 4
7 #define __GNUG__ 4
8 #define __GNUC_MINOR__ 3
9 #define __GNUC_PATCHLEVEL__ 4
10 #define __SIZE_TYPE__ long unsigned int
11 #define __PTRDIFF_TYPE__ long int
12 #define __WCHAR_TYPE__ int
13 #define __WINT_TYPE__ unsigned int
14 #define __INTMAX_TYPE__ long long int
15 #define __UINTMAX_TYPE__ long long unsigned int
16 #define __GXX_WEAK__ 1
17 #define __DEPRECATED 1
18 #define __GXX_RTTI 1
19 #define __EXCEPTIONS 1
20 #define __GXX_ABI_VERSION 1002
21 #define __SCHAR_MAX__ 127
22 #define __SHRT_MAX__ 32767
23 #define __INT_MAX__ 2147483647
24 #define __LONG_MAX__ 2147483647L
25 #define __LONG_LONG_MAX__ 9223372036854775807LL
26 #define __WCHAR_MAX__ 2147483647
27 #define __CHAR_BIT__ 8
28 #define __INTMAX_MAX__ 9223372036854775807LL
29 #define __FLT_EVAL_METHOD__ 0
30 #define __DEC_EVAL_METHOD__ 2
31 #define __FLT_RADIX__ 2
32 #define __FLT_MANT_DIG__ 24
33 #define __FLT_DIG__ 6
34 #define __FLT_MIN_EXP__ (-125)
35 #define __FLT_MIN_10_EXP__ (-37)
36 #define __FLT_MAX_EXP__ 128
37 #define __FLT_MAX_10_EXP__ 38
38 #define __FLT_MAX__ 3.40282347e+38F
39 #define __FLT_MIN__ 1.17549435e-38F
40 #define __FLT_EPSILON__ 1.19209290e-7F
41 #define __FLT_DENORM_MIN__ 1.40129846e-45F
42 #define __FLT_HAS_DENORM__ 1
43 #define __FLT_HAS_INFINITY__ 1
44 #define __FLT_HAS_QUIET_NAN__ 1
45 #define __DBL_MANT_DIG__ 53
46 #define __DBL_DIG__ 15
47 #define __DBL_MIN_EXP__ (-1021)
48 #define __DBL_MIN_10_EXP__ (-307)
49 #define __DBL_MAX_EXP__ 1024
50 #define __DBL_MAX_10_EXP__ 308
51 #define __DBL_MAX__ 1.7976931348623157e+308
52 #define __DBL_MIN__ 2.2250738585072014e-308
53 #define __DBL_EPSILON__ 2.2204460492503131e-16
54 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324
55 #define __DBL_HAS_DENORM__ 1
56 #define __DBL_HAS_INFINITY__ 1
57 #define __DBL_HAS_QUIET_NAN__ 1
58 #define __LDBL_MANT_DIG__ 53
59 #define __LDBL_DIG__ 15
60 #define __LDBL_MIN_EXP__ (-1021)
61 #define __LDBL_MIN_10_EXP__ (-307)
62 #define __LDBL_MAX_EXP__ 1024
63 #define __LDBL_MAX_10_EXP__ 308
64 #define __DECIMAL_DIG__ 17
65 #define __LDBL_MAX__ 1.7976931348623157e+308L
66 #define __LDBL_MIN__ 2.2250738585072014e-308L
67 #define __LDBL_EPSILON__ 2.2204460492503131e-16L
68 #define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
69 #define __LDBL_HAS_DENORM__ 1
70 #define __LDBL_HAS_INFINITY__ 1
71 #define __LDBL_HAS_QUIET_NAN__ 1
72 #define __DEC32_MANT_DIG__ 7
73 #define __DEC32_MIN_EXP__ (-95)
74 #define __DEC32_MAX_EXP__ 96
75 #define __DEC32_MIN__ 1E-95DF
76 #define __DEC32_MAX__ 9.999999E96DF
77 #define __DEC32_EPSILON__ 1E-6DF
78 #define __DEC32_DEN__ 0.000001E-95DF
79 #define __DEC64_MANT_DIG__ 16
80 #define __DEC64_MIN_EXP__ (-383)
81 #define __DEC64_MAX_EXP__ 384
82 #define __DEC64_MIN__ 1E-383DD
83 #define __DEC64_MAX__ 9.999999999999999E384DD
84 #define __DEC64_EPSILON__ 1E-15DD
85 #define __DEC64_DEN__ 0.000000000000001E-383DD
86 #define __DEC128_MANT_DIG__ 34
87 #define __DEC128_MIN_EXP__ (-6143)
88 #define __DEC128_MAX_EXP__ 6144
89 #define __DEC128_MIN__ 1E-6143DL
90 #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
91 #define __DEC128_EPSILON__ 1E-33DL
92 #define __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL
93 #define __REGISTER_PREFIX__
94 #define __USER_LABEL_PREFIX__ _
95 #define __VERSION__ "4.3.4"
96 #define __GNUC_GNU_INLINE__ 1
97 #define __OPTIMIZE__ 1
98 #define __FINITE_MATH_ONLY__ 0
99 #define __pic__ 2
100 #define __PIC__ 2
101 #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
102 #define __SIZEOF_INT__ 4
103 #define __SIZEOF_LONG__ 4
104 #define __SIZEOF_LONG_LONG__ 8
105 #define __SIZEOF_SHORT__ 2
106 #define __SIZEOF_FLOAT__ 4
107 #define __SIZEOF_DOUBLE__ 8
108 #define __SIZEOF_LONG_DOUBLE__ 8
109 #define __SIZEOF_SIZE_T__ 4
110 #define __SIZEOF_WCHAR_T__ 4
111 #define __SIZEOF_WINT_T__ 4
112 #define __SIZEOF_PTRDIFF_T__ 4
113 #define __SIZEOF_POINTER__ 4
114 #define __bfin 1
115 #define __bfin__ 1
116 #define bfin 1
117 #define __BFIN 1
118 #define __BFIN__ 1
119 #define BFIN 1
120 #define __ADSPBLACKFIN__ 1
121 #define __ADSPLPBLACKFIN__ 1
122 #define __SILICON_REVISION__ 0xffff
123 #define __WORKAROUNDS_ENABLED 1
124 #define __WORKAROUND_SPECULATIVE_LOADS 1
125 #define __WORKAROUND_SPECULATIVE_SYNCS 1
126 #define __WORKAROUND_RETS 1
127 #define __BFIN_FDPIC__ 1
128 #define __FDPIC__ 1
129 #define __gnu_linux__ 1
130 #define __linux 1
131 #define __linux__ 1
132 #define linux 1
133 #define __unix 1
134 #define __unix__ 1
135 #define unix 1
136 #define __ELF__ 1
137 # 1 "<command-line>"
138 #define _GNU_SOURCE 1
139 #define QT_LINUX_NOMMU 1
140 #define _REENTRANT 1
141 #define QT_SHARED 1
142 #define QT_BUILD_GUI_LIB 1
143 #define QT_NO_USING_NAMESPACE 1
144 #define QT_NO_CAST_TO_ASCII 1
145 #define QT_ASCII_CAST_WARNINGS 1
146 #define QT_MOC_COMPAT 1
147 #define QT_RASTER_IMAGEENGINE 1
148 #define QT_RASTER_PAINTENGINE 1
149 #define QT_NO_FONTCONFIG 1
150 #define QT_NO_FREETYPE 1
151 #define QT_NO_OPENTYPE 1
152 #define QT_NO_STYLE_MAC 1
153 #define QT_NO_STYLE_WINDOWSVISTA 1
154 #define QT_NO_STYLE_WINDOWSXP 1
155 #define QT_NO_STYLE_GTK 1
156 #define QT_NO_STYLE_WINDOWSCE 1
157 #define QT_NO_STYLE_WINDOWSMOBILE 1
158 #define Q_INTERNAL_QAPP_SRC 1
159 #define QT_NO_DEBUG 1
160 #define QT_NETWORK_LIB 1
161 #define QT_CORE_LIB 1
162 #define _LARGEFILE64_SOURCE 1
163 #define _LARGEFILE_SOURCE 1
164 # 1 "/home/test/work/cruise/checkouts/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qfontengine.cpp"
165 # 42 "/home/test/work/cruise/checkouts/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qfontengine.cpp"
166 # 1 "../../include/QtCore/qdebug.h" 1
167 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/io/qdebug.h" 1
168 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/io/qdebug.h"
169 #define QDEBUG_H
170
171 # 1 "../../include/QtCore/qalgorithms.h" 1
172 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qalgorithms.h" 1
173 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qalgorithms.h"
174 #define QALGORITHMS_H
175
176 # 1 "../../include/QtCore/qglobal.h" 1
177 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h" 1
178 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
179 #define QGLOBAL_H
180
181 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 1 3 4
182 # 43 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
183 #define _STDDEF_H
184 #define _STDDEF_H_
185
186 #define _ANSI_STDDEF_H
187
188 #define __STDDEF_H__
189 # 141 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
190 #define _PTRDIFF_T
191 #define _T_PTRDIFF_
192 #define _T_PTRDIFF
193 #define __PTRDIFF_T
194 #define _PTRDIFF_T_
195 #define _BSD_PTRDIFF_T_
196 #define ___int_ptrdiff_t_h
197 #define _GCC_PTRDIFF_T
198
199
200
201 typedef long int ptrdiff_t;
202 # 163 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
203 #undef __need_ptrdiff_t
204 # 189 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
205 #define __size_t__
206 #define __SIZE_T__
207 #define _SIZE_T
208 #define _SYS_SIZE_T_H
209 #define _T_SIZE_
210 #define _T_SIZE
211 #define __SIZE_T
212 #define _SIZE_T_
213 #define _BSD_SIZE_T_
214 #define _SIZE_T_DEFINED_
215 #define _SIZE_T_DEFINED
216 #define _BSD_SIZE_T_DEFINED_
217 #define _SIZE_T_DECLARED
218 #define ___int_size_t_h
219 #define _GCC_SIZE_T
220 #define _SIZET_
221
222
223
224 #define __size_t
225
226
227
228
229
230 typedef long unsigned int size_t;
231 # 236 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
232 #undef __need_size_t
233 # 265 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
234 #define __wchar_t__
235 #define __WCHAR_T__
236 #define _WCHAR_T
237 #define _T_WCHAR_
238 #define _T_WCHAR
239 #define __WCHAR_T
240 #define _WCHAR_T_
241 #define _BSD_WCHAR_T_
242 #define _WCHAR_T_DEFINED_
243 #define _WCHAR_T_DEFINED
244 #define _WCHAR_T_H
245 #define ___int_wchar_t_h
246 #define __INT_WCHAR_T_H
247 #define _GCC_WCHAR_T
248 #define _WCHAR_T_DECLARED
249 # 292 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
250 #undef _BSD_WCHAR_T_
251 # 345 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
252 #undef __need_wchar_t
253 # 398 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
254 #undef NULL
255
256 #define NULL __null
257 # 409 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 3 4
258 #undef __need_NULL
259
260
261
262
263 #define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER)
264 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h" 2
265
266 #define QT_VERSION_STR "4.5.1"
267
268
269
270 #define QT_VERSION 0x040501
271
272
273
274 #define QT_VERSION_CHECK(major,minor,patch) ((major<<16)|(minor<<8)|(patch))
275
276 #define QT_PACKAGEDATE_STR "2009-04-22"
277
278 #define QT_PACKAGE_TAG "g8cfb0638c650b906fc0ddede4e5c1c391e81307c"
279
280
281 # 1 "../../include/QtCore/qconfig.h" 1
282
283
284
285
286 #define QT_EDITION QT_EDITION_OPENSOURCE
287
288
289
290 #define Q_BIG_ENDIAN 4321
291 #define Q_LITTLE_ENDIAN 1234
292 #define QT_BUILD_KEY "bfin linux fdpic-g++ full-config"
293
294
295
296
297 #define Q_BYTE_ORDER Q_LITTLE_ENDIAN
298
299
300
301 #define QT_ARCH_BFIN
302
303
304
305
306 #define QT_LARGEFILE_SUPPORT 64
307 #define QT_POINTER_SIZE 4
308
309
310
311
312 #define QT_BUILTIN_GIF_READER 1
313
314
315
316
317
318 #define QT_NO_CUPS
319
320
321
322
323
324 #define QT_NO_DBUS
325
326
327
328
329
330 #define QT_NO_EXCEPTIONS
331
332
333
334
335
336 #define QT_NO_GETIFADDRS
337
338
339
340
341
342 #define QT_NO_GLIB
343
344
345
346
347
348 #define QT_NO_GSTREAMER
349
350
351
352
353
354 #define QT_NO_ICONV
355
356
357
358
359
360 #define QT_NO_IMAGEFORMAT_JPEG
361
362
363
364
365
366 #define QT_NO_IMAGEFORMAT_MNG
367
368
369
370
371
372 #define QT_NO_IMAGEFORMAT_TIFF
373
374
375
376
377
378 #define QT_NO_NAS
379
380
381
382
383
384 #define QT_NO_NIS
385
386
387
388
389
390 #define QT_NO_OPENGL
391
392
393
394
395
396 #define QT_NO_OPENSSL
397
398
399
400
401
402 #define QT_NO_PHONON
403
404
405
406
407
408 #define QT_NO_QWS_KBD_QVFB
409
410
411
412
413
414 #define QT_NO_QWS_KBD_SL5000
415
416
417
418
419
420 #define QT_NO_QWS_KBD_TTY
421
422
423
424
425
426 #define QT_NO_QWS_KBD_UM
427
428
429
430
431
432 #define QT_NO_QWS_KBD_USB
433
434
435
436
437
438 #define QT_NO_QWS_KBD_VR41XX
439
440
441
442
443
444 #define QT_NO_QWS_KBD_YOPY
445
446
447
448
449
450 #define QT_NO_QWS_MOUSE_BUS
451
452
453
454
455
456 #define QT_NO_QWS_MOUSE_LINUXTP
457
458
459
460
461
462 #define QT_NO_QWS_MOUSE_QVFB
463
464
465
466
467
468 #define QT_NO_QWS_MOUSE_TSLIB
469
470
471
472
473
474 #define QT_NO_QWS_MOUSE_VR41XX
475
476
477
478
479
480 #define QT_NO_QWS_MOUSE_YOPY
481
482
483
484
485
486 #define QT_NO_QWS_QVFB
487
488
489
490
491
492 #define QT_NO_QWS_TRANSFORMED
493
494
495
496
497
498 #define QT_NO_QWS_VNC
499
500
501
502
503
504 #define QT_NO_SESSIONMANAGER
505 # 235 "../../include/QtCore/qconfig.h"
506 #define QT_NO_SXE
507
508
509
510
511
512 #define QT_NO_WEBKIT
513
514
515
516
517
518 #define QT_NO_XMLPATTERNS
519
520
521
522
523
524 #define QT_NO_ZLIB
525
526
527
528
529
530 #define QT_QWS_DEPTH_16
531
532
533
534
535
536 #define QT_QWS_DEPTH_24
537
538
539
540
541
542 #define QT_QWS_DEPTH_32
543
544
545
546
547
548 #define QT_QWS_DEPTH_8
549
550
551
552
553
554 #define QT_RUNTIME_XCURSOR
555
556
557
558
559
560 #define QT_RUNTIME_XFIXES
561
562
563
564
565
566 #define QT_RUNTIME_XINERAMA
567
568
569
570
571
572 #define QT_RUNTIME_XINPUT
573
574
575
576
577
578 #define QT_RUNTIME_XRANDR
579
580
581
582
583
584 #define QT_USE_MATH_H_FLOATS
585
586
587
588 #define Q_WS_QWS
589
590
591 #define QT_VISIBILITY_AVAILABLE
592 # 63 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h" 2
593
594
595
596
597
598
599 #define QT_PREPEND_NAMESPACE(name) ::name
600 #define QT_USE_NAMESPACE
601 #define QT_BEGIN_NAMESPACE
602 #define QT_END_NAMESPACE
603 #define QT_BEGIN_INCLUDE_NAMESPACE
604 #define QT_END_INCLUDE_NAMESPACE
605 #define QT_BEGIN_MOC_NAMESPACE
606 #define QT_END_MOC_NAMESPACE
607 #define QT_FORWARD_DECLARE_CLASS(name) class name;
608 #define QT_FORWARD_DECLARE_STRUCT(name) struct name;
609 #define QT_MANGLE_NAMESPACE(name) name
610 # 137 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
611 #define QT_BEGIN_HEADER
612 #define QT_END_HEADER
613 #define QT_BEGIN_INCLUDE_HEADER
614 #define QT_END_INCLUDE_HEADER extern "C++"
615 # 215 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
616 #define Q_OS_LINUX
617 # 285 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
618 #define Q_OS_UNIX
619 # 449 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
620 #define Q_CC_GNU
621 #define Q_C_CALLBACKS
622 # 483 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
623 #define Q_PACKED __attribute__ ((__packed__))
624 #define Q_NO_PACKED_REFERENCE
625
626 #define QT_NO_ARM_EABI
627 # 697 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
628 #define Q_CONSTRUCTOR_FUNCTION0(AFUNC) static const int AFUNC ## __init_variable__ = AFUNC();
629
630 #define Q_CONSTRUCTOR_FUNCTION(AFUNC) Q_CONSTRUCTOR_FUNCTION0(AFUNC)
631
632
633
634 #define Q_DESTRUCTOR_FUNCTION0(AFUNC) class AFUNC ## __dest_class__ { public: inline AFUNC ## __dest_class__() { } inline ~ AFUNC ## __dest_class__() { AFUNC(); } } AFUNC ## __dest_instance__;
635
636
637
638
639
640 #define Q_DESTRUCTOR_FUNCTION(AFUNC) Q_DESTRUCTOR_FUNCTION0(AFUNC)
641
642
643
644
645 #define Q_REQUIRED_RESULT __attribute__ ((warn_unused_result))
646 # 771 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
647
648
649
650
651
652
653
654
655
656 typedef signed char qint8;
657 typedef unsigned char quint8;
658 typedef short qint16;
659 typedef unsigned short quint16;
660 typedef int qint32;
661 typedef unsigned int quint32;
662
663
664
665
666
667
668 #define Q_INT64_C(c) static_cast<long long>(c ## LL)
669 #define Q_UINT64_C(c) static_cast<unsigned long long>(c ## ULL)
670 typedef long long qint64;
671 typedef unsigned long long quint64;
672
673
674 typedef qint64 qlonglong;
675 typedef quint64 qulonglong;
676 # 809 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
677 #define Q_INIT_RESOURCE(name) do { extern int QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); } while (0)
678
679
680 #define Q_CLEANUP_RESOURCE(name) do { extern int QT_MANGLE_NAMESPACE(qCleanupResources_ ## name) (); QT_MANGLE_NAMESPACE(qCleanupResources_ ## name) (); } while (0)
681 # 824 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
682 template <int> class QUintForSize { private: typedef void Type; };
683 template <> class QUintForSize<4> { public: typedef quint32 Type; };
684 template <> class QUintForSize<8> { public: typedef quint64 Type; };
685 template <typename T> class QUintForType : public QUintForSize<sizeof(T)> { };
686 typedef QUintForType<void *>::Type quintptr;
687
688 template <int> class QIntForSize { private: typedef void Type; };
689 template <> class QIntForSize<4> { public: typedef qint32 Type; };
690 template <> class QIntForSize<8> { public: typedef qint64 Type; };
691 template <typename T> class QIntForType : public QIntForSize<sizeof(T)> { };
692 typedef QIntForType<void *>::Type qptrdiff;
693
694
695
696
697
698
699 typedef unsigned char uchar;
700 typedef unsigned short ushort;
701 typedef unsigned int uint;
702 typedef unsigned long ulong;
703
704 # 857 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
705 #define TRUE true
706 #define FALSE false
707 # 879 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
708 #define QT_STATIC_CONST static const
709 #define QT_STATIC_CONST_IMPL const
710 # 889 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
711 #define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
712 # 900 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
713 #define Q_DECL_VARIABLE_DEPRECATED Q_DECL_DEPRECATED
714
715
716
717
718
719
720
721 #define Q_DECL_CONSTRUCTOR_DEPRECATED Q_DECL_DEPRECATED
722 # 930 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
723 #undef QT_DEPRECATED
724 #define QT_DEPRECATED
725 #undef QT_DEPRECATED_VARIABLE
726 #define QT_DEPRECATED_VARIABLE
727 #undef QT_DEPRECATED_CONSTRUCTOR
728 #define QT_DEPRECATED_CONSTRUCTOR
729 # 968 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
730 #undef QT_MOC_COMPAT
731 #define QT_MOC_COMPAT
732
733
734
735 #define QT_ASCII_CAST_WARN Q_DECL_DEPRECATED
736
737
738
739
740 #define QT_ASCII_CAST_WARN_CONSTRUCTOR Q_DECL_CONSTRUCTOR_DEPRECATED
741 # 998 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
742 #define QT_FASTCALL
743
744
745 typedef int QNoImplicitBoolCast;
746 # 1012 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
747 typedef double qreal;
748
749
750
751
752
753
754 template <typename T>
755 inline T qAbs(const T &t) { return t >= 0 ? t : -t; }
756
757 inline int qRound(qreal d)
758 { return d >= 0.0 ? int(d + 0.5) : int(d - int(d-1) + 0.5) + int(d-1); }
759
760 inline qint64 qRound64(qreal d)
761 { return d >= 0.0 ? qint64(d + 0.5) : qint64(d - qint64(d-1) + 0.5) + qint64(d-1); }
762
763 template <typename T>
764 inline const T &qMin(const T &a, const T &b) { if (a < b) return a; return b; }
765 template <typename T>
766 inline const T &qMax(const T &a, const T &b) { if (a < b) return b; return a; }
767 template <typename T>
768 inline const T &qBound(const T &min, const T &val, const T &max)
769 { return qMax(min, qMin(max, val)); }
770 # 1065 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
771 class QDataStream;
772 # 1081 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
773 # 1 "../../include/QtCore/qfeatures.h" 1
774 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qfeatures.h" 1
775 # 1 "../../include/QtCore/qfeatures.h" 2
776 # 1082 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h" 2
777
778 #define QT_SUPPORTS(FEATURE) (!defined(QT_NO_ ##FEATURE))
779
780
781
782
783
784 #define Q_DECL_EXPORT __attribute__((visibility("default")))
785 # 1099 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
786 #define Q_DECL_IMPORT
787 # 1197 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
788 #undef QT_MAKEDLL
789 #undef QT_DLL
790
791
792
793
794 #define Q_CORE_EXPORT Q_DECL_EXPORT
795 #define Q_GUI_EXPORT Q_DECL_EXPORT
796 #define Q_SQL_EXPORT Q_DECL_EXPORT
797 #define Q_NETWORK_EXPORT Q_DECL_EXPORT
798 #define Q_SVG_EXPORT Q_DECL_EXPORT
799 #define Q_OPENGL_EXPORT Q_DECL_EXPORT
800 #define Q_XML_EXPORT Q_DECL_EXPORT
801 #define Q_XMLPATTERNS_EXPORT Q_DECL_EXPORT
802 #define Q_SCRIPT_EXPORT Q_DECL_EXPORT
803 #define Q_SCRIPTTOOLS_EXPORT Q_DECL_EXPORT
804 #define Q_COMPAT_EXPORT Q_DECL_EXPORT
805 # 1243 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
806 #define Q_CORE_EXPORT_INLINE Q_CORE_EXPORT inline
807 #define Q_GUI_EXPORT_INLINE Q_GUI_EXPORT inline
808 # 1259 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
809 #define Q_AUTOTEST_EXPORT
810
811
812
813
814
815
816 class QString;
817 class __attribute__((visibility("default"))) QSysInfo {
818 public:
819 enum Sizes {
820 WordSize = (sizeof(void *)<<3)
821 };
822 # 1281 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
823 enum Endian {
824 BigEndian,
825 LittleEndian
826
827
828
829
830
831
832 , ByteOrder = LittleEndian
833
834
835
836 };
837 # 1358 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
838 };
839
840 __attribute__((visibility("default"))) const char *qVersion();
841 __attribute__((visibility("default"))) bool qSharedBuild();
842 # 1396 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
843 #define Q_OUTOFLINE_TEMPLATE
844
845
846 #define Q_INLINE_TEMPLATE inline
847
848
849
850 #define Q_TYPENAME typename
851 # 1415 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
852 #define Q_UNUSED(x) (void)x;
853 # 1427 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
854 #define qPrintable(string) (string).toLocal8Bit().constData()
855
856
857 __attribute__((visibility("default"))) void qDebug(const char *, ...)
858
859 __attribute__ ((format (printf, 1, 2)))
860
861 ;
862
863 __attribute__((visibility("default"))) void qWarning(const char *, ...)
864
865 __attribute__ ((format (printf, 1, 2)))
866
867 ;
868
869 class QString;
870 __attribute__((visibility("default"))) QString qt_error_string(int errorCode = -1);
871 __attribute__((visibility("default"))) void qCritical(const char *, ...)
872
873 __attribute__ ((format (printf, 1, 2)))
874
875 ;
876 __attribute__((visibility("default"))) void qFatal(const char *, ...)
877
878 __attribute__ ((format (printf, 1, 2)))
879
880 ;
881
882
883
884
885 __attribute__((visibility("default"))) void qErrnoWarning(int code, const char *msg, ...);
886 __attribute__((visibility("default"))) void qErrnoWarning(const char *msg, ...);
887 # 1470 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
888 class QDebug;
889 class QNoDebug;
890
891 __attribute__((visibility("default"))) inline QDebug qDebug();
892 __attribute__((visibility("default"))) inline QDebug qWarning();
893 __attribute__((visibility("default"))) inline QDebug qCritical();
894
895
896
897
898 #define QT_NO_QDEBUG_MACRO if(1); else qDebug
899
900
901
902 #define QT_NO_QWARNING_MACRO if(1); else qWarning
903
904
905
906
907
908 inline void qt_noop() {}
909
910 __attribute__((visibility("default"))) void qt_assert(const char *assertion, const char *file, int line);
911
912
913
914
915
916 #define Q_ASSERT(cond) qt_noop()
917
918
919
920
921 #define QT_NO_PAINT_DEBUG
922
923
924 __attribute__((visibility("default"))) void qt_assert_x(const char *where, const char *what, const char *file, int line);
925
926
927
928
929
930 #define Q_ASSERT_X(cond,where,what) qt_noop()
931
932
933
934 __attribute__((visibility("default"))) void qt_check_pointer(const char *, int);
935
936
937
938
939 #define Q_CHECK_PTR(p)
940
941
942
943 #define Q_FUNC_INFO __PRETTY_FUNCTION__
944 # 1551 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
945 enum QtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg = QtCriticalMsg };
946
947 __attribute__((visibility("default"))) void qt_message_output(QtMsgType, const char *buf);
948
949 typedef void (*QtMsgHandler)(QtMsgType, const char *);
950 __attribute__((visibility("default"))) QtMsgHandler qInstallMsgHandler(QtMsgHandler);
951 # 1605 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
952 template <typename T> class QBasicAtomicPointer;
953
954
955 template <typename T>
956 class QGlobalStatic
957 {
958 public:
959 QBasicAtomicPointer<T> pointer;
960 bool destroyed;
961 };
962
963
964 template <typename T>
965 class QGlobalStaticDeleter
966 {
967 public:
968 QGlobalStatic<T> &globalStatic;
969 QGlobalStaticDeleter(QGlobalStatic<T> &_globalStatic)
970 : globalStatic(_globalStatic)
971 { }
972
973 inline ~QGlobalStaticDeleter()
974 {
975 delete globalStatic.pointer;
976 globalStatic.pointer = 0;
977 globalStatic.destroyed = true;
978 }
979 };
980
981 #define Q_GLOBAL_STATIC_INIT(TYPE,NAME) static QGlobalStatic<TYPE > this_ ##NAME = { Q_BASIC_ATOMIC_INITIALIZER(0), false }
982
983
984 #define Q_GLOBAL_STATIC(TYPE,NAME) Q_GLOBAL_STATIC_INIT(TYPE, NAME); static TYPE *NAME() { if (!this_ ##NAME.pointer && !this_ ##NAME.destroyed) { TYPE *x = new TYPE; if (!this_ ##NAME.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<TYPE > cleanup(this_ ##NAME); } return this_ ##NAME.pointer; }
985 # 1651 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
986 #define Q_GLOBAL_STATIC_WITH_ARGS(TYPE,NAME,ARGS) Q_GLOBAL_STATIC_INIT(TYPE, NAME); static TYPE *NAME() { if (!this_ ##NAME.pointer && !this_ ##NAME.destroyed) { TYPE *x = new TYPE ARGS; if (!this_ ##NAME.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<TYPE > cleanup(this_ ##NAME); } return this_ ##NAME.pointer; }
987 # 1665 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
988 #define Q_GLOBAL_STATIC_WITH_INITIALIZER(TYPE,NAME,INITIALIZER) Q_GLOBAL_STATIC_INIT(TYPE, NAME); static TYPE *NAME() { if (!this_ ##NAME.pointer && !this_ ##NAME.destroyed) { TYPE *x = new TYPE; INITIALIZER; if (!this_ ##NAME.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<TYPE > cleanup(this_ ##NAME); } return this_ ##NAME.pointer; }
989 # 1682 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
990 class QBool
991 {
992 bool b;
993
994 public:
995 inline explicit QBool(bool B) : b(B) {}
996 inline operator const void *() const
997 { return b ? static_cast<const void *>(this) : static_cast<const void *>(0); }
998 };
999
1000 inline bool operator==(QBool b1, bool b2) { return !b1 == !b2; }
1001 inline bool operator==(bool b1, QBool b2) { return !b1 == !b2; }
1002 inline bool operator==(QBool b1, QBool b2) { return !b1 == !b2; }
1003 inline bool operator!=(QBool b1, bool b2) { return !b1 != !b2; }
1004 inline bool operator!=(bool b1, QBool b2) { return !b1 != !b2; }
1005 inline bool operator!=(QBool b1, QBool b2) { return !b1 != !b2; }
1006
1007 static inline bool qFuzzyCompare(double p1, double p2)
1008 {
1009 return (qAbs(p1 - p2) <= 0.000000000001 * qMin(qAbs(p1), qAbs(p2)));
1010 }
1011
1012 static inline bool qFuzzyCompare(float p1, float p2)
1013 {
1014 return (qAbs(p1 - p2) <= 0.00001f * qMin(qAbs(p1), qAbs(p2)));
1015 }
1016
1017
1018
1019
1020
1021
1022 static inline bool qIsNull(double d)
1023 {
1024 union U {
1025 double d;
1026 quint64 u;
1027 };
1028 U val;
1029 val.d = d;
1030 return val.u == quint64(0);
1031 }
1032
1033
1034
1035
1036
1037
1038 static inline bool qIsNull(float f)
1039 {
1040 union U {
1041 float f;
1042 quint32 u;
1043 };
1044 U val;
1045 val.f = f;
1046 return val.u == 0u;
1047 }
1048 # 1757 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1049 #define Q_DUMMY_COMPARISON_OPERATOR(C)
1050 # 1772 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1051 template <typename T> inline bool qIsDetached(T &) { return true; }
1052
1053 template <typename T>
1054 class QTypeInfo
1055 {
1056 public:
1057 enum {
1058 isPointer = false,
1059 isComplex = true,
1060 isStatic = true,
1061 isLarge = (sizeof(T)>sizeof(void*)),
1062 isDummy = false
1063 };
1064 };
1065
1066 template <typename T>
1067 class QTypeInfo<T*>
1068 {
1069 public:
1070 enum {
1071 isPointer = true,
1072 isComplex = false,
1073 isStatic = false,
1074 isLarge = false,
1075 isDummy = false
1076 };
1077 };
1078 # 1830 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1079 enum {
1080 Q_COMPLEX_TYPE = 0,
1081 Q_PRIMITIVE_TYPE = 0x1,
1082 Q_STATIC_TYPE = 0,
1083 Q_MOVABLE_TYPE = 0x2,
1084 Q_DUMMY_TYPE = 0x4
1085 };
1086
1087 #define Q_DECLARE_TYPEINFO(TYPE,FLAGS) template <> class QTypeInfo<TYPE> { public: enum { isComplex = (((FLAGS) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((FLAGS) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(TYPE)>sizeof(void*)), isPointer = false, isDummy = (((FLAGS) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return #TYPE; } }
1088 # 1879 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1089 #define Q_DECLARE_SHARED(TYPE) template <> inline bool qIsDetached<TYPE>(TYPE &t) { return t.isDetached(); } template <typename T> inline void qSwap(T &, T &); template <> inline void qSwap<TYPE>(TYPE &value1, TYPE &value2) { const TYPE::DataPtr t = value1.data_ptr(); value1.data_ptr() = value2.data_ptr(); value2.data_ptr() = t; }
1090 # 1893 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1091 template <> class QTypeInfo<bool> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(bool)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "bool"; } };
1092 template <> class QTypeInfo<char> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(char)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "char"; } };
1093 template <> class QTypeInfo<signed char> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(signed char)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "signed char"; } };
1094 template <> class QTypeInfo<uchar> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(uchar)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "uchar"; } };
1095 template <> class QTypeInfo<short> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(short)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "short"; } };
1096 template <> class QTypeInfo<ushort> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(ushort)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "ushort"; } };
1097 template <> class QTypeInfo<int> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(int)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "int"; } };
1098 template <> class QTypeInfo<uint> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(uint)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "uint"; } };
1099 template <> class QTypeInfo<long> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(long)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "long"; } };
1100 template <> class QTypeInfo<ulong> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(ulong)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "ulong"; } };
1101 template <> class QTypeInfo<qint64> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(qint64)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "qint64"; } };
1102 template <> class QTypeInfo<quint64> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(quint64)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "quint64"; } };
1103 template <> class QTypeInfo<float> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(float)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "float"; } };
1104 template <> class QTypeInfo<double> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(double)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "double"; } };
1105
1106 template <> class QTypeInfo<long double> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(long double)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "long double"; } };
1107
1108
1109
1110
1111
1112
1113 __attribute__((visibility("default"))) void *qMalloc(size_t size);
1114 __attribute__((visibility("default"))) void qFree(void *ptr);
1115 __attribute__((visibility("default"))) void *qRealloc(void *ptr, size_t size);
1116 __attribute__((visibility("default"))) void *qMemCopy(void *dest, const void *src, size_t n);
1117 __attribute__((visibility("default"))) void *qMemSet(void *dest, int c, size_t n);
1118 # 1928 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1119 #define QT_NO_WARNINGS
1120 # 1960 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1121 class __attribute__((visibility("default"))) QFlag
1122 {
1123 int i;
1124 public:
1125 inline QFlag(int i);
1126 inline operator int() const { return i; }
1127 };
1128
1129 inline QFlag::QFlag(int ai) : i(ai) {}
1130
1131 class __attribute__((visibility("default"))) QIncompatibleFlag
1132 {
1133 int i;
1134 public:
1135 inline explicit QIncompatibleFlag(int i);
1136 inline operator int() const { return i; }
1137 };
1138
1139 inline QIncompatibleFlag::QIncompatibleFlag(int ai) : i(ai) {}
1140
1141
1142
1143
1144 template<typename Enum>
1145 class QFlags
1146 {
1147 typedef void **Zero;
1148 int i;
1149 public:
1150 typedef Enum enum_type;
1151 inline QFlags(const QFlags &f) : i(f.i) {}
1152 inline QFlags(Enum f) : i(f) {}
1153 inline QFlags(Zero = 0) : i(0) {}
1154 inline QFlags(QFlag f) : i(f) {}
1155
1156 inline QFlags &operator=(const QFlags &f) { i = f.i; return *this; }
1157 inline QFlags &operator&=(int mask) { i &= mask; return *this; }
1158 inline QFlags &operator&=(uint mask) { i &= mask; return *this; }
1159 inline QFlags &operator|=(QFlags f) { i |= f.i; return *this; }
1160 inline QFlags &operator|=(Enum f) { i |= f; return *this; }
1161 inline QFlags &operator^=(QFlags f) { i ^= f.i; return *this; }
1162 inline QFlags &operator^=(Enum f) { i ^= f; return *this; }
1163
1164 inline operator int() const { return i; }
1165
1166 inline QFlags operator|(QFlags f) const { QFlags g; g.i = i | f.i; return g; }
1167 inline QFlags operator|(Enum f) const { QFlags g; g.i = i | f; return g; }
1168 inline QFlags operator^(QFlags f) const { QFlags g; g.i = i ^ f.i; return g; }
1169 inline QFlags operator^(Enum f) const { QFlags g; g.i = i ^ f; return g; }
1170 inline QFlags operator&(int mask) const { QFlags g; g.i = i & mask; return g; }
1171 inline QFlags operator&(uint mask) const { QFlags g; g.i = i & mask; return g; }
1172 inline QFlags operator&(Enum f) const { QFlags g; g.i = i & f; return g; }
1173 inline QFlags operator~() const { QFlags g; g.i = ~i; return g; }
1174
1175 inline bool operator!() const { return !i; }
1176
1177 inline bool testFlag(Enum f) const { return (i & f) == f; }
1178 };
1179
1180 #define Q_DECLARE_FLAGS(Flags,Enum) typedef QFlags<Enum> Flags;
1181
1182
1183
1184
1185
1186 #define Q_DECLARE_INCOMPATIBLE_FLAGS(Flags) inline QIncompatibleFlag operator|(Flags::enum_type f1, int f2) { return QIncompatibleFlag(int(f1) | f2); }
1187
1188
1189
1190
1191 #define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags) inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) { return QFlags<Flags::enum_type>(f1) | f2; } inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) { return f2 | f1; } Q_DECLARE_INCOMPATIBLE_FLAGS(Flags)
1192 # 2047 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1193 template <typename T>
1194 class QForeachContainer {
1195 public:
1196 inline QForeachContainer(const T& t) : c(t), brk(0), i(c.begin()), e(c.end()) { }
1197 const T c;
1198 int brk;
1199 typename T::const_iterator i, e;
1200 };
1201
1202 #define Q_FOREACH(variable,container) for (QForeachContainer<__typeof__(container)> _container_(container); !_container_.brk && _container_.i != _container_.e; __extension__ ({ ++_container_.brk; ++_container_.i; })) for (variable = *_container_.i;; __extension__ ({--_container_.brk; break;}))
1203 # 2110 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1204 #define Q_FOREVER for(;;)
1205
1206
1207 #define foreach Q_FOREACH
1208
1209
1210 #define forever Q_FOREVER
1211 # 2128 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1212 #define Q_DECLARE_PRIVATE(Class) inline Class ##Private* d_func() { return reinterpret_cast<Class ##Private *>(d_ptr); } inline const Class ##Private* d_func() const { return reinterpret_cast<const Class ##Private *>(d_ptr); } friend class Class ##Private;
1213
1214
1215
1216
1217 #define Q_DECLARE_PRIVATE_D(Dptr,Class) inline Class ##Private* d_func() { return reinterpret_cast<Class ##Private *>(Dptr); } inline const Class ##Private* d_func() const { return reinterpret_cast<const Class ##Private *>(Dptr); } friend class Class ##Private;
1218
1219
1220
1221
1222 #define Q_DECLARE_PUBLIC(Class) inline Class* q_func() { return static_cast<Class *>(q_ptr); } inline const Class* q_func() const { return static_cast<const Class *>(q_ptr); } friend class Class;
1223
1224
1225
1226
1227 #define Q_D(Class) Class ##Private * const d = d_func()
1228 #define Q_Q(Class) Class * const q = q_func()
1229
1230 #define QT_TR_NOOP(x) (x)
1231 #define QT_TR_NOOP_UTF8(x) (x)
1232 #define QT_TRANSLATE_NOOP(scope,x) (x)
1233 #define QT_TRANSLATE_NOOP_UTF8(scope,x) (x)
1234 #define QT_TRANSLATE_NOOP3(scope,x,comment) {x, comment}
1235 #define QT_TRANSLATE_NOOP3_UTF8(scope,x,comment) {x, comment}
1236 #define QDOC_PROPERTY(text)
1237 # 2174 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1238 #define Q_DISABLE_COPY(Class) Class(const Class &); Class &operator=(const Class &);
1239
1240
1241
1242
1243
1244
1245 class QByteArray;
1246 __attribute__((visibility("default"))) QByteArray qgetenv(const char *varName);
1247 __attribute__((visibility("default"))) bool qputenv(const char *varName, const QByteArray& value);
1248
1249 inline int qIntCast(double f) { return int(f); }
1250 inline int qIntCast(float f) { return int(f); }
1251
1252
1253
1254
1255 __attribute__((visibility("default"))) void qsrand(uint seed);
1256 __attribute__((visibility("default"))) int qrand();
1257 # 2221 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1258 #define QT_MODULE_CORE 0x00001
1259 #define QT_MODULE_GUI 0x00002
1260 #define QT_MODULE_NETWORK 0x00004
1261 #define QT_MODULE_OPENGL 0x00008
1262 #define QT_MODULE_SQL 0x00010
1263 #define QT_MODULE_XML 0x00020
1264 #define QT_MODULE_QT3SUPPORTLIGHT 0x00040
1265 #define QT_MODULE_QT3SUPPORT 0x00080
1266 #define QT_MODULE_SVG 0x00100
1267 #define QT_MODULE_ACTIVEQT 0x00200
1268 #define QT_MODULE_GRAPHICSVIEW 0x00400
1269 #define QT_MODULE_SCRIPT 0x00800
1270 #define QT_MODULE_XMLPATTERNS 0x01000
1271 #define QT_MODULE_HELP 0x02000
1272 #define QT_MODULE_TEST 0x04000
1273 #define QT_MODULE_DBUS 0x08000
1274 #define QT_MODULE_SCRIPTTOOLS 0x10000
1275
1276
1277 #define QT_EDITION_CONSOLE (QT_MODULE_CORE | QT_MODULE_NETWORK | QT_MODULE_SQL | QT_MODULE_SCRIPT | QT_MODULE_XML | QT_MODULE_XMLPATTERNS | QT_MODULE_TEST | QT_MODULE_DBUS)
1278
1279
1280
1281
1282
1283
1284
1285 #define QT_EDITION_DESKTOPLIGHT (QT_MODULE_CORE | QT_MODULE_GUI | QT_MODULE_QT3SUPPORTLIGHT | QT_MODULE_TEST | QT_MODULE_DBUS)
1286
1287
1288
1289
1290 #define QT_EDITION_OPENSOURCE (QT_MODULE_CORE | QT_MODULE_GUI | QT_MODULE_NETWORK | QT_MODULE_OPENGL | QT_MODULE_SQL | QT_MODULE_XML | QT_MODULE_XMLPATTERNS | QT_MODULE_SCRIPT | QT_MODULE_SCRIPTTOOLS | QT_MODULE_QT3SUPPORTLIGHT | QT_MODULE_QT3SUPPORT | QT_MODULE_SVG | QT_MODULE_GRAPHICSVIEW | QT_MODULE_HELP | QT_MODULE_TEST | QT_MODULE_DBUS)
1291 # 2269 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1292 #define QT_EDITION_DESKTOP (QT_EDITION_OPENSOURCE | QT_MODULE_ACTIVEQT)
1293
1294 #define QT_EDITION_UNIVERSAL QT_EDITION_DESKTOP
1295 #define QT_EDITION_ACADEMIC QT_EDITION_DESKTOP
1296 #define QT_EDITION_EDUCATIONAL QT_EDITION_DESKTOP
1297 #define QT_EDITION_EVALUATION QT_EDITION_DESKTOP
1298 # 2285 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1299 #define QT_LICENSED_MODULE(x) enum QtValidLicenseFor ##x ##Module { Licensed ##x = true };
1300
1301
1302
1303 enum QtValidLicenseForCoreModule { LicensedCore = true };
1304
1305
1306 enum QtValidLicenseForGuiModule { LicensedGui = true };
1307
1308
1309 enum QtValidLicenseForNetworkModule { LicensedNetwork = true };
1310
1311
1312 enum QtValidLicenseForOpenGLModule { LicensedOpenGL = true };
1313
1314
1315 enum QtValidLicenseForSqlModule { LicensedSql = true };
1316
1317
1318 enum QtValidLicenseForXmlModule { LicensedXml = true };
1319
1320
1321 enum QtValidLicenseForXmlPatternsModule { LicensedXmlPatterns = true };
1322
1323
1324 enum QtValidLicenseForHelpModule { LicensedHelp = true };
1325
1326
1327 enum QtValidLicenseForScriptModule { LicensedScript = true };
1328
1329
1330 enum QtValidLicenseForScriptToolsModule { LicensedScriptTools = true };
1331
1332
1333 enum QtValidLicenseForQt3SupportLightModule { LicensedQt3SupportLight = true };
1334
1335
1336 enum QtValidLicenseForQt3SupportModule { LicensedQt3Support = true };
1337
1338
1339 enum QtValidLicenseForSvgModule { LicensedSvg = true };
1340
1341
1342
1343
1344
1345 enum QtValidLicenseForTestModule { LicensedTest = true };
1346
1347
1348 enum QtValidLicenseForDBusModule { LicensedDBus = true };
1349
1350
1351 #define QT_MODULE(x) typedef QtValidLicenseFor ##x ##Module Qt ##x ##Module;
1352 # 2370 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/global/qglobal.h"
1353
1354
1355 # 1 "../../include/QtCore/qglobal.h" 2
1356 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qalgorithms.h" 2
1357
1358
1359
1360
1361
1362 typedef QtValidLicenseForCoreModule QtCoreModule;
1363
1364
1365
1366
1367
1368 namespace QAlgorithmsPrivate {
1369
1370 template <typename RandomAccessIterator, typename T, typename LessThan>
1371 void qSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan);
1372 template <typename RandomAccessIterator, typename T>
1373 inline void qSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy);
1374
1375 template <typename RandomAccessIterator, typename T, typename LessThan>
1376 void qStableSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan);
1377 template <typename RandomAccessIterator, typename T>
1378 inline void qStableSortHelper(RandomAccessIterator, RandomAccessIterator, const T &);
1379
1380 template <typename RandomAccessIterator, typename T, typename LessThan>
1381 RandomAccessIterator qLowerBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
1382 template <typename RandomAccessIterator, typename T, typename LessThan>
1383 RandomAccessIterator qUpperBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
1384 template <typename RandomAccessIterator, typename T, typename LessThan>
1385 RandomAccessIterator qBinaryFindHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
1386
1387 }
1388
1389 template <typename InputIterator, typename OutputIterator>
1390 inline OutputIterator qCopy(InputIterator begin, InputIterator end, OutputIterator dest)
1391 {
1392 while (begin != end)
1393 *dest++ = *begin++;
1394 return dest;
1395 }
1396
1397 template <typename BiIterator1, typename BiIterator2>
1398 inline BiIterator2 qCopyBackward(BiIterator1 begin, BiIterator1 end, BiIterator2 dest)
1399 {
1400 while (begin != end)
1401 *--dest = *--end;
1402 return dest;
1403 }
1404
1405 template <typename InputIterator1, typename InputIterator2>
1406 inline bool qEqual(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2)
1407 {
1408 for (; first1 != last1; ++first1, ++first2)
1409 if (!(*first1 == *first2))
1410 return false;
1411 return true;
1412 }
1413
1414 template <typename ForwardIterator, typename T>
1415 inline void qFill(ForwardIterator first, ForwardIterator last, const T &val)
1416 {
1417 for (; first != last; ++first)
1418 *first = val;
1419 }
1420
1421 template <typename Container, typename T>
1422 inline void qFill(Container &container, const T &val)
1423 {
1424 qFill(container.begin(), container.end(), val);
1425 }
1426
1427 template <typename InputIterator, typename T>
1428 inline InputIterator qFind(InputIterator first, InputIterator last, const T &val)
1429 {
1430 while (first != last && !(*first == val))
1431 ++first;
1432 return first;
1433 }
1434
1435 template <typename Container, typename T>
1436 inline typename Container::const_iterator qFind(const Container &container, const T &val)
1437 {
1438 return qFind(container.constBegin(), container.constEnd(), val);
1439 }
1440
1441 template <typename InputIterator, typename T, typename Size>
1442 inline void qCount(InputIterator first, InputIterator last, const T &value, Size &n)
1443 {
1444 for (; first != last; ++first)
1445 if (*first == value)
1446 ++n;
1447 }
1448
1449 template <typename Container, typename T, typename Size>
1450 inline void qCount(const Container &container, const T &value, Size &n)
1451 {
1452 qCount(container.constBegin(), container.constEnd(), value, n);
1453 }
1454 # 152 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qalgorithms.h"
1455 template <typename T>
1456 inline void qSwap(T &value1, T &value2)
1457 {
1458 T t = value1;
1459 value1 = value2;
1460 value2 = t;
1461 }
1462 # 172 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qalgorithms.h"
1463 template <typename T>
1464 class qLess
1465 {
1466 public:
1467 inline bool operator()(const T &t1, const T &t2) const
1468 {
1469 return (t1 < t2);
1470 }
1471 };
1472
1473 template <typename T>
1474 class qGreater
1475 {
1476 public:
1477 inline bool operator()(const T &t1, const T &t2) const
1478 {
1479 return (t2 < t1);
1480 }
1481 };
1482
1483
1484 template <typename RandomAccessIterator>
1485 inline void qSort(RandomAccessIterator start, RandomAccessIterator end)
1486 {
1487 if (start != end)
1488 QAlgorithmsPrivate::qSortHelper(start, end, *start);
1489 }
1490
1491 template <typename RandomAccessIterator, typename LessThan>
1492 inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
1493 {
1494 if (start != end)
1495 QAlgorithmsPrivate::qSortHelper(start, end, *start, lessThan);
1496 }
1497
1498 template<typename Container>
1499 inline void qSort(Container &c)
1500 {
1501
1502
1503
1504
1505 if (!c.empty())
1506 QAlgorithmsPrivate::qSortHelper(c.begin(), c.end(), *c.begin());
1507 }
1508
1509 template <typename RandomAccessIterator>
1510 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end)
1511 {
1512 if (start != end)
1513 QAlgorithmsPrivate::qStableSortHelper(start, end, *start);
1514 }
1515
1516 template <typename RandomAccessIterator, typename LessThan>
1517 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
1518 {
1519 if (start != end)
1520 QAlgorithmsPrivate::qStableSortHelper(start, end, *start, lessThan);
1521 }
1522
1523 template<typename Container>
1524 inline void qStableSort(Container &c)
1525 {
1526
1527
1528
1529
1530 if (!c.empty())
1531 QAlgorithmsPrivate::qStableSortHelper(c.begin(), c.end(), *c.begin());
1532 }
1533
1534 template <typename RandomAccessIterator, typename T>
1535 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
1536 {
1537
1538
1539
1540 RandomAccessIterator middle;
1541 int n = end - begin;
1542 int half;
1543
1544 while (n > 0) {
1545 half = n >> 1;
1546 middle = begin + half;
1547 if (*middle < value) {
1548 begin = middle + 1;
1549 n -= half + 1;
1550 } else {
1551 n = half;
1552 }
1553 }
1554 return begin;
1555 }
1556
1557 template <typename RandomAccessIterator, typename T, typename LessThan>
1558 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
1559 {
1560 return QAlgorithmsPrivate::qLowerBoundHelper(begin, end, value, lessThan);
1561 }
1562
1563 template <typename Container, typename T>
1564 typename Container::const_iterator qLowerBound(const Container &container, const T &value)
1565 {
1566 return QAlgorithmsPrivate::qLowerBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
1567 }
1568
1569 template <typename RandomAccessIterator, typename T>
1570 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
1571 {
1572
1573 RandomAccessIterator middle;
1574 int n = end - begin;
1575 int half;
1576
1577 while (n > 0) {
1578 half = n >> 1;
1579 middle = begin + half;
1580 if (value < *middle) {
1581 n = half;
1582 } else {
1583 begin = middle + 1;
1584 n -= half + 1;
1585 }
1586 }
1587 return begin;
1588 }
1589
1590 template <typename RandomAccessIterator, typename T, typename LessThan>
1591 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
1592 {
1593 return QAlgorithmsPrivate::qUpperBoundHelper(begin, end, value, lessThan);
1594 }
1595
1596 template <typename Container, typename T>
1597 typename Container::const_iterator qUpperBound(const Container &container, const T &value)
1598 {
1599 return QAlgorithmsPrivate::qUpperBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
1600 }
1601
1602 template <typename RandomAccessIterator, typename T>
1603 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
1604 {
1605
1606 qint64 l = 0;
1607 qint64 r = end - begin - 1;
1608 if (r < 0)
1609 return end;
1610 qint64 i = (l + r + 1) / 2;
1611
1612 while (r != l) {
1613 if (value < begin[i])
1614 r = i - 1;
1615 else
1616 l = i;
1617 i = (l + r + 1) / 2;
1618 }
1619 if (begin[i] < value || value < begin[i])
1620 return end;
1621 else
1622 return begin + i;
1623 }
1624
1625 template <typename RandomAccessIterator, typename T, typename LessThan>
1626 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
1627 {
1628 return QAlgorithmsPrivate::qBinaryFindHelper(begin, end, value, lessThan);
1629 }
1630
1631 template <typename Container, typename T>
1632 typename Container::const_iterator qBinaryFind(const Container &container, const T &value)
1633 {
1634 return QAlgorithmsPrivate::qBinaryFindHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
1635 }
1636
1637 template <typename ForwardIterator>
1638 void qDeleteAll(ForwardIterator begin, ForwardIterator end)
1639 {
1640 while (begin != end) {
1641 delete *begin;
1642 ++begin;
1643 }
1644 }
1645
1646 template <typename Container>
1647 inline void qDeleteAll(const Container &c)
1648 {
1649 qDeleteAll(c.begin(), c.end());
1650 }
1651
1652
1653
1654
1655
1656 namespace QAlgorithmsPrivate {
1657
1658 template <typename RandomAccessIterator, typename T, typename LessThan>
1659 void qSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan)
1660 {
1661 top:
1662 int span = end - start;
1663 if (span < 2)
1664 return;
1665
1666 --end;
1667 RandomAccessIterator low = start, high = end - 1;
1668 RandomAccessIterator pivot = start + span / 2;
1669
1670 if (lessThan(*end, *start))
1671 qSwap(*end, *start);
1672 if (span == 2)
1673 return;
1674
1675 if (lessThan(*pivot, *start))
1676 qSwap(*pivot, *start);
1677 if (lessThan(*end, *pivot))
1678 qSwap(*end, *pivot);
1679 if (span == 3)
1680 return;
1681
1682 qSwap(*pivot, *end);
1683
1684 while (low < high) {
1685 while (low < high && lessThan(*low, *end))
1686 ++low;
1687
1688 while (high > low && lessThan(*end, *high))
1689 --high;
1690
1691 if (low < high) {
1692 qSwap(*low, *high);
1693 ++low;
1694 --high;
1695 } else {
1696 break;
1697 }
1698 }
1699
1700 if (lessThan(*low, *end))
1701 ++low;
1702
1703 qSwap(*end, *low);
1704 qSortHelper(start, low, t, lessThan);
1705
1706 start = low + 1;
1707 ++end;
1708 goto top;
1709 }
1710
1711 template <typename RandomAccessIterator, typename T>
1712 inline void qSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
1713 {
1714 qSortHelper(begin, end, dummy, qLess<T>());
1715 }
1716
1717 template <typename RandomAccessIterator>
1718 void qReverse(RandomAccessIterator begin, RandomAccessIterator end)
1719 {
1720 --end;
1721 while (begin < end)
1722 qSwap(*begin++, *end--);
1723 }
1724
1725 template <typename RandomAccessIterator>
1726 void qRotate(RandomAccessIterator begin, RandomAccessIterator middle, RandomAccessIterator end)
1727 {
1728 qReverse(begin, middle);
1729 qReverse(middle, end);
1730 qReverse(begin, end);
1731 }
1732
1733 template <typename RandomAccessIterator, typename T, typename LessThan>
1734 void qMerge(RandomAccessIterator begin, RandomAccessIterator pivot, RandomAccessIterator end, T &t, LessThan lessThan)
1735 {
1736 const int len1 = pivot - begin;
1737 const int len2 = end - pivot;
1738
1739 if (len1 == 0 || len2 == 0)
1740 return;
1741
1742 if (len1 + len2 == 2) {
1743 if (lessThan(*(begin + 1), *(begin)))
1744 qSwap(*begin, *(begin + 1));
1745 return;
1746 }
1747
1748 RandomAccessIterator firstCut;
1749 RandomAccessIterator secondCut;
1750 int len2Half;
1751 if (len1 > len2) {
1752 const int len1Half = len1 / 2;
1753 firstCut = begin + len1Half;
1754 secondCut = qLowerBound(pivot, end, *firstCut, lessThan);
1755 len2Half = secondCut - pivot;
1756 } else {
1757 len2Half = len2 / 2;
1758 secondCut = pivot + len2Half;
1759 firstCut = qUpperBound(begin, pivot, *secondCut, lessThan);
1760 }
1761
1762 qRotate(firstCut, pivot, secondCut);
1763 const RandomAccessIterator newPivot = firstCut + len2Half;
1764 qMerge(begin, firstCut, newPivot, t, lessThan);
1765 qMerge(newPivot, secondCut, end, t, lessThan);
1766 }
1767
1768 template <typename RandomAccessIterator, typename T, typename LessThan>
1769 void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &t, LessThan lessThan)
1770 {
1771 const int span = end - begin;
1772 if (span < 2)
1773 return;
1774
1775 const RandomAccessIterator middle = begin + span / 2;
1776 qStableSortHelper(begin, middle, t, lessThan);
1777 qStableSortHelper(middle, end, t, lessThan);
1778 qMerge(begin, middle, end, t, lessThan);
1779 }
1780
1781 template <typename RandomAccessIterator, typename T>
1782 inline void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
1783 {
1784 qStableSortHelper(begin, end, dummy, qLess<T>());
1785 }
1786
1787 template <typename RandomAccessIterator, typename T, typename LessThan>
1788 RandomAccessIterator qLowerBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
1789 {
1790 RandomAccessIterator middle;
1791 int n = end - begin;
1792 int half;
1793
1794 while (n > 0) {
1795 half = n >> 1;
1796 middle = begin + half;
1797 if (lessThan(*middle, value)) {
1798 begin = middle + 1;
1799 n -= half + 1;
1800 } else {
1801 n = half;
1802 }
1803 }
1804 return begin;
1805 }
1806
1807
1808 template <typename RandomAccessIterator, typename T, typename LessThan>
1809 RandomAccessIterator qUpperBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
1810 {
1811 RandomAccessIterator middle;
1812 int n = end - begin;
1813 int half;
1814
1815 while (n > 0) {
1816 half = n >> 1;
1817 middle = begin + half;
1818 if (lessThan(value, *middle)) {
1819 n = half;
1820 } else {
1821 begin = middle + 1;
1822 n -= half + 1;
1823 }
1824 }
1825 return begin;
1826 }
1827
1828 template <typename RandomAccessIterator, typename T, typename LessThan>
1829 RandomAccessIterator qBinaryFindHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
1830 {
1831 qint64 l = 0;
1832 qint64 r = end - begin - 1;
1833 if (r < 0)
1834 return end;
1835 qint64 i = (l + r + 1) / 2;
1836
1837 while (r != l) {
1838 if (lessThan(value, begin[i]))
1839 r = i - 1;
1840 else
1841 l = i;
1842 i = (l + r + 1) / 2;
1843 }
1844 if (lessThan(begin[i], value) || lessThan(value, begin[i]))
1845 return end;
1846 else
1847 return begin + i;
1848 }
1849
1850 }
1851
1852
1853
1854
1855 # 1 "../../include/QtCore/qalgorithms.h" 2
1856 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/io/qdebug.h" 2
1857 # 1 "../../include/QtCore/qhash.h" 1
1858 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qhash.h" 1
1859 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qhash.h"
1860 #define QHASH_H
1861
1862 # 1 "../../include/QtCore/qatomic.h" 1
1863 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qatomic.h" 1
1864 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qatomic.h"
1865 #define QATOMIC_H
1866
1867 # 1 "../../include/QtCore/qglobal.h" 1
1868 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qatomic.h" 2
1869 # 1 "../../include/QtCore/qbasicatomic.h" 1
1870 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qbasicatomic.h" 1
1871 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qbasicatomic.h"
1872 #define QBASICATOMIC_H
1873
1874 # 1 "../../include/QtCore/qglobal.h" 1
1875 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qbasicatomic.h" 2
1876
1877
1878
1879
1880
1881 typedef QtValidLicenseForCoreModule QtCoreModule;
1882
1883 class __attribute__((visibility("default"))) QBasicAtomicInt
1884 {
1885 public:
1886
1887
1888
1889 volatile int _q_value;
1890
1891
1892 inline bool operator==(int value) const
1893 {
1894 return _q_value == value;
1895 }
1896
1897 inline bool operator!=(int value) const
1898 {
1899 return _q_value != value;
1900 }
1901
1902 inline bool operator!() const
1903 {
1904 return _q_value == 0;
1905 }
1906
1907 inline operator int() const
1908 {
1909 return _q_value;
1910 }
1911
1912 inline QBasicAtomicInt &operator=(int value)
1913 {
1914
1915
1916
1917 _q_value = value;
1918 return *this;
1919 }
1920
1921
1922
1923 static bool isReferenceCountingNative();
1924 static bool isReferenceCountingWaitFree();
1925
1926 bool ref();
1927 bool deref();
1928
1929 static bool isTestAndSetNative();
1930 static bool isTestAndSetWaitFree();
1931
1932 bool testAndSetRelaxed(int expectedValue, int newValue);
1933 bool testAndSetAcquire(int expectedValue, int newValue);
1934 bool testAndSetRelease(int expectedValue, int newValue);
1935 bool testAndSetOrdered(int expectedValue, int newValue);
1936
1937 static bool isFetchAndStoreNative();
1938 static bool isFetchAndStoreWaitFree();
1939
1940 int fetchAndStoreRelaxed(int newValue);
1941 int fetchAndStoreAcquire(int newValue);
1942 int fetchAndStoreRelease(int newValue);
1943 int fetchAndStoreOrdered(int newValue);
1944
1945 static bool isFetchAndAddNative();
1946 static bool isFetchAndAddWaitFree();
1947
1948 int fetchAndAddRelaxed(int valueToAdd);
1949 int fetchAndAddAcquire(int valueToAdd);
1950 int fetchAndAddRelease(int valueToAdd);
1951 int fetchAndAddOrdered(int valueToAdd);
1952 };
1953
1954 template <typename T>
1955 class QBasicAtomicPointer
1956 {
1957 public:
1958
1959
1960
1961 T * volatile _q_value;
1962
1963
1964 inline bool operator==(T *value) const
1965 {
1966 return _q_value == value;
1967 }
1968
1969 inline bool operator!=(T *value) const
1970 {
1971 return !operator==(value);
1972 }
1973
1974 inline bool operator!() const
1975 {
1976 return operator==(0);
1977 }
1978
1979 inline operator T *() const
1980 {
1981 return _q_value;
1982 }
1983
1984 inline T *operator->() const
1985 {
1986 return _q_value;
1987 }
1988
1989 inline QBasicAtomicPointer<T> &operator=(T *value)
1990 {
1991
1992
1993
1994 _q_value = value;
1995 return *this;
1996 }
1997
1998
1999
2000 static bool isTestAndSetNative();
2001 static bool isTestAndSetWaitFree();
2002
2003 bool testAndSetRelaxed(T *expectedValue, T *newValue);
2004 bool testAndSetAcquire(T *expectedValue, T *newValue);
2005 bool testAndSetRelease(T *expectedValue, T *newValue);
2006 bool testAndSetOrdered(T *expectedValue, T *newValue);
2007
2008 static bool isFetchAndStoreNative();
2009 static bool isFetchAndStoreWaitFree();
2010
2011 T *fetchAndStoreRelaxed(T *newValue);
2012 T *fetchAndStoreAcquire(T *newValue);
2013 T *fetchAndStoreRelease(T *newValue);
2014 T *fetchAndStoreOrdered(T *newValue);
2015
2016 static bool isFetchAndAddNative();
2017 static bool isFetchAndAddWaitFree();
2018
2019 T *fetchAndAddRelaxed(qptrdiff valueToAdd);
2020 T *fetchAndAddAcquire(qptrdiff valueToAdd);
2021 T *fetchAndAddRelease(qptrdiff valueToAdd);
2022 T *fetchAndAddOrdered(qptrdiff valueToAdd);
2023 };
2024
2025
2026
2027
2028 #define Q_BASIC_ATOMIC_INITIALIZER(a) { (a) }
2029
2030
2031
2032
2033
2034
2035
2036
2037 # 1 "../../include/QtCore/qatomic_arch.h" 1
2038 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_arch.h" 1
2039 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_arch.h"
2040 #define QATOMIC_ARCH_H
2041
2042
2043
2044 # 1 "../../include/QtCore/qglobal.h" 1
2045 # 48 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_arch.h" 2
2046 # 58 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_arch.h"
2047 # 1 "../../include/QtCore/qatomic_bfin.h" 1
2048 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_bfin.h" 1
2049 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_generic.h" 1
2050 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_generic.h"
2051 #define QATOMIC_GENERIC_H
2052
2053
2054
2055
2056
2057 #define Q_ATOMIC_INT_REFERENCE_COUNTING_IS_NOT_NATIVE
2058
2059 inline bool QBasicAtomicInt::isReferenceCountingNative()
2060 { return false; }
2061 inline bool QBasicAtomicInt::isReferenceCountingWaitFree()
2062 { return false; }
2063
2064 #define Q_ATOMIC_INT_TEST_AND_SET_IS_NOT_NATIVE
2065
2066 inline bool QBasicAtomicInt::isTestAndSetNative()
2067 { return false; }
2068 inline bool QBasicAtomicInt::isTestAndSetWaitFree()
2069 { return false; }
2070
2071 #define Q_ATOMIC_INT_FETCH_AND_STORE_IS_NOT_NATIVE
2072
2073 inline bool QBasicAtomicInt::isFetchAndStoreNative()
2074 { return false; }
2075 inline bool QBasicAtomicInt::isFetchAndStoreWaitFree()
2076 { return false; }
2077
2078 #define Q_ATOMIC_INT_FETCH_AND_ADD_IS_NOT_NATIVE
2079
2080 inline bool QBasicAtomicInt::isFetchAndAddNative()
2081 { return false; }
2082 inline bool QBasicAtomicInt::isFetchAndAddWaitFree()
2083 { return false; }
2084
2085 #define Q_ATOMIC_POINTER_TEST_AND_SET_IS_NOT_NATIVE
2086
2087 template <typename T>
2088 inline bool QBasicAtomicPointer<T>::isTestAndSetNative()
2089 { return false; }
2090 template <typename T>
2091 inline bool QBasicAtomicPointer<T>::isTestAndSetWaitFree()
2092 { return false; }
2093
2094 #define Q_ATOMIC_POINTER_FETCH_AND_STORE_IS_NOT_NATIVE
2095
2096 template <typename T>
2097 inline bool QBasicAtomicPointer<T>::isFetchAndStoreNative()
2098 { return false; }
2099 template <typename T>
2100 inline bool QBasicAtomicPointer<T>::isFetchAndStoreWaitFree()
2101 { return false; }
2102
2103 #define Q_ATOMIC_POINTER_FETCH_AND_ADD_IS_NOT_NATIVE
2104
2105 template <typename T>
2106 inline bool QBasicAtomicPointer<T>::isFetchAndAddNative()
2107 { return false; }
2108 template <typename T>
2109 inline bool QBasicAtomicPointer<T>::isFetchAndAddWaitFree()
2110 { return false; }
2111
2112 __attribute__((visibility("default"))) bool QBasicAtomicInt_testAndSetOrdered(volatile int *, int, int);
2113 __attribute__((visibility("default"))) int QBasicAtomicInt_fetchAndStoreOrdered(volatile int *, int);
2114 __attribute__((visibility("default"))) int QBasicAtomicInt_fetchAndAddOrdered(volatile int *, int);
2115
2116 __attribute__((visibility("default"))) bool QBasicAtomicPointer_testAndSetOrdered(void * volatile *, void *, void *);
2117 __attribute__((visibility("default"))) void *QBasicAtomicPointer_fetchAndStoreOrdered(void * volatile *, void *);
2118 __attribute__((visibility("default"))) void *QBasicAtomicPointer_fetchAndAddOrdered(void * volatile *, qptrdiff);
2119
2120
2121
2122 inline bool QBasicAtomicInt::ref()
2123 {
2124 return QBasicAtomicInt_fetchAndAddOrdered(&_q_value, 1) != -1;
2125 }
2126
2127 inline bool QBasicAtomicInt::deref()
2128 {
2129 return QBasicAtomicInt_fetchAndAddOrdered(&_q_value, -1) != 1;
2130 }
2131
2132
2133
2134 inline bool QBasicAtomicInt::testAndSetOrdered(int expectedValue, int newValue)
2135 {
2136 return QBasicAtomicInt_testAndSetOrdered(&_q_value, expectedValue, newValue);
2137 }
2138
2139 inline bool QBasicAtomicInt::testAndSetRelaxed(int expectedValue, int newValue)
2140 {
2141 return testAndSetOrdered(expectedValue, newValue);
2142 }
2143
2144 inline bool QBasicAtomicInt::testAndSetAcquire(int expectedValue, int newValue)
2145 {
2146 return testAndSetOrdered(expectedValue, newValue);
2147 }
2148
2149 inline bool QBasicAtomicInt::testAndSetRelease(int expectedValue, int newValue)
2150 {
2151 return testAndSetOrdered(expectedValue, newValue);
2152 }
2153
2154
2155
2156 inline int QBasicAtomicInt::fetchAndStoreOrdered(int newValue)
2157 {
2158 return QBasicAtomicInt_fetchAndStoreOrdered(&_q_value, newValue);
2159 }
2160
2161 inline int QBasicAtomicInt::fetchAndStoreRelaxed(int newValue)
2162 {
2163 return fetchAndStoreOrdered(newValue);
2164 }
2165
2166 inline int QBasicAtomicInt::fetchAndStoreAcquire(int newValue)
2167 {
2168 return fetchAndStoreOrdered(newValue);
2169 }
2170
2171 inline int QBasicAtomicInt::fetchAndStoreRelease(int newValue)
2172 {
2173 return fetchAndStoreOrdered(newValue);
2174 }
2175
2176
2177
2178 inline int QBasicAtomicInt::fetchAndAddOrdered(int valueToAdd)
2179 {
2180 return QBasicAtomicInt_fetchAndAddOrdered(&_q_value, valueToAdd);
2181 }
2182
2183 inline int QBasicAtomicInt::fetchAndAddRelaxed(int valueToAdd)
2184 {
2185 return fetchAndAddOrdered(valueToAdd);
2186 }
2187
2188 inline int QBasicAtomicInt::fetchAndAddAcquire(int valueToAdd)
2189 {
2190 return fetchAndAddOrdered(valueToAdd);
2191 }
2192
2193 inline int QBasicAtomicInt::fetchAndAddRelease(int valueToAdd)
2194 {
2195 return fetchAndAddOrdered(valueToAdd);
2196 }
2197
2198
2199
2200 template <typename T>
2201 inline bool QBasicAtomicPointer<T>::testAndSetOrdered(T *expectedValue, T *newValue)
2202 {
2203 union { T * volatile * typed; void * volatile * voidp; } pointer;
2204 pointer.typed = &_q_value;
2205 return QBasicAtomicPointer_testAndSetOrdered(pointer.voidp, expectedValue, newValue);
2206 }
2207
2208 template <typename T>
2209 inline bool QBasicAtomicPointer<T>::testAndSetRelaxed(T *expectedValue, T *newValue)
2210 {
2211 return testAndSetOrdered(expectedValue, newValue);
2212 }
2213
2214 template <typename T>
2215 inline bool QBasicAtomicPointer<T>::testAndSetAcquire(T *expectedValue, T *newValue)
2216 {
2217 return testAndSetOrdered(expectedValue, newValue);
2218 }
2219
2220 template <typename T>
2221 inline bool QBasicAtomicPointer<T>::testAndSetRelease(T *expectedValue, T *newValue)
2222 {
2223 return testAndSetOrdered(expectedValue, newValue);
2224 }
2225
2226
2227
2228 template <typename T>
2229 inline T *QBasicAtomicPointer<T>::fetchAndStoreOrdered(T *newValue)
2230 {
2231 union { T * volatile * typed; void * volatile * voidp; } pointer;
2232 union { T *typed; void *voidp; } returnValue;
2233 pointer.typed = &_q_value;
2234 returnValue.voidp = QBasicAtomicPointer_fetchAndStoreOrdered(pointer.voidp, newValue);
2235 return returnValue.typed;
2236 }
2237
2238 template <typename T>
2239 inline T *QBasicAtomicPointer<T>::fetchAndStoreRelaxed(T *newValue)
2240 {
2241 return fetchAndStoreOrdered(newValue);
2242 }
2243
2244 template <typename T>
2245 inline T *QBasicAtomicPointer<T>::fetchAndStoreAcquire(T *newValue)
2246 {
2247 return fetchAndStoreOrdered(newValue);
2248 }
2249
2250 template <typename T>
2251 inline T *QBasicAtomicPointer<T>::fetchAndStoreRelease(T *newValue)
2252 {
2253 return fetchAndStoreOrdered(newValue);
2254 }
2255
2256
2257
2258 template <typename T>
2259 inline T *QBasicAtomicPointer<T>::fetchAndAddOrdered(qptrdiff valueToAdd)
2260 {
2261 union { T * volatile *typed; void * volatile *voidp; } pointer;
2262 union { T *typed; void *voidp; } returnValue;
2263 pointer.typed = &_q_value;
2264 returnValue.voidp = QBasicAtomicPointer_fetchAndAddOrdered(pointer.voidp, valueToAdd * sizeof(T));
2265 return returnValue.typed;
2266 }
2267
2268 template <typename T>
2269 inline T *QBasicAtomicPointer<T>::fetchAndAddRelaxed(qptrdiff valueToAdd)
2270 {
2271 return fetchAndAddOrdered(valueToAdd);
2272 }
2273
2274 template <typename T>
2275 inline T *QBasicAtomicPointer<T>::fetchAndAddAcquire(qptrdiff valueToAdd)
2276 {
2277 return fetchAndAddOrdered(valueToAdd);
2278 }
2279
2280 template <typename T>
2281 inline T *QBasicAtomicPointer<T>::fetchAndAddRelease(qptrdiff valueToAdd)
2282 {
2283 return fetchAndAddOrdered(valueToAdd);
2284 }
2285
2286
2287
2288
2289 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_bfin.h" 2
2290 # 1 "../../include/QtCore/qatomic_bfin.h" 2
2291 # 59 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_arch.h" 2
2292 # 91 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/arch/qatomic_arch.h"
2293
2294 # 1 "../../include/QtCore/qatomic_arch.h" 2
2295 # 208 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qbasicatomic.h" 2
2296 # 1 "../../include/QtCore/qbasicatomic.h" 2
2297 # 47 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qatomic.h" 2
2298
2299
2300
2301
2302
2303 typedef QtValidLicenseForCoreModule QtCoreModule;
2304
2305
2306 class __attribute__((visibility("default"))) QAtomicInt : public QBasicAtomicInt
2307 {
2308 public:
2309 inline QAtomicInt(int value = 0)
2310 {
2311
2312
2313
2314 _q_value = value;
2315 }
2316 inline QAtomicInt(const QAtomicInt &other)
2317 {
2318
2319
2320
2321 _q_value = other._q_value;
2322 }
2323
2324 inline QAtomicInt &operator=(int value)
2325 {
2326 (void) QBasicAtomicInt::operator=(value);
2327 return *this;
2328 }
2329
2330 inline QAtomicInt &operator=(const QAtomicInt &other)
2331 {
2332 (void) QBasicAtomicInt::operator=(other);
2333 return *this;
2334 }
2335 # 121 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qatomic.h"
2336 };
2337
2338
2339 template <typename T>
2340 class QAtomicPointer : public QBasicAtomicPointer<T>
2341 {
2342 public:
2343 inline QAtomicPointer(T *value = 0)
2344 {
2345
2346
2347
2348 QBasicAtomicPointer<T>::_q_value = value;
2349 }
2350 inline QAtomicPointer(const QAtomicPointer<T> &other)
2351 {
2352
2353
2354
2355 QBasicAtomicPointer<T>::_q_value = other._q_value;
2356 }
2357
2358 inline QAtomicPointer<T> &operator=(T *value)
2359 {
2360 (void) QBasicAtomicPointer<T>::operator=(value);
2361 return *this;
2362 }
2363
2364 inline QAtomicPointer<T> &operator=(const QAtomicPointer<T> &other)
2365 {
2366 (void) QBasicAtomicPointer<T>::operator=(other);
2367 return *this;
2368 }
2369 # 186 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qatomic.h"
2370 };
2371
2372
2373
2374
2375
2376
2377
2378 template <typename T>
2379 inline void qAtomicAssign(T *&d, T *x)
2380 {
2381 if (d == x)
2382 return;
2383 x->ref.ref();
2384 if (!d->ref.deref())
2385 delete d;
2386 d = x;
2387 }
2388 # 213 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/thread/qatomic.h"
2389 template <typename T>
2390 inline void qAtomicDetach(T *&d)
2391 {
2392 if (d->ref == 1)
2393 return;
2394 T *x = d;
2395 d = new T(*d);
2396 if (!x->ref.deref())
2397 delete x;
2398 }
2399
2400
2401
2402 # 1 "../../include/QtCore/qatomic.h" 2
2403 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qhash.h" 2
2404 # 1 "../../include/QtCore/qchar.h" 1
2405 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qchar.h" 1
2406 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qchar.h"
2407 #define QCHAR_H
2408
2409 # 1 "../../include/QtCore/qglobal.h" 1
2410 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qchar.h" 2
2411
2412
2413
2414
2415
2416 typedef QtValidLicenseForCoreModule QtCoreModule;
2417
2418 class QString;
2419
2420 struct QLatin1Char
2421 {
2422 public:
2423 inline explicit QLatin1Char(char c) : ch(c) {}
2424
2425
2426
2427
2428 inline char toLatin1() const { return ch; }
2429 inline ushort unicode() const { return ushort(uchar(ch)); }
2430
2431
2432 private:
2433 char ch;
2434 };
2435
2436
2437 class __attribute__((visibility("default"))) QChar {
2438 public:
2439 QChar();
2440
2441 __attribute__ ((__deprecated__)) QChar(char c);
2442 __attribute__ ((__deprecated__)) QChar(uchar c);
2443
2444 QChar(QLatin1Char ch);
2445 QChar(uchar c, uchar r);
2446 inline QChar(ushort rc) : ucs(rc){}
2447 QChar(short rc);
2448 QChar(uint rc);
2449 QChar(int rc);
2450 enum SpecialCharacter {
2451 Null = 0x0000,
2452 Nbsp = 0x00a0,
2453 ReplacementCharacter = 0xfffd,
2454 ObjectReplacementCharacter = 0xfffc,
2455 ByteOrderMark = 0xfeff,
2456 ByteOrderSwapped = 0xfffe,
2457
2458
2459
2460
2461
2462
2463
2464 ParagraphSeparator = 0x2029,
2465 LineSeparator = 0x2028
2466 };
2467 QChar(SpecialCharacter sc);
2468
2469
2470
2471 enum Category
2472 {
2473 NoCategory,
2474
2475 Mark_NonSpacing,
2476 Mark_SpacingCombining,
2477 Mark_Enclosing,
2478
2479 Number_DecimalDigit,
2480 Number_Letter,
2481 Number_Other,
2482
2483 Separator_Space,
2484 Separator_Line,
2485 Separator_Paragraph,
2486
2487 Other_Control,
2488 Other_Format,
2489 Other_Surrogate,
2490 Other_PrivateUse,
2491 Other_NotAssigned,
2492
2493 Letter_Uppercase,
2494 Letter_Lowercase,
2495 Letter_Titlecase,
2496 Letter_Modifier,
2497 Letter_Other,
2498
2499 Punctuation_Connector,
2500 Punctuation_Dash,
2501 Punctuation_Open,
2502 Punctuation_Close,
2503 Punctuation_InitialQuote,
2504 Punctuation_FinalQuote,
2505 Punctuation_Other,
2506
2507 Symbol_Math,
2508 Symbol_Currency,
2509 Symbol_Modifier,
2510 Symbol_Other,
2511
2512 Punctuation_Dask = Punctuation_Dash
2513 };
2514
2515 enum Direction
2516 {
2517 DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON,
2518 DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN
2519 };
2520
2521 enum Decomposition
2522 {
2523 NoDecomposition,
2524 Canonical,
2525 Font,
2526 NoBreak,
2527 Initial,
2528 Medial,
2529 Final,
2530 Isolated,
2531 Circle,
2532 Super,
2533 Sub,
2534 Vertical,
2535 Wide,
2536 Narrow,
2537 Small,
2538 Square,
2539 Compat,
2540 Fraction
2541
2542
2543
2544
2545 };
2546
2547 enum Joining
2548 {
2549 OtherJoining, Dual, Right, Center
2550 };
2551
2552 enum CombiningClass
2553 {
2554 Combining_BelowLeftAttached = 200,
2555 Combining_BelowAttached = 202,
2556 Combining_BelowRightAttached = 204,
2557 Combining_LeftAttached = 208,
2558 Combining_RightAttached = 210,
2559 Combining_AboveLeftAttached = 212,
2560 Combining_AboveAttached = 214,
2561 Combining_AboveRightAttached = 216,
2562
2563 Combining_BelowLeft = 218,
2564 Combining_Below = 220,
2565 Combining_BelowRight = 222,
2566 Combining_Left = 224,
2567 Combining_Right = 226,
2568 Combining_AboveLeft = 228,
2569 Combining_Above = 230,
2570 Combining_AboveRight = 232,
2571
2572 Combining_DoubleBelow = 233,
2573 Combining_DoubleAbove = 234,
2574 Combining_IotaSubscript = 240
2575 };
2576
2577 enum UnicodeVersion {
2578 Unicode_Unassigned,
2579 Unicode_1_1,
2580 Unicode_2_0,
2581 Unicode_2_1_2,
2582 Unicode_3_0,
2583 Unicode_3_1,
2584 Unicode_3_2,
2585 Unicode_4_0,
2586 Unicode_4_1,
2587 Unicode_5_0
2588 };
2589
2590
2591 Category category() const;
2592 Direction direction() const;
2593 Joining joining() const;
2594 bool hasMirrored() const;
2595 unsigned char combiningClass() const;
2596
2597 QChar mirroredChar() const;
2598 QString decomposition() const;
2599 Decomposition decompositionTag() const;
2600
2601 int digitValue() const;
2602 QChar toLower() const;
2603 QChar toUpper() const;
2604 QChar toTitleCase() const;
2605 QChar toCaseFolded() const;
2606
2607 UnicodeVersion unicodeVersion() const;
2608
2609
2610
2611
2612
2613
2614 char toAscii() const;
2615 inline char toLatin1() const;
2616 inline ushort unicode() const { return ucs; }
2617
2618
2619 inline ushort &unicode() { return const_cast<ushort&>(ucs); }
2620
2621
2622
2623
2624 static QChar fromAscii(char c);
2625 static QChar fromLatin1(char c);
2626
2627 inline bool isNull() const { return ucs == 0; }
2628 bool isPrint() const;
2629 bool isPunct() const;
2630 bool isSpace() const;
2631 bool isMark() const;
2632 bool isLetter() const;
2633 bool isNumber() const;
2634 bool isLetterOrNumber() const;
2635 bool isDigit() const;
2636 bool isSymbol() const;
2637 inline bool isLower() const { return category() == Letter_Lowercase; }
2638 inline bool isUpper() const { return category() == Letter_Uppercase; }
2639 inline bool isTitleCase() const { return category() == Letter_Titlecase; }
2640
2641 inline bool isHighSurrogate() const {
2642 return ((ucs & 0xfc00) == 0xd800);
2643 }
2644 inline bool isLowSurrogate() const {
2645 return ((ucs & 0xfc00) == 0xdc00);
2646 }
2647
2648 inline uchar cell() const { return uchar(ucs & 0xff); }
2649 inline uchar row() const { return uchar((ucs>>8)&0xff); }
2650 inline void setCell(uchar cell);
2651 inline void setRow(uchar row);
2652
2653 static inline uint surrogateToUcs4(ushort high, ushort low) {
2654 return (uint(high)<<10) + low - 0x35fdc00;
2655 }
2656 static inline uint surrogateToUcs4(QChar high, QChar low) {
2657 return (uint(high.ucs)<<10) + low.ucs - 0x35fdc00;
2658 }
2659 static inline ushort highSurrogate(uint ucs4) {
2660 return (ucs4>>10) + 0xd7c0;
2661 }
2662 static inline ushort lowSurrogate(uint ucs4) {
2663 return ucs4%0x400 + 0xdc00;
2664 }
2665
2666 static Category category(uint ucs4);
2667 static Category category(ushort ucs2);
2668 static Direction direction(uint ucs4);
2669 static Direction direction(ushort ucs2);
2670 static Joining joining(uint ucs4);
2671 static Joining joining(ushort ucs2);
2672 static unsigned char combiningClass(uint ucs4);
2673 static unsigned char combiningClass(ushort ucs2);
2674
2675 static uint mirroredChar(uint ucs4);
2676 static ushort mirroredChar(ushort ucs2);
2677 static Decomposition decompositionTag(uint ucs4);
2678
2679 static int digitValue(uint ucs4);
2680 static int digitValue(ushort ucs2);
2681 static uint toLower(uint ucs4);
2682 static ushort toLower(ushort ucs2);
2683 static uint toUpper(uint ucs4);
2684 static ushort toUpper(ushort ucs2);
2685 static uint toTitleCase(uint ucs4);
2686 static ushort toTitleCase(ushort ucs2);
2687 static uint toCaseFolded(uint ucs4);
2688 static ushort toCaseFolded(ushort ucs2);
2689
2690 static UnicodeVersion unicodeVersion(uint ucs4);
2691 static UnicodeVersion unicodeVersion(ushort ucs2);
2692
2693 static QString decomposition(uint ucs4);
2694 # 346 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qchar.h"
2695 private:
2696
2697
2698
2699
2700 ushort ucs;
2701 }
2702
2703
2704
2705 ;
2706
2707 template <> class QTypeInfo<QChar> { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(QChar)>sizeof(void*)), isPointer = false, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "QChar"; } };
2708
2709 inline QChar::QChar() : ucs(0) {}
2710
2711
2712
2713
2714 inline char QChar::toLatin1() const { return ucs > 0xff ? '\0' : char(ucs); }
2715
2716 inline QChar QChar::fromLatin1(char c) { return QChar(ushort(uchar(c))); }
2717
2718 inline QChar::QChar(uchar c, uchar r) : ucs((r << 8) | c){}
2719 inline QChar::QChar(short rc) : ucs(ushort(rc)){}
2720 inline QChar::QChar(uint rc) : ucs(ushort(rc & 0xffff)){}
2721 inline QChar::QChar(int rc) : ucs(ushort(rc & 0xffff)){}
2722 inline QChar::QChar(SpecialCharacter s) : ucs(ushort(s)) {}
2723 inline QChar::QChar(QLatin1Char ch) : ucs(ch.unicode()) {}
2724
2725 inline void QChar::setCell(uchar acell)
2726 { ucs = (ucs & 0xff00) + acell; }
2727 inline void QChar::setRow(uchar arow)
2728 { ucs = (ushort(arow)<<8) + (ucs&0xff); }
2729
2730 inline bool operator==(QChar c1, QChar c2) { return c1.unicode() == c2.unicode(); }
2731 inline bool operator!=(QChar c1, QChar c2) { return c1.unicode() != c2.unicode(); }
2732 inline bool operator<=(QChar c1, QChar c2) { return c1.unicode() <= c2.unicode(); }
2733 inline bool operator>=(QChar c1, QChar c2) { return c1.unicode() >= c2.unicode(); }
2734 inline bool operator<(QChar c1, QChar c2) { return c1.unicode() < c2.unicode(); }
2735 inline bool operator>(QChar c1, QChar c2) { return c1.unicode() > c2.unicode(); }
2736
2737
2738 __attribute__((visibility("default"))) QDataStream &operator<<(QDataStream &, const QChar &);
2739 __attribute__((visibility("default"))) QDataStream &operator>>(QDataStream &, QChar &);
2740
2741
2742
2743
2744
2745 # 1 "../../include/QtCore/qchar.h" 2
2746 # 47 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qhash.h" 2
2747 # 1 "../../include/QtCore/qiterator.h" 1
2748 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qiterator.h" 1
2749 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qiterator.h"
2750 #define QITERATOR_H
2751
2752 # 1 "../../include/QtCore/qglobal.h" 1
2753 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qiterator.h" 2
2754
2755
2756
2757 namespace std {
2758 struct bidirectional_iterator_tag;
2759 struct random_access_iterator_tag;
2760 }
2761
2762
2763
2764 typedef QtValidLicenseForCoreModule QtCoreModule;
2765
2766 #define Q_DECLARE_SEQUENTIAL_ITERATOR(C) template <class T> class Q ##C ##Iterator { typedef typename Q ##C<T>::const_iterator const_iterator; Q ##C<T> c; const_iterator i; public: inline Q ##C ##Iterator(const Q ##C<T> &container) : c(container), i(c.constBegin()) {} inline Q ##C ##Iterator &operator=(const Q ##C<T> &container) { c = container; i = c.constBegin(); return *this; } inline void toFront() { i = c.constBegin(); } inline void toBack() { i = c.constEnd(); } inline bool hasNext() const { return i != c.constEnd(); } inline const T &next() { return *i++; } inline const T &peekNext() const { return *i; } inline bool hasPrevious() const { return i != c.constBegin(); } inline const T &previous() { return *--i; } inline const T &peekPrevious() const { const_iterator p = i; return *--p; } inline bool findNext(const T &t) { while (i != c.constEnd()) if (*i++ == t) return true; return false; } inline bool findPrevious(const T &t) { while (i != c.constBegin()) if (*(--i) == t) return true; return false; } };
2767 # 86 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qiterator.h"
2768 #define Q_DECLARE_MUTABLE_SEQUENTIAL_ITERATOR(C) template <class T> class QMutable ##C ##Iterator { typedef typename Q ##C<T>::iterator iterator; typedef typename Q ##C<T>::const_iterator const_iterator; Q ##C<T> *c; iterator i, n; inline bool item_exists() const { return const_iterator(n) != c->constEnd(); } public: inline QMutable ##C ##Iterator(Q ##C<T> &container) : c(&container) { c->setSharable(false); i = c->begin(); n = c->end(); } inline ~QMutable ##C ##Iterator() { c->setSharable(true); } inline QMutable ##C ##Iterator &operator=(Q ##C<T> &container) { c->setSharable(true); c = &container; c->setSharable(false); i = c->begin(); n = c->end(); return *this; } inline void toFront() { i = c->begin(); n = c->end(); } inline void toBack() { i = c->end(); n = i; } inline bool hasNext() const { return c->constEnd() != const_iterator(i); } inline T &next() { n = i++; return *n; } inline T &peekNext() const { return *i; } inline bool hasPrevious() const { return c->constBegin() != const_iterator(i); } inline T &previous() { n = --i; return *n; } inline T &peekPrevious() const { iterator p = i; return *--p; } inline void remove() { if (c->constEnd() != const_iterator(n)) { i = c->erase(n); n = c->end(); } } inline void setValue(const T &t) const { if (c->constEnd() != const_iterator(n)) *n = t; } inline T &value() { Q_ASSERT(item_exists()); return *n; } inline const T &value() const { Q_ASSERT(item_exists()); return *n; } inline void insert(const T &t) { n = i = c->insert(i, t); ++i; } inline bool findNext(const T &t) { while (c->constEnd() != const_iterator(n = i)) if (*i++ == t) return true; return false; } inline bool findPrevious(const T &t) { while (c->constBegin() != const_iterator(i)) if (*(n = --i) == t) return true; n = c->end(); return false; } };
2769 # 126 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qiterator.h"
2770 #define Q_DECLARE_ASSOCIATIVE_ITERATOR(C) template <class Key, class T> class Q ##C ##Iterator { typedef typename Q ##C<Key,T>::const_iterator const_iterator; typedef const_iterator Item; Q ##C<Key,T> c; const_iterator i, n; inline bool item_exists() const { return n != c.constEnd(); } public: inline Q ##C ##Iterator(const Q ##C<Key,T> &container) : c(container), i(c.constBegin()), n(c.constEnd()) {} inline Q ##C ##Iterator &operator=(const Q ##C<Key,T> &container) { c = container; i = c.constBegin(); n = c.constEnd(); return *this; } inline void toFront() { i = c.constBegin(); n = c.constEnd(); } inline void toBack() { i = c.constEnd(); n = c.constEnd(); } inline bool hasNext() const { return i != c.constEnd(); } inline Item next() { n = i++; return n; } inline Item peekNext() const { return i; } inline bool hasPrevious() const { return i != c.constBegin(); } inline Item previous() { n = --i; return n; } inline Item peekPrevious() const { const_iterator p = i; return --p; } inline const T &value() const { Q_ASSERT(item_exists()); return *n; } inline const Key &key() const { Q_ASSERT(item_exists()); return n.key(); } inline bool findNext(const T &t) { while ((n = i) != c.constEnd()) if (*i++ == t) return true; return false; } inline bool findPrevious(const T &t) { while (i != c.constBegin()) if (*(n = --i) == t) return true; n = c.constEnd(); return false; } };
2771 # 158 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qiterator.h"
2772 #define Q_DECLARE_MUTABLE_ASSOCIATIVE_ITERATOR(C) template <class Key, class T> class QMutable ##C ##Iterator { typedef typename Q ##C<Key,T>::iterator iterator; typedef typename Q ##C<Key,T>::const_iterator const_iterator; typedef iterator Item; Q ##C<Key,T> *c; iterator i, n; inline bool item_exists() const { return const_iterator(n) != c->constEnd(); } public: inline QMutable ##C ##Iterator(Q ##C<Key,T> &container) : c(&container) { c->setSharable(false); i = c->begin(); n = c->end(); } inline ~QMutable ##C ##Iterator() { c->setSharable(true); } inline QMutable ##C ##Iterator &operator=(Q ##C<Key,T> &container) { c->setSharable(true); c = &container; c->setSharable(false); i = c->begin(); n = c->end(); return *this; } inline void toFront() { i = c->begin(); n = c->end(); } inline void toBack() { i = c->end(); n = c->end(); } inline bool hasNext() const { return const_iterator(i) != c->constEnd(); } inline Item next() { n = i++; return n; } inline Item peekNext() const { return i; } inline bool hasPrevious() const { return const_iterator(i) != c->constBegin(); } inline Item previous() { n = --i; return n; } inline Item peekPrevious() const { iterator p = i; return --p; } inline void remove() { if (const_iterator(n) != c->constEnd()) { i = c->erase(n); n = c->end(); } } inline void setValue(const T &t) { if (const_iterator(n) != c->constEnd()) *n = t; } inline T &value() { Q_ASSERT(item_exists()); return *n; } inline const T &value() const { Q_ASSERT(item_exists()); return *n; } inline const Key &key() const { Q_ASSERT(item_exists()); return n.key(); } inline bool findNext(const T &t) { while (const_iterator(n = i) != c->constEnd()) if (*i++ == t) return true; return false; } inline bool findPrevious(const T &t) { while (const_iterator(i) != c->constBegin()) if (*(n = --i) == t) return true; n = c->end(); return false; } };
2773 # 198 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qiterator.h"
2774
2775
2776
2777 # 1 "../../include/QtCore/qiterator.h" 2
2778 # 48 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qhash.h" 2
2779 # 1 "../../include/QtCore/qlist.h" 1
2780 # 1 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qlist.h" 1
2781 # 43 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qlist.h"
2782 #define QLIST_H
2783
2784 # 1 "../../include/QtCore/qiterator.h" 1
2785 # 46 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qlist.h" 2
2786 # 1 "../../include/QtCore/qatomic.h" 1
2787 # 47 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qlist.h" 2
2788 # 1 "../../include/QtCore/qalgorithms.h" 1
2789 # 48 "../../include/QtCore/../../../qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qlist.h" 2
2790
2791
2792 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/iterator" 1 3
2793 # 61 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/iterator" 3
2794 #define _GLIBCXX_ITERATOR 1
2795
2796
2797 # 64 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/iterator" 3
2798
2799 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 1 3
2800 # 37 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
2801 #define _GLIBCXX_CXX_CONFIG_H 1
2802
2803
2804 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/os_defines.h" 1 3
2805 # 36 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/os_defines.h" 3
2806 #define _GLIBCXX_OS_DEFINES 1
2807
2808
2809
2810
2811
2812 #define __NO_CTYPE 1
2813
2814 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 1 3 4
2815 # 29 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
2816 #define _FEATURES_H 1
2817
2818
2819
2820
2821 #define __UCLIBC__ 1
2822 # 43 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
2823 #define __need_uClibc_config_h
2824 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/uClibc_config.h" 1 3 4
2825
2826
2827
2828
2829 #define __UCLIBC_MAJOR__ 0
2830 #define __UCLIBC_MINOR__ 9
2831 #define __UCLIBC_SUBLEVEL__ 29
2832
2833
2834 #undef __TARGET_alpha__
2835 #undef __TARGET_arm__
2836 #undef __TARGET_avr32__
2837 #define __TARGET_bfin__ 1
2838 #undef __TARGET_cris__
2839 #undef __TARGET_e1__
2840 #undef __TARGET_frv__
2841 #undef __TARGET_h8300__
2842 #undef __TARGET_hppa__
2843 #undef __TARGET_i386__
2844 #undef __TARGET_i960__
2845 #undef __TARGET_ia64__
2846 #undef __TARGET_m68k__
2847 #undef __TARGET_microblaze__
2848 #undef __TARGET_mips__
2849 #undef __TARGET_nios__
2850 #undef __TARGET_nios2__
2851 #undef __TARGET_powerpc__
2852 #undef __TARGET_sh__
2853 #undef __TARGET_sh64__
2854 #undef __TARGET_sparc__
2855 #undef __TARGET_v850__
2856 #undef __TARGET_vax__
2857 #undef __TARGET_x86_64__
2858 #undef __TARGET_xtensa__
2859
2860
2861 #define __TARGET_ARCH__ "bfin"
2862 #define __FORCE_OPTIONS_FOR_ARCH__ 1
2863 #define __TARGET_SUBARCH__ ""
2864 #undef __UCLIBC_FORMAT_ELF__
2865 #define __UCLIBC_FORMAT_FDPIC_ELF__ 1
2866 #undef __UCLIBC_FORMAT_FLAT__
2867 #undef __UCLIBC_FORMAT_FLAT_SEP_DATA__
2868 #undef __UCLIBC_FORMAT_SHARED_FLAT__
2869 #define __ARCH_LITTLE_ENDIAN__ 1
2870
2871
2872 #define __ARCH_HAS_NO_MMU__ 1
2873
2874
2875 #define __UCLIBC_HAS_FLOATS__ 1
2876 #define __UCLIBC_HAS_FPU__ 1
2877 #define __DO_C99_MATH__ 1
2878 #undef __UCLIBC_HAS_FENV__
2879 #define __KERNEL_HEADERS__ "/home/test/work/cruise/temp/kernel_build/usr/include"
2880 #undef __UCLIBC_UCLINUX_BROKEN_MUNMAP__
2881 #define __HAVE_DOT_CONFIG__ 1
2882
2883
2884 #undef __HAVE_NO_PIC__
2885 #define __DOPIC__ 1
2886 #undef __ARCH_HAS_NO_SHARED__
2887 #undef __ARCH_HAS_NO_LDSO__
2888 #define __HAVE_SHARED__ 1
2889 #define __FORCE_SHAREABLE_TEXT_SEGMENTS__ 1
2890 #define __LDSO_LDD_SUPPORT__ 1
2891 #define __LDSO_CACHE_SUPPORT__ 1
2892 #undef __LDSO_PRELOAD_FILE_SUPPORT__
2893 #define __LDSO_BASE_FILENAME__ "ld.so"
2894 #define __UCLIBC_STATIC_LDCONFIG__ 1
2895 #undef __LDSO_RUNPATH__
2896 #define __UCLIBC_CTOR_DTOR__ 1
2897 #undef __LDSO_GNU_HASH_SUPPORT__
2898 #undef __HAS_NO_THREADS__
2899 #define __UCLIBC_HAS_THREADS__ 1
2900 #define __PTHREADS_DEBUG_SUPPORT__ 1
2901 #define __LINUXTHREADS_OLD__ 1
2902 #define __UCLIBC_HAS_SYSLOG__ 1
2903 #define __UCLIBC_HAS_LFS__ 1
2904 #define __MALLOC__ 1
2905 #undef __MALLOC_SIMPLE__
2906 #undef __MALLOC_STANDARD__
2907 #undef __MALLOC_GLIBC_COMPAT__
2908 #define __UCLIBC_DYNAMIC_ATEXIT__ 1
2909 #undef __COMPAT_ATEXIT__
2910 #define __UCLIBC_SUSV3_LEGACY__ 1
2911 #define __UCLIBC_SUSV3_LEGACY_MACROS__ 1
2912 #undef __UCLIBC_HAS_STUBS__
2913 #undef __UCLIBC_HAS_SHADOW__
2914 #define __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__ 1
2915 #define __UCLIBC_HAS___PROGNAME__ 1
2916 #define __UCLIBC_HAS_PTY__ 1
2917 #define __ASSUME_DEVPTS__ 1
2918 #define __UNIX98PTY_ONLY__ 1
2919 #undef __UCLIBC_HAS_GETPT__
2920 #define __UCLIBC_HAS_TM_EXTENSIONS__ 1
2921 #undef __UCLIBC_HAS_TZ_CACHING__
2922 #undef __UCLIBC_HAS_TZ_FILE__
2923
2924
2925 #define __UCLIBC_PWD_BUFFER_SIZE__ 256
2926 #define __UCLIBC_GRP_BUFFER_SIZE__ 256
2927
2928
2929 #undef __UCLIBC_LINUX_MODULE_24__
2930 #define __UCLIBC_LINUX_SPECIFIC__ 1
2931 #define __UCLIBC_HAS_GNU_ERROR__ 1
2932 #define __UCLIBC_BSD_SPECIFIC__ 1
2933 #define __UCLIBC_HAS_BSD_ERR__ 1
2934 #define __UCLIBC_HAS_OBSOLETE_BSD_SIGNAL__ 1
2935 #undef __UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL__
2936 #undef __UCLIBC_NTP_LEGACY__
2937 #define __UCLIBC_SV4_DEPRECATED__ 1
2938 #define __UCLIBC_HAS_REALTIME__ 1
2939 #define __UCLIBC_HAS_ADVANCED_REALTIME__ 1
2940 #define __UCLIBC_HAS_EPOLL__ 1
2941 #define __UCLIBC_HAS_XATTR__ 1
2942 #define __UCLIBC_HAS_PROFILING__ 1
2943 #define __UCLIBC_HAS_CRYPT_IMPL__ 1
2944 #define __UCLIBC_HAS_CRYPT__ 1
2945 #define __UCLIBC_HAS_NETWORK_SUPPORT__ 1
2946 #define __UCLIBC_HAS_SOCKET__ 1
2947 #define __UCLIBC_HAS_IPV4__ 1
2948 #undef __UCLIBC_HAS_IPV6__
2949 #define __UCLIBC_HAS_RPC__ 1
2950 #define __UCLIBC_HAS_FULL_RPC__ 1
2951 #define __UCLIBC_HAS_REENTRANT_RPC__ 1
2952 #undef __UCLIBC_USE_NETLINK__
2953 #define __UCLIBC_HAS_BSD_RES_CLOSE__ 1
2954
2955
2956 #define __UCLIBC_HAS_STRING_GENERIC_OPT__ 1
2957 #define __UCLIBC_HAS_STRING_ARCH_OPT__ 1
2958 #define __UCLIBC_HAS_CTYPE_TABLES__ 1
2959 #define __UCLIBC_HAS_CTYPE_SIGNED__ 1
2960 #define __UCLIBC_HAS_CTYPE_UNSAFE__ 1
2961 #undef __UCLIBC_HAS_CTYPE_CHECKED__
2962 #undef __UCLIBC_HAS_CTYPE_ENFORCED__
2963 #undef __UCLIBC_HAS_WCHAR__
2964 #undef __UCLIBC_HAS_LOCALE__
2965 #undef __UCLIBC_HAS_HEXADECIMAL_FLOATS__
2966 #undef __UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__
2967 #undef __USE_OLD_VFPRINTF__
2968 #define __UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__ 9
2969 #undef __UCLIBC_HAS_SCANF_GLIBC_A_FLAG__
2970 #undef __UCLIBC_HAS_STDIO_BUFSIZ_NONE__
2971 #define __UCLIBC_HAS_STDIO_BUFSIZ_256__ 1
2972 #undef __UCLIBC_HAS_STDIO_BUFSIZ_512__
2973 #undef __UCLIBC_HAS_STDIO_BUFSIZ_1024__
2974 #undef __UCLIBC_HAS_STDIO_BUFSIZ_2048__
2975 #undef __UCLIBC_HAS_STDIO_BUFSIZ_4096__
2976 #undef __UCLIBC_HAS_STDIO_BUFSIZ_8192__
2977 #define __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE__ 1
2978 #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4__
2979 #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8__
2980 #undef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
2981 #define __UCLIBC_HAS_STDIO_GETC_MACRO__ 1
2982 #define __UCLIBC_HAS_STDIO_PUTC_MACRO__ 1
2983 #define __UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION__ 1
2984 #undef __UCLIBC_HAS_FOPEN_LARGEFILE_MODE__
2985 #undef __UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE__
2986 #undef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__
2987 #undef __UCLIBC_HAS_PRINTF_M_SPEC__
2988 #define __UCLIBC_HAS_ERRNO_MESSAGES__ 1
2989 #undef __UCLIBC_HAS_SYS_ERRLIST__
2990 #define __UCLIBC_HAS_SIGNUM_MESSAGES__ 1
2991 #undef __UCLIBC_HAS_SYS_SIGLIST__
2992 #define __UCLIBC_HAS_GNU_GETOPT__ 1
2993 #define __UCLIBC_HAS_GNU_GETSUBOPT__ 1
2994
2995
2996 #define __UCLIBC_HAS_REGEX__ 1
2997 #define __UCLIBC_HAS_REGEX_OLD__ 1
2998 #define __UCLIBC_HAS_FNMATCH__ 1
2999 #define __UCLIBC_HAS_FNMATCH_OLD__ 1
3000 #undef __UCLIBC_HAS_WORDEXP__
3001 #undef __UCLIBC_HAS_FTW__
3002 #define __UCLIBC_HAS_GLOB__ 1
3003 #undef __UCLIBC_HAS_GNU_GLOB__
3004
3005
3006 #define __SHARED_LIB_LOADER_PREFIX__ "/lib"
3007 #define __RUNTIME_PREFIX__ "/"
3008 #define __DEVEL_PREFIX__ "/usr"
3009 #define __MULTILIB__ ""
3010
3011
3012 #undef __UCLIBC_HAS_ARC4RANDOM__
3013 #undef __HAVE_NO_SSP__
3014 #undef __UCLIBC_HAS_SSP__
3015 #define __UCLIBC_BUILD_RELRO__ 1
3016 #undef __UCLIBC_BUILD_NOW__
3017 #undef __UCLIBC_BUILD_NOEXECSTACK__
3018
3019
3020 #define __CROSS_COMPILER_PREFIX__ "bfin-elf-"
3021 #define __UCLIBC_EXTRA_CFLAGS__ " -mcpu=bf532-none -mfdpic"
3022 #undef __DODEBUG__
3023 #undef __DODEBUG_PT__
3024 #undef __DOSTRIP__
3025 #undef __DOASSERTS__
3026 #define __SUPPORT_LD_DEBUG__ 1
3027 #undef __SUPPORT_LD_DEBUG_EARLY__
3028 #undef __UCLIBC_MALLOC_DEBUGGING__
3029 #define __WARNINGS__ "-Wall"
3030 #undef __EXTRA_WARNINGS__
3031 #undef __DOMULTI__
3032 #undef __UCLIBC_MJN3_ONLY__
3033 # 45 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 2 3 4
3034 #undef __need_uClibc_config_h
3035 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/uClibc_arch_features.h" 1 3 4
3036
3037
3038
3039
3040
3041 #define _BITS_UCLIBC_ARCH_FEATURES_H
3042
3043
3044
3045 #undef __UCLIBC_ABORT_INSTRUCTION__
3046
3047
3048 #define __UCLIBC_MMAP_HAS_6_ARGS__
3049
3050
3051 #undef __UCLIBC_TRUNCATE64_HAS_4_ARGS__
3052
3053
3054 #undef __UCLIBC_BROKEN_CREATE_MODULE__
3055
3056
3057 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
3058
3059
3060 #undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
3061
3062
3063 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
3064
3065
3066 #undef __UCLIBC_HAVE_ASM_WEAKEXT_DIRECTIVE__
3067
3068
3069 #undef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
3070
3071
3072 #define __UCLIBC_HAVE_SIGNED_ZERO__
3073 # 47 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 2 3 4
3074
3075
3076
3077 #define __OPTIMIZE_SIZE__ 1
3078 # 122 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3079 #undef __USE_ISOC99
3080 #undef __USE_POSIX
3081 #undef __USE_POSIX2
3082 #undef __USE_POSIX199309
3083 #undef __USE_POSIX199506
3084 #undef __USE_XOPEN
3085 #undef __USE_XOPEN_EXTENDED
3086 #undef __USE_UNIX98
3087 #undef __USE_XOPEN2K
3088 #undef __USE_LARGEFILE
3089 #undef __USE_LARGEFILE64
3090 #undef __USE_FILE_OFFSET64
3091 #undef __USE_BSD
3092 #undef __USE_SVID
3093 #undef __USE_MISC
3094 #undef __USE_ATFILE
3095 #undef __USE_GNU
3096 #undef __USE_REENTRANT
3097 #undef __USE_FORTIFY_LEVEL
3098 #undef __FAVOR_BSD
3099 #undef __KERNEL_STRICT_NAMES
3100
3101
3102
3103
3104 #define __KERNEL_STRICT_NAMES
3105
3106
3107
3108 #define __USE_ANSI 1
3109 # 161 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3110 #define __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
3111 # 178 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3112 #undef _ISOC99_SOURCE
3113 #define _ISOC99_SOURCE 1
3114 #undef _POSIX_SOURCE
3115 #define _POSIX_SOURCE 1
3116 #undef _POSIX_C_SOURCE
3117 #define _POSIX_C_SOURCE 199506L
3118 #undef _XOPEN_SOURCE
3119 #define _XOPEN_SOURCE 600
3120 #undef _XOPEN_SOURCE_EXTENDED
3121 #define _XOPEN_SOURCE_EXTENDED 1
3122
3123 #undef _LARGEFILE64_SOURCE
3124 #define _LARGEFILE64_SOURCE 1
3125
3126 #undef _BSD_SOURCE
3127 #define _BSD_SOURCE 1
3128 #undef _SVID_SOURCE
3129 #define _SVID_SOURCE 1
3130 #undef _ATFILE_SOURCE
3131 #define _ATFILE_SOURCE 1
3132 # 216 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3133 #define __USE_ISOC99 1
3134 # 232 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3135 #define __USE_POSIX 1
3136
3137
3138
3139 #define __USE_POSIX2 1
3140
3141
3142
3143 #define __USE_POSIX199309 1
3144
3145
3146
3147 #define __USE_POSIX199506 1
3148
3149
3150
3151
3152
3153
3154
3155 #define __USE_XOPEN 1
3156
3157 #define __USE_XOPEN_EXTENDED 1
3158 #define __USE_UNIX98 1
3159 #undef _LARGEFILE_SOURCE
3160 #define _LARGEFILE_SOURCE 1
3161
3162 #define __USE_XOPEN2K 1
3163 #undef __USE_ISOC99
3164 #define __USE_ISOC99 1
3165 # 271 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3166 #define __USE_LARGEFILE 1
3167
3168
3169
3170 #define __USE_LARGEFILE64 1
3171
3172
3173
3174
3175
3176
3177
3178 #define __USE_MISC 1
3179
3180
3181
3182 #define __USE_BSD 1
3183
3184
3185
3186 #define __USE_SVID 1
3187
3188
3189
3190 #define __USE_ATFILE 1
3191
3192
3193
3194 #define __USE_GNU 1
3195
3196
3197
3198 #define __USE_REENTRANT 1
3199
3200
3201
3202 #undef _FORTIFY_SOURCE
3203 # 316 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3204 #define __USE_FORTIFY_LEVEL 0
3205
3206
3207
3208 #define __STDC_IEC_559__ 1
3209 #define __STDC_IEC_559_COMPLEX__ 1
3210 # 339 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3211 #undef __GNU_LIBRARY__
3212 #define __GNU_LIBRARY__ 6
3213
3214
3215
3216
3217 #define __GLIBC__ 2
3218 #define __GLIBC_MINOR__ 2
3219
3220
3221 #define __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
3222 # 365 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3223 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 1 3 4
3224 # 21 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3225 #define _SYS_CDEFS_H 1
3226 # 36 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3227 #undef __P
3228 #undef __PMT
3229 # 51 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3230 #define __THROW throw ()
3231 #define __NTH(fct) fct throw ()
3232 # 74 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3233 #define __P(args) args
3234 #define __PMT(args) args
3235
3236
3237
3238
3239 #define __CONCAT(x,y) x ## y
3240 #define __STRING(x) #x
3241
3242
3243 #define __ptr_t void *
3244 #define __long_double_t long double
3245
3246
3247
3248
3249 #define __BEGIN_DECLS extern "C" {
3250 #define __END_DECLS }
3251 # 114 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3252 #define __BEGIN_NAMESPACE_STD
3253 #define __END_NAMESPACE_STD
3254 #define __USING_NAMESPACE_STD(name)
3255 #define __BEGIN_NAMESPACE_C99
3256 #define __END_NAMESPACE_C99
3257 #define __USING_NAMESPACE_C99(name)
3258
3259
3260
3261
3262
3263 #define __bounded
3264 #define __unbounded
3265 #define __ptrvalue
3266
3267
3268
3269
3270 #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
3271 #define __bos0(ptr) __builtin_object_size (ptr, 0)
3272
3273
3274 #define __warndecl(name,msg) extern void name (void) __attribute__((__warning__ (msg)))
3275
3276 #define __warnattr(msg) __attribute__((__warning__ (msg)))
3277 #define __errordecl(name,msg) extern void name (void) __attribute__((__error__ (msg)))
3278 # 150 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3279 #define __flexarr []
3280 # 177 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3281 #define __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias))
3282
3283 #define __REDIRECT_NTH(name,proto,alias) name proto __THROW __asm__ (__ASMNAME (#alias))
3284
3285
3286
3287
3288
3289 #define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
3290 #define __ASMNAME2(prefix,cname) __STRING (prefix) cname
3291 # 206 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3292 #define __attribute_aligned__(size) __attribute__ ((__aligned__ (size)))
3293 # 215 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3294 #define __attribute_malloc__ __attribute__ ((__malloc__))
3295 # 224 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3296 #define __attribute_pure__ __attribute__ ((__pure__))
3297 # 233 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3298 #define __attribute_used__ __attribute__ ((__used__))
3299 #define __attribute_noinline__ __attribute__ ((__noinline__))
3300
3301
3302
3303
3304
3305
3306
3307 #define __attribute_deprecated__ __attribute__ ((__deprecated__))
3308 # 254 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3309 #define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
3310 # 264 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3311 #define __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b)))
3312 # 273 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3313 #define __nonnull(params) __attribute__ ((__nonnull__ params))
3314
3315
3316
3317
3318
3319
3320
3321 #define __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__))
3322 # 290 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3323 #define __wur
3324
3325
3326
3327
3328 #define __always_inline __inline __attribute__ ((__always_inline__))
3329 # 306 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3330 #define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
3331
3332 #define __extern_always_inline extern __always_inline __attribute__ ((__gnu_inline__, __artificial__))
3333 # 323 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3334 #define __va_arg_pack() __builtin_va_arg_pack ()
3335 #define __va_arg_pack_len() __builtin_va_arg_pack_len ()
3336 # 347 "/opt/uClinux/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 3 4
3337 #define __restrict_arr
3338 # 366 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 2 3 4
3339 # 418 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include-fixed/features.h" 3 4
3340 #undef _ATFILE_SOURCE
3341 #undef __USE_ATFILE
3342 # 45 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/os_defines.h" 2 3
3343
3344
3345 #define __NO_STRING_INLINES
3346 # 41 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 2 3
3347
3348
3349 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/cpu_defines.h" 1 3
3350 # 36 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/cpu_defines.h" 3
3351 #define _GLIBCXX_CPU_DEFINES 1
3352 # 44 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 2 3
3353
3354
3355 #define __GLIBCXX__ 20090804
3356
3357
3358
3359
3360 #define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY 1
3361
3362
3363 #define _GLIBCXX_VISIBILITY_ATTR(V) __attribute__ ((__visibility__ (#V)))
3364 # 63 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3365 #define _GLIBCXX_DEPRECATED 1
3366
3367
3368
3369
3370
3371 #define _GLIBCXX_DEPRECATED_ATTR
3372 # 98 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3373 #define _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION 0
3374 # 122 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3375 #define _GLIBCXX_STD_D _GLIBCXX_STD
3376 #define _GLIBCXX_STD_P _GLIBCXX_STD
3377 #define _GLIBCXX_STD std
3378 #define _GLIBCXX_BEGIN_NESTED_NAMESPACE(X,Y) _GLIBCXX_BEGIN_NAMESPACE(X)
3379 #define _GLIBCXX_END_NESTED_NAMESPACE _GLIBCXX_END_NAMESPACE
3380 #define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X _GLIBCXX_VISIBILITY_ATTR(default) {
3381 #define _GLIBCXX_END_NAMESPACE }
3382 # 229 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3383 #undef _GLIBCXX_LONG_DOUBLE_COMPAT
3384
3385
3386
3387 namespace std __attribute__ ((__visibility__ ("default"))) {
3388
3389
3390
3391
3392
3393
3394
3395 #define _GLIBCXX_LDBL_NAMESPACE
3396 #define _GLIBCXX_BEGIN_LDBL_NAMESPACE
3397 #define _GLIBCXX_END_LDBL_NAMESPACE
3398
3399 }
3400 # 259 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3401 #define _GLIBCXX_EXTERN_TEMPLATE 1
3402
3403
3404
3405
3406
3407
3408
3409 #define _GLIBCXX_WEAK_DEFINITION
3410 # 285 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3411 #define _GLIBCXX_FAST_MATH 0
3412
3413
3414
3415
3416
3417
3418 #define __N(msgid) (msgid)
3419
3420
3421 #undef min
3422 #undef max
3423
3424
3425
3426
3427
3428
3429 #define _GLIBCXX_HAVE_ACOSF 1
3430
3431
3432
3433
3434
3435 #define _GLIBCXX_HAVE_ASINF 1
3436
3437
3438
3439
3440
3441 #define _GLIBCXX_HAVE_ATAN2F 1
3442
3443
3444
3445
3446
3447 #define _GLIBCXX_HAVE_ATANF 1
3448 # 330 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3449 #define _GLIBCXX_HAVE_CEILF 1
3450
3451
3452
3453
3454
3455 #define _GLIBCXX_HAVE_COMPLEX_H 1
3456
3457
3458 #define _GLIBCXX_HAVE_COPYSIGN 1
3459
3460
3461 #define _GLIBCXX_HAVE_COPYSIGNF 1
3462
3463
3464
3465
3466
3467 #define _GLIBCXX_HAVE_COSF 1
3468
3469
3470 #define _GLIBCXX_HAVE_COSHF 1
3471 # 360 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3472 #define _GLIBCXX_HAVE_DLFCN_H 1
3473
3474
3475 #define _GLIBCXX_HAVE_ENDIAN_H 1
3476
3477
3478 #define _GLIBCXX_HAVE_EXPF 1
3479
3480
3481
3482
3483
3484 #define _GLIBCXX_HAVE_FABSF 1
3485 # 381 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3486 #define _GLIBCXX_HAVE_FINITE 1
3487
3488
3489 #define _GLIBCXX_HAVE_FINITEF 1
3490
3491
3492
3493
3494
3495 #define _GLIBCXX_HAVE_FLOAT_H 1
3496
3497
3498 #define _GLIBCXX_HAVE_FLOORF 1
3499
3500
3501
3502
3503
3504 #define _GLIBCXX_HAVE_FMODF 1
3505 # 411 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3506 #define _GLIBCXX_HAVE_FREXPF 1
3507 # 423 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3508 #define _GLIBCXX_HAVE_GETIPINFO 1
3509
3510
3511
3512
3513
3514
3515 #define _GLIBCXX_HAVE_GTHR_DEFAULT 1
3516
3517
3518 #define _GLIBCXX_HAVE_HYPOT 1
3519
3520
3521 #define _GLIBCXX_HAVE_HYPOTF 1
3522 # 448 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3523 #define _GLIBCXX_HAVE_INT64_T 1
3524
3525
3526 #define _GLIBCXX_HAVE_INTTYPES_H 1
3527
3528
3529 #define _GLIBCXX_HAVE_ISINF 1
3530
3531
3532 #define _GLIBCXX_HAVE_ISINFF 1
3533
3534
3535
3536
3537
3538 #define _GLIBCXX_HAVE_ISNAN 1
3539
3540
3541 #define _GLIBCXX_HAVE_ISNANF 1
3542 # 478 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3543 #define _GLIBCXX_HAVE_LDEXPF 1
3544 # 487 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3545 #define _GLIBCXX_HAVE_LIBM 1
3546 # 505 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3547 #define _GLIBCXX_HAVE_LINUX_FUTEX 1
3548
3549
3550 #define _GLIBCXX_HAVE_LOCALE_H 1
3551
3552
3553 #define _GLIBCXX_HAVE_LOG10F 1
3554
3555
3556
3557
3558
3559 #define _GLIBCXX_HAVE_LOGF 1
3560 # 532 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3561 #define _GLIBCXX_HAVE_MEMORY_H 1
3562
3563
3564
3565
3566
3567 #define _GLIBCXX_HAVE_MODF 1
3568
3569
3570 #define _GLIBCXX_HAVE_MODFF 1
3571 # 550 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3572 #define _GLIBCXX_HAVE_POLL 1
3573
3574
3575 #define _GLIBCXX_HAVE_POWF 1
3576 # 565 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3577 #define _GLIBCXX_HAVE_SIGSETJMP 1
3578 # 577 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3579 #define _GLIBCXX_HAVE_SINF 1
3580
3581
3582 #define _GLIBCXX_HAVE_SINHF 1
3583 # 589 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3584 #define _GLIBCXX_HAVE_SQRTF 1
3585
3586
3587
3588
3589
3590 #define _GLIBCXX_HAVE_STDBOOL_H 1
3591
3592
3593 #define _GLIBCXX_HAVE_STDINT_H 1
3594
3595
3596 #define _GLIBCXX_HAVE_STDLIB_H 1
3597
3598
3599
3600
3601
3602 #define _GLIBCXX_HAVE_STRERROR_R 1
3603
3604
3605 #define _GLIBCXX_HAVE_STRINGS_H 1
3606
3607
3608 #define _GLIBCXX_HAVE_STRING_H 1
3609
3610
3611 #define _GLIBCXX_HAVE_STRTOF 1
3612
3613
3614 #define _GLIBCXX_HAVE_STRTOLD 1
3615 # 628 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3616 #define _GLIBCXX_HAVE_SYS_IOCTL_H 1
3617
3618
3619 #define _GLIBCXX_HAVE_SYS_IPC_H 1
3620 # 646 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3621 #define _GLIBCXX_HAVE_SYS_SEM_H 1
3622
3623
3624 #define _GLIBCXX_HAVE_SYS_STAT_H 1
3625
3626
3627
3628
3629
3630 #define _GLIBCXX_HAVE_SYS_TYPES_H 1
3631
3632
3633 #define _GLIBCXX_HAVE_SYS_UIO_H 1
3634
3635
3636
3637
3638
3639 #define _GLIBCXX_HAVE_S_ISREG 1
3640
3641
3642 #define _GLIBCXX_HAVE_TANF 1
3643
3644
3645 #define _GLIBCXX_HAVE_TANHF 1
3646 # 679 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3647 #define _GLIBCXX_HAVE_TGMATH_H 1
3648
3649
3650
3651
3652
3653 #define _GLIBCXX_HAVE_UNISTD_H 1
3654 # 706 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3655 #define _GLIBCXX_HAVE_WRITEV 1
3656 # 901 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3657 #define _GLIBCXX_HAVE___BUILTIN_ABS 1
3658
3659
3660 #define _GLIBCXX_HAVE___BUILTIN_COS 1
3661
3662
3663 #define _GLIBCXX_HAVE___BUILTIN_COSF 1
3664
3665
3666 #define _GLIBCXX_HAVE___BUILTIN_COSL 1
3667
3668
3669 #define _GLIBCXX_HAVE___BUILTIN_FABS 1
3670
3671
3672 #define _GLIBCXX_HAVE___BUILTIN_FABSF 1
3673
3674
3675 #define _GLIBCXX_HAVE___BUILTIN_FABSL 1
3676
3677
3678 #define _GLIBCXX_HAVE___BUILTIN_LABS 1
3679
3680
3681 #define _GLIBCXX_HAVE___BUILTIN_SIN 1
3682
3683
3684 #define _GLIBCXX_HAVE___BUILTIN_SINF 1
3685
3686
3687 #define _GLIBCXX_HAVE___BUILTIN_SINL 1
3688
3689
3690 #define _GLIBCXX_HAVE___BUILTIN_SQRT 1
3691
3692
3693 #define _GLIBCXX_HAVE___BUILTIN_SQRTF 1
3694
3695
3696 #define _GLIBCXX_HAVE___BUILTIN_SQRTL 1
3697
3698
3699 #define _GLIBCXX_HAVE___SIGNBIT 1
3700
3701
3702 #define _GLIBCXX_HAVE___SIGNBITF 1
3703 # 956 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3704 #define LT_OBJDIR ".libs/"
3705
3706
3707
3708
3709
3710 #define _GLIBCXX_PACKAGE_BUGREPORT ""
3711
3712
3713 #define _GLIBCXX_PACKAGE_NAME "package-unused"
3714
3715
3716 #define _GLIBCXX_PACKAGE_STRING "package-unused version-unused"
3717
3718
3719 #define _GLIBCXX_PACKAGE_TARNAME "libstdc++"
3720
3721
3722 #define _GLIBCXX_PACKAGE__GLIBCXX_VERSION "version-unused"
3723
3724
3725 #define STDC_HEADERS 1
3726
3727
3728
3729
3730
3731 #define _GLIBCXX_ATOMIC_BUILTINS 1
3732 # 992 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3733 #define _GLIBCXX_HOSTED 1
3734 # 1032 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bfin-linux-uclibc/bits/c++config.h" 3
3735 #define _GLIBCXX_USE_C99_COMPLEX_TR1 1
3736
3737
3738
3739 #define _GLIBCXX_USE_C99_CTYPE_TR1 1
3740
3741
3742
3743
3744
3745
3746
3747 #define _GLIBCXX_USE_C99_INTTYPES_TR1 1
3748
3749
3750
3751 #define _GLIBCXX_USE_C99_MATH 1
3752
3753
3754
3755
3756
3757
3758
3759 #define _GLIBCXX_USE_C99_STDINT_TR1 1
3760
3761
3762 #define _GLIBCXX_USE_LFS 1
3763
3764
3765 #define _GLIBCXX_USE_LONG_LONG 1
3766 # 66 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/iterator" 2 3
3767 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 1 3
3768 # 46 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 3
3769
3770 # 47 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 3
3771
3772
3773 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 1 3 4
3774 # 50 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 2 3
3775
3776
3777 #define _GLIBCXX_CSTDDEF 1
3778
3779 namespace std __attribute__ ((__visibility__ ("default"))) {
3780
3781 using ::ptrdiff_t;
3782 using ::size_t;
3783
3784 }
3785 # 67 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/iterator" 2 3
3786 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_types.h" 1 3
3787 # 66 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_types.h" 3
3788 #define _STL_ITERATOR_BASE_TYPES_H 1
3789
3790
3791 # 69 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_types.h" 3
3792
3793
3794 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 1 3
3795 # 46 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 3
3796
3797 # 47 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 3
3798
3799
3800 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/stddef.h" 1 3 4
3801 # 50 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/cstddef" 2 3
3802 # 72 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_types.h" 2 3
3803
3804 namespace std __attribute__ ((__visibility__ ("default"))) {
3805 # 84 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_types.h" 3
3806 struct input_iterator_tag {};
3807
3808 struct output_iterator_tag {};
3809
3810 struct forward_iterator_tag : public input_iterator_tag {};
3811
3812
3813 struct bidirectional_iterator_tag : public forward_iterator_tag {};
3814
3815
3816 struct random_access_iterator_tag : public bidirectional_iterator_tag {};
3817 # 108 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_types.h" 3
3818 template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
3819 typename _Pointer = _Tp*, typename _Reference = _Tp&>
3820 struct iterator
3821 {
3822
3823 typedef _Category iterator_category;
3824
3825 typedef _Tp value_type;
3826
3827 typedef _Distance difference_type;
3828
3829 typedef _Pointer pointer;
3830
3831 typedef _Reference reference;
3832 };
3833
3834
3835
3836
3837
3838
3839
3840 template<typename _Iterator>
3841 struct iterator_traits
3842 {
3843 typedef typename _Iterator::iterator_category iterator_category;
3844 typedef typename _Iterator::value_type value_type;
3845 typedef typename _Iterator::difference_type difference_type;
3846 typedef typename _Iterator::pointer pointer;
3847 typedef typename _Iterator::reference reference;
3848 };
3849
3850 template<typename _Tp>
3851 struct iterator_traits<_Tp*>
3852 {
3853 typedef random_access_iterator_tag iterator_category;
3854 typedef _Tp value_type;
3855 typedef ptrdiff_t difference_type;
3856 typedef _Tp* pointer;
3857 typedef _Tp& reference;
3858 };
3859
3860 template<typename _Tp>
3861 struct iterator_traits<const _Tp*>
3862 {
3863 typedef random_access_iterator_tag iterator_category;
3864 typedef _Tp value_type;
3865 typedef ptrdiff_t difference_type;
3866 typedef const _Tp* pointer;
3867 typedef const _Tp& reference;
3868 };
3869
3870
3871
3872
3873
3874 template<typename _Iter>
3875 inline typename iterator_traits<_Iter>::iterator_category
3876 __iterator_category(const _Iter&)
3877 { return typename iterator_traits<_Iter>::iterator_category(); }
3878
3879 }
3880 # 68 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/iterator" 2 3
3881 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_funcs.h" 1 3
3882 # 66 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_funcs.h" 3
3883 #define _STL_ITERATOR_BASE_FUNCS_H 1
3884
3885
3886 # 69 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_funcs.h" 3
3887 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/concept_check.h" 1 3
3888 # 36 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/concept_check.h" 3
3889 #define _CONCEPT_CHECK_H 1
3890
3891
3892 # 39 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/concept_check.h" 3
3893 # 52 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/concept_check.h" 3
3894 #define __glibcxx_function_requires(...)
3895 #define __glibcxx_class_requires(_a,_b)
3896 #define __glibcxx_class_requires2(_a,_b,_c)
3897 #define __glibcxx_class_requires3(_a,_b,_c,_d)
3898 #define __glibcxx_class_requires4(_a,_b,_c,_d,_e)
3899 # 70 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_funcs.h" 2 3
3900
3901 namespace std __attribute__ ((__visibility__ ("default"))) {
3902
3903 template<typename _InputIterator>
3904 inline typename iterator_traits<_InputIterator>::difference_type
3905 __distance(_InputIterator __first, _InputIterator __last,
3906 input_iterator_tag)
3907 {
3908
3909
3910
3911 typename iterator_traits<_InputIterator>::difference_type __n = 0;
3912 while (__first != __last)
3913 {
3914 ++__first;
3915 ++__n;
3916 }
3917 return __n;
3918 }
3919
3920 template<typename _RandomAccessIterator>
3921 inline typename iterator_traits<_RandomAccessIterator>::difference_type
3922 __distance(_RandomAccessIterator __first, _RandomAccessIterator __last,
3923 random_access_iterator_tag)
3924 {
3925
3926
3927
3928 return __last - __first;
3929 }
3930 # 113 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_funcs.h" 3
3931 template<typename _InputIterator>
3932 inline typename iterator_traits<_InputIterator>::difference_type
3933 distance(_InputIterator __first, _InputIterator __last)
3934 {
3935
3936 return std::__distance(__first, __last,
3937 std::__iterator_category(__first));
3938 }
3939
3940 template<typename _InputIterator, typename _Distance>
3941 inline void
3942 __advance(_InputIterator& __i, _Distance __n, input_iterator_tag)
3943 {
3944
3945
3946 while (__n--)
3947 ++__i;
3948 }
3949
3950 template<typename _BidirectionalIterator, typename _Distance>
3951 inline void
3952 __advance(_BidirectionalIterator& __i, _Distance __n,
3953 bidirectional_iterator_tag)
3954 {
3955
3956
3957
3958 if (__n > 0)
3959 while (__n--)
3960 ++__i;
3961 else
3962 while (__n++)
3963 --__i;
3964 }
3965
3966 template<typename _RandomAccessIterator, typename _Distance>
3967 inline void
3968 __advance(_RandomAccessIterator& __i, _Distance __n,
3969 random_access_iterator_tag)
3970 {
3971
3972
3973
3974 __i += __n;
3975 }
3976 # 171 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator_base_funcs.h" 3
3977 template<typename _InputIterator, typename _Distance>
3978 inline void
3979 advance(_InputIterator& __i, _Distance __n)
3980 {
3981
3982 typename iterator_traits<_InputIterator>::difference_type __d = __n;
3983 std::__advance(__i, __d, std::__iterator_category(__i));
3984 }
3985
3986 }
3987 # 69 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/iterator" 2 3
3988 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator.h" 1 3
3989 # 67 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator.h" 3
3990 #define _STL_ITERATOR_H 1
3991
3992 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/cpp_type_traits.h" 1 3
3993 # 39 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/cpp_type_traits.h" 3
3994 #define _CPP_TYPE_TRAITS_H 1
3995
3996
3997 # 42 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/cpp_type_traits.h" 3
3998 # 74 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/cpp_type_traits.h" 3
3999 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
4000
4001 template<typename _Iterator, typename _Container>
4002 class __normal_iterator;
4003
4004 }
4005
4006 namespace std __attribute__ ((__visibility__ ("default"))) {
4007
4008 struct __true_type { };
4009 struct __false_type { };
4010
4011 template<bool>
4012 struct __truth_type
4013 { typedef __false_type __type; };
4014
4015 template<>
4016 struct __truth_type<true>
4017 { typedef __true_type __type; };
4018
4019
4020
4021 template<class _Sp, class _Tp>
4022 struct __traitor
4023 {
4024 enum { __value = bool(_Sp::__value) || bool(_Tp::__value) };
4025 typedef typename __truth_type<__value>::__type __type;
4026 };
4027
4028
4029
4030 template<class _Sp, class _Tp>
4031 struct __traitand
4032 {
4033 enum { __value = bool(_Sp::__value) && bool(_Tp::__value) };
4034 typedef typename __truth_type<__value>::__type __type;
4035 };
4036
4037
4038 template<typename, typename>
4039 struct __are_same
4040 {
4041 enum { __value = 0 };
4042 typedef __false_type __type;
4043 };
4044
4045 template<typename _Tp>
4046 struct __are_same<_Tp, _Tp>
4047 {
4048 enum { __value = 1 };
4049 typedef __true_type __type;
4050 };
4051
4052
4053 template<typename _Tp>
4054 struct __is_void
4055 {
4056 enum { __value = 0 };
4057 typedef __false_type __type;
4058 };
4059
4060 template<>
4061 struct __is_void<void>
4062 {
4063 enum { __value = 1 };
4064 typedef __true_type __type;
4065 };
4066
4067
4068
4069
4070 template<typename _Tp>
4071 struct __is_integer
4072 {
4073 enum { __value = 0 };
4074 typedef __false_type __type;
4075 };
4076
4077
4078
4079
4080 template<>
4081 struct __is_integer<bool>
4082 {
4083 enum { __value = 1 };
4084 typedef __true_type __type;
4085 };
4086
4087 template<>
4088 struct __is_integer<char>
4089 {
4090 enum { __value = 1 };
4091 typedef __true_type __type;
4092 };
4093
4094 template<>
4095 struct __is_integer<signed char>
4096 {
4097 enum { __value = 1 };
4098 typedef __true_type __type;
4099 };
4100
4101 template<>
4102 struct __is_integer<unsigned char>
4103 {
4104 enum { __value = 1 };
4105 typedef __true_type __type;
4106 };
4107 # 192 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/cpp_type_traits.h" 3
4108 template<>
4109 struct __is_integer<short>
4110 {
4111 enum { __value = 1 };
4112 typedef __true_type __type;
4113 };
4114
4115 template<>
4116 struct __is_integer<unsigned short>
4117 {
4118 enum { __value = 1 };
4119 typedef __true_type __type;
4120 };
4121
4122 template<>
4123 struct __is_integer<int>
4124 {
4125 enum { __value = 1 };
4126 typedef __true_type __type;
4127 };
4128
4129 template<>
4130 struct __is_integer<unsigned int>
4131 {
4132 enum { __value = 1 };
4133 typedef __true_type __type;
4134 };
4135
4136 template<>
4137 struct __is_integer<long>
4138 {
4139 enum { __value = 1 };
4140 typedef __true_type __type;
4141 };
4142
4143 template<>
4144 struct __is_integer<unsigned long>
4145 {
4146 enum { __value = 1 };
4147 typedef __true_type __type;
4148 };
4149
4150 template<>
4151 struct __is_integer<long long>
4152 {
4153 enum { __value = 1 };
4154 typedef __true_type __type;
4155 };
4156
4157 template<>
4158 struct __is_integer<unsigned long long>
4159 {
4160 enum { __value = 1 };
4161 typedef __true_type __type;
4162 };
4163
4164
4165
4166
4167 template<typename _Tp>
4168 struct __is_floating
4169 {
4170 enum { __value = 0 };
4171 typedef __false_type __type;
4172 };
4173
4174
4175 template<>
4176 struct __is_floating<float>
4177 {
4178 enum { __value = 1 };
4179 typedef __true_type __type;
4180 };
4181
4182 template<>
4183 struct __is_floating<double>
4184 {
4185 enum { __value = 1 };
4186 typedef __true_type __type;
4187 };
4188
4189 template<>
4190 struct __is_floating<long double>
4191 {
4192 enum { __value = 1 };
4193 typedef __true_type __type;
4194 };
4195
4196
4197
4198
4199 template<typename _Tp>
4200 struct __is_pointer
4201 {
4202 enum { __value = 0 };
4203 typedef __false_type __type;
4204 };
4205
4206 template<typename _Tp>
4207 struct __is_pointer<_Tp*>
4208 {
4209 enum { __value = 1 };
4210 typedef __true_type __type;
4211 };
4212
4213
4214
4215
4216 template<typename _Tp>
4217 struct __is_normal_iterator
4218 {
4219 enum { __value = 0 };
4220 typedef __false_type __type;
4221 };
4222
4223 template<typename _Iterator, typename _Container>
4224 struct __is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator,
4225 _Container> >
4226 {
4227 enum { __value = 1 };
4228 typedef __true_type __type;
4229 };
4230
4231
4232
4233
4234 template<typename _Tp>
4235 struct __is_arithmetic
4236 : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> >
4237 { };
4238
4239
4240
4241
4242 template<typename _Tp>
4243 struct __is_fundamental
4244 : public __traitor<__is_void<_Tp>, __is_arithmetic<_Tp> >
4245 { };
4246
4247
4248
4249
4250 template<typename _Tp>
4251 struct __is_scalar
4252 : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> >
4253 { };
4254
4255
4256
4257
4258 template<typename _Tp>
4259 struct __is_char
4260 {
4261 enum { __value = 0 };
4262 typedef __false_type __type;
4263 };
4264
4265 template<>
4266 struct __is_char<char>
4267 {
4268 enum { __value = 1 };
4269 typedef __true_type __type;
4270 };
4271 # 365 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/cpp_type_traits.h" 3
4272 template<typename _Tp>
4273 struct __is_byte
4274 {
4275 enum { __value = 0 };
4276 typedef __false_type __type;
4277 };
4278
4279 template<>
4280 struct __is_byte<char>
4281 {
4282 enum { __value = 1 };
4283 typedef __true_type __type;
4284 };
4285
4286 template<>
4287 struct __is_byte<signed char>
4288 {
4289 enum { __value = 1 };
4290 typedef __true_type __type;
4291 };
4292
4293 template<>
4294 struct __is_byte<unsigned char>
4295 {
4296 enum { __value = 1 };
4297 typedef __true_type __type;
4298 };
4299
4300
4301
4302
4303 template<typename _Tp>
4304 struct __is_move_iterator
4305 {
4306 enum { __value = 0 };
4307 typedef __false_type __type;
4308 };
4309 # 415 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/cpp_type_traits.h" 3
4310 }
4311 # 70 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/bits/stl_iterator.h" 2 3
4312 # 1 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/ext/type_traits.h" 1 3
4313 # 36 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/ext/type_traits.h" 3
4314 #define _EXT_TYPE_TRAITS 1
4315
4316
4317 # 39 "/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.4/include/c++/ext/type_traits.h" 3
4318
4319
4320
4321
4322 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
4323
4324
4325 template<bool, typename>
4326 struct __enable_if
4327 { };
4328
4329 template<typename _Tp>
4330 struct __enable_if<true, _Tp>
4331 { typedef _Tp __type; };
4332
4333
4334
4335 template<bool _Cond, typename _Iftrue, typename _Iffalse>
4336 struct __conditional_type
4337 { typedef _Iftrue __type; };
4338
4339 template<typename _Iftrue, typename _Iffalse>
4340 struct __conditional_type<false, _Iftrue, _Iffalse>
4341 { typedef _Iffalse __type; };
4342
4343
4344
4345 template<typename _Tp>
4346 struct __add_unsigned
4347 {
4348 private:
4349 typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type;
4350
4351 public:
4352 typedef typename __if_type::__type __type;
4353 };
4354
4355 template<>
4356 struct __add_unsigned<char>
4357 { typedef unsigned char __type; };
4358
4359 template<>
4360 struct __add_unsigned<signed char>
4361 { typedef unsigned char __type; };
4362
4363 template<>
4364 struct __add_unsigned<short>
4365 { typedef unsigned short __type; };
4366
4367 template<>
4368 struct __add_unsigned<int>
4369 { typedef unsigned int __type; };
4370