summaryrefslogtreecommitdiff
path: root/lang/icc7/files/patch-ia32::include::yvals.h
blob: b212cdf178b5a07d5d0ea180a675fe5814231e85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
--- ia32/include/yvals.h.orig	Tue Nov 26 22:50:59 2002
+++ ia32/include/yvals.h	Thu Jan  9 17:27:12 2003
@@ -3,88 +3,15 @@
 #ifndef _YVALS
 #define _YVALS
 
-#define __need___va_list
-#include <stdarg.h>
-
-#include <features.h>	/* Get glibc version __GLIBC__ and __GLIBC_MINOR__*/
-#define __GLIBC_2_2     ((__GLIBC__ > 2) || ((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 2)))
-			/* true if glibc-2.2 and older is used */
-
-#define _CPPLIB_VER	310
-
- #if defined(ia64) || defined(__ia64) || defined(__ia64__)	/* assume Itanium */
-  #define _D0		3	/* 0: big endian, 3: little endian floating-point */
-  #define _DLONG	1	/* 0: 64, 1: 80, 2: 128 long double bits */
-  #define _LBIAS	0x3ffe	/* 80/128 long double bits */
-  #define _LOFF		15	/* 80/128 long double bits */
-/*  #define _FPP_TYPE	1 */	/* 80287/Pentium FPP */
-
- #elif defined(i386) || defined(__i386) || defined(__i386__)	/* assume PC */
-  #define _D0		3	/* 0: big endian, 3: little endian floating-point */
-  #define _DLONG	1	/* 0: 64, 1: 80, 2: 128 long double bits */
-  #define _LBIAS	0x3ffe	/* 80/128 long double bits */
-  #define _LOFF		15	/* 80/128 long double bits */
-  #define _FPP_TYPE	1	/* 80287/Pentium FPP */
-
- #elif defined(sparc) || defined (__sparc)	/* assume SPARC */
-  #define _D0		0	/* 0: big endian, 3: little endian floating-point */
-  #define _DLONG	2	/* 0: 64, 1: 80, 2: 128 long double bits */
-  #define _LBIAS	0x3ffe	/* 80/128 long double bits */
-  #define _LOFF		15	/* 80/128 long double bits */
-  #define _FPP_TYPE	2	/* SPARC FPP */
-
- #elif defined(_POWER)		/* assume PowerPC */
-  #define _D0		0	/* 0: big endian, 3: little endian floating-point */
-  #define _DLONG	0	/* 0: 64, 1: 80, 2: 128 long double bits */
-  #define _LBIAS	0x3ffe	/* 80/128 long double bits */
-  #define _LOFF		15	/* 80/128 long double bits */
-  #define _FPP_TYPE	3	/* MIPS FPP */
-
-  #define _PDT	long
-  #define _SZT	unsigned long
-
- #elif defined(__hppa)	/* assume HP PA-RISC */
-  #define _D0		0	/* 0: big endian, 3: little endian floating-point */
-  #define _DLONG	2	/* 0: 64, 1: 80, 2: 128 long double bits */
-  #define _LBIAS	0x3ffe	/* 80/128 long double bits */
-  #define _LOFF		15	/* 80/128 long double bits */
-  #define _FPP_TYPE	4	/* HP PA-RISC FPP */
-
- #else /* system detector */
-  #error /* unknown compilation environment */
- #endif /* system detector */
-
- #ifdef __linux
-  #define _LINUX_C_LIB	1	/* assume Linux-specific conventions */
- #endif /* __linux */
-
 		/* NAMING PROPERTIES */
-/* #define _STD_LINKAGE	defines C names as extern "C++" */
- #ifdef __SUNPRO_CC
-  #define _STD_USING	/* exports C names from std to global, else reversed */
- #endif /* __SUNPRO_CC */
-
-#define _USE_EXISTING_SYSTEM_NAMES	1 /* _Open => open etc. */
 #define _POSIX_C_LIB	1	/* use common Unix/Linux conventions */
-#define _SOLARIS_C_LIB	1	/* add declarations for C extensions */
-
- #if __EDG__
-  #define _HAS_STRICT_LINKAGE	1	/* extern "C" in function type */
- #else /* __EDG__ */
-  #define _HAS_STRICT_LINKAGE	0	/* extern "C" in function type */
- #endif /* __EDG__ */
 
 		/* THREAD AND LOCALE CONTROL */
  #ifndef _MULTI_THREAD
   #define _MULTI_THREAD	1	/* 0 for no locks, 1 for multithreaded library */
  #endif /* _MULTI_THREAD */
-#define _GLOBAL_LOCALE	0	/* 0 for per-thread locales, 1 for shared */
-#define _FILE_OP_LOCKS	0	/* 0 for no file atomic locks, 1 for atomic */
 
 		/* THREAD-LOCAL STORAGE */
-#define _COMPILER_TLS	0	/* 1 if compiler supports TLS directly */
-#define _TLS_QUAL	/* TLS qualifier, such as __declspec(thread), if any */
-
  #define _HAS_TRADITIONAL_IOSTREAMS	1
  #define _HAS_TRADITIONAL_ITERATORS	1
  #define _HAS_TRADITIONAL_POS_TYPE	1
@@ -131,211 +58,9 @@
 
  #define _Restrict
 
- #ifdef __cplusplus
-_STD_BEGIN
-typedef bool _Bool;
-_STD_END
- #endif /* __cplusplus */
-
-		/* VC++ COMPILER PARAMETERS */
-#define _CRTIMP
-#define _CDECL
-
-#define _LONGLONG	long long
-#define _ULONGLONG	unsigned long long
-#define _LLONG_MAX	0x7fffffffffffffffLL
-#define _ULLONG_MAX	0xffffffffffffffffULL
-
-_C_STD_BEGIN
-		/* errno PROPERTIES */
-#define _EDOM	33
-#define _ERANGE	34
-#define _EFPOS	152
-#define _EILSEQ	99
-#define _ERRMAX	152
-
-		/* FLOATING-POINT PROPERTIES */
-#define _DBIAS	0x3fe	/* IEEE format double and float */
-#define _DOFF	4
-#define _FBIAS	0x7e
-#define _FOFF	7
-#define _FRND	1
-
-		/* INTEGER PROPERTIES */
-#define _BITS_BYTE	8
-#define _C2			1	/* 0 if not 2's complement */
-#define _CSIGN		1	/* 0 if char is not signed */
-#define _MBMAX		8	/* MB_LEN_MAX */
-
-#define _MAX_EXP_DIG	8	/* for parsing numerics */
-#define _MAX_INT_DIG	32
-#define _MAX_SIG_DIG	36
-
- #ifdef _LONGLONG
-typedef _LONGLONG _Longlong;
-typedef _ULONGLONG _ULonglong;
- #else /* _LONGLONG */
-typedef long _Longlong;
-typedef unsigned long _ULonglong;
-#ifndef _M_IA64
- #define _LLONG_MAX	0x7fffffffL
- #define _ULLONG_MAX	0xffffffffUL
-#else
- #define _LLONG_MAX	0x7fffffffffffffffLL
- #define _ULLONG_MAX	0xffffffffffffffffULL
-#endif
- #endif /* _LONGLONG */
-
- #ifdef __CYGWIN__
-  #define _WCMAX	0x7fff
-  #ifdef __cplusplus
-    #ifdef _HAS_WCHAR_TYPE
-      #define _WCHART
-typedef wchar_t _Wchart;
-typedef wchar_t _Wintt;
-    #else /* _HAS_WCHAR_TYPE */
-typedef short _Wchart;
-typedef short _Wintt;
-    #endif /* _HAS_WCHAR_TYPE */
-  #else /* __cplusplus */
-typedef short _Wchart;
-typedef short _Wintt;
-  #endif /* __cplusplus */
-
- #else /* __CYGWIN__ */
-  #define _WCMAX	0x7fffffff
-  #ifdef __cplusplus
-    #ifdef _HAS_WCHAR_TYPE
-      #define _WCHART
-typedef wchar_t _Wchart;
-typedef wchar_t _Wintt;
-    #else /* _HAS_WCHAR_TYPE */
-typedef __WCHAR_TYPE__ _Wchart;
-typedef int _Wintt;
-    #endif /* _HAS_WCHAR_TYPE */
-  #else /* __cplusplus */
-typedef __WCHAR_TYPE__ _Wchart;
-typedef int _Wintt;
-  #endif /* __cplusplus */
- #endif /* __CYGWIN__ */
-
-#define _WCMIN		0
-#define _ILONG		1	/* 0 if 16-bit int */
-
-		/* POINTER PROPERTIES */
-#define _NULL		0L	/* 0L if pointer same as long */
-
- #ifdef _PDT
-typedef _PDT _Ptrdifft;
- #else /* _PDT */
-typedef __PTRDIFF_TYPE__ _Ptrdifft;
- #endif /* _PDT */
-
- #ifdef _SZT
-typedef _SZT _Sizet;
- #else /* _SZT */
-typedef __SIZE_TYPE__	 _Sizet;
- #endif /* _SZT */
-
-		/* signal PROPERTIES */
-#define _SIGABRT	6
-#define _SIGMAX		44
-
-		/* stdarg PROPERTIES */
-typedef va_list _Va_list;
- #if __EDG__
-  #undef va_copy
- #endif /* __EDG__ */
-#ifndef va_copy
- #define va_copy(dest, src)	((dest) = (src))
-#endif /* va_copy */
-
-		/* stdlib PROPERTIES */
-#define _EXFAIL	1	/* EXIT_FAILURE */
-
-_EXTERN_C
-void _Atexit(void (*)(void));
-_END_EXTERN_C
-
-typedef struct _Mbstatet
-	{	/* state of a multibyte translation */
-	unsigned long _Wchar;
-	unsigned short _Byte, _State;
-	} _Mbstatet;
-
-		/* stdio PROPERTIES */
-#define _FNAMAX	64
-#define _FOPMAX	16
-#define _TNAMAX	16
-
-#define _Filet FILE
-
-typedef struct _Fpost
-	{	/* file position */
-	long _Off;	/* can be system dependent */
-	_Mbstatet _Wstate;
-	} _Fpost;
-
-#ifndef _FPOSOFF
- #ifdef __sun
-  #define _FPOSOFF(fp)	((long)(fp))
- #else /* __sun */
-  #if __GLIBC_2_2
-   #define _FPOSOFF(fp)	((long)(fp.__pos))
-  #else
-   #define _FPOSOFF(fp)	((long)(fp))
-  #endif
- #endif /* __sun */
-#endif
-
-#define _FD_VALID(fd)	(0 <= (fd))	/* fd is signed integer */
-#define _FD_INVALID		(-1)
-
-		/* STORAGE ALIGNMENT PROPERTIES */
-#define _MEMBND	3U /* eight-byte boundaries (2^^3) */
-
-		/* time PROPERTIES */
-#define _TBIAS	((70 * 365LU + 17) * 86400)
-_C_STD_END
-
-		/* MULTITHREAD PROPERTIES */
- #if _MULTI_THREAD
-_EXTERN_C
-void _Locksyslock(unsigned int);
-void _Unlocksyslock(unsigned int);
-_END_EXTERN_C
-
- #else /* _MULTI_THREAD */
-  #define _Locksyslock(x)	(void)0
-  #define _Unlocksyslock(x)	(void)0
- #endif /* _MULTI_THREAD */
-
-		/* LOCK MACROS */
- #define _LOCK_LOCALE	0
- #define _LOCK_MALLOC	1
- #define _LOCK_STREAM	2
- #define _MAX_LOCK		3	/* one more than highest lock number */
-
-
-
 		/* MISCELLANEOUS MACROS */
-#define _ATEXIT_T	void
-#define _Mbstinit(x)	mbstate_t x = {0, 0}
-
-#define _MAX	(max)
-#define _MIN	(min)
-
 #define _TEMPLATE_STAT
 
- #ifdef __SUNPRO_CC
-  #define __EDG__	1	/* close enough for Sun compiler, hereafter */
- #endif /* __SUNPRO_CC */
-
- #if __EDG__
-  #define _NO_RETURN
- #else /* __EDG__ */
-  #define _NO_RETURN	__attribute__((__noreturn__))
- #endif /* __EDG__ */
 #endif /* _YVALS */
 
 /*