~keith-penguin/kdegames/trunk

« back to all changes in this revision

Viewing changes to ksirk/ksirk/iris/src/libidn/idn-int.h

  • Committer: Keith Worrell
  • Date: 2009-03-18 05:35:28 UTC
  • Revision ID: keith.worrell@gmail.com-20090318053528-mx6x9c0ngmg0kg6p
imported project

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _LIBIDN_LIB_IDN_INT_H
 
2
#define _LIBIDN_LIB_IDN_INT_H 1
 
3
#ifndef _GENERATED_STDINT_H
 
4
#define _GENERATED_STDINT_H "libidn 0.3.1"
 
5
/* generated using gnu compiler gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) */
 
6
#define _STDINT_HAVE_STDINT_H 1
 
7
 
 
8
/* ................... shortcircuit part ........................... */
 
9
 
 
10
#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
 
11
 
 
12
/*#include <qglobal.h> */
 
13
/*#ifdef Q_OS_WIN32 */
 
14
#include "qint.h"
 
15
/*#else */
 
16
/*#include <stdint.h> */
 
17
/*#endif */
 
18
 
 
19
#else
 
20
#include <stddef.h>
 
21
 
 
22
/* .................... configured part ............................ */
 
23
 
 
24
/* whether we have a C99 compatible stdint header file */
 
25
/* #undef _STDINT_HEADER_INTPTR */
 
26
/* whether we have a C96 compatible inttypes header file */
 
27
/* #undef _STDINT_HEADER_UINT32 */
 
28
/* whether we have a BSD compatible inet types header */
 
29
/* #undef _STDINT_HEADER_U_INT32 */
 
30
 
 
31
/* which 64bit typedef has been found */
 
32
/* #undef _STDINT_HAVE_UINT64_T */
 
33
/* #undef _STDINT_HAVE_U_INT64_T */
 
34
 
 
35
/* which type model has been detected */
 
36
/* #undef _STDINT_CHAR_MODEL /// skipped  */
 
37
/* #undef _STDINT_LONG_MODEL / skipped  */
 
38
 
 
39
/* whether int_least types were detected */
 
40
/* #undef _STDINT_HAVE_INT_LEAST32_T */
 
41
/* whether int_fast types were detected */
 
42
/* #undef _STDINT_HAVE_INT_FAST32_T */
 
43
/* whether intmax_t type was detected */
 
44
/* #undef _STDINT_HAVE_INTMAX_T */
 
45
 
 
46
/* .................... detections part ............................ */
 
47
 
 
48
/* whether we need to define bitspecific types from compiler base types */
 
49
#ifndef _STDINT_HEADER_INTPTR
 
50
#ifndef _STDINT_HEADER_UINT32
 
51
#ifndef _STDINT_HEADER_U_INT32
 
52
#define _STDINT_NEED_INT_MODEL_T
 
53
#else
 
54
#define _STDINT_HAVE_U_INT_TYPES
 
55
#endif
 
56
#endif
 
57
#endif
 
58
 
 
59
#ifdef _STDINT_HAVE_U_INT_TYPES
 
60
#undef _STDINT_NEED_INT_MODEL_T
 
61
#endif
 
62
 
 
63
#ifdef  _STDINT_CHAR_MODEL
 
64
#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
 
65
#ifndef _STDINT_BYTE_MODEL
 
66
#define _STDINT_BYTE_MODEL 12
 
67
#endif
 
68
#endif
 
69
#endif
 
70
 
 
71
#ifndef _STDINT_HAVE_INT_LEAST32_T
 
72
#define _STDINT_NEED_INT_LEAST_T
 
73
#endif
 
74
 
 
75
#ifndef _STDINT_HAVE_INT_FAST32_T
 
76
#define _STDINT_NEED_INT_FAST_T
 
77
#endif
 
78
 
 
79
#ifndef _STDINT_HEADER_INTPTR
 
80
#define _STDINT_NEED_INTPTR_T
 
81
#ifndef _STDINT_HAVE_INTMAX_T
 
82
#define _STDINT_NEED_INTMAX_T
 
83
#endif
 
84
#endif
 
85
 
 
86
 
 
87
/* .................... definition part ............................ */
 
88
 
 
89
/* some system headers have good uint64_t */
 
90
#ifndef _HAVE_UINT64_T
 
91
#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
 
92
#define _HAVE_UINT64_T
 
93
#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
 
94
#define _HAVE_UINT64_T
 
95
typedef u_int64_t uint64_t;
 
96
#endif
 
97
#endif
 
98
 
 
99
#ifndef _HAVE_UINT64_T
 
100
/* .. here are some common heuristics using compiler runtime specifics */
 
101
#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
 
102
#define _HAVE_UINT64_T
 
103
typedef long long int64_t;
 
104
typedef unsigned long long uint64_t;
 
105
 
 
106
#elif !defined __STRICT_ANSI__
 
107
#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
 
108
#define _HAVE_UINT64_T
 
109
typedef __int64 int64_t;
 
110
typedef unsigned __int64 uint64_t;
 
111
 
 
112
#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
 
113
/* note: all ELF-systems seem to have loff-support which needs 64-bit */
 
114
#if !defined _NO_LONGLONG
 
115
#define _HAVE_UINT64_T
 
116
typedef long long int64_t;
 
117
typedef unsigned long long uint64_t;
 
118
#endif
 
119
 
 
120
#elif defined __alpha || (defined __mips && defined _ABIN32)
 
121
#if !defined _NO_LONGLONG
 
122
typedef long int64_t;
 
123
typedef unsigned long uint64_t;
 
124
#endif
 
125
  /* compiler/cpu type to define int64_t */
 
126
#endif
 
127
#endif
 
128
#endif
 
129
 
 
130
#if defined _STDINT_HAVE_U_INT_TYPES
 
131
/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
 
132
typedef u_int8_t uint8_t;
 
133
typedef u_int16_t uint16_t;
 
134
typedef u_int32_t uint32_t;
 
135
 
 
136
/* glibc compatibility */
 
137
#ifndef __int8_t_defined
 
138
#define __int8_t_defined
 
139
#endif
 
140
#endif
 
141
 
 
142
#ifdef _STDINT_NEED_INT_MODEL_T
 
143
/* we must guess all the basic types. Apart from byte-adressable system, */
 
144
/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
 
145
/* (btw, those nibble-addressable systems are way off, or so we assume) */
 
146
 
 
147
 
 
148
#if defined _STDINT_BYTE_MODEL
 
149
#if _STDINT_LONG_MODEL+0 == 242
 
150
/* 2:4:2 =  IP16 = a normal 16-bit system                */
 
151
typedef unsigned char   uint8_t;
 
152
typedef unsigned short  uint16_t;
 
153
typedef unsigned long   uint32_t;
 
154
#ifndef __int8_t_defined
 
155
#define __int8_t_defined
 
156
typedef          char    int8_t;
 
157
typedef          short   int16_t;
 
158
typedef          long    int32_t;
 
159
#endif
 
160
#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
 
161
/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
 
162
/* 4:4:4 = ILP32 = a normal 32-bit system                */
 
163
typedef unsigned char   uint8_t;
 
164
typedef unsigned short  uint16_t;
 
165
typedef unsigned int    uint32_t;
 
166
#ifndef __int8_t_defined
 
167
#define __int8_t_defined
 
168
typedef          char    int8_t;
 
169
typedef          short   int16_t;
 
170
typedef          int     int32_t;
 
171
#endif
 
172
#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
 
173
/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
 
174
/* 4:8:8 =  LP64 = a normal 64-bit system                 */
 
175
typedef unsigned char   uint8_t;
 
176
typedef unsigned short  uint16_t;
 
177
typedef unsigned int    uint32_t;
 
178
#ifndef __int8_t_defined
 
179
#define __int8_t_defined
 
180
typedef          char    int8_t;
 
181
typedef          short   int16_t;
 
182
typedef          int     int32_t;
 
183
#endif
 
184
/* this system has a "long" of 64bit */
 
185
#ifndef _HAVE_UINT64_T
 
186
#define _HAVE_UINT64_T
 
187
typedef unsigned long   uint64_t;
 
188
typedef          long    int64_t;
 
189
#endif
 
190
#elif _STDINT_LONG_MODEL+0 == 448
 
191
/*      LLP64   a 64-bit system derived from a 32-bit system */
 
192
typedef unsigned char   uint8_t;
 
193
typedef unsigned short  uint16_t;
 
194
typedef unsigned int    uint32_t;
 
195
#ifndef __int8_t_defined
 
196
#define __int8_t_defined
 
197
typedef          char    int8_t;
 
198
typedef          short   int16_t;
 
199
typedef          int     int32_t;
 
200
#endif
 
201
/* assuming the system has a "long long" */
 
202
#ifndef _HAVE_UINT64_T
 
203
#define _HAVE_UINT64_T
 
204
typedef unsigned long long uint64_t;
 
205
typedef          long long  int64_t;
 
206
#endif
 
207
#else
 
208
#define _STDINT_NO_INT32_T
 
209
#endif
 
210
#else
 
211
#define _STDINT_NO_INT8_T
 
212
#define _STDINT_NO_INT32_T
 
213
#endif
 
214
#endif
 
215
 
 
216
/*
 
217
 * quote from SunOS-5.8 sys/inttypes.h:
 
218
 * Use at your own risk.  As of February 1996, the committee is squarely
 
219
 * behind the fixed sized types; the "least" and "fast" types are still being
 
220
 * discussed.  The probability that the "fast" types may be removed before
 
221
 * the standard is finalized is high enough that they are not currently
 
222
 * implemented.
 
223
 */
 
224
 
 
225
#if defined _STDINT_NEED_INT_LEAST_T
 
226
typedef  int8_t    int_least8_t;
 
227
typedef  int16_t   int_least16_t;
 
228
typedef  int32_t   int_least32_t;
 
229
#ifdef _HAVE_UINT64_T
 
230
typedef  int64_t   int_least64_t;
 
231
#endif
 
232
 
 
233
typedef uint8_t   uint_least8_t;
 
234
typedef uint16_t  uint_least16_t;
 
235
typedef uint32_t  uint_least32_t;
 
236
#ifdef _HAVE_UINT64_T
 
237
typedef uint64_t  uint_least64_t;
 
238
#endif
 
239
  /* least types */
 
240
#endif
 
241
 
 
242
#if defined _STDINT_NEED_INT_FAST_T
 
243
typedef  int8_t    int_fast8_t;
 
244
typedef  int       int_fast16_t;
 
245
typedef  int32_t   int_fast32_t;
 
246
#ifdef _HAVE_UINT64_T
 
247
typedef  int64_t   int_fast64_t;
 
248
#endif
 
249
 
 
250
typedef uint8_t   uint_fast8_t;
 
251
typedef unsigned  uint_fast16_t;
 
252
typedef uint32_t  uint_fast32_t;
 
253
#ifdef _HAVE_UINT64_T
 
254
typedef uint64_t  uint_fast64_t;
 
255
#endif
 
256
  /* fast types */
 
257
#endif
 
258
 
 
259
#ifdef _STDINT_NEED_INTMAX_T
 
260
#ifdef _HAVE_UINT64_T
 
261
typedef  int64_t       intmax_t;
 
262
typedef uint64_t      uintmax_t;
 
263
#else
 
264
typedef          long  intmax_t;
 
265
typedef unsigned long uintmax_t;
 
266
#endif
 
267
#endif
 
268
 
 
269
#ifdef _STDINT_NEED_INTPTR_T
 
270
#ifndef __intptr_t_defined
 
271
#define __intptr_t_defined
 
272
/* we encourage using "long" to store pointer values, never use "int" ! */
 
273
#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
 
274
typedef  unsinged int   uintptr_t;
 
275
typedef           int    intptr_t;
 
276
#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
 
277
typedef  unsigned long  uintptr_t;
 
278
typedef           long   intptr_t;
 
279
#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
 
280
typedef        uint64_t uintptr_t;
 
281
typedef         int64_t  intptr_t;
 
282
#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
 
283
typedef  unsigned long  uintptr_t;
 
284
typedef           long   intptr_t;
 
285
#endif
 
286
#endif
 
287
#endif
 
288
 
 
289
  /* shortcircuit*/
 
290
#endif
 
291
  /* once */
 
292
#endif
 
293
#endif