]>
Commit | Line | Data |
---|---|---|
d45e22c2 | 1 | /* -*- buffer-read-only: t -*- vi: set ro: |
0249b7a3 | 2 | * |
122d538c | 3 | * DO NOT EDIT THIS FILE (fixincl.x) |
0249b7a3 | 4 | * |
3c017b47 | 5 | * It has been AutoGen-ed January 12, 2017 at 11:46:34 AM by AutoGen 5.16.2 |
122d538c | 6 | * From the definitions inclhack.def |
7 | * and the template file fixincl | |
d45e22c2 | 8 | */ |
3c017b47 | 9 | /* DO NOT SVN-MERGE THIS FILE, EITHER Thu Jan 12 11:46:34 2017 |
d45e22c2 | 10 | * |
11 | * You must regenerate it. Use the ./genfixes script. | |
fdb8fb96 | 12 | * |
d45e22c2 | 13 | * |
14 | * This is part of the fixincl program used to install modified versions of | |
15 | * certain ANSI-incompatible system header files which are fixed to work | |
16 | * correctly with ANSI C and placed in a directory that GNU C will search. | |
fdb8fb96 | 17 | * |
3c017b47 | 18 | * This file contains 246 fixup descriptions. |
fdb8fb96 | 19 | * |
49e3683c | 20 | * See README for more information. |
fdb8fb96 | 21 | * |
2d87ca1a | 22 | * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
23 | * 2006, 2007, 2008 | |
d4c4b01d | 24 | * The Free Software Foundation, Inc. |
c1b28c63 | 25 | * |
2d87ca1a | 26 | * inclhack is free software: you can redistribute it and/or modify it |
6af9f7ea | 27 | * under the terms of the GNU General Public License as published by the |
28 | * Free Software Foundation, either version 3 of the License, or | |
29 | * (at your option) any later version. | |
fdb8fb96 | 30 | * |
6af9f7ea | 31 | * inclhack is distributed in the hope that it will be useful, but |
32 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
fdb8fb96 | 33 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
34 | * See the GNU General Public License for more details. | |
35 | * | |
6af9f7ea | 36 | * You should have received a copy of the GNU General Public License along |
37 | * with this program. If not, see <http://www.gnu.org/licenses/>. | |
3d906fac | 38 | */ |
b32d497c | 39 | #ifndef SED_PROGRAM |
40 | #define SED_PROGRAM "/usr/bin/sed" | |
41 | #endif | |
42 | static char const sed_cmd_z[] = SED_PROGRAM; | |
3d906fac | 43 | |
44 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
45 | * | |
46 | * Description of Aab_Aix_Stdio fix | |
47 | */ | |
48 | tSCC zAab_Aix_StdioName[] = | |
49 | "AAB_aix_stdio"; | |
50 | ||
51 | /* | |
52 | * File name selection pattern | |
53 | */ | |
54 | tSCC zAab_Aix_StdioList[] = | |
55 | "stdio.h\0"; | |
56 | /* | |
57 | * Machine/OS name selection pattern | |
58 | */ | |
59 | tSCC* apzAab_Aix_StdioMachs[] = { | |
60 | "*-*-aix*", | |
61 | (const char*)NULL }; | |
62 | ||
63 | /* | |
64 | * content selection pattern - do fix if pattern found | |
d4c4b01d | 65 | */ |
3d906fac | 66 | tSCC zAab_Aix_StdioSelect0[] = |
67 | "define fopen fopen64"; | |
68 | ||
69 | #define AAB_AIX_STDIO_TEST_CT 1 | |
70 | static tTestDesc aAab_Aix_StdioTests[] = { | |
71 | { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, }; | |
72 | ||
73 | /* | |
74 | * Fix Command Arguments for Aab_Aix_Stdio | |
75 | */ | |
76 | static const char* apzAab_Aix_StdioPatch[] = { | |
77 | "wrap", | |
78 | "", | |
79 | "\n\ | |
80 | #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\ | |
81 | #define __need__aix_stdio_h_fix\n\ | |
82 | #ifdef __need__aix_stdio_h_fix\n\ | |
83 | #undef fseeko\n\ | |
84 | #undef ftello\n\ | |
85 | #undef fgetpos\n\ | |
86 | #undef fsetpos\n\ | |
87 | #undef fopen\n\ | |
88 | #undef freopen\n\ | |
89 | /* Alias the symbols using asm */\n\ | |
90 | extern \"C\" {\n\ | |
91 | extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\ | |
92 | extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\ | |
93 | extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\ | |
94 | extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\ | |
95 | extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\ | |
96 | extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\ | |
97 | }\n\ | |
98 | #endif\n\ | |
99 | #endif\n", | |
100 | (char*)NULL }; | |
d4c4b01d | 101 | |
81911845 | 102 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
103 | * | |
104 | * Description of Aab_Aix_Fcntl fix | |
105 | */ | |
106 | tSCC zAab_Aix_FcntlName[] = | |
107 | "AAB_aix_fcntl"; | |
108 | ||
109 | /* | |
110 | * File name selection pattern | |
111 | */ | |
112 | tSCC zAab_Aix_FcntlList[] = | |
113 | "fcntl.h\0"; | |
114 | /* | |
115 | * Machine/OS name selection pattern | |
116 | */ | |
117 | tSCC* apzAab_Aix_FcntlMachs[] = { | |
118 | "*-*-aix*", | |
119 | (const char*)NULL }; | |
120 | ||
121 | /* | |
122 | * content selection pattern - do fix if pattern found | |
123 | */ | |
124 | tSCC zAab_Aix_FcntlSelect0[] = | |
125 | "define open[ \t]open64"; | |
126 | ||
127 | #define AAB_AIX_FCNTL_TEST_CT 1 | |
128 | static tTestDesc aAab_Aix_FcntlTests[] = { | |
129 | { TT_EGREP, zAab_Aix_FcntlSelect0, (regex_t*)NULL }, }; | |
130 | ||
131 | /* | |
132 | * Fix Command Arguments for Aab_Aix_Fcntl | |
133 | */ | |
134 | static const char* apzAab_Aix_FcntlPatch[] = { | |
135 | "wrap", | |
136 | "", | |
137 | "\n\ | |
138 | #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\ | |
139 | #define __need__aix_fcntl_h_fix\n\ | |
140 | #ifdef __need__aix_fcntl_h_fix\n\ | |
141 | #undef open\n\ | |
142 | #undef creat\n\ | |
143 | #undef openat\n\ | |
144 | /* Alias the symbols using asm */\n\ | |
145 | extern \"C\" {\n\ | |
146 | extern int open(const char *, int, ...) __asm__(\"open64\");\n\ | |
147 | extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\ | |
148 | #if (_XOPEN_SOURCE >= 700)\n\ | |
149 | extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\ | |
150 | #endif\n\ | |
151 | }\n\ | |
152 | #endif\n\ | |
153 | #endif\n", | |
154 | (char*)NULL }; | |
155 | ||
f2563b02 | 156 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
157 | * | |
158 | * Description of Aab_Darwin7_9_Long_Double_Funcs fix | |
159 | */ | |
160 | tSCC zAab_Darwin7_9_Long_Double_FuncsName[] = | |
161 | "AAB_darwin7_9_long_double_funcs"; | |
162 | ||
163 | /* | |
164 | * File name selection pattern | |
165 | */ | |
166 | tSCC zAab_Darwin7_9_Long_Double_FuncsList[] = | |
e9afa104 | 167 | "architecture/ppc/math.h\0"; |
f2563b02 | 168 | /* |
169 | * Machine/OS name selection pattern | |
170 | */ | |
171 | tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = { | |
172 | "*-*-darwin7.9*", | |
173 | (const char*)NULL }; | |
174 | ||
175 | /* | |
176 | * content bypass pattern - skip fix if pattern found | |
177 | */ | |
178 | tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] = | |
179 | "powl"; | |
180 | ||
181 | #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1 | |
182 | static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = { | |
183 | { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, }; | |
184 | ||
185 | /* | |
186 | * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs | |
187 | */ | |
188 | static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = { | |
189 | "/* This file prototypes the long double functions available on Mac OS\n\ | |
190 | 10.3.9. */\n\ | |
191 | #ifndef __MATH__\n\ | |
baee91be | 192 | # undef __APPLE_CC__\n\ |
193 | # define __APPLE_CC__ 1345\n\ | |
f2563b02 | 194 | # include_next <architecture/ppc/math.h>\n\ |
baee91be | 195 | # undef __APPLE_CC__\n\ |
196 | # define __APPLE_CC__ 1\n\ | |
f2563b02 | 197 | # ifndef __LIBMLDBL_COMPAT\n\ |
198 | # ifdef __LONG_DOUBLE_128__\n\ | |
199 | # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\ | |
200 | # else\n\ | |
201 | # define __LIBMLDBL_COMPAT(sym)\n\ | |
202 | # endif /* __LONG_DOUBLE_128__ */\n\ | |
203 | # endif /* __LIBMLDBL_COMPAT */\n\ | |
204 | # ifdef __cplusplus\n\ | |
205 | extern \"C\" {\n\ | |
206 | # endif\n\ | |
207 | extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\ | |
208 | extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\ | |
209 | extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\ | |
210 | extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\ | |
211 | extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\ | |
212 | extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\ | |
213 | extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\ | |
214 | extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\ | |
215 | extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\ | |
216 | extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\ | |
217 | extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\ | |
218 | extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\ | |
219 | extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\ | |
220 | extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\ | |
221 | extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\ | |
222 | extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\ | |
223 | extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\ | |
224 | extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\ | |
225 | extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\ | |
226 | extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\ | |
227 | extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\ | |
228 | extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\ | |
229 | extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\ | |
230 | extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\ | |
231 | extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\ | |
232 | extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\ | |
233 | extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\ | |
234 | extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\ | |
235 | extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\ | |
236 | extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\ | |
237 | extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\ | |
238 | extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\ | |
239 | extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\ | |
240 | extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\ | |
241 | extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\ | |
242 | extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\ | |
243 | extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\ | |
244 | extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\ | |
245 | extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\ | |
246 | extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\ | |
247 | extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\ | |
248 | extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\ | |
249 | extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\ | |
250 | extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\ | |
251 | extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\ | |
252 | extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\ | |
253 | extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\ | |
254 | extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\ | |
255 | extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\ | |
256 | extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\ | |
257 | extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\ | |
258 | extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\ | |
259 | extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\ | |
260 | extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\ | |
261 | extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\ | |
262 | extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\ | |
263 | extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\ | |
264 | # ifdef __cplusplus\n\ | |
265 | }\n\ | |
266 | # endif\n\ | |
267 | #endif /* __MATH__ */", | |
268 | (char*)NULL }; | |
269 | ||
e26c299a | 270 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
271 | * | |
bb304030 | 272 | * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix |
e26c299a | 273 | */ |
bb304030 | 274 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] = |
d4c4b01d | 275 | "AAB_fd_zero_asm_posix_types_h"; |
276 | ||
e26c299a | 277 | /* |
278 | * File name selection pattern | |
279 | */ | |
bb304030 | 280 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] = |
e9afa104 | 281 | "asm/posix_types.h\0"; |
e26c299a | 282 | /* |
283 | * Machine/OS name selection pattern | |
284 | */ | |
bb304030 | 285 | tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = { |
e800dd2f | 286 | "i[34567]86-*-linux*", |
90c7fd7a | 287 | (const char*)NULL }; |
e26c299a | 288 | |
289 | /* | |
bb304030 | 290 | * content bypass pattern - skip fix if pattern found |
e26c299a | 291 | */ |
bb304030 | 292 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = |
293 | "} while"; | |
54bb64fb | 294 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] = |
295 | "x86_64"; | |
8f4ca8fb | 296 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] = |
297 | "posix_types_64"; | |
bb304030 | 298 | |
8f4ca8fb | 299 | #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3 |
2548396b | 300 | static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { |
54bb64fb | 301 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, |
8f4ca8fb | 302 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, |
303 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, }; | |
bb304030 | 304 | |
305 | /* | |
306 | * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H | |
307 | */ | |
2548396b | 308 | static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = { |
bb304030 | 309 | "/* This file fixes a bug in the __FD_ZERO macro\n\ |
310 | for older versions of the Linux kernel. */\n\ | |
e26c299a | 311 | #ifndef _POSIX_TYPES_H_WRAPPER\n\ |
312 | #include <features.h>\n\ | |
5c0b86e6 | 313 | #include_next <asm/posix_types.h>\n\n\ |
e26c299a | 314 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
315 | #undef __FD_ZERO\n\ | |
bb304030 | 316 | #define __FD_ZERO(fdsetp) \\\n\ |
317 | do { \\\n\ | |
318 | int __d0, __d1; \\\n\ | |
68d0517a | 319 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ |
320 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
321 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
322 | \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
bb304030 | 323 | } while (0)\n\ |
5c0b86e6 | 324 | #endif\n\n\ |
e26c299a | 325 | #define _POSIX_TYPES_H_WRAPPER\n\ |
68d0517a | 326 | #endif /* _POSIX_TYPES_H_WRAPPER */", |
e26c299a | 327 | (char*)NULL }; |
328 | ||
329 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
330 | * | |
bb304030 | 331 | * Description of Aab_Fd_Zero_Gnu_Types_H fix |
e26c299a | 332 | */ |
bb304030 | 333 | tSCC zAab_Fd_Zero_Gnu_Types_HName[] = |
d4c4b01d | 334 | "AAB_fd_zero_gnu_types_h"; |
335 | ||
e26c299a | 336 | /* |
337 | * File name selection pattern | |
338 | */ | |
bb304030 | 339 | tSCC zAab_Fd_Zero_Gnu_Types_HList[] = |
e9afa104 | 340 | "gnu/types.h\0"; |
e26c299a | 341 | /* |
342 | * Machine/OS name selection pattern | |
343 | */ | |
bb304030 | 344 | tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = { |
e800dd2f | 345 | "i[34567]86-*-linux*", |
90c7fd7a | 346 | (const char*)NULL }; |
bb304030 | 347 | #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0 |
bb304030 | 348 | #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL |
e26c299a | 349 | |
350 | /* | |
bb304030 | 351 | * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H |
e26c299a | 352 | */ |
2548396b | 353 | static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = { |
bb304030 | 354 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\ |
e26c299a | 355 | #ifndef _TYPES_H_WRAPPER\n\ |
356 | #include <features.h>\n\ | |
2b5c5c15 | 357 | #include_next <gnu/types.h>\n\n\ |
e26c299a | 358 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
359 | #undef __FD_ZERO\n\ | |
9b20d84f | 360 | # define __FD_ZERO(fdsetp) \\\n\ |
361 | do { \\\n\ | |
362 | int __d0, __d1; \\\n\ | |
363 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ | |
364 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
365 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
366 | \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
bb304030 | 367 | } while (0)\n\ |
5c0b86e6 | 368 | #endif\n\n\ |
e26c299a | 369 | #define _TYPES_H_WRAPPER\n\ |
2b5c5c15 | 370 | #endif /* _TYPES_H_WRAPPER */", |
e26c299a | 371 | (char*)NULL }; |
372 | ||
373 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
374 | * | |
bb304030 | 375 | * Description of Aab_Fd_Zero_Selectbits_H fix |
e26c299a | 376 | */ |
bb304030 | 377 | tSCC zAab_Fd_Zero_Selectbits_HName[] = |
d4c4b01d | 378 | "AAB_fd_zero_selectbits_h"; |
379 | ||
e26c299a | 380 | /* |
381 | * File name selection pattern | |
382 | */ | |
bb304030 | 383 | tSCC zAab_Fd_Zero_Selectbits_HList[] = |
e9afa104 | 384 | "selectbits.h\0"; |
e26c299a | 385 | /* |
386 | * Machine/OS name selection pattern | |
387 | */ | |
bb304030 | 388 | tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = { |
e800dd2f | 389 | "i[34567]86-*-linux*", |
90c7fd7a | 390 | (const char*)NULL }; |
bb304030 | 391 | #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0 |
bb304030 | 392 | #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL |
e26c299a | 393 | |
394 | /* | |
bb304030 | 395 | * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H |
e26c299a | 396 | */ |
2548396b | 397 | static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = { |
bb304030 | 398 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\ |
e26c299a | 399 | #ifndef _SELECTBITS_H_WRAPPER\n\ |
2b5c5c15 | 400 | #include <features.h>\n\ |
401 | #include_next <selectbits.h>\n\n\ | |
402 | #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\ | |
403 | && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\ | |
404 | && __GLIBC_MINOR__ == 0\n\ | |
405 | #undef __FD_ZERO\n\ | |
406 | #define __FD_ZERO(fdsetp) \\\\\n\ | |
407 | do { \\\\\n\ | |
408 | int __d0, __d1; \\\\\n\ | |
409 | __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\ | |
410 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\ | |
411 | : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\ | |
412 | / sizeof (__fd_mask)), \\\\\n\ | |
413 | \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\ | |
414 | : \"memory\"); \\\\\n\ | |
415 | } while (0)\n\ | |
416 | #endif\n\n\ | |
417 | #define _SELECTBITS_H_WRAPPER\n\ | |
418 | #endif /* _SELECTBITS_H_WRAPPER */", | |
e26c299a | 419 | (char*)NULL }; |
420 | ||
b93c3ed1 | 421 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
422 | * | |
423 | * Description of Aab_Solaris_Sys_Varargs_H fix | |
424 | */ | |
425 | tSCC zAab_Solaris_Sys_Varargs_HName[] = | |
426 | "AAB_solaris_sys_varargs_h"; | |
427 | ||
428 | /* | |
429 | * File name selection pattern | |
430 | */ | |
431 | tSCC zAab_Solaris_Sys_Varargs_HList[] = | |
e9afa104 | 432 | "sys/varargs.h\0"; |
b93c3ed1 | 433 | /* |
434 | * Machine/OS name selection pattern | |
435 | */ | |
436 | tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = { | |
437 | "*-*-solaris*", | |
438 | (const char*)NULL }; | |
439 | #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0 | |
440 | #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL | |
441 | ||
442 | /* | |
443 | * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H | |
444 | */ | |
445 | static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = { | |
446 | "#ifdef __STDC__\n\ | |
2b5c5c15 | 447 | #include <stdarg.h>\n\ |
b93c3ed1 | 448 | #else\n\ |
2b5c5c15 | 449 | #include <varargs.h>\n\ |
450 | #endif", | |
b93c3ed1 | 451 | (char*)NULL }; |
452 | ||
d6d7d999 | 453 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
454 | * | |
455 | * Description of Aab_Sun_Memcpy fix | |
456 | */ | |
d6d7d999 | 457 | tSCC zAab_Sun_MemcpyName[] = |
d4c4b01d | 458 | "AAB_sun_memcpy"; |
459 | ||
d6d7d999 | 460 | /* |
461 | * File name selection pattern | |
462 | */ | |
463 | tSCC zAab_Sun_MemcpyList[] = | |
e9afa104 | 464 | "memory.h\0"; |
d6d7d999 | 465 | /* |
466 | * Machine/OS name selection pattern | |
467 | */ | |
468 | #define apzAab_Sun_MemcpyMachs (const char**)NULL | |
469 | ||
470 | /* | |
471 | * content selection pattern - do fix if pattern found | |
472 | */ | |
473 | tSCC zAab_Sun_MemcpySelect0[] = | |
474 | "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/"; | |
475 | ||
476 | #define AAB_SUN_MEMCPY_TEST_CT 1 | |
2548396b | 477 | static tTestDesc aAab_Sun_MemcpyTests[] = { |
d6d7d999 | 478 | { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, }; |
479 | ||
480 | /* | |
481 | * Fix Command Arguments for Aab_Sun_Memcpy | |
482 | */ | |
2548396b | 483 | static const char* apzAab_Sun_MemcpyPatch[] = { |
d6d7d999 | 484 | "/* This file was generated by fixincludes */\n\ |
485 | #ifndef __memory_h__\n\ | |
2b5c5c15 | 486 | #define __memory_h__\n\n\ |
487 | #ifdef __STDC__\n\ | |
488 | extern void *memccpy();\n\ | |
489 | extern void *memchr();\n\ | |
490 | extern void *memcpy();\n\ | |
491 | extern void *memset();\n\ | |
492 | #else\n\ | |
493 | extern char *memccpy();\n\ | |
494 | extern char *memchr();\n\ | |
495 | extern char *memcpy();\n\ | |
496 | extern char *memset();\n\ | |
497 | #endif /* __STDC__ */\n\n\ | |
498 | extern int memcmp();\n\n\ | |
3452f1c7 | 499 | #endif /* __memory_h__ */", |
57829215 | 500 | (char*)NULL }; |
501 | ||
32f37500 | 502 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
503 | * | |
504 | * Description of Aab_Vxworks_Assert fix | |
505 | */ | |
506 | tSCC zAab_Vxworks_AssertName[] = | |
507 | "AAB_vxworks_assert"; | |
508 | ||
509 | /* | |
510 | * File name selection pattern | |
511 | */ | |
512 | tSCC zAab_Vxworks_AssertList[] = | |
513 | "assert.h\0"; | |
514 | /* | |
515 | * Machine/OS name selection pattern | |
516 | */ | |
517 | tSCC* apzAab_Vxworks_AssertMachs[] = { | |
518 | "*-*-vxworks*", | |
519 | (const char*)NULL }; | |
520 | #define AAB_VXWORKS_ASSERT_TEST_CT 0 | |
521 | #define aAab_Vxworks_AssertTests (tTestDesc*)NULL | |
522 | ||
523 | /* | |
524 | * Fix Command Arguments for Aab_Vxworks_Assert | |
525 | */ | |
526 | static const char* apzAab_Vxworks_AssertPatch[] = { | |
527 | "#ifndef _ASSERT_H\n\ | |
528 | #define _ASSERT_H\n\n\ | |
529 | #ifdef assert\n\ | |
530 | #undef assert\n\ | |
531 | #endif\n\n\ | |
532 | #if defined(__STDC__) || defined(__cplusplus)\n\ | |
533 | extern void __assert (const char*);\n\ | |
534 | #else\n\ | |
535 | extern void __assert ();\n\ | |
536 | #endif\n\n\ | |
537 | #ifdef NDEBUG\n\ | |
538 | #define assert(ign) ((void)0)\n\ | |
539 | #else\n\n\ | |
540 | #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\ | |
541 | #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\ | |
542 | #define assert(test) ((void) \\\n\ | |
543 | ((test) ? ((void)0) : \\\n\ | |
544 | __assert(\"Assertion failed: \" ASSERT_STRINGIFY(test) \", file \" \\\n\ | |
545 | __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\ | |
546 | #endif\n\n\ | |
547 | #endif", | |
548 | (char*)NULL }; | |
549 | ||
550 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
551 | * | |
552 | * Description of Aab_Vxworks_Regs_Vxtypes fix | |
553 | */ | |
554 | tSCC zAab_Vxworks_Regs_VxtypesName[] = | |
555 | "AAB_vxworks_regs_vxtypes"; | |
556 | ||
557 | /* | |
558 | * File name selection pattern | |
559 | */ | |
560 | tSCC zAab_Vxworks_Regs_VxtypesList[] = | |
561 | "regs.h\0"; | |
562 | /* | |
563 | * Machine/OS name selection pattern | |
564 | */ | |
565 | tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = { | |
566 | "*-*-vxworks*", | |
567 | (const char*)NULL }; | |
568 | #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT 0 | |
569 | #define aAab_Vxworks_Regs_VxtypesTests (tTestDesc*)NULL | |
570 | ||
571 | /* | |
572 | * Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes | |
573 | */ | |
574 | static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = { | |
575 | "#ifndef _REGS_H\n\ | |
576 | #define _REGS_H\n\ | |
577 | #include <types/vxTypesOld.h>\n\ | |
578 | #include_next <arch/../regs.h>\n\ | |
579 | #endif", | |
580 | (char*)NULL }; | |
581 | ||
582 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
583 | * | |
584 | * Description of Aab_Vxworks_Stdint fix | |
585 | */ | |
586 | tSCC zAab_Vxworks_StdintName[] = | |
587 | "AAB_vxworks_stdint"; | |
588 | ||
589 | /* | |
590 | * File name selection pattern | |
591 | */ | |
592 | tSCC zAab_Vxworks_StdintList[] = | |
593 | "stdint.h\0"; | |
594 | /* | |
595 | * Machine/OS name selection pattern | |
596 | */ | |
597 | tSCC* apzAab_Vxworks_StdintMachs[] = { | |
598 | "*-*-vxworks*", | |
599 | (const char*)NULL }; | |
600 | #define AAB_VXWORKS_STDINT_TEST_CT 0 | |
601 | #define aAab_Vxworks_StdintTests (tTestDesc*)NULL | |
602 | ||
603 | /* | |
604 | * Fix Command Arguments for Aab_Vxworks_Stdint | |
605 | */ | |
606 | static const char* apzAab_Vxworks_StdintPatch[] = { | |
607 | "#ifndef _STDINT_H\n\ | |
608 | #define _STDINT_H\n\ | |
609 | /* get int*_t, uint*_t */\n\ | |
610 | #include <types/vxTypes.h>\n\n\ | |
611 | /* get legacy vxworks types for compatibility */\n\ | |
612 | #include <types/vxTypesOld.h>\n\n\ | |
613 | typedef long intptr_t;\n\ | |
614 | typedef unsigned long uintptr_t;\n\n\ | |
615 | typedef int64_t intmax_t;\n\ | |
616 | typedef uint64_t uintmax_t;\n\n\ | |
617 | typedef int8_t int_least8_t;\n\ | |
618 | typedef int16_t int_least16_t;\n\ | |
619 | typedef int32_t int_least32_t;\n\ | |
620 | typedef int64_t int_least64_t;\n\n\ | |
621 | typedef uint8_t uint_least8_t;\n\ | |
622 | typedef uint16_t uint_least16_t;\n\ | |
623 | typedef uint32_t uint_least32_t;\n\ | |
624 | typedef uint64_t uint_least64_t;\n\n\ | |
625 | typedef int8_t int_fast8_t;\n\ | |
626 | typedef int int_fast16_t;\n\ | |
627 | typedef int32_t int_fast32_t;\n\ | |
628 | typedef int64_t int_fast64_t;\n\n\ | |
629 | typedef uint8_t uint_fast8_t;\n\ | |
630 | typedef unsigned int uint_fast16_t;\n\ | |
631 | typedef uint32_t uint_fast32_t;\n\ | |
632 | typedef uint64_t uint_fast64_t;\n\n\ | |
633 | /* Ranges */\n\ | |
634 | #define UINT8_MAX (~(uint8_t)0)\n\ | |
635 | #define UINT8_MIN 0\n\ | |
636 | #define UINT16_MAX (~(uint16_t)0)\n\ | |
637 | #define UINT16_MIN 0\n\ | |
638 | #define UINT32_MAX (~(uint32_t)0)\n\ | |
639 | #define UINT32_MIN 0\n\ | |
640 | #define UINT64_MAX (~(uint64_t)0)\n\ | |
641 | #define UINT64_MIN 0\n\n\ | |
642 | #define UINTPTR_MAX (~(uintptr_t)0)\n\ | |
643 | #define UINTPTR_MIN 0\n\n\ | |
644 | /* Need to do int_fast16_t as well, as type\n\ | |
645 | size may be architecture dependent */\n\ | |
646 | #define UINT_FAST16_MAX (~(uint_fast16_t)0)\n\ | |
647 | #define UINT_FAST16_MAX 0\n\n\ | |
648 | #define INT8_MAX (UINT8_MAX>>1)\n\ | |
649 | #define INT8_MIN (INT8_MAX+1)\n\ | |
650 | #define INT16_MAX (UINT16_MAX>>1)\n\ | |
651 | #define INT16_MIN (INT16_MAX+1)\n\ | |
652 | #define INT32_MAX (UINT32_MAX>>1)\n\ | |
653 | #define INT32_MIN (INT32_MAX+1)\n\ | |
654 | #define INT64_MAX (UINT64_MAX>>1)\n\ | |
655 | #define INT64_MIN (INT64_MAX+1)\n\n\ | |
656 | #define INTPTR_MAX (UINTPTR_MAX>>1)\n\ | |
657 | #define INTPTR_MIN (INTPTR_MAX+1)\t\n\n\ | |
658 | #define INT_FAST16_MAX (UINT_FAST16_MAX>>1)\n\ | |
659 | #define INT_FAST16_MIN (INT_FAST16_MAX+1)\n\n\ | |
660 | /* now define equiv. constants */\n\ | |
661 | #define UINT_FAST8_MAX UINT8_MAX\n\ | |
662 | #define UINT_FAST8_MIN UINT_FAST8_MIN\n\ | |
663 | #define INT_FAST8_MAX INT8_MAX\n\ | |
664 | #define INT_FAST8_MIN INT8_MIN\n\ | |
665 | #define UINT_FAST32_MAX UINT32_MAX\n\ | |
666 | #define UINT_FAST32_MIN UINT32_MIN\n\ | |
667 | #define INT_FAST32_MAX INT32_MAX\n\ | |
668 | #define INT_FAST32_MIN INT32_MIN\n\ | |
669 | #define UINT_FAST64_MAX UINT64_MAX\n\ | |
670 | #define UINT_FAST64_MIN UINT64_MIN\n\ | |
671 | #define INT_FAST64_MAX INT64_MAX\n\ | |
672 | #define INT_FAST64_MIN INT64_MIN\n\n\ | |
673 | #define UINT_LEAST8_MAX UINT8_MAX\n\ | |
674 | #define UINT_LEAST8_MIN UINT8_MIN\n\ | |
675 | #define INT_LEAST8_MAX INT8_MAX\n\ | |
676 | #define INT_LEAST8_MIN INT8_MIN\n\ | |
677 | #define UINT_LEAST16_MAX UINT16_MAX\n\ | |
678 | #define UINT_LEAST16_MIN UINT16_MIN\n\ | |
679 | #define INT_LEAST16_MAX INT16_MAX\n\ | |
680 | #define INT_LEAST16_MIN INT16_MIN\n\ | |
681 | #define UINT_LEAST32_MAX UINT32_MAX\n\ | |
682 | #define UINT_LEAST32_MIN UINT32_MIN\n\ | |
683 | #define INT_LEAST32_MAX INT32_MAX\n\ | |
684 | #define INT_LEAST32_MIN INT32_MIN\n\ | |
685 | #define UINT_LEAST64_MAX UINT64_MAX\n\ | |
686 | #define UINT_LEAST64_MIN UINT64_MIN\n\ | |
687 | #define INT_LEAST64_MAX INT64_MAX\n\ | |
688 | #define INT_LEAST64_MIN INT64_MIN\n\n\ | |
689 | #define UINTMAX_MAX UINT64_MAX\n\ | |
690 | #define UINTMAX_MIN UINT64_MIN\n\ | |
691 | #define INTMAX_MAX INT64_MAX\n\ | |
692 | #define INTMAX_MIN INT64_MIN\n\n\ | |
693 | #endif", | |
694 | (char*)NULL }; | |
695 | ||
696 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
697 | * | |
698 | * Description of Aab_Vxworks_Unistd fix | |
699 | */ | |
700 | tSCC zAab_Vxworks_UnistdName[] = | |
701 | "AAB_vxworks_unistd"; | |
702 | ||
703 | /* | |
704 | * File name selection pattern | |
705 | */ | |
706 | tSCC zAab_Vxworks_UnistdList[] = | |
707 | "unistd.h\0"; | |
708 | /* | |
709 | * Machine/OS name selection pattern | |
710 | */ | |
711 | tSCC* apzAab_Vxworks_UnistdMachs[] = { | |
712 | "*-*-vxworks*", | |
713 | (const char*)NULL }; | |
714 | #define AAB_VXWORKS_UNISTD_TEST_CT 0 | |
715 | #define aAab_Vxworks_UnistdTests (tTestDesc*)NULL | |
716 | ||
717 | /* | |
718 | * Fix Command Arguments for Aab_Vxworks_Unistd | |
719 | */ | |
720 | static const char* apzAab_Vxworks_UnistdPatch[] = { | |
721 | "#ifndef _UNISTD_H\n\ | |
722 | #define _UNISTD_H\n\ | |
723 | #include_next <unistd.h>\n\ | |
724 | #include <ioLib.h>\n\ | |
725 | #ifndef STDIN_FILENO\n\ | |
726 | #define STDIN_FILENO 0\n\ | |
727 | #endif\n\ | |
728 | #ifndef STDOUT_FILENO\n\ | |
729 | #define STDOUT_FILENO 1\n\ | |
730 | #endif\n\ | |
731 | #ifndef STDERR_FILENO\n\ | |
732 | #define STDERR_FILENO 2\n\ | |
733 | #endif\n\ | |
734 | #endif /* _UNISTD_H */", | |
735 | (char*)NULL }; | |
736 | ||
8f1baf26 | 737 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
738 | * | |
739 | * Description of Aix_Assert fix | |
740 | */ | |
741 | tSCC zAix_AssertName[] = | |
742 | "aix_assert"; | |
743 | ||
744 | /* | |
745 | * File name selection pattern | |
746 | */ | |
747 | tSCC zAix_AssertList[] = | |
748 | "assert.h\0"; | |
749 | /* | |
750 | * Machine/OS name selection pattern | |
751 | */ | |
752 | tSCC* apzAix_AssertMachs[] = { | |
753 | "*-*-aix*", | |
754 | (const char*)NULL }; | |
755 | ||
756 | /* | |
757 | * content selection pattern - do fix if pattern found | |
758 | */ | |
759 | tSCC zAix_AssertSelect0[] = | |
760 | "#define[ \t]static_assert[ \t]_Static_assert"; | |
761 | ||
762 | #define AIX_ASSERT_TEST_CT 1 | |
763 | static tTestDesc aAix_AssertTests[] = { | |
764 | { TT_EGREP, zAix_AssertSelect0, (regex_t*)NULL }, }; | |
765 | ||
766 | /* | |
767 | * Fix Command Arguments for Aix_Assert | |
768 | */ | |
769 | static const char* apzAix_AssertPatch[] = { | |
770 | "format", | |
771 | "#ifndef __cplusplus\n\ | |
772 | %0\n\ | |
773 | #endif", | |
774 | (char*)NULL }; | |
775 | ||
253f9954 | 776 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
777 | * | |
778 | * Description of Aix_Complex fix | |
779 | */ | |
780 | tSCC zAix_ComplexName[] = | |
781 | "aix_complex"; | |
782 | ||
783 | /* | |
784 | * File name selection pattern | |
785 | */ | |
786 | tSCC zAix_ComplexList[] = | |
787 | "complex.h\0"; | |
788 | /* | |
789 | * Machine/OS name selection pattern | |
790 | */ | |
82c99fed | 791 | tSCC* apzAix_ComplexMachs[] = { |
792 | "*-*-aix*", | |
793 | (const char*)NULL }; | |
253f9954 | 794 | |
795 | /* | |
796 | * content selection pattern - do fix if pattern found | |
797 | */ | |
798 | tSCC zAix_ComplexSelect0[] = | |
82c99fed | 799 | "#define[ \t]_Complex_I[ \t]__I"; |
253f9954 | 800 | |
801 | #define AIX_COMPLEX_TEST_CT 1 | |
802 | static tTestDesc aAix_ComplexTests[] = { | |
803 | { TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, }; | |
804 | ||
805 | /* | |
806 | * Fix Command Arguments for Aix_Complex | |
807 | */ | |
82c99fed | 808 | static const char* apzAix_ComplexPatch[] = { |
809 | "format", | |
810 | "#define _Complex_I (__extension__ 1.0iF)", | |
253f9954 | 811 | (char*)NULL }; |
812 | ||
c82f076e | 813 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
814 | * | |
815 | * Description of Aix_Externc fix | |
816 | */ | |
817 | tSCC zAix_ExterncName[] = | |
818 | "aix_externc"; | |
819 | ||
820 | /* | |
821 | * File name selection pattern | |
822 | */ | |
823 | tSCC zAix_ExterncList[] = | |
824 | "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0"; | |
825 | /* | |
826 | * Machine/OS name selection pattern | |
827 | */ | |
828 | tSCC* apzAix_ExterncMachs[] = { | |
829 | "*-*-aix*", | |
830 | (const char*)NULL }; | |
831 | ||
832 | /* | |
833 | * content bypass pattern - skip fix if pattern found | |
834 | */ | |
835 | tSCC zAix_ExterncBypass0[] = | |
836 | "extern \"C\""; | |
837 | ||
838 | #define AIX_EXTERNC_TEST_CT 1 | |
839 | static tTestDesc aAix_ExterncTests[] = { | |
840 | { TT_NEGREP, zAix_ExterncBypass0, (regex_t*)NULL }, }; | |
841 | ||
842 | /* | |
843 | * Fix Command Arguments for Aix_Externc | |
844 | */ | |
845 | static const char* apzAix_ExterncPatch[] = { | |
846 | "wrap", | |
847 | "#ifdef __cplusplus\n\ | |
848 | extern \"C\" {\n\ | |
849 | #endif\n", | |
850 | "#ifdef __cplusplus\n\ | |
851 | }\n\ | |
852 | #endif\n", | |
853 | (char*)NULL }; | |
854 | ||
855 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
856 | * | |
857 | * Description of Aix_Externcpp1 fix | |
858 | */ | |
859 | tSCC zAix_Externcpp1Name[] = | |
860 | "aix_externcpp1"; | |
861 | ||
862 | /* | |
863 | * File name selection pattern | |
864 | */ | |
865 | tSCC zAix_Externcpp1List[] = | |
866 | "sys/socket.h\0"; | |
867 | /* | |
868 | * Machine/OS name selection pattern | |
869 | */ | |
870 | tSCC* apzAix_Externcpp1Machs[] = { | |
871 | "*-*-aix*", | |
872 | (const char*)NULL }; | |
873 | ||
874 | /* | |
875 | * content selection pattern - do fix if pattern found | |
876 | */ | |
877 | tSCC zAix_Externcpp1Select0[] = | |
878 | "#ifdef __cplusplus"; | |
879 | ||
880 | #define AIX_EXTERNCPP1_TEST_CT 1 | |
881 | static tTestDesc aAix_Externcpp1Tests[] = { | |
882 | { TT_EGREP, zAix_Externcpp1Select0, (regex_t*)NULL }, }; | |
883 | ||
884 | /* | |
885 | * Fix Command Arguments for Aix_Externcpp1 | |
886 | */ | |
887 | static const char* apzAix_Externcpp1Patch[] = { | |
888 | "format", | |
889 | "#ifdef __cplusplus\n\ | |
890 | extern \"C++\" {", | |
891 | (char*)NULL }; | |
892 | ||
893 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
894 | * | |
895 | * Description of Aix_Externcpp2 fix | |
896 | */ | |
897 | tSCC zAix_Externcpp2Name[] = | |
898 | "aix_externcpp2"; | |
899 | ||
900 | /* | |
901 | * File name selection pattern | |
902 | */ | |
903 | tSCC zAix_Externcpp2List[] = | |
904 | "sys/socket.h\0"; | |
905 | /* | |
906 | * Machine/OS name selection pattern | |
907 | */ | |
908 | tSCC* apzAix_Externcpp2Machs[] = { | |
909 | "*-*-aix*", | |
910 | (const char*)NULL }; | |
911 | ||
912 | /* | |
913 | * content selection pattern - do fix if pattern found | |
914 | */ | |
915 | tSCC zAix_Externcpp2Select0[] = | |
916 | "#else /\\* __cplusplus \\*/"; | |
917 | ||
918 | #define AIX_EXTERNCPP2_TEST_CT 1 | |
919 | static tTestDesc aAix_Externcpp2Tests[] = { | |
920 | { TT_EGREP, zAix_Externcpp2Select0, (regex_t*)NULL }, }; | |
921 | ||
922 | /* | |
923 | * Fix Command Arguments for Aix_Externcpp2 | |
924 | */ | |
925 | static const char* apzAix_Externcpp2Patch[] = { | |
926 | "format", | |
927 | "} /* extern \"C++\" */\n\ | |
928 | #else /* __cplusplus */", | |
929 | (char*)NULL }; | |
930 | ||
0560f6fc | 931 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
932 | * | |
933 | * Description of Aix_Malloc fix | |
934 | */ | |
935 | tSCC zAix_MallocName[] = | |
936 | "aix_malloc"; | |
937 | ||
938 | /* | |
939 | * File name selection pattern | |
940 | */ | |
941 | tSCC zAix_MallocList[] = | |
942 | "malloc.h\0"; | |
943 | /* | |
944 | * Machine/OS name selection pattern | |
945 | */ | |
946 | tSCC* apzAix_MallocMachs[] = { | |
947 | "*-*-aix*", | |
948 | (const char*)NULL }; | |
949 | ||
950 | /* | |
951 | * content selection pattern - do fix if pattern found | |
952 | */ | |
953 | tSCC zAix_MallocSelect0[] = | |
954 | "#ifdef __cplusplus"; | |
955 | ||
956 | #define AIX_MALLOC_TEST_CT 1 | |
957 | static tTestDesc aAix_MallocTests[] = { | |
958 | { TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, }; | |
959 | ||
960 | /* | |
961 | * Fix Command Arguments for Aix_Malloc | |
962 | */ | |
963 | static const char* apzAix_MallocPatch[] = { | |
964 | "format", | |
965 | "#if (defined(__cplusplus) && defined(__IBMCPP__))", | |
966 | (char*)NULL }; | |
967 | ||
eafa229b | 968 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
969 | * | |
970 | * Description of Aix_Net_If_Arp fix | |
971 | */ | |
972 | tSCC zAix_Net_If_ArpName[] = | |
973 | "aix_net_if_arp"; | |
974 | ||
975 | /* | |
976 | * File name selection pattern | |
977 | */ | |
978 | tSCC zAix_Net_If_ArpList[] = | |
979 | "net/if_arp.h\0"; | |
980 | /* | |
981 | * Machine/OS name selection pattern | |
982 | */ | |
983 | tSCC* apzAix_Net_If_ArpMachs[] = { | |
984 | "*-*-aix*", | |
985 | (const char*)NULL }; | |
986 | ||
987 | /* | |
988 | * content selection pattern - do fix if pattern found | |
989 | */ | |
990 | tSCC zAix_Net_If_ArpSelect0[] = | |
991 | "^struct fc_softc \\{"; | |
992 | ||
993 | #define AIX_NET_IF_ARP_TEST_CT 1 | |
994 | static tTestDesc aAix_Net_If_ArpTests[] = { | |
995 | { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, }; | |
996 | ||
997 | /* | |
998 | * Fix Command Arguments for Aix_Net_If_Arp | |
999 | */ | |
1000 | static const char* apzAix_Net_If_ArpPatch[] = { | |
1001 | "format", | |
1002 | "typedef struct _fc_softc {", | |
1003 | (char*)NULL }; | |
1004 | ||
3c47853b | 1005 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1006 | * | |
1007 | * Description of Aix_Null fix | |
1008 | */ | |
1009 | tSCC zAix_NullName[] = | |
1010 | "aix_null"; | |
1011 | ||
1012 | /* | |
1013 | * File name selection pattern | |
1014 | */ | |
1015 | tSCC zAix_NullList[] = | |
1016 | "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/dir.h\0sys/param.h\0sys/types.h\0"; | |
1017 | /* | |
1018 | * Machine/OS name selection pattern | |
1019 | */ | |
1020 | tSCC* apzAix_NullMachs[] = { | |
1021 | "*-*-aix*", | |
1022 | (const char*)NULL }; | |
1023 | ||
1024 | /* | |
1025 | * content selection pattern - do fix if pattern found | |
1026 | */ | |
1027 | tSCC zAix_NullSelect0[] = | |
1028 | "#define[ \t]+NULL[ \t]+\\(*0L*\\)*"; | |
1029 | ||
1030 | /* | |
1031 | * content bypass pattern - skip fix if pattern found | |
1032 | */ | |
1033 | tSCC zAix_NullBypass0[] = | |
1034 | "__null"; | |
1035 | ||
1036 | #define AIX_NULL_TEST_CT 2 | |
1037 | static tTestDesc aAix_NullTests[] = { | |
1038 | { TT_NEGREP, zAix_NullBypass0, (regex_t*)NULL }, | |
1039 | { TT_EGREP, zAix_NullSelect0, (regex_t*)NULL }, }; | |
1040 | ||
1041 | /* | |
1042 | * Fix Command Arguments for Aix_Null | |
1043 | */ | |
1044 | static const char* apzAix_NullPatch[] = { | |
1045 | "format", | |
1046 | "#ifndef NULL\n\ | |
1047 | #ifdef __cplusplus\n\ | |
1048 | #ifdef __GNUG__\n\ | |
1049 | #define NULL __null\n\ | |
1050 | #else /* ! __GNUG__ */\n\ | |
1051 | #define NULL 0L\n\ | |
1052 | #endif /* __GNUG__ */\n\ | |
1053 | #else /* ! __cplusplus */\n\ | |
1054 | #define NULL ((void *)0)\n\ | |
1055 | #endif /* __cplusplus */\n\ | |
1056 | #endif /* !NULL */", | |
1057 | (char*)NULL }; | |
1058 | ||
4cad3a31 | 1059 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1060 | * | |
1061 | * Description of Aix_Once_Init_1 fix | |
1062 | */ | |
1063 | tSCC zAix_Once_Init_1Name[] = | |
1064 | "aix_once_init_1"; | |
1065 | ||
1066 | /* | |
1067 | * File name selection pattern | |
1068 | */ | |
1069 | tSCC zAix_Once_Init_1List[] = | |
1070 | "pthread.h\0"; | |
1071 | /* | |
1072 | * Machine/OS name selection pattern | |
1073 | */ | |
1074 | tSCC* apzAix_Once_Init_1Machs[] = { | |
1075 | "*-*-aix*", | |
1076 | (const char*)NULL }; | |
1077 | ||
1078 | /* | |
1079 | * content selection pattern - do fix if pattern found | |
1080 | */ | |
1081 | tSCC zAix_Once_Init_1Select0[] = | |
1082 | "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\ | |
1083 | \\{ \\\\\n"; | |
1084 | ||
1085 | #define AIX_ONCE_INIT_1_TEST_CT 1 | |
1086 | static tTestDesc aAix_Once_Init_1Tests[] = { | |
1087 | { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, }; | |
1088 | ||
1089 | /* | |
1090 | * Fix Command Arguments for Aix_Once_Init_1 | |
1091 | */ | |
1092 | static const char* apzAix_Once_Init_1Patch[] = { | |
1093 | "format", | |
1094 | "#define PTHREAD_ONCE_INIT \\\n\ | |
1095 | {{ \\\n", | |
1096 | (char*)NULL }; | |
1097 | ||
1098 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1099 | * | |
1100 | * Description of Aix_Once_Init_2 fix | |
1101 | */ | |
1102 | tSCC zAix_Once_Init_2Name[] = | |
1103 | "aix_once_init_2"; | |
1104 | ||
1105 | /* | |
1106 | * File name selection pattern | |
1107 | */ | |
1108 | tSCC zAix_Once_Init_2List[] = | |
1109 | "pthread.h\0"; | |
1110 | /* | |
1111 | * Machine/OS name selection pattern | |
1112 | */ | |
1113 | tSCC* apzAix_Once_Init_2Machs[] = { | |
1114 | "*-*-aix*", | |
1115 | (const char*)NULL }; | |
1116 | ||
1117 | /* | |
1118 | * content selection pattern - do fix if pattern found | |
1119 | */ | |
1120 | tSCC zAix_Once_Init_2Select0[] = | |
1121 | "[ \t]0 \\\\\n\ | |
1122 | \\}\n"; | |
1123 | ||
1124 | #define AIX_ONCE_INIT_2_TEST_CT 1 | |
1125 | static tTestDesc aAix_Once_Init_2Tests[] = { | |
1126 | { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, }; | |
1127 | ||
1128 | /* | |
1129 | * Fix Command Arguments for Aix_Once_Init_2 | |
1130 | */ | |
1131 | static const char* apzAix_Once_Init_2Patch[] = { | |
1132 | "format", | |
1133 | "\t0 \\\n\ | |
1134 | }}\n", | |
1135 | (char*)NULL }; | |
1136 | ||
3adcc56f | 1137 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1138 | * | |
1139 | * Description of Aix_Mutex_Initializer_1 fix | |
1140 | */ | |
1141 | tSCC zAix_Mutex_Initializer_1Name[] = | |
1142 | "aix_mutex_initializer_1"; | |
1143 | ||
1144 | /* | |
1145 | * File name selection pattern | |
1146 | */ | |
1147 | tSCC zAix_Mutex_Initializer_1List[] = | |
1148 | "pthread.h\0"; | |
1149 | /* | |
1150 | * Machine/OS name selection pattern | |
1151 | */ | |
1152 | tSCC* apzAix_Mutex_Initializer_1Machs[] = { | |
1153 | "*-*-aix*", | |
1154 | (const char*)NULL }; | |
1155 | ||
1156 | /* | |
1157 | * content selection pattern - do fix if pattern found | |
1158 | */ | |
1159 | tSCC zAix_Mutex_Initializer_1Select0[] = | |
1160 | "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\ | |
1161 | \\{ \\\\\n"; | |
1162 | ||
1163 | #define AIX_MUTEX_INITIALIZER_1_TEST_CT 1 | |
1164 | static tTestDesc aAix_Mutex_Initializer_1Tests[] = { | |
1165 | { TT_EGREP, zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, }; | |
1166 | ||
1167 | /* | |
1168 | * Fix Command Arguments for Aix_Mutex_Initializer_1 | |
1169 | */ | |
1170 | static const char* apzAix_Mutex_Initializer_1Patch[] = { | |
1171 | "format", | |
1172 | "#define PTHREAD_MUTEX_INITIALIZER \\\n\ | |
1173 | {{ \\\n", | |
1174 | (char*)NULL }; | |
1175 | ||
1176 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1177 | * | |
1178 | * Description of Aix_Cond_Initializer_1 fix | |
1179 | */ | |
1180 | tSCC zAix_Cond_Initializer_1Name[] = | |
1181 | "aix_cond_initializer_1"; | |
1182 | ||
1183 | /* | |
1184 | * File name selection pattern | |
1185 | */ | |
1186 | tSCC zAix_Cond_Initializer_1List[] = | |
1187 | "pthread.h\0"; | |
1188 | /* | |
1189 | * Machine/OS name selection pattern | |
1190 | */ | |
1191 | tSCC* apzAix_Cond_Initializer_1Machs[] = { | |
1192 | "*-*-aix*", | |
1193 | (const char*)NULL }; | |
1194 | ||
1195 | /* | |
1196 | * content selection pattern - do fix if pattern found | |
1197 | */ | |
1198 | tSCC zAix_Cond_Initializer_1Select0[] = | |
1199 | "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\ | |
1200 | \\{ \\\\\n"; | |
1201 | ||
1202 | #define AIX_COND_INITIALIZER_1_TEST_CT 1 | |
1203 | static tTestDesc aAix_Cond_Initializer_1Tests[] = { | |
1204 | { TT_EGREP, zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, }; | |
1205 | ||
1206 | /* | |
1207 | * Fix Command Arguments for Aix_Cond_Initializer_1 | |
1208 | */ | |
1209 | static const char* apzAix_Cond_Initializer_1Patch[] = { | |
1210 | "format", | |
1211 | "#define PTHREAD_COND_INITIALIZER \\\n\ | |
1212 | {{ \\\n", | |
1213 | (char*)NULL }; | |
1214 | ||
1215 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1216 | * | |
1217 | * Description of Aix_Rwlock_Initializer_1 fix | |
1218 | */ | |
1219 | tSCC zAix_Rwlock_Initializer_1Name[] = | |
1220 | "aix_rwlock_initializer_1"; | |
1221 | ||
1222 | /* | |
1223 | * File name selection pattern | |
1224 | */ | |
1225 | tSCC zAix_Rwlock_Initializer_1List[] = | |
1226 | "pthread.h\0"; | |
1227 | /* | |
1228 | * Machine/OS name selection pattern | |
1229 | */ | |
1230 | tSCC* apzAix_Rwlock_Initializer_1Machs[] = { | |
1231 | "*-*-aix*", | |
1232 | (const char*)NULL }; | |
1233 | ||
1234 | /* | |
1235 | * content selection pattern - do fix if pattern found | |
1236 | */ | |
1237 | tSCC zAix_Rwlock_Initializer_1Select0[] = | |
1238 | "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\ | |
1239 | \\{ \\\\\n"; | |
1240 | ||
1241 | #define AIX_RWLOCK_INITIALIZER_1_TEST_CT 1 | |
1242 | static tTestDesc aAix_Rwlock_Initializer_1Tests[] = { | |
1243 | { TT_EGREP, zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, }; | |
1244 | ||
1245 | /* | |
1246 | * Fix Command Arguments for Aix_Rwlock_Initializer_1 | |
1247 | */ | |
1248 | static const char* apzAix_Rwlock_Initializer_1Patch[] = { | |
1249 | "format", | |
1250 | "#define PTHREAD_RWLOCK_INITIALIZER \\\n\ | |
1251 | {{ \\\n", | |
1252 | (char*)NULL }; | |
1253 | ||
e494b1bb | 1254 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1255 | * | |
1256 | * Description of Aix_Pthread fix | |
1257 | */ | |
e494b1bb | 1258 | tSCC zAix_PthreadName[] = |
1259 | "aix_pthread"; | |
1260 | ||
1261 | /* | |
1262 | * File name selection pattern | |
1263 | */ | |
1264 | tSCC zAix_PthreadList[] = | |
e9afa104 | 1265 | "pthread.h\0"; |
e494b1bb | 1266 | /* |
1267 | * Machine/OS name selection pattern | |
1268 | */ | |
1269 | #define apzAix_PthreadMachs (const char**)NULL | |
1270 | ||
1271 | /* | |
1272 | * content selection pattern - do fix if pattern found | |
1273 | */ | |
1274 | tSCC zAix_PthreadSelect0[] = | |
16879fd7 | 1275 | "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\ |
e494b1bb | 1276 | [^A-Za-z_0-9 \t\n\ |
1277 | (])"; | |
1278 | ||
1279 | #define AIX_PTHREAD_TEST_CT 1 | |
2548396b | 1280 | static tTestDesc aAix_PthreadTests[] = { |
e494b1bb | 1281 | { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, }; |
1282 | ||
1283 | /* | |
1284 | * Fix Command Arguments for Aix_Pthread | |
1285 | */ | |
2548396b | 1286 | static const char* apzAix_PthreadPatch[] = { |
e494b1bb | 1287 | "format", |
1288 | "%1 %2", | |
1289 | (char*)NULL }; | |
1290 | ||
82c99fed | 1291 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1292 | * | |
1293 | * Description of Aix_Stdint_1 fix | |
1294 | */ | |
1295 | tSCC zAix_Stdint_1Name[] = | |
1296 | "aix_stdint_1"; | |
1297 | ||
1298 | /* | |
1299 | * File name selection pattern | |
1300 | */ | |
1301 | tSCC zAix_Stdint_1List[] = | |
e2fb821c | 1302 | "stdint-aix.h\0stdint.h\0"; |
82c99fed | 1303 | /* |
1304 | * Machine/OS name selection pattern | |
1305 | */ | |
1306 | tSCC* apzAix_Stdint_1Machs[] = { | |
1307 | "*-*-aix*", | |
1308 | (const char*)NULL }; | |
1309 | ||
1310 | /* | |
1311 | * content selection pattern - do fix if pattern found | |
1312 | */ | |
1313 | tSCC zAix_Stdint_1Select0[] = | |
1314 | "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\ | |
1315 | #define[ \t]UINT16_MAX[ \t]\\(65535U\\)"; | |
1316 | ||
1317 | #define AIX_STDINT_1_TEST_CT 1 | |
1318 | static tTestDesc aAix_Stdint_1Tests[] = { | |
1319 | { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, }; | |
1320 | ||
1321 | /* | |
1322 | * Fix Command Arguments for Aix_Stdint_1 | |
1323 | */ | |
1324 | static const char* apzAix_Stdint_1Patch[] = { | |
1325 | "format", | |
1326 | "#define UINT8_MAX\t(255)\n\ | |
1327 | #define UINT16_MAX\t(65535)", | |
1328 | (char*)NULL }; | |
1329 | ||
1330 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1331 | * | |
1332 | * Description of Aix_Stdint_2 fix | |
1333 | */ | |
1334 | tSCC zAix_Stdint_2Name[] = | |
1335 | "aix_stdint_2"; | |
1336 | ||
1337 | /* | |
1338 | * File name selection pattern | |
1339 | */ | |
1340 | tSCC zAix_Stdint_2List[] = | |
e2fb821c | 1341 | "stdint-aix.h\0stdint.h\0"; |
82c99fed | 1342 | /* |
1343 | * Machine/OS name selection pattern | |
1344 | */ | |
1345 | tSCC* apzAix_Stdint_2Machs[] = { | |
1346 | "*-*-aix*", | |
1347 | (const char*)NULL }; | |
1348 | ||
1349 | /* | |
1350 | * content selection pattern - do fix if pattern found | |
1351 | */ | |
1352 | tSCC zAix_Stdint_2Select0[] = | |
1353 | "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\ | |
1354 | #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\ | |
1355 | #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\ | |
1356 | #else\n\ | |
1357 | #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\ | |
1358 | #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\ | |
1359 | #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX"; | |
1360 | ||
1361 | #define AIX_STDINT_2_TEST_CT 1 | |
1362 | static tTestDesc aAix_Stdint_2Tests[] = { | |
1363 | { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, }; | |
1364 | ||
1365 | /* | |
1366 | * Fix Command Arguments for Aix_Stdint_2 | |
1367 | */ | |
1368 | static const char* apzAix_Stdint_2Patch[] = { | |
1369 | "format", | |
1370 | "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\ | |
1371 | #define INTPTR_MAX\t9223372036854775807L\n\ | |
1372 | #define UINTPTR_MAX\t18446744073709551615UL\n\ | |
1373 | #else\n\ | |
1374 | #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\ | |
1375 | #define INTPTR_MAX\t2147483647L\n\ | |
1376 | #define UINTPTR_MAX\t4294967295UL", | |
1377 | (char*)NULL }; | |
1378 | ||
1379 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1380 | * | |
1381 | * Description of Aix_Stdint_3 fix | |
1382 | */ | |
1383 | tSCC zAix_Stdint_3Name[] = | |
1384 | "aix_stdint_3"; | |
1385 | ||
1386 | /* | |
1387 | * File name selection pattern | |
1388 | */ | |
1389 | tSCC zAix_Stdint_3List[] = | |
e2fb821c | 1390 | "stdint-aix.h\0stdint.h\0"; |
82c99fed | 1391 | /* |
1392 | * Machine/OS name selection pattern | |
1393 | */ | |
1394 | tSCC* apzAix_Stdint_3Machs[] = { | |
1395 | "*-*-aix*", | |
1396 | (const char*)NULL }; | |
1397 | ||
1398 | /* | |
1399 | * content selection pattern - do fix if pattern found | |
1400 | */ | |
1401 | tSCC zAix_Stdint_3Select0[] = | |
1402 | "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\ | |
1403 | #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\ | |
1404 | #else\n\ | |
1405 | #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\ | |
1406 | #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX"; | |
1407 | ||
1408 | #define AIX_STDINT_3_TEST_CT 1 | |
1409 | static tTestDesc aAix_Stdint_3Tests[] = { | |
1410 | { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, }; | |
1411 | ||
1412 | /* | |
1413 | * Fix Command Arguments for Aix_Stdint_3 | |
1414 | */ | |
1415 | static const char* apzAix_Stdint_3Patch[] = { | |
1416 | "format", | |
1417 | "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\ | |
1418 | #define PTRDIFF_MAX\t9223372036854775807L\n\ | |
1419 | #else\n\ | |
1420 | #define PTRDIFF_MIN\t(-2147483647L - 1)\n\ | |
1421 | #define PTRDIFF_MAX\t2147483647L", | |
1422 | (char*)NULL }; | |
1423 | ||
1424 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1425 | * | |
1426 | * Description of Aix_Stdint_4 fix | |
1427 | */ | |
1428 | tSCC zAix_Stdint_4Name[] = | |
1429 | "aix_stdint_4"; | |
1430 | ||
1431 | /* | |
1432 | * File name selection pattern | |
1433 | */ | |
1434 | tSCC zAix_Stdint_4List[] = | |
e2fb821c | 1435 | "stdint-aix.h\0stdint.h\0"; |
82c99fed | 1436 | /* |
1437 | * Machine/OS name selection pattern | |
1438 | */ | |
1439 | tSCC* apzAix_Stdint_4Machs[] = { | |
1440 | "*-*-aix*", | |
1441 | (const char*)NULL }; | |
1442 | ||
1443 | /* | |
1444 | * content selection pattern - do fix if pattern found | |
1445 | */ | |
1446 | tSCC zAix_Stdint_4Select0[] = | |
1447 | "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\ | |
1448 | #else\n\ | |
1449 | #define[ \t]SIZE_MAX[ \t]*UINT32_MAX"; | |
1450 | ||
1451 | #define AIX_STDINT_4_TEST_CT 1 | |
1452 | static tTestDesc aAix_Stdint_4Tests[] = { | |
1453 | { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, }; | |
1454 | ||
1455 | /* | |
1456 | * Fix Command Arguments for Aix_Stdint_4 | |
1457 | */ | |
1458 | static const char* apzAix_Stdint_4Patch[] = { | |
1459 | "format", | |
1460 | "#define SIZE_MAX\t18446744073709551615UL\n\ | |
1461 | #else\n\ | |
1462 | #define SIZE_MAX\t4294967295UL", | |
1463 | (char*)NULL }; | |
1464 | ||
1465 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1466 | * | |
1467 | * Description of Aix_Stdint_5 fix | |
1468 | */ | |
1469 | tSCC zAix_Stdint_5Name[] = | |
1470 | "aix_stdint_5"; | |
1471 | ||
1472 | /* | |
1473 | * File name selection pattern | |
1474 | */ | |
1475 | tSCC zAix_Stdint_5List[] = | |
e2fb821c | 1476 | "stdint-aix.h\0stdint.h\0"; |
82c99fed | 1477 | /* |
1478 | * Machine/OS name selection pattern | |
1479 | */ | |
1480 | tSCC* apzAix_Stdint_5Machs[] = { | |
1481 | "*-*-aix*", | |
1482 | (const char*)NULL }; | |
1483 | ||
1484 | /* | |
1485 | * content selection pattern - do fix if pattern found | |
1486 | */ | |
1487 | tSCC zAix_Stdint_5Select0[] = | |
1488 | "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\ | |
1489 | #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)"; | |
1490 | ||
1491 | #define AIX_STDINT_5_TEST_CT 1 | |
1492 | static tTestDesc aAix_Stdint_5Tests[] = { | |
1493 | { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, }; | |
1494 | ||
1495 | /* | |
1496 | * Fix Command Arguments for Aix_Stdint_5 | |
1497 | */ | |
1498 | static const char* apzAix_Stdint_5Patch[] = { | |
1499 | "format", | |
1500 | "#define UINT8_C(c)\tc\n\ | |
1501 | #define UINT16_C(c)\tc", | |
1502 | (char*)NULL }; | |
1503 | ||
11e92429 | 1504 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1505 | * | |
1506 | * Description of Aix_Stdio_Inline fix | |
1507 | */ | |
1508 | tSCC zAix_Stdio_InlineName[] = | |
1509 | "aix_stdio_inline"; | |
1510 | ||
1511 | /* | |
1512 | * File name selection pattern | |
1513 | */ | |
1514 | tSCC zAix_Stdio_InlineList[] = | |
1515 | "stdio.h\0"; | |
1516 | /* | |
1517 | * Machine/OS name selection pattern | |
1518 | */ | |
1519 | tSCC* apzAix_Stdio_InlineMachs[] = { | |
1520 | "*-*-aix*", | |
1521 | (const char*)NULL }; | |
1522 | ||
1523 | /* | |
1524 | * content selection pattern - do fix if pattern found | |
1525 | */ | |
1526 | tSCC zAix_Stdio_InlineSelect0[] = | |
1527 | "#ifdef __cplusplus\\\n\ | |
1528 | }\\\n\ | |
1529 | \\\n\ | |
1530 | #ifdef ferror\\\n"; | |
1531 | ||
1532 | #define AIX_STDIO_INLINE_TEST_CT 1 | |
1533 | static tTestDesc aAix_Stdio_InlineTests[] = { | |
1534 | { TT_EGREP, zAix_Stdio_InlineSelect0, (regex_t*)NULL }, }; | |
1535 | ||
1536 | /* | |
1537 | * Fix Command Arguments for Aix_Stdio_Inline | |
1538 | */ | |
1539 | static const char* apzAix_Stdio_InlinePatch[] = { | |
1540 | "format", | |
1541 | "#ifdef __cplusplus\n\ | |
1542 | }\n\ | |
1543 | #endif\n\n\ | |
1544 | #if (defined(__cplusplus) && defined(__IBMCPP__))\n\ | |
1545 | #ifdef ferror\n", | |
1546 | (char*)NULL }; | |
1547 | ||
b73b1330 | 1548 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1549 | * | |
1550 | * Description of Aix_Stdlib_Malloc fix | |
1551 | */ | |
1552 | tSCC zAix_Stdlib_MallocName[] = | |
1553 | "aix_stdlib_malloc"; | |
1554 | ||
1555 | /* | |
1556 | * File name selection pattern | |
1557 | */ | |
1558 | tSCC zAix_Stdlib_MallocList[] = | |
1559 | "stdlib.h\0"; | |
1560 | /* | |
1561 | * Machine/OS name selection pattern | |
1562 | */ | |
1563 | tSCC* apzAix_Stdlib_MallocMachs[] = { | |
1564 | "*-*-aix*", | |
1565 | (const char*)NULL }; | |
1566 | ||
1567 | /* | |
1568 | * content selection pattern - do fix if pattern found | |
1569 | */ | |
1570 | tSCC zAix_Stdlib_MallocSelect0[] = | |
1571 | "#define[ \t]+malloc[ \t]+__linux_malloc"; | |
1572 | ||
1573 | #define AIX_STDLIB_MALLOC_TEST_CT 1 | |
1574 | static tTestDesc aAix_Stdlib_MallocTests[] = { | |
1575 | { TT_EGREP, zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, }; | |
1576 | ||
1577 | /* | |
1578 | * Fix Command Arguments for Aix_Stdlib_Malloc | |
1579 | */ | |
1580 | static const char* apzAix_Stdlib_MallocPatch[] = { | |
1581 | "format", | |
1582 | "extern void *malloc(size_t) __asm__(\"__linux_malloc\");", | |
1583 | (char*)NULL }; | |
1584 | ||
1585 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1586 | * | |
1587 | * Description of Aix_Stdlib_Realloc fix | |
1588 | */ | |
1589 | tSCC zAix_Stdlib_ReallocName[] = | |
1590 | "aix_stdlib_realloc"; | |
1591 | ||
1592 | /* | |
1593 | * File name selection pattern | |
1594 | */ | |
1595 | tSCC zAix_Stdlib_ReallocList[] = | |
1596 | "stdlib.h\0"; | |
1597 | /* | |
1598 | * Machine/OS name selection pattern | |
1599 | */ | |
1600 | tSCC* apzAix_Stdlib_ReallocMachs[] = { | |
1601 | "*-*-aix*", | |
1602 | (const char*)NULL }; | |
1603 | ||
1604 | /* | |
1605 | * content selection pattern - do fix if pattern found | |
1606 | */ | |
1607 | tSCC zAix_Stdlib_ReallocSelect0[] = | |
1608 | "#define[ \t]+realloc[ \t]+__linux_realloc"; | |
1609 | ||
1610 | #define AIX_STDLIB_REALLOC_TEST_CT 1 | |
1611 | static tTestDesc aAix_Stdlib_ReallocTests[] = { | |
1612 | { TT_EGREP, zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, }; | |
1613 | ||
1614 | /* | |
1615 | * Fix Command Arguments for Aix_Stdlib_Realloc | |
1616 | */ | |
1617 | static const char* apzAix_Stdlib_ReallocPatch[] = { | |
1618 | "format", | |
1619 | "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");", | |
1620 | (char*)NULL }; | |
1621 | ||
1622 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1623 | * | |
1624 | * Description of Aix_Stdlib_Calloc fix | |
1625 | */ | |
1626 | tSCC zAix_Stdlib_CallocName[] = | |
1627 | "aix_stdlib_calloc"; | |
1628 | ||
1629 | /* | |
1630 | * File name selection pattern | |
1631 | */ | |
1632 | tSCC zAix_Stdlib_CallocList[] = | |
1633 | "stdlib.h\0"; | |
1634 | /* | |
1635 | * Machine/OS name selection pattern | |
1636 | */ | |
1637 | tSCC* apzAix_Stdlib_CallocMachs[] = { | |
1638 | "*-*-aix*", | |
1639 | (const char*)NULL }; | |
1640 | ||
1641 | /* | |
1642 | * content selection pattern - do fix if pattern found | |
1643 | */ | |
1644 | tSCC zAix_Stdlib_CallocSelect0[] = | |
1645 | "#define[ \t]+calloc[ \t]+__linux_calloc"; | |
1646 | ||
1647 | #define AIX_STDLIB_CALLOC_TEST_CT 1 | |
1648 | static tTestDesc aAix_Stdlib_CallocTests[] = { | |
1649 | { TT_EGREP, zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, }; | |
1650 | ||
1651 | /* | |
1652 | * Fix Command Arguments for Aix_Stdlib_Calloc | |
1653 | */ | |
1654 | static const char* apzAix_Stdlib_CallocPatch[] = { | |
1655 | "format", | |
1656 | "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");", | |
1657 | (char*)NULL }; | |
1658 | ||
1659 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1660 | * | |
1661 | * Description of Aix_Stdlib_Valloc fix | |
1662 | */ | |
1663 | tSCC zAix_Stdlib_VallocName[] = | |
1664 | "aix_stdlib_valloc"; | |
1665 | ||
1666 | /* | |
1667 | * File name selection pattern | |
1668 | */ | |
1669 | tSCC zAix_Stdlib_VallocList[] = | |
1670 | "stdlib.h\0"; | |
1671 | /* | |
1672 | * Machine/OS name selection pattern | |
1673 | */ | |
1674 | tSCC* apzAix_Stdlib_VallocMachs[] = { | |
1675 | "*-*-aix*", | |
1676 | (const char*)NULL }; | |
1677 | ||
1678 | /* | |
1679 | * content selection pattern - do fix if pattern found | |
1680 | */ | |
1681 | tSCC zAix_Stdlib_VallocSelect0[] = | |
1682 | "#define[ \t]+valloc[ \t]+__linux_valloc"; | |
1683 | ||
1684 | #define AIX_STDLIB_VALLOC_TEST_CT 1 | |
1685 | static tTestDesc aAix_Stdlib_VallocTests[] = { | |
1686 | { TT_EGREP, zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, }; | |
1687 | ||
1688 | /* | |
1689 | * Fix Command Arguments for Aix_Stdlib_Valloc | |
1690 | */ | |
1691 | static const char* apzAix_Stdlib_VallocPatch[] = { | |
1692 | "format", | |
1693 | "extern void *valloc(size_t) __asm__(\"__linux_valloc\");", | |
1694 | (char*)NULL }; | |
1695 | ||
7a26bedc | 1696 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1697 | * | |
1698 | * Description of Aix_Strtof_Const fix | |
1699 | */ | |
1700 | tSCC zAix_Strtof_ConstName[] = | |
1701 | "aix_strtof_const"; | |
1702 | ||
1703 | /* | |
1704 | * File name selection pattern | |
1705 | */ | |
1706 | tSCC zAix_Strtof_ConstList[] = | |
1707 | "stdlib.h\0"; | |
1708 | /* | |
1709 | * Machine/OS name selection pattern | |
1710 | */ | |
11e92429 | 1711 | tSCC* apzAix_Strtof_ConstMachs[] = { |
1712 | "*-*-aix*", | |
1713 | (const char*)NULL }; | |
7a26bedc | 1714 | |
1715 | /* | |
1716 | * content selection pattern - do fix if pattern found | |
1717 | */ | |
1718 | tSCC zAix_Strtof_ConstSelect0[] = | |
1719 | "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);"; | |
1720 | ||
1721 | #define AIX_STRTOF_CONST_TEST_CT 1 | |
1722 | static tTestDesc aAix_Strtof_ConstTests[] = { | |
1723 | { TT_EGREP, zAix_Strtof_ConstSelect0, (regex_t*)NULL }, }; | |
1724 | ||
1725 | /* | |
1726 | * Fix Command Arguments for Aix_Strtof_Const | |
1727 | */ | |
1728 | static const char* apzAix_Strtof_ConstPatch[] = { | |
1729 | "format", | |
1730 | "%1(const char *, char **);", | |
1731 | (char*)NULL }; | |
1732 | ||
e494b1bb | 1733 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1734 | * | |
1735 | * Description of Aix_Sysmachine fix | |
1736 | */ | |
e494b1bb | 1737 | tSCC zAix_SysmachineName[] = |
1738 | "aix_sysmachine"; | |
1739 | ||
1740 | /* | |
1741 | * File name selection pattern | |
1742 | */ | |
1743 | tSCC zAix_SysmachineList[] = | |
e9afa104 | 1744 | "sys/machine.h\0"; |
e494b1bb | 1745 | /* |
1746 | * Machine/OS name selection pattern | |
1747 | */ | |
11e92429 | 1748 | tSCC* apzAix_SysmachineMachs[] = { |
1749 | "*-*-aix*", | |
1750 | (const char*)NULL }; | |
e494b1bb | 1751 | |
1752 | /* | |
1753 | * content selection pattern - do fix if pattern found | |
1754 | */ | |
1755 | tSCC zAix_SysmachineSelect0[] = | |
1756 | "\\\\ +\n"; | |
1757 | ||
1758 | #define AIX_SYSMACHINE_TEST_CT 1 | |
2548396b | 1759 | static tTestDesc aAix_SysmachineTests[] = { |
e494b1bb | 1760 | { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, }; |
1761 | ||
1762 | /* | |
1763 | * Fix Command Arguments for Aix_Sysmachine | |
1764 | */ | |
2548396b | 1765 | static const char* apzAix_SysmachinePatch[] = { |
e494b1bb | 1766 | "format", |
1767 | "\\\n", | |
1768 | (char*)NULL }; | |
1769 | ||
85df6fdf | 1770 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1771 | * | |
1772 | * Description of Aix_Syswait_2 fix | |
1773 | */ | |
1774 | tSCC zAix_Syswait_2Name[] = | |
1775 | "aix_syswait_2"; | |
1776 | ||
1777 | /* | |
1778 | * File name selection pattern | |
1779 | */ | |
1780 | tSCC zAix_Syswait_2List[] = | |
e9afa104 | 1781 | "sys/wait.h\0"; |
85df6fdf | 1782 | /* |
1783 | * Machine/OS name selection pattern | |
1784 | */ | |
11e92429 | 1785 | tSCC* apzAix_Syswait_2Machs[] = { |
1786 | "*-*-aix*", | |
1787 | (const char*)NULL }; | |
85df6fdf | 1788 | |
1789 | /* | |
1790 | * content selection pattern - do fix if pattern found | |
1791 | */ | |
1792 | tSCC zAix_Syswait_2Select0[] = | |
1793 | "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)"; | |
1794 | ||
1795 | #define AIX_SYSWAIT_2_TEST_CT 1 | |
1796 | static tTestDesc aAix_Syswait_2Tests[] = { | |
1797 | { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, }; | |
1798 | ||
1799 | /* | |
1800 | * Fix Command Arguments for Aix_Syswait_2 | |
1801 | */ | |
1802 | static const char* apzAix_Syswait_2Patch[] = { | |
1803 | "format", | |
1804 | "? (int)%1", | |
1805 | (char*)NULL }; | |
1806 | ||
fdb8fb96 | 1807 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1808 | * | |
5daf7ede | 1809 | * Description of Aix_Volatile fix |
fdb8fb96 | 1810 | */ |
1811 | tSCC zAix_VolatileName[] = | |
d4c4b01d | 1812 | "aix_volatile"; |
1813 | ||
fdb8fb96 | 1814 | /* |
1815 | * File name selection pattern | |
1816 | */ | |
1817 | tSCC zAix_VolatileList[] = | |
e9afa104 | 1818 | "sys/signal.h\0"; |
fdb8fb96 | 1819 | /* |
1820 | * Machine/OS name selection pattern | |
1821 | */ | |
11e92429 | 1822 | tSCC* apzAix_VolatileMachs[] = { |
1823 | "*-*-aix*", | |
1824 | (const char*)NULL }; | |
fdb8fb96 | 1825 | |
1826 | /* | |
c1b28c63 | 1827 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1828 | */ |
1829 | tSCC zAix_VolatileSelect0[] = | |
1830 | "typedef volatile int sig_atomic_t"; | |
1831 | ||
1832 | #define AIX_VOLATILE_TEST_CT 1 | |
2548396b | 1833 | static tTestDesc aAix_VolatileTests[] = { |
5daf7ede | 1834 | { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1835 | |
1836 | /* | |
1837 | * Fix Command Arguments for Aix_Volatile | |
1838 | */ | |
2548396b | 1839 | static const char* apzAix_VolatilePatch[] = { |
472aa368 | 1840 | "format", |
1841 | "typedef int sig_atomic_t", | |
fdb8fb96 | 1842 | (char*)NULL }; |
1843 | ||
d1ec871e | 1844 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1845 | * | |
1846 | * Description of Alpha___Assert fix | |
1847 | */ | |
d1ec871e | 1848 | tSCC zAlpha___AssertName[] = |
1849 | "alpha___assert"; | |
1850 | ||
1851 | /* | |
1852 | * File name selection pattern | |
1853 | */ | |
1854 | tSCC zAlpha___AssertList[] = | |
e9afa104 | 1855 | "assert.h\0"; |
d1ec871e | 1856 | /* |
1857 | * Machine/OS name selection pattern | |
1858 | */ | |
1859 | #define apzAlpha___AssertMachs (const char**)NULL | |
1860 | ||
1861 | /* | |
1862 | * content selection pattern - do fix if pattern found | |
1863 | */ | |
1864 | tSCC zAlpha___AssertSelect0[] = | |
1865 | "__assert\\(char \\*, char \\*, int\\)"; | |
1866 | ||
1867 | #define ALPHA___ASSERT_TEST_CT 1 | |
1868 | static tTestDesc aAlpha___AssertTests[] = { | |
1869 | { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, }; | |
1870 | ||
1871 | /* | |
1872 | * Fix Command Arguments for Alpha___Assert | |
1873 | */ | |
1874 | static const char* apzAlpha___AssertPatch[] = { | |
1875 | "format", | |
1876 | "__assert(const char *, const char *, int)", | |
1877 | (char*)NULL }; | |
1878 | ||
03112946 | 1879 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1880 | * | |
1881 | * Description of Alpha_Assert fix | |
1882 | */ | |
1883 | tSCC zAlpha_AssertName[] = | |
1884 | "alpha_assert"; | |
1885 | ||
1886 | /* | |
1887 | * File name selection pattern | |
1888 | */ | |
1889 | tSCC zAlpha_AssertList[] = | |
e9afa104 | 1890 | "assert.h\0"; |
03112946 | 1891 | /* |
1892 | * Machine/OS name selection pattern | |
1893 | */ | |
1894 | #define apzAlpha_AssertMachs (const char**)NULL | |
1895 | ||
1896 | /* | |
1897 | * content selection pattern - do fix if pattern found | |
1898 | */ | |
1899 | tSCC zAlpha_AssertSelect0[] = | |
84d20ec8 | 1900 | "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)"; |
03112946 | 1901 | |
1902 | #define ALPHA_ASSERT_TEST_CT 1 | |
1903 | static tTestDesc aAlpha_AssertTests[] = { | |
1904 | { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, }; | |
1905 | ||
1906 | /* | |
1907 | * Fix Command Arguments for Alpha_Assert | |
1908 | */ | |
1909 | static const char* apzAlpha_AssertPatch[] = { | |
1910 | "format", | |
1911 | "%1(EX)", | |
1912 | (char*)NULL }; | |
1913 | ||
fdb8fb96 | 1914 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1915 | * | |
5daf7ede | 1916 | * Description of Alpha_Getopt fix |
fdb8fb96 | 1917 | */ |
1918 | tSCC zAlpha_GetoptName[] = | |
d4c4b01d | 1919 | "alpha_getopt"; |
1920 | ||
fdb8fb96 | 1921 | /* |
1922 | * File name selection pattern | |
1923 | */ | |
1924 | tSCC zAlpha_GetoptList[] = | |
e9afa104 | 1925 | "stdio.h\0stdlib.h\0"; |
fdb8fb96 | 1926 | /* |
1927 | * Machine/OS name selection pattern | |
1928 | */ | |
1929 | #define apzAlpha_GetoptMachs (const char**)NULL | |
1930 | ||
1931 | /* | |
c1b28c63 | 1932 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1933 | */ |
1934 | tSCC zAlpha_GetoptSelect0[] = | |
52686fb5 | 1935 | "getopt\\(int, char \\*\\[\\], *char \\*\\)"; |
fdb8fb96 | 1936 | |
1937 | #define ALPHA_GETOPT_TEST_CT 1 | |
2548396b | 1938 | static tTestDesc aAlpha_GetoptTests[] = { |
5daf7ede | 1939 | { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1940 | |
1941 | /* | |
1942 | * Fix Command Arguments for Alpha_Getopt | |
1943 | */ | |
2548396b | 1944 | static const char* apzAlpha_GetoptPatch[] = { |
472aa368 | 1945 | "format", |
1946 | "getopt(int, char *const[], const char *)", | |
fdb8fb96 | 1947 | (char*)NULL }; |
1948 | ||
2013a847 | 1949 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1950 | * | |
1951 | * Description of Alpha_If_Semicolon fix | |
1952 | */ | |
1953 | tSCC zAlpha_If_SemicolonName[] = | |
1954 | "alpha_if_semicolon"; | |
1955 | ||
1956 | /* | |
1957 | * File name selection pattern | |
1958 | */ | |
1959 | tSCC zAlpha_If_SemicolonList[] = | |
1960 | "net/if.h\0"; | |
1961 | /* | |
1962 | * Machine/OS name selection pattern | |
1963 | */ | |
1964 | #define apzAlpha_If_SemicolonMachs (const char**)NULL | |
1965 | ||
1966 | /* | |
1967 | * content selection pattern - do fix if pattern found | |
1968 | */ | |
1969 | tSCC zAlpha_If_SemicolonSelect0[] = | |
1970 | "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*"; | |
1971 | ||
1972 | #define ALPHA_IF_SEMICOLON_TEST_CT 1 | |
1973 | static tTestDesc aAlpha_If_SemicolonTests[] = { | |
1974 | { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, }; | |
1975 | ||
1976 | /* | |
1977 | * Fix Command Arguments for Alpha_If_Semicolon | |
1978 | */ | |
1979 | static const char* apzAlpha_If_SemicolonPatch[] = { | |
1980 | "format", | |
1981 | "struct sockaddr vmif_paddr;\t/*", | |
1982 | (char*)NULL }; | |
1983 | ||
fdb8fb96 | 1984 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1985 | * | |
5daf7ede | 1986 | * Description of Alpha_Parens fix |
fdb8fb96 | 1987 | */ |
1988 | tSCC zAlpha_ParensName[] = | |
d4c4b01d | 1989 | "alpha_parens"; |
1990 | ||
fdb8fb96 | 1991 | /* |
1992 | * File name selection pattern | |
1993 | */ | |
1994 | tSCC zAlpha_ParensList[] = | |
e9afa104 | 1995 | "sym.h\0"; |
fdb8fb96 | 1996 | /* |
1997 | * Machine/OS name selection pattern | |
1998 | */ | |
1999 | #define apzAlpha_ParensMachs (const char**)NULL | |
2000 | ||
2001 | /* | |
c1b28c63 | 2002 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2003 | */ |
2004 | tSCC zAlpha_ParensSelect0[] = | |
2005 | "#ifndef\\(__mips64\\)"; | |
2006 | ||
2007 | #define ALPHA_PARENS_TEST_CT 1 | |
2548396b | 2008 | static tTestDesc aAlpha_ParensTests[] = { |
5daf7ede | 2009 | { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2010 | |
2011 | /* | |
2012 | * Fix Command Arguments for Alpha_Parens | |
2013 | */ | |
2548396b | 2014 | static const char* apzAlpha_ParensPatch[] = { |
472aa368 | 2015 | "format", |
2016 | "#ifndef __mips64", | |
fdb8fb96 | 2017 | (char*)NULL }; |
2018 | ||
2019 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2020 | * | |
5daf7ede | 2021 | * Description of Alpha_Sbrk fix |
fdb8fb96 | 2022 | */ |
2023 | tSCC zAlpha_SbrkName[] = | |
d4c4b01d | 2024 | "alpha_sbrk"; |
2025 | ||
fdb8fb96 | 2026 | /* |
2027 | * File name selection pattern | |
2028 | */ | |
2029 | tSCC zAlpha_SbrkList[] = | |
e9afa104 | 2030 | "unistd.h\0"; |
fdb8fb96 | 2031 | /* |
2032 | * Machine/OS name selection pattern | |
2033 | */ | |
2034 | #define apzAlpha_SbrkMachs (const char**)NULL | |
2035 | ||
2036 | /* | |
c1b28c63 | 2037 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2038 | */ |
2039 | tSCC zAlpha_SbrkSelect0[] = | |
2040 | "char[ \t]*\\*[\t ]*sbrk[ \t]*\\("; | |
2041 | ||
2042 | #define ALPHA_SBRK_TEST_CT 1 | |
2548396b | 2043 | static tTestDesc aAlpha_SbrkTests[] = { |
5daf7ede | 2044 | { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2045 | |
2046 | /* | |
2047 | * Fix Command Arguments for Alpha_Sbrk | |
2048 | */ | |
2548396b | 2049 | static const char* apzAlpha_SbrkPatch[] = { |
472aa368 | 2050 | "format", |
2051 | "void *sbrk(", | |
fdb8fb96 | 2052 | (char*)NULL }; |
2053 | ||
fdb8fb96 | 2054 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2055 | * | |
2c59c6d3 | 2056 | * Description of Avoid_Bool_Define fix |
fdb8fb96 | 2057 | */ |
2c59c6d3 | 2058 | tSCC zAvoid_Bool_DefineName[] = |
2059 | "avoid_bool_define"; | |
d4c4b01d | 2060 | |
fdb8fb96 | 2061 | /* |
2062 | * File name selection pattern | |
2063 | */ | |
2c59c6d3 | 2064 | tSCC zAvoid_Bool_DefineList[] = |
e9afa104 | 2065 | "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0"; |
fdb8fb96 | 2066 | /* |
2067 | * Machine/OS name selection pattern | |
2068 | */ | |
2c59c6d3 | 2069 | #define apzAvoid_Bool_DefineMachs (const char**)NULL |
ada96dc2 | 2070 | |
2071 | /* | |
2072 | * content selection pattern - do fix if pattern found | |
2073 | */ | |
2c59c6d3 | 2074 | tSCC zAvoid_Bool_DefineSelect0[] = |
2075 | "#[ \t]*define[ \t]+bool[ \t]"; | |
2076 | ||
a83746ef | 2077 | /* |
2078 | * content bypass pattern - skip fix if pattern found | |
2079 | */ | |
2080 | tSCC zAvoid_Bool_DefineBypass0[] = | |
162e05b3 | 2081 | "__cplusplus"; |
a83746ef | 2082 | |
2083 | #define AVOID_BOOL_DEFINE_TEST_CT 2 | |
2548396b | 2084 | static tTestDesc aAvoid_Bool_DefineTests[] = { |
a83746ef | 2085 | { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL }, |
2c59c6d3 | 2086 | { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, }; |
ada96dc2 | 2087 | |
2088 | /* | |
2c59c6d3 | 2089 | * Fix Command Arguments for Avoid_Bool_Define |
ada96dc2 | 2090 | */ |
2548396b | 2091 | static const char* apzAvoid_Bool_DefinePatch[] = { |
2c59c6d3 | 2092 | "format", |
2093 | "#ifndef __cplusplus\n\ | |
2094 | %0\n\ | |
2095 | #endif", | |
2096 | "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*", | |
2097 | (char*)NULL }; | |
ada96dc2 | 2098 | |
2c59c6d3 | 2099 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2100 | * | |
2101 | * Description of Avoid_Bool_Type fix | |
2102 | */ | |
2c59c6d3 | 2103 | tSCC zAvoid_Bool_TypeName[] = |
2104 | "avoid_bool_type"; | |
fdb8fb96 | 2105 | |
2106 | /* | |
2c59c6d3 | 2107 | * File name selection pattern |
fdb8fb96 | 2108 | */ |
2c59c6d3 | 2109 | tSCC zAvoid_Bool_TypeList[] = |
e9afa104 | 2110 | "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0"; |
2c59c6d3 | 2111 | /* |
2112 | * Machine/OS name selection pattern | |
2113 | */ | |
2114 | #define apzAvoid_Bool_TypeMachs (const char**)NULL | |
2115 | ||
2116 | /* | |
2117 | * content selection pattern - do fix if pattern found | |
2118 | */ | |
2119 | tSCC zAvoid_Bool_TypeSelect0[] = | |
2120 | "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;"; | |
2121 | ||
a83746ef | 2122 | /* |
2123 | * content bypass pattern - skip fix if pattern found | |
2124 | */ | |
2125 | tSCC zAvoid_Bool_TypeBypass0[] = | |
162e05b3 | 2126 | "__cplusplus"; |
a83746ef | 2127 | |
2128 | #define AVOID_BOOL_TYPE_TEST_CT 2 | |
2548396b | 2129 | static tTestDesc aAvoid_Bool_TypeTests[] = { |
a83746ef | 2130 | { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL }, |
2c59c6d3 | 2131 | { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, }; |
2132 | ||
2133 | /* | |
2134 | * Fix Command Arguments for Avoid_Bool_Type | |
2135 | */ | |
2548396b | 2136 | static const char* apzAvoid_Bool_TypePatch[] = { |
2c59c6d3 | 2137 | "format", |
2138 | "#ifndef __cplusplus\n\ | |
2139 | %0\n\ | |
2140 | #endif", | |
fdb8fb96 | 2141 | (char*)NULL }; |
2142 | ||
7ab30fe8 | 2143 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2144 | * | |
2145 | * Description of Avoid_Wchar_T_Type fix | |
2146 | */ | |
7ab30fe8 | 2147 | tSCC zAvoid_Wchar_T_TypeName[] = |
2148 | "avoid_wchar_t_type"; | |
2149 | ||
2150 | /* | |
2151 | * File name selection pattern | |
2152 | */ | |
2153 | #define zAvoid_Wchar_T_TypeList (char*)NULL | |
2154 | /* | |
2155 | * Machine/OS name selection pattern | |
2156 | */ | |
2157 | #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL | |
2158 | ||
2159 | /* | |
2160 | * content selection pattern - do fix if pattern found | |
2161 | */ | |
2162 | tSCC zAvoid_Wchar_T_TypeSelect0[] = | |
2163 | "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;"; | |
2164 | ||
5f6aa019 | 2165 | /* |
2166 | * content bypass pattern - skip fix if pattern found | |
2167 | */ | |
2168 | tSCC zAvoid_Wchar_T_TypeBypass0[] = | |
37e6e5d2 | 2169 | "__cplusplus"; |
5f6aa019 | 2170 | tSCC zAvoid_Wchar_T_TypeBypass1[] = |
2171 | "_LINUX_NLS_H"; | |
2172 | tSCC zAvoid_Wchar_T_TypeBypass2[] = | |
2173 | "XFree86: xc/lib/X11/Xlib\\.h"; | |
2174 | ||
2175 | #define AVOID_WCHAR_T_TYPE_TEST_CT 4 | |
7ab30fe8 | 2176 | static tTestDesc aAvoid_Wchar_T_TypeTests[] = { |
5f6aa019 | 2177 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL }, |
2178 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL }, | |
2179 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL }, | |
7ab30fe8 | 2180 | { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, }; |
2181 | ||
2182 | /* | |
2183 | * Fix Command Arguments for Avoid_Wchar_T_Type | |
2184 | */ | |
2185 | static const char* apzAvoid_Wchar_T_TypePatch[] = { | |
2186 | "format", | |
2187 | "#ifndef __cplusplus\n\ | |
2188 | %0\n\ | |
2189 | #endif", | |
7ab30fe8 | 2190 | (char*)NULL }; |
2191 | ||
fdb8fb96 | 2192 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2193 | * | |
5daf7ede | 2194 | * Description of Bad_Struct_Term fix |
fdb8fb96 | 2195 | */ |
2196 | tSCC zBad_Struct_TermName[] = | |
d4c4b01d | 2197 | "bad_struct_term"; |
2198 | ||
fdb8fb96 | 2199 | /* |
2200 | * File name selection pattern | |
2201 | */ | |
2202 | tSCC zBad_Struct_TermList[] = | |
e9afa104 | 2203 | "curses.h\0"; |
fdb8fb96 | 2204 | /* |
2205 | * Machine/OS name selection pattern | |
2206 | */ | |
2207 | #define apzBad_Struct_TermMachs (const char**)NULL | |
2208 | ||
2209 | /* | |
c1b28c63 | 2210 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2211 | */ |
2212 | tSCC zBad_Struct_TermSelect0[] = | |
2213 | "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;"; | |
2214 | ||
2215 | #define BAD_STRUCT_TERM_TEST_CT 1 | |
2548396b | 2216 | static tTestDesc aBad_Struct_TermTests[] = { |
5daf7ede | 2217 | { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2218 | |
2219 | /* | |
2220 | * Fix Command Arguments for Bad_Struct_Term | |
2221 | */ | |
2548396b | 2222 | static const char* apzBad_Struct_TermPatch[] = { |
2c59c6d3 | 2223 | "format", |
2224 | "struct term;", | |
fdb8fb96 | 2225 | (char*)NULL }; |
2226 | ||
2227 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2228 | * | |
5daf7ede | 2229 | * Description of Badquote fix |
fdb8fb96 | 2230 | */ |
2231 | tSCC zBadquoteName[] = | |
d4c4b01d | 2232 | "badquote"; |
2233 | ||
fdb8fb96 | 2234 | /* |
2235 | * File name selection pattern | |
2236 | */ | |
2237 | tSCC zBadquoteList[] = | |
e9afa104 | 2238 | "sundev/vuid_event.h\0"; |
fdb8fb96 | 2239 | /* |
2240 | * Machine/OS name selection pattern | |
2241 | */ | |
2242 | #define apzBadquoteMachs (const char**)NULL | |
2c59c6d3 | 2243 | |
2244 | /* | |
2245 | * content selection pattern - do fix if pattern found | |
2246 | */ | |
2247 | tSCC zBadquoteSelect0[] = | |
2248 | "doesn't"; | |
2249 | ||
2250 | #define BADQUOTE_TEST_CT 1 | |
2548396b | 2251 | static tTestDesc aBadquoteTests[] = { |
2c59c6d3 | 2252 | { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2253 | |
2254 | /* | |
2255 | * Fix Command Arguments for Badquote | |
2256 | */ | |
2548396b | 2257 | static const char* apzBadquotePatch[] = { |
2c59c6d3 | 2258 | "format", |
2259 | "does not", | |
fdb8fb96 | 2260 | (char*)NULL }; |
2261 | ||
fdb8fb96 | 2262 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2263 | * | |
5daf7ede | 2264 | * Description of Broken_Assert_Stdio fix |
fdb8fb96 | 2265 | */ |
2266 | tSCC zBroken_Assert_StdioName[] = | |
d4c4b01d | 2267 | "broken_assert_stdio"; |
2268 | ||
fdb8fb96 | 2269 | /* |
2270 | * File name selection pattern | |
2271 | */ | |
2272 | tSCC zBroken_Assert_StdioList[] = | |
e9afa104 | 2273 | "assert.h\0"; |
fdb8fb96 | 2274 | /* |
2275 | * Machine/OS name selection pattern | |
2276 | */ | |
2277 | #define apzBroken_Assert_StdioMachs (const char**)NULL | |
2278 | ||
2279 | /* | |
c1b28c63 | 2280 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2281 | */ |
2282 | tSCC zBroken_Assert_StdioSelect0[] = | |
2283 | "stderr"; | |
2284 | ||
2285 | /* | |
c1b28c63 | 2286 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 2287 | */ |
2288 | tSCC zBroken_Assert_StdioBypass0[] = | |
52686fb5 | 2289 | "include.*stdio\\.h"; |
fdb8fb96 | 2290 | |
2291 | #define BROKEN_ASSERT_STDIO_TEST_CT 2 | |
2548396b | 2292 | static tTestDesc aBroken_Assert_StdioTests[] = { |
5daf7ede | 2293 | { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL }, |
2294 | { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 2295 | |
2296 | /* | |
2297 | * Fix Command Arguments for Broken_Assert_Stdio | |
2298 | */ | |
2548396b | 2299 | static const char* apzBroken_Assert_StdioPatch[] = { |
e6650807 | 2300 | "wrap", |
2301 | "#include <stdio.h>\n", | |
fdb8fb96 | 2302 | (char*)NULL }; |
2303 | ||
2304 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2305 | * | |
5daf7ede | 2306 | * Description of Broken_Assert_Stdlib fix |
fdb8fb96 | 2307 | */ |
2308 | tSCC zBroken_Assert_StdlibName[] = | |
d4c4b01d | 2309 | "broken_assert_stdlib"; |
2310 | ||
fdb8fb96 | 2311 | /* |
2312 | * File name selection pattern | |
2313 | */ | |
2314 | tSCC zBroken_Assert_StdlibList[] = | |
e9afa104 | 2315 | "assert.h\0"; |
fdb8fb96 | 2316 | /* |
2317 | * Machine/OS name selection pattern | |
2318 | */ | |
2319 | #define apzBroken_Assert_StdlibMachs (const char**)NULL | |
2320 | ||
2321 | /* | |
c1b28c63 | 2322 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2323 | */ |
2324 | tSCC zBroken_Assert_StdlibSelect0[] = | |
2325 | "exit *\\(|abort *\\("; | |
2326 | ||
2327 | /* | |
c1b28c63 | 2328 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 2329 | */ |
2330 | tSCC zBroken_Assert_StdlibBypass0[] = | |
52686fb5 | 2331 | "include.*stdlib\\.h"; |
fdb8fb96 | 2332 | |
2333 | #define BROKEN_ASSERT_STDLIB_TEST_CT 2 | |
2548396b | 2334 | static tTestDesc aBroken_Assert_StdlibTests[] = { |
5daf7ede | 2335 | { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL }, |
2336 | { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 2337 | |
2338 | /* | |
2339 | * Fix Command Arguments for Broken_Assert_Stdlib | |
2340 | */ | |
2548396b | 2341 | static const char* apzBroken_Assert_StdlibPatch[] = { |
e6650807 | 2342 | "wrap", |
2343 | "#ifdef __cplusplus\n\ | |
2344 | #include <stdlib.h>\n\ | |
2345 | #endif\n", | |
fdb8fb96 | 2346 | (char*)NULL }; |
2347 | ||
58d8674b | 2348 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2349 | * | |
2350 | * Description of Broken_Cabs fix | |
2351 | */ | |
58d8674b | 2352 | tSCC zBroken_CabsName[] = |
2353 | "broken_cabs"; | |
2354 | ||
2355 | /* | |
2356 | * File name selection pattern | |
2357 | */ | |
2358 | tSCC zBroken_CabsList[] = | |
e9afa104 | 2359 | "math.h\0architecture/*/math.h\0"; |
58d8674b | 2360 | /* |
2361 | * Machine/OS name selection pattern | |
2362 | */ | |
2363 | #define apzBroken_CabsMachs (const char**)NULL | |
2364 | ||
2365 | /* | |
2366 | * content selection pattern - do fix if pattern found | |
2367 | */ | |
2368 | tSCC zBroken_CabsSelect0[] = | |
19754f2b | 2369 | "^extern[ \t]+double[ \t]+cabs"; |
58d8674b | 2370 | |
2371 | #define BROKEN_CABS_TEST_CT 1 | |
2548396b | 2372 | static tTestDesc aBroken_CabsTests[] = { |
58d8674b | 2373 | { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, }; |
2374 | ||
2375 | /* | |
2376 | * Fix Command Arguments for Broken_Cabs | |
2377 | */ | |
b32d497c | 2378 | static const char* apzBroken_CabsPatch[] = { sed_cmd_z, |
462510b2 | 2379 | "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//", |
2380 | "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//", | |
58d8674b | 2381 | (char*)NULL }; |
2382 | ||
baee91be | 2383 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2384 | * | |
2385 | * Description of Broken_Nan fix | |
2386 | */ | |
2387 | tSCC zBroken_NanName[] = | |
2388 | "broken_nan"; | |
2389 | ||
2390 | /* | |
2391 | * File name selection pattern | |
2392 | */ | |
2393 | tSCC zBroken_NanList[] = | |
e9afa104 | 2394 | "architecture/ppc/math.h\0architecture/*/math.h\0"; |
baee91be | 2395 | /* |
2396 | * Machine/OS name selection pattern | |
2397 | */ | |
2398 | #define apzBroken_NanMachs (const char**)NULL | |
2399 | ||
2400 | /* | |
2401 | * content selection pattern - do fix if pattern found | |
2402 | */ | |
2403 | tSCC zBroken_NanSelect0[] = | |
32f37500 | 2404 | "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)"; |
baee91be | 2405 | |
2406 | /* | |
2407 | * content bypass pattern - skip fix if pattern found | |
2408 | */ | |
2409 | tSCC zBroken_NanBypass0[] = | |
2410 | "powl"; | |
2411 | ||
2412 | #define BROKEN_NAN_TEST_CT 2 | |
2413 | static tTestDesc aBroken_NanTests[] = { | |
2414 | { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL }, | |
2415 | { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, }; | |
2416 | ||
2417 | /* | |
2418 | * Fix Command Arguments for Broken_Nan | |
2419 | */ | |
2420 | static const char* apzBroken_NanPatch[] = { | |
2421 | "format", | |
2422 | "#if 1", | |
2423 | (char*)NULL }; | |
2424 | ||
d45e22c2 | 2425 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2426 | * | |
2427 | * Description of Bsd_Stdio_Attrs_Conflict fix | |
2428 | */ | |
2429 | tSCC zBsd_Stdio_Attrs_ConflictName[] = | |
2430 | "bsd_stdio_attrs_conflict"; | |
2431 | ||
2432 | /* | |
2433 | * File name selection pattern | |
2434 | */ | |
2435 | tSCC zBsd_Stdio_Attrs_ConflictList[] = | |
e9afa104 | 2436 | "stdio.h\0"; |
d45e22c2 | 2437 | /* |
2438 | * Machine/OS name selection pattern | |
2439 | */ | |
2440 | tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = { | |
2441 | "*-*-*bsd*", | |
2442 | "*-*-*darwin*", | |
2443 | (const char*)NULL }; | |
2444 | ||
2445 | /* | |
2446 | * content selection pattern - do fix if pattern found | |
2447 | */ | |
2448 | tSCC zBsd_Stdio_Attrs_ConflictSelect0[] = | |
2449 | "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$"; | |
2450 | ||
2451 | #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1 | |
2452 | static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = { | |
2453 | { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, }; | |
2454 | ||
2455 | /* | |
2456 | * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict | |
2457 | */ | |
2458 | static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = { | |
2459 | "format", | |
2460 | "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\ | |
2461 | #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\ | |
2462 | int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");", | |
2463 | (char*)NULL }; | |
2464 | ||
38ebab8a | 2465 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2466 | * | |
cfe5be71 | 2467 | * Description of Ctrl_Quotes_Def fix |
38ebab8a | 2468 | */ |
cfe5be71 | 2469 | tSCC zCtrl_Quotes_DefName[] = |
2470 | "ctrl_quotes_def"; | |
d4c4b01d | 2471 | |
38ebab8a | 2472 | /* |
2473 | * File name selection pattern | |
2474 | */ | |
cfe5be71 | 2475 | #define zCtrl_Quotes_DefList (char*)NULL |
38ebab8a | 2476 | /* |
2477 | * Machine/OS name selection pattern | |
2478 | */ | |
cfe5be71 | 2479 | #define apzCtrl_Quotes_DefMachs (const char**)NULL |
38ebab8a | 2480 | |
2481 | /* | |
cfe5be71 | 2482 | * content selection pattern - do fix if pattern found |
38ebab8a | 2483 | */ |
cfe5be71 | 2484 | tSCC zCtrl_Quotes_DefSelect0[] = |
edb5e81d | 2485 | "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]"; |
cfe5be71 | 2486 | |
2487 | #define CTRL_QUOTES_DEF_TEST_CT 1 | |
2548396b | 2488 | static tTestDesc aCtrl_Quotes_DefTests[] = { |
cfe5be71 | 2489 | { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, }; |
2490 | ||
2491 | /* | |
2492 | * Fix Command Arguments for Ctrl_Quotes_Def | |
2493 | */ | |
2548396b | 2494 | static const char* apzCtrl_Quotes_DefPatch[] = { |
cfe5be71 | 2495 | "char_macro_def", |
2496 | "CTRL", | |
38ebab8a | 2497 | (char*)NULL }; |
2498 | ||
fdb8fb96 | 2499 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2500 | * | |
cfe5be71 | 2501 | * Description of Ctrl_Quotes_Use fix |
fdb8fb96 | 2502 | */ |
cfe5be71 | 2503 | tSCC zCtrl_Quotes_UseName[] = |
2504 | "ctrl_quotes_use"; | |
d4c4b01d | 2505 | |
fdb8fb96 | 2506 | /* |
2507 | * File name selection pattern | |
2508 | */ | |
cfe5be71 | 2509 | #define zCtrl_Quotes_UseList (char*)NULL |
fdb8fb96 | 2510 | /* |
2511 | * Machine/OS name selection pattern | |
2512 | */ | |
cfe5be71 | 2513 | #define apzCtrl_Quotes_UseMachs (const char**)NULL |
fdb8fb96 | 2514 | |
2515 | /* | |
cfe5be71 | 2516 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2517 | */ |
cfe5be71 | 2518 | tSCC zCtrl_Quotes_UseSelect0[] = |
2519 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']"; | |
2520 | ||
2521 | #define CTRL_QUOTES_USE_TEST_CT 1 | |
2548396b | 2522 | static tTestDesc aCtrl_Quotes_UseTests[] = { |
cfe5be71 | 2523 | { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, }; |
2524 | ||
2525 | /* | |
2526 | * Fix Command Arguments for Ctrl_Quotes_Use | |
2527 | */ | |
2548396b | 2528 | static const char* apzCtrl_Quotes_UsePatch[] = { |
cfe5be71 | 2529 | "char_macro_use", |
2530 | "CTRL", | |
fdb8fb96 | 2531 | (char*)NULL }; |
2532 | ||
fdb8fb96 | 2533 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2534 | * | |
cfe5be71 | 2535 | * Description of Cxx_Unready fix |
fdb8fb96 | 2536 | */ |
cfe5be71 | 2537 | tSCC zCxx_UnreadyName[] = |
2538 | "cxx_unready"; | |
d4c4b01d | 2539 | |
fdb8fb96 | 2540 | /* |
2541 | * File name selection pattern | |
2542 | */ | |
cfe5be71 | 2543 | tSCC zCxx_UnreadyList[] = |
e9afa104 | 2544 | "sys/mman.h\0rpc/types.h\0"; |
fdb8fb96 | 2545 | /* |
2546 | * Machine/OS name selection pattern | |
2547 | */ | |
cfe5be71 | 2548 | #define apzCxx_UnreadyMachs (const char**)NULL |
fdb8fb96 | 2549 | |
2550 | /* | |
c1b28c63 | 2551 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2552 | */ |
cfe5be71 | 2553 | tSCC zCxx_UnreadySelect0[] = |
2554 | "[^#]+malloc.*;"; | |
fdb8fb96 | 2555 | |
cfe5be71 | 2556 | /* |
2557 | * content bypass pattern - skip fix if pattern found | |
2558 | */ | |
2559 | tSCC zCxx_UnreadyBypass0[] = | |
2560 | "\"C\"|__BEGIN_DECLS"; | |
2561 | ||
2562 | #define CXX_UNREADY_TEST_CT 2 | |
2548396b | 2563 | static tTestDesc aCxx_UnreadyTests[] = { |
cfe5be71 | 2564 | { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, |
2565 | { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 2566 | |
2567 | /* | |
cfe5be71 | 2568 | * Fix Command Arguments for Cxx_Unready |
fdb8fb96 | 2569 | */ |
2548396b | 2570 | static const char* apzCxx_UnreadyPatch[] = { |
cfe5be71 | 2571 | "wrap", |
2572 | "#ifdef __cplusplus\n\ | |
2573 | extern \"C\" {\n\ | |
2574 | #endif\n", | |
2575 | "#ifdef __cplusplus\n\ | |
2576 | }\n\ | |
2577 | #endif\n", | |
fdb8fb96 | 2578 | (char*)NULL }; |
2579 | ||
a11195e1 | 2580 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2581 | * | |
2582 | * Description of Darwin_Availabilityinternal fix | |
2583 | */ | |
2584 | tSCC zDarwin_AvailabilityinternalName[] = | |
2585 | "darwin_availabilityinternal"; | |
2586 | ||
2587 | /* | |
2588 | * File name selection pattern | |
2589 | */ | |
2590 | tSCC zDarwin_AvailabilityinternalList[] = | |
2591 | "AvailabilityInternal.h\0"; | |
2592 | /* | |
2593 | * Machine/OS name selection pattern | |
2594 | */ | |
2595 | tSCC* apzDarwin_AvailabilityinternalMachs[] = { | |
2596 | "*-*-darwin*", | |
2597 | (const char*)NULL }; | |
2598 | ||
2599 | /* | |
2600 | * content selection pattern - do fix if pattern found | |
2601 | */ | |
2602 | tSCC zDarwin_AvailabilityinternalSelect0[] = | |
2603 | "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*"; | |
2604 | ||
2605 | #define DARWIN_AVAILABILITYINTERNAL_TEST_CT 1 | |
2606 | static tTestDesc aDarwin_AvailabilityinternalTests[] = { | |
2607 | { TT_EGREP, zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, }; | |
2608 | ||
2609 | /* | |
2610 | * Fix Command Arguments for Darwin_Availabilityinternal | |
2611 | */ | |
2612 | static const char* apzDarwin_AvailabilityinternalPatch[] = { | |
2613 | "format", | |
2614 | "#if defined(__has_attribute)\n\ | |
2615 | #if __has_attribute(availability)\n\ | |
2616 | %0\n\ | |
2617 | #else\n\ | |
2618 | #define %1\n\ | |
2619 | #endif\n\ | |
2620 | #else\n\ | |
2621 | #define %1\n\ | |
2622 | #endif", | |
2623 | (char*)NULL }; | |
2624 | ||
32f37500 | 2625 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2626 | * | |
2627 | * Description of Darwin_9_Long_Double_Funcs_2 fix | |
2628 | */ | |
2629 | tSCC zDarwin_9_Long_Double_Funcs_2Name[] = | |
2630 | "darwin_9_long_double_funcs_2"; | |
2631 | ||
2632 | /* | |
2633 | * File name selection pattern | |
2634 | */ | |
2635 | tSCC zDarwin_9_Long_Double_Funcs_2List[] = | |
2636 | "math.h\0"; | |
2637 | /* | |
2638 | * Machine/OS name selection pattern | |
2639 | */ | |
2640 | tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = { | |
2641 | "*-*-darwin7.9*", | |
2642 | (const char*)NULL }; | |
2643 | ||
2644 | /* | |
2645 | * content selection pattern - do fix if pattern found | |
2646 | */ | |
2647 | tSCC zDarwin_9_Long_Double_Funcs_2Select0[] = | |
2648 | "#include[ \\t]+\\\""; | |
2649 | ||
2650 | #define DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1 | |
2651 | static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = { | |
2652 | { TT_EGREP, zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, }; | |
2653 | ||
2654 | /* | |
2655 | * Fix Command Arguments for Darwin_9_Long_Double_Funcs_2 | |
2656 | */ | |
2657 | static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = { | |
2658 | "format", | |
2659 | "%1<%2.h>", | |
2660 | "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"", | |
2661 | (char*)NULL }; | |
2662 | ||
1908d6ac | 2663 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2664 | * | |
2665 | * Description of Darwin_Externc fix | |
2666 | */ | |
2667 | tSCC zDarwin_ExterncName[] = | |
2668 | "darwin_externc"; | |
2669 | ||
2670 | /* | |
2671 | * File name selection pattern | |
2672 | */ | |
2673 | tSCC zDarwin_ExterncList[] = | |
2674 | "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0"; | |
2675 | /* | |
2676 | * Machine/OS name selection pattern | |
2677 | */ | |
2678 | tSCC* apzDarwin_ExterncMachs[] = { | |
2679 | "*-*-darwin*", | |
2680 | (const char*)NULL }; | |
2681 | ||
2682 | /* | |
2683 | * content bypass pattern - skip fix if pattern found | |
2684 | */ | |
2685 | tSCC zDarwin_ExterncBypass0[] = | |
2686 | "extern \"C\""; | |
2687 | tSCC zDarwin_ExterncBypass1[] = | |
2688 | "__BEGIN_DECLS"; | |
2689 | ||
2690 | #define DARWIN_EXTERNC_TEST_CT 2 | |
2691 | static tTestDesc aDarwin_ExterncTests[] = { | |
2692 | { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL }, | |
2693 | { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, }; | |
2694 | ||
2695 | /* | |
2696 | * Fix Command Arguments for Darwin_Externc | |
2697 | */ | |
2698 | static const char* apzDarwin_ExterncPatch[] = { | |
2699 | "wrap", | |
2700 | "#ifdef __cplusplus\n\ | |
2701 | extern \"C\" {\n\ | |
2702 | #endif\n", | |
2703 | "#ifdef __cplusplus\n\ | |
2704 | }\n\ | |
2705 | #endif\n", | |
2706 | (char*)NULL }; | |
2707 | ||
975d636c | 2708 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2709 | * | |
2710 | * Description of Darwin_Gcc4_Breakage fix | |
2711 | */ | |
2712 | tSCC zDarwin_Gcc4_BreakageName[] = | |
2713 | "darwin_gcc4_breakage"; | |
2714 | ||
2715 | /* | |
2716 | * File name selection pattern | |
2717 | */ | |
2718 | tSCC zDarwin_Gcc4_BreakageList[] = | |
e9afa104 | 2719 | "AvailabilityMacros.h\0"; |
975d636c | 2720 | /* |
2721 | * Machine/OS name selection pattern | |
2722 | */ | |
2723 | tSCC* apzDarwin_Gcc4_BreakageMachs[] = { | |
2724 | "*-*-darwin*", | |
2725 | (const char*)NULL }; | |
2726 | ||
2727 | /* | |
2728 | * content selection pattern - do fix if pattern found | |
2729 | */ | |
2730 | tSCC zDarwin_Gcc4_BreakageSelect0[] = | |
2731 | "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)"; | |
2732 | ||
2733 | #define DARWIN_GCC4_BREAKAGE_TEST_CT 1 | |
2734 | static tTestDesc aDarwin_Gcc4_BreakageTests[] = { | |
2735 | { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; | |
2736 | ||
2737 | /* | |
2738 | * Fix Command Arguments for Darwin_Gcc4_Breakage | |
2739 | */ | |
2740 | static const char* apzDarwin_Gcc4_BreakagePatch[] = { | |
2741 | "format", | |
2742 | "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))", | |
2743 | (char*)NULL }; | |
2744 | ||
d6856a0e | 2745 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2746 | * | |
2747 | * Description of Darwin_Longjmp_Noreturn fix | |
2748 | */ | |
2749 | tSCC zDarwin_Longjmp_NoreturnName[] = | |
2750 | "darwin_longjmp_noreturn"; | |
2751 | ||
2752 | /* | |
2753 | * File name selection pattern | |
2754 | */ | |
2755 | tSCC zDarwin_Longjmp_NoreturnList[] = | |
2756 | "i386/setjmp.h\0"; | |
2757 | /* | |
2758 | * Machine/OS name selection pattern | |
2759 | */ | |
2760 | tSCC* apzDarwin_Longjmp_NoreturnMachs[] = { | |
2761 | "*-*-darwin*", | |
2762 | (const char*)NULL }; | |
2763 | ||
2764 | /* | |
2765 | * content selection pattern - do fix if pattern found | |
2766 | */ | |
2767 | tSCC zDarwin_Longjmp_NoreturnSelect0[] = | |
2768 | "(.*longjmp\\(.*jmp_buf.*[^)]+\\));"; | |
2769 | ||
2770 | /* | |
2771 | * content bypass pattern - skip fix if pattern found | |
2772 | */ | |
2773 | tSCC zDarwin_Longjmp_NoreturnBypass0[] = | |
2774 | "__dead2"; | |
2775 | ||
2776 | #define DARWIN_LONGJMP_NORETURN_TEST_CT 2 | |
2777 | static tTestDesc aDarwin_Longjmp_NoreturnTests[] = { | |
2778 | { TT_NEGREP, zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL }, | |
2779 | { TT_EGREP, zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, }; | |
2780 | ||
2781 | /* | |
2782 | * Fix Command Arguments for Darwin_Longjmp_Noreturn | |
2783 | */ | |
2784 | static const char* apzDarwin_Longjmp_NoreturnPatch[] = { | |
2785 | "format", | |
2786 | "%1 __attribute__ ((__noreturn__));", | |
2787 | (char*)NULL }; | |
2788 | ||
a11195e1 | 2789 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2790 | * | |
2791 | * Description of Darwin_Os_Trace_1 fix | |
2792 | */ | |
2793 | tSCC zDarwin_Os_Trace_1Name[] = | |
2794 | "darwin_os_trace_1"; | |
2795 | ||
2796 | /* | |
2797 | * File name selection pattern | |
2798 | */ | |
2799 | tSCC zDarwin_Os_Trace_1List[] = | |
2800 | "os/trace.h\0"; | |
2801 | /* | |
2802 | * Machine/OS name selection pattern | |
2803 | */ | |
2804 | tSCC* apzDarwin_Os_Trace_1Machs[] = { | |
2805 | "*-*-darwin*", | |
2806 | (const char*)NULL }; | |
2807 | ||
2808 | /* | |
2809 | * content selection pattern - do fix if pattern found | |
2810 | */ | |
2811 | tSCC zDarwin_Os_Trace_1Select0[] = | |
2812 | "^(_os_trace_verify_printf.*) (__attribute__.*)"; | |
2813 | ||
2814 | #define DARWIN_OS_TRACE_1_TEST_CT 1 | |
2815 | static tTestDesc aDarwin_Os_Trace_1Tests[] = { | |
2816 | { TT_EGREP, zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, }; | |
2817 | ||
2818 | /* | |
2819 | * Fix Command Arguments for Darwin_Os_Trace_1 | |
2820 | */ | |
2821 | static const char* apzDarwin_Os_Trace_1Patch[] = { | |
2822 | "format", | |
2823 | "%1", | |
2824 | (char*)NULL }; | |
2825 | ||
2826 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2827 | * | |
2828 | * Description of Darwin_Os_Trace_2 fix | |
2829 | */ | |
2830 | tSCC zDarwin_Os_Trace_2Name[] = | |
2831 | "darwin_os_trace_2"; | |
2832 | ||
2833 | /* | |
2834 | * File name selection pattern | |
2835 | */ | |
2836 | tSCC zDarwin_Os_Trace_2List[] = | |
2837 | "os/trace.h\0"; | |
2838 | /* | |
2839 | * Machine/OS name selection pattern | |
2840 | */ | |
2841 | tSCC* apzDarwin_Os_Trace_2Machs[] = { | |
2842 | "*-*-darwin*", | |
2843 | (const char*)NULL }; | |
2844 | ||
2845 | /* | |
2846 | * content selection pattern - do fix if pattern found | |
2847 | */ | |
2848 | tSCC zDarwin_Os_Trace_2Select0[] = | |
2849 | "typedef.*\\^os_trace_payload_t.*"; | |
2850 | ||
2851 | #define DARWIN_OS_TRACE_2_TEST_CT 1 | |
2852 | static tTestDesc aDarwin_Os_Trace_2Tests[] = { | |
2853 | { TT_EGREP, zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, }; | |
2854 | ||
2855 | /* | |
2856 | * Fix Command Arguments for Darwin_Os_Trace_2 | |
2857 | */ | |
2858 | static const char* apzDarwin_Os_Trace_2Patch[] = { | |
2859 | "format", | |
2860 | "#if __BLOCKS__\n\ | |
2861 | %0\n\ | |
2862 | #endif", | |
2863 | (char*)NULL }; | |
2864 | ||
2865 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2866 | * | |
2867 | * Description of Darwin_Os_Trace_3 fix | |
2868 | */ | |
2869 | tSCC zDarwin_Os_Trace_3Name[] = | |
2870 | "darwin_os_trace_3"; | |
2871 | ||
2872 | /* | |
2873 | * File name selection pattern | |
2874 | */ | |
2875 | tSCC zDarwin_Os_Trace_3List[] = | |
2876 | "os/trace.h\0"; | |
2877 | /* | |
2878 | * Machine/OS name selection pattern | |
2879 | */ | |
2880 | tSCC* apzDarwin_Os_Trace_3Machs[] = { | |
2881 | "*-*-darwin*", | |
2882 | (const char*)NULL }; | |
2883 | ||
2884 | /* | |
2885 | * content selection pattern - do fix if pattern found | |
2886 | */ | |
2887 | tSCC zDarwin_Os_Trace_3Select0[] = | |
2888 | "__(API|OSX)_.*\n\ | |
2889 | OS_EXPORT.*\n\ | |
2890 | .*\n\ | |
2891 | _os_trace.*os_trace_payload_t payload);"; | |
2892 | ||
2893 | #define DARWIN_OS_TRACE_3_TEST_CT 1 | |
2894 | static tTestDesc aDarwin_Os_Trace_3Tests[] = { | |
2895 | { TT_EGREP, zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, }; | |
2896 | ||
2897 | /* | |
2898 | * Fix Command Arguments for Darwin_Os_Trace_3 | |
2899 | */ | |
2900 | static const char* apzDarwin_Os_Trace_3Patch[] = { | |
2901 | "format", | |
2902 | "#if __BLOCKS__\n\ | |
2903 | %0\n\ | |
2904 | #endif", | |
2905 | (char*)NULL }; | |
2906 | ||
3067e435 | 2907 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2908 | * | |
2909 | * Description of Darwin_Private_Extern fix | |
2910 | */ | |
2911 | tSCC zDarwin_Private_ExternName[] = | |
2912 | "darwin_private_extern"; | |
2913 | ||
2914 | /* | |
2915 | * File name selection pattern | |
2916 | */ | |
2917 | tSCC zDarwin_Private_ExternList[] = | |
e9afa104 | 2918 | "mach-o/dyld.h\0"; |
3067e435 | 2919 | /* |
2920 | * Machine/OS name selection pattern | |
2921 | */ | |
2922 | tSCC* apzDarwin_Private_ExternMachs[] = { | |
2923 | "*-*-darwin*", | |
2924 | (const char*)NULL }; | |
2925 | ||
2926 | /* | |
2927 | * content selection pattern - do fix if pattern found | |
2928 | */ | |
2929 | tSCC zDarwin_Private_ExternSelect0[] = | |
2930 | "__private_extern__ [a-z_]+ _dyld_"; | |
2931 | ||
2932 | #define DARWIN_PRIVATE_EXTERN_TEST_CT 1 | |
2933 | static tTestDesc aDarwin_Private_ExternTests[] = { | |
2934 | { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, }; | |
2935 | ||
2936 | /* | |
2937 | * Fix Command Arguments for Darwin_Private_Extern | |
2938 | */ | |
2939 | static const char* apzDarwin_Private_ExternPatch[] = { | |
2940 | "format", | |
2941 | "extern", | |
2942 | "__private_extern__", | |
2943 | (char*)NULL }; | |
2944 | ||
0e1f6b4f | 2945 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2946 | * | |
2947 | * Description of Darwin_Stdint_1 fix | |
2948 | */ | |
2949 | tSCC zDarwin_Stdint_1Name[] = | |
2950 | "darwin_stdint_1"; | |
2951 | ||
2952 | /* | |
2953 | * File name selection pattern | |
2954 | */ | |
2955 | tSCC zDarwin_Stdint_1List[] = | |
e2fb821c | 2956 | "stdint-darwin.h\0stdint.h\0"; |
0e1f6b4f | 2957 | /* |
2958 | * Machine/OS name selection pattern | |
2959 | */ | |
2960 | tSCC* apzDarwin_Stdint_1Machs[] = { | |
2961 | "*-*-darwin*", | |
2962 | (const char*)NULL }; | |
2963 | ||
2964 | /* | |
2965 | * content selection pattern - do fix if pattern found | |
2966 | */ | |
2967 | tSCC zDarwin_Stdint_1Select0[] = | |
2968 | "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\ | |
2969 | #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)"; | |
2970 | ||
2971 | #define DARWIN_STDINT_1_TEST_CT 1 | |
2972 | static tTestDesc aDarwin_Stdint_1Tests[] = { | |
2973 | { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, }; | |
2974 | ||
2975 | /* | |
2976 | * Fix Command Arguments for Darwin_Stdint_1 | |
2977 | */ | |
2978 | static const char* apzDarwin_Stdint_1Patch[] = { | |
2979 | "format", | |
2980 | "#define UINT8_C(v)\tv\n\ | |
2981 | #define UINT16_C(v)\tv", | |
2982 | (char*)NULL }; | |
2983 | ||
2984 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2985 | * | |
2986 | * Description of Darwin_Stdint_2 fix | |
2987 | */ | |
2988 | tSCC zDarwin_Stdint_2Name[] = | |
2989 | "darwin_stdint_2"; | |
2990 | ||
2991 | /* | |
2992 | * File name selection pattern | |
2993 | */ | |
2994 | tSCC zDarwin_Stdint_2List[] = | |
e2fb821c | 2995 | "stdint-darwin.h\0stdint.h\0"; |
0e1f6b4f | 2996 | /* |
2997 | * Machine/OS name selection pattern | |
2998 | */ | |
2999 | tSCC* apzDarwin_Stdint_2Machs[] = { | |
3000 | "*-*-darwin*", | |
3001 | (const char*)NULL }; | |
3002 | ||
3003 | /* | |
3004 | * content selection pattern - do fix if pattern found | |
3005 | */ | |
3006 | tSCC zDarwin_Stdint_2Select0[] = | |
3007 | "#if __WORDSIZE == 64\n\ | |
3008 | #define INTPTR_MIN[ \t]+INT64_MIN\n\ | |
3009 | #define INTPTR_MAX[ \t]+INT64_MAX\n\ | |
3010 | #else\n\ | |
3011 | #define INTPTR_MIN[ \t]+INT32_MIN\n\ | |
3012 | #define INTPTR_MAX[ \t]+INT32_MAX\n\ | |
3013 | #endif"; | |
3014 | ||
3015 | #define DARWIN_STDINT_2_TEST_CT 1 | |
3016 | static tTestDesc aDarwin_Stdint_2Tests[] = { | |
3017 | { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, }; | |
3018 | ||
3019 | /* | |
3020 | * Fix Command Arguments for Darwin_Stdint_2 | |
3021 | */ | |
3022 | static const char* apzDarwin_Stdint_2Patch[] = { | |
3023 | "format", | |
3024 | "#if __WORDSIZE == 64\n\ | |
3025 | #define INTPTR_MAX 9223372036854775807L\n\ | |
3026 | #define INTPTR_MIN (-INTPTR_MAX-1)\n\ | |
3027 | #else\n\ | |
3028 | #define INTPTR_MAX 2147483647L\n\ | |
3029 | #define INTPTR_MIN (-INTPTR_MAX-1)\n\ | |
3030 | #endif", | |
3031 | (char*)NULL }; | |
3032 | ||
3033 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3034 | * | |
3035 | * Description of Darwin_Stdint_3 fix | |
3036 | */ | |
3037 | tSCC zDarwin_Stdint_3Name[] = | |
3038 | "darwin_stdint_3"; | |
3039 | ||
3040 | /* | |
3041 | * File name selection pattern | |
3042 | */ | |
3043 | tSCC zDarwin_Stdint_3List[] = | |
e2fb821c | 3044 | "stdint-darwin.h\0stdint.h\0"; |
0e1f6b4f | 3045 | /* |
3046 | * Machine/OS name selection pattern | |
3047 | */ | |
3048 | tSCC* apzDarwin_Stdint_3Machs[] = { | |
3049 | "*-*-darwin*", | |
3050 | (const char*)NULL }; | |
3051 | ||
3052 | /* | |
3053 | * content selection pattern - do fix if pattern found | |
3054 | */ | |
3055 | tSCC zDarwin_Stdint_3Select0[] = | |
3056 | "#if __WORDSIZE == 64\n\ | |
3057 | #define UINTPTR_MAX[ \t]+UINT64_MAX\n\ | |
3058 | #else\n\ | |
3059 | #define UINTPTR_MAX[ \t]+UINT32_MAX\n\ | |
3060 | #endif"; | |
3061 | ||
3062 | #define DARWIN_STDINT_3_TEST_CT 1 | |
3063 | static tTestDesc aDarwin_Stdint_3Tests[] = { | |
3064 | { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, }; | |
3065 | ||
3066 | /* | |
3067 | * Fix Command Arguments for Darwin_Stdint_3 | |
3068 | */ | |
3069 | static const char* apzDarwin_Stdint_3Patch[] = { | |
3070 | "format", | |
3071 | "#if __WORDSIZE == 64\n\ | |
3072 | #define UINTPTR_MAX 18446744073709551615UL\n\ | |
3073 | #else\n\ | |
3074 | #define UINTPTR_MAX 4294967295UL\n\ | |
3075 | #endif", | |
3076 | (char*)NULL }; | |
3077 | ||
3078 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3079 | * | |
3080 | * Description of Darwin_Stdint_4 fix | |
3081 | */ | |
3082 | tSCC zDarwin_Stdint_4Name[] = | |
3083 | "darwin_stdint_4"; | |
3084 | ||
3085 | /* | |
3086 | * File name selection pattern | |
3087 | */ | |
3088 | tSCC zDarwin_Stdint_4List[] = | |
e2fb821c | 3089 | "stdint-darwin.h\0stdint.h\0"; |
0e1f6b4f | 3090 | /* |
3091 | * Machine/OS name selection pattern | |
3092 | */ | |
3093 | tSCC* apzDarwin_Stdint_4Machs[] = { | |
3094 | "*-*-darwin*", | |
3095 | (const char*)NULL }; | |
3096 | ||
3097 | /* | |
3098 | * content selection pattern - do fix if pattern found | |
3099 | */ | |
3100 | tSCC zDarwin_Stdint_4Select0[] = | |
3101 | "#if __WORDSIZE == 64\n\ | |
3102 | #define SIZE_MAX[ \t]+UINT64_MAX\n\ | |
3103 | #else\n\ | |
3104 | #define SIZE_MAX[ \t]+UINT32_MAX\n\ | |
3105 | #endif"; | |
3106 | ||
3107 | #define DARWIN_STDINT_4_TEST_CT 1 | |
3108 | static tTestDesc aDarwin_Stdint_4Tests[] = { | |
3109 | { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, }; | |
3110 | ||
3111 | /* | |
3112 | * Fix Command Arguments for Darwin_Stdint_4 | |
3113 | */ | |
3114 | static const char* apzDarwin_Stdint_4Patch[] = { | |
3115 | "format", | |
3116 | "#if __WORDSIZE == 64\n\ | |
3117 | #define SIZE_MAX 18446744073709551615UL\n\ | |
3118 | #else\n\ | |
3119 | #define SIZE_MAX 4294967295UL\n\ | |
3120 | #endif", | |
3121 | (char*)NULL }; | |
3122 | ||
c73f01c5 | 3123 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3124 | * | |
3125 | * Description of Darwin_Stdint_5 fix | |
3126 | */ | |
3127 | tSCC zDarwin_Stdint_5Name[] = | |
3128 | "darwin_stdint_5"; | |
3129 | ||
3130 | /* | |
3131 | * File name selection pattern | |
3132 | */ | |
3133 | tSCC zDarwin_Stdint_5List[] = | |
e2fb821c | 3134 | "stdint-darwin.h\0stdint.h\0"; |
c73f01c5 | 3135 | /* |
3136 | * Machine/OS name selection pattern | |
3137 | */ | |
3138 | tSCC* apzDarwin_Stdint_5Machs[] = { | |
3139 | "*-*-darwin*", | |
3140 | (const char*)NULL }; | |
3141 | ||
3142 | /* | |
3143 | * content selection pattern - do fix if pattern found | |
3144 | */ | |
3145 | tSCC zDarwin_Stdint_5Select0[] = | |
3146 | "#define INTMAX_MIN[ \t]+INT64_MIN\n\ | |
3147 | #define INTMAX_MAX[ \t]+INT64_MAX\n\n\ | |
3148 | #define UINTMAX_MAX[ \t]+UINT64_MAX"; | |
3149 | ||
3150 | #define DARWIN_STDINT_5_TEST_CT 1 | |
3151 | static tTestDesc aDarwin_Stdint_5Tests[] = { | |
3152 | { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, }; | |
3153 | ||
3154 | /* | |
3155 | * Fix Command Arguments for Darwin_Stdint_5 | |
3156 | */ | |
3157 | static const char* apzDarwin_Stdint_5Patch[] = { | |
3158 | "format", | |
3159 | "#if __WORDSIZE == 64\n\ | |
3160 | #define INTMAX_MIN (-9223372036854775807L - 1)\n\ | |
3161 | #define INTMAX_MAX 9223372036854775807L\n\ | |
3162 | #define UINTMAX_MAX 18446744073709551615UL\n\ | |
3163 | #else\n\ | |
3164 | #define INTMAX_MIN (-9223372036854775807LL - 1)\n\ | |
3165 | #define INTMAX_MAX 9223372036854775807LL\n\ | |
3166 | #define UINTMAX_MAX 18446744073709551615ULL\n\ | |
3167 | #endif", | |
3168 | (char*)NULL }; | |
3169 | ||
3170 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3171 | * | |
3172 | * Description of Darwin_Stdint_6 fix | |
3173 | */ | |
3174 | tSCC zDarwin_Stdint_6Name[] = | |
3175 | "darwin_stdint_6"; | |
3176 | ||
3177 | /* | |
3178 | * File name selection pattern | |
3179 | */ | |
3180 | tSCC zDarwin_Stdint_6List[] = | |
e2fb821c | 3181 | "stdint-darwin.h\0stdint.h\0"; |
c73f01c5 | 3182 | /* |
3183 | * Machine/OS name selection pattern | |
3184 | */ | |
3185 | tSCC* apzDarwin_Stdint_6Machs[] = { | |
3186 | "*-*-darwin*", | |
3187 | (const char*)NULL }; | |
3188 | ||
3189 | /* | |
3190 | * content selection pattern - do fix if pattern found | |
3191 | */ | |
3192 | tSCC zDarwin_Stdint_6Select0[] = | |
3193 | "#if __WORDSIZE == 64\n\ | |
3194 | #define PTRDIFF_MIN[ \t]+INT64_MIN\n\ | |
3195 | #define PTRDIFF_MAX[ \t]+INT64_MAX\n\ | |
3196 | #else\n\ | |
3197 | #define PTRDIFF_MIN[ \t]+INT32_MIN\n\ | |
3198 | #define PTRDIFF_MAX[ \t]+INT32_MAX\n\ | |
3199 | #endif"; | |
3200 | ||
3201 | #define DARWIN_STDINT_6_TEST_CT 1 | |
3202 | static tTestDesc aDarwin_Stdint_6Tests[] = { | |
3203 | { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, }; | |
3204 | ||
3205 | /* | |
3206 | * Fix Command Arguments for Darwin_Stdint_6 | |
3207 | */ | |
3208 | static const char* apzDarwin_Stdint_6Patch[] = { | |
3209 | "format", | |
3210 | "#if __WORDSIZE == 64\n\ | |
3211 | #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\ | |
3212 | #define PTRDIFF_MAX 9223372036854775807L\n\ | |
3213 | #else\n\ | |
3214 | #define PTRDIFF_MIN (-2147483647 - 1)\n\ | |
3215 | #define PTRDIFF_MAX 2147483647\n\ | |
3216 | #endif", | |
3217 | (char*)NULL }; | |
3218 | ||
3219 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3220 | * | |
3221 | * Description of Darwin_Stdint_7 fix | |
3222 | */ | |
3223 | tSCC zDarwin_Stdint_7Name[] = | |
3224 | "darwin_stdint_7"; | |
3225 | ||
3226 | /* | |
3227 | * File name selection pattern | |
3228 | */ | |
3229 | tSCC zDarwin_Stdint_7List[] = | |
e2fb821c | 3230 | "stdint-darwin.h\0stdint.h\0"; |
c73f01c5 | 3231 | /* |
3232 | * Machine/OS name selection pattern | |
3233 | */ | |
3234 | tSCC* apzDarwin_Stdint_7Machs[] = { | |
3235 | "*-*-darwin*", | |
3236 | (const char*)NULL }; | |
3237 | ||
3238 | /* | |
3239 | * content selection pattern - do fix if pattern found | |
3240 | */ | |
3241 | tSCC zDarwin_Stdint_7Select0[] = | |
3242 | "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\ | |
3243 | #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)"; | |
3244 | ||
3245 | #define DARWIN_STDINT_7_TEST_CT 1 | |
3246 | static tTestDesc aDarwin_Stdint_7Tests[] = { | |
3247 | { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, }; | |
3248 | ||
3249 | /* | |
3250 | * Fix Command Arguments for Darwin_Stdint_7 | |
3251 | */ | |
3252 | static const char* apzDarwin_Stdint_7Patch[] = { | |
3253 | "format", | |
3254 | "#if __WORDSIZE == 64\n\ | |
3255 | #define INTMAX_C(v) (v ## L)\n\ | |
3256 | #define UINTMAX_C(v) (v ## UL)\n\ | |
3257 | #else\n\ | |
3258 | #define INTMAX_C(v) (v ## LL)\n\ | |
3259 | #define UINTMAX_C(v) (v ## ULL)\n\ | |
3260 | #endif", | |
3261 | (char*)NULL }; | |
3262 | ||
fdb8fb96 | 3263 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3264 | * | |
cfe5be71 | 3265 | * Description of Dec_Intern_Asm fix |
fdb8fb96 | 3266 | */ |
cfe5be71 | 3267 | tSCC zDec_Intern_AsmName[] = |
3268 | "dec_intern_asm"; | |
d4c4b01d | 3269 | |
fdb8fb96 | 3270 | /* |
3271 | * File name selection pattern | |
3272 | */ | |
cfe5be71 | 3273 | tSCC zDec_Intern_AsmList[] = |
e9afa104 | 3274 | "c_asm.h\0"; |
fdb8fb96 | 3275 | /* |
3276 | * Machine/OS name selection pattern | |
3277 | */ | |
cfe5be71 | 3278 | #define apzDec_Intern_AsmMachs (const char**)NULL |
3279 | #define DEC_INTERN_ASM_TEST_CT 0 | |
3280 | #define aDec_Intern_AsmTests (tTestDesc*)NULL | |
fdb8fb96 | 3281 | |
3282 | /* | |
cfe5be71 | 3283 | * Fix Command Arguments for Dec_Intern_Asm |
fdb8fb96 | 3284 | */ |
b32d497c | 3285 | static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z, |
cfe5be71 | 3286 | "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\ |
3287 | #ifdef __DECC\n", | |
3288 | "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ | |
3289 | #endif\n", | |
3290 | (char*)NULL }; | |
fdb8fb96 | 3291 | |
8c74272d | 3292 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3293 | * | |
3294 | * Description of Djgpp_Wchar_H fix | |
3295 | */ | |
8c74272d | 3296 | tSCC zDjgpp_Wchar_HName[] = |
3297 | "djgpp_wchar_h"; | |
3298 | ||
3299 | /* | |
3300 | * File name selection pattern | |
3301 | */ | |
3302 | #define zDjgpp_Wchar_HList (char*)NULL | |
3303 | /* | |
3304 | * Machine/OS name selection pattern | |
3305 | */ | |
3306 | #define apzDjgpp_Wchar_HMachs (const char**)NULL | |
3307 | ||
3308 | /* | |
3309 | * content selection pattern - do fix if pattern found | |
3310 | */ | |
3311 | tSCC zDjgpp_Wchar_HSelect0[] = | |
3312 | "__DJ_wint_t"; | |
3313 | ||
3314 | /* | |
3315 | * content bypass pattern - skip fix if pattern found | |
3316 | */ | |
3317 | tSCC zDjgpp_Wchar_HBypass0[] = | |
3318 | "sys/djtypes.h"; | |
3319 | ||
3320 | #define DJGPP_WCHAR_H_TEST_CT 2 | |
3321 | static tTestDesc aDjgpp_Wchar_HTests[] = { | |
3322 | { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL }, | |
3323 | { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, }; | |
3324 | ||
3325 | /* | |
3326 | * Fix Command Arguments for Djgpp_Wchar_H | |
3327 | */ | |
3328 | static const char* apzDjgpp_Wchar_HPatch[] = { | |
3329 | "format", | |
3330 | "%0\n\ | |
3331 | #include <sys/djtypes.h>", | |
3332 | "#include <stddef.h>", | |
3333 | (char*)NULL }; | |
3334 | ||
cfe5be71 | 3335 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3336 | * | |
3337 | * Description of Ecd_Cursor fix | |
3338 | */ | |
cfe5be71 | 3339 | tSCC zEcd_CursorName[] = |
3340 | "ecd_cursor"; | |
fdb8fb96 | 3341 | |
3342 | /* | |
cfe5be71 | 3343 | * File name selection pattern |
fdb8fb96 | 3344 | */ |
cfe5be71 | 3345 | tSCC zEcd_CursorList[] = |
e9afa104 | 3346 | "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0"; |
cfe5be71 | 3347 | /* |
3348 | * Machine/OS name selection pattern | |
3349 | */ | |
3350 | #define apzEcd_CursorMachs (const char**)NULL | |
2c59c6d3 | 3351 | |
3352 | /* | |
3353 | * content selection pattern - do fix if pattern found | |
3354 | */ | |
3355 | tSCC zEcd_CursorSelect0[] = | |
3356 | "ecd\\.cursor"; | |
3357 | ||
3358 | #define ECD_CURSOR_TEST_CT 1 | |
2548396b | 3359 | static tTestDesc aEcd_CursorTests[] = { |
2c59c6d3 | 3360 | { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, }; |
cfe5be71 | 3361 | |
3362 | /* | |
3363 | * Fix Command Arguments for Ecd_Cursor | |
3364 | */ | |
2548396b | 3365 | static const char* apzEcd_CursorPatch[] = { |
2c59c6d3 | 3366 | "format", |
3367 | "ecd_cursor", | |
fdb8fb96 | 3368 | (char*)NULL }; |
3369 | ||
d1ed71e5 | 3370 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3371 | * | |
3372 | * Description of Feraiseexcept_Nosse_Divbyzero fix | |
3373 | */ | |
3374 | tSCC zFeraiseexcept_Nosse_DivbyzeroName[] = | |
3375 | "feraiseexcept_nosse_divbyzero"; | |
3376 | ||
3377 | /* | |
3378 | * File name selection pattern | |
3379 | */ | |
3380 | tSCC zFeraiseexcept_Nosse_DivbyzeroList[] = | |
3381 | "bits/fenv.h\0*/bits/fenv.h\0"; | |
3382 | /* | |
3383 | * Machine/OS name selection pattern | |
3384 | */ | |
3385 | tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = { | |
3386 | "i[34567]86-*-linux*", | |
3387 | "x86*-linux*", | |
3388 | "amd64-*-linux*", | |
3389 | (const char*)NULL }; | |
3390 | ||
3391 | /* | |
3392 | * content selection pattern - do fix if pattern found | |
3393 | */ | |
3394 | tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] = | |
3395 | "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$"; | |
3396 | ||
3397 | /* | |
3398 | * content bypass pattern - skip fix if pattern found | |
3399 | */ | |
3400 | tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] = | |
3401 | "\"fdivp .*; fwait\""; | |
3402 | ||
3403 | #define FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT 2 | |
3404 | static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = { | |
3405 | { TT_NEGREP, zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL }, | |
3406 | { TT_EGREP, zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, }; | |
3407 | ||
3408 | /* | |
3409 | * Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero | |
3410 | */ | |
3411 | static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = { | |
3412 | "format", | |
3413 | "# ifdef __SSE_MATH__\n\ | |
3414 | %0\n\ | |
3415 | # else\n\ | |
3416 | %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\ | |
3417 | %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\ | |
3418 | # endif", | |
3419 | (char*)NULL }; | |
3420 | ||
3421 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3422 | * | |
3423 | * Description of Feraiseexcept_Nosse_Invalid fix | |
3424 | */ | |
3425 | tSCC zFeraiseexcept_Nosse_InvalidName[] = | |
3426 | "feraiseexcept_nosse_invalid"; | |
3427 | ||
3428 | /* | |
3429 | * File name selection pattern | |
3430 | */ | |
3431 | tSCC zFeraiseexcept_Nosse_InvalidList[] = | |
3432 | "bits/fenv.h\0*/bits/fenv.h\0"; | |
3433 | /* | |
3434 | * Machine/OS name selection pattern | |
3435 | */ | |
3436 | tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = { | |
3437 | "i[34567]86-*-linux*", | |
3438 | "x86*-linux*", | |
3439 | "amd64-*-linux*", | |
3440 | (const char*)NULL }; | |
3441 | ||
3442 | /* | |
3443 | * content selection pattern - do fix if pattern found | |
3444 | */ | |
3445 | tSCC zFeraiseexcept_Nosse_InvalidSelect0[] = | |
3446 | "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$"; | |
3447 | ||
3448 | /* | |
3449 | * content bypass pattern - skip fix if pattern found | |
3450 | */ | |
3451 | tSCC zFeraiseexcept_Nosse_InvalidBypass0[] = | |
3452 | "\"fdiv .*; fwait\""; | |
3453 | ||
3454 | #define FERAISEEXCEPT_NOSSE_INVALID_TEST_CT 2 | |
3455 | static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = { | |
3456 | { TT_NEGREP, zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL }, | |
3457 | { TT_EGREP, zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, }; | |
3458 | ||
3459 | /* | |
3460 | * Fix Command Arguments for Feraiseexcept_Nosse_Invalid | |
3461 | */ | |
3462 | static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = { | |
3463 | "format", | |
3464 | "# ifdef __SSE_MATH__\n\ | |
3465 | %0\n\ | |
3466 | # else\n\ | |
3467 | %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\ | |
3468 | %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\ | |
3469 | # endif", | |
3470 | (char*)NULL }; | |
3471 | ||
65a92405 | 3472 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3473 | * | |
3474 | * Description of Freebsd_Gcc3_Breakage fix | |
3475 | */ | |
65a92405 | 3476 | tSCC zFreebsd_Gcc3_BreakageName[] = |
3477 | "freebsd_gcc3_breakage"; | |
3478 | ||
3479 | /* | |
3480 | * File name selection pattern | |
3481 | */ | |
3482 | tSCC zFreebsd_Gcc3_BreakageList[] = | |
e9afa104 | 3483 | "sys/cdefs.h\0"; |
65a92405 | 3484 | /* |
3485 | * Machine/OS name selection pattern | |
3486 | */ | |
3487 | tSCC* apzFreebsd_Gcc3_BreakageMachs[] = { | |
3488 | "*-*-freebsd*", | |
3489 | (const char*)NULL }; | |
3490 | ||
3491 | /* | |
3492 | * content selection pattern - do fix if pattern found | |
3493 | */ | |
3494 | tSCC zFreebsd_Gcc3_BreakageSelect0[] = | |
3495 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$"; | |
3496 | ||
3497 | /* | |
3498 | * content bypass pattern - skip fix if pattern found | |
3499 | */ | |
3500 | tSCC zFreebsd_Gcc3_BreakageBypass0[] = | |
3501 | "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)"; | |
3502 | ||
3503 | #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2 | |
3504 | static tTestDesc aFreebsd_Gcc3_BreakageTests[] = { | |
3505 | { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL }, | |
3506 | { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, }; | |
3507 | ||
3508 | /* | |
3509 | * Fix Command Arguments for Freebsd_Gcc3_Breakage | |
3510 | */ | |
3511 | static const char* apzFreebsd_Gcc3_BreakagePatch[] = { | |
3512 | "format", | |
3513 | "%0 || __GNUC__ >= 3", | |
3514 | (char*)NULL }; | |
3515 | ||
f9ac0b87 | 3516 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3517 | * | |
3518 | * Description of Freebsd_Gcc4_Breakage fix | |
3519 | */ | |
3520 | tSCC zFreebsd_Gcc4_BreakageName[] = | |
3521 | "freebsd_gcc4_breakage"; | |
3522 | ||
3523 | /* | |
3524 | * File name selection pattern | |
3525 | */ | |
3526 | tSCC zFreebsd_Gcc4_BreakageList[] = | |
e9afa104 | 3527 | "sys/cdefs.h\0"; |
f9ac0b87 | 3528 | /* |
3529 | * Machine/OS name selection pattern | |
3530 | */ | |
3531 | tSCC* apzFreebsd_Gcc4_BreakageMachs[] = { | |
3532 | "*-*-freebsd*", | |
3533 | (const char*)NULL }; | |
3534 | ||
3535 | /* | |
3536 | * content selection pattern - do fix if pattern found | |
3537 | */ | |
3538 | tSCC zFreebsd_Gcc4_BreakageSelect0[] = | |
3539 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$"; | |
3540 | ||
3541 | #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1 | |
3542 | static tTestDesc aFreebsd_Gcc4_BreakageTests[] = { | |
3543 | { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; | |
3544 | ||
3545 | /* | |
3546 | * Fix Command Arguments for Freebsd_Gcc4_Breakage | |
3547 | */ | |
3548 | static const char* apzFreebsd_Gcc4_BreakagePatch[] = { | |
3549 | "format", | |
3550 | "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3", | |
3551 | (char*)NULL }; | |
3552 | ||
efb8e7bf | 3553 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3554 | * | |
3555 | * Description of Glibc_C99_Inline_1 fix | |
3556 | */ | |
3557 | tSCC zGlibc_C99_Inline_1Name[] = | |
3558 | "glibc_c99_inline_1"; | |
3559 | ||
3560 | /* | |
3561 | * File name selection pattern | |
3562 | */ | |
3563 | tSCC zGlibc_C99_Inline_1List[] = | |
e9afa104 | 3564 | "features.h\0*/features.h\0"; |
efb8e7bf | 3565 | /* |
3566 | * Machine/OS name selection pattern | |
3567 | */ | |
3568 | #define apzGlibc_C99_Inline_1Machs (const char**)NULL | |
3569 | ||
3570 | /* | |
3571 | * content selection pattern - do fix if pattern found | |
3572 | */ | |
3573 | tSCC zGlibc_C99_Inline_1Select0[] = | |
3574 | "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$"; | |
3575 | ||
3576 | #define GLIBC_C99_INLINE_1_TEST_CT 1 | |
3577 | static tTestDesc aGlibc_C99_Inline_1Tests[] = { | |
3578 | { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, }; | |
3579 | ||
3580 | /* | |
3581 | * Fix Command Arguments for Glibc_C99_Inline_1 | |
3582 | */ | |
3583 | static const char* apzGlibc_C99_Inline_1Patch[] = { | |
3584 | "format", | |
7e4d47f0 | 3585 | "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)", |
efb8e7bf | 3586 | (char*)NULL }; |
3587 | ||
661832db | 3588 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3589 | * | |
3590 | * Description of Glibc_C99_Inline_1a fix | |
3591 | */ | |
3592 | tSCC zGlibc_C99_Inline_1aName[] = | |
3593 | "glibc_c99_inline_1a"; | |
3594 | ||
3595 | /* | |
3596 | * File name selection pattern | |
3597 | */ | |
3598 | tSCC zGlibc_C99_Inline_1aList[] = | |
3599 | "features.h\0*/features.h\0"; | |
3600 | /* | |
3601 | * Machine/OS name selection pattern | |
3602 | */ | |
3603 | #define apzGlibc_C99_Inline_1aMachs (const char**)NULL | |
3604 | ||
3605 | /* | |
3606 | * content selection pattern - do fix if pattern found | |
3607 | */ | |
3608 | tSCC zGlibc_C99_Inline_1aSelect0[] = | |
3609 | "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\ | |
3610 | (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)"; | |
3611 | ||
3612 | #define GLIBC_C99_INLINE_1A_TEST_CT 1 | |
3613 | static tTestDesc aGlibc_C99_Inline_1aTests[] = { | |
3614 | { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, }; | |
3615 | ||
3616 | /* | |
3617 | * Fix Command Arguments for Glibc_C99_Inline_1a | |
3618 | */ | |
3619 | static const char* apzGlibc_C99_Inline_1aPatch[] = { | |
3620 | "format", | |
3621 | "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\ | |
3622 | %2", | |
3623 | (char*)NULL }; | |
3624 | ||
efb8e7bf | 3625 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3626 | * | |
3627 | * Description of Glibc_C99_Inline_2 fix | |
3628 | */ | |
3629 | tSCC zGlibc_C99_Inline_2Name[] = | |
3630 | "glibc_c99_inline_2"; | |
3631 | ||
3632 | /* | |
3633 | * File name selection pattern | |
3634 | */ | |
3635 | tSCC zGlibc_C99_Inline_2List[] = | |
e9afa104 | 3636 | "sys/stat.h\0*/sys/stat.h\0"; |
efb8e7bf | 3637 | /* |
3638 | * Machine/OS name selection pattern | |
3639 | */ | |
3640 | #define apzGlibc_C99_Inline_2Machs (const char**)NULL | |
3641 | ||
3642 | /* | |
3643 | * content selection pattern - do fix if pattern found | |
3644 | */ | |
3645 | tSCC zGlibc_C99_Inline_2Select0[] = | |
3646 | "extern __inline__ int"; | |
3647 | ||
3648 | #define GLIBC_C99_INLINE_2_TEST_CT 1 | |
3649 | static tTestDesc aGlibc_C99_Inline_2Tests[] = { | |
3650 | { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, }; | |
3651 | ||
3652 | /* | |
3653 | * Fix Command Arguments for Glibc_C99_Inline_2 | |
3654 | */ | |
b32d497c | 3655 | static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z, |
b795c8d1 | 3656 | "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
efb8e7bf | 3657 | extern\\\n\ |
3658 | #endif\\\n\ | |
3659 | __inline__ int \\1/", | |
b795c8d1 | 3660 | "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
3661 | extern\\\n\ | |
3662 | #endif\\\n\ | |
3663 | __inline__ int \\1/", | |
3664 | "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ | |
3665 | extern\\\n\ | |
3666 | #endif\\\n\ | |
3667 | __inline__ int \\1/", | |
3668 | "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ | |
3669 | extern\\\n\ | |
3670 | #endif\\\n\ | |
3671 | __inline__ int __REDIRECT\\1 (\\2/", | |
3672 | "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ | |
efb8e7bf | 3673 | extern\\\n\ |
3674 | #endif\\\n\ | |
7d47204e | 3675 | __inline__ int __REDIRECT\\1 (\\2/", |
7e4d47f0 | 3676 | "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\ |
efb8e7bf | 3677 | extern\\\n\ |
3678 | #endif\\\n\ | |
7d47204e | 3679 | __inline__ int/", |
efb8e7bf | 3680 | (char*)NULL }; |
3681 | ||
3682 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3683 | * | |
3684 | * Description of Glibc_C99_Inline_3 fix | |
3685 | */ | |
3686 | tSCC zGlibc_C99_Inline_3Name[] = | |
3687 | "glibc_c99_inline_3"; | |
3688 | ||
3689 | /* | |
3690 | * File name selection pattern | |
3691 | */ | |
3692 | tSCC zGlibc_C99_Inline_3List[] = | |
e9afa104 | 3693 | "bits/string2.h\0*/bits/string2.h\0"; |
efb8e7bf | 3694 | /* |
3695 | * Machine/OS name selection pattern | |
3696 | */ | |
3697 | #define apzGlibc_C99_Inline_3Machs (const char**)NULL | |
3698 | ||
7e4d47f0 | 3699 | /* |
3700 | * content selection pattern - do fix if pattern found | |
3701 | */ | |
3702 | tSCC zGlibc_C99_Inline_3Select0[] = | |
3703 | "extern __inline"; | |
3704 | ||
efb8e7bf | 3705 | /* |
3706 | * content bypass pattern - skip fix if pattern found | |
3707 | */ | |
3708 | tSCC zGlibc_C99_Inline_3Bypass0[] = | |
661832db | 3709 | "__extern_inline|__GNU_STDC_INLINE__"; |
efb8e7bf | 3710 | |
7e4d47f0 | 3711 | #define GLIBC_C99_INLINE_3_TEST_CT 2 |
efb8e7bf | 3712 | static tTestDesc aGlibc_C99_Inline_3Tests[] = { |
7e4d47f0 | 3713 | { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL }, |
3714 | { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, }; | |
efb8e7bf | 3715 | |
3716 | /* | |
3717 | * Fix Command Arguments for Glibc_C99_Inline_3 | |
3718 | */ | |
3719 | static const char* apzGlibc_C99_Inline_3Patch[] = { | |
3720 | "format", | |
7e4d47f0 | 3721 | "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)", |
efb8e7bf | 3722 | "^# ifdef __cplusplus$", |
3723 | (char*)NULL }; | |
3724 | ||
3725 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3726 | * | |
3727 | * Description of Glibc_C99_Inline_4 fix | |
3728 | */ | |
3729 | tSCC zGlibc_C99_Inline_4Name[] = | |
3730 | "glibc_c99_inline_4"; | |
3731 | ||
3732 | /* | |
3733 | * File name selection pattern | |
3734 | */ | |
3735 | tSCC zGlibc_C99_Inline_4List[] = | |
b7a56dc3 | 3736 | "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0"; |
efb8e7bf | 3737 | /* |
3738 | * Machine/OS name selection pattern | |
3739 | */ | |
3740 | #define apzGlibc_C99_Inline_4Machs (const char**)NULL | |
3741 | ||
560b9c9b | 3742 | /* |
3743 | * content selection pattern - do fix if pattern found | |
3744 | */ | |
3745 | tSCC zGlibc_C99_Inline_4Select0[] = | |
661832db | 3746 | "(^| )extern __inline"; |
560b9c9b | 3747 | |
efb8e7bf | 3748 | /* |
3749 | * content bypass pattern - skip fix if pattern found | |
3750 | */ | |
3751 | tSCC zGlibc_C99_Inline_4Bypass0[] = | |
661832db | 3752 | "__extern_inline|__gnu_inline__"; |
efb8e7bf | 3753 | |
560b9c9b | 3754 | #define GLIBC_C99_INLINE_4_TEST_CT 2 |
efb8e7bf | 3755 | static tTestDesc aGlibc_C99_Inline_4Tests[] = { |
560b9c9b | 3756 | { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL }, |
3757 | { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, }; | |
efb8e7bf | 3758 | |
3759 | /* | |
3760 | * Fix Command Arguments for Glibc_C99_Inline_4 | |
3761 | */ | |
3762 | static const char* apzGlibc_C99_Inline_4Patch[] = { | |
3763 | "format", | |
661832db | 3764 | "%0 __attribute__ ((__gnu_inline__))", |
efb8e7bf | 3765 | (char*)NULL }; |
3766 | ||
a1b11617 | 3767 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3768 | * | |
3769 | * Description of Glibc_Mutex_Init fix | |
3770 | */ | |
3771 | tSCC zGlibc_Mutex_InitName[] = | |
3772 | "glibc_mutex_init"; | |
3773 | ||
3774 | /* | |
3775 | * File name selection pattern | |
3776 | */ | |
3777 | tSCC zGlibc_Mutex_InitList[] = | |
e9afa104 | 3778 | "pthread.h\0"; |
a1b11617 | 3779 | /* |
3780 | * Machine/OS name selection pattern | |
3781 | */ | |
3782 | #define apzGlibc_Mutex_InitMachs (const char**)NULL | |
3783 | ||
3784 | /* | |
3785 | * content selection pattern - do fix if pattern found | |
3786 | */ | |
3787 | tSCC zGlibc_Mutex_InitSelect0[] = | |
3788 | "\\{ *\\{ *0, *\\} *\\}"; | |
3789 | ||
3790 | #define GLIBC_MUTEX_INIT_TEST_CT 1 | |
3791 | static tTestDesc aGlibc_Mutex_InitTests[] = { | |
3792 | { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, }; | |
3793 | ||
3794 | /* | |
3795 | * Fix Command Arguments for Glibc_Mutex_Init | |
3796 | */ | |
b32d497c | 3797 | static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z, |
b795c8d1 | 3798 | "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\ |
b32d497c | 3799 | N\n\ |
3800 | s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\ | |
3801 | }", | |
b795c8d1 | 3802 | "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/", |
3803 | "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/", | |
3804 | "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/", | |
3805 | "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/", | |
3806 | "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/", | |
3807 | "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/", | |
3808 | "-e", "/define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\\n\ | |
3809 | # \\1\\\n\ | |
3810 | { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\ | |
3811 | # else\\\n\ | |
3812 | # \\1\\\n\ | |
3813 | { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\ | |
3814 | # endif/", | |
d0f017a1 | 3815 | "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/", |
b795c8d1 | 3816 | "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/", |
a1b11617 | 3817 | (char*)NULL }; |
3818 | ||
57a812b7 | 3819 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3820 | * | |
3821 | * Description of Glibc_Stdint fix | |
3822 | */ | |
3823 | tSCC zGlibc_StdintName[] = | |
3824 | "glibc_stdint"; | |
3825 | ||
3826 | /* | |
3827 | * File name selection pattern | |
3828 | */ | |
3829 | tSCC zGlibc_StdintList[] = | |
3830 | "stdint.h\0"; | |
3831 | /* | |
3832 | * Machine/OS name selection pattern | |
3833 | */ | |
3834 | #define apzGlibc_StdintMachs (const char**)NULL | |
3835 | ||
3836 | /* | |
3837 | * content selection pattern - do fix if pattern found | |
3838 | */ | |
3839 | tSCC zGlibc_StdintSelect0[] = | |
3840 | "GNU C Library"; | |
3841 | ||
3842 | #define GLIBC_STDINT_TEST_CT 1 | |
3843 | static tTestDesc aGlibc_StdintTests[] = { | |
3844 | { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, }; | |
3845 | ||
3846 | /* | |
3847 | * Fix Command Arguments for Glibc_Stdint | |
3848 | */ | |
3849 | static const char* apzGlibc_StdintPatch[] = { | |
3850 | "format", | |
3851 | "# define UINT8_C(c)\tc\n\ | |
3852 | # define UINT16_C(c)\tc", | |
3853 | "# define UINT8_C\\(c\\)\tc ## U\n\ | |
3854 | # define UINT16_C\\(c\\)\tc ## U", | |
3855 | (char*)NULL }; | |
3856 | ||
5aee6890 | 3857 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3858 | * | |
3859 | * Description of Glibc_Strncpy fix | |
3860 | */ | |
3861 | tSCC zGlibc_StrncpyName[] = | |
3862 | "glibc_strncpy"; | |
3863 | ||
3864 | /* | |
3865 | * File name selection pattern | |
3866 | */ | |
3867 | tSCC zGlibc_StrncpyList[] = | |
d1ed71e5 | 3868 | "bits/string2.h\0*/bits/string2.h\0"; |
5aee6890 | 3869 | /* |
3870 | * Machine/OS name selection pattern | |
3871 | */ | |
3872 | #define apzGlibc_StrncpyMachs (const char**)NULL | |
3873 | ||
3874 | /* | |
3875 | * content bypass pattern - skip fix if pattern found | |
3876 | */ | |
3877 | tSCC zGlibc_StrncpyBypass0[] = | |
3878 | "__builtin_strncpy"; | |
3879 | ||
3880 | #define GLIBC_STRNCPY_TEST_CT 1 | |
3881 | static tTestDesc aGlibc_StrncpyTests[] = { | |
3882 | { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, }; | |
3883 | ||
3884 | /* | |
3885 | * Fix Command Arguments for Glibc_Strncpy | |
3886 | */ | |
3887 | static const char* apzGlibc_StrncpyPatch[] = { | |
3888 | "format", | |
3889 | "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)", | |
3890 | "# define strncpy([^\n\ | |
3891 | ]*\\\\\n\ | |
3892 | )*[^\n\ | |
3893 | ]*", | |
3894 | (char*)NULL }; | |
3895 | ||
a75b1c71 | 3896 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3897 | * | |
3898 | * Description of Glibc_Tgmath fix | |
3899 | */ | |
3900 | tSCC zGlibc_TgmathName[] = | |
3901 | "glibc_tgmath"; | |
3902 | ||
3903 | /* | |
3904 | * File name selection pattern | |
3905 | */ | |
3906 | tSCC zGlibc_TgmathList[] = | |
3907 | "tgmath.h\0"; | |
3908 | /* | |
3909 | * Machine/OS name selection pattern | |
3910 | */ | |
3911 | #define apzGlibc_TgmathMachs (const char**)NULL | |
3912 | ||
3913 | /* | |
3914 | * content selection pattern - do fix if pattern found | |
3915 | */ | |
3916 | tSCC zGlibc_TgmathSelect0[] = | |
3917 | "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)"; | |
3918 | ||
3919 | /* | |
3920 | * content bypass pattern - skip fix if pattern found | |
3921 | */ | |
3922 | tSCC zGlibc_TgmathBypass0[] = | |
5873f213 | 3923 | "__floating_type\\(type\\) \\\\\n\ |
a75b1c71 | 3924 | .*__builtin_classify_type"; |
3925 | ||
3926 | #define GLIBC_TGMATH_TEST_CT 2 | |
3927 | static tTestDesc aGlibc_TgmathTests[] = { | |
3928 | { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL }, | |
3929 | { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, }; | |
3930 | ||
3931 | /* | |
3932 | * Fix Command Arguments for Glibc_Tgmath | |
3933 | */ | |
3934 | static const char* apzGlibc_TgmathPatch[] = { | |
3935 | "format", | |
3936 | "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))", | |
3937 | (char*)NULL }; | |
3938 | ||
3072d11f | 3939 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3940 | * | |
3941 | * Description of Gnu_Types fix | |
3942 | */ | |
3943 | tSCC zGnu_TypesName[] = | |
3944 | "gnu_types"; | |
3945 | ||
3946 | /* | |
3947 | * File name selection pattern | |
3948 | */ | |
3949 | tSCC zGnu_TypesList[] = | |
e9afa104 | 3950 | "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0"; |
3072d11f | 3951 | /* |
3952 | * Machine/OS name selection pattern | |
3953 | */ | |
09a31484 | 3954 | tSCC* apzGnu_TypesMachs[] = { |
3955 | "*-*-solaris2.1[0-9]*", | |
3956 | (const char*)NULL }; | |
3072d11f | 3957 | |
3958 | /* | |
3959 | * content selection pattern - do fix if pattern found | |
3960 | */ | |
3961 | tSCC zGnu_TypesSelect0[] = | |
3962 | "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;"; | |
3963 | ||
3964 | /* | |
3965 | * content bypass pattern - skip fix if pattern found | |
3966 | */ | |
3967 | tSCC zGnu_TypesBypass0[] = | |
3968 | "_GCC_(PTRDIFF|SIZE|WCHAR)_T"; | |
3969 | ||
3970 | #define GNU_TYPES_TEST_CT 2 | |
3971 | static tTestDesc aGnu_TypesTests[] = { | |
3972 | { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL }, | |
3973 | { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, }; | |
3974 | ||
3975 | /* | |
3976 | * Fix Command Arguments for Gnu_Types | |
3977 | */ | |
3978 | static const char* apzGnu_TypesPatch[] = { | |
3979 | "gnu_type", | |
3980 | (char*)NULL }; | |
3981 | ||
fdb8fb96 | 3982 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3983 | * | |
cfe5be71 | 3984 | * Description of Hp_Inline fix |
fdb8fb96 | 3985 | */ |
cfe5be71 | 3986 | tSCC zHp_InlineName[] = |
3987 | "hp_inline"; | |
d4c4b01d | 3988 | |
fdb8fb96 | 3989 | /* |
3990 | * File name selection pattern | |
3991 | */ | |
cfe5be71 | 3992 | tSCC zHp_InlineList[] = |
e9afa104 | 3993 | "sys/spinlock.h\0machine/machparam.h\0"; |
fdb8fb96 | 3994 | /* |
3995 | * Machine/OS name selection pattern | |
3996 | */ | |
cfe5be71 | 3997 | #define apzHp_InlineMachs (const char**)NULL |
52686fb5 | 3998 | |
3999 | /* | |
4000 | * content selection pattern - do fix if pattern found | |
4001 | */ | |
cfe5be71 | 4002 | tSCC zHp_InlineSelect0[] = |
2c59c6d3 | 4003 | "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/"; |
52686fb5 | 4004 | |
cfe5be71 | 4005 | #define HP_INLINE_TEST_CT 1 |
2548396b | 4006 | static tTestDesc aHp_InlineTests[] = { |
cfe5be71 | 4007 | { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4008 | |
4009 | /* | |
cfe5be71 | 4010 | * Fix Command Arguments for Hp_Inline |
fdb8fb96 | 4011 | */ |
2548396b | 4012 | static const char* apzHp_InlinePatch[] = { |
2c59c6d3 | 4013 | "format", |
4014 | "%1<machine/%2.h>", | |
4015 | "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"", | |
fdb8fb96 | 4016 | (char*)NULL }; |
4017 | ||
4018 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4019 | * | |
cfe5be71 | 4020 | * Description of Hp_Sysfile fix |
fdb8fb96 | 4021 | */ |
cfe5be71 | 4022 | tSCC zHp_SysfileName[] = |
4023 | "hp_sysfile"; | |
d4c4b01d | 4024 | |
fdb8fb96 | 4025 | /* |
4026 | * File name selection pattern | |
4027 | */ | |
cfe5be71 | 4028 | tSCC zHp_SysfileList[] = |
e9afa104 | 4029 | "sys/file.h\0"; |
fdb8fb96 | 4030 | /* |
4031 | * Machine/OS name selection pattern | |
4032 | */ | |
cfe5be71 | 4033 | #define apzHp_SysfileMachs (const char**)NULL |
fdb8fb96 | 4034 | |
4035 | /* | |
c1b28c63 | 4036 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4037 | */ |
cfe5be71 | 4038 | tSCC zHp_SysfileSelect0[] = |
4039 | "HPUX_SOURCE"; | |
fdb8fb96 | 4040 | |
cfe5be71 | 4041 | #define HP_SYSFILE_TEST_CT 1 |
2548396b | 4042 | static tTestDesc aHp_SysfileTests[] = { |
cfe5be71 | 4043 | { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4044 | |
4045 | /* | |
cfe5be71 | 4046 | * Fix Command Arguments for Hp_Sysfile |
fdb8fb96 | 4047 | */ |
2548396b | 4048 | static const char* apzHp_SysfilePatch[] = { |
2c59c6d3 | 4049 | "format", |
4050 | "(struct file *, ...)", | |
4051 | "\\(\\.\\.\\.\\)", | |
fdb8fb96 | 4052 | (char*)NULL }; |
4053 | ||
b32d497c | 4054 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4055 | * | |
4056 | * Description of Hppa_Hpux_Fp_Macros fix | |
4057 | */ | |
4058 | tSCC zHppa_Hpux_Fp_MacrosName[] = | |
4059 | "hppa_hpux_fp_macros"; | |
4060 | ||
4061 | /* | |
4062 | * File name selection pattern | |
4063 | */ | |
4064 | tSCC zHppa_Hpux_Fp_MacrosList[] = | |
4065 | "math.h\0"; | |
4066 | /* | |
4067 | * Machine/OS name selection pattern | |
4068 | */ | |
4069 | tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = { | |
4070 | "hppa*-hp-hpux11*", | |
4071 | (const char*)NULL }; | |
4072 | ||
4073 | /* | |
4074 | * content selection pattern - do fix if pattern found | |
4075 | */ | |
4076 | tSCC zHppa_Hpux_Fp_MacrosSelect0[] = | |
4077 | "#[ \t]*define[ \t]*FP_NORMAL.*\n\ | |
4078 | #[ \t]*define[ \t]*FP_ZERO.*\n\ | |
4079 | #[ \t]*define[ \t]*FP_INFINITE.*\n\ | |
4080 | #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\ | |
4081 | #[ \t]*define[ \t]*FP_NAN.*\n"; | |
4082 | ||
4083 | #define HPPA_HPUX_FP_MACROS_TEST_CT 1 | |
4084 | static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = { | |
4085 | { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, }; | |
4086 | ||
4087 | /* | |
4088 | * Fix Command Arguments for Hppa_Hpux_Fp_Macros | |
4089 | */ | |
4090 | static const char* apzHppa_Hpux_Fp_MacrosPatch[] = { | |
4091 | "format", | |
4092 | "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\ | |
4093 | #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\ | |
4094 | (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\ | |
4095 | %0#endif\n\n\ | |
4096 | #ifdef _INCLUDE_HPUX_SOURCE\n", | |
4097 | (char*)NULL }; | |
4098 | ||
7b900f1a | 4099 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4100 | * | |
4101 | * Description of Hpux10_Cpp_Pow_Inline fix | |
4102 | */ | |
4103 | tSCC zHpux10_Cpp_Pow_InlineName[] = | |
4104 | "hpux10_cpp_pow_inline"; | |
4105 | ||
4106 | /* | |
4107 | * File name selection pattern | |
4108 | */ | |
4109 | tSCC zHpux10_Cpp_Pow_InlineList[] = | |
e9afa104 | 4110 | "fixinc-test-limits.h\0math.h\0"; |
7b900f1a | 4111 | /* |
4112 | * Machine/OS name selection pattern | |
4113 | */ | |
4114 | #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL | |
4115 | ||
4116 | /* | |
4117 | * content selection pattern - do fix if pattern found | |
4118 | */ | |
4119 | tSCC zHpux10_Cpp_Pow_InlineSelect0[] = | |
4120 | "^# +ifdef +__cplusplus\n\ | |
30f9dc1c | 4121 | +\\}\n\ |
4122 | +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\ | |
7b900f1a | 4123 | [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\ |
30f9dc1c | 4124 | +\\}\n\ |
4125 | +extern +\"C\" +\\{\n\ | |
7b900f1a | 4126 | #else\n\ |
4127 | # +endif"; | |
4128 | ||
4129 | #define HPUX10_CPP_POW_INLINE_TEST_CT 1 | |
4130 | static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = { | |
4131 | { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; | |
4132 | ||
4133 | /* | |
4134 | * Fix Command Arguments for Hpux10_Cpp_Pow_Inline | |
4135 | */ | |
4136 | static const char* apzHpux10_Cpp_Pow_InlinePatch[] = { | |
4137 | "format", | |
4138 | "", | |
4139 | (char*)NULL }; | |
4140 | ||
c6738ff5 | 4141 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4142 | * | |
4143 | * Description of Hpux11_Cpp_Pow_Inline fix | |
4144 | */ | |
4145 | tSCC zHpux11_Cpp_Pow_InlineName[] = | |
4146 | "hpux11_cpp_pow_inline"; | |
4147 | ||
4148 | /* | |
4149 | * File name selection pattern | |
4150 | */ | |
4151 | tSCC zHpux11_Cpp_Pow_InlineList[] = | |
e9afa104 | 4152 | "math.h\0"; |
c6738ff5 | 4153 | /* |
4154 | * Machine/OS name selection pattern | |
4155 | */ | |
4156 | #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL | |
4157 | ||
4158 | /* | |
4159 | * content selection pattern - do fix if pattern found | |
4160 | */ | |
4161 | tSCC zHpux11_Cpp_Pow_InlineSelect0[] = | |
30f9dc1c | 4162 | " +inline double pow\\(double d,int expon\\) \\{\n\ |
c6738ff5 | 4163 | +return pow\\(d, \\(double\\)expon\\);\n\ |
30f9dc1c | 4164 | +\\}\n"; |
c6738ff5 | 4165 | |
4166 | #define HPUX11_CPP_POW_INLINE_TEST_CT 1 | |
4167 | static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = { | |
4168 | { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; | |
4169 | ||
4170 | /* | |
4171 | * Fix Command Arguments for Hpux11_Cpp_Pow_Inline | |
4172 | */ | |
4173 | static const char* apzHpux11_Cpp_Pow_InlinePatch[] = { | |
4174 | "format", | |
4175 | "", | |
4176 | (char*)NULL }; | |
4177 | ||
ca58af19 | 4178 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4179 | * | |
ebf664b2 | 4180 | * Description of Hpux10_Ctype_Declarations1 fix |
ca58af19 | 4181 | */ |
ebf664b2 | 4182 | tSCC zHpux10_Ctype_Declarations1Name[] = |
4183 | "hpux10_ctype_declarations1"; | |
ca58af19 | 4184 | |
4185 | /* | |
4186 | * File name selection pattern | |
4187 | */ | |
ebf664b2 | 4188 | tSCC zHpux10_Ctype_Declarations1List[] = |
e9afa104 | 4189 | "ctype.h\0"; |
ca58af19 | 4190 | /* |
4191 | * Machine/OS name selection pattern | |
4192 | */ | |
ebf664b2 | 4193 | #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL |
ca58af19 | 4194 | |
4195 | /* | |
4196 | * content selection pattern - do fix if pattern found | |
4197 | */ | |
ebf664b2 | 4198 | tSCC zHpux10_Ctype_Declarations1Select0[] = |
4199 | "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)"; | |
ca58af19 | 4200 | |
ebf664b2 | 4201 | /* |
4202 | * content bypass pattern - skip fix if pattern found | |
4203 | */ | |
4204 | tSCC zHpux10_Ctype_Declarations1Bypass0[] = | |
4205 | "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\("; | |
4206 | ||
4207 | #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2 | |
4208 | static tTestDesc aHpux10_Ctype_Declarations1Tests[] = { | |
4209 | { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL }, | |
4210 | { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, }; | |
ca58af19 | 4211 | |
4212 | /* | |
ebf664b2 | 4213 | * Fix Command Arguments for Hpux10_Ctype_Declarations1 |
ca58af19 | 4214 | */ |
ebf664b2 | 4215 | static const char* apzHpux10_Ctype_Declarations1Patch[] = { |
ca58af19 | 4216 | "format", |
ebf664b2 | 4217 | "#ifdef _PROTOTYPES\n\ |
4218 | extern int __tolower(int);\n\ | |
4219 | extern int __toupper(int);\n\ | |
4220 | #else /* NOT _PROTOTYPES */\n\ | |
4221 | extern int __tolower();\n\ | |
4222 | extern int __toupper();\n\ | |
4223 | #endif /* _PROTOTYPES */\n\n\ | |
4224 | %0\n", | |
ca58af19 | 4225 | (char*)NULL }; |
4226 | ||
6b5183e9 | 4227 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4228 | * | |
ebf664b2 | 4229 | * Description of Hpux10_Ctype_Declarations2 fix |
6b5183e9 | 4230 | */ |
ebf664b2 | 4231 | tSCC zHpux10_Ctype_Declarations2Name[] = |
4232 | "hpux10_ctype_declarations2"; | |
6b5183e9 | 4233 | |
4234 | /* | |
4235 | * File name selection pattern | |
4236 | */ | |
ebf664b2 | 4237 | tSCC zHpux10_Ctype_Declarations2List[] = |
e9afa104 | 4238 | "ctype.h\0"; |
6b5183e9 | 4239 | /* |
4240 | * Machine/OS name selection pattern | |
4241 | */ | |
ebf664b2 | 4242 | #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL |
6b5183e9 | 4243 | |
4244 | /* | |
4245 | * content selection pattern - do fix if pattern found | |
4246 | */ | |
ebf664b2 | 4247 | tSCC zHpux10_Ctype_Declarations2Select0[] = |
4248 | "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)"; | |
6b5183e9 | 4249 | |
f281c5b8 | 4250 | /* |
4251 | * content bypass pattern - skip fix if pattern found | |
4252 | */ | |
ebf664b2 | 4253 | tSCC zHpux10_Ctype_Declarations2Bypass0[] = |
4254 | "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\("; | |
f281c5b8 | 4255 | |
ebf664b2 | 4256 | #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2 |
4257 | static tTestDesc aHpux10_Ctype_Declarations2Tests[] = { | |
4258 | { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL }, | |
4259 | { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, }; | |
6b5183e9 | 4260 | |
4261 | /* | |
ebf664b2 | 4262 | * Fix Command Arguments for Hpux10_Ctype_Declarations2 |
6b5183e9 | 4263 | */ |
ebf664b2 | 4264 | static const char* apzHpux10_Ctype_Declarations2Patch[] = { |
4265 | "format", | |
4266 | "%0\n\n\ | |
4267 | #ifdef _PROTOTYPES\n\ | |
4268 | extern int _isalnum(int);\n\ | |
4269 | extern int _isalpha(int);\n\ | |
4270 | extern int _iscntrl(int);\n\ | |
4271 | extern int _isdigit(int);\n\ | |
4272 | extern int _isgraph(int);\n\ | |
4273 | extern int _islower(int);\n\ | |
4274 | extern int _isprint(int);\n\ | |
4275 | extern int _ispunct(int);\n\ | |
4276 | extern int _isspace(int);\n\ | |
4277 | extern int _isupper(int);\n\ | |
4278 | extern int _isxdigit(int);\n\ | |
4279 | # else /* not _PROTOTYPES */\n\ | |
4280 | extern int _isalnum();\n\ | |
4281 | extern int _isalpha();\n\ | |
4282 | extern int _iscntrl();\n\ | |
4283 | extern int _isdigit();\n\ | |
4284 | extern int _isgraph();\n\ | |
4285 | extern int _islower();\n\ | |
4286 | extern int _isprint();\n\ | |
4287 | extern int _ispunct();\n\ | |
4288 | extern int _isspace();\n\ | |
4289 | extern int _isupper();\n\ | |
4290 | extern int _isxdigit();\n\ | |
4291 | #endif /* _PROTOTYPES */\n", | |
4292 | (char*)NULL }; | |
4293 | ||
37935110 | 4294 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4295 | * | |
4296 | * Description of Hpux10_Stdio_Declarations fix | |
4297 | */ | |
4298 | tSCC zHpux10_Stdio_DeclarationsName[] = | |
4299 | "hpux10_stdio_declarations"; | |
4300 | ||
4301 | /* | |
4302 | * File name selection pattern | |
4303 | */ | |
4304 | tSCC zHpux10_Stdio_DeclarationsList[] = | |
e9afa104 | 4305 | "stdio.h\0"; |
37935110 | 4306 | /* |
4307 | * Machine/OS name selection pattern | |
4308 | */ | |
4309 | #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL | |
4310 | ||
4311 | /* | |
4312 | * content selection pattern - do fix if pattern found | |
4313 | */ | |
4314 | tSCC zHpux10_Stdio_DeclarationsSelect0[] = | |
4315 | "^#[ \t]*define _iob[ \t]*__iob"; | |
4316 | ||
4317 | /* | |
4318 | * content bypass pattern - skip fix if pattern found | |
4319 | */ | |
4320 | tSCC zHpux10_Stdio_DeclarationsBypass0[] = | |
4321 | "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\("; | |
4322 | ||
4323 | #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2 | |
4324 | static tTestDesc aHpux10_Stdio_DeclarationsTests[] = { | |
4325 | { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL }, | |
4326 | { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, }; | |
4327 | ||
4328 | /* | |
4329 | * Fix Command Arguments for Hpux10_Stdio_Declarations | |
4330 | */ | |
4331 | static const char* apzHpux10_Stdio_DeclarationsPatch[] = { | |
4332 | "format", | |
4333 | "%0\n\n\ | |
4334 | # if defined(__STDC__) || defined(__cplusplus)\n\ | |
4335 | extern int snprintf(char *, size_t, const char *, ...);\n\ | |
4336 | extern int vsnprintf(char *, size_t, const char *, __va_list);\n\ | |
4337 | # else /* not __STDC__) || __cplusplus */\n\ | |
4338 | extern int snprintf();\n\ | |
4339 | extern int vsnprintf();\n\ | |
4340 | # endif /* __STDC__) || __cplusplus */\n", | |
4341 | (char*)NULL }; | |
4342 | ||
ebf664b2 | 4343 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4344 | * | |
4345 | * Description of Hpux11_Abs fix | |
4346 | */ | |
4347 | tSCC zHpux11_AbsName[] = | |
4348 | "hpux11_abs"; | |
4349 | ||
4350 | /* | |
4351 | * File name selection pattern | |
4352 | */ | |
4353 | tSCC zHpux11_AbsList[] = | |
e9afa104 | 4354 | "stdlib.h\0"; |
ebf664b2 | 4355 | /* |
4356 | * Machine/OS name selection pattern | |
4357 | */ | |
4358 | tSCC* apzHpux11_AbsMachs[] = { | |
dd60921e | 4359 | "*-hp-hpux11*", |
ebf664b2 | 4360 | (const char*)NULL }; |
4361 | ||
4362 | /* | |
4363 | * content selection pattern - do fix if pattern found | |
4364 | */ | |
4365 | tSCC zHpux11_AbsSelect0[] = | |
4366 | "ifndef _MATH_INCLUDED"; | |
4367 | ||
4368 | #define HPUX11_ABS_TEST_CT 1 | |
4369 | static tTestDesc aHpux11_AbsTests[] = { | |
4370 | { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, }; | |
4371 | ||
4372 | /* | |
4373 | * Fix Command Arguments for Hpux11_Abs | |
4374 | */ | |
4375 | static const char* apzHpux11_AbsPatch[] = { | |
4376 | "format", | |
4377 | "if !defined(_MATH_INCLUDED) || defined(__GNUG__)", | |
6b5183e9 | 4378 | (char*)NULL }; |
4379 | ||
dcc83eef | 4380 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4381 | * | |
4382 | * Description of Hpux11_Lwp_Rwlock_Valid fix | |
4383 | */ | |
4384 | tSCC zHpux11_Lwp_Rwlock_ValidName[] = | |
4385 | "hpux11_lwp_rwlock_valid"; | |
4386 | ||
4387 | /* | |
4388 | * File name selection pattern | |
4389 | */ | |
4390 | tSCC zHpux11_Lwp_Rwlock_ValidList[] = | |
4391 | "sys/pthread.h\0"; | |
4392 | /* | |
4393 | * Machine/OS name selection pattern | |
4394 | */ | |
4395 | tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = { | |
4396 | "*-hp-hpux11*", | |
4397 | (const char*)NULL }; | |
4398 | ||
4399 | /* | |
4400 | * content selection pattern - do fix if pattern found | |
4401 | */ | |
4402 | tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] = | |
4403 | "#define __LWP_RWLOCK_VALID[ \t]*0x8c91"; | |
4404 | ||
4405 | #define HPUX11_LWP_RWLOCK_VALID_TEST_CT 1 | |
4406 | static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = { | |
4407 | { TT_EGREP, zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, }; | |
4408 | ||
4409 | /* | |
4410 | * Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid | |
4411 | */ | |
4412 | static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = { | |
4413 | "format", | |
4414 | "#define __LWP_RWLOCK_VALID -29551", | |
4415 | (char*)NULL }; | |
4416 | ||
d1ed71e5 | 4417 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4418 | * | |
4419 | * Description of Hpux11_Extern_Sendfile fix | |
4420 | */ | |
4421 | tSCC zHpux11_Extern_SendfileName[] = | |
4422 | "hpux11_extern_sendfile"; | |
4423 | ||
4424 | /* | |
4425 | * File name selection pattern | |
4426 | */ | |
4427 | tSCC zHpux11_Extern_SendfileList[] = | |
4428 | "sys/socket.h\0"; | |
4429 | /* | |
4430 | * Machine/OS name selection pattern | |
4431 | */ | |
4432 | tSCC* apzHpux11_Extern_SendfileMachs[] = { | |
4433 | "*-hp-hpux11.[12]*", | |
4434 | (const char*)NULL }; | |
4435 | ||
4436 | /* | |
4437 | * content selection pattern - do fix if pattern found | |
4438 | */ | |
4439 | tSCC zHpux11_Extern_SendfileSelect0[] = | |
4440 | "^[ \t]*extern sbsize_t sendfile.*\n\ | |
4441 | .*, int\\)\\);\n"; | |
4442 | ||
4443 | #define HPUX11_EXTERN_SENDFILE_TEST_CT 1 | |
4444 | static tTestDesc aHpux11_Extern_SendfileTests[] = { | |
4445 | { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, }; | |
4446 | ||
4447 | /* | |
4448 | * Fix Command Arguments for Hpux11_Extern_Sendfile | |
4449 | */ | |
4450 | static const char* apzHpux11_Extern_SendfilePatch[] = { | |
4451 | "format", | |
4452 | "#ifndef _APP32_64BIT_OFF_T\n\ | |
4453 | %0#endif\n", | |
4454 | (char*)NULL }; | |
4455 | ||
4456 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4457 | * | |
4458 | * Description of Hpux11_Extern_Sendpath fix | |
4459 | */ | |
4460 | tSCC zHpux11_Extern_SendpathName[] = | |
4461 | "hpux11_extern_sendpath"; | |
4462 | ||
4463 | /* | |
4464 | * File name selection pattern | |
4465 | */ | |
4466 | tSCC zHpux11_Extern_SendpathList[] = | |
4467 | "sys/socket.h\0"; | |
4468 | /* | |
4469 | * Machine/OS name selection pattern | |
4470 | */ | |
4471 | tSCC* apzHpux11_Extern_SendpathMachs[] = { | |
4472 | "*-hp-hpux11.[12]*", | |
4473 | (const char*)NULL }; | |
4474 | ||
4475 | /* | |
4476 | * content selection pattern - do fix if pattern found | |
4477 | */ | |
4478 | tSCC zHpux11_Extern_SendpathSelect0[] = | |
4479 | "^[ \t]*extern sbsize_t sendpath.*\n\ | |
4480 | .*, int\\)\\);\n"; | |
4481 | ||
4482 | #define HPUX11_EXTERN_SENDPATH_TEST_CT 1 | |
4483 | static tTestDesc aHpux11_Extern_SendpathTests[] = { | |
4484 | { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, }; | |
4485 | ||
4486 | /* | |
4487 | * Fix Command Arguments for Hpux11_Extern_Sendpath | |
4488 | */ | |
4489 | static const char* apzHpux11_Extern_SendpathPatch[] = { | |
4490 | "format", | |
4491 | "#ifndef _APP32_64BIT_OFF_T\n\ | |
4492 | %0#endif\n", | |
4493 | (char*)NULL }; | |
4494 | ||
05fc9903 | 4495 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4496 | * | |
4497 | * Description of Hpux11_Fabsf fix | |
4498 | */ | |
05fc9903 | 4499 | tSCC zHpux11_FabsfName[] = |
4500 | "hpux11_fabsf"; | |
4501 | ||
4502 | /* | |
4503 | * File name selection pattern | |
4504 | */ | |
4505 | tSCC zHpux11_FabsfList[] = | |
e9afa104 | 4506 | "math.h\0"; |
05fc9903 | 4507 | /* |
4508 | * Machine/OS name selection pattern | |
4509 | */ | |
13d9a983 | 4510 | tSCC* apzHpux11_FabsfMachs[] = { |
4511 | "*-hp-hpux11*", | |
4512 | (const char*)NULL }; | |
05fc9903 | 4513 | |
4514 | /* | |
4515 | * content selection pattern - do fix if pattern found | |
4516 | */ | |
4517 | tSCC zHpux11_FabsfSelect0[] = | |
4518 | "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*"; | |
4519 | ||
13d9a983 | 4520 | #define HPUX11_FABSF_TEST_CT 1 |
2548396b | 4521 | static tTestDesc aHpux11_FabsfTests[] = { |
05fc9903 | 4522 | { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, }; |
4523 | ||
4524 | /* | |
4525 | * Fix Command Arguments for Hpux11_Fabsf | |
4526 | */ | |
2548396b | 4527 | static const char* apzHpux11_FabsfPatch[] = { |
05fc9903 | 4528 | "format", |
4529 | "#ifndef __cplusplus\n\ | |
4530 | %0\n\ | |
4531 | #endif", | |
4532 | (char*)NULL }; | |
4533 | ||
b32d497c | 4534 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4535 | * | |
4536 | * Description of Hpux11_Pthread_Const fix | |
4537 | */ | |
4538 | tSCC zHpux11_Pthread_ConstName[] = | |
4539 | "hpux11_pthread_const"; | |
4540 | ||
4541 | /* | |
4542 | * File name selection pattern | |
4543 | */ | |
4544 | tSCC zHpux11_Pthread_ConstList[] = | |
4545 | "sys/pthread.h\0"; | |
4546 | /* | |
4547 | * Machine/OS name selection pattern | |
4548 | */ | |
4549 | tSCC* apzHpux11_Pthread_ConstMachs[] = { | |
4550 | "*-hp-hpux11.[0-3]*", | |
4551 | (const char*)NULL }; | |
4552 | ||
4553 | /* | |
4554 | * content selection pattern - do fix if pattern found | |
4555 | */ | |
4556 | tSCC zHpux11_Pthread_ConstSelect0[] = | |
4557 | "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)"; | |
4558 | ||
4559 | #define HPUX11_PTHREAD_CONST_TEST_CT 1 | |
4560 | static tTestDesc aHpux11_Pthread_ConstTests[] = { | |
4561 | { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, }; | |
4562 | ||
4563 | /* | |
4564 | * Fix Command Arguments for Hpux11_Pthread_Const | |
4565 | */ | |
4566 | static const char* apzHpux11_Pthread_ConstPatch[] = { | |
4567 | "format", | |
4568 | "#define __POINTER_SET\t\t((void *) 1L)", | |
4569 | (char*)NULL }; | |
4570 | ||
c0854bd5 | 4571 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4572 | * | |
4573 | * Description of Hpux11_Size_T fix | |
4574 | */ | |
4575 | tSCC zHpux11_Size_TName[] = | |
4576 | "hpux11_size_t"; | |
4577 | ||
4578 | /* | |
4579 | * File name selection pattern | |
4580 | */ | |
4581 | #define zHpux11_Size_TList (char*)NULL | |
4582 | /* | |
4583 | * Machine/OS name selection pattern | |
4584 | */ | |
4585 | tSCC* apzHpux11_Size_TMachs[] = { | |
3ff85771 | 4586 | "*-hp-hpux11*", |
c0854bd5 | 4587 | (const char*)NULL }; |
4588 | ||
4589 | /* | |
4590 | * content selection pattern - do fix if pattern found | |
4591 | */ | |
4592 | tSCC zHpux11_Size_TSelect0[] = | |
3ff85771 | 4593 | "__size_t"; |
c0854bd5 | 4594 | |
4595 | #define HPUX11_SIZE_T_TEST_CT 1 | |
4596 | static tTestDesc aHpux11_Size_TTests[] = { | |
4597 | { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, }; | |
4598 | ||
4599 | /* | |
4600 | * Fix Command Arguments for Hpux11_Size_T | |
4601 | */ | |
4602 | static const char* apzHpux11_Size_TPatch[] = { | |
4603 | "format", | |
4604 | "_hpux_size_t", | |
c0854bd5 | 4605 | (char*)NULL }; |
4606 | ||
75dc2242 | 4607 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4608 | * | |
4609 | * Description of Hpux11_Snprintf fix | |
4610 | */ | |
4611 | tSCC zHpux11_SnprintfName[] = | |
4612 | "hpux11_snprintf"; | |
4613 | ||
4614 | /* | |
4615 | * File name selection pattern | |
4616 | */ | |
4617 | tSCC zHpux11_SnprintfList[] = | |
e9afa104 | 4618 | "stdio.h\0"; |
75dc2242 | 4619 | /* |
4620 | * Machine/OS name selection pattern | |
4621 | */ | |
4622 | #define apzHpux11_SnprintfMachs (const char**)NULL | |
4623 | ||
4624 | /* | |
4625 | * content selection pattern - do fix if pattern found | |
4626 | */ | |
4627 | tSCC zHpux11_SnprintfSelect0[] = | |
4628 | "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)"; | |
4629 | ||
4630 | #define HPUX11_SNPRINTF_TEST_CT 1 | |
4631 | static tTestDesc aHpux11_SnprintfTests[] = { | |
4632 | { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, }; | |
4633 | ||
4634 | /* | |
4635 | * Fix Command Arguments for Hpux11_Snprintf | |
4636 | */ | |
4637 | static const char* apzHpux11_SnprintfPatch[] = { | |
4638 | "format", | |
4639 | "%1 const %3", | |
4640 | (char*)NULL }; | |
4641 | ||
6b5183e9 | 4642 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4643 | * | |
ebf664b2 | 4644 | * Description of Hpux11_Vsnprintf fix |
6b5183e9 | 4645 | */ |
ebf664b2 | 4646 | tSCC zHpux11_VsnprintfName[] = |
4647 | "hpux11_vsnprintf"; | |
6b5183e9 | 4648 | |
4649 | /* | |
4650 | * File name selection pattern | |
4651 | */ | |
ebf664b2 | 4652 | tSCC zHpux11_VsnprintfList[] = |
e9afa104 | 4653 | "stdio.h\0"; |
6b5183e9 | 4654 | /* |
4655 | * Machine/OS name selection pattern | |
4656 | */ | |
ebf664b2 | 4657 | #define apzHpux11_VsnprintfMachs (const char**)NULL |
6b5183e9 | 4658 | |
4659 | /* | |
4660 | * content selection pattern - do fix if pattern found | |
4661 | */ | |
ebf664b2 | 4662 | tSCC zHpux11_VsnprintfSelect0[] = |
4663 | "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);"; | |
6b5183e9 | 4664 | |
ebf664b2 | 4665 | #define HPUX11_VSNPRINTF_TEST_CT 1 |
4666 | static tTestDesc aHpux11_VsnprintfTests[] = { | |
4667 | { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, }; | |
6b5183e9 | 4668 | |
4669 | /* | |
ebf664b2 | 4670 | * Fix Command Arguments for Hpux11_Vsnprintf |
6b5183e9 | 4671 | */ |
ebf664b2 | 4672 | static const char* apzHpux11_VsnprintfPatch[] = { |
6b5183e9 | 4673 | "format", |
ebf664b2 | 4674 | "%1 __va_list);", |
6b5183e9 | 4675 | (char*)NULL }; |
4676 | ||
122d538c | 4677 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4678 | * | |
4679 | * Description of Hpux_Vsscanf fix | |
4680 | */ | |
4681 | tSCC zHpux_VsscanfName[] = | |
4682 | "hpux_vsscanf"; | |
4683 | ||
4684 | /* | |
4685 | * File name selection pattern | |
4686 | */ | |
4687 | tSCC zHpux_VsscanfList[] = | |
4688 | "stdio.h\0"; | |
4689 | /* | |
4690 | * Machine/OS name selection pattern | |
4691 | */ | |
4692 | tSCC* apzHpux_VsscanfMachs[] = { | |
4693 | "*-*-hpux*", | |
4694 | (const char*)NULL }; | |
4695 | ||
4696 | /* | |
4697 | * content selection pattern - do fix if pattern found | |
4698 | */ | |
4699 | tSCC zHpux_VsscanfSelect0[] = | |
4700 | "(extern int vsscanf\\()char"; | |
4701 | ||
4702 | #define HPUX_VSSCANF_TEST_CT 1 | |
4703 | static tTestDesc aHpux_VsscanfTests[] = { | |
4704 | { TT_EGREP, zHpux_VsscanfSelect0, (regex_t*)NULL }, }; | |
4705 | ||
4706 | /* | |
4707 | * Fix Command Arguments for Hpux_Vsscanf | |
4708 | */ | |
4709 | static const char* apzHpux_VsscanfPatch[] = { | |
4710 | "format", | |
4711 | "%1const char", | |
4712 | (char*)NULL }; | |
4713 | ||
6b5183e9 | 4714 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4715 | * | |
ebf664b2 | 4716 | * Description of Hpux8_Bogus_Inlines fix |
6b5183e9 | 4717 | */ |
ebf664b2 | 4718 | tSCC zHpux8_Bogus_InlinesName[] = |
4719 | "hpux8_bogus_inlines"; | |
6b5183e9 | 4720 | |
4721 | /* | |
4722 | * File name selection pattern | |
4723 | */ | |
ebf664b2 | 4724 | tSCC zHpux8_Bogus_InlinesList[] = |
e9afa104 | 4725 | "math.h\0"; |
6b5183e9 | 4726 | /* |
4727 | * Machine/OS name selection pattern | |
4728 | */ | |
ebf664b2 | 4729 | #define apzHpux8_Bogus_InlinesMachs (const char**)NULL |
6b5183e9 | 4730 | |
4731 | /* | |
4732 | * content selection pattern - do fix if pattern found | |
4733 | */ | |
ebf664b2 | 4734 | tSCC zHpux8_Bogus_InlinesSelect0[] = |
4735 | "inline"; | |
6b5183e9 | 4736 | |
69c13546 | 4737 | /* |
4738 | * content bypass pattern - skip fix if pattern found | |
4739 | */ | |
4740 | tSCC zHpux8_Bogus_InlinesBypass0[] = | |
4741 | "__GNUG__"; | |
4742 | ||
4743 | #define HPUX8_BOGUS_INLINES_TEST_CT 2 | |
ebf664b2 | 4744 | static tTestDesc aHpux8_Bogus_InlinesTests[] = { |
69c13546 | 4745 | { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL }, |
ebf664b2 | 4746 | { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; |
6b5183e9 | 4747 | |
4748 | /* | |
ebf664b2 | 4749 | * Fix Command Arguments for Hpux8_Bogus_Inlines |
6b5183e9 | 4750 | */ |
b32d497c | 4751 | static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z, |
ebf664b2 | 4752 | "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@", |
4753 | "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@", | |
4754 | "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@", | |
4755 | "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@", | |
6b5183e9 | 4756 | (char*)NULL }; |
4757 | ||
4758 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4759 | * | |
d1ed71e5 | 4760 | * Description of Hpux_C99_Intptr fix |
6b5183e9 | 4761 | */ |
d1ed71e5 | 4762 | tSCC zHpux_C99_IntptrName[] = |
4763 | "hpux_c99_intptr"; | |
6b5183e9 | 4764 | |
4765 | /* | |
4766 | * File name selection pattern | |
4767 | */ | |
d1ed71e5 | 4768 | tSCC zHpux_C99_IntptrList[] = |
4769 | "stdint-hpux11.h\0stdint.h\0"; | |
6b5183e9 | 4770 | /* |
4771 | * Machine/OS name selection pattern | |
4772 | */ | |
d1ed71e5 | 4773 | tSCC* apzHpux_C99_IntptrMachs[] = { |
4774 | "*-hp-hpux11.3*", | |
4775 | (const char*)NULL }; | |
4776 | #define HPUX_C99_INTPTR_TEST_CT 0 | |
4777 | #define aHpux_C99_IntptrTests (tTestDesc*)NULL | |
6b5183e9 | 4778 | |
4779 | /* | |
d1ed71e5 | 4780 | * Fix Command Arguments for Hpux_C99_Intptr |
6b5183e9 | 4781 | */ |
d1ed71e5 | 4782 | static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z, |
4783 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@", | |
4784 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@", | |
4785 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@", | |
4786 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@", | |
4787 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@", | |
4788 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@", | |
6b5183e9 | 4789 | (char*)NULL }; |
4790 | ||
1589683c | 4791 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4792 | * | |
d1ed71e5 | 4793 | * Description of Hpux_C99_Inttypes fix |
1589683c | 4794 | */ |
d1ed71e5 | 4795 | tSCC zHpux_C99_InttypesName[] = |
4796 | "hpux_c99_inttypes"; | |
1589683c | 4797 | |
4798 | /* | |
4799 | * File name selection pattern | |
4800 | */ | |
d1ed71e5 | 4801 | tSCC zHpux_C99_InttypesList[] = |
4802 | "inttypes.h\0stdint-hpux11.h\0stdint.h\0"; | |
1589683c | 4803 | /* |
4804 | * Machine/OS name selection pattern | |
4805 | */ | |
d1ed71e5 | 4806 | tSCC* apzHpux_C99_InttypesMachs[] = { |
4807 | "*-hp-hpux11.[23]*", | |
4808 | (const char*)NULL }; | |
4809 | #define HPUX_C99_INTTYPES_TEST_CT 0 | |
4810 | #define aHpux_C99_InttypesTests (tTestDesc*)NULL | |
1589683c | 4811 | |
4812 | /* | |
d1ed71e5 | 4813 | * Fix Command Arguments for Hpux_C99_Inttypes |
1589683c | 4814 | */ |
d1ed71e5 | 4815 | static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z, |
4816 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@", | |
4817 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@", | |
4818 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@", | |
4819 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@", | |
4820 | (char*)NULL }; | |
1589683c | 4821 | |
d1ed71e5 | 4822 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4823 | * | |
4824 | * Description of Hpux_C99_Inttypes2 fix | |
4825 | */ | |
4826 | tSCC zHpux_C99_Inttypes2Name[] = | |
4827 | "hpux_c99_inttypes2"; | |
1589683c | 4828 | |
4829 | /* | |
d1ed71e5 | 4830 | * File name selection pattern |
1589683c | 4831 | */ |
d1ed71e5 | 4832 | tSCC zHpux_C99_Inttypes2List[] = |
4833 | "stdint-hpux11.h\0stdint.h\0"; | |
4834 | /* | |
4835 | * Machine/OS name selection pattern | |
4836 | */ | |
4837 | tSCC* apzHpux_C99_Inttypes2Machs[] = { | |
4838 | "*-hp-hpux11.2*", | |
4839 | (const char*)NULL }; | |
4840 | #define HPUX_C99_INTTYPES2_TEST_CT 0 | |
4841 | #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL | |
4842 | ||
4843 | /* | |
4844 | * Fix Command Arguments for Hpux_C99_Inttypes2 | |
4845 | */ | |
4846 | static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z, | |
4847 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@", | |
4848 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@", | |
4849 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@", | |
4850 | "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@", | |
1589683c | 4851 | (char*)NULL }; |
4852 | ||
a0d38f0b | 4853 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4854 | * | |
d1ed71e5 | 4855 | * Description of Hpux_Ctype_Macros fix |
a0d38f0b | 4856 | */ |
d1ed71e5 | 4857 | tSCC zHpux_Ctype_MacrosName[] = |
4858 | "hpux_ctype_macros"; | |
a0d38f0b | 4859 | |
4860 | /* | |
4861 | * File name selection pattern | |
4862 | */ | |
d1ed71e5 | 4863 | tSCC zHpux_Ctype_MacrosList[] = |
4864 | "ctype.h\0"; | |
a0d38f0b | 4865 | /* |
4866 | * Machine/OS name selection pattern | |
4867 | */ | |
d1ed71e5 | 4868 | #define apzHpux_Ctype_MacrosMachs (const char**)NULL |
a0d38f0b | 4869 | |
4870 | /* | |
4871 | * content selection pattern - do fix if pattern found | |
4872 | */ | |
d1ed71e5 | 4873 | tSCC zHpux_Ctype_MacrosSelect0[] = |
4874 | "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)"; | |
9e024bbb | 4875 | |
d1ed71e5 | 4876 | #define HPUX_CTYPE_MACROS_TEST_CT 1 |
4877 | static tTestDesc aHpux_Ctype_MacrosTests[] = { | |
4878 | { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, }; | |
9e024bbb | 4879 | |
4880 | /* | |
d1ed71e5 | 4881 | * Fix Command Arguments for Hpux_Ctype_Macros |
9e024bbb | 4882 | */ |
d1ed71e5 | 4883 | static const char* apzHpux_Ctype_MacrosPatch[] = { |
4884 | "format", | |
4885 | "%1(int)%3", | |
9e024bbb | 4886 | (char*)NULL }; |
4887 | ||
42fd8f40 | 4888 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4889 | * | |
d1ed71e5 | 4890 | * Description of Hpux_Extern_Errno fix |
42fd8f40 | 4891 | */ |
d1ed71e5 | 4892 | tSCC zHpux_Extern_ErrnoName[] = |
4893 | "hpux_extern_errno"; | |
42fd8f40 | 4894 | |
4895 | /* | |
4896 | * File name selection pattern | |
4897 | */ | |
d1ed71e5 | 4898 | tSCC zHpux_Extern_ErrnoList[] = |
4899 | "errno.h\0"; | |
42fd8f40 | 4900 | /* |
4901 | * Machine/OS name selection pattern | |
4902 | */ | |
d1ed71e5 | 4903 | tSCC* apzHpux_Extern_ErrnoMachs[] = { |
4904 | "*-hp-hpux10.*", | |
4905 | "*-hp-hpux11.[0-2]*", | |
42fd8f40 | 4906 | (const char*)NULL }; |
4907 | ||
4908 | /* | |
4909 | * content selection pattern - do fix if pattern found | |
4910 | */ | |
d1ed71e5 | 4911 | tSCC zHpux_Extern_ErrnoSelect0[] = |
4912 | "^[ \t]*extern int errno;$"; | |
42fd8f40 | 4913 | |
d1ed71e5 | 4914 | #define HPUX_EXTERN_ERRNO_TEST_CT 1 |
4915 | static tTestDesc aHpux_Extern_ErrnoTests[] = { | |
4916 | { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, }; | |
42fd8f40 | 4917 | |
4918 | /* | |
d1ed71e5 | 4919 | * Fix Command Arguments for Hpux_Extern_Errno |
42fd8f40 | 4920 | */ |
d1ed71e5 | 4921 | static const char* apzHpux_Extern_ErrnoPatch[] = { |
42fd8f40 | 4922 | "format", |
d1ed71e5 | 4923 | "#ifdef __cplusplus\n\ |
4924 | extern \"C\" {\n\ | |
4925 | #endif\n\ | |
4926 | %0\n\ | |
4927 | #ifdef __cplusplus\n\ | |
4928 | }\n\ | |
4929 | #endif", | |
42fd8f40 | 4930 | (char*)NULL }; |
4931 | ||
fdb8fb96 | 4932 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4933 | * | |
d1ed71e5 | 4934 | * Description of Hpux_Htonl fix |
fdb8fb96 | 4935 | */ |
d1ed71e5 | 4936 | tSCC zHpux_HtonlName[] = |
4937 | "hpux_htonl"; | |
d4c4b01d | 4938 | |
fdb8fb96 | 4939 | /* |
4940 | * File name selection pattern | |
4941 | */ | |
d1ed71e5 | 4942 | tSCC zHpux_HtonlList[] = |
4943 | "netinet/in.h\0"; | |
fdb8fb96 | 4944 | /* |
4945 | * Machine/OS name selection pattern | |
4946 | */ | |
d1ed71e5 | 4947 | #define apzHpux_HtonlMachs (const char**)NULL |
fdb8fb96 | 4948 | |
4949 | /* | |
d6d7d999 | 4950 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4951 | */ |
d1ed71e5 | 4952 | tSCC zHpux_HtonlSelect0[] = |
4953 | "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\ | |
4954 | (/\\*\n\ | |
4955 | \\* Macros for number representation conversion\\.\n\ | |
4956 | \\*/\n\ | |
4957 | #ifndef ntohl)"; | |
fdb8fb96 | 4958 | |
d1ed71e5 | 4959 | #define HPUX_HTONL_TEST_CT 1 |
4960 | static tTestDesc aHpux_HtonlTests[] = { | |
4961 | { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 4962 | |
4963 | /* | |
d1ed71e5 | 4964 | * Fix Command Arguments for Hpux_Htonl |
fdb8fb96 | 4965 | */ |
d1ed71e5 | 4966 | static const char* apzHpux_HtonlPatch[] = { |
cfe5be71 | 4967 | "format", |
d1ed71e5 | 4968 | "#if 1\n\ |
4969 | %1", | |
3072d11f | 4970 | (char*)NULL }; |
4971 | ||
5dabcff3 | 4972 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4973 | * | |
d1ed71e5 | 4974 | * Description of Hpux_Imaginary_I fix |
5dabcff3 | 4975 | */ |
d1ed71e5 | 4976 | tSCC zHpux_Imaginary_IName[] = |
4977 | "hpux_imaginary_i"; | |
5dabcff3 | 4978 | |
4979 | /* | |
4980 | * File name selection pattern | |
4981 | */ | |
d1ed71e5 | 4982 | tSCC zHpux_Imaginary_IList[] = |
4983 | "complex.h\0"; | |
5dabcff3 | 4984 | /* |
4985 | * Machine/OS name selection pattern | |
4986 | */ | |
d1ed71e5 | 4987 | tSCC* apzHpux_Imaginary_IMachs[] = { |
4988 | "ia64-hp-hpux11.*", | |
5dabcff3 | 4989 | (const char*)NULL }; |
4990 | ||
4991 | /* | |
4992 | * content selection pattern - do fix if pattern found | |
4993 | */ | |
d1ed71e5 | 4994 | tSCC zHpux_Imaginary_ISelect0[] = |
4995 | "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*"; | |
5dabcff3 | 4996 | |
d1ed71e5 | 4997 | #define HPUX_IMAGINARY_I_TEST_CT 1 |
4998 | static tTestDesc aHpux_Imaginary_ITests[] = { | |
4999 | { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, }; | |
5dabcff3 | 5000 | |
5001 | /* | |
d1ed71e5 | 5002 | * Fix Command Arguments for Hpux_Imaginary_I |
5dabcff3 | 5003 | */ |
d1ed71e5 | 5004 | static const char* apzHpux_Imaginary_IPatch[] = { |
5dabcff3 | 5005 | "format", |
d1ed71e5 | 5006 | "#define _Complex_I (__extension__ 1.0iF)", |
5dabcff3 | 5007 | (char*)NULL }; |
5008 | ||
1cb3e86d | 5009 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5010 | * | |
d1ed71e5 | 5011 | * Description of Hpux_Inttype_Int8_T fix |
1cb3e86d | 5012 | */ |
d1ed71e5 | 5013 | tSCC zHpux_Inttype_Int8_TName[] = |
5014 | "hpux_inttype_int8_t"; | |
1cb3e86d | 5015 | |
5016 | /* | |
5017 | * File name selection pattern | |
5018 | */ | |
d1ed71e5 | 5019 | tSCC zHpux_Inttype_Int8_TList[] = |
5020 | "sys/_inttypes.h\0"; | |
1cb3e86d | 5021 | /* |
5022 | * Machine/OS name selection pattern | |
5023 | */ | |
d1ed71e5 | 5024 | tSCC* apzHpux_Inttype_Int8_TMachs[] = { |
5025 | "*-hp-hpux1[01].*", | |
1cb3e86d | 5026 | (const char*)NULL }; |
5027 | ||
5028 | /* | |
5029 | * content selection pattern - do fix if pattern found | |
5030 | */ | |
d1ed71e5 | 5031 | tSCC zHpux_Inttype_Int8_TSelect0[] = |
5032 | "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*"; | |
1cb3e86d | 5033 | |
d1ed71e5 | 5034 | #define HPUX_INTTYPE_INT8_T_TEST_CT 1 |
5035 | static tTestDesc aHpux_Inttype_Int8_TTests[] = { | |
5036 | { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, }; | |
1cb3e86d | 5037 | |
5038 | /* | |
d1ed71e5 | 5039 | * Fix Command Arguments for Hpux_Inttype_Int8_T |
1cb3e86d | 5040 | */ |
d1ed71e5 | 5041 | static const char* apzHpux_Inttype_Int8_TPatch[] = { |
1cb3e86d | 5042 | "format", |
d1ed71e5 | 5043 | "typedef signed char int%18_t;", |
1cb3e86d | 5044 | (char*)NULL }; |
5045 | ||
5046 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5047 | * | |
d1ed71e5 | 5048 | * Description of Hpux_Long_Double fix |
1cb3e86d | 5049 | */ |
d1ed71e5 | 5050 | tSCC zHpux_Long_DoubleName[] = |
5051 | "hpux_long_double"; | |
1cb3e86d | 5052 | |
5053 | /* | |
5054 | * File name selection pattern | |
5055 | */ | |
d1ed71e5 | 5056 | tSCC zHpux_Long_DoubleList[] = |
5057 | "stdlib.h\0"; | |
1cb3e86d | 5058 | /* |
5059 | * Machine/OS name selection pattern | |
5060 | */ | |
d1ed71e5 | 5061 | tSCC* apzHpux_Long_DoubleMachs[] = { |
5062 | "*-*-hpux10*", | |
5063 | "*-*-hpux11.[012]*", | |
1cb3e86d | 5064 | (const char*)NULL }; |
5065 | ||
5066 | /* | |
5067 | * content selection pattern - do fix if pattern found | |
5068 | */ | |
d1ed71e5 | 5069 | tSCC zHpux_Long_DoubleSelect0[] = |
5070 | "extern[ \t]long_double[ \t]strtold"; | |
1cb3e86d | 5071 | |
d1ed71e5 | 5072 | /* |
5073 | * content bypass pattern - skip fix if pattern found | |
5074 | */ | |
5075 | tSCC zHpux_Long_DoubleBypass0[] = | |
5076 | "long_double_t"; | |
5077 | ||
5078 | #define HPUX_LONG_DOUBLE_TEST_CT 2 | |
5079 | static tTestDesc aHpux_Long_DoubleTests[] = { | |
5080 | { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL }, | |
5081 | { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, }; | |
1cb3e86d | 5082 | |
5083 | /* | |
d1ed71e5 | 5084 | * Fix Command Arguments for Hpux_Long_Double |
1cb3e86d | 5085 | */ |
d1ed71e5 | 5086 | static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z, |
5087 | "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D", | |
5088 | "-e", "s/long_double/long double/g", | |
1cb3e86d | 5089 | (char*)NULL }; |
5090 | ||
898b6c0f | 5091 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5092 | * | |
d1ed71e5 | 5093 | * Description of Hpux_Long_Double_2 fix |
898b6c0f | 5094 | */ |
d1ed71e5 | 5095 | tSCC zHpux_Long_Double_2Name[] = |
5096 | "hpux_long_double_2"; | |
898b6c0f | 5097 | |
5098 | /* | |
5099 | * File name selection pattern | |
5100 | */ | |
d1ed71e5 | 5101 | tSCC zHpux_Long_Double_2List[] = |
5102 | "stdlib.h\0"; | |
898b6c0f | 5103 | /* |
5104 | * Machine/OS name selection pattern | |
5105 | */ | |
d1ed71e5 | 5106 | tSCC* apzHpux_Long_Double_2Machs[] = { |
5107 | "hppa*-*-hpux11.3*", | |
898b6c0f | 5108 | (const char*)NULL }; |
5109 | ||
5110 | /* | |
5111 | * content selection pattern - do fix if pattern found | |
5112 | */ | |
d1ed71e5 | 5113 | tSCC zHpux_Long_Double_2Select0[] = |
5114 | "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)"; | |
898b6c0f | 5115 | |
d1ed71e5 | 5116 | #define HPUX_LONG_DOUBLE_2_TEST_CT 1 |
5117 | static tTestDesc aHpux_Long_Double_2Tests[] = { | |
5118 | { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, }; | |
898b6c0f | 5119 | |
5120 | /* | |
d1ed71e5 | 5121 | * Fix Command Arguments for Hpux_Long_Double_2 |
898b6c0f | 5122 | */ |
d1ed71e5 | 5123 | static const char* apzHpux_Long_Double_2Patch[] = { |
898b6c0f | 5124 | "format", |
d1ed71e5 | 5125 | "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)", |
898b6c0f | 5126 | (char*)NULL }; |
5127 | ||
3dd59d44 | 5128 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5129 | * | |
5130 | * Description of Hpux_Pthread_Initializers fix | |
5131 | */ | |
5132 | tSCC zHpux_Pthread_InitializersName[] = | |
5133 | "hpux_pthread_initializers"; | |
5134 | ||
5135 | /* | |
5136 | * File name selection pattern | |
5137 | */ | |
5138 | tSCC zHpux_Pthread_InitializersList[] = | |
e9afa104 | 5139 | "sys/pthread.h\0"; |
3dd59d44 | 5140 | /* |
5141 | * Machine/OS name selection pattern | |
5142 | */ | |
5143 | tSCC* apzHpux_Pthread_InitializersMachs[] = { | |
5144 | "*-hp-hpux11.[0-3]*", | |
5145 | (const char*)NULL }; | |
5146 | #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0 | |
5147 | #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL | |
5148 | ||
5149 | /* | |
5150 | * Fix Command Arguments for Hpux_Pthread_Initializers | |
5151 | */ | |
b32d497c | 5152 | static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z, |
3dd59d44 | 5153 | "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@", |
5154 | "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@", | |
5155 | "-e", "/^[ \t]*0$/d", | |
5156 | "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@", | |
5157 | "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@", | |
5158 | "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@", | |
5159 | "-e", "s@^[ \t]*__LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@\t{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@", | |
5160 | "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@", | |
5161 | "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@", | |
5162 | "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@", | |
5163 | "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@", | |
5164 | "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@", | |
5165 | "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@", | |
5166 | (char*)NULL }; | |
5167 | ||
42fd8f40 | 5168 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5169 | * | |
d1ed71e5 | 5170 | * Description of Hpux_Spu_Info fix |
42fd8f40 | 5171 | */ |
d1ed71e5 | 5172 | tSCC zHpux_Spu_InfoName[] = |
5173 | "hpux_spu_info"; | |
42fd8f40 | 5174 | |
5175 | /* | |
5176 | * File name selection pattern | |
5177 | */ | |
d1ed71e5 | 5178 | tSCC zHpux_Spu_InfoList[] = |
5179 | "ia64/sys/getppdp.h\0*/sys/getppdp.h\0"; | |
42fd8f40 | 5180 | /* |
5181 | * Machine/OS name selection pattern | |
5182 | */ | |
d1ed71e5 | 5183 | tSCC* apzHpux_Spu_InfoMachs[] = { |
5184 | "*-hp-hpux*", | |
42fd8f40 | 5185 | (const char*)NULL }; |
5186 | ||
5187 | /* | |
5188 | * content selection pattern - do fix if pattern found | |
5189 | */ | |
d1ed71e5 | 5190 | tSCC zHpux_Spu_InfoSelect0[] = |
5191 | "^.*extern.*spu_info.*"; | |
42fd8f40 | 5192 | |
d1ed71e5 | 5193 | #define HPUX_SPU_INFO_TEST_CT 1 |
5194 | static tTestDesc aHpux_Spu_InfoTests[] = { | |
5195 | { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, }; | |
42fd8f40 | 5196 | |
5197 | /* | |
d1ed71e5 | 5198 | * Fix Command Arguments for Hpux_Spu_Info |
42fd8f40 | 5199 | */ |
d1ed71e5 | 5200 | static const char* apzHpux_Spu_InfoPatch[] = { |
42fd8f40 | 5201 | "format", |
d1ed71e5 | 5202 | "#ifdef _KERNEL\n\ |
5203 | %0\n\ | |
5204 | #endif", | |
42fd8f40 | 5205 | (char*)NULL }; |
5206 | ||
5207 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5208 | * | |
d1ed71e5 | 5209 | * Description of Hpux_Stdint_Least_Fast fix |
42fd8f40 | 5210 | */ |
d1ed71e5 | 5211 | tSCC zHpux_Stdint_Least_FastName[] = |
5212 | "hpux_stdint_least_fast"; | |
42fd8f40 | 5213 | |
5214 | /* | |
5215 | * File name selection pattern | |
5216 | */ | |
d1ed71e5 | 5217 | tSCC zHpux_Stdint_Least_FastList[] = |
5218 | "stdint-hpux11.h\0stdint.h\0"; | |
42fd8f40 | 5219 | /* |
5220 | * Machine/OS name selection pattern | |
5221 | */ | |
d1ed71e5 | 5222 | tSCC* apzHpux_Stdint_Least_FastMachs[] = { |
5223 | "*-hp-hpux11.2*", | |
42fd8f40 | 5224 | (const char*)NULL }; |
5225 | ||
5226 | /* | |
5227 | * content selection pattern - do fix if pattern found | |
5228 | */ | |
d1ed71e5 | 5229 | tSCC zHpux_Stdint_Least_FastSelect0[] = |
5230 | "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX"; | |
42fd8f40 | 5231 | |
d1ed71e5 | 5232 | #define HPUX_STDINT_LEAST_FAST_TEST_CT 1 |
5233 | static tTestDesc aHpux_Stdint_Least_FastTests[] = { | |
5234 | { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, }; | |
42fd8f40 | 5235 | |
5236 | /* | |
d1ed71e5 | 5237 | * Fix Command Arguments for Hpux_Stdint_Least_Fast |
42fd8f40 | 5238 | */ |
d1ed71e5 | 5239 | static const char* apzHpux_Stdint_Least_FastPatch[] = { |
42fd8f40 | 5240 | "format", |
d1ed71e5 | 5241 | "# define\tUINT_%164_MAX\t__UINT64_MAX__", |
42fd8f40 | 5242 | (char*)NULL }; |
5243 | ||
0249b7a3 | 5244 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5245 | * | |
5246 | * Description of Hpux_Longjmp fix | |
5247 | */ | |
5248 | tSCC zHpux_LongjmpName[] = | |
5249 | "hpux_longjmp"; | |
5250 | ||
5251 | /* | |
5252 | * File name selection pattern | |
5253 | */ | |
5254 | tSCC zHpux_LongjmpList[] = | |
5255 | "setjmp.h\0"; | |
5256 | /* | |
5257 | * Machine/OS name selection pattern | |
5258 | */ | |
5259 | tSCC* apzHpux_LongjmpMachs[] = { | |
5260 | "*-hp-hpux*", | |
5261 | (const char*)NULL }; | |
5262 | ||
5263 | /* | |
5264 | * content selection pattern - do fix if pattern found | |
5265 | */ | |
5266 | tSCC zHpux_LongjmpSelect0[] = | |
0eb78fb9 | 5267 | "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))"; |
0249b7a3 | 5268 | |
5269 | #define HPUX_LONGJMP_TEST_CT 1 | |
5270 | static tTestDesc aHpux_LongjmpTests[] = { | |
5271 | { TT_EGREP, zHpux_LongjmpSelect0, (regex_t*)NULL }, }; | |
5272 | ||
5273 | /* | |
5274 | * Fix Command Arguments for Hpux_Longjmp | |
5275 | */ | |
5276 | static const char* apzHpux_LongjmpPatch[] = { | |
5277 | "format", | |
5278 | "%0 __attribute__ ((__noreturn__))", | |
5279 | (char*)NULL }; | |
5280 | ||
9436a006 | 5281 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5282 | * | |
d1ed71e5 | 5283 | * Description of Hpux_Systime fix |
9436a006 | 5284 | */ |
d1ed71e5 | 5285 | tSCC zHpux_SystimeName[] = |
5286 | "hpux_systime"; | |
9436a006 | 5287 | |
5288 | /* | |
5289 | * File name selection pattern | |
5290 | */ | |
d1ed71e5 | 5291 | tSCC zHpux_SystimeList[] = |
5292 | "sys/time.h\0"; | |
9436a006 | 5293 | /* |
5294 | * Machine/OS name selection pattern | |
5295 | */ | |
d1ed71e5 | 5296 | #define apzHpux_SystimeMachs (const char**)NULL |
9436a006 | 5297 | |
5298 | /* | |
5299 | * content selection pattern - do fix if pattern found | |
5300 | */ | |
d1ed71e5 | 5301 | tSCC zHpux_SystimeSelect0[] = |
5302 | "^extern struct sigevent;"; | |
9436a006 | 5303 | |
d1ed71e5 | 5304 | #define HPUX_SYSTIME_TEST_CT 1 |
5305 | static tTestDesc aHpux_SystimeTests[] = { | |
5306 | { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, }; | |
9436a006 | 5307 | |
5308 | /* | |
d1ed71e5 | 5309 | * Fix Command Arguments for Hpux_Systime |
9436a006 | 5310 | */ |
d1ed71e5 | 5311 | static const char* apzHpux_SystimePatch[] = { |
9436a006 | 5312 | "format", |
d1ed71e5 | 5313 | "struct sigevent;", |
9436a006 | 5314 | (char*)NULL }; |
5315 | ||
96eced21 | 5316 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5317 | * | |
5318 | * Description of Huge_Val_Hex fix | |
5319 | */ | |
5320 | tSCC zHuge_Val_HexName[] = | |
5321 | "huge_val_hex"; | |
5322 | ||
5323 | /* | |
5324 | * File name selection pattern | |
5325 | */ | |
5326 | tSCC zHuge_Val_HexList[] = | |
d1ed71e5 | 5327 | "bits/huge_val.h\0*/bits/huge_val.h\0"; |
96eced21 | 5328 | /* |
5329 | * Machine/OS name selection pattern | |
5330 | */ | |
5331 | #define apzHuge_Val_HexMachs (const char**)NULL | |
5332 | ||
5333 | /* | |
5334 | * content selection pattern - do fix if pattern found | |
5335 | */ | |
5336 | tSCC zHuge_Val_HexSelect0[] = | |
5337 | "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*"; | |
5338 | ||
5339 | /* | |
5340 | * content bypass pattern - skip fix if pattern found | |
5341 | */ | |
5342 | tSCC zHuge_Val_HexBypass0[] = | |
5343 | "__builtin_huge_val"; | |
5344 | ||
5345 | #define HUGE_VAL_HEX_TEST_CT 2 | |
5346 | static tTestDesc aHuge_Val_HexTests[] = { | |
5347 | { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL }, | |
5348 | { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, }; | |
5349 | ||
5350 | /* | |
5351 | * Fix Command Arguments for Huge_Val_Hex | |
5352 | */ | |
5353 | static const char* apzHuge_Val_HexPatch[] = { | |
5354 | "format", | |
5355 | "#define HUGE_VAL (__builtin_huge_val())\n", | |
5356 | (char*)NULL }; | |
5357 | ||
5358 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5359 | * | |
5360 | * Description of Huge_Valf_Hex fix | |
5361 | */ | |
5362 | tSCC zHuge_Valf_HexName[] = | |
5363 | "huge_valf_hex"; | |
5364 | ||
5365 | /* | |
5366 | * File name selection pattern | |
5367 | */ | |
5368 | tSCC zHuge_Valf_HexList[] = | |
d1ed71e5 | 5369 | "bits/huge_val.h\0*/bits/huge_val.h\0"; |
96eced21 | 5370 | /* |
5371 | * Machine/OS name selection pattern | |
5372 | */ | |
5373 | #define apzHuge_Valf_HexMachs (const char**)NULL | |
5374 | ||
5375 | /* | |
5376 | * content selection pattern - do fix if pattern found | |
5377 | */ | |
5378 | tSCC zHuge_Valf_HexSelect0[] = | |
5379 | "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*"; | |
5380 | ||
5381 | /* | |
5382 | * content bypass pattern - skip fix if pattern found | |
5383 | */ | |
5384 | tSCC zHuge_Valf_HexBypass0[] = | |
5385 | "__builtin_huge_valf"; | |
5386 | ||
5387 | #define HUGE_VALF_HEX_TEST_CT 2 | |
5388 | static tTestDesc aHuge_Valf_HexTests[] = { | |
5389 | { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL }, | |
5390 | { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, }; | |
5391 | ||
5392 | /* | |
5393 | * Fix Command Arguments for Huge_Valf_Hex | |
5394 | */ | |
5395 | static const char* apzHuge_Valf_HexPatch[] = { | |
5396 | "format", | |
5397 | "#define HUGE_VALF (__builtin_huge_valf())\n", | |
5398 | (char*)NULL }; | |
5399 | ||
5400 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5401 | * | |
5402 | * Description of Huge_Vall_Hex fix | |
5403 | */ | |
5404 | tSCC zHuge_Vall_HexName[] = | |
5405 | "huge_vall_hex"; | |
5406 | ||
5407 | /* | |
5408 | * File name selection pattern | |
5409 | */ | |
5410 | tSCC zHuge_Vall_HexList[] = | |
d1ed71e5 | 5411 | "bits/huge_val.h\0*/bits/huge_val.h\0"; |
96eced21 | 5412 | /* |
5413 | * Machine/OS name selection pattern | |
5414 | */ | |
5415 | #define apzHuge_Vall_HexMachs (const char**)NULL | |
5416 | ||
5417 | /* | |
5418 | * content selection pattern - do fix if pattern found | |
5419 | */ | |
5420 | tSCC zHuge_Vall_HexSelect0[] = | |
5421 | "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*"; | |
5422 | ||
5423 | /* | |
5424 | * content bypass pattern - skip fix if pattern found | |
5425 | */ | |
5426 | tSCC zHuge_Vall_HexBypass0[] = | |
5427 | "__builtin_huge_vall"; | |
5428 | ||
5429 | #define HUGE_VALL_HEX_TEST_CT 2 | |
5430 | static tTestDesc aHuge_Vall_HexTests[] = { | |
5431 | { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL }, | |
5432 | { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, }; | |
5433 | ||
5434 | /* | |
5435 | * Fix Command Arguments for Huge_Vall_Hex | |
5436 | */ | |
5437 | static const char* apzHuge_Vall_HexPatch[] = { | |
5438 | "format", | |
5439 | "#define HUGE_VALL (__builtin_huge_vall())\n", | |
5440 | (char*)NULL }; | |
5441 | ||
3072d11f | 5442 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5443 | * | |
5444 | * Description of Int_Abort_Free_And_Exit fix | |
5445 | */ | |
5446 | tSCC zInt_Abort_Free_And_ExitName[] = | |
5447 | "int_abort_free_and_exit"; | |
5448 | ||
5449 | /* | |
5450 | * File name selection pattern | |
5451 | */ | |
5452 | tSCC zInt_Abort_Free_And_ExitList[] = | |
e9afa104 | 5453 | "stdlib.h\0"; |
3072d11f | 5454 | /* |
5455 | * Machine/OS name selection pattern | |
5456 | */ | |
5457 | #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL | |
5458 | ||
5459 | /* | |
5460 | * content selection pattern - do fix if pattern found | |
5461 | */ | |
5462 | tSCC zInt_Abort_Free_And_ExitSelect0[] = | |
5463 | "int[ \t]+(abort|free|exit)[ \t]*\\("; | |
5464 | ||
69c13546 | 5465 | /* |
5466 | * content bypass pattern - skip fix if pattern found | |
5467 | */ | |
5468 | tSCC zInt_Abort_Free_And_ExitBypass0[] = | |
5469 | "_CLASSIC_ANSI_TYPES"; | |
5470 | ||
5471 | #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2 | |
3072d11f | 5472 | static tTestDesc aInt_Abort_Free_And_ExitTests[] = { |
69c13546 | 5473 | { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL }, |
3072d11f | 5474 | { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, }; |
5475 | ||
5476 | /* | |
5477 | * Fix Command Arguments for Int_Abort_Free_And_Exit | |
5478 | */ | |
5479 | static const char* apzInt_Abort_Free_And_ExitPatch[] = { | |
5480 | "format", | |
5481 | "void\t%1(", | |
fdb8fb96 | 5482 | (char*)NULL }; |
5483 | ||
fdb8fb96 | 5484 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5485 | * | |
49b4955b | 5486 | * Description of Io_Quotes_Def fix |
fdb8fb96 | 5487 | */ |
49b4955b | 5488 | tSCC zIo_Quotes_DefName[] = |
5489 | "io_quotes_def"; | |
d4c4b01d | 5490 | |
fdb8fb96 | 5491 | /* |
5492 | * File name selection pattern | |
5493 | */ | |
49b4955b | 5494 | #define zIo_Quotes_DefList (char*)NULL |
fdb8fb96 | 5495 | /* |
5496 | * Machine/OS name selection pattern | |
5497 | */ | |
49b4955b | 5498 | #define apzIo_Quotes_DefMachs (const char**)NULL |
fdb8fb96 | 5499 | |
5500 | /* | |
c1b28c63 | 5501 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 5502 | */ |
49b4955b | 5503 | tSCC zIo_Quotes_DefSelect0[] = |
edb5e81d | 5504 | "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]"; |
fdb8fb96 | 5505 | |
49b4955b | 5506 | #define IO_QUOTES_DEF_TEST_CT 1 |
2548396b | 5507 | static tTestDesc aIo_Quotes_DefTests[] = { |
49b4955b | 5508 | { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5509 | |
5510 | /* | |
49b4955b | 5511 | * Fix Command Arguments for Io_Quotes_Def |
fdb8fb96 | 5512 | */ |
2548396b | 5513 | static const char* apzIo_Quotes_DefPatch[] = { |
c940c2ae | 5514 | "char_macro_def", |
5515 | "IO", | |
ada96dc2 | 5516 | (char*)NULL }; |
5517 | ||
5518 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5519 | * | |
472aa368 | 5520 | * Description of Io_Quotes_Use fix |
ada96dc2 | 5521 | */ |
472aa368 | 5522 | tSCC zIo_Quotes_UseName[] = |
5523 | "io_quotes_use"; | |
d4c4b01d | 5524 | |
ada96dc2 | 5525 | /* |
5526 | * File name selection pattern | |
5527 | */ | |
472aa368 | 5528 | #define zIo_Quotes_UseList (char*)NULL |
ada96dc2 | 5529 | /* |
5530 | * Machine/OS name selection pattern | |
5531 | */ | |
472aa368 | 5532 | #define apzIo_Quotes_UseMachs (const char**)NULL |
ada96dc2 | 5533 | |
5534 | /* | |
5535 | * content selection pattern - do fix if pattern found | |
5536 | */ | |
472aa368 | 5537 | tSCC zIo_Quotes_UseSelect0[] = |
5538 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']"; | |
ada96dc2 | 5539 | |
472aa368 | 5540 | #define IO_QUOTES_USE_TEST_CT 1 |
2548396b | 5541 | static tTestDesc aIo_Quotes_UseTests[] = { |
472aa368 | 5542 | { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, }; |
ada96dc2 | 5543 | |
5544 | /* | |
472aa368 | 5545 | * Fix Command Arguments for Io_Quotes_Use |
ada96dc2 | 5546 | */ |
2548396b | 5547 | static const char* apzIo_Quotes_UsePatch[] = { |
c940c2ae | 5548 | "char_macro_use", |
472aa368 | 5549 | "IO", |
fdb8fb96 | 5550 | (char*)NULL }; |
5551 | ||
5552 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5553 | * | |
3072d11f | 5554 | * Description of Ip_Missing_Semi fix |
fdb8fb96 | 5555 | */ |
3072d11f | 5556 | tSCC zIp_Missing_SemiName[] = |
5557 | "ip_missing_semi"; | |
d4c4b01d | 5558 | |
fdb8fb96 | 5559 | /* |
5560 | * File name selection pattern | |
5561 | */ | |
3072d11f | 5562 | tSCC zIp_Missing_SemiList[] = |
e9afa104 | 5563 | "netinet/ip.h\0"; |
fdb8fb96 | 5564 | /* |
5565 | * Machine/OS name selection pattern | |
5566 | */ | |
3072d11f | 5567 | #define apzIp_Missing_SemiMachs (const char**)NULL |
bb304030 | 5568 | |
5569 | /* | |
5570 | * content selection pattern - do fix if pattern found | |
cfe5be71 | 5571 | */ |
3072d11f | 5572 | tSCC zIp_Missing_SemiSelect0[] = |
5573 | "}$"; | |
cfe5be71 | 5574 | |
3072d11f | 5575 | #define IP_MISSING_SEMI_TEST_CT 1 |
5576 | static tTestDesc aIp_Missing_SemiTests[] = { | |
5577 | { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, }; | |
2ef2faef | 5578 | |
5579 | /* | |
3072d11f | 5580 | * Fix Command Arguments for Ip_Missing_Semi |
fdb8fb96 | 5581 | */ |
b32d497c | 5582 | static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z, |
3072d11f | 5583 | "-e", "/^struct/,/^};/s/}$/};/", |
fdb8fb96 | 5584 | (char*)NULL }; |
5585 | ||
fdb8fb96 | 5586 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5587 | * | |
3072d11f | 5588 | * Description of Irix_Limits_Const fix |
01719fc0 | 5589 | */ |
3072d11f | 5590 | tSCC zIrix_Limits_ConstName[] = |
5591 | "irix_limits_const"; | |
d4c4b01d | 5592 | |
01719fc0 | 5593 | /* |
5594 | * File name selection pattern | |
5595 | */ | |
3072d11f | 5596 | tSCC zIrix_Limits_ConstList[] = |
e9afa104 | 5597 | "fixinc-test-limits.h\0limits.h\0"; |
01719fc0 | 5598 | /* |
5599 | * Machine/OS name selection pattern | |
5600 | */ | |
3072d11f | 5601 | #define apzIrix_Limits_ConstMachs (const char**)NULL |
01719fc0 | 5602 | |
5603 | /* | |
5604 | * content selection pattern - do fix if pattern found | |
5605 | */ | |
3072d11f | 5606 | tSCC zIrix_Limits_ConstSelect0[] = |
5607 | "^extern const "; | |
01719fc0 | 5608 | |
3072d11f | 5609 | #define IRIX_LIMITS_CONST_TEST_CT 1 |
5610 | static tTestDesc aIrix_Limits_ConstTests[] = { | |
5611 | { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, }; | |
01719fc0 | 5612 | |
5613 | /* | |
3072d11f | 5614 | * Fix Command Arguments for Irix_Limits_Const |
01719fc0 | 5615 | */ |
3072d11f | 5616 | static const char* apzIrix_Limits_ConstPatch[] = { |
cfe5be71 | 5617 | "format", |
3072d11f | 5618 | "extern __const ", |
fdb8fb96 | 5619 | (char*)NULL }; |
5620 | ||
06730757 | 5621 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5622 | * | |
5623 | * Description of Irix_Stdio_Va_List fix | |
5624 | */ | |
06730757 | 5625 | tSCC zIrix_Stdio_Va_ListName[] = |
5626 | "irix_stdio_va_list"; | |
5627 | ||
5628 | /* | |
5629 | * File name selection pattern | |
5630 | */ | |
5631 | tSCC zIrix_Stdio_Va_ListList[] = | |
5641963c | 5632 | "stdio.h\0"; |
06730757 | 5633 | /* |
5634 | * Machine/OS name selection pattern | |
5635 | */ | |
5636 | #define apzIrix_Stdio_Va_ListMachs (const char**)NULL | |
5637 | ||
5638 | /* | |
5639 | * content selection pattern - do fix if pattern found | |
5640 | */ | |
5641 | tSCC zIrix_Stdio_Va_ListSelect0[] = | |
38f81ce5 | 5642 | "/\\* va_list \\*/ char \\*"; |
06730757 | 5643 | |
5644 | #define IRIX_STDIO_VA_LIST_TEST_CT 1 | |
5645 | static tTestDesc aIrix_Stdio_Va_ListTests[] = { | |
5646 | { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, }; | |
5647 | ||
5648 | /* | |
5649 | * Fix Command Arguments for Irix_Stdio_Va_List | |
5650 | */ | |
5651 | static const char* apzIrix_Stdio_Va_ListPatch[] = { | |
5652 | "format", | |
38f81ce5 | 5653 | "__gnuc_va_list", |
06730757 | 5654 | (char*)NULL }; |
5655 | ||
fdb8fb96 | 5656 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5657 | * | |
5daf7ede | 5658 | * Description of Kandr_Concat fix |
fdb8fb96 | 5659 | */ |
5660 | tSCC zKandr_ConcatName[] = | |
d4c4b01d | 5661 | "kandr_concat"; |
5662 | ||
fdb8fb96 | 5663 | /* |
5664 | * File name selection pattern | |
5665 | */ | |
5666 | tSCC zKandr_ConcatList[] = | |
e9afa104 | 5667 | "sparc/asm_linkage.h\0sun*/asm_linkage.h\0arm/as_support.h\0arm/mc_type.h\0arm/xcb.h\0dev/chardefmac.h\0dev/ps_irq.h\0dev/screen.h\0dev/scsi.h\0sys/tty.h\0Xm.acorn/XmP.h\0bsd43/bsd43_.h\0"; |
fdb8fb96 | 5668 | /* |
5669 | * Machine/OS name selection pattern | |
5670 | */ | |
5671 | #define apzKandr_ConcatMachs (const char**)NULL | |
5672 | ||
5673 | /* | |
c1b28c63 | 5674 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 5675 | */ |
5676 | tSCC zKandr_ConcatSelect0[] = | |
5677 | "/\\*\\*/"; | |
5678 | ||
5679 | #define KANDR_CONCAT_TEST_CT 1 | |
2548396b | 5680 | static tTestDesc aKandr_ConcatTests[] = { |
5daf7ede | 5681 | { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5682 | |
5683 | /* | |
5684 | * Fix Command Arguments for Kandr_Concat | |
5685 | */ | |
2548396b | 5686 | static const char* apzKandr_ConcatPatch[] = { |
cfe5be71 | 5687 | "format", |
5688 | "##", | |
fdb8fb96 | 5689 | (char*)NULL }; |
5690 | ||
d92db5b6 | 5691 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5692 | * | |
5693 | * Description of Linux_Ia64_Ucontext fix | |
5694 | */ | |
5695 | tSCC zLinux_Ia64_UcontextName[] = | |
5696 | "linux_ia64_ucontext"; | |
5697 | ||
5698 | /* | |
5699 | * File name selection pattern | |
5700 | */ | |
5701 | tSCC zLinux_Ia64_UcontextList[] = | |
e9afa104 | 5702 | "sys/ucontext.h\0"; |
d92db5b6 | 5703 | /* |
5704 | * Machine/OS name selection pattern | |
5705 | */ | |
5706 | tSCC* apzLinux_Ia64_UcontextMachs[] = { | |
5707 | "ia64-*-linux*", | |
5708 | (const char*)NULL }; | |
5709 | ||
5710 | /* | |
5711 | * content selection pattern - do fix if pattern found | |
5712 | */ | |
5713 | tSCC zLinux_Ia64_UcontextSelect0[] = | |
5714 | "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)"; | |
5715 | ||
5716 | #define LINUX_IA64_UCONTEXT_TEST_CT 1 | |
5717 | static tTestDesc aLinux_Ia64_UcontextTests[] = { | |
5718 | { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, }; | |
5719 | ||
5720 | /* | |
5721 | * Fix Command Arguments for Linux_Ia64_Ucontext | |
5722 | */ | |
5723 | static const char* apzLinux_Ia64_UcontextPatch[] = { | |
5724 | "format", | |
5725 | "__builtin_offsetof (struct sigcontext, sc_gr[0])", | |
5726 | (char*)NULL }; | |
5727 | ||
fdb8fb96 | 5728 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5729 | * | |
435ea059 | 5730 | * Description of Lynxos_No_Warning_In_Sys_Time_H fix |
fdb8fb96 | 5731 | */ |
435ea059 | 5732 | tSCC zLynxos_No_Warning_In_Sys_Time_HName[] = |
5733 | "lynxos_no_warning_in_sys_time_h"; | |
d4c4b01d | 5734 | |
fdb8fb96 | 5735 | /* |
5736 | * File name selection pattern | |
5737 | */ | |
435ea059 | 5738 | tSCC zLynxos_No_Warning_In_Sys_Time_HList[] = |
e9afa104 | 5739 | "sys/time.h\0"; |
fdb8fb96 | 5740 | /* |
5741 | * Machine/OS name selection pattern | |
5742 | */ | |
435ea059 | 5743 | #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL |
fdb8fb96 | 5744 | |
5745 | /* | |
c1b28c63 | 5746 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 5747 | */ |
435ea059 | 5748 | tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] = |
5749 | "#warning[ \t]+Using <time.h> instead of <sys/time.h>"; | |
fdb8fb96 | 5750 | |
435ea059 | 5751 | #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1 |
5752 | static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = { | |
5753 | { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 5754 | |
5755 | /* | |
435ea059 | 5756 | * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H |
fdb8fb96 | 5757 | */ |
435ea059 | 5758 | static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = { |
cfe5be71 | 5759 | "format", |
5760 | "", | |
fdb8fb96 | 5761 | (char*)NULL }; |
5762 | ||
5763 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5764 | * | |
435ea059 | 5765 | * Description of Lynxos_Missing_Putenv fix |
fdb8fb96 | 5766 | */ |
435ea059 | 5767 | tSCC zLynxos_Missing_PutenvName[] = |
5768 | "lynxos_missing_putenv"; | |
d4c4b01d | 5769 | |
fdb8fb96 | 5770 | /* |
5771 | * File name selection pattern | |
5772 | */ | |
435ea059 | 5773 | tSCC zLynxos_Missing_PutenvList[] = |
e9afa104 | 5774 | "stdlib.h\0"; |
fdb8fb96 | 5775 | /* |
5776 | * Machine/OS name selection pattern | |
5777 | */ | |
435ea059 | 5778 | tSCC* apzLynxos_Missing_PutenvMachs[] = { |
5779 | "*-*-lynxos*", | |
5780 | (const char*)NULL }; | |
38ebab8a | 5781 | |
5782 | /* | |
c1b28c63 | 5783 | * content selection pattern - do fix if pattern found |
38ebab8a | 5784 | */ |
435ea059 | 5785 | tSCC zLynxos_Missing_PutenvSelect0[] = |
5786 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);"; | |
38ebab8a | 5787 | |
435ea059 | 5788 | /* |
5789 | * content bypass pattern - skip fix if pattern found | |
5790 | */ | |
5791 | tSCC zLynxos_Missing_PutenvBypass0[] = | |
5792 | "putenv[ \\t]*\\("; | |
5793 | ||
5794 | #define LYNXOS_MISSING_PUTENV_TEST_CT 2 | |
5795 | static tTestDesc aLynxos_Missing_PutenvTests[] = { | |
5796 | { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL }, | |
5797 | { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 5798 | |
5799 | /* | |
435ea059 | 5800 | * Fix Command Arguments for Lynxos_Missing_Putenv |
fdb8fb96 | 5801 | */ |
435ea059 | 5802 | static const char* apzLynxos_Missing_PutenvPatch[] = { |
cfe5be71 | 5803 | "format", |
435ea059 | 5804 | "%0\n\ |
5805 | extern int putenv\t\t\t\t_AP((char *));", | |
5806 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);", | |
fdb8fb96 | 5807 | (char*)NULL }; |
5808 | ||
d4c4b01d | 5809 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5810 | * | |
5811 | * Description of Machine_Ansi_H_Va_List fix | |
5812 | */ | |
d4c4b01d | 5813 | tSCC zMachine_Ansi_H_Va_ListName[] = |
5814 | "machine_ansi_h_va_list"; | |
5815 | ||
5816 | /* | |
5817 | * File name selection pattern | |
5818 | */ | |
0efa04d0 | 5819 | #define zMachine_Ansi_H_Va_ListList (char*)NULL |
d4c4b01d | 5820 | /* |
5821 | * Machine/OS name selection pattern | |
5822 | */ | |
5823 | #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL | |
5824 | ||
5825 | /* | |
5826 | * content selection pattern - do fix if pattern found | |
5827 | */ | |
5828 | tSCC zMachine_Ansi_H_Va_ListSelect0[] = | |
a83746ef | 5829 | "define[ \t]+_BSD_VA_LIST_[ \t]"; |
d4c4b01d | 5830 | |
5831 | /* | |
5832 | * content bypass pattern - skip fix if pattern found | |
5833 | */ | |
5834 | tSCC zMachine_Ansi_H_Va_ListBypass0[] = | |
5835 | "__builtin_va_list"; | |
5836 | ||
5837 | #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2 | |
2548396b | 5838 | static tTestDesc aMachine_Ansi_H_Va_ListTests[] = { |
d4c4b01d | 5839 | { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL }, |
5840 | { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, }; | |
5841 | ||
5842 | /* | |
5843 | * Fix Command Arguments for Machine_Ansi_H_Va_List | |
5844 | */ | |
2548396b | 5845 | static const char* apzMachine_Ansi_H_Va_ListPatch[] = { |
a83746ef | 5846 | "format", |
5847 | "%1__builtin_va_list", | |
5848 | "(define[ \t]+_BSD_VA_LIST_[ \t]+).*", | |
d4c4b01d | 5849 | (char*)NULL }; |
5850 | ||
fdb8fb96 | 5851 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5852 | * | |
5daf7ede | 5853 | * Description of Machine_Name fix |
fdb8fb96 | 5854 | */ |
5855 | tSCC zMachine_NameName[] = | |
d4c4b01d | 5856 | "machine_name"; |
5857 | ||
fdb8fb96 | 5858 | /* |
5859 | * File name selection pattern | |
5860 | */ | |
5861 | #define zMachine_NameList (char*)NULL | |
5862 | /* | |
5863 | * Machine/OS name selection pattern | |
5864 | */ | |
5865 | #define apzMachine_NameMachs (const char**)NULL | |
5866 | ||
5867 | /* | |
17f8e521 | 5868 | * perform the C function call test |
fdb8fb96 | 5869 | */ |
17f8e521 | 5870 | tSCC zMachine_NameFTst0[] = "machine_name"; |
fdb8fb96 | 5871 | |
5872 | #define MACHINE_NAME_TEST_CT 1 | |
2548396b | 5873 | static tTestDesc aMachine_NameTests[] = { |
17f8e521 | 5874 | { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, }; |
fdb8fb96 | 5875 | |
5876 | /* | |
5877 | * Fix Command Arguments for Machine_Name | |
5878 | */ | |
2548396b | 5879 | static const char* apzMachine_NamePatch[] = { |
6e791f25 | 5880 | "machine_name", |
fdb8fb96 | 5881 | (char*)NULL }; |
5882 | ||
5883 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5884 | * | |
5daf7ede | 5885 | * Description of Math_Exception fix |
fdb8fb96 | 5886 | */ |
5887 | tSCC zMath_ExceptionName[] = | |
d4c4b01d | 5888 | "math_exception"; |
5889 | ||
fdb8fb96 | 5890 | /* |
5891 | * File name selection pattern | |
5892 | */ | |
5893 | tSCC zMath_ExceptionList[] = | |
e9afa104 | 5894 | "math.h\0"; |
fdb8fb96 | 5895 | /* |
5896 | * Machine/OS name selection pattern | |
5897 | */ | |
3efb5d22 | 5898 | tSCC* apzMath_ExceptionMachs[] = { |
5899 | "*-*-solaris2.1[0-9]*", | |
5900 | (const char*)NULL }; | |
fdb8fb96 | 5901 | |
5902 | /* | |
c1b28c63 | 5903 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 5904 | */ |
5905 | tSCC zMath_ExceptionSelect0[] = | |
5906 | "struct exception"; | |
5907 | ||
bb304030 | 5908 | /* |
5909 | * content bypass pattern - skip fix if pattern found | |
5910 | */ | |
5911 | tSCC zMath_ExceptionBypass0[] = | |
634f7a13 | 5912 | "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception"; |
bb304030 | 5913 | |
5914 | #define MATH_EXCEPTION_TEST_CT 2 | |
2548396b | 5915 | static tTestDesc aMath_ExceptionTests[] = { |
bb304030 | 5916 | { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL }, |
5daf7ede | 5917 | { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5918 | |
5919 | /* | |
5920 | * Fix Command Arguments for Math_Exception | |
5921 | */ | |
2548396b | 5922 | static const char* apzMath_ExceptionPatch[] = { |
e6650807 | 5923 | "wrap", |
5924 | "#ifdef __cplusplus\n\ | |
5925 | #define exception __math_exception\n\ | |
efb1b79b | 5926 | #endif\n", |
e6650807 | 5927 | "#ifdef __cplusplus\n\ |
5928 | #undef exception\n\ | |
efb1b79b | 5929 | #endif\n", |
fdb8fb96 | 5930 | (char*)NULL }; |
5931 | ||
5932 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5933 | * | |
bb304030 | 5934 | * Description of Math_Huge_Val_From_Dbl_Max fix |
fdb8fb96 | 5935 | */ |
bb304030 | 5936 | tSCC zMath_Huge_Val_From_Dbl_MaxName[] = |
d4c4b01d | 5937 | "math_huge_val_from_dbl_max"; |
5938 | ||
fdb8fb96 | 5939 | /* |
5940 | * File name selection pattern | |
5941 | */ | |
bb304030 | 5942 | tSCC zMath_Huge_Val_From_Dbl_MaxList[] = |
e9afa104 | 5943 | "math.h\0"; |
fdb8fb96 | 5944 | /* |
5945 | * Machine/OS name selection pattern | |
5946 | */ | |
bb304030 | 5947 | #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL |
5948 | ||
5949 | /* | |
5950 | * content selection pattern - do fix if pattern found | |
5951 | */ | |
5952 | tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] = | |
b07d36b9 | 5953 | "define[ \t]+HUGE_VAL[ \t]+DBL_MAX"; |
fdb8fb96 | 5954 | |
5955 | /* | |
bb304030 | 5956 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 5957 | */ |
bb304030 | 5958 | tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = |
b07d36b9 | 5959 | "define[ \t]+DBL_MAX"; |
bb304030 | 5960 | |
5961 | #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 | |
2548396b | 5962 | static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { |
bb304030 | 5963 | { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL }, |
5964 | { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, }; | |
5965 | ||
5966 | /* | |
5967 | * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max | |
5968 | */ | |
2548396b | 5969 | static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c", |
5c0b86e6 | 5970 | "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\ |
bb304030 | 5971 | \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\ |
b07d36b9 | 5972 | \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\ |
bb304030 | 5973 | \telse cat\n\ |
5974 | \tfi", | |
5975 | (char*)NULL }; | |
5976 | ||
3072d11f | 5977 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5978 | * | |
5979 | * Description of Nested_Auth_Des fix | |
5980 | */ | |
5981 | tSCC zNested_Auth_DesName[] = | |
5982 | "nested_auth_des"; | |
5983 | ||
5984 | /* | |
5985 | * File name selection pattern | |
5986 | */ | |
5987 | tSCC zNested_Auth_DesList[] = | |
e9afa104 | 5988 | "rpc/rpc.h\0"; |
3072d11f | 5989 | /* |
5990 | * Machine/OS name selection pattern | |
5991 | */ | |
5992 | #define apzNested_Auth_DesMachs (const char**)NULL | |
5993 | ||
5994 | /* | |
5995 | * content selection pattern - do fix if pattern found | |
5996 | */ | |
5997 | tSCC zNested_Auth_DesSelect0[] = | |
5998 | "(/\\*.*rpc/auth_des\\.h>.*)/\\*"; | |
5999 | ||
6000 | #define NESTED_AUTH_DES_TEST_CT 1 | |
6001 | static tTestDesc aNested_Auth_DesTests[] = { | |
6002 | { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, }; | |
6003 | ||
6004 | /* | |
6005 | * Fix Command Arguments for Nested_Auth_Des | |
6006 | */ | |
6007 | static const char* apzNested_Auth_DesPatch[] = { | |
6008 | "format", | |
6009 | "%1*/ /*", | |
6010 | (char*)NULL }; | |
6011 | ||
4cbf73b4 | 6012 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6013 | * | |
6014 | * Description of Netbsd_C99_Inline_1 fix | |
6015 | */ | |
6016 | tSCC zNetbsd_C99_Inline_1Name[] = | |
6017 | "netbsd_c99_inline_1"; | |
6018 | ||
6019 | /* | |
6020 | * File name selection pattern | |
6021 | */ | |
6022 | tSCC zNetbsd_C99_Inline_1List[] = | |
6023 | "signal.h\0"; | |
6024 | /* | |
6025 | * Machine/OS name selection pattern | |
6026 | */ | |
6027 | tSCC* apzNetbsd_C99_Inline_1Machs[] = { | |
6028 | "*-*-netbsd*", | |
6029 | (const char*)NULL }; | |
6030 | ||
6031 | /* | |
6032 | * content selection pattern - do fix if pattern found | |
6033 | */ | |
6034 | tSCC zNetbsd_C99_Inline_1Select0[] = | |
6035 | "extern __inline int"; | |
6036 | ||
6037 | #define NETBSD_C99_INLINE_1_TEST_CT 1 | |
6038 | static tTestDesc aNetbsd_C99_Inline_1Tests[] = { | |
6039 | { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, }; | |
6040 | ||
6041 | /* | |
6042 | * Fix Command Arguments for Netbsd_C99_Inline_1 | |
6043 | */ | |
6044 | static const char* apzNetbsd_C99_Inline_1Patch[] = { | |
6045 | "format", | |
6046 | "extern\n\ | |
6047 | #ifdef __GNUC_STDC_INLINE__\n\ | |
6048 | __attribute__((__gnu_inline__))\n\ | |
6049 | #endif\n\ | |
6050 | __inline int", | |
6051 | (char*)NULL }; | |
6052 | ||
759bfb14 | 6053 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6054 | * | |
6055 | * Description of Netbsd_C99_Inline_2 fix | |
6056 | */ | |
6057 | tSCC zNetbsd_C99_Inline_2Name[] = | |
6058 | "netbsd_c99_inline_2"; | |
6059 | ||
6060 | /* | |
6061 | * File name selection pattern | |
6062 | */ | |
6063 | tSCC zNetbsd_C99_Inline_2List[] = | |
6064 | "signal.h\0"; | |
6065 | /* | |
6066 | * Machine/OS name selection pattern | |
6067 | */ | |
6068 | tSCC* apzNetbsd_C99_Inline_2Machs[] = { | |
6069 | "*-*-netbsd*", | |
6070 | (const char*)NULL }; | |
6071 | ||
6072 | /* | |
6073 | * content selection pattern - do fix if pattern found | |
6074 | */ | |
6075 | tSCC zNetbsd_C99_Inline_2Select0[] = | |
6076 | "#define _SIGINLINE extern __inline"; | |
6077 | ||
6078 | #define NETBSD_C99_INLINE_2_TEST_CT 1 | |
6079 | static tTestDesc aNetbsd_C99_Inline_2Tests[] = { | |
6080 | { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, }; | |
6081 | ||
6082 | /* | |
6083 | * Fix Command Arguments for Netbsd_C99_Inline_2 | |
6084 | */ | |
6085 | static const char* apzNetbsd_C99_Inline_2Patch[] = { | |
6086 | "format", | |
6087 | "#ifdef __GNUC_STDC_INLINE__\n\ | |
6088 | #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\ | |
6089 | #else\n\ | |
6090 | %0\n\ | |
6091 | #endif", | |
6092 | (char*)NULL }; | |
6093 | ||
81a897fb | 6094 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6095 | * | |
6096 | * Description of Netbsd_Extra_Semicolon fix | |
6097 | */ | |
6098 | tSCC zNetbsd_Extra_SemicolonName[] = | |
6099 | "netbsd_extra_semicolon"; | |
6100 | ||
6101 | /* | |
6102 | * File name selection pattern | |
6103 | */ | |
6104 | tSCC zNetbsd_Extra_SemicolonList[] = | |
e9afa104 | 6105 | "sys/cdefs.h\0"; |
81a897fb | 6106 | /* |
6107 | * Machine/OS name selection pattern | |
6108 | */ | |
6109 | tSCC* apzNetbsd_Extra_SemicolonMachs[] = { | |
6110 | "*-*-netbsd*", | |
6111 | (const char*)NULL }; | |
6112 | ||
6113 | /* | |
6114 | * content selection pattern - do fix if pattern found | |
6115 | */ | |
6116 | tSCC zNetbsd_Extra_SemicolonSelect0[] = | |
6117 | "#define[ \t]*__END_DECLS[ \t]*};"; | |
6118 | ||
6119 | #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1 | |
6120 | static tTestDesc aNetbsd_Extra_SemicolonTests[] = { | |
6121 | { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, }; | |
6122 | ||
6123 | /* | |
6124 | * Fix Command Arguments for Netbsd_Extra_Semicolon | |
6125 | */ | |
6126 | static const char* apzNetbsd_Extra_SemicolonPatch[] = { | |
6127 | "format", | |
6128 | "#define __END_DECLS }", | |
6129 | (char*)NULL }; | |
6130 | ||
f3449a3c | 6131 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6132 | * | |
6133 | * Description of Newlib_Stdint_1 fix | |
6134 | */ | |
6135 | tSCC zNewlib_Stdint_1Name[] = | |
6136 | "newlib_stdint_1"; | |
6137 | ||
6138 | /* | |
6139 | * File name selection pattern | |
6140 | */ | |
6141 | tSCC zNewlib_Stdint_1List[] = | |
e2fb821c | 6142 | "stdint-newlib.h\0stdint.h\0"; |
f3449a3c | 6143 | /* |
6144 | * Machine/OS name selection pattern | |
6145 | */ | |
6146 | #define apzNewlib_Stdint_1Machs (const char**)NULL | |
6147 | ||
6148 | /* | |
6149 | * content selection pattern - do fix if pattern found | |
6150 | */ | |
6151 | tSCC zNewlib_Stdint_1Select0[] = | |
6152 | "@todo - Add support for wint_t types"; | |
6153 | ||
6154 | #define NEWLIB_STDINT_1_TEST_CT 1 | |
6155 | static tTestDesc aNewlib_Stdint_1Tests[] = { | |
6156 | { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, }; | |
6157 | ||
6158 | /* | |
6159 | * Fix Command Arguments for Newlib_Stdint_1 | |
6160 | */ | |
6161 | static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z, | |
6162 | "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@", | |
6163 | "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@", | |
6164 | "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@", | |
6165 | "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@", | |
6166 | "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@", | |
6167 | "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@", | |
6168 | "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@", | |
6169 | "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@", | |
6170 | "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@", | |
6171 | "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@", | |
6172 | "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@", | |
6173 | "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@", | |
6174 | "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@", | |
6175 | "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@", | |
6176 | (char*)NULL }; | |
6177 | ||
6178 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6179 | * | |
6180 | * Description of Newlib_Stdint_2 fix | |
6181 | */ | |
6182 | tSCC zNewlib_Stdint_2Name[] = | |
6183 | "newlib_stdint_2"; | |
6184 | ||
6185 | /* | |
6186 | * File name selection pattern | |
6187 | */ | |
6188 | tSCC zNewlib_Stdint_2List[] = | |
e2fb821c | 6189 | "stdint-newlib.h\0stdint.h\0"; |
f3449a3c | 6190 | /* |
6191 | * Machine/OS name selection pattern | |
6192 | */ | |
6193 | #define apzNewlib_Stdint_2Machs (const char**)NULL | |
6194 | ||
6195 | /* | |
6196 | * content selection pattern - do fix if pattern found | |
6197 | */ | |
6198 | tSCC zNewlib_Stdint_2Select0[] = | |
6199 | "@todo - Add support for wint_t types"; | |
6200 | ||
6201 | #define NEWLIB_STDINT_2_TEST_CT 1 | |
6202 | static tTestDesc aNewlib_Stdint_2Tests[] = { | |
6203 | { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, }; | |
6204 | ||
6205 | /* | |
6206 | * Fix Command Arguments for Newlib_Stdint_2 | |
6207 | */ | |
6208 | static const char* apzNewlib_Stdint_2Patch[] = { | |
6209 | "format", | |
6210 | "#define INTMAX_MAX __INTMAX_MAX__\n\ | |
6211 | #define INTMAX_MIN (-INTMAX_MAX - 1)\n\ | |
6212 | #define UINTMAX_MAX __UINTMAX_MAX__\n\ | |
6213 | #define WCHAR_MAX __WCHAR_MAX__\n\ | |
6214 | #define WCHAR_MIN __WCHAR_MIN__\n\ | |
6215 | #define WINT_MAX __WINT_MAX__\n\ | |
6216 | #define WINT_MIN __WINT_MIN__\n\n\ | |
6217 | %0", | |
6218 | "/\\*\\* Macros for minimum-width integer constant expressions \\*/", | |
6219 | (char*)NULL }; | |
6220 | ||
fdb8fb96 | 6221 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6222 | * | |
5daf7ede | 6223 | * Description of Next_Math_Prefix fix |
fdb8fb96 | 6224 | */ |
6225 | tSCC zNext_Math_PrefixName[] = | |
d4c4b01d | 6226 | "next_math_prefix"; |
6227 | ||
fdb8fb96 | 6228 | /* |
6229 | * File name selection pattern | |
6230 | */ | |
6231 | tSCC zNext_Math_PrefixList[] = | |
e9afa104 | 6232 | "ansi/math.h\0"; |
fdb8fb96 | 6233 | /* |
6234 | * Machine/OS name selection pattern | |
6235 | */ | |
6236 | #define apzNext_Math_PrefixMachs (const char**)NULL | |
6237 | ||
6238 | /* | |
c1b28c63 | 6239 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6240 | */ |
6241 | tSCC zNext_Math_PrefixSelect0[] = | |
a83746ef | 6242 | "^extern[ \t]+double[ \t]+__const__[ \t]"; |
fdb8fb96 | 6243 | |
6244 | #define NEXT_MATH_PREFIX_TEST_CT 1 | |
2548396b | 6245 | static tTestDesc aNext_Math_PrefixTests[] = { |
5daf7ede | 6246 | { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6247 | |
6248 | /* | |
6249 | * Fix Command Arguments for Next_Math_Prefix | |
6250 | */ | |
2548396b | 6251 | static const char* apzNext_Math_PrefixPatch[] = { |
a83746ef | 6252 | "format", |
6253 | "extern double %1(", | |
6254 | "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(", | |
fdb8fb96 | 6255 | (char*)NULL }; |
6256 | ||
6257 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6258 | * | |
5daf7ede | 6259 | * Description of Next_Template fix |
fdb8fb96 | 6260 | */ |
6261 | tSCC zNext_TemplateName[] = | |
d4c4b01d | 6262 | "next_template"; |
6263 | ||
fdb8fb96 | 6264 | /* |
6265 | * File name selection pattern | |
6266 | */ | |
6267 | tSCC zNext_TemplateList[] = | |
e9afa104 | 6268 | "bsd/libc.h\0"; |
fdb8fb96 | 6269 | /* |
6270 | * Machine/OS name selection pattern | |
6271 | */ | |
6272 | #define apzNext_TemplateMachs (const char**)NULL | |
6273 | ||
6274 | /* | |
c1b28c63 | 6275 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6276 | */ |
6277 | tSCC zNext_TemplateSelect0[] = | |
a83746ef | 6278 | "[ \t]template\\)"; |
fdb8fb96 | 6279 | |
6280 | #define NEXT_TEMPLATE_TEST_CT 1 | |
2548396b | 6281 | static tTestDesc aNext_TemplateTests[] = { |
5daf7ede | 6282 | { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6283 | |
6284 | /* | |
6285 | * Fix Command Arguments for Next_Template | |
6286 | */ | |
2548396b | 6287 | static const char* apzNext_TemplatePatch[] = { |
a83746ef | 6288 | "format", |
6289 | "(%1)", | |
6290 | "\\(([^)]*)[ \t]template\\)", | |
fdb8fb96 | 6291 | (char*)NULL }; |
6292 | ||
6293 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6294 | * | |
5daf7ede | 6295 | * Description of Next_Volitile fix |
fdb8fb96 | 6296 | */ |
6297 | tSCC zNext_VolitileName[] = | |
d4c4b01d | 6298 | "next_volitile"; |
6299 | ||
fdb8fb96 | 6300 | /* |
6301 | * File name selection pattern | |
6302 | */ | |
6303 | tSCC zNext_VolitileList[] = | |
e9afa104 | 6304 | "ansi/stdlib.h\0"; |
fdb8fb96 | 6305 | /* |
6306 | * Machine/OS name selection pattern | |
6307 | */ | |
6308 | #define apzNext_VolitileMachs (const char**)NULL | |
6309 | ||
6310 | /* | |
c1b28c63 | 6311 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6312 | */ |
6313 | tSCC zNext_VolitileSelect0[] = | |
a83746ef | 6314 | "^extern[ \t]+volatile[ \t]+void[ \t]"; |
fdb8fb96 | 6315 | |
6316 | #define NEXT_VOLITILE_TEST_CT 1 | |
2548396b | 6317 | static tTestDesc aNext_VolitileTests[] = { |
5daf7ede | 6318 | { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6319 | |
6320 | /* | |
6321 | * Fix Command Arguments for Next_Volitile | |
6322 | */ | |
2548396b | 6323 | static const char* apzNext_VolitilePatch[] = { |
a83746ef | 6324 | "format", |
6325 | "extern void %1(", | |
6326 | "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(", | |
fdb8fb96 | 6327 | (char*)NULL }; |
6328 | ||
6329 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6330 | * | |
5daf7ede | 6331 | * Description of Next_Wait_Union fix |
fdb8fb96 | 6332 | */ |
6333 | tSCC zNext_Wait_UnionName[] = | |
d4c4b01d | 6334 | "next_wait_union"; |
6335 | ||
fdb8fb96 | 6336 | /* |
6337 | * File name selection pattern | |
6338 | */ | |
6339 | tSCC zNext_Wait_UnionList[] = | |
e9afa104 | 6340 | "sys/wait.h\0"; |
fdb8fb96 | 6341 | /* |
6342 | * Machine/OS name selection pattern | |
6343 | */ | |
6344 | #define apzNext_Wait_UnionMachs (const char**)NULL | |
6345 | ||
6346 | /* | |
c1b28c63 | 6347 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6348 | */ |
6349 | tSCC zNext_Wait_UnionSelect0[] = | |
6350 | "wait\\(union wait"; | |
6351 | ||
6352 | #define NEXT_WAIT_UNION_TEST_CT 1 | |
2548396b | 6353 | static tTestDesc aNext_Wait_UnionTests[] = { |
5daf7ede | 6354 | { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6355 | |
6356 | /* | |
6357 | * Fix Command Arguments for Next_Wait_Union | |
6358 | */ | |
2548396b | 6359 | static const char* apzNext_Wait_UnionPatch[] = { |
038a3e7a | 6360 | "format", |
6361 | "wait(void", | |
fdb8fb96 | 6362 | (char*)NULL }; |
6363 | ||
6364 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6365 | * | |
5daf7ede | 6366 | * Description of Nodeent_Syntax fix |
fdb8fb96 | 6367 | */ |
6368 | tSCC zNodeent_SyntaxName[] = | |
d4c4b01d | 6369 | "nodeent_syntax"; |
6370 | ||
fdb8fb96 | 6371 | /* |
6372 | * File name selection pattern | |
6373 | */ | |
6374 | tSCC zNodeent_SyntaxList[] = | |
e9afa104 | 6375 | "netdnet/dnetdb.h\0"; |
fdb8fb96 | 6376 | /* |
6377 | * Machine/OS name selection pattern | |
6378 | */ | |
6379 | #define apzNodeent_SyntaxMachs (const char**)NULL | |
038a3e7a | 6380 | |
6381 | /* | |
6382 | * content selection pattern - do fix if pattern found | |
6383 | */ | |
6384 | tSCC zNodeent_SyntaxSelect0[] = | |
6385 | "char[ \t]*\\*na_addr[ \t]*$"; | |
6386 | ||
6387 | #define NODEENT_SYNTAX_TEST_CT 1 | |
2548396b | 6388 | static tTestDesc aNodeent_SyntaxTests[] = { |
038a3e7a | 6389 | { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6390 | |
6391 | /* | |
6392 | * Fix Command Arguments for Nodeent_Syntax | |
6393 | */ | |
2548396b | 6394 | static const char* apzNodeent_SyntaxPatch[] = { |
038a3e7a | 6395 | "format", |
6396 | "%0;", | |
fdb8fb96 | 6397 | (char*)NULL }; |
6398 | ||
6dcfb197 | 6399 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6400 | * | |
6401 | * Description of Openbsd_Null_Definition fix | |
6402 | */ | |
6403 | tSCC zOpenbsd_Null_DefinitionName[] = | |
6404 | "openbsd_null_definition"; | |
6405 | ||
6406 | /* | |
6407 | * File name selection pattern | |
6408 | */ | |
6409 | tSCC zOpenbsd_Null_DefinitionList[] = | |
6410 | "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0"; | |
6411 | /* | |
6412 | * Machine/OS name selection pattern | |
6413 | */ | |
6414 | tSCC* apzOpenbsd_Null_DefinitionMachs[] = { | |
6415 | "*-*-openbsd*", | |
6416 | (const char*)NULL }; | |
6417 | ||
6418 | /* | |
6419 | * content selection pattern - do fix if pattern found | |
6420 | */ | |
6421 | tSCC zOpenbsd_Null_DefinitionSelect0[] = | |
6422 | "__GNUG__"; | |
6423 | ||
6424 | #define OPENBSD_NULL_DEFINITION_TEST_CT 1 | |
6425 | static tTestDesc aOpenbsd_Null_DefinitionTests[] = { | |
6426 | { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, }; | |
6427 | ||
6428 | /* | |
6429 | * Fix Command Arguments for Openbsd_Null_Definition | |
6430 | */ | |
6431 | static const char* apzOpenbsd_Null_DefinitionPatch[] = { | |
6432 | "format", | |
6433 | "#ifndef NULL\n\ | |
6434 | #ifdef __cplusplus\n\ | |
6435 | #ifdef __GNUG__\n\ | |
6436 | #define NULL\t__null\n\ | |
6437 | #else\t /* ! __GNUG__ */\n\ | |
6438 | #define NULL\t0L\n\ | |
6439 | #endif\t /* __GNUG__ */\n\ | |
6440 | #else\t /* ! __cplusplus */\n\ | |
6441 | #define NULL\t((void *)0)\n\ | |
6442 | #endif\t /* __cplusplus */\n\ | |
6443 | #endif\t /* !NULL */", | |
6444 | "^#ifndef[ \t]*NULL\n\ | |
6445 | ^#ifdef[ \t]*__GNUG__\n\ | |
6446 | ^#define[ \t]*NULL[ \t]*__null\n\ | |
6447 | ^#else\n\ | |
6448 | ^#define[ \t]*NULL[ \t]*0L\n\ | |
6449 | ^#endif\n\ | |
6450 | ^#endif", | |
6451 | (char*)NULL }; | |
6452 | ||
129b92e3 | 6453 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6454 | * | |
6455 | * Description of Obstack_Lvalue_Cast fix | |
6456 | */ | |
6457 | tSCC zObstack_Lvalue_CastName[] = | |
6458 | "obstack_lvalue_cast"; | |
6459 | ||
6460 | /* | |
6461 | * File name selection pattern | |
6462 | */ | |
6463 | tSCC zObstack_Lvalue_CastList[] = | |
e9afa104 | 6464 | "obstack.h\0"; |
129b92e3 | 6465 | /* |
6466 | * Machine/OS name selection pattern | |
6467 | */ | |
6468 | #define apzObstack_Lvalue_CastMachs (const char**)NULL | |
6469 | ||
6470 | /* | |
6471 | * content selection pattern - do fix if pattern found | |
6472 | */ | |
6473 | tSCC zObstack_Lvalue_CastSelect0[] = | |
6474 | "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)"; | |
6475 | ||
6476 | #define OBSTACK_LVALUE_CAST_TEST_CT 1 | |
6477 | static tTestDesc aObstack_Lvalue_CastTests[] = { | |
6478 | { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, }; | |
6479 | ||
6480 | /* | |
6481 | * Fix Command Arguments for Obstack_Lvalue_Cast | |
6482 | */ | |
6483 | static const char* apzObstack_Lvalue_CastPatch[] = { | |
6484 | "format", | |
6485 | "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))", | |
6486 | (char*)NULL }; | |
6487 | ||
2b0752cc | 6488 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6489 | * | |
6490 | * Description of Openbsd_Va_Start fix | |
6491 | */ | |
6492 | tSCC zOpenbsd_Va_StartName[] = | |
6493 | "openbsd_va_start"; | |
6494 | ||
6495 | /* | |
6496 | * File name selection pattern | |
6497 | */ | |
6498 | tSCC zOpenbsd_Va_StartList[] = | |
6499 | "stdarg.h\0"; | |
6500 | /* | |
6501 | * Machine/OS name selection pattern | |
6502 | */ | |
6503 | tSCC* apzOpenbsd_Va_StartMachs[] = { | |
6504 | "*-*-openbsd*", | |
6505 | (const char*)NULL }; | |
6506 | ||
6507 | /* | |
6508 | * content selection pattern - do fix if pattern found | |
6509 | */ | |
6510 | tSCC zOpenbsd_Va_StartSelect0[] = | |
6511 | "__builtin_stdarg_start"; | |
6512 | ||
6513 | #define OPENBSD_VA_START_TEST_CT 1 | |
6514 | static tTestDesc aOpenbsd_Va_StartTests[] = { | |
6515 | { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, }; | |
6516 | ||
6517 | /* | |
6518 | * Fix Command Arguments for Openbsd_Va_Start | |
6519 | */ | |
6520 | static const char* apzOpenbsd_Va_StartPatch[] = { | |
6521 | "format", | |
6522 | "__builtin_va_start", | |
6523 | (char*)NULL }; | |
6524 | ||
fdb8fb96 | 6525 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6526 | * | |
5daf7ede | 6527 | * Description of Osf_Namespace_A fix |
fdb8fb96 | 6528 | */ |
6529 | tSCC zOsf_Namespace_AName[] = | |
d4c4b01d | 6530 | "osf_namespace_a"; |
6531 | ||
fdb8fb96 | 6532 | /* |
6533 | * File name selection pattern | |
6534 | */ | |
6535 | tSCC zOsf_Namespace_AList[] = | |
e9afa104 | 6536 | "reg_types.h\0sys/lc_core.h\0"; |
fdb8fb96 | 6537 | /* |
6538 | * Machine/OS name selection pattern | |
6539 | */ | |
6540 | #define apzOsf_Namespace_AMachs (const char**)NULL | |
6541 | ||
6542 | /* | |
c1b28c63 | 6543 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 6544 | */ |
6545 | tSCC zOsf_Namespace_ATest0[] = | |
38ebab8a | 6546 | " -r reg_types.h"; |
6547 | tSCC zOsf_Namespace_ATest1[] = | |
6548 | " -r sys/lc_core.h"; | |
6549 | tSCC zOsf_Namespace_ATest2[] = | |
6550 | " -n \"`grep '} regex_t;' reg_types.h`\""; | |
6551 | tSCC zOsf_Namespace_ATest3[] = | |
6552 | " -z \"`grep __regex_t regex.h`\""; | |
6553 | ||
6554 | #define OSF_NAMESPACE_A_TEST_CT 4 | |
2548396b | 6555 | static tTestDesc aOsf_Namespace_ATests[] = { |
5daf7ede | 6556 | { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, |
6557 | { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ }, | |
6558 | { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ }, | |
6559 | { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, }; | |
fdb8fb96 | 6560 | |
6561 | /* | |
6562 | * Fix Command Arguments for Osf_Namespace_A | |
6563 | */ | |
2548396b | 6564 | static const char* apzOsf_Namespace_APatch[] = { |
038a3e7a | 6565 | "format", |
6566 | "__%0", | |
f0a465b4 | 6567 | "reg(ex|off|match)_t", |
fdb8fb96 | 6568 | (char*)NULL }; |
6569 | ||
6570 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6571 | * | |
038a3e7a | 6572 | * Description of Osf_Namespace_C fix |
fdb8fb96 | 6573 | */ |
038a3e7a | 6574 | tSCC zOsf_Namespace_CName[] = |
6575 | "osf_namespace_c"; | |
d4c4b01d | 6576 | |
fdb8fb96 | 6577 | /* |
6578 | * File name selection pattern | |
6579 | */ | |
038a3e7a | 6580 | tSCC zOsf_Namespace_CList[] = |
e9afa104 | 6581 | "regex.h\0"; |
fdb8fb96 | 6582 | /* |
6583 | * Machine/OS name selection pattern | |
6584 | */ | |
038a3e7a | 6585 | #define apzOsf_Namespace_CMachs (const char**)NULL |
6586 | ||
6587 | /* | |
6588 | * content selection pattern - do fix if pattern found | |
6589 | */ | |
6590 | tSCC zOsf_Namespace_CSelect0[] = | |
6591 | "#include <reg_types.h>.*"; | |
fdb8fb96 | 6592 | |
6593 | /* | |
c1b28c63 | 6594 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 6595 | */ |
038a3e7a | 6596 | tSCC zOsf_Namespace_CTest0[] = |
38ebab8a | 6597 | " -r reg_types.h"; |
038a3e7a | 6598 | tSCC zOsf_Namespace_CTest1[] = |
38ebab8a | 6599 | " -r sys/lc_core.h"; |
038a3e7a | 6600 | tSCC zOsf_Namespace_CTest2[] = |
38ebab8a | 6601 | " -n \"`grep '} regex_t;' reg_types.h`\""; |
038a3e7a | 6602 | tSCC zOsf_Namespace_CTest3[] = |
38ebab8a | 6603 | " -z \"`grep __regex_t regex.h`\""; |
6604 | ||
038a3e7a | 6605 | #define OSF_NAMESPACE_C_TEST_CT 5 |
2548396b | 6606 | static tTestDesc aOsf_Namespace_CTests[] = { |
038a3e7a | 6607 | { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ }, |
6608 | { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ }, | |
6609 | { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ }, | |
6610 | { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ }, | |
6611 | { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 6612 | |
6613 | /* | |
038a3e7a | 6614 | * Fix Command Arguments for Osf_Namespace_C |
fdb8fb96 | 6615 | */ |
2548396b | 6616 | static const char* apzOsf_Namespace_CPatch[] = { |
038a3e7a | 6617 | "format", |
6618 | "%0\n\ | |
6619 | typedef __regex_t\tregex_t;\n\ | |
6620 | typedef __regoff_t\tregoff_t;\n\ | |
6621 | typedef __regmatch_t\tregmatch_t;", | |
fdb8fb96 | 6622 | (char*)NULL }; |
6623 | ||
a11c2c4d | 6624 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6625 | * | |
6626 | * Description of Pthread_Incomplete_Struct_Argument fix | |
6627 | */ | |
6628 | tSCC zPthread_Incomplete_Struct_ArgumentName[] = | |
6629 | "pthread_incomplete_struct_argument"; | |
6630 | ||
6631 | /* | |
6632 | * File name selection pattern | |
6633 | */ | |
6634 | tSCC zPthread_Incomplete_Struct_ArgumentList[] = | |
e9afa104 | 6635 | "pthread.h\0"; |
a11c2c4d | 6636 | /* |
6637 | * Machine/OS name selection pattern | |
6638 | */ | |
6639 | #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL | |
6640 | ||
6641 | /* | |
6642 | * content selection pattern - do fix if pattern found | |
6643 | */ | |
6644 | tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] = | |
6645 | "struct __jmp_buf_tag"; | |
6646 | ||
6647 | #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1 | |
6648 | static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = { | |
6649 | { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, }; | |
6650 | ||
6651 | /* | |
6652 | * Fix Command Arguments for Pthread_Incomplete_Struct_Argument | |
6653 | */ | |
6654 | static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = { | |
6655 | "format", | |
6656 | "%1 *%2%3", | |
6657 | "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$", | |
6658 | (char*)NULL }; | |
6659 | ||
fdb8fb96 | 6660 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6661 | * | |
5daf7ede | 6662 | * Description of Read_Ret_Type fix |
d0f5620b | 6663 | */ |
6664 | tSCC zRead_Ret_TypeName[] = | |
d4c4b01d | 6665 | "read_ret_type"; |
6666 | ||
d0f5620b | 6667 | /* |
6668 | * File name selection pattern | |
6669 | */ | |
6670 | tSCC zRead_Ret_TypeList[] = | |
e9afa104 | 6671 | "stdio.h\0"; |
d0f5620b | 6672 | /* |
6673 | * Machine/OS name selection pattern | |
6674 | */ | |
6675 | #define apzRead_Ret_TypeMachs (const char**)NULL | |
6676 | ||
6677 | /* | |
6678 | * content selection pattern - do fix if pattern found | |
6679 | */ | |
6680 | tSCC zRead_Ret_TypeSelect0[] = | |
6681 | "extern int\t.*, fread\\(\\), fwrite\\(\\)"; | |
6682 | ||
6683 | #define READ_RET_TYPE_TEST_CT 1 | |
2548396b | 6684 | static tTestDesc aRead_Ret_TypeTests[] = { |
5daf7ede | 6685 | { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, }; |
d0f5620b | 6686 | |
6687 | /* | |
6688 | * Fix Command Arguments for Read_Ret_Type | |
6689 | */ | |
2548396b | 6690 | static const char* apzRead_Ret_TypePatch[] = { |
038a3e7a | 6691 | "format", |
6692 | "extern unsigned int fread(), fwrite();\n\ | |
6693 | %1%2", | |
6694 | "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)", | |
d0f5620b | 6695 | (char*)NULL }; |
6696 | ||
e68aa18b | 6697 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6698 | * | |
6699 | * Description of Rpc_Xdr_Lvalue_Cast_A fix | |
6700 | */ | |
6701 | tSCC zRpc_Xdr_Lvalue_Cast_AName[] = | |
6702 | "rpc_xdr_lvalue_cast_a"; | |
6703 | ||
6704 | /* | |
6705 | * File name selection pattern | |
6706 | */ | |
6707 | tSCC zRpc_Xdr_Lvalue_Cast_AList[] = | |
e9afa104 | 6708 | "rpc/xdr.h\0"; |
e68aa18b | 6709 | /* |
6710 | * Machine/OS name selection pattern | |
6711 | */ | |
6712 | #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL | |
6713 | ||
6714 | /* | |
6715 | * content selection pattern - do fix if pattern found | |
6716 | */ | |
6717 | tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] = | |
6718 | "#define[ \t]*IXDR_GET_LONG.*\\\\\n\ | |
6719 | .*__extension__.*"; | |
6720 | ||
6721 | #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1 | |
6722 | static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = { | |
6723 | { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, }; | |
6724 | ||
6725 | /* | |
6726 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A | |
6727 | */ | |
6728 | static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = { | |
6729 | "format", | |
6730 | "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))", | |
6731 | (char*)NULL }; | |
6732 | ||
6733 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6734 | * | |
6735 | * Description of Rpc_Xdr_Lvalue_Cast_B fix | |
6736 | */ | |
6737 | tSCC zRpc_Xdr_Lvalue_Cast_BName[] = | |
6738 | "rpc_xdr_lvalue_cast_b"; | |
6739 | ||
6740 | /* | |
6741 | * File name selection pattern | |
6742 | */ | |
6743 | tSCC zRpc_Xdr_Lvalue_Cast_BList[] = | |
e9afa104 | 6744 | "rpc/xdr.h\0"; |
e68aa18b | 6745 | /* |
6746 | * Machine/OS name selection pattern | |
6747 | */ | |
6748 | #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL | |
6749 | ||
6750 | /* | |
6751 | * content selection pattern - do fix if pattern found | |
6752 | */ | |
6753 | tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] = | |
6754 | "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\ | |
6755 | .*__extension__.*"; | |
6756 | ||
6757 | #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1 | |
6758 | static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = { | |
6759 | { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, }; | |
6760 | ||
6761 | /* | |
6762 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B | |
6763 | */ | |
6764 | static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = { | |
6765 | "format", | |
6766 | "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))", | |
6767 | (char*)NULL }; | |
6768 | ||
d0f5620b | 6769 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6770 | * | |
5daf7ede | 6771 | * Description of Rs6000_Double fix |
fdb8fb96 | 6772 | */ |
6773 | tSCC zRs6000_DoubleName[] = | |
d4c4b01d | 6774 | "rs6000_double"; |
6775 | ||
fdb8fb96 | 6776 | /* |
6777 | * File name selection pattern | |
6778 | */ | |
6779 | tSCC zRs6000_DoubleList[] = | |
e9afa104 | 6780 | "math.h\0"; |
fdb8fb96 | 6781 | /* |
6782 | * Machine/OS name selection pattern | |
6783 | */ | |
6784 | #define apzRs6000_DoubleMachs (const char**)NULL | |
6785 | ||
6786 | /* | |
c1b28c63 | 6787 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6788 | */ |
6789 | tSCC zRs6000_DoubleSelect0[] = | |
6790 | "[^a-zA-Z_]class\\("; | |
6791 | ||
6792 | #define RS6000_DOUBLE_TEST_CT 1 | |
2548396b | 6793 | static tTestDesc aRs6000_DoubleTests[] = { |
5daf7ede | 6794 | { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6795 | |
6796 | /* | |
6797 | * Fix Command Arguments for Rs6000_Double | |
6798 | */ | |
2548396b | 6799 | static const char* apzRs6000_DoublePatch[] = { |
038a3e7a | 6800 | "format", |
6801 | "#ifndef __cplusplus\n\ | |
6802 | %0\n\ | |
6803 | #endif", | |
6804 | "^.*[^a-zA-Z_]class\\(.*", | |
fdb8fb96 | 6805 | (char*)NULL }; |
6806 | ||
6807 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6808 | * | |
5daf7ede | 6809 | * Description of Rs6000_Fchmod fix |
fdb8fb96 | 6810 | */ |
6811 | tSCC zRs6000_FchmodName[] = | |
d4c4b01d | 6812 | "rs6000_fchmod"; |
6813 | ||
fdb8fb96 | 6814 | /* |
6815 | * File name selection pattern | |
6816 | */ | |
6817 | tSCC zRs6000_FchmodList[] = | |
e9afa104 | 6818 | "sys/stat.h\0"; |
fdb8fb96 | 6819 | /* |
6820 | * Machine/OS name selection pattern | |
6821 | */ | |
6822 | #define apzRs6000_FchmodMachs (const char**)NULL | |
6823 | ||
6824 | /* | |
c1b28c63 | 6825 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6826 | */ |
6827 | tSCC zRs6000_FchmodSelect0[] = | |
038a3e7a | 6828 | "fchmod\\(char \\*"; |
fdb8fb96 | 6829 | |
6830 | #define RS6000_FCHMOD_TEST_CT 1 | |
2548396b | 6831 | static tTestDesc aRs6000_FchmodTests[] = { |
5daf7ede | 6832 | { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6833 | |
6834 | /* | |
6835 | * Fix Command Arguments for Rs6000_Fchmod | |
6836 | */ | |
2548396b | 6837 | static const char* apzRs6000_FchmodPatch[] = { |
038a3e7a | 6838 | "format", |
6839 | "fchmod(int", | |
fdb8fb96 | 6840 | (char*)NULL }; |
6841 | ||
6842 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6843 | * | |
5daf7ede | 6844 | * Description of Rs6000_Param fix |
fdb8fb96 | 6845 | */ |
6846 | tSCC zRs6000_ParamName[] = | |
d4c4b01d | 6847 | "rs6000_param"; |
6848 | ||
fdb8fb96 | 6849 | /* |
6850 | * File name selection pattern | |
6851 | */ | |
6852 | tSCC zRs6000_ParamList[] = | |
e9afa104 | 6853 | "stdio.h\0unistd.h\0"; |
fdb8fb96 | 6854 | /* |
6855 | * Machine/OS name selection pattern | |
6856 | */ | |
6857 | #define apzRs6000_ParamMachs (const char**)NULL | |
bb304030 | 6858 | |
6859 | /* | |
6860 | * content selection pattern - do fix if pattern found | |
6861 | */ | |
6862 | tSCC zRs6000_ParamSelect0[] = | |
038a3e7a | 6863 | "rename\\(const char \\*old, const char \\*new\\)"; |
bb304030 | 6864 | |
6865 | #define RS6000_PARAM_TEST_CT 1 | |
2548396b | 6866 | static tTestDesc aRs6000_ParamTests[] = { |
bb304030 | 6867 | { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6868 | |
6869 | /* | |
6870 | * Fix Command Arguments for Rs6000_Param | |
6871 | */ | |
2548396b | 6872 | static const char* apzRs6000_ParamPatch[] = { |
038a3e7a | 6873 | "format", |
6874 | "rename(const char *_old, const char *_new)", | |
fdb8fb96 | 6875 | (char*)NULL }; |
6876 | ||
a6905708 | 6877 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6878 | * | |
6879 | * Description of Solaris___Restrict fix | |
6880 | */ | |
6881 | tSCC zSolaris___RestrictName[] = | |
6882 | "solaris___restrict"; | |
6883 | ||
6884 | /* | |
6885 | * File name selection pattern | |
6886 | */ | |
6887 | tSCC zSolaris___RestrictList[] = | |
6888 | "sys/feature_tests.h\0"; | |
6889 | /* | |
6890 | * Machine/OS name selection pattern | |
6891 | */ | |
6892 | tSCC* apzSolaris___RestrictMachs[] = { | |
6893 | "*-*-solaris2*", | |
6894 | (const char*)NULL }; | |
6895 | ||
6896 | /* | |
6897 | * content selection pattern - do fix if pattern found | |
6898 | */ | |
6899 | tSCC zSolaris___RestrictSelect0[] = | |
6900 | "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict"; | |
6901 | ||
6902 | #define SOLARIS___RESTRICT_TEST_CT 1 | |
6903 | static tTestDesc aSolaris___RestrictTests[] = { | |
6904 | { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, }; | |
6905 | ||
6906 | /* | |
6907 | * Fix Command Arguments for Solaris___Restrict | |
6908 | */ | |
6909 | static const char* apzSolaris___RestrictPatch[] = { | |
6910 | "format", | |
6911 | "#ifdef __cplusplus\n\ | |
6912 | #define\t_RESTRICT_KYWD\t__restrict\n\ | |
6913 | #else\n\ | |
6914 | %0\n\ | |
6915 | #endif", | |
6916 | (char*)NULL }; | |
6917 | ||
aee500d5 | 6918 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6919 | * | |
6920 | * Description of Solaris_Complex fix | |
6921 | */ | |
6922 | tSCC zSolaris_ComplexName[] = | |
6923 | "solaris_complex"; | |
6924 | ||
6925 | /* | |
6926 | * File name selection pattern | |
6927 | */ | |
6928 | tSCC zSolaris_ComplexList[] = | |
6929 | "complex.h\0"; | |
6930 | /* | |
6931 | * Machine/OS name selection pattern | |
6932 | */ | |
6933 | tSCC* apzSolaris_ComplexMachs[] = { | |
6934 | "*-*-solaris2.*", | |
6935 | (const char*)NULL }; | |
6936 | ||
6937 | /* | |
6938 | * content selection pattern - do fix if pattern found | |
6939 | */ | |
6940 | tSCC zSolaris_ComplexSelect0[] = | |
6941 | "#define[ \t]_Complex_I[ \t]_Complex_I"; | |
6942 | ||
6943 | #define SOLARIS_COMPLEX_TEST_CT 1 | |
6944 | static tTestDesc aSolaris_ComplexTests[] = { | |
6945 | { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, }; | |
6946 | ||
6947 | /* | |
6948 | * Fix Command Arguments for Solaris_Complex | |
6949 | */ | |
6950 | static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z, | |
b795c8d1 | 6951 | "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/", |
aee500d5 | 6952 | "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d", |
6953 | "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d", | |
b795c8d1 | 6954 | "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/", |
aee500d5 | 6955 | (char*)NULL }; |
6956 | ||
a6905708 | 6957 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6958 | * | |
6959 | * Description of Solaris_Complex_Cxx fix | |
6960 | */ | |
6961 | tSCC zSolaris_Complex_CxxName[] = | |
6962 | "solaris_complex_cxx"; | |
6963 | ||
6964 | /* | |
6965 | * File name selection pattern | |
6966 | */ | |
6967 | tSCC zSolaris_Complex_CxxList[] = | |
6968 | "complex.h\0"; | |
6969 | /* | |
6970 | * Machine/OS name selection pattern | |
6971 | */ | |
6972 | tSCC* apzSolaris_Complex_CxxMachs[] = { | |
6973 | "*-*-solaris2.*", | |
6974 | (const char*)NULL }; | |
6975 | #define SOLARIS_COMPLEX_CXX_TEST_CT 0 | |
6976 | #define aSolaris_Complex_CxxTests (tTestDesc*)NULL | |
6977 | ||
6978 | /* | |
d1ed71e5 | 6979 | * Fix Command Arguments for Solaris_Complex_Cxx |
6980 | */ | |
6981 | static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z, | |
6982 | "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\ | |
6983 | #ifdef\t__cplusplus\\\n\ | |
6984 | extern \"C\" {\\\n\ | |
6985 | #endif", | |
6986 | "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\ | |
6987 | #ifdef\t__cplusplus\\\n\ | |
6988 | }\\\n\ | |
6989 | #endif", | |
6990 | (char*)NULL }; | |
6991 | ||
6992 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6993 | * | |
6994 | * Description of Solaris_Cxx_Linkage fix | |
6995 | */ | |
6996 | tSCC zSolaris_Cxx_LinkageName[] = | |
6997 | "solaris_cxx_linkage"; | |
6998 | ||
6999 | /* | |
7000 | * File name selection pattern | |
7001 | */ | |
7002 | tSCC zSolaris_Cxx_LinkageList[] = | |
7003 | "iso/stdlib_iso.h\0"; | |
7004 | /* | |
7005 | * Machine/OS name selection pattern | |
7006 | */ | |
7007 | tSCC* apzSolaris_Cxx_LinkageMachs[] = { | |
7008 | "*-*-solaris2*", | |
7009 | (const char*)NULL }; | |
7010 | ||
7011 | /* | |
7012 | * content selection pattern - do fix if pattern found | |
7013 | */ | |
7014 | tSCC zSolaris_Cxx_LinkageSelect0[] = | |
7015 | "(#if __cplusplus >= 199711L)\n\ | |
7016 | (extern \"C\\+\\+\" \\{\n\ | |
7017 | )(.*(bsearch|qsort).*)"; | |
7018 | ||
7019 | #define SOLARIS_CXX_LINKAGE_TEST_CT 1 | |
7020 | static tTestDesc aSolaris_Cxx_LinkageTests[] = { | |
7021 | { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, }; | |
7022 | ||
7023 | /* | |
7024 | * Fix Command Arguments for Solaris_Cxx_Linkage | |
7025 | */ | |
7026 | static const char* apzSolaris_Cxx_LinkagePatch[] = { | |
7027 | "format", | |
7028 | "%1 && !__GNUG__\n\ | |
7029 | %2%3", | |
7030 | (char*)NULL }; | |
7031 | ||
7032 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7033 | * | |
7034 | * Description of Solaris_Getc_Strict_Stdc fix | |
7035 | */ | |
7036 | tSCC zSolaris_Getc_Strict_StdcName[] = | |
7037 | "solaris_getc_strict_stdc"; | |
7038 | ||
7039 | /* | |
7040 | * File name selection pattern | |
7041 | */ | |
7042 | tSCC zSolaris_Getc_Strict_StdcList[] = | |
7043 | "iso/stdio_iso.h\0"; | |
7044 | /* | |
7045 | * Machine/OS name selection pattern | |
7046 | */ | |
7047 | tSCC* apzSolaris_Getc_Strict_StdcMachs[] = { | |
7048 | "*-*-solaris2*", | |
7049 | (const char*)NULL }; | |
7050 | ||
7051 | /* | |
7052 | * content selection pattern - do fix if pattern found | |
7053 | */ | |
7054 | tSCC zSolaris_Getc_Strict_StdcSelect0[] = | |
7055 | "(.*&& )!defined\\(_STRICT_STDC\\)(.*)"; | |
7056 | ||
7057 | #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1 | |
7058 | static tTestDesc aSolaris_Getc_Strict_StdcTests[] = { | |
7059 | { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, }; | |
7060 | ||
7061 | /* | |
7062 | * Fix Command Arguments for Solaris_Getc_Strict_Stdc | |
7063 | */ | |
7064 | static const char* apzSolaris_Getc_Strict_StdcPatch[] = { | |
7065 | "format", | |
7066 | "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2", | |
7067 | (char*)NULL }; | |
7068 | ||
3c017b47 | 7069 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7070 | * | |
7071 | * Description of Solaris_Gets_C11 fix | |
7072 | */ | |
7073 | tSCC zSolaris_Gets_C11Name[] = | |
7074 | "solaris_gets_c11"; | |
7075 | ||
7076 | /* | |
7077 | * File name selection pattern | |
7078 | */ | |
7079 | tSCC zSolaris_Gets_C11List[] = | |
7080 | "iso/stdio_iso.h\0"; | |
7081 | /* | |
7082 | * Machine/OS name selection pattern | |
7083 | */ | |
7084 | tSCC* apzSolaris_Gets_C11Machs[] = { | |
7085 | "*-*-solaris2*", | |
7086 | (const char*)NULL }; | |
7087 | ||
7088 | /* | |
7089 | * content selection pattern - do fix if pattern found | |
7090 | */ | |
7091 | tSCC zSolaris_Gets_C11Select0[] = | |
7092 | "(extern char[ \t]*\\*gets\\(char \\*\\));"; | |
7093 | ||
7094 | #define SOLARIS_GETS_C11_TEST_CT 1 | |
7095 | static tTestDesc aSolaris_Gets_C11Tests[] = { | |
7096 | { TT_EGREP, zSolaris_Gets_C11Select0, (regex_t*)NULL }, }; | |
7097 | ||
7098 | /* | |
7099 | * Fix Command Arguments for Solaris_Gets_C11 | |
7100 | */ | |
7101 | static const char* apzSolaris_Gets_C11Patch[] = { | |
7102 | "format", | |
7103 | "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\ | |
7104 | %1 __attribute__((__deprecated__));\n\ | |
7105 | #endif", | |
7106 | (char*)NULL }; | |
7107 | ||
7108 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7109 | * | |
7110 | * Description of Solaris_Gets_Cxx14 fix | |
7111 | */ | |
7112 | tSCC zSolaris_Gets_Cxx14Name[] = | |
7113 | "solaris_gets_cxx14"; | |
7114 | ||
7115 | /* | |
7116 | * File name selection pattern | |
7117 | */ | |
7118 | tSCC zSolaris_Gets_Cxx14List[] = | |
7119 | "iso/stdio_iso.h\0"; | |
7120 | /* | |
7121 | * Machine/OS name selection pattern | |
7122 | */ | |
7123 | tSCC* apzSolaris_Gets_Cxx14Machs[] = { | |
7124 | "*-*-solaris2*", | |
7125 | (const char*)NULL }; | |
7126 | ||
7127 | /* | |
7128 | * content selection pattern - do fix if pattern found | |
7129 | */ | |
7130 | tSCC zSolaris_Gets_Cxx14Select0[] = | |
7131 | "(#if __STDC_VERSION__ < 201112L)\n\ | |
7132 | (extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)"; | |
7133 | ||
7134 | #define SOLARIS_GETS_CXX14_TEST_CT 1 | |
7135 | static tTestDesc aSolaris_Gets_Cxx14Tests[] = { | |
7136 | { TT_EGREP, zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, }; | |
7137 | ||
7138 | /* | |
7139 | * Fix Command Arguments for Solaris_Gets_Cxx14 | |
7140 | */ | |
7141 | static const char* apzSolaris_Gets_Cxx14Patch[] = { | |
7142 | "format", | |
7143 | "%1 && __cplusplus < 201402L\n\ | |
7144 | %2", | |
7145 | (char*)NULL }; | |
7146 | ||
d1ed71e5 | 7147 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7148 | * | |
7149 | * Description of Solaris_Int_Const fix | |
7150 | */ | |
7151 | tSCC zSolaris_Int_ConstName[] = | |
7152 | "solaris_int_const"; | |
7153 | ||
7154 | /* | |
7155 | * File name selection pattern | |
7156 | */ | |
7157 | tSCC zSolaris_Int_ConstList[] = | |
7158 | "sys/int_const.h\0"; | |
7159 | /* | |
7160 | * Machine/OS name selection pattern | |
7161 | */ | |
7162 | tSCC* apzSolaris_Int_ConstMachs[] = { | |
7163 | "*-*-solaris2*", | |
7164 | (const char*)NULL }; | |
7165 | ||
7166 | /* | |
7167 | * content selection pattern - do fix if pattern found | |
7168 | */ | |
7169 | tSCC zSolaris_Int_ConstSelect0[] = | |
7170 | "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\ | |
7171 | (/*.**/)\n\ | |
7172 | #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*"; | |
7173 | ||
7174 | #define SOLARIS_INT_CONST_TEST_CT 1 | |
7175 | static tTestDesc aSolaris_Int_ConstTests[] = { | |
7176 | { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, }; | |
7177 | ||
7178 | /* | |
7179 | * Fix Command Arguments for Solaris_Int_Const | |
7180 | */ | |
7181 | static const char* apzSolaris_Int_ConstPatch[] = { | |
7182 | "format", | |
7183 | "#define\tUINT8_C(c)\t(c)\n\ | |
7184 | %1\n\ | |
7185 | #define\tUINT16_C(c)\t(c)", | |
7186 | (char*)NULL }; | |
7187 | ||
7188 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7189 | * | |
7190 | * Description of Solaris_Int_Limits_1 fix | |
7191 | */ | |
7192 | tSCC zSolaris_Int_Limits_1Name[] = | |
7193 | "solaris_int_limits_1"; | |
7194 | ||
7195 | /* | |
7196 | * File name selection pattern | |
7197 | */ | |
7198 | tSCC zSolaris_Int_Limits_1List[] = | |
7199 | "sys/int_limits.h\0"; | |
7200 | /* | |
7201 | * Machine/OS name selection pattern | |
7202 | */ | |
7203 | tSCC* apzSolaris_Int_Limits_1Machs[] = { | |
7204 | "*-*-solaris2*", | |
7205 | (const char*)NULL }; | |
7206 | ||
7207 | /* | |
7208 | * content selection pattern - do fix if pattern found | |
7209 | */ | |
7210 | tSCC zSolaris_Int_Limits_1Select0[] = | |
7211 | "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\ | |
7212 | #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)"; | |
7213 | ||
7214 | #define SOLARIS_INT_LIMITS_1_TEST_CT 1 | |
7215 | static tTestDesc aSolaris_Int_Limits_1Tests[] = { | |
7216 | { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, }; | |
7217 | ||
7218 | /* | |
7219 | * Fix Command Arguments for Solaris_Int_Limits_1 | |
7220 | */ | |
7221 | static const char* apzSolaris_Int_Limits_1Patch[] = { | |
7222 | "format", | |
7223 | "#define\tUINT8_MAX\t(255)\n\ | |
7224 | #define\tUINT16_MAX\t(65535)", | |
7225 | (char*)NULL }; | |
7226 | ||
7227 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7228 | * | |
7229 | * Description of Solaris_Int_Limits_2 fix | |
7230 | */ | |
7231 | tSCC zSolaris_Int_Limits_2Name[] = | |
7232 | "solaris_int_limits_2"; | |
7233 | ||
7234 | /* | |
7235 | * File name selection pattern | |
7236 | */ | |
7237 | tSCC zSolaris_Int_Limits_2List[] = | |
7238 | "sys/int_limits.h\0"; | |
7239 | /* | |
7240 | * Machine/OS name selection pattern | |
7241 | */ | |
7242 | tSCC* apzSolaris_Int_Limits_2Machs[] = { | |
7243 | "*-*-solaris2*", | |
7244 | (const char*)NULL }; | |
7245 | ||
7246 | /* | |
7247 | * content selection pattern - do fix if pattern found | |
7248 | */ | |
7249 | tSCC zSolaris_Int_Limits_2Select0[] = | |
7250 | "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*"; | |
7251 | ||
7252 | #define SOLARIS_INT_LIMITS_2_TEST_CT 1 | |
7253 | static tTestDesc aSolaris_Int_Limits_2Tests[] = { | |
7254 | { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, }; | |
7255 | ||
7256 | /* | |
7257 | * Fix Command Arguments for Solaris_Int_Limits_2 | |
a6905708 | 7258 | */ |
d1ed71e5 | 7259 | static const char* apzSolaris_Int_Limits_2Patch[] = { |
7260 | "format", | |
7261 | "#define\t%1_FAST16_%2 %132_%2", | |
a6905708 | 7262 | (char*)NULL }; |
7263 | ||
5f7d4d97 | 7264 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7265 | * | |
d1ed71e5 | 7266 | * Description of Solaris_Int_Limits_3 fix |
5f7d4d97 | 7267 | */ |
d1ed71e5 | 7268 | tSCC zSolaris_Int_Limits_3Name[] = |
7269 | "solaris_int_limits_3"; | |
5f7d4d97 | 7270 | |
7271 | /* | |
7272 | * File name selection pattern | |
7273 | */ | |
d1ed71e5 | 7274 | tSCC zSolaris_Int_Limits_3List[] = |
7275 | "sys/int_limits.h\0"; | |
5f7d4d97 | 7276 | /* |
7277 | * Machine/OS name selection pattern | |
7278 | */ | |
d1ed71e5 | 7279 | tSCC* apzSolaris_Int_Limits_3Machs[] = { |
5f7d4d97 | 7280 | "*-*-solaris2*", |
7281 | (const char*)NULL }; | |
7282 | ||
7283 | /* | |
7284 | * content selection pattern - do fix if pattern found | |
7285 | */ | |
d1ed71e5 | 7286 | tSCC zSolaris_Int_Limits_3Select0[] = |
7287 | "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL"; | |
5f7d4d97 | 7288 | |
d1ed71e5 | 7289 | #define SOLARIS_INT_LIMITS_3_TEST_CT 1 |
7290 | static tTestDesc aSolaris_Int_Limits_3Tests[] = { | |
7291 | { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, }; | |
5f7d4d97 | 7292 | |
7293 | /* | |
d1ed71e5 | 7294 | * Fix Command Arguments for Solaris_Int_Limits_3 |
5f7d4d97 | 7295 | */ |
d1ed71e5 | 7296 | static const char* apzSolaris_Int_Limits_3Patch[] = { |
5f7d4d97 | 7297 | "format", |
d1ed71e5 | 7298 | "#define\tSIZE_MAX\t4294967295U", |
5f7d4d97 | 7299 | (char*)NULL }; |
7300 | ||
e849ea70 | 7301 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7302 | * | |
7303 | * Description of Solaris_Math_1 fix | |
7304 | */ | |
7305 | tSCC zSolaris_Math_1Name[] = | |
7306 | "solaris_math_1"; | |
7307 | ||
7308 | /* | |
7309 | * File name selection pattern | |
7310 | */ | |
7311 | tSCC zSolaris_Math_1List[] = | |
e9afa104 | 7312 | "iso/math_c99.h\0"; |
e849ea70 | 7313 | /* |
7314 | * Machine/OS name selection pattern | |
7315 | */ | |
7316 | #define apzSolaris_Math_1Machs (const char**)NULL | |
7317 | ||
7318 | /* | |
7319 | * content selection pattern - do fix if pattern found | |
7320 | */ | |
7321 | tSCC zSolaris_Math_1Select0[] = | |
7322 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
7323 | ||
7324 | /* | |
7325 | * content bypass pattern - skip fix if pattern found | |
7326 | */ | |
7327 | tSCC zSolaris_Math_1Bypass0[] = | |
7328 | "__GNUC__"; | |
7329 | ||
7330 | #define SOLARIS_MATH_1_TEST_CT 2 | |
7331 | static tTestDesc aSolaris_Math_1Tests[] = { | |
7332 | { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL }, | |
7333 | { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, }; | |
7334 | ||
7335 | /* | |
7336 | * Fix Command Arguments for Solaris_Math_1 | |
7337 | */ | |
7338 | static const char* apzSolaris_Math_1Patch[] = { | |
7339 | "format", | |
7340 | "#define\tHUGE_VA%1\t(__builtin_huge_va%2())", | |
7341 | "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)", | |
7342 | (char*)NULL }; | |
7343 | ||
d1ed71e5 | 7344 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7345 | * | |
7346 | * Description of Solaris_Math_10 fix | |
7347 | */ | |
7348 | tSCC zSolaris_Math_10Name[] = | |
7349 | "solaris_math_10"; | |
7350 | ||
7351 | /* | |
7352 | * File name selection pattern | |
7353 | */ | |
7354 | tSCC zSolaris_Math_10List[] = | |
7355 | "iso/math_c99.h\0"; | |
7356 | /* | |
7357 | * Machine/OS name selection pattern | |
7358 | */ | |
7359 | #define apzSolaris_Math_10Machs (const char**)NULL | |
7360 | ||
7361 | /* | |
7362 | * content selection pattern - do fix if pattern found | |
7363 | */ | |
7364 | tSCC zSolaris_Math_10Select0[] = | |
7365 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
7366 | ||
7367 | #define SOLARIS_MATH_10_TEST_CT 1 | |
7368 | static tTestDesc aSolaris_Math_10Tests[] = { | |
7369 | { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, }; | |
7370 | ||
7371 | /* | |
7372 | * Fix Command Arguments for Solaris_Math_10 | |
7373 | */ | |
7374 | static const char* apzSolaris_Math_10Patch[] = { | |
7375 | "format", | |
7376 | "#define\tisinf(x) __builtin_isinf(x)", | |
7377 | "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\ | |
7378 | [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\ | |
7379 | [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\ | |
7380 | [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)", | |
7381 | (char*)NULL }; | |
7382 | ||
e849ea70 | 7383 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7384 | * | |
7385 | * Description of Solaris_Math_2 fix | |
7386 | */ | |
7387 | tSCC zSolaris_Math_2Name[] = | |
7388 | "solaris_math_2"; | |
7389 | ||
7390 | /* | |
7391 | * File name selection pattern | |
7392 | */ | |
7393 | tSCC zSolaris_Math_2List[] = | |
e9afa104 | 7394 | "iso/math_c99.h\0"; |
e849ea70 | 7395 | /* |
7396 | * Machine/OS name selection pattern | |
7397 | */ | |
7398 | #define apzSolaris_Math_2Machs (const char**)NULL | |
7399 | ||
7400 | /* | |
7401 | * content selection pattern - do fix if pattern found | |
7402 | */ | |
7403 | tSCC zSolaris_Math_2Select0[] = | |
7404 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
7405 | ||
7406 | /* | |
7407 | * content bypass pattern - skip fix if pattern found | |
7408 | */ | |
7409 | tSCC zSolaris_Math_2Bypass0[] = | |
7410 | "__GNUC__"; | |
7411 | ||
7412 | #define SOLARIS_MATH_2_TEST_CT 2 | |
7413 | static tTestDesc aSolaris_Math_2Tests[] = { | |
7414 | { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL }, | |
7415 | { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, }; | |
7416 | ||
7417 | /* | |
7418 | * Fix Command Arguments for Solaris_Math_2 | |
7419 | */ | |
7420 | static const char* apzSolaris_Math_2Patch[] = { | |
7421 | "format", | |
7422 | "#define\tINFINITY\t(__builtin_inff())", | |
7423 | "^#define[ \t]+INFINITY[ \t]+__builtin_infinity", | |
7424 | (char*)NULL }; | |
7425 | ||
7426 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7427 | * | |
7428 | * Description of Solaris_Math_3 fix | |
7429 | */ | |
7430 | tSCC zSolaris_Math_3Name[] = | |
7431 | "solaris_math_3"; | |
7432 | ||
7433 | /* | |
7434 | * File name selection pattern | |
7435 | */ | |
7436 | tSCC zSolaris_Math_3List[] = | |
e9afa104 | 7437 | "iso/math_c99.h\0"; |
e849ea70 | 7438 | /* |
7439 | * Machine/OS name selection pattern | |
7440 | */ | |
7441 | #define apzSolaris_Math_3Machs (const char**)NULL | |
7442 | ||
7443 | /* | |
7444 | * content selection pattern - do fix if pattern found | |
7445 | */ | |
7446 | tSCC zSolaris_Math_3Select0[] = | |
7447 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
7448 | ||
7449 | /* | |
7450 | * content bypass pattern - skip fix if pattern found | |
7451 | */ | |
7452 | tSCC zSolaris_Math_3Bypass0[] = | |
7453 | "__GNUC__"; | |
7454 | ||
7455 | #define SOLARIS_MATH_3_TEST_CT 2 | |
7456 | static tTestDesc aSolaris_Math_3Tests[] = { | |
7457 | { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL }, | |
7458 | { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, }; | |
7459 | ||
7460 | /* | |
7461 | * Fix Command Arguments for Solaris_Math_3 | |
7462 | */ | |
7463 | static const char* apzSolaris_Math_3Patch[] = { | |
7464 | "format", | |
7465 | "#define\tNAN\t\t(__builtin_nanf(\"\"))", | |
7466 | "^#define[ \t]+NAN[ \t]+__builtin_nan", | |
7467 | (char*)NULL }; | |
7468 | ||
7469 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7470 | * | |
7471 | * Description of Solaris_Math_4 fix | |
7472 | */ | |
7473 | tSCC zSolaris_Math_4Name[] = | |
7474 | "solaris_math_4"; | |
7475 | ||
7476 | /* | |
7477 | * File name selection pattern | |
7478 | */ | |
7479 | tSCC zSolaris_Math_4List[] = | |
e9afa104 | 7480 | "iso/math_c99.h\0"; |
e849ea70 | 7481 | /* |
7482 | * Machine/OS name selection pattern | |
7483 | */ | |
7484 | #define apzSolaris_Math_4Machs (const char**)NULL | |
7485 | ||
7486 | /* | |
7487 | * content selection pattern - do fix if pattern found | |
7488 | */ | |
7489 | tSCC zSolaris_Math_4Select0[] = | |
7490 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
7491 | ||
7492 | /* | |
7493 | * content bypass pattern - skip fix if pattern found | |
7494 | */ | |
7495 | tSCC zSolaris_Math_4Bypass0[] = | |
7496 | "__GNUC__"; | |
7497 | ||
7498 | #define SOLARIS_MATH_4_TEST_CT 2 | |
7499 | static tTestDesc aSolaris_Math_4Tests[] = { | |
7500 | { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL }, | |
7501 | { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, }; | |
7502 | ||
7503 | /* | |
7504 | * Fix Command Arguments for Solaris_Math_4 | |
7505 | */ | |
7506 | static const char* apzSolaris_Math_4Patch[] = { | |
7507 | "format", | |
7508 | "#define\tfpclassify(x) \\\n\ | |
35fcf460 | 7509 | __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))", |
e849ea70 | 7510 | "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)", |
7511 | (char*)NULL }; | |
7512 | ||
e849ea70 | 7513 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7514 | * | |
7515 | * Description of Solaris_Math_8 fix | |
7516 | */ | |
7517 | tSCC zSolaris_Math_8Name[] = | |
7518 | "solaris_math_8"; | |
7519 | ||
7520 | /* | |
7521 | * File name selection pattern | |
7522 | */ | |
7523 | tSCC zSolaris_Math_8List[] = | |
e9afa104 | 7524 | "iso/math_c99.h\0"; |
e849ea70 | 7525 | /* |
7526 | * Machine/OS name selection pattern | |
7527 | */ | |
7528 | #define apzSolaris_Math_8Machs (const char**)NULL | |
7529 | ||
7530 | /* | |
7531 | * content selection pattern - do fix if pattern found | |
7532 | */ | |
7533 | tSCC zSolaris_Math_8Select0[] = | |
5aee6890 | 7534 | "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI"; |
e849ea70 | 7535 | |
7536 | /* | |
7537 | * content bypass pattern - skip fix if pattern found | |
7538 | */ | |
7539 | tSCC zSolaris_Math_8Bypass0[] = | |
7540 | "__GNUC__"; | |
7541 | ||
7542 | #define SOLARIS_MATH_8_TEST_CT 2 | |
7543 | static tTestDesc aSolaris_Math_8Tests[] = { | |
7544 | { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL }, | |
7545 | { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, }; | |
7546 | ||
7547 | /* | |
7548 | * Fix Command Arguments for Solaris_Math_8 | |
7549 | */ | |
7550 | static const char* apzSolaris_Math_8Patch[] = { | |
7551 | "format", | |
7552 | "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ | |
7553 | \t\t\t ? __builtin_signbitf(x) \\\n\ | |
7554 | \t\t\t : sizeof(x) == sizeof(long double) \\\n\ | |
7555 | \t\t\t ? __builtin_signbitl(x) \\\n\ | |
7556 | \t\t\t : __builtin_signbit(x))", | |
7557 | "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)", | |
7558 | (char*)NULL }; | |
7559 | ||
7560 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7561 | * | |
7562 | * Description of Solaris_Math_9 fix | |
7563 | */ | |
7564 | tSCC zSolaris_Math_9Name[] = | |
7565 | "solaris_math_9"; | |
7566 | ||
7567 | /* | |
7568 | * File name selection pattern | |
7569 | */ | |
d1ed71e5 | 7570 | tSCC zSolaris_Math_9List[] = |
7571 | "iso/math_c99.h\0"; | |
5f7d4d97 | 7572 | /* |
7573 | * Machine/OS name selection pattern | |
7574 | */ | |
d1ed71e5 | 7575 | #define apzSolaris_Math_9Machs (const char**)NULL |
5f7d4d97 | 7576 | |
7577 | /* | |
7578 | * content selection pattern - do fix if pattern found | |
7579 | */ | |
d1ed71e5 | 7580 | tSCC zSolaris_Math_9Select0[] = |
7581 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5f7d4d97 | 7582 | |
d1ed71e5 | 7583 | /* |
7584 | * content bypass pattern - skip fix if pattern found | |
7585 | */ | |
7586 | tSCC zSolaris_Math_9Bypass0[] = | |
7587 | "__GNUC__"; | |
7588 | ||
7589 | #define SOLARIS_MATH_9_TEST_CT 2 | |
7590 | static tTestDesc aSolaris_Math_9Tests[] = { | |
7591 | { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL }, | |
7592 | { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, }; | |
5f7d4d97 | 7593 | |
7594 | /* | |
d1ed71e5 | 7595 | * Fix Command Arguments for Solaris_Math_9 |
5f7d4d97 | 7596 | */ |
d1ed71e5 | 7597 | static const char* apzSolaris_Math_9Patch[] = { |
5f7d4d97 | 7598 | "format", |
d1ed71e5 | 7599 | "#define\t%1(x, y)%2__builtin_%1(x, y)", |
7600 | "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)", | |
5f7d4d97 | 7601 | (char*)NULL }; |
7602 | ||
59600e4c | 7603 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7604 | * | |
7605 | * Description of Solaris_Math_11 fix | |
7606 | */ | |
7607 | tSCC zSolaris_Math_11Name[] = | |
7608 | "solaris_math_11"; | |
7609 | ||
7610 | /* | |
7611 | * File name selection pattern | |
7612 | */ | |
7613 | tSCC zSolaris_Math_11List[] = | |
7614 | "iso/math_c99.h\0"; | |
7615 | /* | |
7616 | * Machine/OS name selection pattern | |
7617 | */ | |
7618 | #define apzSolaris_Math_11Machs (const char**)NULL | |
7619 | ||
7620 | /* | |
7621 | * content selection pattern - do fix if pattern found | |
7622 | */ | |
7623 | tSCC zSolaris_Math_11Select0[] = | |
7624 | "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ "; | |
7625 | ||
7626 | #define SOLARIS_MATH_11_TEST_CT 1 | |
7627 | static tTestDesc aSolaris_Math_11Tests[] = { | |
7628 | { TT_EGREP, zSolaris_Math_11Select0, (regex_t*)NULL }, }; | |
7629 | ||
7630 | /* | |
7631 | * Fix Command Arguments for Solaris_Math_11 | |
7632 | */ | |
7633 | static const char* apzSolaris_Math_11Patch[] = { | |
7634 | "format", | |
7635 | "#undef\tsignbit\n\ | |
7636 | #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ | |
7637 | \t\t\t ? __builtin_signbitf(x) \\\n\ | |
7638 | \t\t\t : sizeof(x) == sizeof(long double) \\\n\ | |
7639 | \t\t\t ? __builtin_signbitl(x) \\\n\ | |
7640 | \t\t\t : __builtin_signbit(x))", | |
7641 | "^#undef[ \t]+signbit\n\ | |
7642 | #if defined\\(__sparc\\)\n\ | |
7643 | #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\ | |
7644 | [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\ | |
7645 | [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\ | |
7646 | #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\ | |
7647 | #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\ | |
7648 | [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\ | |
7649 | [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\ | |
7650 | [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\ | |
7651 | [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\ | |
7652 | [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\ | |
7653 | [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\ | |
7654 | #endif", | |
7655 | (char*)NULL }; | |
7656 | ||
13d9a983 | 7657 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7658 | * | |
7659 | * Description of Solaris_Math_12 fix | |
7660 | */ | |
7661 | tSCC zSolaris_Math_12Name[] = | |
7662 | "solaris_math_12"; | |
7663 | ||
7664 | /* | |
7665 | * File name selection pattern | |
7666 | */ | |
7667 | tSCC zSolaris_Math_12List[] = | |
7668 | "math.h\0"; | |
7669 | /* | |
7670 | * Machine/OS name selection pattern | |
7671 | */ | |
7672 | tSCC* apzSolaris_Math_12Machs[] = { | |
7673 | "*-*-solaris2*", | |
7674 | (const char*)NULL }; | |
7675 | ||
7676 | /* | |
7677 | * content selection pattern - do fix if pattern found | |
7678 | */ | |
7679 | tSCC zSolaris_Math_12Select0[] = | |
7680 | "#undef.*_GLIBCXX_USE_C99_MATH"; | |
7681 | ||
7682 | #define SOLARIS_MATH_12_TEST_CT 1 | |
7683 | static tTestDesc aSolaris_Math_12Tests[] = { | |
7684 | { TT_EGREP, zSolaris_Math_12Select0, (regex_t*)NULL }, }; | |
7685 | ||
7686 | /* | |
7687 | * Fix Command Arguments for Solaris_Math_12 | |
7688 | */ | |
7689 | static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z, | |
7690 | "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d", | |
7691 | (char*)NULL }; | |
7692 | ||
458caa24 | 7693 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7694 | * | |
7695 | * Description of Solaris_Once_Init_1 fix | |
7696 | */ | |
7697 | tSCC zSolaris_Once_Init_1Name[] = | |
7698 | "solaris_once_init_1"; | |
7699 | ||
7700 | /* | |
7701 | * File name selection pattern | |
7702 | */ | |
7703 | tSCC zSolaris_Once_Init_1List[] = | |
e9afa104 | 7704 | "pthread.h\0"; |
458caa24 | 7705 | /* |
7706 | * Machine/OS name selection pattern | |
7707 | */ | |
7708 | tSCC* apzSolaris_Once_Init_1Machs[] = { | |
7709 | "*-*-solaris*", | |
7710 | (const char*)NULL }; | |
7711 | ||
7712 | /* | |
7713 | * content selection pattern - do fix if pattern found | |
7714 | */ | |
7715 | tSCC zSolaris_Once_Init_1Select0[] = | |
7716 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
7717 | ||
7718 | #define SOLARIS_ONCE_INIT_1_TEST_CT 1 | |
7719 | static tTestDesc aSolaris_Once_Init_1Tests[] = { | |
7720 | { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, }; | |
7721 | ||
7722 | /* | |
7723 | * Fix Command Arguments for Solaris_Once_Init_1 | |
7724 | */ | |
7725 | static const char* apzSolaris_Once_Init_1Patch[] = { | |
7726 | "format", | |
7727 | "%1{%2}%3", | |
7728 | "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$", | |
7729 | (char*)NULL }; | |
7730 | ||
3dbaf01b | 7731 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7732 | * | |
d1ed71e5 | 7733 | * Description of Solaris_Posix_Spawn_Restrict fix |
3dbaf01b | 7734 | */ |
d1ed71e5 | 7735 | tSCC zSolaris_Posix_Spawn_RestrictName[] = |
7736 | "solaris_posix_spawn_restrict"; | |
3dbaf01b | 7737 | |
7738 | /* | |
7739 | * File name selection pattern | |
7740 | */ | |
d1ed71e5 | 7741 | tSCC zSolaris_Posix_Spawn_RestrictList[] = |
7742 | "spawn.h\0"; | |
3dbaf01b | 7743 | /* |
7744 | * Machine/OS name selection pattern | |
7745 | */ | |
d1ed71e5 | 7746 | tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = { |
d462c2ee | 7747 | "*-*-solaris2*", |
7748 | (const char*)NULL }; | |
3dbaf01b | 7749 | |
7750 | /* | |
7751 | * content selection pattern - do fix if pattern found | |
7752 | */ | |
d1ed71e5 | 7753 | tSCC zSolaris_Posix_Spawn_RestrictSelect0[] = |
7754 | "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)"; | |
3dbaf01b | 7755 | |
d1ed71e5 | 7756 | #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1 |
7757 | static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = { | |
7758 | { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, }; | |
3dbaf01b | 7759 | |
7760 | /* | |
d1ed71e5 | 7761 | * Fix Command Arguments for Solaris_Posix_Spawn_Restrict |
3dbaf01b | 7762 | */ |
d1ed71e5 | 7763 | static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = { |
3dbaf01b | 7764 | "format", |
d1ed71e5 | 7765 | "%1*_RESTRICT_KYWD %2%3", |
d462c2ee | 7766 | (char*)NULL }; |
7767 | ||
7768 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7769 | * | |
d1ed71e5 | 7770 | * Description of Solaris_Pow_Int_Overload fix |
d462c2ee | 7771 | */ |
d1ed71e5 | 7772 | tSCC zSolaris_Pow_Int_OverloadName[] = |
7773 | "solaris_pow_int_overload"; | |
d462c2ee | 7774 | |
7775 | /* | |
7776 | * File name selection pattern | |
7777 | */ | |
d1ed71e5 | 7778 | tSCC zSolaris_Pow_Int_OverloadList[] = |
7779 | "iso/math_iso.h\0"; | |
d462c2ee | 7780 | /* |
7781 | * Machine/OS name selection pattern | |
7782 | */ | |
d1ed71e5 | 7783 | tSCC* apzSolaris_Pow_Int_OverloadMachs[] = { |
d462c2ee | 7784 | "*-*-solaris2*", |
7785 | (const char*)NULL }; | |
7786 | ||
7787 | /* | |
7788 | * content selection pattern - do fix if pattern found | |
7789 | */ | |
d1ed71e5 | 7790 | tSCC zSolaris_Pow_Int_OverloadSelect0[] = |
7791 | "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\ | |
7792 | [^{}]*\\}"; | |
6d87b38c | 7793 | |
d1ed71e5 | 7794 | #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1 |
7795 | static tTestDesc aSolaris_Pow_Int_OverloadTests[] = { | |
7796 | { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, }; | |
6d87b38c | 7797 | |
7798 | /* | |
d1ed71e5 | 7799 | * Fix Command Arguments for Solaris_Pow_Int_Overload |
6d87b38c | 7800 | */ |
d1ed71e5 | 7801 | static const char* apzSolaris_Pow_Int_OverloadPatch[] = { |
6d87b38c | 7802 | "format", |
d1ed71e5 | 7803 | "#if __cplusplus < 201103L\n\ |
7804 | %0\n\ | |
7805 | #endif", | |
6d87b38c | 7806 | (char*)NULL }; |
7807 | ||
69c86aa4 | 7808 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7809 | * | |
d1ed71e5 | 7810 | * Description of Solaris_Rwlock_Init_1 fix |
69c86aa4 | 7811 | */ |
d1ed71e5 | 7812 | tSCC zSolaris_Rwlock_Init_1Name[] = |
7813 | "solaris_rwlock_init_1"; | |
69c86aa4 | 7814 | |
7815 | /* | |
7816 | * File name selection pattern | |
7817 | */ | |
d1ed71e5 | 7818 | tSCC zSolaris_Rwlock_Init_1List[] = |
7819 | "pthread.h\0"; | |
69c86aa4 | 7820 | /* |
7821 | * Machine/OS name selection pattern | |
7822 | */ | |
d1ed71e5 | 7823 | tSCC* apzSolaris_Rwlock_Init_1Machs[] = { |
7824 | "*-*-solaris*", | |
69c86aa4 | 7825 | (const char*)NULL }; |
7826 | ||
7827 | /* | |
7828 | * content selection pattern - do fix if pattern found | |
7829 | */ | |
d1ed71e5 | 7830 | tSCC zSolaris_Rwlock_Init_1Select0[] = |
7831 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
69c86aa4 | 7832 | |
d1ed71e5 | 7833 | #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1 |
7834 | static tTestDesc aSolaris_Rwlock_Init_1Tests[] = { | |
7835 | { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, }; | |
69c86aa4 | 7836 | |
7837 | /* | |
d1ed71e5 | 7838 | * Fix Command Arguments for Solaris_Rwlock_Init_1 |
69c86aa4 | 7839 | */ |
d1ed71e5 | 7840 | static const char* apzSolaris_Rwlock_Init_1Patch[] = { |
69c86aa4 | 7841 | "format", |
d1ed71e5 | 7842 | "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ |
7843 | %0\n\ | |
7844 | #else\n\ | |
7845 | %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\ | |
7846 | #endif", | |
7847 | "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$", | |
69c86aa4 | 7848 | (char*)NULL }; |
7849 | ||
5f7d4d97 | 7850 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7851 | * | |
7852 | * Description of Solaris_Std___Filbuf fix | |
7853 | */ | |
7854 | tSCC zSolaris_Std___FilbufName[] = | |
7855 | "solaris_std___filbuf"; | |
7856 | ||
7857 | /* | |
7858 | * File name selection pattern | |
7859 | */ | |
7860 | tSCC zSolaris_Std___FilbufList[] = | |
7861 | "stdio.h\0"; | |
7862 | /* | |
7863 | * Machine/OS name selection pattern | |
7864 | */ | |
7865 | tSCC* apzSolaris_Std___FilbufMachs[] = { | |
7866 | "*-*-solaris2*", | |
7867 | (const char*)NULL }; | |
7868 | ||
7869 | /* | |
7870 | * content selection pattern - do fix if pattern found | |
7871 | */ | |
7872 | tSCC zSolaris_Std___FilbufSelect0[] = | |
7873 | "(using std::perror;\n\ | |
7874 | )(#endif)"; | |
7875 | ||
7876 | /* | |
7877 | * content bypass pattern - skip fix if pattern found | |
7878 | */ | |
7879 | tSCC zSolaris_Std___FilbufBypass0[] = | |
7880 | "using std::__filbuf"; | |
7881 | ||
7882 | #define SOLARIS_STD___FILBUF_TEST_CT 2 | |
7883 | static tTestDesc aSolaris_Std___FilbufTests[] = { | |
7884 | { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL }, | |
7885 | { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, }; | |
7886 | ||
7887 | /* | |
7888 | * Fix Command Arguments for Solaris_Std___Filbuf | |
7889 | */ | |
7890 | static const char* apzSolaris_Std___FilbufPatch[] = { | |
7891 | "format", | |
7892 | "%1#ifndef _LP64\n\ | |
7893 | using std::__filbuf;\n\ | |
7894 | using std::__flsbuf;\n\ | |
7895 | #endif\n\ | |
7896 | %2", | |
7897 | (char*)NULL }; | |
7898 | ||
3c017b47 | 7899 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7900 | * | |
7901 | * Description of Solaris_Std_Gets_Cxx14 fix | |
7902 | */ | |
7903 | tSCC zSolaris_Std_Gets_Cxx14Name[] = | |
7904 | "solaris_std_gets_cxx14"; | |
7905 | ||
7906 | /* | |
7907 | * File name selection pattern | |
7908 | */ | |
7909 | tSCC zSolaris_Std_Gets_Cxx14List[] = | |
7910 | "stdio.h\0"; | |
7911 | /* | |
7912 | * Machine/OS name selection pattern | |
7913 | */ | |
7914 | tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = { | |
7915 | "*-*-solaris2*", | |
7916 | (const char*)NULL }; | |
7917 | ||
7918 | /* | |
7919 | * content selection pattern - do fix if pattern found | |
7920 | */ | |
7921 | tSCC zSolaris_Std_Gets_Cxx14Select0[] = | |
7922 | "using std::gets;"; | |
7923 | ||
7924 | #define SOLARIS_STD_GETS_CXX14_TEST_CT 1 | |
7925 | static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = { | |
7926 | { TT_EGREP, zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, }; | |
7927 | ||
7928 | /* | |
7929 | * Fix Command Arguments for Solaris_Std_Gets_Cxx14 | |
7930 | */ | |
7931 | static const char* apzSolaris_Std_Gets_Cxx14Patch[] = { | |
7932 | "format", | |
7933 | "#if __cplusplus < 201402L\n\ | |
7934 | %0\n\ | |
7935 | #endif", | |
7936 | (char*)NULL }; | |
7937 | ||
4dbe9809 | 7938 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7939 | * | |
6af9f7ea | 7940 | * Description of Solaris_Stdio_Tag fix |
4dbe9809 | 7941 | */ |
6af9f7ea | 7942 | tSCC zSolaris_Stdio_TagName[] = |
7943 | "solaris_stdio_tag"; | |
4dbe9809 | 7944 | |
7945 | /* | |
7946 | * File name selection pattern | |
7947 | */ | |
6af9f7ea | 7948 | tSCC zSolaris_Stdio_TagList[] = |
7949 | "stdio_tag.h\0"; | |
4dbe9809 | 7950 | /* |
7951 | * Machine/OS name selection pattern | |
7952 | */ | |
6af9f7ea | 7953 | #define apzSolaris_Stdio_TagMachs (const char**)NULL |
4dbe9809 | 7954 | |
7955 | /* | |
7956 | * content selection pattern - do fix if pattern found | |
7957 | */ | |
6af9f7ea | 7958 | tSCC zSolaris_Stdio_TagSelect0[] = |
7959 | "__cplusplus < 54321L"; | |
4dbe9809 | 7960 | |
7961 | /* | |
6af9f7ea | 7962 | * content bypass pattern - skip fix if pattern found |
4dbe9809 | 7963 | */ |
6af9f7ea | 7964 | tSCC zSolaris_Stdio_TagBypass0[] = |
7965 | "__GNUC__"; | |
09a31484 | 7966 | |
7967 | #define SOLARIS_STDIO_TAG_TEST_CT 2 | |
91eb7bbc | 7968 | static tTestDesc aSolaris_Stdio_TagTests[] = { |
09a31484 | 7969 | { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL }, |
91eb7bbc | 7970 | { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, }; |
7971 | ||
7972 | /* | |
7973 | * Fix Command Arguments for Solaris_Stdio_Tag | |
7974 | */ | |
b32d497c | 7975 | static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z, |
91eb7bbc | 7976 | "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/", |
7977 | (char*)NULL }; | |
7978 | ||
3c017b47 | 7979 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7980 | * | |
7981 | * Description of Solaris_Stdlib_Noreturn fix | |
7982 | */ | |
7983 | tSCC zSolaris_Stdlib_NoreturnName[] = | |
7984 | "solaris_stdlib_noreturn"; | |
7985 | ||
7986 | /* | |
7987 | * File name selection pattern | |
7988 | */ | |
7989 | tSCC zSolaris_Stdlib_NoreturnList[] = | |
7990 | "iso/stdlib_c99.h\0"; | |
7991 | /* | |
7992 | * Machine/OS name selection pattern | |
7993 | */ | |
7994 | tSCC* apzSolaris_Stdlib_NoreturnMachs[] = { | |
7995 | "*-*-solaris2*", | |
7996 | (const char*)NULL }; | |
7997 | ||
7998 | /* | |
7999 | * content selection pattern - do fix if pattern found | |
8000 | */ | |
8001 | tSCC zSolaris_Stdlib_NoreturnSelect0[] = | |
8002 | "(extern) _Noreturn (void quick_exit\\(int\\));"; | |
8003 | ||
8004 | #define SOLARIS_STDLIB_NORETURN_TEST_CT 1 | |
8005 | static tTestDesc aSolaris_Stdlib_NoreturnTests[] = { | |
8006 | { TT_EGREP, zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, }; | |
8007 | ||
8008 | /* | |
8009 | * Fix Command Arguments for Solaris_Stdlib_Noreturn | |
8010 | */ | |
8011 | static const char* apzSolaris_Stdlib_NoreturnPatch[] = { | |
8012 | "format", | |
8013 | "%1 %2 __attribute__((__noreturn__));", | |
8014 | (char*)NULL }; | |
8015 | ||
886db012 | 8016 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8017 | * | |
3072d11f | 8018 | * Description of Statsswtch fix |
886db012 | 8019 | */ |
3072d11f | 8020 | tSCC zStatsswtchName[] = |
8021 | "statsswtch"; | |
886db012 | 8022 | |
8023 | /* | |
8024 | * File name selection pattern | |
8025 | */ | |
3072d11f | 8026 | tSCC zStatsswtchList[] = |
e9afa104 | 8027 | "rpcsvc/rstat.h\0"; |
886db012 | 8028 | /* |
8029 | * Machine/OS name selection pattern | |
8030 | */ | |
3072d11f | 8031 | #define apzStatsswtchMachs (const char**)NULL |
886db012 | 8032 | |
8033 | /* | |
8034 | * content selection pattern - do fix if pattern found | |
8035 | */ | |
3072d11f | 8036 | tSCC zStatsswtchSelect0[] = |
8037 | "boottime$"; | |
9aac3497 | 8038 | |
3072d11f | 8039 | #define STATSSWTCH_TEST_CT 1 |
8040 | static tTestDesc aStatsswtchTests[] = { | |
8041 | { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, }; | |
886db012 | 8042 | |
8043 | /* | |
3072d11f | 8044 | * Fix Command Arguments for Statsswtch |
886db012 | 8045 | */ |
3072d11f | 8046 | static const char* apzStatsswtchPatch[] = { |
886db012 | 8047 | "format", |
3072d11f | 8048 | "boottime;", |
886db012 | 8049 | (char*)NULL }; |
8050 | ||
a712e12c | 8051 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8052 | * | |
3072d11f | 8053 | * Description of Stdio_Stdarg_H fix |
a712e12c | 8054 | */ |
3072d11f | 8055 | tSCC zStdio_Stdarg_HName[] = |
8056 | "stdio_stdarg_h"; | |
a712e12c | 8057 | |
8058 | /* | |
8059 | * File name selection pattern | |
8060 | */ | |
3072d11f | 8061 | tSCC zStdio_Stdarg_HList[] = |
e9afa104 | 8062 | "stdio.h\0"; |
a712e12c | 8063 | /* |
8064 | * Machine/OS name selection pattern | |
8065 | */ | |
09a31484 | 8066 | tSCC* apzStdio_Stdarg_HMachs[] = { |
85dedd01 | 8067 | "*-*-solaris2.1[0-9]*", |
09a31484 | 8068 | (const char*)NULL }; |
a712e12c | 8069 | |
8070 | /* | |
3072d11f | 8071 | * content bypass pattern - skip fix if pattern found |
a712e12c | 8072 | */ |
3072d11f | 8073 | tSCC zStdio_Stdarg_HBypass0[] = |
8074 | "include.*(stdarg.h|machine/ansi.h)"; | |
a712e12c | 8075 | |
3072d11f | 8076 | #define STDIO_STDARG_H_TEST_CT 1 |
8077 | static tTestDesc aStdio_Stdarg_HTests[] = { | |
8078 | { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, }; | |
a712e12c | 8079 | |
8080 | /* | |
3072d11f | 8081 | * Fix Command Arguments for Stdio_Stdarg_H |
a712e12c | 8082 | */ |
3072d11f | 8083 | static const char* apzStdio_Stdarg_HPatch[] = { |
8084 | "wrap", | |
8085 | "#define __need___va_list\n\ | |
8086 | #include <stdarg.h>\n", | |
a712e12c | 8087 | (char*)NULL }; |
8088 | ||
c718ce1e | 8089 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8090 | * | |
3072d11f | 8091 | * Description of Stdio_Va_List fix |
c718ce1e | 8092 | */ |
3072d11f | 8093 | tSCC zStdio_Va_ListName[] = |
8094 | "stdio_va_list"; | |
c718ce1e | 8095 | |
8096 | /* | |
8097 | * File name selection pattern | |
8098 | */ | |
3072d11f | 8099 | tSCC zStdio_Va_ListList[] = |
5641963c | 8100 | "stdio.h\0"; |
c718ce1e | 8101 | /* |
8102 | * Machine/OS name selection pattern | |
8103 | */ | |
09a31484 | 8104 | tSCC* apzStdio_Va_ListMachs[] = { |
85dedd01 | 8105 | "*-*-solaris2.1[0-9]*", |
09a31484 | 8106 | (const char*)NULL }; |
c718ce1e | 8107 | |
8108 | /* | |
3072d11f | 8109 | * content bypass pattern - skip fix if pattern found |
c718ce1e | 8110 | */ |
3072d11f | 8111 | tSCC zStdio_Va_ListBypass0[] = |
5f6aa019 | 8112 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; |
c718ce1e | 8113 | |
ce225e8d | 8114 | #define STDIO_VA_LIST_TEST_CT 1 |
3072d11f | 8115 | static tTestDesc aStdio_Va_ListTests[] = { |
ce225e8d | 8116 | { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, }; |
c718ce1e | 8117 | |
8118 | /* | |
3072d11f | 8119 | * Fix Command Arguments for Stdio_Va_List |
c718ce1e | 8120 | */ |
b32d497c | 8121 | static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z, |
2a024ef8 | 8122 | "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ |
857f8fc6 | 8123 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ |
3072d11f | 8124 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ |
6bc3b53c | 8125 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ |
3072d11f | 8126 | s@ va_list@ __not_va_list__@\n\ |
8127 | s@\\*va_list@*__not_va_list__@\n\ | |
8128 | s@ __va_list)@ __gnuc_va_list)@\n\ | |
8129 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ | |
b93c3ed1 | 8130 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ |
3072d11f | 8131 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ |
3f2444de | 8132 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ |
3072d11f | 8133 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ |
8134 | s@VA_LIST@DUMMY_VA_LIST@\n\ | |
8135 | s@_Va_LIST@_VA_LIST@", | |
c718ce1e | 8136 | (char*)NULL }; |
8137 | ||
925b9291 | 8138 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8139 | * | |
8140 | * Description of Stdio_Va_List_Clients fix | |
8141 | */ | |
8142 | tSCC zStdio_Va_List_ClientsName[] = | |
8143 | "stdio_va_list_clients"; | |
8144 | ||
8145 | /* | |
8146 | * File name selection pattern | |
8147 | */ | |
8148 | tSCC zStdio_Va_List_ClientsList[] = | |
e9afa104 | 8149 | "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0"; |
925b9291 | 8150 | /* |
8151 | * Machine/OS name selection pattern | |
8152 | */ | |
8153 | #define apzStdio_Va_List_ClientsMachs (const char**)NULL | |
8154 | ||
8155 | /* | |
8156 | * content bypass pattern - skip fix if pattern found | |
8157 | */ | |
8158 | tSCC zStdio_Va_List_ClientsBypass0[] = | |
8159 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; | |
8160 | tSCC zStdio_Va_List_ClientsBypass1[] = | |
8161 | "include <stdarg\\.h>|#ifdef va_start"; | |
8162 | ||
8163 | #define STDIO_VA_LIST_CLIENTS_TEST_CT 2 | |
8164 | static tTestDesc aStdio_Va_List_ClientsTests[] = { | |
8165 | { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL }, | |
8166 | { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, }; | |
8167 | ||
8168 | /* | |
8169 | * Fix Command Arguments for Stdio_Va_List_Clients | |
8170 | */ | |
b32d497c | 8171 | static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z, |
925b9291 | 8172 | "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ |
8173 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ | |
8174 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ | |
8175 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ | |
8176 | s@ va_list@ __not_va_list__@\n\ | |
8177 | s@\\*va_list@*__not_va_list__@\n\ | |
8178 | s@ __va_list)@ __gnuc_va_list)@\n\ | |
8179 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ | |
8180 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ | |
8181 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ | |
8182 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ | |
8183 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ | |
8184 | s@VA_LIST@DUMMY_VA_LIST@\n\ | |
8185 | s@_Va_LIST@_VA_LIST@", | |
8186 | (char*)NULL }; | |
8187 | ||
fdb8fb96 | 8188 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8189 | * | |
3072d11f | 8190 | * Description of Strict_Ansi_Not fix |
fdb8fb96 | 8191 | */ |
3072d11f | 8192 | tSCC zStrict_Ansi_NotName[] = |
8193 | "strict_ansi_not"; | |
d4c4b01d | 8194 | |
fdb8fb96 | 8195 | /* |
8196 | * File name selection pattern | |
8197 | */ | |
3072d11f | 8198 | #define zStrict_Ansi_NotList (char*)NULL |
fdb8fb96 | 8199 | /* |
8200 | * Machine/OS name selection pattern | |
8201 | */ | |
3072d11f | 8202 | #define apzStrict_Ansi_NotMachs (const char**)NULL |
8203 | ||
8204 | /* | |
8205 | * content selection pattern - do fix if pattern found | |
8206 | */ | |
8207 | tSCC zStrict_Ansi_NotSelect0[] = | |
3ff85771 | 8208 | "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)"; |
fdb8fb96 | 8209 | |
68d0517a | 8210 | /* |
8211 | * content bypass pattern - skip fix if pattern found | |
8212 | */ | |
8213 | tSCC zStrict_Ansi_NotBypass0[] = | |
8214 | "GNU and MIPS C compilers define __STDC__ differently"; | |
5f6aa019 | 8215 | tSCC zStrict_Ansi_NotBypass1[] = |
8216 | "__SCO_VERSION__.*__STDC__ != 1"; | |
68d0517a | 8217 | |
fdb8fb96 | 8218 | /* |
3072d11f | 8219 | * perform the C function call test |
fdb8fb96 | 8220 | */ |
3072d11f | 8221 | tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers"; |
fdb8fb96 | 8222 | |
5f6aa019 | 8223 | #define STRICT_ANSI_NOT_TEST_CT 4 |
3072d11f | 8224 | static tTestDesc aStrict_Ansi_NotTests[] = { |
8225 | { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ }, | |
68d0517a | 8226 | { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL }, |
5f6aa019 | 8227 | { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL }, |
3072d11f | 8228 | { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 8229 | |
8230 | /* | |
3072d11f | 8231 | * Fix Command Arguments for Strict_Ansi_Not |
fdb8fb96 | 8232 | */ |
3072d11f | 8233 | static const char* apzStrict_Ansi_NotPatch[] = { |
038a3e7a | 8234 | "format", |
3ff85771 | 8235 | "%1 !defined(__STRICT_ANSI__)", |
fdb8fb96 | 8236 | (char*)NULL }; |
8237 | ||
d4c4b01d | 8238 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8239 | * | |
3072d11f | 8240 | * Description of Strict_Ansi_Not_Ctd fix |
d4c4b01d | 8241 | */ |
3072d11f | 8242 | tSCC zStrict_Ansi_Not_CtdName[] = |
8243 | "strict_ansi_not_ctd"; | |
d4c4b01d | 8244 | |
8245 | /* | |
8246 | * File name selection pattern | |
8247 | */ | |
3072d11f | 8248 | tSCC zStrict_Ansi_Not_CtdList[] = |
e9afa104 | 8249 | "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0"; |
d4c4b01d | 8250 | /* |
8251 | * Machine/OS name selection pattern | |
8252 | */ | |
3072d11f | 8253 | #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL |
d4c4b01d | 8254 | |
8255 | /* | |
3072d11f | 8256 | * content selection pattern - do fix if pattern found |
d4c4b01d | 8257 | */ |
3072d11f | 8258 | tSCC zStrict_Ansi_Not_CtdSelect0[] = |
3ff85771 | 8259 | "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)"; |
d4c4b01d | 8260 | |
3072d11f | 8261 | /* |
8262 | * perform the C function call test | |
8263 | */ | |
8264 | tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers"; | |
8265 | ||
8266 | #define STRICT_ANSI_NOT_CTD_TEST_CT 2 | |
8267 | static tTestDesc aStrict_Ansi_Not_CtdTests[] = { | |
8268 | { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ }, | |
8269 | { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, }; | |
d4c4b01d | 8270 | |
8271 | /* | |
3072d11f | 8272 | * Fix Command Arguments for Strict_Ansi_Not_Ctd |
d4c4b01d | 8273 | */ |
3072d11f | 8274 | static const char* apzStrict_Ansi_Not_CtdPatch[] = { |
8275 | "format", | |
3ff85771 | 8276 | "%1 !defined(__STRICT_ANSI__)", |
d4c4b01d | 8277 | (char*)NULL }; |
8278 | ||
fdb8fb96 | 8279 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8280 | * | |
3072d11f | 8281 | * Description of Strict_Ansi_Only fix |
fdb8fb96 | 8282 | */ |
3072d11f | 8283 | tSCC zStrict_Ansi_OnlyName[] = |
8284 | "strict_ansi_only"; | |
d4c4b01d | 8285 | |
fdb8fb96 | 8286 | /* |
8287 | * File name selection pattern | |
8288 | */ | |
3072d11f | 8289 | #define zStrict_Ansi_OnlyList (char*)NULL |
fdb8fb96 | 8290 | /* |
8291 | * Machine/OS name selection pattern | |
8292 | */ | |
3072d11f | 8293 | #define apzStrict_Ansi_OnlyMachs (const char**)NULL |
bb304030 | 8294 | |
8295 | /* | |
3072d11f | 8296 | * content selection pattern - do fix if pattern found |
bb304030 | 8297 | */ |
3072d11f | 8298 | tSCC zStrict_Ansi_OnlySelect0[] = |
3ff85771 | 8299 | "^([ \t]*#[ \t]*if.*)(__STDC__[ \t]*!=[ \t]*0|__STDC__[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*!=[ \t]*0)"; |
bb304030 | 8300 | |
3072d11f | 8301 | /* |
8302 | * perform the C function call test | |
8303 | */ | |
8304 | tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers"; | |
8305 | ||
8306 | #define STRICT_ANSI_ONLY_TEST_CT 2 | |
8307 | static tTestDesc aStrict_Ansi_OnlyTests[] = { | |
8308 | { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ }, | |
8309 | { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 8310 | |
8311 | /* | |
3072d11f | 8312 | * Fix Command Arguments for Strict_Ansi_Only |
fdb8fb96 | 8313 | */ |
3072d11f | 8314 | static const char* apzStrict_Ansi_OnlyPatch[] = { |
8315 | "format", | |
3ff85771 | 8316 | "%1 defined(__STRICT_ANSI__)", |
fdb8fb96 | 8317 | (char*)NULL }; |
8318 | ||
cfe5be71 | 8319 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8320 | * | |
8321 | * Description of Struct_File fix | |
8322 | */ | |
cfe5be71 | 8323 | tSCC zStruct_FileName[] = |
8324 | "struct_file"; | |
8325 | ||
8326 | /* | |
8327 | * File name selection pattern | |
8328 | */ | |
8329 | tSCC zStruct_FileList[] = | |
e9afa104 | 8330 | "rpc/xdr.h\0"; |
cfe5be71 | 8331 | /* |
8332 | * Machine/OS name selection pattern | |
8333 | */ | |
8334 | #define apzStruct_FileMachs (const char**)NULL | |
8335 | ||
8336 | /* | |
8337 | * content selection pattern - do fix if pattern found | |
8338 | */ | |
8339 | tSCC zStruct_FileSelect0[] = | |
8340 | "^.*xdrstdio_create.*struct __file_s"; | |
8341 | ||
8342 | #define STRUCT_FILE_TEST_CT 1 | |
2548396b | 8343 | static tTestDesc aStruct_FileTests[] = { |
cfe5be71 | 8344 | { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, }; |
8345 | ||
8346 | /* | |
8347 | * Fix Command Arguments for Struct_File | |
8348 | */ | |
2548396b | 8349 | static const char* apzStruct_FilePatch[] = { |
cfe5be71 | 8350 | "format", |
8351 | "struct __file_s;\n\ | |
8352 | %0", | |
8353 | (char*)NULL }; | |
8354 | ||
8355 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
8356 | * | |
8357 | * Description of Struct_Sockaddr fix | |
8358 | */ | |
cfe5be71 | 8359 | tSCC zStruct_SockaddrName[] = |
8360 | "struct_sockaddr"; | |
8361 | ||
8362 | /* | |
8363 | * File name selection pattern | |
8364 | */ | |
8365 | tSCC zStruct_SockaddrList[] = | |
e9afa104 | 8366 | "rpc/auth.h\0"; |
cfe5be71 | 8367 | /* |
8368 | * Machine/OS name selection pattern | |
8369 | */ | |
8370 | #define apzStruct_SockaddrMachs (const char**)NULL | |
8371 | ||
8372 | /* | |
8373 | * content selection pattern - do fix if pattern found | |
8374 | */ | |
8375 | tSCC zStruct_SockaddrSelect0[] = | |
4176aa8f | 8376 | "^.*authdes_create.*struct sockaddr[^_]"; |
cfe5be71 | 8377 | |
8378 | /* | |
8379 | * content bypass pattern - skip fix if pattern found | |
8380 | */ | |
8381 | tSCC zStruct_SockaddrBypass0[] = | |
8382 | "<sys/socket.h>"; | |
4176aa8f | 8383 | tSCC zStruct_SockaddrBypass1[] = |
8384 | "struct sockaddr;\n"; | |
cfe5be71 | 8385 | |
4176aa8f | 8386 | #define STRUCT_SOCKADDR_TEST_CT 3 |
2548396b | 8387 | static tTestDesc aStruct_SockaddrTests[] = { |
cfe5be71 | 8388 | { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL }, |
4176aa8f | 8389 | { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL }, |
cfe5be71 | 8390 | { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, }; |
8391 | ||
8392 | /* | |
8393 | * Fix Command Arguments for Struct_Sockaddr | |
8394 | */ | |
2548396b | 8395 | static const char* apzStruct_SockaddrPatch[] = { |
cfe5be71 | 8396 | "format", |
8397 | "struct sockaddr;\n\ | |
8398 | %0", | |
8399 | (char*)NULL }; | |
8400 | ||
a712e12c | 8401 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8402 | * | |
8403 | * Description of Sun_Auth_Proto fix | |
8404 | */ | |
a712e12c | 8405 | tSCC zSun_Auth_ProtoName[] = |
8406 | "sun_auth_proto"; | |
8407 | ||
8408 | /* | |
8409 | * File name selection pattern | |
8410 | */ | |
8411 | tSCC zSun_Auth_ProtoList[] = | |
e9afa104 | 8412 | "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0"; |
a712e12c | 8413 | /* |
8414 | * Machine/OS name selection pattern | |
8415 | */ | |
8416 | #define apzSun_Auth_ProtoMachs (const char**)NULL | |
8417 | ||
8418 | /* | |
8419 | * content selection pattern - do fix if pattern found | |
8420 | */ | |
8421 | tSCC zSun_Auth_ProtoSelect0[] = | |
8422 | "\\(\\*[a-z][a-z_]*\\)\\(\\)"; | |
8423 | ||
69c13546 | 8424 | /* |
8425 | * content bypass pattern - skip fix if pattern found | |
8426 | */ | |
8427 | tSCC zSun_Auth_ProtoBypass0[] = | |
8428 | "__cplusplus"; | |
8429 | ||
8430 | #define SUN_AUTH_PROTO_TEST_CT 2 | |
2548396b | 8431 | static tTestDesc aSun_Auth_ProtoTests[] = { |
69c13546 | 8432 | { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL }, |
a712e12c | 8433 | { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; |
8434 | ||
8435 | /* | |
8436 | * Fix Command Arguments for Sun_Auth_Proto | |
8437 | */ | |
2548396b | 8438 | static const char* apzSun_Auth_ProtoPatch[] = { |
038a3e7a | 8439 | "format", |
8440 | "#ifdef __cplusplus\n\ | |
8441 | %1(...);%2\n\ | |
8442 | #else\n\ | |
8443 | %1();%2\n\ | |
8444 | #endif", | |
8445 | "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)", | |
a712e12c | 8446 | (char*)NULL }; |
8447 | ||
fdb8fb96 | 8448 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8449 | * | |
5daf7ede | 8450 | * Description of Sun_Bogus_Ifdef fix |
fdb8fb96 | 8451 | */ |
8452 | tSCC zSun_Bogus_IfdefName[] = | |
d4c4b01d | 8453 | "sun_bogus_ifdef"; |
8454 | ||
fdb8fb96 | 8455 | /* |
8456 | * File name selection pattern | |
8457 | */ | |
8458 | tSCC zSun_Bogus_IfdefList[] = | |
e9afa104 | 8459 | "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0"; |
fdb8fb96 | 8460 | /* |
8461 | * Machine/OS name selection pattern | |
8462 | */ | |
8463 | #define apzSun_Bogus_IfdefMachs (const char**)NULL | |
8464 | ||
8465 | /* | |
c1b28c63 | 8466 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 8467 | */ |
8468 | tSCC zSun_Bogus_IfdefSelect0[] = | |
038a3e7a | 8469 | "#ifdef(.*\\|\\|.*)"; |
fdb8fb96 | 8470 | |
8471 | #define SUN_BOGUS_IFDEF_TEST_CT 1 | |
2548396b | 8472 | static tTestDesc aSun_Bogus_IfdefTests[] = { |
5daf7ede | 8473 | { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 8474 | |
8475 | /* | |
8476 | * Fix Command Arguments for Sun_Bogus_Ifdef | |
8477 | */ | |
2548396b | 8478 | static const char* apzSun_Bogus_IfdefPatch[] = { |
038a3e7a | 8479 | "format", |
8480 | "#if%1", | |
fdb8fb96 | 8481 | (char*)NULL }; |
8482 | ||
8483 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
8484 | * | |
5daf7ede | 8485 | * Description of Sun_Catmacro fix |
fdb8fb96 | 8486 | */ |
8487 | tSCC zSun_CatmacroName[] = | |
d4c4b01d | 8488 | "sun_catmacro"; |
8489 | ||
fdb8fb96 | 8490 | /* |
8491 | * File name selection pattern | |
8492 | */ | |
8493 | tSCC zSun_CatmacroList[] = | |
e9afa104 | 8494 | "pixrect/memvar.h\0"; |
fdb8fb96 | 8495 | /* |
8496 | * Machine/OS name selection pattern | |
8497 | */ | |
8498 | #define apzSun_CatmacroMachs (const char**)NULL | |
8499 | ||
8500 | /* | |
c1b28c63 | 8501 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 8502 | */ |
8503 | tSCC zSun_CatmacroSelect0[] = | |
038a3e7a | 8504 | "^#define[ \t]+CAT\\(a,b\\).*"; |
fdb8fb96 | 8505 | |
8506 | #define SUN_CATMACRO_TEST_CT 1 | |
2548396b | 8507 | static tTestDesc aSun_CatmacroTests[] = { |
5daf7ede | 8508 | { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 8509 | |
8510 | /* | |
8511 | * Fix Command Arguments for Sun_Catmacro | |
8512 | */ | |
2548396b | 8513 | static const char* apzSun_CatmacroPatch[] = { |
038a3e7a | 8514 | "format", |
8515 | "#ifdef __STDC__\n\ | |
8516 | # define CAT(a,b) a##b\n\ | |
8517 | #else\n\ | |
8518 | %0\n\ | |
8519 | #endif", | |
fdb8fb96 | 8520 | (char*)NULL }; |
8521 | ||
8522 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
8523 | * | |
5daf7ede | 8524 | * Description of Sun_Malloc fix |
fdb8fb96 | 8525 | */ |
8526 | tSCC zSun_MallocName[] = | |
d4c4b01d | 8527 | "sun_malloc"; |
8528 | ||
fdb8fb96 | 8529 | /* |
8530 | * File name selection pattern | |
8531 | */ | |
8532 | tSCC zSun_MallocList[] = | |
e9afa104 | 8533 | "malloc.h\0"; |
fdb8fb96 | 8534 | /* |
8535 | * Machine/OS name selection pattern | |
8536 | */ | |
8537 | #define apzSun_MallocMachs (const char**)NULL | |
69c13546 | 8538 | |
8539 | /* | |
8540 | * content bypass pattern - skip fix if pattern found | |
8541 | */ | |
8542 | tSCC zSun_MallocBypass0[] = | |
8543 | "_CLASSIC_ANSI_TYPES"; | |
8544 | ||
8545 | #define SUN_MALLOC_TEST_CT 1 | |
8546 | static tTestDesc aSun_MallocTests[] = { | |
8547 | { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, }; | |
fdb8fb96 | 8548 | |
8549 | /* | |
8550 | * Fix Command Arguments for Sun_Malloc | |
8551 | */ | |
b32d497c | 8552 | static const char* apzSun_MallocPatch[] = { sed_cmd_z, |
c1b28c63 | 8553 | "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g", |
8554 | "-e", "s/int[ \t][ \t]*free/void\tfree/g", | |
8555 | "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g", | |
8556 | "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g", | |
6e58c05f | 8557 | "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g", |
fdb8fb96 | 8558 | (char*)NULL }; |
8559 | ||
fdb8fb96 | 8560 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8561 | * | |
5daf7ede | 8562 | * Description of Sun_Rusers_Semi fix |
fdb8fb96 | 8563 | */ |
8564 | tSCC zSun_Rusers_SemiName[] = | |
d4c4b01d | 8565 | "sun_rusers_semi"; |
8566 | ||
fdb8fb96 | 8567 | /* |
8568 | * File name selection pattern | |
8569 | */ | |
8570 | tSCC zSun_Rusers_SemiList[] = | |
e9afa104 | 8571 | "rpcsvc/rusers.h\0"; |
fdb8fb96 | 8572 | /* |
8573 | * Machine/OS name selection pattern | |
8574 | */ | |
8575 | #define apzSun_Rusers_SemiMachs (const char**)NULL | |
8576 | ||
8577 | /* | |
c1b28c63 | 8578 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 8579 | */ |
8580 | tSCC zSun_Rusers_SemiSelect0[] = | |
8581 | "_cnt$"; | |
8582 | ||
8583 | #define SUN_RUSERS_SEMI_TEST_CT 1 | |
2548396b | 8584 | static tTestDesc aSun_Rusers_SemiTests[] = { |
5daf7ede | 8585 | { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 8586 | |
8587 | /* | |
8588 | * Fix Command Arguments for Sun_Rusers_Semi | |
8589 | */ | |
b32d497c | 8590 | static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z, |
c1b28c63 | 8591 | "-e", "/^struct/,/^};/s/_cnt$/_cnt;/", |
fdb8fb96 | 8592 | (char*)NULL }; |
8593 | ||
8594 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
8595 | * | |
5daf7ede | 8596 | * Description of Sun_Signal fix |
fdb8fb96 | 8597 | */ |
8598 | tSCC zSun_SignalName[] = | |
d4c4b01d | 8599 | "sun_signal"; |
8600 | ||
fdb8fb96 | 8601 | /* |
8602 | * File name selection pattern | |
8603 | */ | |
8604 | tSCC zSun_SignalList[] = | |
e9afa104 | 8605 | "sys/signal.h\0signal.h\0"; |
fdb8fb96 | 8606 | /* |
8607 | * Machine/OS name selection pattern | |
8608 | */ | |
8609 | #define apzSun_SignalMachs (const char**)NULL | |
8610 | ||
8611 | /* | |
c1b28c63 | 8612 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 8613 | */ |
8614 | tSCC zSun_SignalSelect0[] = | |
038a3e7a | 8615 | "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*"; |
fdb8fb96 | 8616 | |
8617 | #define SUN_SIGNAL_TEST_CT 1 | |
2548396b | 8618 | static tTestDesc aSun_SignalTests[] = { |
5daf7ede | 8619 | { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 8620 | |
8621 | /* | |
8622 | * Fix Command Arguments for Sun_Signal | |
8623 | */ | |
2548396b | 8624 | static const char* apzSun_SignalPatch[] = { |
038a3e7a | 8625 | "format", |
8626 | "#ifdef __cplusplus\n\ | |
8627 | void\t(*signal(...))(...);\n\ | |
8628 | #else\n\ | |
8629 | %0\n\ | |
8630 | #endif", | |
fdb8fb96 | 8631 | (char*)NULL }; |
8632 | ||
fdb8fb96 | 8633 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8634 | * | |
5daf7ede | 8635 | * Description of Sunos_Strlen fix |
fdb8fb96 | 8636 | */ |
8637 | tSCC zSunos_StrlenName[] = | |
d4c4b01d | 8638 | "sunos_strlen"; |
8639 | ||
fdb8fb96 | 8640 | /* |
8641 | * File name selection pattern | |
8642 | */ | |
8643 | tSCC zSunos_StrlenList[] = | |
e9afa104 | 8644 | "strings.h\0"; |
fdb8fb96 | 8645 | /* |
8646 | * Machine/OS name selection pattern | |
8647 | */ | |
8648 | #define apzSunos_StrlenMachs (const char**)NULL | |
bb304030 | 8649 | |
8650 | /* | |
8651 | * content selection pattern - do fix if pattern found | |
8652 | */ | |
8653 | tSCC zSunos_StrlenSelect0[] = | |
038a3e7a | 8654 | "int[ \t]*strlen\\(\\);(.*)"; |
bb304030 | 8655 | |
8656 | #define SUNOS_STRLEN_TEST_CT 1 | |
2548396b | 8657 | static tTestDesc aSunos_StrlenTests[] = { |
bb304030 | 8658 | { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 8659 | |
8660 | /* | |
8661 | * Fix Command Arguments for Sunos_Strlen | |
8662 | */ | |
2548396b | 8663 | static const char* apzSunos_StrlenPatch[] = { |
038a3e7a | 8664 | "format", |
8665 | "__SIZE_TYPE__ strlen();%1", | |
8666 | (char*)NULL }; | |
8667 | ||
d4a8ec92 | 8668 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8669 | * | |
8670 | * Description of Suse_Linux_Vt_Cxx fix | |
8671 | */ | |
8672 | tSCC zSuse_Linux_Vt_CxxName[] = | |
8673 | "suse_linux_vt_cxx"; | |
8674 | ||
8675 | /* | |
8676 | * File name selection pattern | |
8677 | */ | |
8678 | tSCC zSuse_Linux_Vt_CxxList[] = | |
8679 | "linux/vt.h\0"; | |
8680 | /* | |
8681 | * Machine/OS name selection pattern | |
8682 | */ | |
8683 | #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL | |
8684 | ||
8685 | /* | |
8686 | * content selection pattern - do fix if pattern found | |
8687 | */ | |
8688 | tSCC zSuse_Linux_Vt_CxxSelect0[] = | |
8689 | "^[ \t]*unsigned int new;"; | |
8690 | ||
8691 | #define SUSE_LINUX_VT_CXX_TEST_CT 1 | |
8692 | static tTestDesc aSuse_Linux_Vt_CxxTests[] = { | |
8693 | { TT_EGREP, zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, }; | |
8694 | ||
8695 | /* | |
8696 | * Fix Command Arguments for Suse_Linux_Vt_Cxx | |
8697 | */ | |
8698 | static const char* apzSuse_Linux_Vt_CxxPatch[] = { | |
8699 | "format", | |
8700 | "unsigned int newev;", | |
8701 | (char*)NULL }; | |
8702 | ||
3c04ceca | 8703 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8704 | * | |
8705 | * Description of Svr4_Disable_Opt fix | |
8706 | */ | |
8707 | tSCC zSvr4_Disable_OptName[] = | |
8708 | "svr4_disable_opt"; | |
8709 | ||
8710 | /* | |
8711 | * File name selection pattern | |
8712 | */ | |
8713 | tSCC zSvr4_Disable_OptList[] = | |
e9afa104 | 8714 | "string.h\0"; |
3c04ceca | 8715 | /* |
8716 | * Machine/OS name selection pattern | |
8717 | */ | |
8718 | #define apzSvr4_Disable_OptMachs (const char**)NULL | |
8719 | ||
8720 | /* | |
8721 | * content selection pattern - do fix if pattern found | |
8722 | */ | |
8723 | tSCC zSvr4_Disable_OptSelect0[] = | |
8724 | "#define.*__std_hdr_"; | |
8725 | ||
8726 | #define SVR4_DISABLE_OPT_TEST_CT 1 | |
8727 | static tTestDesc aSvr4_Disable_OptTests[] = { | |
8728 | { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, }; | |
8729 | ||
8730 | /* | |
8731 | * Fix Command Arguments for Svr4_Disable_Opt | |
8732 | */ | |
b32d497c | 8733 | static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z, |
3c04ceca | 8734 | "-e", "/#define.*__std_hdr_/d", |
8735 | (char*)NULL }; | |
8736 | ||
a712e12c | 8737 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8738 | * | |
8739 | * Description of Svr4_Getcwd fix | |
8740 | */ | |
a712e12c | 8741 | tSCC zSvr4_GetcwdName[] = |
8742 | "svr4_getcwd"; | |
8743 | ||
8744 | /* | |
8745 | * File name selection pattern | |
8746 | */ | |
8747 | tSCC zSvr4_GetcwdList[] = | |
e9afa104 | 8748 | "stdlib.h\0unistd.h\0prototypes.h\0"; |
a712e12c | 8749 | /* |
8750 | * Machine/OS name selection pattern | |
8751 | */ | |
8752 | #define apzSvr4_GetcwdMachs (const char**)NULL | |
8753 | ||
8754 | /* | |
8755 | * content selection pattern - do fix if pattern found | |
8756 | */ | |
8757 | tSCC zSvr4_GetcwdSelect0[] = | |
8758 | "getcwd\\(char \\*, int\\)"; | |
8759 | ||
8760 | #define SVR4_GETCWD_TEST_CT 1 | |
2548396b | 8761 | static tTestDesc aSvr4_GetcwdTests[] = { |
a712e12c | 8762 | { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, }; |
8763 | ||
8764 | /* | |
8765 | * Fix Command Arguments for Svr4_Getcwd | |
8766 | */ | |
2548396b | 8767 | static const char* apzSvr4_GetcwdPatch[] = { |
038a3e7a | 8768 | "format", |
8769 | "getcwd(char *, size_t)", | |
a712e12c | 8770 | (char*)NULL }; |
8771 | ||
8772 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
8773 | * | |
8774 | * Description of Svr4_Profil fix | |
8775 | */ | |
a712e12c | 8776 | tSCC zSvr4_ProfilName[] = |
8777 | "svr4_profil"; | |
8778 | ||
8779 | /* | |
8780 | * File name selection pattern | |
8781 | */ | |
6af9f7ea | 8782 | tSCC zSvr4_ProfilList[] = |
8783 | "stdlib.h\0unistd.h\0"; | |
7ab961ad | 8784 | /* |
8785 | * Machine/OS name selection pattern | |
8786 | */ | |
6af9f7ea | 8787 | #define apzSvr4_ProfilMachs (const char**)NULL |
7ab961ad | 8788 | |
8789 | /* | |
8790 | * content selection pattern - do fix if pattern found | |
8791 | */ | |
6af9f7ea | 8792 | tSCC zSvr4_ProfilSelect0[] = |
8793 | "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)"; | |
8794 | ||
5641963c | 8795 | #define SVR4_PROFIL_TEST_CT 1 |
6af9f7ea | 8796 | static tTestDesc aSvr4_ProfilTests[] = { |
6af9f7ea | 8797 | { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, }; |
7ab961ad | 8798 | |
8799 | /* | |
6af9f7ea | 8800 | * Fix Command Arguments for Svr4_Profil |
7ab961ad | 8801 | */ |
6af9f7ea | 8802 | static const char* apzSvr4_ProfilPatch[] = { |
8803 | "format", | |
8804 | "profil(unsigned short *, size_t, int, unsigned int)", | |
7ab961ad | 8805 | (char*)NULL }; |
8806 | ||
8807 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
8808 | * | |
6af9f7ea | 8809 | * Description of Svr4_Sighandler_Type fix |
7ab961ad | 8810 | */ |
6af9f7ea | 8811 | tSCC zSvr4_Sighandler_TypeName[] = |
8812 | "svr4_sighandler_type"; | |
7ab961ad | 8813 | |
8814 | /* | |
8815 | * File name selection pattern | |
8816 | */ | |
6af9f7ea | 8817 | tSCC zSvr4_Sighandler_TypeList[] = |
8818 | "sys/signal.h\0"; | |
7ab961ad | 8819 | /* |
8820 | * Machine/OS name selection pattern | |
8821 | */ | |
6af9f7ea | 8822 | #define apzSvr4_Sighandler_TypeMachs (const char**)NULL |
7ab961ad | 8823 | |
8824 | /* | |
8825 | * content selection pattern - do fix if pattern found | |
8826 | */ | |
6af9f7ea | 8827 | tSCC zSvr4_Sighandler_TypeSelect0[] = |
8828 | "void *\\(\\*\\)\\(\\)"; | |
7ab961ad | 8829 | |
6af9f7ea | 8830 | #define SVR4_SIGHANDLER_TYPE_TEST_CT 1 |
8831 | static tTestDesc aSvr4_Sighandler_TypeTests[] = { | |
8832 | { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, }; | |
7ab961ad | 8833 | |
8834 | /* | |
6af9f7ea | 8835 | * Fix Command Arguments for Svr4_Sighandler_Type |
7ab961ad | 8836 | */ |
6af9f7ea | 8837 | static const char* apzSvr4_Sighandler_TypePatch[] = { |
8838 | "format", | |
8839 | "void (*)(int)", | |
7ab961ad | 8840 | (char*)NULL }; |
8841 | ||
37935110 | 8842 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8843 | * | |
6af9f7ea | 8844 | * Description of Svr4_Undeclared_Getrnge fix |
37935110 | 8845 | */ |
6af9f7ea | 8846 | tSCC zSvr4_Undeclared_GetrngeName[] = |
8847 | "svr4_undeclared_getrnge"; | |
37935110 | 8848 | |
8849 | /* | |
8850 | * File name selection pattern | |
8851 | */ | |
6af9f7ea | 8852 | tSCC zSvr4_Undeclared_GetrngeList[] = |
8853 | "regexp.h\0"; | |
37935110 | 8854 | /* |
8855 | * Machine/OS name selection pattern | |
8856 | */ | |
6af9f7ea | 8857 | #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL |
37935110 | 8858 | |
8859 | /* | |
8860 | * content selection pattern - do fix if pattern found | |
8861 | */ | |
6af9f7ea | 8862 | tSCC zSvr4_Undeclared_GetrngeSelect0[] = |
8863 | "getrnge"; | |
8864 | ||
8865 | /* | |
8866 | * content bypass pattern - skip fix if pattern found | |
8867 | */ | |
8868 | tSCC zSvr4_Undeclared_GetrngeBypass0[] = | |
8869 | "static void getrnge"; | |
37935110 | 8870 | |
6af9f7ea | 8871 | #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2 |
8872 | static tTestDesc aSvr4_Undeclared_GetrngeTests[] = { | |
8873 | { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL }, | |
8874 | { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, }; | |
37935110 | 8875 | |
8876 | /* | |
6af9f7ea | 8877 | * Fix Command Arguments for Svr4_Undeclared_Getrnge |
37935110 | 8878 | */ |
6af9f7ea | 8879 | static const char* apzSvr4_Undeclared_GetrngePatch[] = { |
8880 | "format", | |
8881 | "%0\n\ | |
8882 | static int getrnge ();", | |
8883 | "^static int[ \t]+size;", | |
37935110 | 8884 | (char*)NULL }; |
8885 | ||
7ab961ad | 8886 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8887 | * | |
6af9f7ea | 8888 | * Description of Sysv68_String fix |
7ab961ad | 8889 | */ |
6af9f7ea | 8890 | tSCC zSysv68_StringName[] = |
8891 | "sysv68_string"; | |
7ab961ad | 8892 | |
8893 | /* | |
8894 | * File name selection pattern | |
8895 | */ | |
6af9f7ea | 8896 | tSCC zSysv68_StringList[] = |
8897 | "testing.h\0string.h\0"; | |
7ab961ad | 8898 | /* |
8899 | * Machine/OS name selection pattern | |
8900 | */ | |
6af9f7ea | 8901 | #define apzSysv68_StringMachs (const char**)NULL |
7ab961ad | 8902 | |
8903 | /* | |
6af9f7ea | 8904 | * content bypass pattern - skip fix if pattern found |
7ab961ad | 8905 | */ |
6af9f7ea | 8906 | tSCC zSysv68_StringBypass0[] = |
8907 | "_CLASSIC_ANSI_TYPES"; | |
7ab961ad | 8908 | |
6af9f7ea | 8909 | #define SYSV68_STRING_TEST_CT 1 |
8910 | static tTestDesc aSysv68_StringTests[] = { | |
8911 | { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, }; | |
7ab961ad | 8912 | |
8913 | /* | |
6af9f7ea | 8914 | * Fix Command Arguments for Sysv68_String |
7ab961ad | 8915 | */ |
b32d497c | 8916 | static const char* apzSysv68_StringPatch[] = { sed_cmd_z, |
6af9f7ea | 8917 | "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/", |
8918 | "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/", | |
8919 | "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/", | |
8920 | "-e", "/^extern char$/N", | |
8921 | "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/", | |
8922 | "-e", "/^extern int$/N", | |
8923 | "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/", | |
8924 | "-e", "/^\tstrncmp(),$/N", | |
8925 | "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ | |
8926 | extern unsigned int\\\n\ | |
8927 | \\2/", | |
7ab961ad | 8928 | (char*)NULL }; |
8929 | ||
37935110 | 8930 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
8931 | * | |
6af9f7ea | 8932 | * Description of Sysz_Stdlib_For_Sun fix |
37935110 | 8933 | */ |
6af9f7ea | 8934 | tSCC zSysz_Stdlib_For_SunName[] = |
8935 | "sysz_stdlib_for_sun"; | |
37935110 | 8936 | |
8937 | /* | |
8938 | * File name selection pattern | |
8939 | */ | |
6af9f7ea | 8940 | tSCC zSysz_Stdlib_For_SunList[] = |
8941 | "stdlib.h\0"; | |
37935110 | 8942 | /* |
8943 | * Machine/OS name selection pattern | |
8944 | */ | |
6af9f7ea | 8945 | #define apzSysz_Stdlib_For_SunMachs (const char**)NULL |
37935110 | 8946 | |
8947 | /* | |
8948 | * content selection pattern - do fix if pattern found | |
8949 | */ | |
6af9f7ea | 8950 | tSCC zSysz_Stdlib_For_SunSelect0[] = |
8951 | "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\("; | |
8952 | ||
8953 | /* | |
8954 | * content bypass pattern - skip fix if pattern found | |
8955 | */ | |
8956 | tSCC zSysz_Stdlib_For_SunBypass0[] = | |
8957 | "_CLASSIC_ANSI_TYPES"; | |
37935110 | 8958 | |
6af9f7ea | 8959 | #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2 |
8960 | static tTestDesc aSysz_Stdlib_For_SunTests[] = { | |
8961 | { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL }, | |
8962 | { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, }; | |
37935110 | 8963 | |
8964 | /* | |
6af9f7ea | 8965 | * Fix Command Arguments for Sysz_Stdlib_For_Sun |
37935110 | 8966 | */ |
6af9f7ea | 8967 | static const char* apzSysz_Stdlib_For_SunPatch[] = { |
8968 | "format", | |
8969 | "void *\t%1(", | |
37935110 | 8970 | (char*)NULL }; |
8971 | ||
8972 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
8973 | * | |
6af9f7ea | 8974 | * Description of Thread_Keyword fix |
37935110 | 8975 | */ |
6af9f7ea | 8976 | tSCC zThread_KeywordName[] = |
8977 | "thread_keyword"; | |
37935110 | 8978 | |
8979 | /* | |
8980 | * File name selection pattern | |
8981 | */ | |
6af9f7ea | 8982 | tSCC zThread_KeywordList[] = |
d1ed71e5 | 8983 | "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0"; |
37935110 | 8984 | /* |
8985 | * Machine/OS name selection pattern | |
8986 | */ | |
6af9f7ea | 8987 | #define apzThread_KeywordMachs (const char**)NULL |
37935110 | 8988 | |
8989 | /* | |
8990 | * content selection pattern - do fix if pattern found | |
8991 | */ | |
6af9f7ea | 8992 | tSCC zThread_KeywordSelect0[] = |
8993 | "([* ])__thread([,)])"; | |
37935110 | 8994 | |
6af9f7ea | 8995 | #define THREAD_KEYWORD_TEST_CT 1 |
8996 | static tTestDesc aThread_KeywordTests[] = { | |
8997 | { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, }; | |
37935110 | 8998 | |
8999 | /* | |
6af9f7ea | 9000 | * Fix Command Arguments for Thread_Keyword |
37935110 | 9001 | */ |
6af9f7ea | 9002 | static const char* apzThread_KeywordPatch[] = { |
9003 | "format", | |
9004 | "%1__thr%2", | |
37935110 | 9005 | (char*)NULL }; |
9006 | ||
9007 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9008 | * | |
6af9f7ea | 9009 | * Description of Tinfo_Cplusplus fix |
37935110 | 9010 | */ |
6af9f7ea | 9011 | tSCC zTinfo_CplusplusName[] = |
9012 | "tinfo_cplusplus"; | |
37935110 | 9013 | |
9014 | /* | |
9015 | * File name selection pattern | |
9016 | */ | |
6af9f7ea | 9017 | tSCC zTinfo_CplusplusList[] = |
9018 | "tinfo.h\0"; | |
37935110 | 9019 | /* |
9020 | * Machine/OS name selection pattern | |
9021 | */ | |
6af9f7ea | 9022 | #define apzTinfo_CplusplusMachs (const char**)NULL |
37935110 | 9023 | |
9024 | /* | |
9025 | * content selection pattern - do fix if pattern found | |
9026 | */ | |
6af9f7ea | 9027 | tSCC zTinfo_CplusplusSelect0[] = |
9028 | "[ \t]_cplusplus"; | |
37935110 | 9029 | |
6af9f7ea | 9030 | #define TINFO_CPLUSPLUS_TEST_CT 1 |
9031 | static tTestDesc aTinfo_CplusplusTests[] = { | |
9032 | { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, }; | |
37935110 | 9033 | |
9034 | /* | |
6af9f7ea | 9035 | * Fix Command Arguments for Tinfo_Cplusplus |
37935110 | 9036 | */ |
6af9f7ea | 9037 | static const char* apzTinfo_CplusplusPatch[] = { |
9038 | "format", | |
9039 | " __cplusplus", | |
37935110 | 9040 | (char*)NULL }; |
9041 | ||
9caef960 | 9042 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9043 | * | |
6af9f7ea | 9044 | * Description of Ultrix_Const fix |
9caef960 | 9045 | */ |
6af9f7ea | 9046 | tSCC zUltrix_ConstName[] = |
9047 | "ultrix_const"; | |
9caef960 | 9048 | |
9049 | /* | |
9050 | * File name selection pattern | |
9051 | */ | |
6af9f7ea | 9052 | tSCC zUltrix_ConstList[] = |
9053 | "stdio.h\0"; | |
9caef960 | 9054 | /* |
9055 | * Machine/OS name selection pattern | |
9056 | */ | |
6af9f7ea | 9057 | #define apzUltrix_ConstMachs (const char**)NULL |
9caef960 | 9058 | |
9059 | /* | |
9060 | * content selection pattern - do fix if pattern found | |
9061 | */ | |
6af9f7ea | 9062 | tSCC zUltrix_ConstSelect0[] = |
9063 | "perror\\( char \\*"; | |
9caef960 | 9064 | |
6af9f7ea | 9065 | #define ULTRIX_CONST_TEST_CT 1 |
9066 | static tTestDesc aUltrix_ConstTests[] = { | |
9067 | { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, }; | |
9caef960 | 9068 | |
9069 | /* | |
6af9f7ea | 9070 | * Fix Command Arguments for Ultrix_Const |
9caef960 | 9071 | */ |
6af9f7ea | 9072 | static const char* apzUltrix_ConstPatch[] = { |
9caef960 | 9073 | "format", |
6af9f7ea | 9074 | "%1 const %3 *__", |
9075 | "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__", | |
9caef960 | 9076 | (char*)NULL }; |
9077 | ||
d08a0ac4 | 9078 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9079 | * | |
6af9f7ea | 9080 | * Description of Ultrix_Const2 fix |
d08a0ac4 | 9081 | */ |
6af9f7ea | 9082 | tSCC zUltrix_Const2Name[] = |
9083 | "ultrix_const2"; | |
d4c4b01d | 9084 | |
d08a0ac4 | 9085 | /* |
9086 | * File name selection pattern | |
9087 | */ | |
6af9f7ea | 9088 | tSCC zUltrix_Const2List[] = |
9089 | "stdio.h\0"; | |
d08a0ac4 | 9090 | /* |
9091 | * Machine/OS name selection pattern | |
9092 | */ | |
6af9f7ea | 9093 | #define apzUltrix_Const2Machs (const char**)NULL |
d08a0ac4 | 9094 | |
9095 | /* | |
9096 | * content selection pattern - do fix if pattern found | |
9097 | */ | |
6af9f7ea | 9098 | tSCC zUltrix_Const2Select0[] = |
9099 | "\\*fopen\\( char \\*"; | |
b07d36b9 | 9100 | |
6af9f7ea | 9101 | #define ULTRIX_CONST2_TEST_CT 1 |
9102 | static tTestDesc aUltrix_Const2Tests[] = { | |
9103 | { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, }; | |
d08a0ac4 | 9104 | |
9105 | /* | |
6af9f7ea | 9106 | * Fix Command Arguments for Ultrix_Const2 |
d08a0ac4 | 9107 | */ |
6af9f7ea | 9108 | static const char* apzUltrix_Const2Patch[] = { |
b07d36b9 | 9109 | "format", |
6af9f7ea | 9110 | "%1( const char *%3, const char *", |
9111 | "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*", | |
d08a0ac4 | 9112 | (char*)NULL }; |
9113 | ||
fdb8fb96 | 9114 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9115 | * | |
5daf7ede | 9116 | * Description of Va_I960_Macro fix |
fdb8fb96 | 9117 | */ |
9118 | tSCC zVa_I960_MacroName[] = | |
d4c4b01d | 9119 | "va_i960_macro"; |
9120 | ||
fdb8fb96 | 9121 | /* |
9122 | * File name selection pattern | |
9123 | */ | |
9124 | tSCC zVa_I960_MacroList[] = | |
e9afa104 | 9125 | "arch/i960/archI960.h\0"; |
fdb8fb96 | 9126 | /* |
9127 | * Machine/OS name selection pattern | |
9128 | */ | |
9129 | #define apzVa_I960_MacroMachs (const char**)NULL | |
9130 | ||
9131 | /* | |
c1b28c63 | 9132 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 9133 | */ |
9134 | tSCC zVa_I960_MacroSelect0[] = | |
9135 | "__(vsiz|vali|vpad|alignof__)"; | |
9136 | ||
9137 | #define VA_I960_MACRO_TEST_CT 1 | |
2548396b | 9138 | static tTestDesc aVa_I960_MacroTests[] = { |
5daf7ede | 9139 | { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 9140 | |
9141 | /* | |
9142 | * Fix Command Arguments for Va_I960_Macro | |
9143 | */ | |
2548396b | 9144 | static const char* apzVa_I960_MacroPatch[] = { |
f74d6549 | 9145 | "format", |
9146 | "__vx%1", | |
fdb8fb96 | 9147 | (char*)NULL }; |
9148 | ||
f13b86b8 | 9149 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9150 | * | |
d1ed71e5 | 9151 | * Description of Vms_Add_Missing_Braces fix |
f13b86b8 | 9152 | */ |
d1ed71e5 | 9153 | tSCC zVms_Add_Missing_BracesName[] = |
9154 | "vms_add_missing_braces"; | |
f13b86b8 | 9155 | |
9156 | /* | |
9157 | * File name selection pattern | |
9158 | */ | |
d1ed71e5 | 9159 | tSCC zVms_Add_Missing_BracesList[] = |
9160 | "rtldef/signal.h\0"; | |
f13b86b8 | 9161 | /* |
9162 | * Machine/OS name selection pattern | |
9163 | */ | |
d1ed71e5 | 9164 | tSCC* apzVms_Add_Missing_BracesMachs[] = { |
f13b86b8 | 9165 | "*-*-*vms*", |
9166 | (const char*)NULL }; | |
9167 | ||
9168 | /* | |
9169 | * content selection pattern - do fix if pattern found | |
9170 | */ | |
d1ed71e5 | 9171 | tSCC zVms_Add_Missing_BracesSelect0[] = |
9172 | "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)"; | |
f13b86b8 | 9173 | |
d1ed71e5 | 9174 | #define VMS_ADD_MISSING_BRACES_TEST_CT 1 |
9175 | static tTestDesc aVms_Add_Missing_BracesTests[] = { | |
9176 | { TT_EGREP, zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, }; | |
f13b86b8 | 9177 | |
9178 | /* | |
d1ed71e5 | 9179 | * Fix Command Arguments for Vms_Add_Missing_Braces |
f13b86b8 | 9180 | */ |
d1ed71e5 | 9181 | static const char* apzVms_Add_Missing_BracesPatch[] = { |
f13b86b8 | 9182 | "format", |
d1ed71e5 | 9183 | "%1 {%2} ", |
f13b86b8 | 9184 | (char*)NULL }; |
9185 | ||
9186 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9187 | * | |
d1ed71e5 | 9188 | * Description of Vms_Decc_Builtin fix |
f13b86b8 | 9189 | */ |
d1ed71e5 | 9190 | tSCC zVms_Decc_BuiltinName[] = |
9191 | "vms_decc_builtin"; | |
f13b86b8 | 9192 | |
9193 | /* | |
9194 | * File name selection pattern | |
9195 | */ | |
d1ed71e5 | 9196 | tSCC zVms_Decc_BuiltinList[] = |
9197 | "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0"; | |
f13b86b8 | 9198 | /* |
9199 | * Machine/OS name selection pattern | |
9200 | */ | |
d1ed71e5 | 9201 | tSCC* apzVms_Decc_BuiltinMachs[] = { |
f13b86b8 | 9202 | "*-*-*vms*", |
9203 | (const char*)NULL }; | |
9204 | ||
9205 | /* | |
9206 | * content selection pattern - do fix if pattern found | |
9207 | */ | |
d1ed71e5 | 9208 | tSCC zVms_Decc_BuiltinSelect0[] = |
9209 | "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)"; | |
f13b86b8 | 9210 | |
d1ed71e5 | 9211 | #define VMS_DECC_BUILTIN_TEST_CT 1 |
9212 | static tTestDesc aVms_Decc_BuiltinTests[] = { | |
9213 | { TT_EGREP, zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, }; | |
f13b86b8 | 9214 | |
9215 | /* | |
d1ed71e5 | 9216 | * Fix Command Arguments for Vms_Decc_Builtin |
f13b86b8 | 9217 | */ |
d1ed71e5 | 9218 | static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z, |
9219 | "-e", "s@__MEMSET@memset@", | |
9220 | "-e", "s@__MEMMOVE@memmove@", | |
9221 | "-e", "s@__MEMCPY@memcpy@", | |
9222 | "-e", "s@__STRLEN@strlen@", | |
9223 | "-e", "s@__STRCPY@strcpy@", | |
f13b86b8 | 9224 | (char*)NULL }; |
9225 | ||
9226 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9227 | * | |
d1ed71e5 | 9228 | * Description of Vms_Define_Can_Use_Extern_Prefix fix |
f13b86b8 | 9229 | */ |
d1ed71e5 | 9230 | tSCC zVms_Define_Can_Use_Extern_PrefixName[] = |
9231 | "vms_define_can_use_extern_prefix"; | |
f13b86b8 | 9232 | |
9233 | /* | |
9234 | * File name selection pattern | |
9235 | */ | |
d1ed71e5 | 9236 | tSCC zVms_Define_Can_Use_Extern_PrefixList[] = |
9237 | "rtldef/decc$types.h\0"; | |
f13b86b8 | 9238 | /* |
9239 | * Machine/OS name selection pattern | |
9240 | */ | |
d1ed71e5 | 9241 | tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = { |
f13b86b8 | 9242 | "*-*-*vms*", |
9243 | (const char*)NULL }; | |
9244 | ||
9245 | /* | |
9246 | * content selection pattern - do fix if pattern found | |
9247 | */ | |
d1ed71e5 | 9248 | tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] = |
9249 | "#[ \t]*else\n\ | |
9250 | #[ \t]*if defined\\(__DECCXX\\)\n\ | |
9251 | #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n"; | |
f13b86b8 | 9252 | |
d1ed71e5 | 9253 | #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1 |
9254 | static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = { | |
9255 | { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, }; | |
f13b86b8 | 9256 | |
9257 | /* | |
d1ed71e5 | 9258 | * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix |
f13b86b8 | 9259 | */ |
d1ed71e5 | 9260 | static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = { |
f13b86b8 | 9261 | "format", |
d1ed71e5 | 9262 | "%0# elif defined (__GNUC__)\n\ |
9263 | #\tdefine __CAN_USE_EXTERN_PREFIX 1\n", | |
f13b86b8 | 9264 | (char*)NULL }; |
9265 | ||
1e6cd7f6 | 9266 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9267 | * | |
d1ed71e5 | 9268 | * Description of Vms_Disable_Decc_String_Builtins fix |
1e6cd7f6 | 9269 | */ |
d1ed71e5 | 9270 | tSCC zVms_Disable_Decc_String_BuiltinsName[] = |
9271 | "vms_disable_decc_string_builtins"; | |
1e6cd7f6 | 9272 | |
9273 | /* | |
9274 | * File name selection pattern | |
9275 | */ | |
d1ed71e5 | 9276 | tSCC zVms_Disable_Decc_String_BuiltinsList[] = |
9277 | "rtldef/string.h\0"; | |
1e6cd7f6 | 9278 | /* |
9279 | * Machine/OS name selection pattern | |
9280 | */ | |
d1ed71e5 | 9281 | tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = { |
1e6cd7f6 | 9282 | "*-*-*vms*", |
9283 | (const char*)NULL }; | |
9284 | ||
9285 | /* | |
9286 | * content selection pattern - do fix if pattern found | |
9287 | */ | |
d1ed71e5 | 9288 | tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] = |
9289 | "#if !defined\\(__VAX\\)\n"; | |
1e6cd7f6 | 9290 | |
d1ed71e5 | 9291 | #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1 |
9292 | static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = { | |
9293 | { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, }; | |
1e6cd7f6 | 9294 | |
9295 | /* | |
d1ed71e5 | 9296 | * Fix Command Arguments for Vms_Disable_Decc_String_Builtins |
1e6cd7f6 | 9297 | */ |
d1ed71e5 | 9298 | static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = { |
1e6cd7f6 | 9299 | "format", |
d1ed71e5 | 9300 | "#if !defined(__VAX) && !defined(__GNUC__)\n", |
1e6cd7f6 | 9301 | (char*)NULL }; |
9302 | ||
9303 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9304 | * | |
d1ed71e5 | 9305 | * Description of Vms_Do_Not_Redeclare_Hostalias fix |
1e6cd7f6 | 9306 | */ |
d1ed71e5 | 9307 | tSCC zVms_Do_Not_Redeclare_HostaliasName[] = |
9308 | "vms_do_not_redeclare_hostalias"; | |
1e6cd7f6 | 9309 | |
9310 | /* | |
9311 | * File name selection pattern | |
9312 | */ | |
d1ed71e5 | 9313 | tSCC zVms_Do_Not_Redeclare_HostaliasList[] = |
9314 | "rtldef/resolv.h\0"; | |
1e6cd7f6 | 9315 | /* |
9316 | * Machine/OS name selection pattern | |
9317 | */ | |
d1ed71e5 | 9318 | tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = { |
1e6cd7f6 | 9319 | "*-*-*vms*", |
9320 | (const char*)NULL }; | |
9321 | ||
9322 | /* | |
9323 | * content selection pattern - do fix if pattern found | |
9324 | */ | |
d1ed71e5 | 9325 | tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] = |
9326 | "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\ | |
9327 | (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)"; | |
1e6cd7f6 | 9328 | |
d1ed71e5 | 9329 | #define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1 |
9330 | static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = { | |
9331 | { TT_EGREP, zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, }; | |
1e6cd7f6 | 9332 | |
9333 | /* | |
d1ed71e5 | 9334 | * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias |
1e6cd7f6 | 9335 | */ |
d1ed71e5 | 9336 | static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = { |
1e6cd7f6 | 9337 | "format", |
d1ed71e5 | 9338 | "%1\n\ |
9339 | /* %2 */", | |
1e6cd7f6 | 9340 | (char*)NULL }; |
9341 | ||
9342 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9343 | * | |
d1ed71e5 | 9344 | * Description of Vms_Forward_Declare_Struct fix |
1e6cd7f6 | 9345 | */ |
d1ed71e5 | 9346 | tSCC zVms_Forward_Declare_StructName[] = |
9347 | "vms_forward_declare_struct"; | |
1e6cd7f6 | 9348 | |
9349 | /* | |
9350 | * File name selection pattern | |
9351 | */ | |
d1ed71e5 | 9352 | tSCC zVms_Forward_Declare_StructList[] = |
9353 | "rtldef/if.h\0"; | |
1e6cd7f6 | 9354 | /* |
9355 | * Machine/OS name selection pattern | |
9356 | */ | |
d1ed71e5 | 9357 | tSCC* apzVms_Forward_Declare_StructMachs[] = { |
1e6cd7f6 | 9358 | "*-*-*vms*", |
9359 | (const char*)NULL }; | |
9360 | ||
9361 | /* | |
9362 | * content selection pattern - do fix if pattern found | |
9363 | */ | |
d1ed71e5 | 9364 | tSCC zVms_Forward_Declare_StructSelect0[] = |
9365 | "(/\\* forward decls for C\\+\\+ \\*/\n\ | |
9366 | )#ifdef __cplusplus\n"; | |
1e6cd7f6 | 9367 | |
d1ed71e5 | 9368 | #define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1 |
9369 | static tTestDesc aVms_Forward_Declare_StructTests[] = { | |
9370 | { TT_EGREP, zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, }; | |
1e6cd7f6 | 9371 | |
9372 | /* | |
d1ed71e5 | 9373 | * Fix Command Arguments for Vms_Forward_Declare_Struct |
1e6cd7f6 | 9374 | */ |
d1ed71e5 | 9375 | static const char* apzVms_Forward_Declare_StructPatch[] = { |
1e6cd7f6 | 9376 | "format", |
d1ed71e5 | 9377 | "%1#if defined (__cplusplus) || defined (__GNUC__)\n", |
1e6cd7f6 | 9378 | (char*)NULL }; |
9379 | ||
9380 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9381 | * | |
d1ed71e5 | 9382 | * Description of Vms_No_64bit_Getopt fix |
1e6cd7f6 | 9383 | */ |
d1ed71e5 | 9384 | tSCC zVms_No_64bit_GetoptName[] = |
9385 | "vms_no_64bit_getopt"; | |
1e6cd7f6 | 9386 | |
9387 | /* | |
9388 | * File name selection pattern | |
9389 | */ | |
d1ed71e5 | 9390 | tSCC zVms_No_64bit_GetoptList[] = |
9391 | "rtldef/stdio.h\0rtldef/unistd.h\0"; | |
1e6cd7f6 | 9392 | /* |
9393 | * Machine/OS name selection pattern | |
9394 | */ | |
d1ed71e5 | 9395 | tSCC* apzVms_No_64bit_GetoptMachs[] = { |
1e6cd7f6 | 9396 | "*-*-*vms*", |
9397 | (const char*)NULL }; | |
9398 | ||
9399 | /* | |
9400 | * content selection pattern - do fix if pattern found | |
9401 | */ | |
d1ed71e5 | 9402 | tSCC zVms_No_64bit_GetoptSelect0[] = |
9403 | "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n"; | |
1e6cd7f6 | 9404 | |
d1ed71e5 | 9405 | #define VMS_NO_64BIT_GETOPT_TEST_CT 1 |
9406 | static tTestDesc aVms_No_64bit_GetoptTests[] = { | |
9407 | { TT_EGREP, zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, }; | |
1e6cd7f6 | 9408 | |
9409 | /* | |
d1ed71e5 | 9410 | * Fix Command Arguments for Vms_No_64bit_Getopt |
1e6cd7f6 | 9411 | */ |
d1ed71e5 | 9412 | static const char* apzVms_No_64bit_GetoptPatch[] = { |
9413 | "format", | |
9414 | "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\ | |
9415 | %0#endif\n", | |
1e6cd7f6 | 9416 | (char*)NULL }; |
9417 | ||
9418 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9419 | * | |
d1ed71e5 | 9420 | * Description of Vms_Use_Fast_Setjmp fix |
1e6cd7f6 | 9421 | */ |
d1ed71e5 | 9422 | tSCC zVms_Use_Fast_SetjmpName[] = |
9423 | "vms_use_fast_setjmp"; | |
1e6cd7f6 | 9424 | |
9425 | /* | |
9426 | * File name selection pattern | |
9427 | */ | |
d1ed71e5 | 9428 | tSCC zVms_Use_Fast_SetjmpList[] = |
9429 | "rtldef/setjmp.h\0"; | |
1e6cd7f6 | 9430 | /* |
9431 | * Machine/OS name selection pattern | |
9432 | */ | |
d1ed71e5 | 9433 | tSCC* apzVms_Use_Fast_SetjmpMachs[] = { |
1e6cd7f6 | 9434 | "*-*-*vms*", |
9435 | (const char*)NULL }; | |
9436 | ||
9437 | /* | |
9438 | * content selection pattern - do fix if pattern found | |
9439 | */ | |
d1ed71e5 | 9440 | tSCC zVms_Use_Fast_SetjmpSelect0[] = |
9441 | "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)"; | |
1e6cd7f6 | 9442 | |
d1ed71e5 | 9443 | #define VMS_USE_FAST_SETJMP_TEST_CT 1 |
9444 | static tTestDesc aVms_Use_Fast_SetjmpTests[] = { | |
9445 | { TT_EGREP, zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, }; | |
1e6cd7f6 | 9446 | |
9447 | /* | |
d1ed71e5 | 9448 | * Fix Command Arguments for Vms_Use_Fast_Setjmp |
1e6cd7f6 | 9449 | */ |
d1ed71e5 | 9450 | static const char* apzVms_Use_Fast_SetjmpPatch[] = { |
1e6cd7f6 | 9451 | "format", |
d1ed71e5 | 9452 | "%0 defined (__GNUC__) ||", |
1e6cd7f6 | 9453 | (char*)NULL }; |
9454 | ||
9455 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9456 | * | |
d1ed71e5 | 9457 | * Description of Vms_Use_Pragma_Extern_Model fix |
1e6cd7f6 | 9458 | */ |
d1ed71e5 | 9459 | tSCC zVms_Use_Pragma_Extern_ModelName[] = |
9460 | "vms_use_pragma_extern_model"; | |
1e6cd7f6 | 9461 | |
9462 | /* | |
9463 | * File name selection pattern | |
9464 | */ | |
d1ed71e5 | 9465 | #define zVms_Use_Pragma_Extern_ModelList (char*)NULL |
1e6cd7f6 | 9466 | /* |
9467 | * Machine/OS name selection pattern | |
9468 | */ | |
d1ed71e5 | 9469 | tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = { |
1e6cd7f6 | 9470 | "*-*-*vms*", |
9471 | (const char*)NULL }; | |
9472 | ||
9473 | /* | |
9474 | * content selection pattern - do fix if pattern found | |
9475 | */ | |
d1ed71e5 | 9476 | tSCC zVms_Use_Pragma_Extern_ModelSelect0[] = |
9477 | "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\ | |
9478 | # pragma extern_model __save\n"; | |
1e6cd7f6 | 9479 | |
d1ed71e5 | 9480 | #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1 |
9481 | static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = { | |
9482 | { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, }; | |
1e6cd7f6 | 9483 | |
9484 | /* | |
d1ed71e5 | 9485 | * Fix Command Arguments for Vms_Use_Pragma_Extern_Model |
1e6cd7f6 | 9486 | */ |
d1ed71e5 | 9487 | static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = { |
1e6cd7f6 | 9488 | "format", |
d1ed71e5 | 9489 | "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\ |
9490 | # pragma extern_model __save\n", | |
1e6cd7f6 | 9491 | (char*)NULL }; |
9492 | ||
9493 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9494 | * | |
d1ed71e5 | 9495 | * Description of Vms_Use_Quoted_Include fix |
1e6cd7f6 | 9496 | */ |
d1ed71e5 | 9497 | tSCC zVms_Use_Quoted_IncludeName[] = |
9498 | "vms_use_quoted_include"; | |
1e6cd7f6 | 9499 | |
9500 | /* | |
9501 | * File name selection pattern | |
9502 | */ | |
d1ed71e5 | 9503 | tSCC zVms_Use_Quoted_IncludeList[] = |
9504 | "rtldef/wait.h\0starlet_c/pthread.h\0"; | |
1e6cd7f6 | 9505 | /* |
9506 | * Machine/OS name selection pattern | |
9507 | */ | |
d1ed71e5 | 9508 | tSCC* apzVms_Use_Quoted_IncludeMachs[] = { |
1e6cd7f6 | 9509 | "*-*-*vms*", |
9510 | (const char*)NULL }; | |
9511 | ||
9512 | /* | |
9513 | * content selection pattern - do fix if pattern found | |
9514 | */ | |
d1ed71e5 | 9515 | tSCC zVms_Use_Quoted_IncludeSelect0[] = |
9516 | "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>"; | |
1e6cd7f6 | 9517 | |
d1ed71e5 | 9518 | #define VMS_USE_QUOTED_INCLUDE_TEST_CT 1 |
9519 | static tTestDesc aVms_Use_Quoted_IncludeTests[] = { | |
9520 | { TT_EGREP, zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, }; | |
1e6cd7f6 | 9521 | |
9522 | /* | |
d1ed71e5 | 9523 | * Fix Command Arguments for Vms_Use_Quoted_Include |
1e6cd7f6 | 9524 | */ |
d1ed71e5 | 9525 | static const char* apzVms_Use_Quoted_IncludePatch[] = { |
1e6cd7f6 | 9526 | "format", |
d1ed71e5 | 9527 | "%1<sys/%2.h>", |
1e6cd7f6 | 9528 | (char*)NULL }; |
9529 | ||
fdb8fb96 | 9530 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9531 | * | |
5daf7ede | 9532 | * Description of Void_Null fix |
fdb8fb96 | 9533 | */ |
9534 | tSCC zVoid_NullName[] = | |
d4c4b01d | 9535 | "void_null"; |
9536 | ||
fdb8fb96 | 9537 | /* |
9538 | * File name selection pattern | |
9539 | */ | |
9540 | tSCC zVoid_NullList[] = | |
e9afa104 | 9541 | "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0sys/dir.h\0sys/param.h\0sys/types.h\0"; |
fdb8fb96 | 9542 | /* |
9543 | * Machine/OS name selection pattern | |
9544 | */ | |
9545 | #define apzVoid_NullMachs (const char**)NULL | |
9546 | ||
9547 | /* | |
c1b28c63 | 9548 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 9549 | */ |
9550 | tSCC zVoid_NullSelect0[] = | |
f74d6549 | 9551 | "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)"; |
fdb8fb96 | 9552 | |
df2b0bc4 | 9553 | /* |
9554 | * content bypass pattern - skip fix if pattern found | |
9555 | */ | |
9556 | tSCC zVoid_NullBypass0[] = | |
9557 | "__cplusplus"; | |
f7ac4170 | 9558 | tSCC zVoid_NullBypass1[] = |
9559 | "__null"; | |
df2b0bc4 | 9560 | |
f7ac4170 | 9561 | #define VOID_NULL_TEST_CT 3 |
2548396b | 9562 | static tTestDesc aVoid_NullTests[] = { |
df2b0bc4 | 9563 | { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL }, |
f7ac4170 | 9564 | { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL }, |
5daf7ede | 9565 | { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 9566 | |
9567 | /* | |
9568 | * Fix Command Arguments for Void_Null | |
9569 | */ | |
2548396b | 9570 | static const char* apzVoid_NullPatch[] = { |
f74d6549 | 9571 | "format", |
3c47853b | 9572 | "#ifndef NULL\n\ |
9573 | #ifdef __cplusplus\n\ | |
9574 | #ifdef __GNUG__\n\ | |
9575 | #define NULL __null\n\ | |
9576 | #else /* ! __GNUG__ */\n\ | |
9577 | #define NULL 0L\n\ | |
9578 | #endif /* __GNUG__ */\n\ | |
9579 | #else /* ! __cplusplus */\n\ | |
9580 | #define NULL ((void *)0)\n\ | |
9581 | #endif /* __cplusplus */\n\ | |
9582 | #endif /* !NULL */", | |
fdb8fb96 | 9583 | (char*)NULL }; |
9584 | ||
9585 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9586 | * | |
5daf7ede | 9587 | * Description of Vxworks_Gcc_Problem fix |
fdb8fb96 | 9588 | */ |
9589 | tSCC zVxworks_Gcc_ProblemName[] = | |
d4c4b01d | 9590 | "vxworks_gcc_problem"; |
9591 | ||
fdb8fb96 | 9592 | /* |
9593 | * File name selection pattern | |
9594 | */ | |
9595 | tSCC zVxworks_Gcc_ProblemList[] = | |
e9afa104 | 9596 | "types/vxTypesBase.h\0"; |
fdb8fb96 | 9597 | /* |
9598 | * Machine/OS name selection pattern | |
9599 | */ | |
9600 | #define apzVxworks_Gcc_ProblemMachs (const char**)NULL | |
9601 | ||
9602 | /* | |
c1b28c63 | 9603 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 9604 | */ |
9605 | tSCC zVxworks_Gcc_ProblemSelect0[] = | |
9606 | "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__"; | |
9607 | ||
9608 | #define VXWORKS_GCC_PROBLEM_TEST_CT 1 | |
2548396b | 9609 | static tTestDesc aVxworks_Gcc_ProblemTests[] = { |
5daf7ede | 9610 | { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 9611 | |
9612 | /* | |
9613 | * Fix Command Arguments for Vxworks_Gcc_Problem | |
9614 | */ | |
b32d497c | 9615 | static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z, |
c1b28c63 | 9616 | "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", |
efb1b79b | 9617 | "-e", "/[ \t]size_t/i\\\n\ |
9618 | #ifndef _GCC_SIZE_T\\\n\ | |
9619 | #define _GCC_SIZE_T\n", | |
9620 | "-e", "/[ \t]size_t/a\\\n\ | |
9621 | #endif\n", | |
9622 | "-e", "/[ \t]ptrdiff_t/i\\\n\ | |
9623 | #ifndef _GCC_PTRDIFF_T\\\n\ | |
9624 | #define _GCC_PTRDIFF_T\n", | |
9625 | "-e", "/[ \t]ptrdiff_t/a\\\n\ | |
9626 | #endif\n", | |
9627 | "-e", "/[ \t]wchar_t/i\\\n\ | |
9628 | #ifndef _GCC_WCHAR_T\\\n\ | |
9629 | #define _GCC_WCHAR_T\n", | |
9630 | "-e", "/[ \t]wchar_t/a\\\n\ | |
9631 | #endif\n", | |
fdb8fb96 | 9632 | (char*)NULL }; |
9633 | ||
32f37500 | 9634 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9635 | * | |
9636 | * Description of Vxworks_Ioctl_Macro fix | |
9637 | */ | |
9638 | tSCC zVxworks_Ioctl_MacroName[] = | |
9639 | "vxworks_ioctl_macro"; | |
9640 | ||
9641 | /* | |
9642 | * File name selection pattern | |
9643 | */ | |
9644 | tSCC zVxworks_Ioctl_MacroList[] = | |
9645 | "ioLib.h\0"; | |
9646 | /* | |
9647 | * Machine/OS name selection pattern | |
9648 | */ | |
9649 | tSCC* apzVxworks_Ioctl_MacroMachs[] = { | |
9650 | "*-*-vxworks*", | |
9651 | (const char*)NULL }; | |
9652 | #define VXWORKS_IOCTL_MACRO_TEST_CT 0 | |
9653 | #define aVxworks_Ioctl_MacroTests (tTestDesc*)NULL | |
9654 | ||
9655 | /* | |
9656 | * Fix Command Arguments for Vxworks_Ioctl_Macro | |
9657 | */ | |
9658 | static const char* apzVxworks_Ioctl_MacroPatch[] = { | |
9659 | "format", | |
9660 | "%0\n\ | |
9661 | #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n", | |
9662 | "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);", | |
9663 | (char*)NULL }; | |
9664 | ||
9665 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9666 | * | |
9667 | * Description of Vxworks_Mkdir_Macro fix | |
9668 | */ | |
9669 | tSCC zVxworks_Mkdir_MacroName[] = | |
9670 | "vxworks_mkdir_macro"; | |
9671 | ||
9672 | /* | |
9673 | * File name selection pattern | |
9674 | */ | |
9675 | tSCC zVxworks_Mkdir_MacroList[] = | |
9676 | "sys/stat.h\0"; | |
9677 | /* | |
9678 | * Machine/OS name selection pattern | |
9679 | */ | |
9680 | tSCC* apzVxworks_Mkdir_MacroMachs[] = { | |
9681 | "*-*-vxworks*", | |
9682 | (const char*)NULL }; | |
9683 | #define VXWORKS_MKDIR_MACRO_TEST_CT 0 | |
9684 | #define aVxworks_Mkdir_MacroTests (tTestDesc*)NULL | |
9685 | ||
9686 | /* | |
9687 | * Fix Command Arguments for Vxworks_Mkdir_Macro | |
9688 | */ | |
9689 | static const char* apzVxworks_Mkdir_MacroPatch[] = { | |
9690 | "format", | |
9691 | "%0\n\ | |
9692 | #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n", | |
9693 | "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;", | |
9694 | (char*)NULL }; | |
9695 | ||
fdb8fb96 | 9696 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9697 | * | |
5daf7ede | 9698 | * Description of Vxworks_Needs_Vxtypes fix |
fdb8fb96 | 9699 | */ |
9700 | tSCC zVxworks_Needs_VxtypesName[] = | |
d4c4b01d | 9701 | "vxworks_needs_vxtypes"; |
9702 | ||
fdb8fb96 | 9703 | /* |
9704 | * File name selection pattern | |
9705 | */ | |
9706 | tSCC zVxworks_Needs_VxtypesList[] = | |
e9afa104 | 9707 | "time.h\0"; |
fdb8fb96 | 9708 | /* |
9709 | * Machine/OS name selection pattern | |
9710 | */ | |
9711 | #define apzVxworks_Needs_VxtypesMachs (const char**)NULL | |
9712 | ||
9713 | /* | |
c1b28c63 | 9714 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 9715 | */ |
9716 | tSCC zVxworks_Needs_VxtypesSelect0[] = | |
f74d6549 | 9717 | "uint_t([ \t]+_clocks_per_sec)"; |
fdb8fb96 | 9718 | |
9719 | #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 | |
2548396b | 9720 | static tTestDesc aVxworks_Needs_VxtypesTests[] = { |
5daf7ede | 9721 | { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 9722 | |
9723 | /* | |
9724 | * Fix Command Arguments for Vxworks_Needs_Vxtypes | |
9725 | */ | |
2548396b | 9726 | static const char* apzVxworks_Needs_VxtypesPatch[] = { |
f74d6549 | 9727 | "format", |
9728 | "unsigned int%1", | |
fdb8fb96 | 9729 | (char*)NULL }; |
9730 | ||
9731 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9732 | * | |
5daf7ede | 9733 | * Description of Vxworks_Needs_Vxworks fix |
fdb8fb96 | 9734 | */ |
9735 | tSCC zVxworks_Needs_VxworksName[] = | |
d4c4b01d | 9736 | "vxworks_needs_vxworks"; |
9737 | ||
fdb8fb96 | 9738 | /* |
9739 | * File name selection pattern | |
9740 | */ | |
9741 | tSCC zVxworks_Needs_VxworksList[] = | |
e9afa104 | 9742 | "sys/stat.h\0"; |
fdb8fb96 | 9743 | /* |
9744 | * Machine/OS name selection pattern | |
9745 | */ | |
9746 | #define apzVxworks_Needs_VxworksMachs (const char**)NULL | |
9747 | ||
9748 | /* | |
c1b28c63 | 9749 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 9750 | */ |
9751 | tSCC zVxworks_Needs_VxworksSelect0[] = | |
f74d6549 | 9752 | "#[ \t]define[ \t]+__INCstath"; |
fdb8fb96 | 9753 | |
9754 | /* | |
c1b28c63 | 9755 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 9756 | */ |
9757 | tSCC zVxworks_Needs_VxworksTest0[] = | |
38ebab8a | 9758 | " -r types/vxTypesOld.h"; |
fdb8fb96 | 9759 | tSCC zVxworks_Needs_VxworksTest1[] = |
38ebab8a | 9760 | " -n \"`egrep '#include' $file`\""; |
fdb8fb96 | 9761 | tSCC zVxworks_Needs_VxworksTest2[] = |
38ebab8a | 9762 | " -n \"`egrep ULONG $file`\""; |
fdb8fb96 | 9763 | |
9764 | #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 | |
2548396b | 9765 | static tTestDesc aVxworks_Needs_VxworksTests[] = { |
5daf7ede | 9766 | { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ }, |
9767 | { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ }, | |
9768 | { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ }, | |
9769 | { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 9770 | |
9771 | /* | |
9772 | * Fix Command Arguments for Vxworks_Needs_Vxworks | |
9773 | */ | |
b32d497c | 9774 | static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z, |
efb1b79b | 9775 | "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ |
9776 | #include <types/vxTypesOld.h>\n", | |
fdb8fb96 | 9777 | (char*)NULL }; |
9778 | ||
32f37500 | 9779 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9780 | * | |
9781 | * Description of Vxworks_Regs fix | |
9782 | */ | |
9783 | tSCC zVxworks_RegsName[] = | |
9784 | "vxworks_regs"; | |
9785 | ||
9786 | /* | |
9787 | * File name selection pattern | |
9788 | */ | |
9789 | #define zVxworks_RegsList (char*)NULL | |
9790 | /* | |
9791 | * Machine/OS name selection pattern | |
9792 | */ | |
9793 | tSCC* apzVxworks_RegsMachs[] = { | |
9794 | "*-*-vxworks*", | |
9795 | (const char*)NULL }; | |
9796 | ||
9797 | /* | |
9798 | * content selection pattern - do fix if pattern found | |
9799 | */ | |
9800 | tSCC zVxworks_RegsSelect0[] = | |
9801 | "#[\t ]*include[\t ]+[<\"]regs.h[>\"]"; | |
9802 | ||
9803 | #define VXWORKS_REGS_TEST_CT 1 | |
9804 | static tTestDesc aVxworks_RegsTests[] = { | |
9805 | { TT_EGREP, zVxworks_RegsSelect0, (regex_t*)NULL }, }; | |
9806 | ||
9807 | /* | |
9808 | * Fix Command Arguments for Vxworks_Regs | |
9809 | */ | |
9810 | static const char* apzVxworks_RegsPatch[] = { | |
9811 | "format", | |
9812 | "#include <arch/../regs.h>", | |
9813 | (char*)NULL }; | |
9814 | ||
fdb8fb96 | 9815 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9816 | * | |
5daf7ede | 9817 | * Description of Vxworks_Time fix |
fdb8fb96 | 9818 | */ |
9819 | tSCC zVxworks_TimeName[] = | |
d4c4b01d | 9820 | "vxworks_time"; |
9821 | ||
fdb8fb96 | 9822 | /* |
9823 | * File name selection pattern | |
9824 | */ | |
9825 | tSCC zVxworks_TimeList[] = | |
e9afa104 | 9826 | "time.h\0"; |
fdb8fb96 | 9827 | /* |
9828 | * Machine/OS name selection pattern | |
9829 | */ | |
9830 | #define apzVxworks_TimeMachs (const char**)NULL | |
9831 | ||
9832 | /* | |
c1b28c63 | 9833 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 9834 | */ |
9835 | tSCC zVxworks_TimeSelect0[] = | |
f74d6549 | 9836 | "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*"; |
fdb8fb96 | 9837 | |
9838 | /* | |
c1b28c63 | 9839 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 9840 | */ |
9841 | tSCC zVxworks_TimeTest0[] = | |
38ebab8a | 9842 | " -r vxWorks.h"; |
fdb8fb96 | 9843 | |
9844 | #define VXWORKS_TIME_TEST_CT 2 | |
2548396b | 9845 | static tTestDesc aVxworks_TimeTests[] = { |
5daf7ede | 9846 | { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ }, |
9847 | { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 9848 | |
9849 | /* | |
9850 | * Fix Command Arguments for Vxworks_Time | |
9851 | */ | |
2548396b | 9852 | static const char* apzVxworks_TimePatch[] = { |
f74d6549 | 9853 | "format", |
9854 | "#ifndef __gcc_VOIDFUNCPTR_defined\n\ | |
9855 | #ifdef __cplusplus\n\ | |
9856 | typedef void (*__gcc_VOIDFUNCPTR) (...);\n\ | |
9857 | #else\n\ | |
9858 | typedef void (*__gcc_VOIDFUNCPTR) ();\n\ | |
9859 | #endif\n\ | |
9860 | #define __gcc_VOIDFUNCPTR_defined\n\ | |
9861 | #endif\n\ | |
9862 | #define VOIDFUNCPTR __gcc_VOIDFUNCPTR", | |
fdb8fb96 | 9863 | (char*)NULL }; |
9864 | ||
32f37500 | 9865 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9866 | * | |
9867 | * Description of Vxworks_Write_Const fix | |
9868 | */ | |
9869 | tSCC zVxworks_Write_ConstName[] = | |
9870 | "vxworks_write_const"; | |
9871 | ||
9872 | /* | |
9873 | * File name selection pattern | |
9874 | */ | |
9875 | tSCC zVxworks_Write_ConstList[] = | |
9876 | "ioLib.h\0"; | |
9877 | /* | |
9878 | * Machine/OS name selection pattern | |
9879 | */ | |
9880 | tSCC* apzVxworks_Write_ConstMachs[] = { | |
9881 | "*-*-vxworks*", | |
9882 | (const char*)NULL }; | |
9883 | #define VXWORKS_WRITE_CONST_TEST_CT 0 | |
9884 | #define aVxworks_Write_ConstTests (tTestDesc*)NULL | |
9885 | ||
9886 | /* | |
9887 | * Fix Command Arguments for Vxworks_Write_Const | |
9888 | */ | |
9889 | static const char* apzVxworks_Write_ConstPatch[] = { | |
9890 | "format", | |
9891 | "extern int write (int, const char*, size_t);", | |
9892 | "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;", | |
9893 | (char*)NULL }; | |
9894 | ||
fdb8fb96 | 9895 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
9896 | * | |
5daf7ede | 9897 | * Description of X11_Class fix |
fdb8fb96 | 9898 | */ |
9899 | tSCC zX11_ClassName[] = | |
d4c4b01d | 9900 | "x11_class"; |
9901 | ||
fdb8fb96 | 9902 | /* |
9903 | * File name selection pattern | |
9904 | */ | |
9905 | tSCC zX11_ClassList[] = | |
e9afa104 | 9906 | "X11/ShellP.h\0"; |
fdb8fb96 | 9907 | /* |
9908 | * Machine/OS name selection pattern | |
9909 | */ | |
9910 | #define apzX11_ClassMachs (const char**)NULL | |
9911 | ||
e7ae4397 | 9912 | /* |
9913 | * content selection pattern - do fix if pattern found | |
9914 | */ | |
9915 | tSCC zX11_ClassSelect0[] = | |
9916 | "^([ \t]*char \\*)class;(.*)"; | |
9917 | ||
fdb8fb96 | 9918 | /* |
c1b28c63 | 9919 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 9920 | */ |
9921 | tSCC zX11_ClassBypass0[] = | |
9922 | "__cplusplus"; | |
9923 | ||
e7ae4397 | 9924 | #define X11_CLASS_TEST_CT 2 |
2548396b | 9925 | static tTestDesc aX11_ClassTests[] = { |
e7ae4397 | 9926 | { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, |
9927 | { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 9928 | |
9929 | /* | |
9930 | * Fix Command Arguments for X11_Class | |
9931 | */ | |
2548396b | 9932 | static const char* apzX11_ClassPatch[] = { |
e7ae4397 | 9933 | "format", |
9934 | "#ifdef __cplusplus\n\ | |
9935 | %1c_class;%2\n\ | |
9936 | #else\n\ | |
9937 | %1class;%2\n\ | |
9938 | #endif", | |
fdb8fb96 | 9939 | (char*)NULL }; |
9940 | ||
9941 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9942 | * | |
5daf7ede | 9943 | * Description of X11_Class_Usage fix |
fdb8fb96 | 9944 | */ |
9945 | tSCC zX11_Class_UsageName[] = | |
d4c4b01d | 9946 | "x11_class_usage"; |
9947 | ||
fdb8fb96 | 9948 | /* |
9949 | * File name selection pattern | |
9950 | */ | |
9951 | tSCC zX11_Class_UsageList[] = | |
e9afa104 | 9952 | "Xm/BaseClassI.h\0"; |
fdb8fb96 | 9953 | /* |
9954 | * Machine/OS name selection pattern | |
9955 | */ | |
9956 | #define apzX11_Class_UsageMachs (const char**)NULL | |
9957 | ||
f74d6549 | 9958 | /* |
9959 | * content selection pattern - do fix if pattern found | |
9960 | */ | |
9961 | tSCC zX11_Class_UsageSelect0[] = | |
9962 | " class\\)"; | |
9963 | ||
fdb8fb96 | 9964 | /* |
c1b28c63 | 9965 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 9966 | */ |
9967 | tSCC zX11_Class_UsageBypass0[] = | |
9968 | "__cplusplus"; | |
9969 | ||
f74d6549 | 9970 | #define X11_CLASS_USAGE_TEST_CT 2 |
2548396b | 9971 | static tTestDesc aX11_Class_UsageTests[] = { |
f74d6549 | 9972 | { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, |
9973 | { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 9974 | |
9975 | /* | |
9976 | * Fix Command Arguments for X11_Class_Usage | |
9977 | */ | |
2548396b | 9978 | static const char* apzX11_Class_UsagePatch[] = { |
f74d6549 | 9979 | "format", |
9980 | " c_class)", | |
fdb8fb96 | 9981 | (char*)NULL }; |
9982 | ||
9983 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
9984 | * | |
5daf7ede | 9985 | * Description of X11_New fix |
fdb8fb96 | 9986 | */ |
9987 | tSCC zX11_NewName[] = | |
d4c4b01d | 9988 | "x11_new"; |
9989 | ||
fdb8fb96 | 9990 | /* |
9991 | * File name selection pattern | |
9992 | */ | |
9993 | tSCC zX11_NewList[] = | |
e9afa104 | 9994 | "Xm/Traversal.h\0"; |
fdb8fb96 | 9995 | /* |
9996 | * Machine/OS name selection pattern | |
9997 | */ | |
9998 | #define apzX11_NewMachs (const char**)NULL | |
9999 | ||
10000 | /* | |
c1b28c63 | 10001 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 10002 | */ |
10003 | tSCC zX11_NewBypass0[] = | |
10004 | "__cplusplus"; | |
10005 | ||
10006 | #define X11_NEW_TEST_CT 1 | |
2548396b | 10007 | static tTestDesc aX11_NewTests[] = { |
5daf7ede | 10008 | { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, }; |
fdb8fb96 | 10009 | |
10010 | /* | |
10011 | * Fix Command Arguments for X11_New | |
10012 | */ | |
b32d497c | 10013 | static const char* apzX11_NewPatch[] = { sed_cmd_z, |
efb1b79b | 10014 | "-e", "/Widget\told, new;/i\\\n\ |
10015 | #ifdef __cplusplus\\\n\ | |
b795c8d1 | 10016 | \\\tWidget\told, c_new;\\\n\ |
efb1b79b | 10017 | #else\n", |
10018 | "-e", "/Widget\told, new;/a\\\n\ | |
10019 | #endif\n", | |
c1b28c63 | 10020 | "-e", "s/Widget new,/Widget c_new,/g", |
fdb8fb96 | 10021 | (char*)NULL }; |
10022 | ||
10023 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
10024 | * | |
5daf7ede | 10025 | * Description of X11_Sprintf fix |
fdb8fb96 | 10026 | */ |
10027 | tSCC zX11_SprintfName[] = | |
d4c4b01d | 10028 | "x11_sprintf"; |
10029 | ||
fdb8fb96 | 10030 | /* |
10031 | * File name selection pattern | |
10032 | */ | |
10033 | tSCC zX11_SprintfList[] = | |
e9afa104 | 10034 | "X11/Xmu.h\0X11/Xmu/Xmu.h\0"; |
fdb8fb96 | 10035 | /* |
10036 | * Machine/OS name selection pattern | |
10037 | */ | |
10038 | #define apzX11_SprintfMachs (const char**)NULL | |
d6d7d999 | 10039 | |
10040 | /* | |
10041 | * content selection pattern - do fix if pattern found | |
10042 | */ | |
10043 | tSCC zX11_SprintfSelect0[] = | |
f74d6549 | 10044 | "^extern char \\*\tsprintf\\(\\);$"; |
d6d7d999 | 10045 | |
10046 | #define X11_SPRINTF_TEST_CT 1 | |
2548396b | 10047 | static tTestDesc aX11_SprintfTests[] = { |
d6d7d999 | 10048 | { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 10049 | |
10050 | /* | |
10051 | * Fix Command Arguments for X11_Sprintf | |
10052 | */ | |
2548396b | 10053 | static const char* apzX11_SprintfPatch[] = { |
f74d6549 | 10054 | "format", |
10055 | "#ifndef __STDC__\n\ | |
10056 | %0\n\ | |
10057 | #endif /* !defined __STDC__ */", | |
fdb8fb96 | 10058 | (char*)NULL }; |
10059 | ||
d4c4b01d | 10060 | |
fdb8fb96 | 10061 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
10062 | * | |
10063 | * List of all fixes | |
10064 | */ | |
3c017b47 | 10065 | #define REGEX_COUNT 283 |
c65a66ea | 10066 | #define MACH_LIST_SIZE_LIMIT 187 |
3c017b47 | 10067 | #define FIX_COUNT 246 |
5daf7ede | 10068 | |
3072d11f | 10069 | /* |
10070 | * Enumerate the fixes | |
10071 | */ | |
10072 | typedef enum { | |
3d906fac | 10073 | AAB_AIX_STDIO_FIXIDX, |
81911845 | 10074 | AAB_AIX_FCNTL_FIXIDX, |
f2563b02 | 10075 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX, |
3072d11f | 10076 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX, |
10077 | AAB_FD_ZERO_GNU_TYPES_H_FIXIDX, | |
10078 | AAB_FD_ZERO_SELECTBITS_H_FIXIDX, | |
bffe0cfe | 10079 | AAB_SOLARIS_SYS_VARARGS_H_FIXIDX, |
b93c3ed1 | 10080 | AAB_SUN_MEMCPY_FIXIDX, |
32f37500 | 10081 | AAB_VXWORKS_ASSERT_FIXIDX, |
10082 | AAB_VXWORKS_REGS_VXTYPES_FIXIDX, | |
10083 | AAB_VXWORKS_STDINT_FIXIDX, | |
10084 | AAB_VXWORKS_UNISTD_FIXIDX, | |
8f1baf26 | 10085 | AIX_ASSERT_FIXIDX, |
253f9954 | 10086 | AIX_COMPLEX_FIXIDX, |
c82f076e | 10087 | AIX_EXTERNC_FIXIDX, |
10088 | AIX_EXTERNCPP1_FIXIDX, | |
10089 | AIX_EXTERNCPP2_FIXIDX, | |
0560f6fc | 10090 | AIX_MALLOC_FIXIDX, |
eafa229b | 10091 | AIX_NET_IF_ARP_FIXIDX, |
3c47853b | 10092 | AIX_NULL_FIXIDX, |
4cad3a31 | 10093 | AIX_ONCE_INIT_1_FIXIDX, |
10094 | AIX_ONCE_INIT_2_FIXIDX, | |
3adcc56f | 10095 | AIX_MUTEX_INITIALIZER_1_FIXIDX, |
10096 | AIX_COND_INITIALIZER_1_FIXIDX, | |
10097 | AIX_RWLOCK_INITIALIZER_1_FIXIDX, | |
3072d11f | 10098 | AIX_PTHREAD_FIXIDX, |
82c99fed | 10099 | AIX_STDINT_1_FIXIDX, |
10100 | AIX_STDINT_2_FIXIDX, | |
10101 | AIX_STDINT_3_FIXIDX, | |
10102 | AIX_STDINT_4_FIXIDX, | |
10103 | AIX_STDINT_5_FIXIDX, | |
11e92429 | 10104 | AIX_STDIO_INLINE_FIXIDX, |
b73b1330 | 10105 | AIX_STDLIB_MALLOC_FIXIDX, |
10106 | AIX_STDLIB_REALLOC_FIXIDX, | |
10107 | AIX_STDLIB_CALLOC_FIXIDX, | |
10108 | AIX_STDLIB_VALLOC_FIXIDX, | |
7a26bedc | 10109 | AIX_STRTOF_CONST_FIXIDX, |
3072d11f | 10110 | AIX_SYSMACHINE_FIXIDX, |
85df6fdf | 10111 | AIX_SYSWAIT_2_FIXIDX, |
3072d11f | 10112 | AIX_VOLATILE_FIXIDX, |
10113 | ALPHA___ASSERT_FIXIDX, | |
03112946 | 10114 | ALPHA_ASSERT_FIXIDX, |
3072d11f | 10115 | ALPHA_GETOPT_FIXIDX, |
2013a847 | 10116 | ALPHA_IF_SEMICOLON_FIXIDX, |
3072d11f | 10117 | ALPHA_PARENS_FIXIDX, |
10118 | ALPHA_SBRK_FIXIDX, | |
3072d11f | 10119 | AVOID_BOOL_DEFINE_FIXIDX, |
10120 | AVOID_BOOL_TYPE_FIXIDX, | |
10121 | AVOID_WCHAR_T_TYPE_FIXIDX, | |
3072d11f | 10122 | BAD_STRUCT_TERM_FIXIDX, |
10123 | BADQUOTE_FIXIDX, | |
10124 | BROKEN_ASSERT_STDIO_FIXIDX, | |
10125 | BROKEN_ASSERT_STDLIB_FIXIDX, | |
10126 | BROKEN_CABS_FIXIDX, | |
baee91be | 10127 | BROKEN_NAN_FIXIDX, |
d45e22c2 | 10128 | BSD_STDIO_ATTRS_CONFLICT_FIXIDX, |
3072d11f | 10129 | CTRL_QUOTES_DEF_FIXIDX, |
10130 | CTRL_QUOTES_USE_FIXIDX, | |
10131 | CXX_UNREADY_FIXIDX, | |
a11195e1 | 10132 | DARWIN_AVAILABILITYINTERNAL_FIXIDX, |
32f37500 | 10133 | DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX, |
1908d6ac | 10134 | DARWIN_EXTERNC_FIXIDX, |
975d636c | 10135 | DARWIN_GCC4_BREAKAGE_FIXIDX, |
d6856a0e | 10136 | DARWIN_LONGJMP_NORETURN_FIXIDX, |
a11195e1 | 10137 | DARWIN_OS_TRACE_1_FIXIDX, |
10138 | DARWIN_OS_TRACE_2_FIXIDX, | |
10139 | DARWIN_OS_TRACE_3_FIXIDX, | |
3067e435 | 10140 | DARWIN_PRIVATE_EXTERN_FIXIDX, |
0e1f6b4f | 10141 | DARWIN_STDINT_1_FIXIDX, |
10142 | DARWIN_STDINT_2_FIXIDX, | |
10143 | DARWIN_STDINT_3_FIXIDX, | |
10144 | DARWIN_STDINT_4_FIXIDX, | |
c73f01c5 | 10145 | DARWIN_STDINT_5_FIXIDX, |
10146 | DARWIN_STDINT_6_FIXIDX, | |
10147 | DARWIN_STDINT_7_FIXIDX, | |
3072d11f | 10148 | DEC_INTERN_ASM_FIXIDX, |
10149 | DJGPP_WCHAR_H_FIXIDX, | |
10150 | ECD_CURSOR_FIXIDX, | |
d1ed71e5 | 10151 | FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX, |
10152 | FERAISEEXCEPT_NOSSE_INVALID_FIXIDX, | |
3072d11f | 10153 | FREEBSD_GCC3_BREAKAGE_FIXIDX, |
f9ac0b87 | 10154 | FREEBSD_GCC4_BREAKAGE_FIXIDX, |
efb8e7bf | 10155 | GLIBC_C99_INLINE_1_FIXIDX, |
661832db | 10156 | GLIBC_C99_INLINE_1A_FIXIDX, |
efb8e7bf | 10157 | GLIBC_C99_INLINE_2_FIXIDX, |
10158 | GLIBC_C99_INLINE_3_FIXIDX, | |
10159 | GLIBC_C99_INLINE_4_FIXIDX, | |
a1b11617 | 10160 | GLIBC_MUTEX_INIT_FIXIDX, |
57a812b7 | 10161 | GLIBC_STDINT_FIXIDX, |
5aee6890 | 10162 | GLIBC_STRNCPY_FIXIDX, |
a75b1c71 | 10163 | GLIBC_TGMATH_FIXIDX, |
3072d11f | 10164 | GNU_TYPES_FIXIDX, |
10165 | HP_INLINE_FIXIDX, | |
10166 | HP_SYSFILE_FIXIDX, | |
b32d497c | 10167 | HPPA_HPUX_FP_MACROS_FIXIDX, |
7b900f1a | 10168 | HPUX10_CPP_POW_INLINE_FIXIDX, |
c6738ff5 | 10169 | HPUX11_CPP_POW_INLINE_FIXIDX, |
ebf664b2 | 10170 | HPUX10_CTYPE_DECLARATIONS1_FIXIDX, |
10171 | HPUX10_CTYPE_DECLARATIONS2_FIXIDX, | |
37935110 | 10172 | HPUX10_STDIO_DECLARATIONS_FIXIDX, |
b93c3ed1 | 10173 | HPUX11_ABS_FIXIDX, |
dcc83eef | 10174 | HPUX11_LWP_RWLOCK_VALID_FIXIDX, |
d1ed71e5 | 10175 | HPUX11_EXTERN_SENDFILE_FIXIDX, |
10176 | HPUX11_EXTERN_SENDPATH_FIXIDX, | |
ca58af19 | 10177 | HPUX11_FABSF_FIXIDX, |
b32d497c | 10178 | HPUX11_PTHREAD_CONST_FIXIDX, |
c0854bd5 | 10179 | HPUX11_SIZE_T_FIXIDX, |
75dc2242 | 10180 | HPUX11_SNPRINTF_FIXIDX, |
a0d38f0b | 10181 | HPUX11_VSNPRINTF_FIXIDX, |
122d538c | 10182 | HPUX_VSSCANF_FIXIDX, |
3072d11f | 10183 | HPUX8_BOGUS_INLINES_FIXIDX, |
d1ed71e5 | 10184 | HPUX_C99_INTPTR_FIXIDX, |
10185 | HPUX_C99_INTTYPES_FIXIDX, | |
10186 | HPUX_C99_INTTYPES2_FIXIDX, | |
ebf664b2 | 10187 | HPUX_CTYPE_MACROS_FIXIDX, |
d1ed71e5 | 10188 | HPUX_EXTERN_ERRNO_FIXIDX, |
1589683c | 10189 | HPUX_HTONL_FIXIDX, |
d1ed71e5 | 10190 | HPUX_IMAGINARY_I_FIXIDX, |
10191 | HPUX_INTTYPE_INT8_T_FIXIDX, | |
ebf664b2 | 10192 | HPUX_LONG_DOUBLE_FIXIDX, |
42fd8f40 | 10193 | HPUX_LONG_DOUBLE_2_FIXIDX, |
3dd59d44 | 10194 | HPUX_PTHREAD_INITIALIZERS_FIXIDX, |
d1ed71e5 | 10195 | HPUX_SPU_INFO_FIXIDX, |
3c36388d | 10196 | HPUX_STDINT_LEAST_FAST_FIXIDX, |
0249b7a3 | 10197 | HPUX_LONGJMP_FIXIDX, |
d1ed71e5 | 10198 | HPUX_SYSTIME_FIXIDX, |
96eced21 | 10199 | HUGE_VAL_HEX_FIXIDX, |
10200 | HUGE_VALF_HEX_FIXIDX, | |
10201 | HUGE_VALL_HEX_FIXIDX, | |
3072d11f | 10202 | INT_ABORT_FREE_AND_EXIT_FIXIDX, |
10203 | IO_QUOTES_DEF_FIXIDX, | |
10204 | IO_QUOTES_USE_FIXIDX, | |
10205 | IP_MISSING_SEMI_FIXIDX, | |
3072d11f | 10206 | IRIX_LIMITS_CONST_FIXIDX, |
10207 | IRIX_STDIO_VA_LIST_FIXIDX, | |
3072d11f | 10208 | KANDR_CONCAT_FIXIDX, |
d92db5b6 | 10209 | LINUX_IA64_UCONTEXT_FIXIDX, |
435ea059 | 10210 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX, |
10211 | LYNXOS_MISSING_PUTENV_FIXIDX, | |
3072d11f | 10212 | MACHINE_ANSI_H_VA_LIST_FIXIDX, |
10213 | MACHINE_NAME_FIXIDX, | |
10214 | MATH_EXCEPTION_FIXIDX, | |
10215 | MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX, | |
3072d11f | 10216 | NESTED_AUTH_DES_FIXIDX, |
4cbf73b4 | 10217 | NETBSD_C99_INLINE_1_FIXIDX, |
759bfb14 | 10218 | NETBSD_C99_INLINE_2_FIXIDX, |
81a897fb | 10219 | NETBSD_EXTRA_SEMICOLON_FIXIDX, |
f3449a3c | 10220 | NEWLIB_STDINT_1_FIXIDX, |
10221 | NEWLIB_STDINT_2_FIXIDX, | |
3072d11f | 10222 | NEXT_MATH_PREFIX_FIXIDX, |
10223 | NEXT_TEMPLATE_FIXIDX, | |
10224 | NEXT_VOLITILE_FIXIDX, | |
10225 | NEXT_WAIT_UNION_FIXIDX, | |
10226 | NODEENT_SYNTAX_FIXIDX, | |
6dcfb197 | 10227 | OPENBSD_NULL_DEFINITION_FIXIDX, |
129b92e3 | 10228 | OBSTACK_LVALUE_CAST_FIXIDX, |
2b0752cc | 10229 | OPENBSD_VA_START_FIXIDX, |
3072d11f | 10230 | OSF_NAMESPACE_A_FIXIDX, |
10231 | OSF_NAMESPACE_C_FIXIDX, | |
a11c2c4d | 10232 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX, |
3072d11f | 10233 | READ_RET_TYPE_FIXIDX, |
e68aa18b | 10234 | RPC_XDR_LVALUE_CAST_A_FIXIDX, |
10235 | RPC_XDR_LVALUE_CAST_B_FIXIDX, | |
3072d11f | 10236 | RS6000_DOUBLE_FIXIDX, |
10237 | RS6000_FCHMOD_FIXIDX, | |
10238 | RS6000_PARAM_FIXIDX, | |
a6905708 | 10239 | SOLARIS___RESTRICT_FIXIDX, |
aee500d5 | 10240 | SOLARIS_COMPLEX_FIXIDX, |
a6905708 | 10241 | SOLARIS_COMPLEX_CXX_FIXIDX, |
5f7d4d97 | 10242 | SOLARIS_CXX_LINKAGE_FIXIDX, |
10243 | SOLARIS_GETC_STRICT_STDC_FIXIDX, | |
3c017b47 | 10244 | SOLARIS_GETS_C11_FIXIDX, |
10245 | SOLARIS_GETS_CXX14_FIXIDX, | |
d1ed71e5 | 10246 | SOLARIS_INT_CONST_FIXIDX, |
10247 | SOLARIS_INT_LIMITS_1_FIXIDX, | |
10248 | SOLARIS_INT_LIMITS_2_FIXIDX, | |
10249 | SOLARIS_INT_LIMITS_3_FIXIDX, | |
e849ea70 | 10250 | SOLARIS_MATH_1_FIXIDX, |
d1ed71e5 | 10251 | SOLARIS_MATH_10_FIXIDX, |
e849ea70 | 10252 | SOLARIS_MATH_2_FIXIDX, |
10253 | SOLARIS_MATH_3_FIXIDX, | |
10254 | SOLARIS_MATH_4_FIXIDX, | |
e849ea70 | 10255 | SOLARIS_MATH_8_FIXIDX, |
10256 | SOLARIS_MATH_9_FIXIDX, | |
59600e4c | 10257 | SOLARIS_MATH_11_FIXIDX, |
13d9a983 | 10258 | SOLARIS_MATH_12_FIXIDX, |
458caa24 | 10259 | SOLARIS_ONCE_INIT_1_FIXIDX, |
69c86aa4 | 10260 | SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX, |
d1ed71e5 | 10261 | SOLARIS_POW_INT_OVERLOAD_FIXIDX, |
10262 | SOLARIS_RWLOCK_INIT_1_FIXIDX, | |
5f7d4d97 | 10263 | SOLARIS_STD___FILBUF_FIXIDX, |
3c017b47 | 10264 | SOLARIS_STD_GETS_CXX14_FIXIDX, |
91eb7bbc | 10265 | SOLARIS_STDIO_TAG_FIXIDX, |
3c017b47 | 10266 | SOLARIS_STDLIB_NORETURN_FIXIDX, |
3072d11f | 10267 | STATSSWTCH_FIXIDX, |
10268 | STDIO_STDARG_H_FIXIDX, | |
10269 | STDIO_VA_LIST_FIXIDX, | |
925b9291 | 10270 | STDIO_VA_LIST_CLIENTS_FIXIDX, |
3072d11f | 10271 | STRICT_ANSI_NOT_FIXIDX, |
10272 | STRICT_ANSI_NOT_CTD_FIXIDX, | |
10273 | STRICT_ANSI_ONLY_FIXIDX, | |
10274 | STRUCT_FILE_FIXIDX, | |
10275 | STRUCT_SOCKADDR_FIXIDX, | |
10276 | SUN_AUTH_PROTO_FIXIDX, | |
10277 | SUN_BOGUS_IFDEF_FIXIDX, | |
10278 | SUN_CATMACRO_FIXIDX, | |
10279 | SUN_MALLOC_FIXIDX, | |
10280 | SUN_RUSERS_SEMI_FIXIDX, | |
10281 | SUN_SIGNAL_FIXIDX, | |
3072d11f | 10282 | SUNOS_STRLEN_FIXIDX, |
d4a8ec92 | 10283 | SUSE_LINUX_VT_CXX_FIXIDX, |
3c04ceca | 10284 | SVR4_DISABLE_OPT_FIXIDX, |
3072d11f | 10285 | SVR4_GETCWD_FIXIDX, |
10286 | SVR4_PROFIL_FIXIDX, | |
d23689b2 | 10287 | SVR4_SIGHANDLER_TYPE_FIXIDX, |
630af039 | 10288 | SVR4_UNDECLARED_GETRNGE_FIXIDX, |
3072d11f | 10289 | SYSV68_STRING_FIXIDX, |
10290 | SYSZ_STDLIB_FOR_SUN_FIXIDX, | |
2a6f0f81 | 10291 | THREAD_KEYWORD_FIXIDX, |
3072d11f | 10292 | TINFO_CPLUSPLUS_FIXIDX, |
3072d11f | 10293 | ULTRIX_CONST_FIXIDX, |
10294 | ULTRIX_CONST2_FIXIDX, | |
3072d11f | 10295 | VA_I960_MACRO_FIXIDX, |
d1ed71e5 | 10296 | VMS_ADD_MISSING_BRACES_FIXIDX, |
10297 | VMS_DECC_BUILTIN_FIXIDX, | |
f13b86b8 | 10298 | VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX, |
f13b86b8 | 10299 | VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX, |
1e6cd7f6 | 10300 | VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX, |
1e6cd7f6 | 10301 | VMS_FORWARD_DECLARE_STRUCT_FIXIDX, |
d1ed71e5 | 10302 | VMS_NO_64BIT_GETOPT_FIXIDX, |
1e6cd7f6 | 10303 | VMS_USE_FAST_SETJMP_FIXIDX, |
d1ed71e5 | 10304 | VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX, |
10305 | VMS_USE_QUOTED_INCLUDE_FIXIDX, | |
3072d11f | 10306 | VOID_NULL_FIXIDX, |
10307 | VXWORKS_GCC_PROBLEM_FIXIDX, | |
32f37500 | 10308 | VXWORKS_IOCTL_MACRO_FIXIDX, |
10309 | VXWORKS_MKDIR_MACRO_FIXIDX, | |
3072d11f | 10310 | VXWORKS_NEEDS_VXTYPES_FIXIDX, |
10311 | VXWORKS_NEEDS_VXWORKS_FIXIDX, | |
32f37500 | 10312 | VXWORKS_REGS_FIXIDX, |
3072d11f | 10313 | VXWORKS_TIME_FIXIDX, |
32f37500 | 10314 | VXWORKS_WRITE_CONST_FIXIDX, |
3072d11f | 10315 | X11_CLASS_FIXIDX, |
10316 | X11_CLASS_USAGE_FIXIDX, | |
10317 | X11_NEW_FIXIDX, | |
d1ed71e5 | 10318 | X11_SPRINTF_FIXIDX |
3072d11f | 10319 | } t_fixinc_idx; |
10320 | ||
c1b28c63 | 10321 | tFixDesc fixDescList[ FIX_COUNT ] = { |
3d906fac | 10322 | { zAab_Aix_StdioName, zAab_Aix_StdioList, |
10323 | apzAab_Aix_StdioMachs, | |
10324 | AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10325 | aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 }, | |
10326 | ||
81911845 | 10327 | { zAab_Aix_FcntlName, zAab_Aix_FcntlList, |
10328 | apzAab_Aix_FcntlMachs, | |
10329 | AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10330 | aAab_Aix_FcntlTests, apzAab_Aix_FcntlPatch, 0 }, | |
10331 | ||
f2563b02 | 10332 | { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList, |
10333 | apzAab_Darwin7_9_Long_Double_FuncsMachs, | |
10334 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
10335 | aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 }, | |
10336 | ||
bb304030 | 10337 | { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList, |
6e791f25 | 10338 | apzAab_Fd_Zero_Asm_Posix_Types_HMachs, |
bb304030 | 10339 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 10340 | aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 }, |
e26c299a | 10341 | |
bb304030 | 10342 | { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList, |
6e791f25 | 10343 | apzAab_Fd_Zero_Gnu_Types_HMachs, |
bb304030 | 10344 | AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 10345 | aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 }, |
e26c299a | 10346 | |
bb304030 | 10347 | { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList, |
6e791f25 | 10348 | apzAab_Fd_Zero_Selectbits_HMachs, |
bb304030 | 10349 | AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 10350 | aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 }, |
e26c299a | 10351 | |
bffe0cfe | 10352 | { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList, |
10353 | apzAab_Solaris_Sys_Varargs_HMachs, | |
10354 | AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
10355 | aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 }, | |
10356 | ||
b93c3ed1 | 10357 | { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList, |
10358 | apzAab_Sun_MemcpyMachs, | |
10359 | AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
10360 | aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 }, | |
10361 | ||
32f37500 | 10362 | { zAab_Vxworks_AssertName, zAab_Vxworks_AssertList, |
10363 | apzAab_Vxworks_AssertMachs, | |
10364 | AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
10365 | aAab_Vxworks_AssertTests, apzAab_Vxworks_AssertPatch, 0 }, | |
10366 | ||
10367 | { zAab_Vxworks_Regs_VxtypesName, zAab_Vxworks_Regs_VxtypesList, | |
10368 | apzAab_Vxworks_Regs_VxtypesMachs, | |
10369 | AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
10370 | aAab_Vxworks_Regs_VxtypesTests, apzAab_Vxworks_Regs_VxtypesPatch, 0 }, | |
10371 | ||
10372 | { zAab_Vxworks_StdintName, zAab_Vxworks_StdintList, | |
10373 | apzAab_Vxworks_StdintMachs, | |
10374 | AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
10375 | aAab_Vxworks_StdintTests, apzAab_Vxworks_StdintPatch, 0 }, | |
10376 | ||
10377 | { zAab_Vxworks_UnistdName, zAab_Vxworks_UnistdList, | |
10378 | apzAab_Vxworks_UnistdMachs, | |
10379 | AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
10380 | aAab_Vxworks_UnistdTests, apzAab_Vxworks_UnistdPatch, 0 }, | |
10381 | ||
8f1baf26 | 10382 | { zAix_AssertName, zAix_AssertList, |
10383 | apzAix_AssertMachs, | |
10384 | AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10385 | aAix_AssertTests, apzAix_AssertPatch, 0 }, | |
10386 | ||
253f9954 | 10387 | { zAix_ComplexName, zAix_ComplexList, |
10388 | apzAix_ComplexMachs, | |
82c99fed | 10389 | AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
253f9954 | 10390 | aAix_ComplexTests, apzAix_ComplexPatch, 0 }, |
10391 | ||
c82f076e | 10392 | { zAix_ExterncName, zAix_ExterncList, |
10393 | apzAix_ExterncMachs, | |
10394 | AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10395 | aAix_ExterncTests, apzAix_ExterncPatch, 0 }, | |
10396 | ||
10397 | { zAix_Externcpp1Name, zAix_Externcpp1List, | |
10398 | apzAix_Externcpp1Machs, | |
10399 | AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10400 | aAix_Externcpp1Tests, apzAix_Externcpp1Patch, 0 }, | |
10401 | ||
10402 | { zAix_Externcpp2Name, zAix_Externcpp2List, | |
10403 | apzAix_Externcpp2Machs, | |
10404 | AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10405 | aAix_Externcpp2Tests, apzAix_Externcpp2Patch, 0 }, | |
10406 | ||
0560f6fc | 10407 | { zAix_MallocName, zAix_MallocList, |
10408 | apzAix_MallocMachs, | |
10409 | AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10410 | aAix_MallocTests, apzAix_MallocPatch, 0 }, | |
10411 | ||
eafa229b | 10412 | { zAix_Net_If_ArpName, zAix_Net_If_ArpList, |
10413 | apzAix_Net_If_ArpMachs, | |
10414 | AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10415 | aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 }, | |
10416 | ||
3c47853b | 10417 | { zAix_NullName, zAix_NullList, |
10418 | apzAix_NullMachs, | |
10419 | AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10420 | aAix_NullTests, apzAix_NullPatch, 0 }, | |
10421 | ||
4cad3a31 | 10422 | { zAix_Once_Init_1Name, zAix_Once_Init_1List, |
10423 | apzAix_Once_Init_1Machs, | |
10424 | AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10425 | aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 }, | |
10426 | ||
10427 | { zAix_Once_Init_2Name, zAix_Once_Init_2List, | |
10428 | apzAix_Once_Init_2Machs, | |
10429 | AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10430 | aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 }, | |
10431 | ||
3adcc56f | 10432 | { zAix_Mutex_Initializer_1Name, zAix_Mutex_Initializer_1List, |
10433 | apzAix_Mutex_Initializer_1Machs, | |
10434 | AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10435 | aAix_Mutex_Initializer_1Tests, apzAix_Mutex_Initializer_1Patch, 0 }, | |
10436 | ||
10437 | { zAix_Cond_Initializer_1Name, zAix_Cond_Initializer_1List, | |
10438 | apzAix_Cond_Initializer_1Machs, | |
10439 | AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10440 | aAix_Cond_Initializer_1Tests, apzAix_Cond_Initializer_1Patch, 0 }, | |
10441 | ||
10442 | { zAix_Rwlock_Initializer_1Name, zAix_Rwlock_Initializer_1List, | |
10443 | apzAix_Rwlock_Initializer_1Machs, | |
10444 | AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10445 | aAix_Rwlock_Initializer_1Tests, apzAix_Rwlock_Initializer_1Patch, 0 }, | |
10446 | ||
e494b1bb | 10447 | { zAix_PthreadName, zAix_PthreadList, |
10448 | apzAix_PthreadMachs, | |
10449 | AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10450 | aAix_PthreadTests, apzAix_PthreadPatch, 0 }, |
e494b1bb | 10451 | |
82c99fed | 10452 | { zAix_Stdint_1Name, zAix_Stdint_1List, |
10453 | apzAix_Stdint_1Machs, | |
10454 | AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10455 | aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 }, | |
10456 | ||
10457 | { zAix_Stdint_2Name, zAix_Stdint_2List, | |
10458 | apzAix_Stdint_2Machs, | |
10459 | AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10460 | aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 }, | |
10461 | ||
10462 | { zAix_Stdint_3Name, zAix_Stdint_3List, | |
10463 | apzAix_Stdint_3Machs, | |
10464 | AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10465 | aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 }, | |
10466 | ||
10467 | { zAix_Stdint_4Name, zAix_Stdint_4List, | |
10468 | apzAix_Stdint_4Machs, | |
10469 | AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10470 | aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 }, | |
10471 | ||
10472 | { zAix_Stdint_5Name, zAix_Stdint_5List, | |
10473 | apzAix_Stdint_5Machs, | |
10474 | AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10475 | aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 }, | |
10476 | ||
11e92429 | 10477 | { zAix_Stdio_InlineName, zAix_Stdio_InlineList, |
10478 | apzAix_Stdio_InlineMachs, | |
10479 | AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10480 | aAix_Stdio_InlineTests, apzAix_Stdio_InlinePatch, 0 }, | |
10481 | ||
b73b1330 | 10482 | { zAix_Stdlib_MallocName, zAix_Stdlib_MallocList, |
10483 | apzAix_Stdlib_MallocMachs, | |
10484 | AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10485 | aAix_Stdlib_MallocTests, apzAix_Stdlib_MallocPatch, 0 }, | |
10486 | ||
10487 | { zAix_Stdlib_ReallocName, zAix_Stdlib_ReallocList, | |
10488 | apzAix_Stdlib_ReallocMachs, | |
10489 | AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10490 | aAix_Stdlib_ReallocTests, apzAix_Stdlib_ReallocPatch, 0 }, | |
10491 | ||
10492 | { zAix_Stdlib_CallocName, zAix_Stdlib_CallocList, | |
10493 | apzAix_Stdlib_CallocMachs, | |
10494 | AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10495 | aAix_Stdlib_CallocTests, apzAix_Stdlib_CallocPatch, 0 }, | |
10496 | ||
10497 | { zAix_Stdlib_VallocName, zAix_Stdlib_VallocList, | |
10498 | apzAix_Stdlib_VallocMachs, | |
10499 | AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10500 | aAix_Stdlib_VallocTests, apzAix_Stdlib_VallocPatch, 0 }, | |
10501 | ||
7a26bedc | 10502 | { zAix_Strtof_ConstName, zAix_Strtof_ConstList, |
10503 | apzAix_Strtof_ConstMachs, | |
10504 | AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10505 | aAix_Strtof_ConstTests, apzAix_Strtof_ConstPatch, 0 }, | |
10506 | ||
e494b1bb | 10507 | { zAix_SysmachineName, zAix_SysmachineList, |
10508 | apzAix_SysmachineMachs, | |
10509 | AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10510 | aAix_SysmachineTests, apzAix_SysmachinePatch, 0 }, |
e494b1bb | 10511 | |
85df6fdf | 10512 | { zAix_Syswait_2Name, zAix_Syswait_2List, |
10513 | apzAix_Syswait_2Machs, | |
10514 | AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10515 | aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 }, | |
10516 | ||
fdb8fb96 | 10517 | { zAix_VolatileName, zAix_VolatileList, |
6e791f25 | 10518 | apzAix_VolatileMachs, |
472aa368 | 10519 | AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10520 | aAix_VolatileTests, apzAix_VolatilePatch, 0 }, |
fdb8fb96 | 10521 | |
d1ec871e | 10522 | { zAlpha___AssertName, zAlpha___AssertList, |
10523 | apzAlpha___AssertMachs, | |
10524 | ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10525 | aAlpha___AssertTests, apzAlpha___AssertPatch, 0 }, | |
10526 | ||
03112946 | 10527 | { zAlpha_AssertName, zAlpha_AssertList, |
10528 | apzAlpha_AssertMachs, | |
10529 | ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10530 | aAlpha_AssertTests, apzAlpha_AssertPatch, 0 }, | |
10531 | ||
fdb8fb96 | 10532 | { zAlpha_GetoptName, zAlpha_GetoptList, |
6e791f25 | 10533 | apzAlpha_GetoptMachs, |
472aa368 | 10534 | ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10535 | aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 }, |
fdb8fb96 | 10536 | |
2013a847 | 10537 | { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList, |
10538 | apzAlpha_If_SemicolonMachs, | |
10539 | ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10540 | aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 }, | |
10541 | ||
fdb8fb96 | 10542 | { zAlpha_ParensName, zAlpha_ParensList, |
6e791f25 | 10543 | apzAlpha_ParensMachs, |
472aa368 | 10544 | ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10545 | aAlpha_ParensTests, apzAlpha_ParensPatch, 0 }, |
fdb8fb96 | 10546 | |
10547 | { zAlpha_SbrkName, zAlpha_SbrkList, | |
6e791f25 | 10548 | apzAlpha_SbrkMachs, |
472aa368 | 10549 | ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10550 | aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 }, |
fdb8fb96 | 10551 | |
2c59c6d3 | 10552 | { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList, |
10553 | apzAvoid_Bool_DefineMachs, | |
10554 | AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10555 | aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 }, |
2c59c6d3 | 10556 | |
10557 | { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList, | |
10558 | apzAvoid_Bool_TypeMachs, | |
10559 | AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10560 | aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 }, |
fdb8fb96 | 10561 | |
7ab30fe8 | 10562 | { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList, |
10563 | apzAvoid_Wchar_T_TypeMachs, | |
10564 | AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10565 | aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 }, |
7ab30fe8 | 10566 | |
fdb8fb96 | 10567 | { zBad_Struct_TermName, zBad_Struct_TermList, |
6e791f25 | 10568 | apzBad_Struct_TermMachs, |
2c59c6d3 | 10569 | BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10570 | aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 }, |
fdb8fb96 | 10571 | |
10572 | { zBadquoteName, zBadquoteList, | |
6e791f25 | 10573 | apzBadquoteMachs, |
2c59c6d3 | 10574 | BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10575 | aBadquoteTests, apzBadquotePatch, 0 }, |
fdb8fb96 | 10576 | |
fdb8fb96 | 10577 | { zBroken_Assert_StdioName, zBroken_Assert_StdioList, |
6e791f25 | 10578 | apzBroken_Assert_StdioMachs, |
e6650807 | 10579 | BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10580 | aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 }, |
fdb8fb96 | 10581 | |
10582 | { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList, | |
6e791f25 | 10583 | apzBroken_Assert_StdlibMachs, |
e6650807 | 10584 | BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10585 | aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 }, |
fdb8fb96 | 10586 | |
58d8674b | 10587 | { zBroken_CabsName, zBroken_CabsList, |
6e791f25 | 10588 | apzBroken_CabsMachs, |
462510b2 | 10589 | BROKEN_CABS_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 10590 | aBroken_CabsTests, apzBroken_CabsPatch, 0 }, |
58d8674b | 10591 | |
baee91be | 10592 | { zBroken_NanName, zBroken_NanList, |
10593 | apzBroken_NanMachs, | |
10594 | BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10595 | aBroken_NanTests, apzBroken_NanPatch, 0 }, | |
10596 | ||
d45e22c2 | 10597 | { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList, |
10598 | apzBsd_Stdio_Attrs_ConflictMachs, | |
10599 | BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10600 | aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 }, | |
10601 | ||
cfe5be71 | 10602 | { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList, |
10603 | apzCtrl_Quotes_DefMachs, | |
10604 | CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10605 | aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 }, |
cfe5be71 | 10606 | |
10607 | { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList, | |
10608 | apzCtrl_Quotes_UseMachs, | |
10609 | CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10610 | aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 }, |
cfe5be71 | 10611 | |
10612 | { zCxx_UnreadyName, zCxx_UnreadyList, | |
10613 | apzCxx_UnreadyMachs, | |
10614 | CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10615 | aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 }, |
cfe5be71 | 10616 | |
a11195e1 | 10617 | { zDarwin_AvailabilityinternalName, zDarwin_AvailabilityinternalList, |
10618 | apzDarwin_AvailabilityinternalMachs, | |
10619 | DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10620 | aDarwin_AvailabilityinternalTests, apzDarwin_AvailabilityinternalPatch, 0 }, | |
10621 | ||
32f37500 | 10622 | { zDarwin_9_Long_Double_Funcs_2Name, zDarwin_9_Long_Double_Funcs_2List, |
10623 | apzDarwin_9_Long_Double_Funcs_2Machs, | |
10624 | DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10625 | aDarwin_9_Long_Double_Funcs_2Tests, apzDarwin_9_Long_Double_Funcs_2Patch, 0 }, | |
10626 | ||
1908d6ac | 10627 | { zDarwin_ExterncName, zDarwin_ExterncList, |
10628 | apzDarwin_ExterncMachs, | |
10629 | DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10630 | aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 }, | |
10631 | ||
975d636c | 10632 | { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList, |
10633 | apzDarwin_Gcc4_BreakageMachs, | |
10634 | DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10635 | aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 }, | |
d6856a0e | 10636 | |
10637 | { zDarwin_Longjmp_NoreturnName, zDarwin_Longjmp_NoreturnList, | |
10638 | apzDarwin_Longjmp_NoreturnMachs, | |
10639 | DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10640 | aDarwin_Longjmp_NoreturnTests, apzDarwin_Longjmp_NoreturnPatch, 0 }, | |
975d636c | 10641 | |
a11195e1 | 10642 | { zDarwin_Os_Trace_1Name, zDarwin_Os_Trace_1List, |
10643 | apzDarwin_Os_Trace_1Machs, | |
10644 | DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10645 | aDarwin_Os_Trace_1Tests, apzDarwin_Os_Trace_1Patch, 0 }, | |
10646 | ||
10647 | { zDarwin_Os_Trace_2Name, zDarwin_Os_Trace_2List, | |
10648 | apzDarwin_Os_Trace_2Machs, | |
10649 | DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10650 | aDarwin_Os_Trace_2Tests, apzDarwin_Os_Trace_2Patch, 0 }, | |
10651 | ||
10652 | { zDarwin_Os_Trace_3Name, zDarwin_Os_Trace_3List, | |
10653 | apzDarwin_Os_Trace_3Machs, | |
10654 | DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10655 | aDarwin_Os_Trace_3Tests, apzDarwin_Os_Trace_3Patch, 0 }, | |
10656 | ||
3067e435 | 10657 | { zDarwin_Private_ExternName, zDarwin_Private_ExternList, |
10658 | apzDarwin_Private_ExternMachs, | |
10659 | DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10660 | aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 }, | |
10661 | ||
0e1f6b4f | 10662 | { zDarwin_Stdint_1Name, zDarwin_Stdint_1List, |
10663 | apzDarwin_Stdint_1Machs, | |
10664 | DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10665 | aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 }, | |
10666 | ||
10667 | { zDarwin_Stdint_2Name, zDarwin_Stdint_2List, | |
10668 | apzDarwin_Stdint_2Machs, | |
10669 | DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10670 | aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 }, | |
10671 | ||
10672 | { zDarwin_Stdint_3Name, zDarwin_Stdint_3List, | |
10673 | apzDarwin_Stdint_3Machs, | |
10674 | DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10675 | aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 }, | |
10676 | ||
10677 | { zDarwin_Stdint_4Name, zDarwin_Stdint_4List, | |
10678 | apzDarwin_Stdint_4Machs, | |
10679 | DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10680 | aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 }, | |
10681 | ||
c73f01c5 | 10682 | { zDarwin_Stdint_5Name, zDarwin_Stdint_5List, |
10683 | apzDarwin_Stdint_5Machs, | |
10684 | DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10685 | aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 }, | |
10686 | ||
10687 | { zDarwin_Stdint_6Name, zDarwin_Stdint_6List, | |
10688 | apzDarwin_Stdint_6Machs, | |
10689 | DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10690 | aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 }, | |
10691 | ||
10692 | { zDarwin_Stdint_7Name, zDarwin_Stdint_7List, | |
10693 | apzDarwin_Stdint_7Machs, | |
10694 | DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10695 | aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 }, | |
10696 | ||
38ebab8a | 10697 | { zDec_Intern_AsmName, zDec_Intern_AsmList, |
6e791f25 | 10698 | apzDec_Intern_AsmMachs, |
38ebab8a | 10699 | DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 10700 | aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 }, |
38ebab8a | 10701 | |
8c74272d | 10702 | { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList, |
10703 | apzDjgpp_Wchar_HMachs, | |
10704 | DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10705 | aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 }, | |
10706 | ||
fdb8fb96 | 10707 | { zEcd_CursorName, zEcd_CursorList, |
6e791f25 | 10708 | apzEcd_CursorMachs, |
2c59c6d3 | 10709 | ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10710 | aEcd_CursorTests, apzEcd_CursorPatch, 0 }, |
fdb8fb96 | 10711 | |
d1ed71e5 | 10712 | { zFeraiseexcept_Nosse_DivbyzeroName, zFeraiseexcept_Nosse_DivbyzeroList, |
10713 | apzFeraiseexcept_Nosse_DivbyzeroMachs, | |
10714 | FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10715 | aFeraiseexcept_Nosse_DivbyzeroTests, apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 }, | |
10716 | ||
10717 | { zFeraiseexcept_Nosse_InvalidName, zFeraiseexcept_Nosse_InvalidList, | |
10718 | apzFeraiseexcept_Nosse_InvalidMachs, | |
10719 | FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10720 | aFeraiseexcept_Nosse_InvalidTests, apzFeraiseexcept_Nosse_InvalidPatch, 0 }, | |
10721 | ||
65a92405 | 10722 | { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList, |
10723 | apzFreebsd_Gcc3_BreakageMachs, | |
10724 | FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10725 | aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 }, | |
10726 | ||
f9ac0b87 | 10727 | { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList, |
10728 | apzFreebsd_Gcc4_BreakageMachs, | |
10729 | FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10730 | aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 }, | |
10731 | ||
efb8e7bf | 10732 | { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List, |
10733 | apzGlibc_C99_Inline_1Machs, | |
10734 | GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10735 | aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 }, | |
10736 | ||
661832db | 10737 | { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList, |
10738 | apzGlibc_C99_Inline_1aMachs, | |
10739 | GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10740 | aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 }, | |
10741 | ||
efb8e7bf | 10742 | { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List, |
10743 | apzGlibc_C99_Inline_2Machs, | |
10744 | GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY, | |
10745 | aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 }, | |
10746 | ||
10747 | { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List, | |
10748 | apzGlibc_C99_Inline_3Machs, | |
10749 | GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10750 | aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 }, | |
10751 | ||
10752 | { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List, | |
10753 | apzGlibc_C99_Inline_4Machs, | |
10754 | GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10755 | aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 }, | |
10756 | ||
a1b11617 | 10757 | { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList, |
10758 | apzGlibc_Mutex_InitMachs, | |
10759 | GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY, | |
10760 | aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 }, | |
10761 | ||
57a812b7 | 10762 | { zGlibc_StdintName, zGlibc_StdintList, |
10763 | apzGlibc_StdintMachs, | |
10764 | GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10765 | aGlibc_StdintTests, apzGlibc_StdintPatch, 0 }, | |
10766 | ||
5aee6890 | 10767 | { zGlibc_StrncpyName, zGlibc_StrncpyList, |
10768 | apzGlibc_StrncpyMachs, | |
10769 | GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10770 | aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 }, | |
10771 | ||
a75b1c71 | 10772 | { zGlibc_TgmathName, zGlibc_TgmathList, |
10773 | apzGlibc_TgmathMachs, | |
10774 | GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10775 | aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 }, | |
10776 | ||
3072d11f | 10777 | { zGnu_TypesName, zGnu_TypesList, |
10778 | apzGnu_TypesMachs, | |
09a31484 | 10779 | GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
3072d11f | 10780 | aGnu_TypesTests, apzGnu_TypesPatch, 0 }, |
10781 | ||
fdb8fb96 | 10782 | { zHp_InlineName, zHp_InlineList, |
6e791f25 | 10783 | apzHp_InlineMachs, |
2c59c6d3 | 10784 | HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10785 | aHp_InlineTests, apzHp_InlinePatch, 0 }, |
fdb8fb96 | 10786 | |
10787 | { zHp_SysfileName, zHp_SysfileList, | |
6e791f25 | 10788 | apzHp_SysfileMachs, |
2c59c6d3 | 10789 | HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 10790 | aHp_SysfileTests, apzHp_SysfilePatch, 0 }, |
fdb8fb96 | 10791 | |
b32d497c | 10792 | { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList, |
10793 | apzHppa_Hpux_Fp_MacrosMachs, | |
10794 | HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10795 | aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 }, | |
10796 | ||
7b900f1a | 10797 | { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList, |
10798 | apzHpux10_Cpp_Pow_InlineMachs, | |
10799 | HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10800 | aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 }, | |
10801 | ||
c6738ff5 | 10802 | { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList, |
10803 | apzHpux11_Cpp_Pow_InlineMachs, | |
10804 | HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10805 | aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 }, | |
10806 | ||
ebf664b2 | 10807 | { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List, |
10808 | apzHpux10_Ctype_Declarations1Machs, | |
10809 | HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10810 | aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 }, | |
10811 | ||
10812 | { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List, | |
10813 | apzHpux10_Ctype_Declarations2Machs, | |
10814 | HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10815 | aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 }, | |
10816 | ||
37935110 | 10817 | { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList, |
10818 | apzHpux10_Stdio_DeclarationsMachs, | |
10819 | HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10820 | aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 }, | |
10821 | ||
b93c3ed1 | 10822 | { zHpux11_AbsName, zHpux11_AbsList, |
10823 | apzHpux11_AbsMachs, | |
4842028b | 10824 | HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
b93c3ed1 | 10825 | aHpux11_AbsTests, apzHpux11_AbsPatch, 0 }, |
10826 | ||
dcc83eef | 10827 | { zHpux11_Lwp_Rwlock_ValidName, zHpux11_Lwp_Rwlock_ValidList, |
10828 | apzHpux11_Lwp_Rwlock_ValidMachs, | |
10829 | HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10830 | aHpux11_Lwp_Rwlock_ValidTests, apzHpux11_Lwp_Rwlock_ValidPatch, 0 }, | |
10831 | ||
d1ed71e5 | 10832 | { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList, |
10833 | apzHpux11_Extern_SendfileMachs, | |
10834 | HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10835 | aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 }, | |
10836 | ||
10837 | { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList, | |
10838 | apzHpux11_Extern_SendpathMachs, | |
10839 | HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10840 | aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 }, | |
10841 | ||
ca58af19 | 10842 | { zHpux11_FabsfName, zHpux11_FabsfList, |
10843 | apzHpux11_FabsfMachs, | |
10844 | HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10845 | aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 }, | |
10846 | ||
b32d497c | 10847 | { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList, |
10848 | apzHpux11_Pthread_ConstMachs, | |
10849 | HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10850 | aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 }, | |
10851 | ||
c0854bd5 | 10852 | { zHpux11_Size_TName, zHpux11_Size_TList, |
10853 | apzHpux11_Size_TMachs, | |
10854 | HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10855 | aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 }, | |
10856 | ||
75dc2242 | 10857 | { zHpux11_SnprintfName, zHpux11_SnprintfList, |
10858 | apzHpux11_SnprintfMachs, | |
10859 | HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10860 | aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 }, | |
10861 | ||
a0d38f0b | 10862 | { zHpux11_VsnprintfName, zHpux11_VsnprintfList, |
10863 | apzHpux11_VsnprintfMachs, | |
10864 | HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10865 | aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 }, | |
10866 | ||
122d538c | 10867 | { zHpux_VsscanfName, zHpux_VsscanfList, |
10868 | apzHpux_VsscanfMachs, | |
10869 | HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10870 | aHpux_VsscanfTests, apzHpux_VsscanfPatch, 0 }, | |
10871 | ||
2c59c6d3 | 10872 | { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList, |
10873 | apzHpux8_Bogus_InlinesMachs, | |
10874 | HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY, | |
ee70a29d | 10875 | aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 }, |
2c59c6d3 | 10876 | |
d1ed71e5 | 10877 | { zHpux_C99_IntptrName, zHpux_C99_IntptrList, |
10878 | apzHpux_C99_IntptrMachs, | |
10879 | HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY, | |
10880 | aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 }, | |
10881 | ||
10882 | { zHpux_C99_InttypesName, zHpux_C99_InttypesList, | |
10883 | apzHpux_C99_InttypesMachs, | |
10884 | HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY, | |
10885 | aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 }, | |
10886 | ||
10887 | { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List, | |
10888 | apzHpux_C99_Inttypes2Machs, | |
10889 | HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY, | |
10890 | aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 }, | |
10891 | ||
ebf664b2 | 10892 | { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList, |
10893 | apzHpux_Ctype_MacrosMachs, | |
10894 | HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10895 | aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 }, | |
10896 | ||
d1ed71e5 | 10897 | { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList, |
10898 | apzHpux_Extern_ErrnoMachs, | |
10899 | HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10900 | aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 }, | |
10901 | ||
1589683c | 10902 | { zHpux_HtonlName, zHpux_HtonlList, |
10903 | apzHpux_HtonlMachs, | |
10904 | HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10905 | aHpux_HtonlTests, apzHpux_HtonlPatch, 0 }, | |
10906 | ||
d1ed71e5 | 10907 | { zHpux_Imaginary_IName, zHpux_Imaginary_IList, |
10908 | apzHpux_Imaginary_IMachs, | |
10909 | HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10910 | aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 }, | |
10911 | ||
10912 | { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList, | |
10913 | apzHpux_Inttype_Int8_TMachs, | |
10914 | HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10915 | aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 }, | |
10916 | ||
ebf664b2 | 10917 | { zHpux_Long_DoubleName, zHpux_Long_DoubleList, |
10918 | apzHpux_Long_DoubleMachs, | |
10919 | HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY, | |
10920 | aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 }, | |
10921 | ||
42fd8f40 | 10922 | { zHpux_Long_Double_2Name, zHpux_Long_Double_2List, |
10923 | apzHpux_Long_Double_2Machs, | |
10924 | HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10925 | aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 }, | |
10926 | ||
3dd59d44 | 10927 | { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList, |
10928 | apzHpux_Pthread_InitializersMachs, | |
10929 | HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY, | |
10930 | aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 }, | |
10931 | ||
d1ed71e5 | 10932 | { zHpux_Spu_InfoName, zHpux_Spu_InfoList, |
10933 | apzHpux_Spu_InfoMachs, | |
10934 | HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10935 | aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 }, | |
42fd8f40 | 10936 | |
3c36388d | 10937 | { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList, |
10938 | apzHpux_Stdint_Least_FastMachs, | |
10939 | HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10940 | aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 }, | |
42fd8f40 | 10941 | |
0249b7a3 | 10942 | { zHpux_LongjmpName, zHpux_LongjmpList, |
10943 | apzHpux_LongjmpMachs, | |
10944 | HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10945 | aHpux_LongjmpTests, apzHpux_LongjmpPatch, 0 }, | |
10946 | ||
d1ed71e5 | 10947 | { zHpux_SystimeName, zHpux_SystimeList, |
10948 | apzHpux_SystimeMachs, | |
10949 | HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10950 | aHpux_SystimeTests, apzHpux_SystimePatch, 0 }, | |
9436a006 | 10951 | |
96eced21 | 10952 | { zHuge_Val_HexName, zHuge_Val_HexList, |
10953 | apzHuge_Val_HexMachs, | |
10954 | HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10955 | aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 }, | |
10956 | ||
10957 | { zHuge_Valf_HexName, zHuge_Valf_HexList, | |
10958 | apzHuge_Valf_HexMachs, | |
10959 | HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10960 | aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 }, | |
10961 | ||
10962 | { zHuge_Vall_HexName, zHuge_Vall_HexList, | |
10963 | apzHuge_Vall_HexMachs, | |
10964 | HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10965 | aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 }, | |
10966 | ||
038a3e7a | 10967 | { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList, |
10968 | apzInt_Abort_Free_And_ExitMachs, | |
10969 | INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10970 | aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 }, |
038a3e7a | 10971 | |
49b4955b | 10972 | { zIo_Quotes_DefName, zIo_Quotes_DefList, |
10973 | apzIo_Quotes_DefMachs, | |
10974 | IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10975 | aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 }, |
49b4955b | 10976 | |
472aa368 | 10977 | { zIo_Quotes_UseName, zIo_Quotes_UseList, |
10978 | apzIo_Quotes_UseMachs, | |
10979 | IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 10980 | aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 }, |
49b4955b | 10981 | |
fdb8fb96 | 10982 | { zIp_Missing_SemiName, zIp_Missing_SemiList, |
6e791f25 | 10983 | apzIp_Missing_SemiMachs, |
fdb8fb96 | 10984 | IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 10985 | aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 }, |
fdb8fb96 | 10986 | |
49e3683c | 10987 | { zIrix_Limits_ConstName, zIrix_Limits_ConstList, |
10988 | apzIrix_Limits_ConstMachs, | |
10989 | IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10990 | aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 }, | |
10991 | ||
3072d11f | 10992 | { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList, |
10993 | apzIrix_Stdio_Va_ListMachs, | |
10994 | IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
10995 | aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 }, | |
10996 | ||
fdb8fb96 | 10997 | { zKandr_ConcatName, zKandr_ConcatList, |
6e791f25 | 10998 | apzKandr_ConcatMachs, |
cfe5be71 | 10999 | KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11000 | aKandr_ConcatTests, apzKandr_ConcatPatch, 0 }, |
fdb8fb96 | 11001 | |
d92db5b6 | 11002 | { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList, |
11003 | apzLinux_Ia64_UcontextMachs, | |
11004 | LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11005 | aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 }, | |
11006 | ||
435ea059 | 11007 | { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList, |
11008 | apzLynxos_No_Warning_In_Sys_Time_HMachs, | |
11009 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11010 | aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 }, | |
fdb8fb96 | 11011 | |
435ea059 | 11012 | { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList, |
11013 | apzLynxos_Missing_PutenvMachs, | |
11014 | LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11015 | aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 }, | |
fdb8fb96 | 11016 | |
d4c4b01d | 11017 | { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, |
6e791f25 | 11018 | apzMachine_Ansi_H_Va_ListMachs, |
a83746ef | 11019 | MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11020 | aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 }, |
d4c4b01d | 11021 | |
fdb8fb96 | 11022 | { zMachine_NameName, zMachine_NameList, |
6e791f25 | 11023 | apzMachine_NameMachs, |
17f8e521 | 11024 | MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11025 | aMachine_NameTests, apzMachine_NamePatch, 0 }, |
fdb8fb96 | 11026 | |
11027 | { zMath_ExceptionName, zMath_ExceptionList, | |
6e791f25 | 11028 | apzMath_ExceptionMachs, |
3efb5d22 | 11029 | MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
ee70a29d | 11030 | aMath_ExceptionTests, apzMath_ExceptionPatch, 0 }, |
fdb8fb96 | 11031 | |
bb304030 | 11032 | { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList, |
6e791f25 | 11033 | apzMath_Huge_Val_From_Dbl_MaxMachs, |
bb304030 | 11034 | MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, |
ee70a29d | 11035 | aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 }, |
bb304030 | 11036 | |
3072d11f | 11037 | { zNested_Auth_DesName, zNested_Auth_DesList, |
11038 | apzNested_Auth_DesMachs, | |
11039 | NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11040 | aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 }, | |
11041 | ||
4cbf73b4 | 11042 | { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List, |
11043 | apzNetbsd_C99_Inline_1Machs, | |
11044 | NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11045 | aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 }, | |
759bfb14 | 11046 | |
11047 | { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List, | |
11048 | apzNetbsd_C99_Inline_2Machs, | |
11049 | NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11050 | aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 }, | |
cfe5be71 | 11051 | |
81a897fb | 11052 | { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList, |
11053 | apzNetbsd_Extra_SemicolonMachs, | |
11054 | NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11055 | aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 }, | |
11056 | ||
f3449a3c | 11057 | { zNewlib_Stdint_1Name, zNewlib_Stdint_1List, |
11058 | apzNewlib_Stdint_1Machs, | |
11059 | NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY, | |
11060 | aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 }, | |
11061 | ||
11062 | { zNewlib_Stdint_2Name, zNewlib_Stdint_2List, | |
11063 | apzNewlib_Stdint_2Machs, | |
11064 | NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11065 | aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 }, | |
11066 | ||
fdb8fb96 | 11067 | { zNext_Math_PrefixName, zNext_Math_PrefixList, |
6e791f25 | 11068 | apzNext_Math_PrefixMachs, |
a83746ef | 11069 | NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11070 | aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 }, |
fdb8fb96 | 11071 | |
11072 | { zNext_TemplateName, zNext_TemplateList, | |
6e791f25 | 11073 | apzNext_TemplateMachs, |
a83746ef | 11074 | NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11075 | aNext_TemplateTests, apzNext_TemplatePatch, 0 }, |
fdb8fb96 | 11076 | |
11077 | { zNext_VolitileName, zNext_VolitileList, | |
6e791f25 | 11078 | apzNext_VolitileMachs, |
a83746ef | 11079 | NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11080 | aNext_VolitileTests, apzNext_VolitilePatch, 0 }, |
fdb8fb96 | 11081 | |
11082 | { zNext_Wait_UnionName, zNext_Wait_UnionList, | |
6e791f25 | 11083 | apzNext_Wait_UnionMachs, |
038a3e7a | 11084 | NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11085 | aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 }, |
fdb8fb96 | 11086 | |
11087 | { zNodeent_SyntaxName, zNodeent_SyntaxList, | |
6e791f25 | 11088 | apzNodeent_SyntaxMachs, |
038a3e7a | 11089 | NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11090 | aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 }, |
fdb8fb96 | 11091 | |
6dcfb197 | 11092 | { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList, |
11093 | apzOpenbsd_Null_DefinitionMachs, | |
11094 | OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11095 | aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 }, | |
11096 | ||
129b92e3 | 11097 | { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList, |
11098 | apzObstack_Lvalue_CastMachs, | |
11099 | OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11100 | aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 }, | |
11101 | ||
2b0752cc | 11102 | { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList, |
11103 | apzOpenbsd_Va_StartMachs, | |
11104 | OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11105 | aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 }, | |
11106 | ||
fdb8fb96 | 11107 | { zOsf_Namespace_AName, zOsf_Namespace_AList, |
6e791f25 | 11108 | apzOsf_Namespace_AMachs, |
038a3e7a | 11109 | OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11110 | aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 }, |
fdb8fb96 | 11111 | |
038a3e7a | 11112 | { zOsf_Namespace_CName, zOsf_Namespace_CList, |
11113 | apzOsf_Namespace_CMachs, | |
11114 | OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 11115 | aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 }, |
fdb8fb96 | 11116 | |
a11c2c4d | 11117 | { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList, |
11118 | apzPthread_Incomplete_Struct_ArgumentMachs, | |
11119 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11120 | aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 }, | |
11121 | ||
d0f5620b | 11122 | { zRead_Ret_TypeName, zRead_Ret_TypeList, |
6e791f25 | 11123 | apzRead_Ret_TypeMachs, |
038a3e7a | 11124 | READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11125 | aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 }, |
d0f5620b | 11126 | |
e68aa18b | 11127 | { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList, |
11128 | apzRpc_Xdr_Lvalue_Cast_AMachs, | |
11129 | RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11130 | aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 }, | |
11131 | ||
11132 | { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList, | |
11133 | apzRpc_Xdr_Lvalue_Cast_BMachs, | |
11134 | RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11135 | aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 }, | |
11136 | ||
fdb8fb96 | 11137 | { zRs6000_DoubleName, zRs6000_DoubleList, |
6e791f25 | 11138 | apzRs6000_DoubleMachs, |
038a3e7a | 11139 | RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11140 | aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 }, |
fdb8fb96 | 11141 | |
11142 | { zRs6000_FchmodName, zRs6000_FchmodList, | |
6e791f25 | 11143 | apzRs6000_FchmodMachs, |
038a3e7a | 11144 | RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11145 | aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 }, |
fdb8fb96 | 11146 | |
11147 | { zRs6000_ParamName, zRs6000_ParamList, | |
6e791f25 | 11148 | apzRs6000_ParamMachs, |
038a3e7a | 11149 | RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11150 | aRs6000_ParamTests, apzRs6000_ParamPatch, 0 }, |
fdb8fb96 | 11151 | |
a6905708 | 11152 | { zSolaris___RestrictName, zSolaris___RestrictList, |
11153 | apzSolaris___RestrictMachs, | |
11154 | SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11155 | aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 }, | |
11156 | ||
aee500d5 | 11157 | { zSolaris_ComplexName, zSolaris_ComplexList, |
11158 | apzSolaris_ComplexMachs, | |
11159 | SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY, | |
11160 | aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 }, | |
11161 | ||
a6905708 | 11162 | { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList, |
11163 | apzSolaris_Complex_CxxMachs, | |
11164 | SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY, | |
11165 | aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 }, | |
11166 | ||
5f7d4d97 | 11167 | { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList, |
11168 | apzSolaris_Cxx_LinkageMachs, | |
11169 | SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11170 | aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 }, | |
11171 | ||
11172 | { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList, | |
11173 | apzSolaris_Getc_Strict_StdcMachs, | |
11174 | SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11175 | aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 }, | |
11176 | ||
3c017b47 | 11177 | { zSolaris_Gets_C11Name, zSolaris_Gets_C11List, |
11178 | apzSolaris_Gets_C11Machs, | |
11179 | SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11180 | aSolaris_Gets_C11Tests, apzSolaris_Gets_C11Patch, 0 }, | |
11181 | ||
11182 | { zSolaris_Gets_Cxx14Name, zSolaris_Gets_Cxx14List, | |
11183 | apzSolaris_Gets_Cxx14Machs, | |
11184 | SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11185 | aSolaris_Gets_Cxx14Tests, apzSolaris_Gets_Cxx14Patch, 0 }, | |
11186 | ||
d1ed71e5 | 11187 | { zSolaris_Int_ConstName, zSolaris_Int_ConstList, |
11188 | apzSolaris_Int_ConstMachs, | |
11189 | SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11190 | aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 }, | |
11191 | ||
11192 | { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List, | |
11193 | apzSolaris_Int_Limits_1Machs, | |
11194 | SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11195 | aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 }, | |
11196 | ||
11197 | { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List, | |
11198 | apzSolaris_Int_Limits_2Machs, | |
11199 | SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11200 | aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 }, | |
11201 | ||
11202 | { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List, | |
11203 | apzSolaris_Int_Limits_3Machs, | |
11204 | SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11205 | aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 }, | |
11206 | ||
e849ea70 | 11207 | { zSolaris_Math_1Name, zSolaris_Math_1List, |
11208 | apzSolaris_Math_1Machs, | |
11209 | SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11210 | aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 }, | |
11211 | ||
d1ed71e5 | 11212 | { zSolaris_Math_10Name, zSolaris_Math_10List, |
11213 | apzSolaris_Math_10Machs, | |
11214 | SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11215 | aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 }, | |
11216 | ||
e849ea70 | 11217 | { zSolaris_Math_2Name, zSolaris_Math_2List, |
11218 | apzSolaris_Math_2Machs, | |
11219 | SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11220 | aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 }, | |
11221 | ||
11222 | { zSolaris_Math_3Name, zSolaris_Math_3List, | |
11223 | apzSolaris_Math_3Machs, | |
11224 | SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11225 | aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 }, | |
11226 | ||
11227 | { zSolaris_Math_4Name, zSolaris_Math_4List, | |
11228 | apzSolaris_Math_4Machs, | |
11229 | SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11230 | aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 }, | |
11231 | ||
e849ea70 | 11232 | { zSolaris_Math_8Name, zSolaris_Math_8List, |
11233 | apzSolaris_Math_8Machs, | |
11234 | SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11235 | aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 }, | |
11236 | ||
11237 | { zSolaris_Math_9Name, zSolaris_Math_9List, | |
11238 | apzSolaris_Math_9Machs, | |
11239 | SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11240 | aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 }, | |
11241 | ||
59600e4c | 11242 | { zSolaris_Math_11Name, zSolaris_Math_11List, |
11243 | apzSolaris_Math_11Machs, | |
11244 | SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11245 | aSolaris_Math_11Tests, apzSolaris_Math_11Patch, 0 }, | |
11246 | ||
13d9a983 | 11247 | { zSolaris_Math_12Name, zSolaris_Math_12List, |
11248 | apzSolaris_Math_12Machs, | |
11249 | SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY, | |
11250 | aSolaris_Math_12Tests, apzSolaris_Math_12Patch, 0 }, | |
11251 | ||
458caa24 | 11252 | { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List, |
11253 | apzSolaris_Once_Init_1Machs, | |
11254 | SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11255 | aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 }, | |
11256 | ||
69c86aa4 | 11257 | { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList, |
11258 | apzSolaris_Posix_Spawn_RestrictMachs, | |
11259 | SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11260 | aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 }, | |
11261 | ||
d1ed71e5 | 11262 | { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList, |
11263 | apzSolaris_Pow_Int_OverloadMachs, | |
11264 | SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11265 | aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 }, | |
11266 | ||
11267 | { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List, | |
11268 | apzSolaris_Rwlock_Init_1Machs, | |
11269 | SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11270 | aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 }, | |
11271 | ||
5f7d4d97 | 11272 | { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList, |
11273 | apzSolaris_Std___FilbufMachs, | |
11274 | SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11275 | aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 }, | |
11276 | ||
3c017b47 | 11277 | { zSolaris_Std_Gets_Cxx14Name, zSolaris_Std_Gets_Cxx14List, |
11278 | apzSolaris_Std_Gets_Cxx14Machs, | |
11279 | SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11280 | aSolaris_Std_Gets_Cxx14Tests, apzSolaris_Std_Gets_Cxx14Patch, 0 }, | |
11281 | ||
91eb7bbc | 11282 | { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList, |
11283 | apzSolaris_Stdio_TagMachs, | |
11284 | SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY, | |
11285 | aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 }, | |
11286 | ||
3c017b47 | 11287 | { zSolaris_Stdlib_NoreturnName, zSolaris_Stdlib_NoreturnList, |
11288 | apzSolaris_Stdlib_NoreturnMachs, | |
11289 | SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11290 | aSolaris_Stdlib_NoreturnTests, apzSolaris_Stdlib_NoreturnPatch, 0 }, | |
11291 | ||
fdb8fb96 | 11292 | { zStatsswtchName, zStatsswtchList, |
6e791f25 | 11293 | apzStatsswtchMachs, |
038a3e7a | 11294 | STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11295 | aStatsswtchTests, apzStatsswtchPatch, 0 }, |
fdb8fb96 | 11296 | |
d4c4b01d | 11297 | { zStdio_Stdarg_HName, zStdio_Stdarg_HList, |
6e791f25 | 11298 | apzStdio_Stdarg_HMachs, |
09a31484 | 11299 | STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
ee70a29d | 11300 | aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 }, |
d4c4b01d | 11301 | |
fdb8fb96 | 11302 | { zStdio_Va_ListName, zStdio_Va_ListList, |
6e791f25 | 11303 | apzStdio_Va_ListMachs, |
09a31484 | 11304 | STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT, |
ee70a29d | 11305 | aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 }, |
fdb8fb96 | 11306 | |
925b9291 | 11307 | { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList, |
11308 | apzStdio_Va_List_ClientsMachs, | |
11309 | STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY, | |
11310 | aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 }, | |
11311 | ||
3072d11f | 11312 | { zStrict_Ansi_NotName, zStrict_Ansi_NotList, |
11313 | apzStrict_Ansi_NotMachs, | |
11314 | STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11315 | aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 }, | |
11316 | ||
11317 | { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList, | |
11318 | apzStrict_Ansi_Not_CtdMachs, | |
11319 | STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11320 | aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 }, | |
11321 | ||
11322 | { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList, | |
11323 | apzStrict_Ansi_OnlyMachs, | |
11324 | STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11325 | aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 }, | |
11326 | ||
cfe5be71 | 11327 | { zStruct_FileName, zStruct_FileList, |
11328 | apzStruct_FileMachs, | |
11329 | STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 11330 | aStruct_FileTests, apzStruct_FilePatch, 0 }, |
cfe5be71 | 11331 | |
11332 | { zStruct_SockaddrName, zStruct_SockaddrList, | |
11333 | apzStruct_SockaddrMachs, | |
11334 | STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 11335 | aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 }, |
cfe5be71 | 11336 | |
a712e12c | 11337 | { zSun_Auth_ProtoName, zSun_Auth_ProtoList, |
6e791f25 | 11338 | apzSun_Auth_ProtoMachs, |
038a3e7a | 11339 | SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11340 | aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 }, |
a712e12c | 11341 | |
fdb8fb96 | 11342 | { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList, |
6e791f25 | 11343 | apzSun_Bogus_IfdefMachs, |
038a3e7a | 11344 | SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11345 | aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 }, |
fdb8fb96 | 11346 | |
fdb8fb96 | 11347 | { zSun_CatmacroName, zSun_CatmacroList, |
6e791f25 | 11348 | apzSun_CatmacroMachs, |
038a3e7a | 11349 | SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11350 | aSun_CatmacroTests, apzSun_CatmacroPatch, 0 }, |
fdb8fb96 | 11351 | |
11352 | { zSun_MallocName, zSun_MallocList, | |
6e791f25 | 11353 | apzSun_MallocMachs, |
fdb8fb96 | 11354 | SUN_MALLOC_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 11355 | aSun_MallocTests, apzSun_MallocPatch, 0 }, |
fdb8fb96 | 11356 | |
fdb8fb96 | 11357 | { zSun_Rusers_SemiName, zSun_Rusers_SemiList, |
6e791f25 | 11358 | apzSun_Rusers_SemiMachs, |
fdb8fb96 | 11359 | SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 11360 | aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 }, |
fdb8fb96 | 11361 | |
11362 | { zSun_SignalName, zSun_SignalList, | |
6e791f25 | 11363 | apzSun_SignalMachs, |
038a3e7a | 11364 | SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11365 | aSun_SignalTests, apzSun_SignalPatch, 0 }, |
fdb8fb96 | 11366 | |
fdb8fb96 | 11367 | { zSunos_StrlenName, zSunos_StrlenList, |
6e791f25 | 11368 | apzSunos_StrlenMachs, |
038a3e7a | 11369 | SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11370 | aSunos_StrlenTests, apzSunos_StrlenPatch, 0 }, |
fdb8fb96 | 11371 | |
d4a8ec92 | 11372 | { zSuse_Linux_Vt_CxxName, zSuse_Linux_Vt_CxxList, |
11373 | apzSuse_Linux_Vt_CxxMachs, | |
11374 | SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11375 | aSuse_Linux_Vt_CxxTests, apzSuse_Linux_Vt_CxxPatch, 0 }, | |
11376 | ||
3c04ceca | 11377 | { zSvr4_Disable_OptName, zSvr4_Disable_OptList, |
11378 | apzSvr4_Disable_OptMachs, | |
11379 | SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY, | |
11380 | aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 }, | |
11381 | ||
a712e12c | 11382 | { zSvr4_GetcwdName, zSvr4_GetcwdList, |
6e791f25 | 11383 | apzSvr4_GetcwdMachs, |
038a3e7a | 11384 | SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11385 | aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 }, |
a712e12c | 11386 | |
11387 | { zSvr4_ProfilName, zSvr4_ProfilList, | |
6e791f25 | 11388 | apzSvr4_ProfilMachs, |
038a3e7a | 11389 | SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11390 | aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 }, |
a712e12c | 11391 | |
d23689b2 | 11392 | { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList, |
11393 | apzSvr4_Sighandler_TypeMachs, | |
11394 | SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11395 | aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 }, | |
11396 | ||
630af039 | 11397 | { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList, |
11398 | apzSvr4_Undeclared_GetrngeMachs, | |
11399 | SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11400 | aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 }, | |
11401 | ||
fdb8fb96 | 11402 | { zSysv68_StringName, zSysv68_StringList, |
6e791f25 | 11403 | apzSysv68_StringMachs, |
fdb8fb96 | 11404 | SYSV68_STRING_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 11405 | aSysv68_StringTests, apzSysv68_StringPatch, 0 }, |
fdb8fb96 | 11406 | |
11407 | { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList, | |
6e791f25 | 11408 | apzSysz_Stdlib_For_SunMachs, |
038a3e7a | 11409 | SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11410 | aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 }, |
fdb8fb96 | 11411 | |
2a6f0f81 | 11412 | { zThread_KeywordName, zThread_KeywordList, |
11413 | apzThread_KeywordMachs, | |
77f26774 | 11414 | THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
2a6f0f81 | 11415 | aThread_KeywordTests, apzThread_KeywordPatch, 0 }, |
11416 | ||
fdb8fb96 | 11417 | { zTinfo_CplusplusName, zTinfo_CplusplusList, |
6e791f25 | 11418 | apzTinfo_CplusplusMachs, |
f74d6549 | 11419 | TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11420 | aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 }, |
fdb8fb96 | 11421 | |
fdb8fb96 | 11422 | { zUltrix_ConstName, zUltrix_ConstList, |
6e791f25 | 11423 | apzUltrix_ConstMachs, |
f74d6549 | 11424 | ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11425 | aUltrix_ConstTests, apzUltrix_ConstPatch, 0 }, |
fdb8fb96 | 11426 | |
f74d6549 | 11427 | { zUltrix_Const2Name, zUltrix_Const2List, |
11428 | apzUltrix_Const2Machs, | |
11429 | ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 11430 | aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 }, |
f74d6549 | 11431 | |
fdb8fb96 | 11432 | { zVa_I960_MacroName, zVa_I960_MacroList, |
6e791f25 | 11433 | apzVa_I960_MacroMachs, |
f74d6549 | 11434 | VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11435 | aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 }, |
fdb8fb96 | 11436 | |
d1ed71e5 | 11437 | { zVms_Add_Missing_BracesName, zVms_Add_Missing_BracesList, |
11438 | apzVms_Add_Missing_BracesMachs, | |
11439 | VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11440 | aVms_Add_Missing_BracesTests, apzVms_Add_Missing_BracesPatch, 0 }, | |
11441 | ||
11442 | { zVms_Decc_BuiltinName, zVms_Decc_BuiltinList, | |
11443 | apzVms_Decc_BuiltinMachs, | |
11444 | VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY, | |
11445 | aVms_Decc_BuiltinTests, apzVms_Decc_BuiltinPatch, 0 }, | |
11446 | ||
f13b86b8 | 11447 | { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList, |
11448 | apzVms_Define_Can_Use_Extern_PrefixMachs, | |
11449 | VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11450 | aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 }, | |
11451 | ||
f13b86b8 | 11452 | { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList, |
11453 | apzVms_Disable_Decc_String_BuiltinsMachs, | |
11454 | VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11455 | aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 }, | |
11456 | ||
1e6cd7f6 | 11457 | { zVms_Do_Not_Redeclare_HostaliasName, zVms_Do_Not_Redeclare_HostaliasList, |
11458 | apzVms_Do_Not_Redeclare_HostaliasMachs, | |
11459 | VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11460 | aVms_Do_Not_Redeclare_HostaliasTests, apzVms_Do_Not_Redeclare_HostaliasPatch, 0 }, | |
11461 | ||
d1ed71e5 | 11462 | { zVms_Forward_Declare_StructName, zVms_Forward_Declare_StructList, |
11463 | apzVms_Forward_Declare_StructMachs, | |
11464 | VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11465 | aVms_Forward_Declare_StructTests, apzVms_Forward_Declare_StructPatch, 0 }, | |
1e6cd7f6 | 11466 | |
11467 | { zVms_No_64bit_GetoptName, zVms_No_64bit_GetoptList, | |
11468 | apzVms_No_64bit_GetoptMachs, | |
11469 | VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11470 | aVms_No_64bit_GetoptTests, apzVms_No_64bit_GetoptPatch, 0 }, | |
11471 | ||
1e6cd7f6 | 11472 | { zVms_Use_Fast_SetjmpName, zVms_Use_Fast_SetjmpList, |
11473 | apzVms_Use_Fast_SetjmpMachs, | |
11474 | VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11475 | aVms_Use_Fast_SetjmpTests, apzVms_Use_Fast_SetjmpPatch, 0 }, | |
11476 | ||
d1ed71e5 | 11477 | { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList, |
11478 | apzVms_Use_Pragma_Extern_ModelMachs, | |
11479 | VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11480 | aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 }, | |
11481 | ||
11482 | { zVms_Use_Quoted_IncludeName, zVms_Use_Quoted_IncludeList, | |
11483 | apzVms_Use_Quoted_IncludeMachs, | |
11484 | VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11485 | aVms_Use_Quoted_IncludeTests, apzVms_Use_Quoted_IncludePatch, 0 }, | |
11486 | ||
fdb8fb96 | 11487 | { zVoid_NullName, zVoid_NullList, |
6e791f25 | 11488 | apzVoid_NullMachs, |
f74d6549 | 11489 | VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11490 | aVoid_NullTests, apzVoid_NullPatch, 0 }, |
fdb8fb96 | 11491 | |
11492 | { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList, | |
6e791f25 | 11493 | apzVxworks_Gcc_ProblemMachs, |
fdb8fb96 | 11494 | VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 11495 | aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 }, |
fdb8fb96 | 11496 | |
32f37500 | 11497 | { zVxworks_Ioctl_MacroName, zVxworks_Ioctl_MacroList, |
11498 | apzVxworks_Ioctl_MacroMachs, | |
11499 | VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11500 | aVxworks_Ioctl_MacroTests, apzVxworks_Ioctl_MacroPatch, 0 }, | |
11501 | ||
11502 | { zVxworks_Mkdir_MacroName, zVxworks_Mkdir_MacroList, | |
11503 | apzVxworks_Mkdir_MacroMachs, | |
11504 | VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11505 | aVxworks_Mkdir_MacroTests, apzVxworks_Mkdir_MacroPatch, 0 }, | |
11506 | ||
fdb8fb96 | 11507 | { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList, |
6e791f25 | 11508 | apzVxworks_Needs_VxtypesMachs, |
f74d6549 | 11509 | VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11510 | aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 }, |
fdb8fb96 | 11511 | |
11512 | { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList, | |
6e791f25 | 11513 | apzVxworks_Needs_VxworksMachs, |
fdb8fb96 | 11514 | VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 11515 | aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 }, |
fdb8fb96 | 11516 | |
32f37500 | 11517 | { zVxworks_RegsName, zVxworks_RegsList, |
11518 | apzVxworks_RegsMachs, | |
11519 | VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11520 | aVxworks_RegsTests, apzVxworks_RegsPatch, 0 }, | |
11521 | ||
fdb8fb96 | 11522 | { zVxworks_TimeName, zVxworks_TimeList, |
6e791f25 | 11523 | apzVxworks_TimeMachs, |
f74d6549 | 11524 | VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11525 | aVxworks_TimeTests, apzVxworks_TimePatch, 0 }, |
fdb8fb96 | 11526 | |
32f37500 | 11527 | { zVxworks_Write_ConstName, zVxworks_Write_ConstList, |
11528 | apzVxworks_Write_ConstMachs, | |
11529 | VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
11530 | aVxworks_Write_ConstTests, apzVxworks_Write_ConstPatch, 0 }, | |
11531 | ||
fdb8fb96 | 11532 | { zX11_ClassName, zX11_ClassList, |
6e791f25 | 11533 | apzX11_ClassMachs, |
e7ae4397 | 11534 | X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11535 | aX11_ClassTests, apzX11_ClassPatch, 0 }, |
fdb8fb96 | 11536 | |
11537 | { zX11_Class_UsageName, zX11_Class_UsageList, | |
6e791f25 | 11538 | apzX11_Class_UsageMachs, |
f74d6549 | 11539 | X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 11540 | aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 }, |
fdb8fb96 | 11541 | |
11542 | { zX11_NewName, zX11_NewList, | |
6e791f25 | 11543 | apzX11_NewMachs, |
fdb8fb96 | 11544 | X11_NEW_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 11545 | aX11_NewTests, apzX11_NewPatch, 0 }, |
fdb8fb96 | 11546 | |
11547 | { zX11_SprintfName, zX11_SprintfList, | |
6e791f25 | 11548 | apzX11_SprintfMachs, |
f74d6549 | 11549 | X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
d1ed71e5 | 11550 | aX11_SprintfTests, apzX11_SprintfPatch, 0 } |
fdb8fb96 | 11551 | }; |