]>
Commit | Line | Data |
---|---|---|
d45e22c2 | 1 | /* -*- buffer-read-only: t -*- vi: set ro: |
2 | * | |
3 | * DO NOT EDIT THIS FILE (fixincl.x) | |
4 | * | |
3452f1c7 | 5 | * It has been AutoGen-ed Saturday June 7, 2008 at 03:19:21 PM PDT |
d45e22c2 | 6 | * From the definitions inclhack.def |
7 | * and the template file fixincl | |
8 | */ | |
3452f1c7 | 9 | /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Jun 7 15:19:21 PDT 2008 |
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 | * |
6af9f7ea | 18 | * This file contains 177 fixup descriptions. |
fdb8fb96 | 19 | * |
49e3683c | 20 | * See README for more information. |
fdb8fb96 | 21 | * |
49e3683c | 22 | * inclhack copyright (c) 1998, 1999, 2000, 2001 |
d4c4b01d | 23 | * The Free Software Foundation, Inc. |
c1b28c63 | 24 | * |
6af9f7ea | 25 | * inclhack is free software: you can redistribute it and/or modify it |
26 | * under the terms of the GNU General Public License as published by the | |
27 | * Free Software Foundation, either version 3 of the License, or | |
28 | * (at your option) any later version. | |
fdb8fb96 | 29 | * |
6af9f7ea | 30 | * inclhack is distributed in the hope that it will be useful, but |
31 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
fdb8fb96 | 32 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
33 | * See the GNU General Public License for more details. | |
34 | * | |
6af9f7ea | 35 | * You should have received a copy of the GNU General Public License along |
36 | * with this program. If not, see <http://www.gnu.org/licenses/>. | |
3d906fac | 37 | */ |
38 | ||
39 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
40 | * | |
41 | * Description of Aab_Aix_Stdio fix | |
42 | */ | |
43 | tSCC zAab_Aix_StdioName[] = | |
44 | "AAB_aix_stdio"; | |
45 | ||
46 | /* | |
47 | * File name selection pattern | |
48 | */ | |
49 | tSCC zAab_Aix_StdioList[] = | |
50 | "stdio.h\0"; | |
51 | /* | |
52 | * Machine/OS name selection pattern | |
53 | */ | |
54 | tSCC* apzAab_Aix_StdioMachs[] = { | |
55 | "*-*-aix*", | |
56 | (const char*)NULL }; | |
57 | ||
58 | /* | |
59 | * content selection pattern - do fix if pattern found | |
d4c4b01d | 60 | */ |
3d906fac | 61 | tSCC zAab_Aix_StdioSelect0[] = |
62 | "define fopen fopen64"; | |
63 | ||
64 | #define AAB_AIX_STDIO_TEST_CT 1 | |
65 | static tTestDesc aAab_Aix_StdioTests[] = { | |
66 | { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, }; | |
67 | ||
68 | /* | |
69 | * Fix Command Arguments for Aab_Aix_Stdio | |
70 | */ | |
71 | static const char* apzAab_Aix_StdioPatch[] = { | |
72 | "wrap", | |
73 | "", | |
74 | "\n\ | |
75 | #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\ | |
76 | #define __need__aix_stdio_h_fix\n\ | |
77 | #ifdef __need__aix_stdio_h_fix\n\ | |
78 | #undef fseeko\n\ | |
79 | #undef ftello\n\ | |
80 | #undef fgetpos\n\ | |
81 | #undef fsetpos\n\ | |
82 | #undef fopen\n\ | |
83 | #undef freopen\n\ | |
84 | /* Alias the symbols using asm */\n\ | |
85 | extern \"C\" {\n\ | |
86 | extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\ | |
87 | extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\ | |
88 | extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\ | |
89 | extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\ | |
90 | extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\ | |
91 | extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\ | |
92 | }\n\ | |
93 | #endif\n\ | |
94 | #endif\n", | |
95 | (char*)NULL }; | |
d4c4b01d | 96 | |
f2563b02 | 97 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
98 | * | |
99 | * Description of Aab_Darwin7_9_Long_Double_Funcs fix | |
100 | */ | |
101 | tSCC zAab_Darwin7_9_Long_Double_FuncsName[] = | |
102 | "AAB_darwin7_9_long_double_funcs"; | |
103 | ||
104 | /* | |
105 | * File name selection pattern | |
106 | */ | |
107 | tSCC zAab_Darwin7_9_Long_Double_FuncsList[] = | |
e9afa104 | 108 | "architecture/ppc/math.h\0"; |
f2563b02 | 109 | /* |
110 | * Machine/OS name selection pattern | |
111 | */ | |
112 | tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = { | |
113 | "*-*-darwin7.9*", | |
114 | (const char*)NULL }; | |
115 | ||
116 | /* | |
117 | * content bypass pattern - skip fix if pattern found | |
118 | */ | |
119 | tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] = | |
120 | "powl"; | |
121 | ||
122 | #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1 | |
123 | static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = { | |
124 | { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, }; | |
125 | ||
126 | /* | |
127 | * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs | |
128 | */ | |
129 | static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = { | |
130 | "/* This file prototypes the long double functions available on Mac OS\n\ | |
131 | 10.3.9. */\n\ | |
132 | #ifndef __MATH__\n\ | |
baee91be | 133 | # undef __APPLE_CC__\n\ |
134 | # define __APPLE_CC__ 1345\n\ | |
f2563b02 | 135 | # include_next <architecture/ppc/math.h>\n\ |
baee91be | 136 | # undef __APPLE_CC__\n\ |
137 | # define __APPLE_CC__ 1\n\ | |
f2563b02 | 138 | # ifndef __LIBMLDBL_COMPAT\n\ |
139 | # ifdef __LONG_DOUBLE_128__\n\ | |
140 | # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\ | |
141 | # else\n\ | |
142 | # define __LIBMLDBL_COMPAT(sym)\n\ | |
143 | # endif /* __LONG_DOUBLE_128__ */\n\ | |
144 | # endif /* __LIBMLDBL_COMPAT */\n\ | |
145 | # ifdef __cplusplus\n\ | |
146 | extern \"C\" {\n\ | |
147 | # endif\n\ | |
148 | extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\ | |
149 | extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\ | |
150 | extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\ | |
151 | extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\ | |
152 | extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\ | |
153 | extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\ | |
154 | extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\ | |
155 | extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\ | |
156 | extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\ | |
157 | extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\ | |
158 | extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\ | |
159 | extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\ | |
160 | extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\ | |
161 | extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\ | |
162 | extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\ | |
163 | extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\ | |
164 | extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\ | |
165 | extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\ | |
166 | extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\ | |
167 | extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\ | |
168 | extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\ | |
169 | extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\ | |
170 | extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\ | |
171 | extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\ | |
172 | extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\ | |
173 | extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\ | |
174 | extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\ | |
175 | extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\ | |
176 | extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\ | |
177 | extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\ | |
178 | extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\ | |
179 | extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\ | |
180 | extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\ | |
181 | extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\ | |
182 | extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\ | |
183 | extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\ | |
184 | extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\ | |
185 | extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\ | |
186 | extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\ | |
187 | extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\ | |
188 | extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\ | |
189 | extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\ | |
190 | extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\ | |
191 | extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\ | |
192 | extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\ | |
193 | extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\ | |
194 | extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\ | |
195 | extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\ | |
196 | extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\ | |
197 | extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\ | |
198 | extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\ | |
199 | extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\ | |
200 | extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\ | |
201 | extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\ | |
202 | extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\ | |
203 | extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\ | |
204 | extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\ | |
205 | # ifdef __cplusplus\n\ | |
206 | }\n\ | |
207 | # endif\n\ | |
208 | #endif /* __MATH__ */", | |
209 | (char*)NULL }; | |
210 | ||
211 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
212 | * | |
213 | * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix | |
214 | */ | |
215 | tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] = | |
216 | "AAB_darwin7_9_long_double_funcs_2"; | |
217 | ||
218 | /* | |
219 | * File name selection pattern | |
220 | */ | |
221 | tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] = | |
e9afa104 | 222 | "math.h\0"; |
f2563b02 | 223 | /* |
224 | * Machine/OS name selection pattern | |
225 | */ | |
226 | tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = { | |
227 | "*-*-darwin7.9*", | |
228 | (const char*)NULL }; | |
229 | ||
230 | /* | |
231 | * content selection pattern - do fix if pattern found | |
232 | */ | |
233 | tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] = | |
234 | "#include[ \\t]+\\\""; | |
235 | ||
236 | #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1 | |
237 | static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = { | |
238 | { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, }; | |
239 | ||
240 | /* | |
241 | * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2 | |
242 | */ | |
243 | static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = { | |
244 | "format", | |
245 | "%1<%2.h>", | |
246 | "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"", | |
247 | (char*)NULL }; | |
248 | ||
e26c299a | 249 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
250 | * | |
bb304030 | 251 | * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix |
e26c299a | 252 | */ |
bb304030 | 253 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] = |
d4c4b01d | 254 | "AAB_fd_zero_asm_posix_types_h"; |
255 | ||
e26c299a | 256 | /* |
257 | * File name selection pattern | |
258 | */ | |
bb304030 | 259 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] = |
e9afa104 | 260 | "asm/posix_types.h\0"; |
e26c299a | 261 | /* |
262 | * Machine/OS name selection pattern | |
263 | */ | |
bb304030 | 264 | tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = { |
e800dd2f | 265 | "i[34567]86-*-linux*", |
90c7fd7a | 266 | (const char*)NULL }; |
e26c299a | 267 | |
268 | /* | |
bb304030 | 269 | * content bypass pattern - skip fix if pattern found |
e26c299a | 270 | */ |
bb304030 | 271 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = |
272 | "} while"; | |
54bb64fb | 273 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] = |
274 | "x86_64"; | |
8f4ca8fb | 275 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] = |
276 | "posix_types_64"; | |
bb304030 | 277 | |
8f4ca8fb | 278 | #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3 |
2548396b | 279 | static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { |
54bb64fb | 280 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, |
8f4ca8fb | 281 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, |
282 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, }; | |
bb304030 | 283 | |
284 | /* | |
285 | * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H | |
286 | */ | |
2548396b | 287 | static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = { |
bb304030 | 288 | "/* This file fixes a bug in the __FD_ZERO macro\n\ |
289 | for older versions of the Linux kernel. */\n\ | |
e26c299a | 290 | #ifndef _POSIX_TYPES_H_WRAPPER\n\ |
291 | #include <features.h>\n\ | |
5c0b86e6 | 292 | #include_next <asm/posix_types.h>\n\n\ |
e26c299a | 293 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
294 | #undef __FD_ZERO\n\ | |
bb304030 | 295 | #define __FD_ZERO(fdsetp) \\\n\ |
296 | do { \\\n\ | |
297 | int __d0, __d1; \\\n\ | |
68d0517a | 298 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ |
299 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
300 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
301 | \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
bb304030 | 302 | } while (0)\n\ |
5c0b86e6 | 303 | #endif\n\n\ |
e26c299a | 304 | #define _POSIX_TYPES_H_WRAPPER\n\ |
68d0517a | 305 | #endif /* _POSIX_TYPES_H_WRAPPER */", |
e26c299a | 306 | (char*)NULL }; |
307 | ||
308 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
309 | * | |
bb304030 | 310 | * Description of Aab_Fd_Zero_Gnu_Types_H fix |
e26c299a | 311 | */ |
bb304030 | 312 | tSCC zAab_Fd_Zero_Gnu_Types_HName[] = |
d4c4b01d | 313 | "AAB_fd_zero_gnu_types_h"; |
314 | ||
e26c299a | 315 | /* |
316 | * File name selection pattern | |
317 | */ | |
bb304030 | 318 | tSCC zAab_Fd_Zero_Gnu_Types_HList[] = |
e9afa104 | 319 | "gnu/types.h\0"; |
e26c299a | 320 | /* |
321 | * Machine/OS name selection pattern | |
322 | */ | |
bb304030 | 323 | tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = { |
e800dd2f | 324 | "i[34567]86-*-linux*", |
90c7fd7a | 325 | (const char*)NULL }; |
bb304030 | 326 | #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0 |
bb304030 | 327 | #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL |
e26c299a | 328 | |
329 | /* | |
bb304030 | 330 | * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H |
e26c299a | 331 | */ |
2548396b | 332 | static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = { |
bb304030 | 333 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\ |
e26c299a | 334 | #ifndef _TYPES_H_WRAPPER\n\ |
335 | #include <features.h>\n\ | |
2b5c5c15 | 336 | #include_next <gnu/types.h>\n\n\ |
e26c299a | 337 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
338 | #undef __FD_ZERO\n\ | |
9b20d84f | 339 | # define __FD_ZERO(fdsetp) \\\n\ |
340 | do { \\\n\ | |
341 | int __d0, __d1; \\\n\ | |
342 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ | |
343 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
344 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
345 | \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
bb304030 | 346 | } while (0)\n\ |
5c0b86e6 | 347 | #endif\n\n\ |
e26c299a | 348 | #define _TYPES_H_WRAPPER\n\ |
2b5c5c15 | 349 | #endif /* _TYPES_H_WRAPPER */", |
e26c299a | 350 | (char*)NULL }; |
351 | ||
352 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
353 | * | |
bb304030 | 354 | * Description of Aab_Fd_Zero_Selectbits_H fix |
e26c299a | 355 | */ |
bb304030 | 356 | tSCC zAab_Fd_Zero_Selectbits_HName[] = |
d4c4b01d | 357 | "AAB_fd_zero_selectbits_h"; |
358 | ||
e26c299a | 359 | /* |
360 | * File name selection pattern | |
361 | */ | |
bb304030 | 362 | tSCC zAab_Fd_Zero_Selectbits_HList[] = |
e9afa104 | 363 | "selectbits.h\0"; |
e26c299a | 364 | /* |
365 | * Machine/OS name selection pattern | |
366 | */ | |
bb304030 | 367 | tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = { |
e800dd2f | 368 | "i[34567]86-*-linux*", |
90c7fd7a | 369 | (const char*)NULL }; |
bb304030 | 370 | #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0 |
bb304030 | 371 | #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL |
e26c299a | 372 | |
373 | /* | |
bb304030 | 374 | * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H |
e26c299a | 375 | */ |
2548396b | 376 | static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = { |
bb304030 | 377 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\ |
e26c299a | 378 | #ifndef _SELECTBITS_H_WRAPPER\n\ |
2b5c5c15 | 379 | #include <features.h>\n\ |
380 | #include_next <selectbits.h>\n\n\ | |
381 | #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\ | |
382 | && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\ | |
383 | && __GLIBC_MINOR__ == 0\n\ | |
384 | #undef __FD_ZERO\n\ | |
385 | #define __FD_ZERO(fdsetp) \\\\\n\ | |
386 | do { \\\\\n\ | |
387 | int __d0, __d1; \\\\\n\ | |
388 | __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\ | |
389 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\ | |
390 | : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\ | |
391 | / sizeof (__fd_mask)), \\\\\n\ | |
392 | \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\ | |
393 | : \"memory\"); \\\\\n\ | |
394 | } while (0)\n\ | |
395 | #endif\n\n\ | |
396 | #define _SELECTBITS_H_WRAPPER\n\ | |
397 | #endif /* _SELECTBITS_H_WRAPPER */", | |
e26c299a | 398 | (char*)NULL }; |
399 | ||
b93c3ed1 | 400 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
401 | * | |
402 | * Description of Aab_Solaris_Sys_Varargs_H fix | |
403 | */ | |
404 | tSCC zAab_Solaris_Sys_Varargs_HName[] = | |
405 | "AAB_solaris_sys_varargs_h"; | |
406 | ||
407 | /* | |
408 | * File name selection pattern | |
409 | */ | |
410 | tSCC zAab_Solaris_Sys_Varargs_HList[] = | |
e9afa104 | 411 | "sys/varargs.h\0"; |
b93c3ed1 | 412 | /* |
413 | * Machine/OS name selection pattern | |
414 | */ | |
415 | tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = { | |
416 | "*-*-solaris*", | |
417 | (const char*)NULL }; | |
418 | #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0 | |
419 | #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL | |
420 | ||
421 | /* | |
422 | * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H | |
423 | */ | |
424 | static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = { | |
425 | "#ifdef __STDC__\n\ | |
2b5c5c15 | 426 | #include <stdarg.h>\n\ |
b93c3ed1 | 427 | #else\n\ |
2b5c5c15 | 428 | #include <varargs.h>\n\ |
429 | #endif", | |
b93c3ed1 | 430 | (char*)NULL }; |
431 | ||
d6d7d999 | 432 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
433 | * | |
434 | * Description of Aab_Sun_Memcpy fix | |
435 | */ | |
d6d7d999 | 436 | tSCC zAab_Sun_MemcpyName[] = |
d4c4b01d | 437 | "AAB_sun_memcpy"; |
438 | ||
d6d7d999 | 439 | /* |
440 | * File name selection pattern | |
441 | */ | |
442 | tSCC zAab_Sun_MemcpyList[] = | |
e9afa104 | 443 | "memory.h\0"; |
d6d7d999 | 444 | /* |
445 | * Machine/OS name selection pattern | |
446 | */ | |
447 | #define apzAab_Sun_MemcpyMachs (const char**)NULL | |
448 | ||
449 | /* | |
450 | * content selection pattern - do fix if pattern found | |
451 | */ | |
452 | tSCC zAab_Sun_MemcpySelect0[] = | |
453 | "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/"; | |
454 | ||
455 | #define AAB_SUN_MEMCPY_TEST_CT 1 | |
2548396b | 456 | static tTestDesc aAab_Sun_MemcpyTests[] = { |
d6d7d999 | 457 | { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, }; |
458 | ||
459 | /* | |
460 | * Fix Command Arguments for Aab_Sun_Memcpy | |
461 | */ | |
2548396b | 462 | static const char* apzAab_Sun_MemcpyPatch[] = { |
d6d7d999 | 463 | "/* This file was generated by fixincludes */\n\ |
464 | #ifndef __memory_h__\n\ | |
2b5c5c15 | 465 | #define __memory_h__\n\n\ |
466 | #ifdef __STDC__\n\ | |
467 | extern void *memccpy();\n\ | |
468 | extern void *memchr();\n\ | |
469 | extern void *memcpy();\n\ | |
470 | extern void *memset();\n\ | |
471 | #else\n\ | |
472 | extern char *memccpy();\n\ | |
473 | extern char *memchr();\n\ | |
474 | extern char *memcpy();\n\ | |
475 | extern char *memset();\n\ | |
476 | #endif /* __STDC__ */\n\n\ | |
477 | extern int memcmp();\n\n\ | |
3452f1c7 | 478 | #endif /* __memory_h__ */", |
57829215 | 479 | (char*)NULL }; |
480 | ||
e494b1bb | 481 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
482 | * | |
483 | * Description of Aix_Pthread fix | |
484 | */ | |
e494b1bb | 485 | tSCC zAix_PthreadName[] = |
486 | "aix_pthread"; | |
487 | ||
488 | /* | |
489 | * File name selection pattern | |
490 | */ | |
491 | tSCC zAix_PthreadList[] = | |
e9afa104 | 492 | "pthread.h\0"; |
e494b1bb | 493 | /* |
494 | * Machine/OS name selection pattern | |
495 | */ | |
496 | #define apzAix_PthreadMachs (const char**)NULL | |
497 | ||
498 | /* | |
499 | * content selection pattern - do fix if pattern found | |
500 | */ | |
501 | tSCC zAix_PthreadSelect0[] = | |
502 | "(#define [A-Za-z_0-9]+)(\\\\\n\ | |
503 | [^A-Za-z_0-9 \t\n\ | |
504 | (])"; | |
505 | ||
506 | #define AIX_PTHREAD_TEST_CT 1 | |
2548396b | 507 | static tTestDesc aAix_PthreadTests[] = { |
e494b1bb | 508 | { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, }; |
509 | ||
510 | /* | |
511 | * Fix Command Arguments for Aix_Pthread | |
512 | */ | |
2548396b | 513 | static const char* apzAix_PthreadPatch[] = { |
e494b1bb | 514 | "format", |
515 | "%1 %2", | |
516 | (char*)NULL }; | |
517 | ||
518 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
519 | * | |
520 | * Description of Aix_Sysmachine fix | |
521 | */ | |
e494b1bb | 522 | tSCC zAix_SysmachineName[] = |
523 | "aix_sysmachine"; | |
524 | ||
525 | /* | |
526 | * File name selection pattern | |
527 | */ | |
528 | tSCC zAix_SysmachineList[] = | |
e9afa104 | 529 | "sys/machine.h\0"; |
e494b1bb | 530 | /* |
531 | * Machine/OS name selection pattern | |
532 | */ | |
533 | #define apzAix_SysmachineMachs (const char**)NULL | |
534 | ||
535 | /* | |
536 | * content selection pattern - do fix if pattern found | |
537 | */ | |
538 | tSCC zAix_SysmachineSelect0[] = | |
539 | "\\\\ +\n"; | |
540 | ||
541 | #define AIX_SYSMACHINE_TEST_CT 1 | |
2548396b | 542 | static tTestDesc aAix_SysmachineTests[] = { |
e494b1bb | 543 | { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, }; |
544 | ||
545 | /* | |
546 | * Fix Command Arguments for Aix_Sysmachine | |
547 | */ | |
2548396b | 548 | static const char* apzAix_SysmachinePatch[] = { |
e494b1bb | 549 | "format", |
550 | "\\\n", | |
551 | (char*)NULL }; | |
552 | ||
5daf7ede | 553 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
554 | * | |
555 | * Description of Aix_Syswait fix | |
556 | */ | |
fdb8fb96 | 557 | tSCC zAix_SyswaitName[] = |
d4c4b01d | 558 | "aix_syswait"; |
559 | ||
fdb8fb96 | 560 | /* |
561 | * File name selection pattern | |
562 | */ | |
563 | tSCC zAix_SyswaitList[] = | |
e9afa104 | 564 | "sys/wait.h\0"; |
fdb8fb96 | 565 | /* |
566 | * Machine/OS name selection pattern | |
567 | */ | |
568 | #define apzAix_SyswaitMachs (const char**)NULL | |
569 | ||
570 | /* | |
c1b28c63 | 571 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 572 | */ |
573 | tSCC zAix_SyswaitSelect0[] = | |
49b4955b | 574 | "^extern pid_t wait3\\(\\);\n"; |
575 | tSCC zAix_SyswaitSelect1[] = | |
fdb8fb96 | 576 | "bos325,"; |
577 | ||
49b4955b | 578 | #define AIX_SYSWAIT_TEST_CT 2 |
2548396b | 579 | static tTestDesc aAix_SyswaitTests[] = { |
49b4955b | 580 | { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, |
581 | { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, }; | |
fdb8fb96 | 582 | |
583 | /* | |
584 | * Fix Command Arguments for Aix_Syswait | |
585 | */ | |
2548396b | 586 | static const char* apzAix_SyswaitPatch[] = { |
49b4955b | 587 | "format", |
588 | "struct rusage;\n\ | |
589 | %0", | |
fdb8fb96 | 590 | (char*)NULL }; |
591 | ||
85df6fdf | 592 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
593 | * | |
594 | * Description of Aix_Syswait_2 fix | |
595 | */ | |
596 | tSCC zAix_Syswait_2Name[] = | |
597 | "aix_syswait_2"; | |
598 | ||
599 | /* | |
600 | * File name selection pattern | |
601 | */ | |
602 | tSCC zAix_Syswait_2List[] = | |
e9afa104 | 603 | "sys/wait.h\0"; |
85df6fdf | 604 | /* |
605 | * Machine/OS name selection pattern | |
606 | */ | |
607 | #define apzAix_Syswait_2Machs (const char**)NULL | |
608 | ||
609 | /* | |
610 | * content selection pattern - do fix if pattern found | |
611 | */ | |
612 | tSCC zAix_Syswait_2Select0[] = | |
613 | "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)"; | |
614 | ||
615 | #define AIX_SYSWAIT_2_TEST_CT 1 | |
616 | static tTestDesc aAix_Syswait_2Tests[] = { | |
617 | { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, }; | |
618 | ||
619 | /* | |
620 | * Fix Command Arguments for Aix_Syswait_2 | |
621 | */ | |
622 | static const char* apzAix_Syswait_2Patch[] = { | |
623 | "format", | |
624 | "? (int)%1", | |
625 | (char*)NULL }; | |
626 | ||
fdb8fb96 | 627 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
628 | * | |
5daf7ede | 629 | * Description of Aix_Volatile fix |
fdb8fb96 | 630 | */ |
631 | tSCC zAix_VolatileName[] = | |
d4c4b01d | 632 | "aix_volatile"; |
633 | ||
fdb8fb96 | 634 | /* |
635 | * File name selection pattern | |
636 | */ | |
637 | tSCC zAix_VolatileList[] = | |
e9afa104 | 638 | "sys/signal.h\0"; |
fdb8fb96 | 639 | /* |
640 | * Machine/OS name selection pattern | |
641 | */ | |
642 | #define apzAix_VolatileMachs (const char**)NULL | |
643 | ||
644 | /* | |
c1b28c63 | 645 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 646 | */ |
647 | tSCC zAix_VolatileSelect0[] = | |
648 | "typedef volatile int sig_atomic_t"; | |
649 | ||
650 | #define AIX_VOLATILE_TEST_CT 1 | |
2548396b | 651 | static tTestDesc aAix_VolatileTests[] = { |
5daf7ede | 652 | { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 653 | |
654 | /* | |
655 | * Fix Command Arguments for Aix_Volatile | |
656 | */ | |
2548396b | 657 | static const char* apzAix_VolatilePatch[] = { |
472aa368 | 658 | "format", |
659 | "typedef int sig_atomic_t", | |
fdb8fb96 | 660 | (char*)NULL }; |
661 | ||
d1ec871e | 662 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
663 | * | |
664 | * Description of Alpha___Assert fix | |
665 | */ | |
d1ec871e | 666 | tSCC zAlpha___AssertName[] = |
667 | "alpha___assert"; | |
668 | ||
669 | /* | |
670 | * File name selection pattern | |
671 | */ | |
672 | tSCC zAlpha___AssertList[] = | |
e9afa104 | 673 | "assert.h\0"; |
d1ec871e | 674 | /* |
675 | * Machine/OS name selection pattern | |
676 | */ | |
677 | #define apzAlpha___AssertMachs (const char**)NULL | |
678 | ||
679 | /* | |
680 | * content selection pattern - do fix if pattern found | |
681 | */ | |
682 | tSCC zAlpha___AssertSelect0[] = | |
683 | "__assert\\(char \\*, char \\*, int\\)"; | |
684 | ||
685 | #define ALPHA___ASSERT_TEST_CT 1 | |
686 | static tTestDesc aAlpha___AssertTests[] = { | |
687 | { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, }; | |
688 | ||
689 | /* | |
690 | * Fix Command Arguments for Alpha___Assert | |
691 | */ | |
692 | static const char* apzAlpha___AssertPatch[] = { | |
693 | "format", | |
694 | "__assert(const char *, const char *, int)", | |
695 | (char*)NULL }; | |
696 | ||
219cff1b | 697 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
698 | * | |
699 | * Description of Alpha___Extern_Prefix fix | |
700 | */ | |
701 | tSCC zAlpha___Extern_PrefixName[] = | |
702 | "alpha___extern_prefix"; | |
703 | ||
704 | /* | |
705 | * File name selection pattern | |
706 | */ | |
6a80f466 | 707 | #define zAlpha___Extern_PrefixList (char*)NULL |
219cff1b | 708 | /* |
709 | * Machine/OS name selection pattern | |
710 | */ | |
711 | tSCC* apzAlpha___Extern_PrefixMachs[] = { | |
6a80f466 | 712 | "alpha*-dec-osf*", |
219cff1b | 713 | (const char*)NULL }; |
714 | ||
715 | /* | |
716 | * content selection pattern - do fix if pattern found | |
717 | */ | |
718 | tSCC zAlpha___Extern_PrefixSelect0[] = | |
6a80f466 | 719 | "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\ |
720 | (#[ \t]*pragma[ \t]*extern_prefix.*)"; | |
219cff1b | 721 | |
722 | #define ALPHA___EXTERN_PREFIX_TEST_CT 1 | |
723 | static tTestDesc aAlpha___Extern_PrefixTests[] = { | |
724 | { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, }; | |
725 | ||
726 | /* | |
727 | * Fix Command Arguments for Alpha___Extern_Prefix | |
728 | */ | |
729 | static const char* apzAlpha___Extern_PrefixPatch[] = { | |
6a80f466 | 730 | "format", |
731 | "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\ | |
732 | %3", | |
733 | (char*)NULL }; | |
734 | ||
735 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
736 | * | |
737 | * Description of Alpha___Extern_Prefix_Standards fix | |
738 | */ | |
739 | tSCC zAlpha___Extern_Prefix_StandardsName[] = | |
740 | "alpha___extern_prefix_standards"; | |
741 | ||
742 | /* | |
743 | * File name selection pattern | |
744 | */ | |
745 | tSCC zAlpha___Extern_Prefix_StandardsList[] = | |
e9afa104 | 746 | "standards.h\0"; |
6a80f466 | 747 | /* |
748 | * Machine/OS name selection pattern | |
749 | */ | |
750 | tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = { | |
751 | "alpha*-dec-osf*", | |
752 | (const char*)NULL }; | |
753 | ||
754 | /* | |
755 | * content selection pattern - do fix if pattern found | |
756 | */ | |
757 | tSCC zAlpha___Extern_Prefix_StandardsSelect0[] = | |
758 | ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)"; | |
759 | ||
760 | #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1 | |
761 | static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = { | |
762 | { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, }; | |
763 | ||
764 | /* | |
765 | * Fix Command Arguments for Alpha___Extern_Prefix_Standards | |
766 | */ | |
767 | static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = { | |
768 | "format", | |
769 | "%0 && !defined(__PRAGMA_EXTERN_PREFIX)", | |
770 | (char*)NULL }; | |
771 | ||
772 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
773 | * | |
774 | * Description of Alpha___Extern_Prefix_Sys_Stat fix | |
775 | */ | |
776 | tSCC zAlpha___Extern_Prefix_Sys_StatName[] = | |
777 | "alpha___extern_prefix_sys_stat"; | |
778 | ||
779 | /* | |
780 | * File name selection pattern | |
781 | */ | |
782 | tSCC zAlpha___Extern_Prefix_Sys_StatList[] = | |
e9afa104 | 783 | "sys/stat.h\0sys/mount.h\0"; |
6a80f466 | 784 | /* |
785 | * Machine/OS name selection pattern | |
786 | */ | |
787 | tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = { | |
788 | "alpha*-dec-osf5*", | |
789 | (const char*)NULL }; | |
790 | ||
791 | /* | |
792 | * content selection pattern - do fix if pattern found | |
793 | */ | |
794 | tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] = | |
795 | "#[ \t]*if[ \t]*defined\\(__DECC\\)"; | |
796 | ||
797 | #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1 | |
798 | static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = { | |
799 | { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, }; | |
800 | ||
801 | /* | |
802 | * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat | |
803 | */ | |
804 | static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = { | |
219cff1b | 805 | "format", |
806 | "%0 || defined(__PRAGMA_EXTERN_PREFIX)", | |
807 | (char*)NULL }; | |
808 | ||
03112946 | 809 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
810 | * | |
811 | * Description of Alpha_Assert fix | |
812 | */ | |
813 | tSCC zAlpha_AssertName[] = | |
814 | "alpha_assert"; | |
815 | ||
816 | /* | |
817 | * File name selection pattern | |
818 | */ | |
819 | tSCC zAlpha_AssertList[] = | |
e9afa104 | 820 | "assert.h\0"; |
03112946 | 821 | /* |
822 | * Machine/OS name selection pattern | |
823 | */ | |
824 | #define apzAlpha_AssertMachs (const char**)NULL | |
825 | ||
826 | /* | |
827 | * content selection pattern - do fix if pattern found | |
828 | */ | |
829 | tSCC zAlpha_AssertSelect0[] = | |
830 | "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)"; | |
831 | ||
832 | #define ALPHA_ASSERT_TEST_CT 1 | |
833 | static tTestDesc aAlpha_AssertTests[] = { | |
834 | { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, }; | |
835 | ||
836 | /* | |
837 | * Fix Command Arguments for Alpha_Assert | |
838 | */ | |
839 | static const char* apzAlpha_AssertPatch[] = { | |
840 | "format", | |
841 | "%1(EX)", | |
842 | (char*)NULL }; | |
843 | ||
a3278934 | 844 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
845 | * | |
846 | * Description of Alpha_Bad_Lval fix | |
847 | */ | |
848 | tSCC zAlpha_Bad_LvalName[] = | |
849 | "alpha_bad_lval"; | |
850 | ||
851 | /* | |
852 | * File name selection pattern | |
853 | */ | |
854 | #define zAlpha_Bad_LvalList (char*)NULL | |
855 | /* | |
856 | * Machine/OS name selection pattern | |
857 | */ | |
858 | tSCC* apzAlpha_Bad_LvalMachs[] = { | |
859 | "alpha*-dec-osf*", | |
860 | (const char*)NULL }; | |
861 | ||
862 | /* | |
863 | * content selection pattern - do fix if pattern found | |
864 | */ | |
865 | tSCC zAlpha_Bad_LvalSelect0[] = | |
866 | "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix"; | |
867 | ||
868 | #define ALPHA_BAD_LVAL_TEST_CT 1 | |
869 | static tTestDesc aAlpha_Bad_LvalTests[] = { | |
870 | { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, }; | |
871 | ||
872 | /* | |
873 | * Fix Command Arguments for Alpha_Bad_Lval | |
874 | */ | |
875 | static const char* apzAlpha_Bad_LvalPatch[] = { "sed", | |
876 | "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/", | |
877 | (char*)NULL }; | |
878 | ||
fdb8fb96 | 879 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
880 | * | |
5daf7ede | 881 | * Description of Alpha_Getopt fix |
fdb8fb96 | 882 | */ |
883 | tSCC zAlpha_GetoptName[] = | |
d4c4b01d | 884 | "alpha_getopt"; |
885 | ||
fdb8fb96 | 886 | /* |
887 | * File name selection pattern | |
888 | */ | |
889 | tSCC zAlpha_GetoptList[] = | |
e9afa104 | 890 | "stdio.h\0stdlib.h\0"; |
fdb8fb96 | 891 | /* |
892 | * Machine/OS name selection pattern | |
893 | */ | |
894 | #define apzAlpha_GetoptMachs (const char**)NULL | |
895 | ||
896 | /* | |
c1b28c63 | 897 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 898 | */ |
899 | tSCC zAlpha_GetoptSelect0[] = | |
52686fb5 | 900 | "getopt\\(int, char \\*\\[\\], *char \\*\\)"; |
fdb8fb96 | 901 | |
902 | #define ALPHA_GETOPT_TEST_CT 1 | |
2548396b | 903 | static tTestDesc aAlpha_GetoptTests[] = { |
5daf7ede | 904 | { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 905 | |
906 | /* | |
907 | * Fix Command Arguments for Alpha_Getopt | |
908 | */ | |
2548396b | 909 | static const char* apzAlpha_GetoptPatch[] = { |
472aa368 | 910 | "format", |
911 | "getopt(int, char *const[], const char *)", | |
fdb8fb96 | 912 | (char*)NULL }; |
913 | ||
914 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
915 | * | |
5daf7ede | 916 | * Description of Alpha_Parens fix |
fdb8fb96 | 917 | */ |
918 | tSCC zAlpha_ParensName[] = | |
d4c4b01d | 919 | "alpha_parens"; |
920 | ||
fdb8fb96 | 921 | /* |
922 | * File name selection pattern | |
923 | */ | |
924 | tSCC zAlpha_ParensList[] = | |
e9afa104 | 925 | "sym.h\0"; |
fdb8fb96 | 926 | /* |
927 | * Machine/OS name selection pattern | |
928 | */ | |
929 | #define apzAlpha_ParensMachs (const char**)NULL | |
930 | ||
931 | /* | |
c1b28c63 | 932 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 933 | */ |
934 | tSCC zAlpha_ParensSelect0[] = | |
935 | "#ifndef\\(__mips64\\)"; | |
936 | ||
937 | #define ALPHA_PARENS_TEST_CT 1 | |
2548396b | 938 | static tTestDesc aAlpha_ParensTests[] = { |
5daf7ede | 939 | { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 940 | |
941 | /* | |
942 | * Fix Command Arguments for Alpha_Parens | |
943 | */ | |
2548396b | 944 | static const char* apzAlpha_ParensPatch[] = { |
472aa368 | 945 | "format", |
946 | "#ifndef __mips64", | |
fdb8fb96 | 947 | (char*)NULL }; |
948 | ||
ecd34a08 | 949 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
950 | * | |
951 | * Description of Alpha_Pthread fix | |
952 | */ | |
953 | tSCC zAlpha_PthreadName[] = | |
954 | "alpha_pthread"; | |
955 | ||
956 | /* | |
957 | * File name selection pattern | |
958 | */ | |
959 | tSCC zAlpha_PthreadList[] = | |
e9afa104 | 960 | "pthread.h\0"; |
ecd34a08 | 961 | /* |
962 | * Machine/OS name selection pattern | |
963 | */ | |
964 | tSCC* apzAlpha_PthreadMachs[] = { | |
965 | "alpha*-dec-osf*", | |
966 | (const char*)NULL }; | |
967 | ||
968 | /* | |
969 | * content selection pattern - do fix if pattern found | |
970 | */ | |
971 | tSCC zAlpha_PthreadSelect0[] = | |
6a80f466 | 972 | "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\ |
ecd34a08 | 973 | (#[ \t]*define _PTHREAD_USE_PTDNAM_)"; |
974 | ||
975 | #define ALPHA_PTHREAD_TEST_CT 1 | |
976 | static tTestDesc aAlpha_PthreadTests[] = { | |
977 | { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, }; | |
978 | ||
979 | /* | |
980 | * Fix Command Arguments for Alpha_Pthread | |
981 | */ | |
982 | static const char* apzAlpha_PthreadPatch[] = { | |
983 | "format", | |
6a80f466 | 984 | "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\ |
985 | %5", | |
ecd34a08 | 986 | (char*)NULL }; |
987 | ||
89ebafd5 | 988 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
989 | * | |
990 | * Description of Alpha_Pthread_Gcc fix | |
991 | */ | |
992 | tSCC zAlpha_Pthread_GccName[] = | |
993 | "alpha_pthread_gcc"; | |
994 | ||
995 | /* | |
996 | * File name selection pattern | |
997 | */ | |
998 | tSCC zAlpha_Pthread_GccList[] = | |
e9afa104 | 999 | "pthread.h\0"; |
89ebafd5 | 1000 | /* |
1001 | * Machine/OS name selection pattern | |
1002 | */ | |
1003 | tSCC* apzAlpha_Pthread_GccMachs[] = { | |
1004 | "alpha*-dec-osf*", | |
1005 | (const char*)NULL }; | |
1006 | ||
1007 | /* | |
1008 | * content selection pattern - do fix if pattern found | |
1009 | */ | |
1010 | tSCC zAlpha_Pthread_GccSelect0[] = | |
1011 | "#else\n\ | |
1012 | # error <pthread.h>: unrecognized compiler."; | |
1013 | ||
1014 | #define ALPHA_PTHREAD_GCC_TEST_CT 1 | |
1015 | static tTestDesc aAlpha_Pthread_GccTests[] = { | |
1016 | { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, }; | |
1017 | ||
1018 | /* | |
1019 | * Fix Command Arguments for Alpha_Pthread_Gcc | |
1020 | */ | |
1021 | static const char* apzAlpha_Pthread_GccPatch[] = { | |
1022 | "format", | |
1023 | "#elif defined (__GNUC__)\n\ | |
1024 | # define _PTHREAD_ENV_GCC\n\ | |
1025 | %0", | |
1026 | (char*)NULL }; | |
1027 | ||
31e7bff5 | 1028 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1029 | * | |
1030 | * Description of Alpha_Pthread_Init fix | |
1031 | */ | |
1032 | tSCC zAlpha_Pthread_InitName[] = | |
1033 | "alpha_pthread_init"; | |
1034 | ||
1035 | /* | |
1036 | * File name selection pattern | |
1037 | */ | |
1038 | tSCC zAlpha_Pthread_InitList[] = | |
e9afa104 | 1039 | "pthread.h\0"; |
31e7bff5 | 1040 | /* |
1041 | * Machine/OS name selection pattern | |
1042 | */ | |
1043 | tSCC* apzAlpha_Pthread_InitMachs[] = { | |
1044 | "alpha*-dec-osf*", | |
1045 | (const char*)NULL }; | |
1046 | ||
1047 | /* | |
1048 | * content selection pattern - do fix if pattern found | |
1049 | */ | |
1050 | tSCC zAlpha_Pthread_InitSelect0[] = | |
4964185a | 1051 | " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$"; |
31e7bff5 | 1052 | |
1053 | #define ALPHA_PTHREAD_INIT_TEST_CT 1 | |
1054 | static tTestDesc aAlpha_Pthread_InitTests[] = { | |
1055 | { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, }; | |
1056 | ||
1057 | /* | |
1058 | * Fix Command Arguments for Alpha_Pthread_Init | |
1059 | */ | |
1060 | static const char* apzAlpha_Pthread_InitPatch[] = { "sed", | |
1061 | "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\ | |
1062 | s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\ | |
1063 | s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\ | |
1064 | s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\ | |
1065 | s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\ | |
1066 | s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n", | |
1067 | (char*)NULL }; | |
1068 | ||
fdb8fb96 | 1069 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1070 | * | |
5daf7ede | 1071 | * Description of Alpha_Sbrk fix |
fdb8fb96 | 1072 | */ |
1073 | tSCC zAlpha_SbrkName[] = | |
d4c4b01d | 1074 | "alpha_sbrk"; |
1075 | ||
fdb8fb96 | 1076 | /* |
1077 | * File name selection pattern | |
1078 | */ | |
1079 | tSCC zAlpha_SbrkList[] = | |
e9afa104 | 1080 | "unistd.h\0"; |
fdb8fb96 | 1081 | /* |
1082 | * Machine/OS name selection pattern | |
1083 | */ | |
1084 | #define apzAlpha_SbrkMachs (const char**)NULL | |
1085 | ||
1086 | /* | |
c1b28c63 | 1087 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1088 | */ |
1089 | tSCC zAlpha_SbrkSelect0[] = | |
1090 | "char[ \t]*\\*[\t ]*sbrk[ \t]*\\("; | |
1091 | ||
1092 | #define ALPHA_SBRK_TEST_CT 1 | |
2548396b | 1093 | static tTestDesc aAlpha_SbrkTests[] = { |
5daf7ede | 1094 | { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1095 | |
1096 | /* | |
1097 | * Fix Command Arguments for Alpha_Sbrk | |
1098 | */ | |
2548396b | 1099 | static const char* apzAlpha_SbrkPatch[] = { |
472aa368 | 1100 | "format", |
1101 | "void *sbrk(", | |
fdb8fb96 | 1102 | (char*)NULL }; |
1103 | ||
cc567216 | 1104 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1105 | * | |
1106 | * Description of Alpha_Wchar fix | |
1107 | */ | |
1108 | tSCC zAlpha_WcharName[] = | |
1109 | "alpha_wchar"; | |
1110 | ||
1111 | /* | |
1112 | * File name selection pattern | |
1113 | */ | |
1114 | tSCC zAlpha_WcharList[] = | |
e9afa104 | 1115 | "wchar.h\0"; |
cc567216 | 1116 | /* |
1117 | * Machine/OS name selection pattern | |
1118 | */ | |
1119 | tSCC* apzAlpha_WcharMachs[] = { | |
1120 | "alpha*-dec-osf4*", | |
1121 | (const char*)NULL }; | |
1122 | ||
1123 | /* | |
1124 | * content selection pattern - do fix if pattern found | |
1125 | */ | |
1126 | tSCC zAlpha_WcharSelect0[] = | |
1127 | "#define wcstok wcstok_r"; | |
1128 | ||
1129 | #define ALPHA_WCHAR_TEST_CT 1 | |
1130 | static tTestDesc aAlpha_WcharTests[] = { | |
1131 | { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, }; | |
1132 | ||
1133 | /* | |
1134 | * Fix Command Arguments for Alpha_Wchar | |
1135 | */ | |
1136 | static const char* apzAlpha_WcharPatch[] = { "sed", | |
1137 | "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@", | |
1138 | "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@", | |
1139 | (char*)NULL }; | |
1140 | ||
fdb8fb96 | 1141 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1142 | * | |
2c59c6d3 | 1143 | * Description of Avoid_Bool_Define fix |
fdb8fb96 | 1144 | */ |
2c59c6d3 | 1145 | tSCC zAvoid_Bool_DefineName[] = |
1146 | "avoid_bool_define"; | |
d4c4b01d | 1147 | |
fdb8fb96 | 1148 | /* |
1149 | * File name selection pattern | |
1150 | */ | |
2c59c6d3 | 1151 | tSCC zAvoid_Bool_DefineList[] = |
e9afa104 | 1152 | "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0"; |
fdb8fb96 | 1153 | /* |
1154 | * Machine/OS name selection pattern | |
1155 | */ | |
2c59c6d3 | 1156 | #define apzAvoid_Bool_DefineMachs (const char**)NULL |
ada96dc2 | 1157 | |
1158 | /* | |
1159 | * content selection pattern - do fix if pattern found | |
1160 | */ | |
2c59c6d3 | 1161 | tSCC zAvoid_Bool_DefineSelect0[] = |
1162 | "#[ \t]*define[ \t]+bool[ \t]"; | |
1163 | ||
a83746ef | 1164 | /* |
1165 | * content bypass pattern - skip fix if pattern found | |
1166 | */ | |
1167 | tSCC zAvoid_Bool_DefineBypass0[] = | |
162e05b3 | 1168 | "__cplusplus"; |
a83746ef | 1169 | |
1170 | #define AVOID_BOOL_DEFINE_TEST_CT 2 | |
2548396b | 1171 | static tTestDesc aAvoid_Bool_DefineTests[] = { |
a83746ef | 1172 | { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL }, |
2c59c6d3 | 1173 | { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, }; |
ada96dc2 | 1174 | |
1175 | /* | |
2c59c6d3 | 1176 | * Fix Command Arguments for Avoid_Bool_Define |
ada96dc2 | 1177 | */ |
2548396b | 1178 | static const char* apzAvoid_Bool_DefinePatch[] = { |
2c59c6d3 | 1179 | "format", |
1180 | "#ifndef __cplusplus\n\ | |
1181 | %0\n\ | |
1182 | #endif", | |
1183 | "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*", | |
1184 | (char*)NULL }; | |
ada96dc2 | 1185 | |
2c59c6d3 | 1186 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1187 | * | |
1188 | * Description of Avoid_Bool_Type fix | |
1189 | */ | |
2c59c6d3 | 1190 | tSCC zAvoid_Bool_TypeName[] = |
1191 | "avoid_bool_type"; | |
fdb8fb96 | 1192 | |
1193 | /* | |
2c59c6d3 | 1194 | * File name selection pattern |
fdb8fb96 | 1195 | */ |
2c59c6d3 | 1196 | tSCC zAvoid_Bool_TypeList[] = |
e9afa104 | 1197 | "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0"; |
2c59c6d3 | 1198 | /* |
1199 | * Machine/OS name selection pattern | |
1200 | */ | |
1201 | #define apzAvoid_Bool_TypeMachs (const char**)NULL | |
1202 | ||
1203 | /* | |
1204 | * content selection pattern - do fix if pattern found | |
1205 | */ | |
1206 | tSCC zAvoid_Bool_TypeSelect0[] = | |
1207 | "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;"; | |
1208 | ||
a83746ef | 1209 | /* |
1210 | * content bypass pattern - skip fix if pattern found | |
1211 | */ | |
1212 | tSCC zAvoid_Bool_TypeBypass0[] = | |
162e05b3 | 1213 | "__cplusplus"; |
a83746ef | 1214 | |
1215 | #define AVOID_BOOL_TYPE_TEST_CT 2 | |
2548396b | 1216 | static tTestDesc aAvoid_Bool_TypeTests[] = { |
a83746ef | 1217 | { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL }, |
2c59c6d3 | 1218 | { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, }; |
1219 | ||
1220 | /* | |
1221 | * Fix Command Arguments for Avoid_Bool_Type | |
1222 | */ | |
2548396b | 1223 | static const char* apzAvoid_Bool_TypePatch[] = { |
2c59c6d3 | 1224 | "format", |
1225 | "#ifndef __cplusplus\n\ | |
1226 | %0\n\ | |
1227 | #endif", | |
fdb8fb96 | 1228 | (char*)NULL }; |
1229 | ||
7ab30fe8 | 1230 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1231 | * | |
1232 | * Description of Avoid_Wchar_T_Type fix | |
1233 | */ | |
7ab30fe8 | 1234 | tSCC zAvoid_Wchar_T_TypeName[] = |
1235 | "avoid_wchar_t_type"; | |
1236 | ||
1237 | /* | |
1238 | * File name selection pattern | |
1239 | */ | |
1240 | #define zAvoid_Wchar_T_TypeList (char*)NULL | |
1241 | /* | |
1242 | * Machine/OS name selection pattern | |
1243 | */ | |
1244 | #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL | |
1245 | ||
1246 | /* | |
1247 | * content selection pattern - do fix if pattern found | |
1248 | */ | |
1249 | tSCC zAvoid_Wchar_T_TypeSelect0[] = | |
1250 | "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;"; | |
1251 | ||
5f6aa019 | 1252 | /* |
1253 | * content bypass pattern - skip fix if pattern found | |
1254 | */ | |
1255 | tSCC zAvoid_Wchar_T_TypeBypass0[] = | |
37e6e5d2 | 1256 | "__cplusplus"; |
5f6aa019 | 1257 | tSCC zAvoid_Wchar_T_TypeBypass1[] = |
1258 | "_LINUX_NLS_H"; | |
1259 | tSCC zAvoid_Wchar_T_TypeBypass2[] = | |
1260 | "XFree86: xc/lib/X11/Xlib\\.h"; | |
1261 | ||
1262 | #define AVOID_WCHAR_T_TYPE_TEST_CT 4 | |
7ab30fe8 | 1263 | static tTestDesc aAvoid_Wchar_T_TypeTests[] = { |
5f6aa019 | 1264 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL }, |
1265 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL }, | |
1266 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL }, | |
7ab30fe8 | 1267 | { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, }; |
1268 | ||
1269 | /* | |
1270 | * Fix Command Arguments for Avoid_Wchar_T_Type | |
1271 | */ | |
1272 | static const char* apzAvoid_Wchar_T_TypePatch[] = { | |
1273 | "format", | |
1274 | "#ifndef __cplusplus\n\ | |
1275 | %0\n\ | |
1276 | #endif", | |
7ab30fe8 | 1277 | (char*)NULL }; |
1278 | ||
fdb8fb96 | 1279 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1280 | * | |
5daf7ede | 1281 | * Description of Bad_Struct_Term fix |
fdb8fb96 | 1282 | */ |
1283 | tSCC zBad_Struct_TermName[] = | |
d4c4b01d | 1284 | "bad_struct_term"; |
1285 | ||
fdb8fb96 | 1286 | /* |
1287 | * File name selection pattern | |
1288 | */ | |
1289 | tSCC zBad_Struct_TermList[] = | |
e9afa104 | 1290 | "curses.h\0"; |
fdb8fb96 | 1291 | /* |
1292 | * Machine/OS name selection pattern | |
1293 | */ | |
1294 | #define apzBad_Struct_TermMachs (const char**)NULL | |
1295 | ||
1296 | /* | |
c1b28c63 | 1297 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1298 | */ |
1299 | tSCC zBad_Struct_TermSelect0[] = | |
1300 | "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;"; | |
1301 | ||
1302 | #define BAD_STRUCT_TERM_TEST_CT 1 | |
2548396b | 1303 | static tTestDesc aBad_Struct_TermTests[] = { |
5daf7ede | 1304 | { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1305 | |
1306 | /* | |
1307 | * Fix Command Arguments for Bad_Struct_Term | |
1308 | */ | |
2548396b | 1309 | static const char* apzBad_Struct_TermPatch[] = { |
2c59c6d3 | 1310 | "format", |
1311 | "struct term;", | |
fdb8fb96 | 1312 | (char*)NULL }; |
1313 | ||
1314 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1315 | * | |
5daf7ede | 1316 | * Description of Badquote fix |
fdb8fb96 | 1317 | */ |
1318 | tSCC zBadquoteName[] = | |
d4c4b01d | 1319 | "badquote"; |
1320 | ||
fdb8fb96 | 1321 | /* |
1322 | * File name selection pattern | |
1323 | */ | |
1324 | tSCC zBadquoteList[] = | |
e9afa104 | 1325 | "sundev/vuid_event.h\0"; |
fdb8fb96 | 1326 | /* |
1327 | * Machine/OS name selection pattern | |
1328 | */ | |
1329 | #define apzBadquoteMachs (const char**)NULL | |
2c59c6d3 | 1330 | |
1331 | /* | |
1332 | * content selection pattern - do fix if pattern found | |
1333 | */ | |
1334 | tSCC zBadquoteSelect0[] = | |
1335 | "doesn't"; | |
1336 | ||
1337 | #define BADQUOTE_TEST_CT 1 | |
2548396b | 1338 | static tTestDesc aBadquoteTests[] = { |
2c59c6d3 | 1339 | { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1340 | |
1341 | /* | |
1342 | * Fix Command Arguments for Badquote | |
1343 | */ | |
2548396b | 1344 | static const char* apzBadquotePatch[] = { |
2c59c6d3 | 1345 | "format", |
1346 | "does not", | |
fdb8fb96 | 1347 | (char*)NULL }; |
1348 | ||
fdb8fb96 | 1349 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1350 | * | |
5daf7ede | 1351 | * Description of Broken_Assert_Stdio fix |
fdb8fb96 | 1352 | */ |
1353 | tSCC zBroken_Assert_StdioName[] = | |
d4c4b01d | 1354 | "broken_assert_stdio"; |
1355 | ||
fdb8fb96 | 1356 | /* |
1357 | * File name selection pattern | |
1358 | */ | |
1359 | tSCC zBroken_Assert_StdioList[] = | |
e9afa104 | 1360 | "assert.h\0"; |
fdb8fb96 | 1361 | /* |
1362 | * Machine/OS name selection pattern | |
1363 | */ | |
1364 | #define apzBroken_Assert_StdioMachs (const char**)NULL | |
1365 | ||
1366 | /* | |
c1b28c63 | 1367 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1368 | */ |
1369 | tSCC zBroken_Assert_StdioSelect0[] = | |
1370 | "stderr"; | |
1371 | ||
1372 | /* | |
c1b28c63 | 1373 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 1374 | */ |
1375 | tSCC zBroken_Assert_StdioBypass0[] = | |
52686fb5 | 1376 | "include.*stdio\\.h"; |
fdb8fb96 | 1377 | |
1378 | #define BROKEN_ASSERT_STDIO_TEST_CT 2 | |
2548396b | 1379 | static tTestDesc aBroken_Assert_StdioTests[] = { |
5daf7ede | 1380 | { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL }, |
1381 | { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 1382 | |
1383 | /* | |
1384 | * Fix Command Arguments for Broken_Assert_Stdio | |
1385 | */ | |
2548396b | 1386 | static const char* apzBroken_Assert_StdioPatch[] = { |
e6650807 | 1387 | "wrap", |
1388 | "#include <stdio.h>\n", | |
fdb8fb96 | 1389 | (char*)NULL }; |
1390 | ||
1391 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1392 | * | |
5daf7ede | 1393 | * Description of Broken_Assert_Stdlib fix |
fdb8fb96 | 1394 | */ |
1395 | tSCC zBroken_Assert_StdlibName[] = | |
d4c4b01d | 1396 | "broken_assert_stdlib"; |
1397 | ||
fdb8fb96 | 1398 | /* |
1399 | * File name selection pattern | |
1400 | */ | |
1401 | tSCC zBroken_Assert_StdlibList[] = | |
e9afa104 | 1402 | "assert.h\0"; |
fdb8fb96 | 1403 | /* |
1404 | * Machine/OS name selection pattern | |
1405 | */ | |
1406 | #define apzBroken_Assert_StdlibMachs (const char**)NULL | |
1407 | ||
1408 | /* | |
c1b28c63 | 1409 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1410 | */ |
1411 | tSCC zBroken_Assert_StdlibSelect0[] = | |
1412 | "exit *\\(|abort *\\("; | |
1413 | ||
1414 | /* | |
c1b28c63 | 1415 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 1416 | */ |
1417 | tSCC zBroken_Assert_StdlibBypass0[] = | |
52686fb5 | 1418 | "include.*stdlib\\.h"; |
fdb8fb96 | 1419 | |
1420 | #define BROKEN_ASSERT_STDLIB_TEST_CT 2 | |
2548396b | 1421 | static tTestDesc aBroken_Assert_StdlibTests[] = { |
5daf7ede | 1422 | { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL }, |
1423 | { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 1424 | |
1425 | /* | |
1426 | * Fix Command Arguments for Broken_Assert_Stdlib | |
1427 | */ | |
2548396b | 1428 | static const char* apzBroken_Assert_StdlibPatch[] = { |
e6650807 | 1429 | "wrap", |
1430 | "#ifdef __cplusplus\n\ | |
1431 | #include <stdlib.h>\n\ | |
1432 | #endif\n", | |
fdb8fb96 | 1433 | (char*)NULL }; |
1434 | ||
58d8674b | 1435 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1436 | * | |
1437 | * Description of Broken_Cabs fix | |
1438 | */ | |
58d8674b | 1439 | tSCC zBroken_CabsName[] = |
1440 | "broken_cabs"; | |
1441 | ||
1442 | /* | |
1443 | * File name selection pattern | |
1444 | */ | |
1445 | tSCC zBroken_CabsList[] = | |
e9afa104 | 1446 | "math.h\0architecture/*/math.h\0"; |
58d8674b | 1447 | /* |
1448 | * Machine/OS name selection pattern | |
1449 | */ | |
1450 | #define apzBroken_CabsMachs (const char**)NULL | |
1451 | ||
1452 | /* | |
1453 | * content selection pattern - do fix if pattern found | |
1454 | */ | |
1455 | tSCC zBroken_CabsSelect0[] = | |
19754f2b | 1456 | "^extern[ \t]+double[ \t]+cabs"; |
58d8674b | 1457 | |
1458 | #define BROKEN_CABS_TEST_CT 1 | |
2548396b | 1459 | static tTestDesc aBroken_CabsTests[] = { |
58d8674b | 1460 | { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, }; |
1461 | ||
1462 | /* | |
1463 | * Fix Command Arguments for Broken_Cabs | |
1464 | */ | |
462510b2 | 1465 | static const char* apzBroken_CabsPatch[] = { "sed", |
1466 | "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//", | |
1467 | "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//", | |
58d8674b | 1468 | (char*)NULL }; |
1469 | ||
baee91be | 1470 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1471 | * | |
1472 | * Description of Broken_Nan fix | |
1473 | */ | |
1474 | tSCC zBroken_NanName[] = | |
1475 | "broken_nan"; | |
1476 | ||
1477 | /* | |
1478 | * File name selection pattern | |
1479 | */ | |
1480 | tSCC zBroken_NanList[] = | |
e9afa104 | 1481 | "architecture/ppc/math.h\0architecture/*/math.h\0"; |
baee91be | 1482 | /* |
1483 | * Machine/OS name selection pattern | |
1484 | */ | |
1485 | #define apzBroken_NanMachs (const char**)NULL | |
1486 | ||
1487 | /* | |
1488 | * content selection pattern - do fix if pattern found | |
1489 | */ | |
1490 | tSCC zBroken_NanSelect0[] = | |
1491 | "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)"; | |
1492 | ||
1493 | /* | |
1494 | * content bypass pattern - skip fix if pattern found | |
1495 | */ | |
1496 | tSCC zBroken_NanBypass0[] = | |
1497 | "powl"; | |
1498 | ||
1499 | #define BROKEN_NAN_TEST_CT 2 | |
1500 | static tTestDesc aBroken_NanTests[] = { | |
1501 | { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL }, | |
1502 | { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, }; | |
1503 | ||
1504 | /* | |
1505 | * Fix Command Arguments for Broken_Nan | |
1506 | */ | |
1507 | static const char* apzBroken_NanPatch[] = { | |
1508 | "format", | |
1509 | "#if 1", | |
1510 | (char*)NULL }; | |
1511 | ||
d45e22c2 | 1512 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1513 | * | |
1514 | * Description of Bsd_Stdio_Attrs_Conflict fix | |
1515 | */ | |
1516 | tSCC zBsd_Stdio_Attrs_ConflictName[] = | |
1517 | "bsd_stdio_attrs_conflict"; | |
1518 | ||
1519 | /* | |
1520 | * File name selection pattern | |
1521 | */ | |
1522 | tSCC zBsd_Stdio_Attrs_ConflictList[] = | |
e9afa104 | 1523 | "stdio.h\0"; |
d45e22c2 | 1524 | /* |
1525 | * Machine/OS name selection pattern | |
1526 | */ | |
1527 | tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = { | |
1528 | "*-*-*bsd*", | |
1529 | "*-*-*darwin*", | |
1530 | (const char*)NULL }; | |
1531 | ||
1532 | /* | |
1533 | * content selection pattern - do fix if pattern found | |
1534 | */ | |
1535 | tSCC zBsd_Stdio_Attrs_ConflictSelect0[] = | |
1536 | "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$"; | |
1537 | ||
1538 | #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1 | |
1539 | static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = { | |
1540 | { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, }; | |
1541 | ||
1542 | /* | |
1543 | * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict | |
1544 | */ | |
1545 | static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = { | |
1546 | "format", | |
1547 | "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\ | |
1548 | #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\ | |
1549 | int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");", | |
1550 | (char*)NULL }; | |
1551 | ||
38ebab8a | 1552 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1553 | * | |
cfe5be71 | 1554 | * Description of Ctrl_Quotes_Def fix |
38ebab8a | 1555 | */ |
cfe5be71 | 1556 | tSCC zCtrl_Quotes_DefName[] = |
1557 | "ctrl_quotes_def"; | |
d4c4b01d | 1558 | |
38ebab8a | 1559 | /* |
1560 | * File name selection pattern | |
1561 | */ | |
cfe5be71 | 1562 | #define zCtrl_Quotes_DefList (char*)NULL |
38ebab8a | 1563 | /* |
1564 | * Machine/OS name selection pattern | |
1565 | */ | |
cfe5be71 | 1566 | #define apzCtrl_Quotes_DefMachs (const char**)NULL |
38ebab8a | 1567 | |
1568 | /* | |
cfe5be71 | 1569 | * content selection pattern - do fix if pattern found |
38ebab8a | 1570 | */ |
cfe5be71 | 1571 | tSCC zCtrl_Quotes_DefSelect0[] = |
edb5e81d | 1572 | "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]"; |
cfe5be71 | 1573 | |
1574 | #define CTRL_QUOTES_DEF_TEST_CT 1 | |
2548396b | 1575 | static tTestDesc aCtrl_Quotes_DefTests[] = { |
cfe5be71 | 1576 | { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, }; |
1577 | ||
1578 | /* | |
1579 | * Fix Command Arguments for Ctrl_Quotes_Def | |
1580 | */ | |
2548396b | 1581 | static const char* apzCtrl_Quotes_DefPatch[] = { |
cfe5be71 | 1582 | "char_macro_def", |
1583 | "CTRL", | |
38ebab8a | 1584 | (char*)NULL }; |
1585 | ||
fdb8fb96 | 1586 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1587 | * | |
cfe5be71 | 1588 | * Description of Ctrl_Quotes_Use fix |
fdb8fb96 | 1589 | */ |
cfe5be71 | 1590 | tSCC zCtrl_Quotes_UseName[] = |
1591 | "ctrl_quotes_use"; | |
d4c4b01d | 1592 | |
fdb8fb96 | 1593 | /* |
1594 | * File name selection pattern | |
1595 | */ | |
cfe5be71 | 1596 | #define zCtrl_Quotes_UseList (char*)NULL |
fdb8fb96 | 1597 | /* |
1598 | * Machine/OS name selection pattern | |
1599 | */ | |
cfe5be71 | 1600 | #define apzCtrl_Quotes_UseMachs (const char**)NULL |
fdb8fb96 | 1601 | |
1602 | /* | |
cfe5be71 | 1603 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1604 | */ |
cfe5be71 | 1605 | tSCC zCtrl_Quotes_UseSelect0[] = |
1606 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']"; | |
1607 | ||
1608 | #define CTRL_QUOTES_USE_TEST_CT 1 | |
2548396b | 1609 | static tTestDesc aCtrl_Quotes_UseTests[] = { |
cfe5be71 | 1610 | { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, }; |
1611 | ||
1612 | /* | |
1613 | * Fix Command Arguments for Ctrl_Quotes_Use | |
1614 | */ | |
2548396b | 1615 | static const char* apzCtrl_Quotes_UsePatch[] = { |
cfe5be71 | 1616 | "char_macro_use", |
1617 | "CTRL", | |
fdb8fb96 | 1618 | (char*)NULL }; |
1619 | ||
fdb8fb96 | 1620 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1621 | * | |
cfe5be71 | 1622 | * Description of Cxx_Unready fix |
fdb8fb96 | 1623 | */ |
cfe5be71 | 1624 | tSCC zCxx_UnreadyName[] = |
1625 | "cxx_unready"; | |
d4c4b01d | 1626 | |
fdb8fb96 | 1627 | /* |
1628 | * File name selection pattern | |
1629 | */ | |
cfe5be71 | 1630 | tSCC zCxx_UnreadyList[] = |
e9afa104 | 1631 | "sys/mman.h\0rpc/types.h\0"; |
fdb8fb96 | 1632 | /* |
1633 | * Machine/OS name selection pattern | |
1634 | */ | |
cfe5be71 | 1635 | #define apzCxx_UnreadyMachs (const char**)NULL |
fdb8fb96 | 1636 | |
1637 | /* | |
c1b28c63 | 1638 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1639 | */ |
cfe5be71 | 1640 | tSCC zCxx_UnreadySelect0[] = |
1641 | "[^#]+malloc.*;"; | |
fdb8fb96 | 1642 | |
cfe5be71 | 1643 | /* |
1644 | * content bypass pattern - skip fix if pattern found | |
1645 | */ | |
1646 | tSCC zCxx_UnreadyBypass0[] = | |
1647 | "\"C\"|__BEGIN_DECLS"; | |
1648 | ||
1649 | #define CXX_UNREADY_TEST_CT 2 | |
2548396b | 1650 | static tTestDesc aCxx_UnreadyTests[] = { |
cfe5be71 | 1651 | { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, |
1652 | { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 1653 | |
1654 | /* | |
cfe5be71 | 1655 | * Fix Command Arguments for Cxx_Unready |
fdb8fb96 | 1656 | */ |
2548396b | 1657 | static const char* apzCxx_UnreadyPatch[] = { |
cfe5be71 | 1658 | "wrap", |
1659 | "#ifdef __cplusplus\n\ | |
1660 | extern \"C\" {\n\ | |
1661 | #endif\n", | |
1662 | "#ifdef __cplusplus\n\ | |
1663 | }\n\ | |
1664 | #endif\n", | |
fdb8fb96 | 1665 | (char*)NULL }; |
1666 | ||
1908d6ac | 1667 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1668 | * | |
1669 | * Description of Darwin_Externc fix | |
1670 | */ | |
1671 | tSCC zDarwin_ExterncName[] = | |
1672 | "darwin_externc"; | |
1673 | ||
1674 | /* | |
1675 | * File name selection pattern | |
1676 | */ | |
1677 | tSCC zDarwin_ExterncList[] = | |
1678 | "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0"; | |
1679 | /* | |
1680 | * Machine/OS name selection pattern | |
1681 | */ | |
1682 | tSCC* apzDarwin_ExterncMachs[] = { | |
1683 | "*-*-darwin*", | |
1684 | (const char*)NULL }; | |
1685 | ||
1686 | /* | |
1687 | * content bypass pattern - skip fix if pattern found | |
1688 | */ | |
1689 | tSCC zDarwin_ExterncBypass0[] = | |
1690 | "extern \"C\""; | |
1691 | tSCC zDarwin_ExterncBypass1[] = | |
1692 | "__BEGIN_DECLS"; | |
1693 | ||
1694 | #define DARWIN_EXTERNC_TEST_CT 2 | |
1695 | static tTestDesc aDarwin_ExterncTests[] = { | |
1696 | { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL }, | |
1697 | { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, }; | |
1698 | ||
1699 | /* | |
1700 | * Fix Command Arguments for Darwin_Externc | |
1701 | */ | |
1702 | static const char* apzDarwin_ExterncPatch[] = { | |
1703 | "wrap", | |
1704 | "#ifdef __cplusplus\n\ | |
1705 | extern \"C\" {\n\ | |
1706 | #endif\n", | |
1707 | "#ifdef __cplusplus\n\ | |
1708 | }\n\ | |
1709 | #endif\n", | |
1710 | (char*)NULL }; | |
1711 | ||
975d636c | 1712 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1713 | * | |
1714 | * Description of Darwin_Gcc4_Breakage fix | |
1715 | */ | |
1716 | tSCC zDarwin_Gcc4_BreakageName[] = | |
1717 | "darwin_gcc4_breakage"; | |
1718 | ||
1719 | /* | |
1720 | * File name selection pattern | |
1721 | */ | |
1722 | tSCC zDarwin_Gcc4_BreakageList[] = | |
e9afa104 | 1723 | "AvailabilityMacros.h\0"; |
975d636c | 1724 | /* |
1725 | * Machine/OS name selection pattern | |
1726 | */ | |
1727 | tSCC* apzDarwin_Gcc4_BreakageMachs[] = { | |
1728 | "*-*-darwin*", | |
1729 | (const char*)NULL }; | |
1730 | ||
1731 | /* | |
1732 | * content selection pattern - do fix if pattern found | |
1733 | */ | |
1734 | tSCC zDarwin_Gcc4_BreakageSelect0[] = | |
1735 | "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)"; | |
1736 | ||
1737 | #define DARWIN_GCC4_BREAKAGE_TEST_CT 1 | |
1738 | static tTestDesc aDarwin_Gcc4_BreakageTests[] = { | |
1739 | { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; | |
1740 | ||
1741 | /* | |
1742 | * Fix Command Arguments for Darwin_Gcc4_Breakage | |
1743 | */ | |
1744 | static const char* apzDarwin_Gcc4_BreakagePatch[] = { | |
1745 | "format", | |
1746 | "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))", | |
1747 | (char*)NULL }; | |
1748 | ||
3067e435 | 1749 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1750 | * | |
1751 | * Description of Darwin_Private_Extern fix | |
1752 | */ | |
1753 | tSCC zDarwin_Private_ExternName[] = | |
1754 | "darwin_private_extern"; | |
1755 | ||
1756 | /* | |
1757 | * File name selection pattern | |
1758 | */ | |
1759 | tSCC zDarwin_Private_ExternList[] = | |
e9afa104 | 1760 | "mach-o/dyld.h\0"; |
3067e435 | 1761 | /* |
1762 | * Machine/OS name selection pattern | |
1763 | */ | |
1764 | tSCC* apzDarwin_Private_ExternMachs[] = { | |
1765 | "*-*-darwin*", | |
1766 | (const char*)NULL }; | |
1767 | ||
1768 | /* | |
1769 | * content selection pattern - do fix if pattern found | |
1770 | */ | |
1771 | tSCC zDarwin_Private_ExternSelect0[] = | |
1772 | "__private_extern__ [a-z_]+ _dyld_"; | |
1773 | ||
1774 | #define DARWIN_PRIVATE_EXTERN_TEST_CT 1 | |
1775 | static tTestDesc aDarwin_Private_ExternTests[] = { | |
1776 | { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, }; | |
1777 | ||
1778 | /* | |
1779 | * Fix Command Arguments for Darwin_Private_Extern | |
1780 | */ | |
1781 | static const char* apzDarwin_Private_ExternPatch[] = { | |
1782 | "format", | |
1783 | "extern", | |
1784 | "__private_extern__", | |
1785 | (char*)NULL }; | |
1786 | ||
fdb8fb96 | 1787 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1788 | * | |
cfe5be71 | 1789 | * Description of Dec_Intern_Asm fix |
fdb8fb96 | 1790 | */ |
cfe5be71 | 1791 | tSCC zDec_Intern_AsmName[] = |
1792 | "dec_intern_asm"; | |
d4c4b01d | 1793 | |
fdb8fb96 | 1794 | /* |
1795 | * File name selection pattern | |
1796 | */ | |
cfe5be71 | 1797 | tSCC zDec_Intern_AsmList[] = |
e9afa104 | 1798 | "c_asm.h\0"; |
fdb8fb96 | 1799 | /* |
1800 | * Machine/OS name selection pattern | |
1801 | */ | |
cfe5be71 | 1802 | #define apzDec_Intern_AsmMachs (const char**)NULL |
1803 | #define DEC_INTERN_ASM_TEST_CT 0 | |
1804 | #define aDec_Intern_AsmTests (tTestDesc*)NULL | |
fdb8fb96 | 1805 | |
1806 | /* | |
cfe5be71 | 1807 | * Fix Command Arguments for Dec_Intern_Asm |
fdb8fb96 | 1808 | */ |
2548396b | 1809 | static const char* apzDec_Intern_AsmPatch[] = { "sed", |
cfe5be71 | 1810 | "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\ |
1811 | #ifdef __DECC\n", | |
1812 | "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ | |
1813 | #endif\n", | |
1814 | (char*)NULL }; | |
fdb8fb96 | 1815 | |
8c74272d | 1816 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1817 | * | |
1818 | * Description of Djgpp_Wchar_H fix | |
1819 | */ | |
8c74272d | 1820 | tSCC zDjgpp_Wchar_HName[] = |
1821 | "djgpp_wchar_h"; | |
1822 | ||
1823 | /* | |
1824 | * File name selection pattern | |
1825 | */ | |
1826 | #define zDjgpp_Wchar_HList (char*)NULL | |
1827 | /* | |
1828 | * Machine/OS name selection pattern | |
1829 | */ | |
1830 | #define apzDjgpp_Wchar_HMachs (const char**)NULL | |
1831 | ||
1832 | /* | |
1833 | * content selection pattern - do fix if pattern found | |
1834 | */ | |
1835 | tSCC zDjgpp_Wchar_HSelect0[] = | |
1836 | "__DJ_wint_t"; | |
1837 | ||
1838 | /* | |
1839 | * content bypass pattern - skip fix if pattern found | |
1840 | */ | |
1841 | tSCC zDjgpp_Wchar_HBypass0[] = | |
1842 | "sys/djtypes.h"; | |
1843 | ||
1844 | #define DJGPP_WCHAR_H_TEST_CT 2 | |
1845 | static tTestDesc aDjgpp_Wchar_HTests[] = { | |
1846 | { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL }, | |
1847 | { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, }; | |
1848 | ||
1849 | /* | |
1850 | * Fix Command Arguments for Djgpp_Wchar_H | |
1851 | */ | |
1852 | static const char* apzDjgpp_Wchar_HPatch[] = { | |
1853 | "format", | |
1854 | "%0\n\ | |
1855 | #include <sys/djtypes.h>", | |
1856 | "#include <stddef.h>", | |
1857 | (char*)NULL }; | |
1858 | ||
cfe5be71 | 1859 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1860 | * | |
1861 | * Description of Ecd_Cursor fix | |
1862 | */ | |
cfe5be71 | 1863 | tSCC zEcd_CursorName[] = |
1864 | "ecd_cursor"; | |
fdb8fb96 | 1865 | |
1866 | /* | |
cfe5be71 | 1867 | * File name selection pattern |
fdb8fb96 | 1868 | */ |
cfe5be71 | 1869 | tSCC zEcd_CursorList[] = |
e9afa104 | 1870 | "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0"; |
cfe5be71 | 1871 | /* |
1872 | * Machine/OS name selection pattern | |
1873 | */ | |
1874 | #define apzEcd_CursorMachs (const char**)NULL | |
2c59c6d3 | 1875 | |
1876 | /* | |
1877 | * content selection pattern - do fix if pattern found | |
1878 | */ | |
1879 | tSCC zEcd_CursorSelect0[] = | |
1880 | "ecd\\.cursor"; | |
1881 | ||
1882 | #define ECD_CURSOR_TEST_CT 1 | |
2548396b | 1883 | static tTestDesc aEcd_CursorTests[] = { |
2c59c6d3 | 1884 | { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, }; |
cfe5be71 | 1885 | |
1886 | /* | |
1887 | * Fix Command Arguments for Ecd_Cursor | |
1888 | */ | |
2548396b | 1889 | static const char* apzEcd_CursorPatch[] = { |
2c59c6d3 | 1890 | "format", |
1891 | "ecd_cursor", | |
fdb8fb96 | 1892 | (char*)NULL }; |
1893 | ||
cee0cd59 | 1894 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1895 | * | |
1896 | * Description of Exception_Structure fix | |
1897 | */ | |
1898 | tSCC zException_StructureName[] = | |
1899 | "exception_structure"; | |
1900 | ||
1901 | /* | |
1902 | * File name selection pattern | |
1903 | */ | |
1904 | tSCC zException_StructureList[] = | |
e9afa104 | 1905 | "math.h\0"; |
cee0cd59 | 1906 | /* |
1907 | * Machine/OS name selection pattern | |
1908 | */ | |
1909 | #define apzException_StructureMachs (const char**)NULL | |
1910 | ||
1911 | /* | |
1912 | * content selection pattern - do fix if pattern found | |
1913 | */ | |
1914 | tSCC zException_StructureSelect0[] = | |
1915 | "matherr"; | |
1916 | ||
1917 | /* | |
1918 | * content bypass pattern - skip fix if pattern found | |
1919 | */ | |
1920 | tSCC zException_StructureBypass0[] = | |
634f7a13 | 1921 | "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)"; |
cee0cd59 | 1922 | |
1923 | #define EXCEPTION_STRUCTURE_TEST_CT 2 | |
1924 | static tTestDesc aException_StructureTests[] = { | |
1925 | { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL }, | |
1926 | { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, }; | |
1927 | ||
1928 | /* | |
1929 | * Fix Command Arguments for Exception_Structure | |
1930 | */ | |
1931 | static const char* apzException_StructurePatch[] = { | |
1932 | "wrap", | |
1933 | "struct exception;\n", | |
1934 | (char*)NULL }; | |
1935 | ||
65a92405 | 1936 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1937 | * | |
1938 | * Description of Freebsd_Gcc3_Breakage fix | |
1939 | */ | |
65a92405 | 1940 | tSCC zFreebsd_Gcc3_BreakageName[] = |
1941 | "freebsd_gcc3_breakage"; | |
1942 | ||
1943 | /* | |
1944 | * File name selection pattern | |
1945 | */ | |
1946 | tSCC zFreebsd_Gcc3_BreakageList[] = | |
e9afa104 | 1947 | "sys/cdefs.h\0"; |
65a92405 | 1948 | /* |
1949 | * Machine/OS name selection pattern | |
1950 | */ | |
1951 | tSCC* apzFreebsd_Gcc3_BreakageMachs[] = { | |
1952 | "*-*-freebsd*", | |
1953 | (const char*)NULL }; | |
1954 | ||
1955 | /* | |
1956 | * content selection pattern - do fix if pattern found | |
1957 | */ | |
1958 | tSCC zFreebsd_Gcc3_BreakageSelect0[] = | |
1959 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$"; | |
1960 | ||
1961 | /* | |
1962 | * content bypass pattern - skip fix if pattern found | |
1963 | */ | |
1964 | tSCC zFreebsd_Gcc3_BreakageBypass0[] = | |
1965 | "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)"; | |
1966 | ||
1967 | #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2 | |
1968 | static tTestDesc aFreebsd_Gcc3_BreakageTests[] = { | |
1969 | { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL }, | |
1970 | { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, }; | |
1971 | ||
1972 | /* | |
1973 | * Fix Command Arguments for Freebsd_Gcc3_Breakage | |
1974 | */ | |
1975 | static const char* apzFreebsd_Gcc3_BreakagePatch[] = { | |
1976 | "format", | |
1977 | "%0 || __GNUC__ >= 3", | |
1978 | (char*)NULL }; | |
1979 | ||
f9ac0b87 | 1980 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1981 | * | |
1982 | * Description of Freebsd_Gcc4_Breakage fix | |
1983 | */ | |
1984 | tSCC zFreebsd_Gcc4_BreakageName[] = | |
1985 | "freebsd_gcc4_breakage"; | |
1986 | ||
1987 | /* | |
1988 | * File name selection pattern | |
1989 | */ | |
1990 | tSCC zFreebsd_Gcc4_BreakageList[] = | |
e9afa104 | 1991 | "sys/cdefs.h\0"; |
f9ac0b87 | 1992 | /* |
1993 | * Machine/OS name selection pattern | |
1994 | */ | |
1995 | tSCC* apzFreebsd_Gcc4_BreakageMachs[] = { | |
1996 | "*-*-freebsd*", | |
1997 | (const char*)NULL }; | |
1998 | ||
1999 | /* | |
2000 | * content selection pattern - do fix if pattern found | |
2001 | */ | |
2002 | tSCC zFreebsd_Gcc4_BreakageSelect0[] = | |
2003 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$"; | |
2004 | ||
2005 | #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1 | |
2006 | static tTestDesc aFreebsd_Gcc4_BreakageTests[] = { | |
2007 | { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; | |
2008 | ||
2009 | /* | |
2010 | * Fix Command Arguments for Freebsd_Gcc4_Breakage | |
2011 | */ | |
2012 | static const char* apzFreebsd_Gcc4_BreakagePatch[] = { | |
2013 | "format", | |
2014 | "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3", | |
2015 | (char*)NULL }; | |
2016 | ||
efb8e7bf | 2017 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2018 | * | |
2019 | * Description of Glibc_C99_Inline_1 fix | |
2020 | */ | |
2021 | tSCC zGlibc_C99_Inline_1Name[] = | |
2022 | "glibc_c99_inline_1"; | |
2023 | ||
2024 | /* | |
2025 | * File name selection pattern | |
2026 | */ | |
2027 | tSCC zGlibc_C99_Inline_1List[] = | |
e9afa104 | 2028 | "features.h\0*/features.h\0"; |
efb8e7bf | 2029 | /* |
2030 | * Machine/OS name selection pattern | |
2031 | */ | |
2032 | #define apzGlibc_C99_Inline_1Machs (const char**)NULL | |
2033 | ||
2034 | /* | |
2035 | * content selection pattern - do fix if pattern found | |
2036 | */ | |
2037 | tSCC zGlibc_C99_Inline_1Select0[] = | |
2038 | "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$"; | |
2039 | ||
2040 | #define GLIBC_C99_INLINE_1_TEST_CT 1 | |
2041 | static tTestDesc aGlibc_C99_Inline_1Tests[] = { | |
2042 | { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, }; | |
2043 | ||
2044 | /* | |
2045 | * Fix Command Arguments for Glibc_C99_Inline_1 | |
2046 | */ | |
2047 | static const char* apzGlibc_C99_Inline_1Patch[] = { | |
2048 | "format", | |
7e4d47f0 | 2049 | "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)", |
efb8e7bf | 2050 | (char*)NULL }; |
2051 | ||
661832db | 2052 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2053 | * | |
2054 | * Description of Glibc_C99_Inline_1a fix | |
2055 | */ | |
2056 | tSCC zGlibc_C99_Inline_1aName[] = | |
2057 | "glibc_c99_inline_1a"; | |
2058 | ||
2059 | /* | |
2060 | * File name selection pattern | |
2061 | */ | |
2062 | tSCC zGlibc_C99_Inline_1aList[] = | |
2063 | "features.h\0*/features.h\0"; | |
2064 | /* | |
2065 | * Machine/OS name selection pattern | |
2066 | */ | |
2067 | #define apzGlibc_C99_Inline_1aMachs (const char**)NULL | |
2068 | ||
2069 | /* | |
2070 | * content selection pattern - do fix if pattern found | |
2071 | */ | |
2072 | tSCC zGlibc_C99_Inline_1aSelect0[] = | |
2073 | "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\ | |
2074 | (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)"; | |
2075 | ||
2076 | #define GLIBC_C99_INLINE_1A_TEST_CT 1 | |
2077 | static tTestDesc aGlibc_C99_Inline_1aTests[] = { | |
2078 | { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, }; | |
2079 | ||
2080 | /* | |
2081 | * Fix Command Arguments for Glibc_C99_Inline_1a | |
2082 | */ | |
2083 | static const char* apzGlibc_C99_Inline_1aPatch[] = { | |
2084 | "format", | |
2085 | "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\ | |
2086 | %2", | |
2087 | (char*)NULL }; | |
2088 | ||
efb8e7bf | 2089 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2090 | * | |
2091 | * Description of Glibc_C99_Inline_2 fix | |
2092 | */ | |
2093 | tSCC zGlibc_C99_Inline_2Name[] = | |
2094 | "glibc_c99_inline_2"; | |
2095 | ||
2096 | /* | |
2097 | * File name selection pattern | |
2098 | */ | |
2099 | tSCC zGlibc_C99_Inline_2List[] = | |
e9afa104 | 2100 | "sys/stat.h\0*/sys/stat.h\0"; |
efb8e7bf | 2101 | /* |
2102 | * Machine/OS name selection pattern | |
2103 | */ | |
2104 | #define apzGlibc_C99_Inline_2Machs (const char**)NULL | |
2105 | ||
2106 | /* | |
2107 | * content selection pattern - do fix if pattern found | |
2108 | */ | |
2109 | tSCC zGlibc_C99_Inline_2Select0[] = | |
2110 | "extern __inline__ int"; | |
2111 | ||
2112 | #define GLIBC_C99_INLINE_2_TEST_CT 1 | |
2113 | static tTestDesc aGlibc_C99_Inline_2Tests[] = { | |
2114 | { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, }; | |
2115 | ||
2116 | /* | |
2117 | * Fix Command Arguments for Glibc_C99_Inline_2 | |
2118 | */ | |
2119 | static const char* apzGlibc_C99_Inline_2Patch[] = { "sed", | |
7e4d47f0 | 2120 | "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
efb8e7bf | 2121 | extern\\\n\ |
2122 | #endif\\\n\ | |
2123 | __inline__ int \\1/", | |
7e4d47f0 | 2124 | "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
efb8e7bf | 2125 | extern\\\n\ |
2126 | #endif\\\n\ | |
7d47204e | 2127 | __inline__ int __REDIRECT\\1 (\\2/", |
7e4d47f0 | 2128 | "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\ |
efb8e7bf | 2129 | extern\\\n\ |
2130 | #endif\\\n\ | |
7d47204e | 2131 | __inline__ int/", |
efb8e7bf | 2132 | (char*)NULL }; |
2133 | ||
2134 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2135 | * | |
2136 | * Description of Glibc_C99_Inline_3 fix | |
2137 | */ | |
2138 | tSCC zGlibc_C99_Inline_3Name[] = | |
2139 | "glibc_c99_inline_3"; | |
2140 | ||
2141 | /* | |
2142 | * File name selection pattern | |
2143 | */ | |
2144 | tSCC zGlibc_C99_Inline_3List[] = | |
e9afa104 | 2145 | "bits/string2.h\0*/bits/string2.h\0"; |
efb8e7bf | 2146 | /* |
2147 | * Machine/OS name selection pattern | |
2148 | */ | |
2149 | #define apzGlibc_C99_Inline_3Machs (const char**)NULL | |
2150 | ||
7e4d47f0 | 2151 | /* |
2152 | * content selection pattern - do fix if pattern found | |
2153 | */ | |
2154 | tSCC zGlibc_C99_Inline_3Select0[] = | |
2155 | "extern __inline"; | |
2156 | ||
efb8e7bf | 2157 | /* |
2158 | * content bypass pattern - skip fix if pattern found | |
2159 | */ | |
2160 | tSCC zGlibc_C99_Inline_3Bypass0[] = | |
661832db | 2161 | "__extern_inline|__GNU_STDC_INLINE__"; |
efb8e7bf | 2162 | |
7e4d47f0 | 2163 | #define GLIBC_C99_INLINE_3_TEST_CT 2 |
efb8e7bf | 2164 | static tTestDesc aGlibc_C99_Inline_3Tests[] = { |
7e4d47f0 | 2165 | { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL }, |
2166 | { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, }; | |
efb8e7bf | 2167 | |
2168 | /* | |
2169 | * Fix Command Arguments for Glibc_C99_Inline_3 | |
2170 | */ | |
2171 | static const char* apzGlibc_C99_Inline_3Patch[] = { | |
2172 | "format", | |
7e4d47f0 | 2173 | "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)", |
efb8e7bf | 2174 | "^# ifdef __cplusplus$", |
2175 | (char*)NULL }; | |
2176 | ||
2177 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2178 | * | |
2179 | * Description of Glibc_C99_Inline_4 fix | |
2180 | */ | |
2181 | tSCC zGlibc_C99_Inline_4Name[] = | |
2182 | "glibc_c99_inline_4"; | |
2183 | ||
2184 | /* | |
2185 | * File name selection pattern | |
2186 | */ | |
2187 | tSCC zGlibc_C99_Inline_4List[] = | |
661832db | 2188 | "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0"; |
efb8e7bf | 2189 | /* |
2190 | * Machine/OS name selection pattern | |
2191 | */ | |
2192 | #define apzGlibc_C99_Inline_4Machs (const char**)NULL | |
2193 | ||
560b9c9b | 2194 | /* |
2195 | * content selection pattern - do fix if pattern found | |
2196 | */ | |
2197 | tSCC zGlibc_C99_Inline_4Select0[] = | |
661832db | 2198 | "(^| )extern __inline"; |
560b9c9b | 2199 | |
efb8e7bf | 2200 | /* |
2201 | * content bypass pattern - skip fix if pattern found | |
2202 | */ | |
2203 | tSCC zGlibc_C99_Inline_4Bypass0[] = | |
661832db | 2204 | "__extern_inline|__gnu_inline__"; |
efb8e7bf | 2205 | |
560b9c9b | 2206 | #define GLIBC_C99_INLINE_4_TEST_CT 2 |
efb8e7bf | 2207 | static tTestDesc aGlibc_C99_Inline_4Tests[] = { |
560b9c9b | 2208 | { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL }, |
2209 | { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, }; | |
efb8e7bf | 2210 | |
2211 | /* | |
2212 | * Fix Command Arguments for Glibc_C99_Inline_4 | |
2213 | */ | |
2214 | static const char* apzGlibc_C99_Inline_4Patch[] = { | |
2215 | "format", | |
661832db | 2216 | "%0 __attribute__ ((__gnu_inline__))", |
efb8e7bf | 2217 | (char*)NULL }; |
2218 | ||
a1b11617 | 2219 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2220 | * | |
2221 | * Description of Glibc_Mutex_Init fix | |
2222 | */ | |
2223 | tSCC zGlibc_Mutex_InitName[] = | |
2224 | "glibc_mutex_init"; | |
2225 | ||
2226 | /* | |
2227 | * File name selection pattern | |
2228 | */ | |
2229 | tSCC zGlibc_Mutex_InitList[] = | |
e9afa104 | 2230 | "pthread.h\0"; |
a1b11617 | 2231 | /* |
2232 | * Machine/OS name selection pattern | |
2233 | */ | |
2234 | #define apzGlibc_Mutex_InitMachs (const char**)NULL | |
2235 | ||
2236 | /* | |
2237 | * content selection pattern - do fix if pattern found | |
2238 | */ | |
2239 | tSCC zGlibc_Mutex_InitSelect0[] = | |
2240 | "\\{ *\\{ *0, *\\} *\\}"; | |
2241 | ||
2242 | #define GLIBC_MUTEX_INIT_TEST_CT 1 | |
2243 | static tTestDesc aGlibc_Mutex_InitTests[] = { | |
2244 | { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, }; | |
2245 | ||
2246 | /* | |
2247 | * Fix Command Arguments for Glibc_Mutex_Init | |
2248 | */ | |
2249 | static const char* apzGlibc_Mutex_InitPatch[] = { "sed", | |
2250 | "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/", | |
d0f017a1 | 2251 | "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/", |
2252 | "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/", | |
a1b11617 | 2253 | "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/", |
d0f017a1 | 2254 | "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/", |
a1b11617 | 2255 | "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/", |
2256 | (char*)NULL }; | |
2257 | ||
3072d11f | 2258 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2259 | * | |
2260 | * Description of Gnu_Types fix | |
2261 | */ | |
2262 | tSCC zGnu_TypesName[] = | |
2263 | "gnu_types"; | |
2264 | ||
2265 | /* | |
2266 | * File name selection pattern | |
2267 | */ | |
2268 | tSCC zGnu_TypesList[] = | |
e9afa104 | 2269 | "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0"; |
3072d11f | 2270 | /* |
2271 | * Machine/OS name selection pattern | |
2272 | */ | |
09a31484 | 2273 | tSCC* apzGnu_TypesMachs[] = { |
2274 | "*-*-solaris2.1[0-9]*", | |
2275 | (const char*)NULL }; | |
3072d11f | 2276 | |
2277 | /* | |
2278 | * content selection pattern - do fix if pattern found | |
2279 | */ | |
2280 | tSCC zGnu_TypesSelect0[] = | |
2281 | "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;"; | |
2282 | ||
2283 | /* | |
2284 | * content bypass pattern - skip fix if pattern found | |
2285 | */ | |
2286 | tSCC zGnu_TypesBypass0[] = | |
2287 | "_GCC_(PTRDIFF|SIZE|WCHAR)_T"; | |
2288 | ||
2289 | #define GNU_TYPES_TEST_CT 2 | |
2290 | static tTestDesc aGnu_TypesTests[] = { | |
2291 | { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL }, | |
2292 | { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, }; | |
2293 | ||
2294 | /* | |
2295 | * Fix Command Arguments for Gnu_Types | |
2296 | */ | |
2297 | static const char* apzGnu_TypesPatch[] = { | |
2298 | "gnu_type", | |
2299 | (char*)NULL }; | |
2300 | ||
fdb8fb96 | 2301 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2302 | * | |
cfe5be71 | 2303 | * Description of Hp_Inline fix |
fdb8fb96 | 2304 | */ |
cfe5be71 | 2305 | tSCC zHp_InlineName[] = |
2306 | "hp_inline"; | |
d4c4b01d | 2307 | |
fdb8fb96 | 2308 | /* |
2309 | * File name selection pattern | |
2310 | */ | |
cfe5be71 | 2311 | tSCC zHp_InlineList[] = |
e9afa104 | 2312 | "sys/spinlock.h\0machine/machparam.h\0"; |
fdb8fb96 | 2313 | /* |
2314 | * Machine/OS name selection pattern | |
2315 | */ | |
cfe5be71 | 2316 | #define apzHp_InlineMachs (const char**)NULL |
52686fb5 | 2317 | |
2318 | /* | |
2319 | * content selection pattern - do fix if pattern found | |
2320 | */ | |
cfe5be71 | 2321 | tSCC zHp_InlineSelect0[] = |
2c59c6d3 | 2322 | "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/"; |
52686fb5 | 2323 | |
cfe5be71 | 2324 | #define HP_INLINE_TEST_CT 1 |
2548396b | 2325 | static tTestDesc aHp_InlineTests[] = { |
cfe5be71 | 2326 | { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2327 | |
2328 | /* | |
cfe5be71 | 2329 | * Fix Command Arguments for Hp_Inline |
fdb8fb96 | 2330 | */ |
2548396b | 2331 | static const char* apzHp_InlinePatch[] = { |
2c59c6d3 | 2332 | "format", |
2333 | "%1<machine/%2.h>", | |
2334 | "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"", | |
fdb8fb96 | 2335 | (char*)NULL }; |
2336 | ||
2337 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2338 | * | |
cfe5be71 | 2339 | * Description of Hp_Sysfile fix |
fdb8fb96 | 2340 | */ |
cfe5be71 | 2341 | tSCC zHp_SysfileName[] = |
2342 | "hp_sysfile"; | |
d4c4b01d | 2343 | |
fdb8fb96 | 2344 | /* |
2345 | * File name selection pattern | |
2346 | */ | |
cfe5be71 | 2347 | tSCC zHp_SysfileList[] = |
e9afa104 | 2348 | "sys/file.h\0"; |
fdb8fb96 | 2349 | /* |
2350 | * Machine/OS name selection pattern | |
2351 | */ | |
cfe5be71 | 2352 | #define apzHp_SysfileMachs (const char**)NULL |
fdb8fb96 | 2353 | |
2354 | /* | |
c1b28c63 | 2355 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2356 | */ |
cfe5be71 | 2357 | tSCC zHp_SysfileSelect0[] = |
2358 | "HPUX_SOURCE"; | |
fdb8fb96 | 2359 | |
cfe5be71 | 2360 | #define HP_SYSFILE_TEST_CT 1 |
2548396b | 2361 | static tTestDesc aHp_SysfileTests[] = { |
cfe5be71 | 2362 | { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2363 | |
2364 | /* | |
cfe5be71 | 2365 | * Fix Command Arguments for Hp_Sysfile |
fdb8fb96 | 2366 | */ |
2548396b | 2367 | static const char* apzHp_SysfilePatch[] = { |
2c59c6d3 | 2368 | "format", |
2369 | "(struct file *, ...)", | |
2370 | "\\(\\.\\.\\.\\)", | |
fdb8fb96 | 2371 | (char*)NULL }; |
2372 | ||
7b900f1a | 2373 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2374 | * | |
2375 | * Description of Hpux10_Cpp_Pow_Inline fix | |
2376 | */ | |
2377 | tSCC zHpux10_Cpp_Pow_InlineName[] = | |
2378 | "hpux10_cpp_pow_inline"; | |
2379 | ||
2380 | /* | |
2381 | * File name selection pattern | |
2382 | */ | |
2383 | tSCC zHpux10_Cpp_Pow_InlineList[] = | |
e9afa104 | 2384 | "fixinc-test-limits.h\0math.h\0"; |
7b900f1a | 2385 | /* |
2386 | * Machine/OS name selection pattern | |
2387 | */ | |
2388 | #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL | |
2389 | ||
2390 | /* | |
2391 | * content selection pattern - do fix if pattern found | |
2392 | */ | |
2393 | tSCC zHpux10_Cpp_Pow_InlineSelect0[] = | |
2394 | "^# +ifdef +__cplusplus\n\ | |
30f9dc1c | 2395 | +\\}\n\ |
2396 | +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\ | |
7b900f1a | 2397 | [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\ |
30f9dc1c | 2398 | +\\}\n\ |
2399 | +extern +\"C\" +\\{\n\ | |
7b900f1a | 2400 | #else\n\ |
2401 | # +endif"; | |
2402 | ||
2403 | #define HPUX10_CPP_POW_INLINE_TEST_CT 1 | |
2404 | static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = { | |
2405 | { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; | |
2406 | ||
2407 | /* | |
2408 | * Fix Command Arguments for Hpux10_Cpp_Pow_Inline | |
2409 | */ | |
2410 | static const char* apzHpux10_Cpp_Pow_InlinePatch[] = { | |
2411 | "format", | |
2412 | "", | |
2413 | (char*)NULL }; | |
2414 | ||
c6738ff5 | 2415 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2416 | * | |
2417 | * Description of Hpux11_Cpp_Pow_Inline fix | |
2418 | */ | |
2419 | tSCC zHpux11_Cpp_Pow_InlineName[] = | |
2420 | "hpux11_cpp_pow_inline"; | |
2421 | ||
2422 | /* | |
2423 | * File name selection pattern | |
2424 | */ | |
2425 | tSCC zHpux11_Cpp_Pow_InlineList[] = | |
e9afa104 | 2426 | "math.h\0"; |
c6738ff5 | 2427 | /* |
2428 | * Machine/OS name selection pattern | |
2429 | */ | |
2430 | #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL | |
2431 | ||
2432 | /* | |
2433 | * content selection pattern - do fix if pattern found | |
2434 | */ | |
2435 | tSCC zHpux11_Cpp_Pow_InlineSelect0[] = | |
30f9dc1c | 2436 | " +inline double pow\\(double d,int expon\\) \\{\n\ |
c6738ff5 | 2437 | +return pow\\(d, \\(double\\)expon\\);\n\ |
30f9dc1c | 2438 | +\\}\n"; |
c6738ff5 | 2439 | |
2440 | #define HPUX11_CPP_POW_INLINE_TEST_CT 1 | |
2441 | static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = { | |
2442 | { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; | |
2443 | ||
2444 | /* | |
2445 | * Fix Command Arguments for Hpux11_Cpp_Pow_Inline | |
2446 | */ | |
2447 | static const char* apzHpux11_Cpp_Pow_InlinePatch[] = { | |
2448 | "format", | |
2449 | "", | |
2450 | (char*)NULL }; | |
2451 | ||
31ee57b1 | 2452 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2453 | * | |
2454 | * Description of Hppa_Hpux_Fp_Macros fix | |
2455 | */ | |
2456 | tSCC zHppa_Hpux_Fp_MacrosName[] = | |
2457 | "hppa_hpux_fp_macros"; | |
2458 | ||
2459 | /* | |
2460 | * File name selection pattern | |
2461 | */ | |
2462 | tSCC zHppa_Hpux_Fp_MacrosList[] = | |
2463 | "math.h\0"; | |
2464 | /* | |
2465 | * Machine/OS name selection pattern | |
2466 | */ | |
2467 | tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = { | |
2468 | "hppa*-hp-hpux11*", | |
2469 | (const char*)NULL }; | |
2470 | ||
2471 | /* | |
2472 | * content selection pattern - do fix if pattern found | |
2473 | */ | |
2474 | tSCC zHppa_Hpux_Fp_MacrosSelect0[] = | |
2475 | "#[ \t]*define[ \t]*FP_NORMAL.*\n\ | |
2476 | #[ \t]*define[ \t]*FP_ZERO.*\n\ | |
2477 | #[ \t]*define[ \t]*FP_INFINITE.*\n\ | |
2478 | #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\ | |
2479 | #[ \t]*define[ \t]*FP_NAN.*\n"; | |
2480 | ||
2481 | #define HPPA_HPUX_FP_MACROS_TEST_CT 1 | |
2482 | static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = { | |
2483 | { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, }; | |
2484 | ||
2485 | /* | |
2486 | * Fix Command Arguments for Hppa_Hpux_Fp_Macros | |
2487 | */ | |
2488 | static const char* apzHppa_Hpux_Fp_MacrosPatch[] = { | |
2489 | "format", | |
2490 | "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\ | |
2491 | #if defined(_INCLUDE_HPUX_SOURCE) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\ | |
2492 | %0#endif\n\n\ | |
2493 | #ifdef _INCLUDE_HPUX_SOURCE\n", | |
2494 | (char*)NULL }; | |
2495 | ||
ca58af19 | 2496 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2497 | * | |
ebf664b2 | 2498 | * Description of Hpux10_Ctype_Declarations1 fix |
ca58af19 | 2499 | */ |
ebf664b2 | 2500 | tSCC zHpux10_Ctype_Declarations1Name[] = |
2501 | "hpux10_ctype_declarations1"; | |
ca58af19 | 2502 | |
2503 | /* | |
2504 | * File name selection pattern | |
2505 | */ | |
ebf664b2 | 2506 | tSCC zHpux10_Ctype_Declarations1List[] = |
e9afa104 | 2507 | "ctype.h\0"; |
ca58af19 | 2508 | /* |
2509 | * Machine/OS name selection pattern | |
2510 | */ | |
ebf664b2 | 2511 | #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL |
ca58af19 | 2512 | |
2513 | /* | |
2514 | * content selection pattern - do fix if pattern found | |
2515 | */ | |
ebf664b2 | 2516 | tSCC zHpux10_Ctype_Declarations1Select0[] = |
2517 | "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)"; | |
ca58af19 | 2518 | |
ebf664b2 | 2519 | /* |
2520 | * content bypass pattern - skip fix if pattern found | |
2521 | */ | |
2522 | tSCC zHpux10_Ctype_Declarations1Bypass0[] = | |
2523 | "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\("; | |
2524 | ||
2525 | #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2 | |
2526 | static tTestDesc aHpux10_Ctype_Declarations1Tests[] = { | |
2527 | { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL }, | |
2528 | { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, }; | |
ca58af19 | 2529 | |
2530 | /* | |
ebf664b2 | 2531 | * Fix Command Arguments for Hpux10_Ctype_Declarations1 |
ca58af19 | 2532 | */ |
ebf664b2 | 2533 | static const char* apzHpux10_Ctype_Declarations1Patch[] = { |
ca58af19 | 2534 | "format", |
ebf664b2 | 2535 | "#ifdef _PROTOTYPES\n\ |
2536 | extern int __tolower(int);\n\ | |
2537 | extern int __toupper(int);\n\ | |
2538 | #else /* NOT _PROTOTYPES */\n\ | |
2539 | extern int __tolower();\n\ | |
2540 | extern int __toupper();\n\ | |
2541 | #endif /* _PROTOTYPES */\n\n\ | |
2542 | %0\n", | |
ca58af19 | 2543 | (char*)NULL }; |
2544 | ||
6b5183e9 | 2545 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2546 | * | |
ebf664b2 | 2547 | * Description of Hpux10_Ctype_Declarations2 fix |
6b5183e9 | 2548 | */ |
ebf664b2 | 2549 | tSCC zHpux10_Ctype_Declarations2Name[] = |
2550 | "hpux10_ctype_declarations2"; | |
6b5183e9 | 2551 | |
2552 | /* | |
2553 | * File name selection pattern | |
2554 | */ | |
ebf664b2 | 2555 | tSCC zHpux10_Ctype_Declarations2List[] = |
e9afa104 | 2556 | "ctype.h\0"; |
6b5183e9 | 2557 | /* |
2558 | * Machine/OS name selection pattern | |
2559 | */ | |
ebf664b2 | 2560 | #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL |
6b5183e9 | 2561 | |
2562 | /* | |
2563 | * content selection pattern - do fix if pattern found | |
2564 | */ | |
ebf664b2 | 2565 | tSCC zHpux10_Ctype_Declarations2Select0[] = |
2566 | "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)"; | |
6b5183e9 | 2567 | |
f281c5b8 | 2568 | /* |
2569 | * content bypass pattern - skip fix if pattern found | |
2570 | */ | |
ebf664b2 | 2571 | tSCC zHpux10_Ctype_Declarations2Bypass0[] = |
2572 | "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\("; | |
f281c5b8 | 2573 | |
ebf664b2 | 2574 | #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2 |
2575 | static tTestDesc aHpux10_Ctype_Declarations2Tests[] = { | |
2576 | { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL }, | |
2577 | { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, }; | |
6b5183e9 | 2578 | |
2579 | /* | |
ebf664b2 | 2580 | * Fix Command Arguments for Hpux10_Ctype_Declarations2 |
6b5183e9 | 2581 | */ |
ebf664b2 | 2582 | static const char* apzHpux10_Ctype_Declarations2Patch[] = { |
2583 | "format", | |
2584 | "%0\n\n\ | |
2585 | #ifdef _PROTOTYPES\n\ | |
2586 | extern int _isalnum(int);\n\ | |
2587 | extern int _isalpha(int);\n\ | |
2588 | extern int _iscntrl(int);\n\ | |
2589 | extern int _isdigit(int);\n\ | |
2590 | extern int _isgraph(int);\n\ | |
2591 | extern int _islower(int);\n\ | |
2592 | extern int _isprint(int);\n\ | |
2593 | extern int _ispunct(int);\n\ | |
2594 | extern int _isspace(int);\n\ | |
2595 | extern int _isupper(int);\n\ | |
2596 | extern int _isxdigit(int);\n\ | |
2597 | # else /* not _PROTOTYPES */\n\ | |
2598 | extern int _isalnum();\n\ | |
2599 | extern int _isalpha();\n\ | |
2600 | extern int _iscntrl();\n\ | |
2601 | extern int _isdigit();\n\ | |
2602 | extern int _isgraph();\n\ | |
2603 | extern int _islower();\n\ | |
2604 | extern int _isprint();\n\ | |
2605 | extern int _ispunct();\n\ | |
2606 | extern int _isspace();\n\ | |
2607 | extern int _isupper();\n\ | |
2608 | extern int _isxdigit();\n\ | |
2609 | #endif /* _PROTOTYPES */\n", | |
2610 | (char*)NULL }; | |
2611 | ||
37935110 | 2612 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2613 | * | |
2614 | * Description of Hpux10_Stdio_Declarations fix | |
2615 | */ | |
2616 | tSCC zHpux10_Stdio_DeclarationsName[] = | |
2617 | "hpux10_stdio_declarations"; | |
2618 | ||
2619 | /* | |
2620 | * File name selection pattern | |
2621 | */ | |
2622 | tSCC zHpux10_Stdio_DeclarationsList[] = | |
e9afa104 | 2623 | "stdio.h\0"; |
37935110 | 2624 | /* |
2625 | * Machine/OS name selection pattern | |
2626 | */ | |
2627 | #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL | |
2628 | ||
2629 | /* | |
2630 | * content selection pattern - do fix if pattern found | |
2631 | */ | |
2632 | tSCC zHpux10_Stdio_DeclarationsSelect0[] = | |
2633 | "^#[ \t]*define _iob[ \t]*__iob"; | |
2634 | ||
2635 | /* | |
2636 | * content bypass pattern - skip fix if pattern found | |
2637 | */ | |
2638 | tSCC zHpux10_Stdio_DeclarationsBypass0[] = | |
2639 | "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\("; | |
2640 | ||
2641 | #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2 | |
2642 | static tTestDesc aHpux10_Stdio_DeclarationsTests[] = { | |
2643 | { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL }, | |
2644 | { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, }; | |
2645 | ||
2646 | /* | |
2647 | * Fix Command Arguments for Hpux10_Stdio_Declarations | |
2648 | */ | |
2649 | static const char* apzHpux10_Stdio_DeclarationsPatch[] = { | |
2650 | "format", | |
2651 | "%0\n\n\ | |
2652 | # if defined(__STDC__) || defined(__cplusplus)\n\ | |
2653 | extern int snprintf(char *, size_t, const char *, ...);\n\ | |
2654 | extern int vsnprintf(char *, size_t, const char *, __va_list);\n\ | |
2655 | # else /* not __STDC__) || __cplusplus */\n\ | |
2656 | extern int snprintf();\n\ | |
2657 | extern int vsnprintf();\n\ | |
2658 | # endif /* __STDC__) || __cplusplus */\n", | |
2659 | (char*)NULL }; | |
2660 | ||
ebf664b2 | 2661 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2662 | * | |
2663 | * Description of Hpux11_Abs fix | |
2664 | */ | |
2665 | tSCC zHpux11_AbsName[] = | |
2666 | "hpux11_abs"; | |
2667 | ||
2668 | /* | |
2669 | * File name selection pattern | |
2670 | */ | |
2671 | tSCC zHpux11_AbsList[] = | |
e9afa104 | 2672 | "stdlib.h\0"; |
ebf664b2 | 2673 | /* |
2674 | * Machine/OS name selection pattern | |
2675 | */ | |
2676 | tSCC* apzHpux11_AbsMachs[] = { | |
2677 | "ia64-hp-hpux11*", | |
2678 | (const char*)NULL }; | |
2679 | ||
2680 | /* | |
2681 | * content selection pattern - do fix if pattern found | |
2682 | */ | |
2683 | tSCC zHpux11_AbsSelect0[] = | |
2684 | "ifndef _MATH_INCLUDED"; | |
2685 | ||
2686 | #define HPUX11_ABS_TEST_CT 1 | |
2687 | static tTestDesc aHpux11_AbsTests[] = { | |
2688 | { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, }; | |
2689 | ||
2690 | /* | |
2691 | * Fix Command Arguments for Hpux11_Abs | |
2692 | */ | |
2693 | static const char* apzHpux11_AbsPatch[] = { | |
2694 | "format", | |
2695 | "if !defined(_MATH_INCLUDED) || defined(__GNUG__)", | |
6b5183e9 | 2696 | (char*)NULL }; |
2697 | ||
05fc9903 | 2698 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2699 | * | |
2700 | * Description of Hpux11_Fabsf fix | |
2701 | */ | |
05fc9903 | 2702 | tSCC zHpux11_FabsfName[] = |
2703 | "hpux11_fabsf"; | |
2704 | ||
2705 | /* | |
2706 | * File name selection pattern | |
2707 | */ | |
2708 | tSCC zHpux11_FabsfList[] = | |
e9afa104 | 2709 | "math.h\0"; |
05fc9903 | 2710 | /* |
2711 | * Machine/OS name selection pattern | |
2712 | */ | |
2713 | #define apzHpux11_FabsfMachs (const char**)NULL | |
2714 | ||
2715 | /* | |
2716 | * content selection pattern - do fix if pattern found | |
2717 | */ | |
2718 | tSCC zHpux11_FabsfSelect0[] = | |
2719 | "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*"; | |
2720 | ||
2721 | /* | |
2722 | * content bypass pattern - skip fix if pattern found | |
2723 | */ | |
2724 | tSCC zHpux11_FabsfBypass0[] = | |
2725 | "__cplusplus"; | |
2726 | ||
2727 | #define HPUX11_FABSF_TEST_CT 2 | |
2548396b | 2728 | static tTestDesc aHpux11_FabsfTests[] = { |
05fc9903 | 2729 | { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL }, |
2730 | { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, }; | |
2731 | ||
2732 | /* | |
2733 | * Fix Command Arguments for Hpux11_Fabsf | |
2734 | */ | |
2548396b | 2735 | static const char* apzHpux11_FabsfPatch[] = { |
05fc9903 | 2736 | "format", |
2737 | "#ifndef __cplusplus\n\ | |
2738 | %0\n\ | |
2739 | #endif", | |
2740 | (char*)NULL }; | |
2741 | ||
c0854bd5 | 2742 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2743 | * | |
2744 | * Description of Hpux11_Size_T fix | |
2745 | */ | |
2746 | tSCC zHpux11_Size_TName[] = | |
2747 | "hpux11_size_t"; | |
2748 | ||
2749 | /* | |
2750 | * File name selection pattern | |
2751 | */ | |
2752 | #define zHpux11_Size_TList (char*)NULL | |
2753 | /* | |
2754 | * Machine/OS name selection pattern | |
2755 | */ | |
2756 | tSCC* apzHpux11_Size_TMachs[] = { | |
3ff85771 | 2757 | "*-hp-hpux11*", |
c0854bd5 | 2758 | (const char*)NULL }; |
2759 | ||
2760 | /* | |
2761 | * content selection pattern - do fix if pattern found | |
2762 | */ | |
2763 | tSCC zHpux11_Size_TSelect0[] = | |
3ff85771 | 2764 | "__size_t"; |
c0854bd5 | 2765 | |
2766 | #define HPUX11_SIZE_T_TEST_CT 1 | |
2767 | static tTestDesc aHpux11_Size_TTests[] = { | |
2768 | { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, }; | |
2769 | ||
2770 | /* | |
2771 | * Fix Command Arguments for Hpux11_Size_T | |
2772 | */ | |
2773 | static const char* apzHpux11_Size_TPatch[] = { | |
2774 | "format", | |
2775 | "_hpux_size_t", | |
c0854bd5 | 2776 | (char*)NULL }; |
2777 | ||
75dc2242 | 2778 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2779 | * | |
2780 | * Description of Hpux11_Snprintf fix | |
2781 | */ | |
2782 | tSCC zHpux11_SnprintfName[] = | |
2783 | "hpux11_snprintf"; | |
2784 | ||
2785 | /* | |
2786 | * File name selection pattern | |
2787 | */ | |
2788 | tSCC zHpux11_SnprintfList[] = | |
e9afa104 | 2789 | "stdio.h\0"; |
75dc2242 | 2790 | /* |
2791 | * Machine/OS name selection pattern | |
2792 | */ | |
2793 | #define apzHpux11_SnprintfMachs (const char**)NULL | |
2794 | ||
2795 | /* | |
2796 | * content selection pattern - do fix if pattern found | |
2797 | */ | |
2798 | tSCC zHpux11_SnprintfSelect0[] = | |
2799 | "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)"; | |
2800 | ||
2801 | #define HPUX11_SNPRINTF_TEST_CT 1 | |
2802 | static tTestDesc aHpux11_SnprintfTests[] = { | |
2803 | { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, }; | |
2804 | ||
2805 | /* | |
2806 | * Fix Command Arguments for Hpux11_Snprintf | |
2807 | */ | |
2808 | static const char* apzHpux11_SnprintfPatch[] = { | |
2809 | "format", | |
2810 | "%1 const %3", | |
2811 | (char*)NULL }; | |
2812 | ||
bb304030 | 2813 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2814 | * | |
2c59c6d3 | 2815 | * Description of Hpux11_Uint32_C fix |
bb304030 | 2816 | */ |
2c59c6d3 | 2817 | tSCC zHpux11_Uint32_CName[] = |
2818 | "hpux11_uint32_c"; | |
d4c4b01d | 2819 | |
bb304030 | 2820 | /* |
2821 | * File name selection pattern | |
2822 | */ | |
2c59c6d3 | 2823 | tSCC zHpux11_Uint32_CList[] = |
e9afa104 | 2824 | "inttypes.h\0"; |
bb304030 | 2825 | /* |
2826 | * Machine/OS name selection pattern | |
2827 | */ | |
2c59c6d3 | 2828 | #define apzHpux11_Uint32_CMachs (const char**)NULL |
bb304030 | 2829 | |
2830 | /* | |
2831 | * content selection pattern - do fix if pattern found | |
2832 | */ | |
2c59c6d3 | 2833 | tSCC zHpux11_Uint32_CSelect0[] = |
2834 | "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)"; | |
bb304030 | 2835 | |
2c59c6d3 | 2836 | #define HPUX11_UINT32_C_TEST_CT 1 |
2548396b | 2837 | static tTestDesc aHpux11_Uint32_CTests[] = { |
2c59c6d3 | 2838 | { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, }; |
bb304030 | 2839 | |
2840 | /* | |
2c59c6d3 | 2841 | * Fix Command Arguments for Hpux11_Uint32_C |
bb304030 | 2842 | */ |
2548396b | 2843 | static const char* apzHpux11_Uint32_CPatch[] = { |
2c59c6d3 | 2844 | "format", |
2845 | "#define UINT32_C(__c) __CONCAT__(__c,ul)", | |
bb304030 | 2846 | (char*)NULL }; |
2847 | ||
6b5183e9 | 2848 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2849 | * | |
ebf664b2 | 2850 | * Description of Hpux11_Vsnprintf fix |
6b5183e9 | 2851 | */ |
ebf664b2 | 2852 | tSCC zHpux11_VsnprintfName[] = |
2853 | "hpux11_vsnprintf"; | |
6b5183e9 | 2854 | |
2855 | /* | |
2856 | * File name selection pattern | |
2857 | */ | |
ebf664b2 | 2858 | tSCC zHpux11_VsnprintfList[] = |
e9afa104 | 2859 | "stdio.h\0"; |
6b5183e9 | 2860 | /* |
2861 | * Machine/OS name selection pattern | |
2862 | */ | |
ebf664b2 | 2863 | #define apzHpux11_VsnprintfMachs (const char**)NULL |
6b5183e9 | 2864 | |
2865 | /* | |
2866 | * content selection pattern - do fix if pattern found | |
2867 | */ | |
ebf664b2 | 2868 | tSCC zHpux11_VsnprintfSelect0[] = |
2869 | "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);"; | |
6b5183e9 | 2870 | |
ebf664b2 | 2871 | #define HPUX11_VSNPRINTF_TEST_CT 1 |
2872 | static tTestDesc aHpux11_VsnprintfTests[] = { | |
2873 | { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, }; | |
6b5183e9 | 2874 | |
2875 | /* | |
ebf664b2 | 2876 | * Fix Command Arguments for Hpux11_Vsnprintf |
6b5183e9 | 2877 | */ |
ebf664b2 | 2878 | static const char* apzHpux11_VsnprintfPatch[] = { |
6b5183e9 | 2879 | "format", |
ebf664b2 | 2880 | "%1 __va_list);", |
6b5183e9 | 2881 | (char*)NULL }; |
2882 | ||
2883 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2884 | * | |
ebf664b2 | 2885 | * Description of Hpux8_Bogus_Inlines fix |
6b5183e9 | 2886 | */ |
ebf664b2 | 2887 | tSCC zHpux8_Bogus_InlinesName[] = |
2888 | "hpux8_bogus_inlines"; | |
6b5183e9 | 2889 | |
2890 | /* | |
2891 | * File name selection pattern | |
2892 | */ | |
ebf664b2 | 2893 | tSCC zHpux8_Bogus_InlinesList[] = |
e9afa104 | 2894 | "math.h\0"; |
6b5183e9 | 2895 | /* |
2896 | * Machine/OS name selection pattern | |
2897 | */ | |
ebf664b2 | 2898 | #define apzHpux8_Bogus_InlinesMachs (const char**)NULL |
6b5183e9 | 2899 | |
2900 | /* | |
2901 | * content selection pattern - do fix if pattern found | |
2902 | */ | |
ebf664b2 | 2903 | tSCC zHpux8_Bogus_InlinesSelect0[] = |
2904 | "inline"; | |
6b5183e9 | 2905 | |
69c13546 | 2906 | /* |
2907 | * content bypass pattern - skip fix if pattern found | |
2908 | */ | |
2909 | tSCC zHpux8_Bogus_InlinesBypass0[] = | |
2910 | "__GNUG__"; | |
2911 | ||
2912 | #define HPUX8_BOGUS_INLINES_TEST_CT 2 | |
ebf664b2 | 2913 | static tTestDesc aHpux8_Bogus_InlinesTests[] = { |
69c13546 | 2914 | { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL }, |
ebf664b2 | 2915 | { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; |
6b5183e9 | 2916 | |
2917 | /* | |
ebf664b2 | 2918 | * Fix Command Arguments for Hpux8_Bogus_Inlines |
6b5183e9 | 2919 | */ |
ebf664b2 | 2920 | static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed", |
2921 | "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@", | |
2922 | "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@", | |
2923 | "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@", | |
2924 | "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@", | |
6b5183e9 | 2925 | (char*)NULL }; |
2926 | ||
2927 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2928 | * | |
2929 | * Description of Hpux_Ctype_Macros fix | |
2930 | */ | |
2931 | tSCC zHpux_Ctype_MacrosName[] = | |
2932 | "hpux_ctype_macros"; | |
2933 | ||
2934 | /* | |
2935 | * File name selection pattern | |
2936 | */ | |
2937 | tSCC zHpux_Ctype_MacrosList[] = | |
e9afa104 | 2938 | "ctype.h\0"; |
6b5183e9 | 2939 | /* |
2940 | * Machine/OS name selection pattern | |
2941 | */ | |
2942 | #define apzHpux_Ctype_MacrosMachs (const char**)NULL | |
2943 | ||
2944 | /* | |
2945 | * content selection pattern - do fix if pattern found | |
2946 | */ | |
2947 | tSCC zHpux_Ctype_MacrosSelect0[] = | |
2948 | "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)"; | |
2949 | ||
2950 | #define HPUX_CTYPE_MACROS_TEST_CT 1 | |
2951 | static tTestDesc aHpux_Ctype_MacrosTests[] = { | |
2952 | { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, }; | |
2953 | ||
2954 | /* | |
2955 | * Fix Command Arguments for Hpux_Ctype_Macros | |
2956 | */ | |
2957 | static const char* apzHpux_Ctype_MacrosPatch[] = { | |
2958 | "format", | |
2959 | "%1(int)%3", | |
2960 | (char*)NULL }; | |
2961 | ||
1589683c | 2962 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2963 | * | |
2964 | * Description of Hpux_Htonl fix | |
2965 | */ | |
2966 | tSCC zHpux_HtonlName[] = | |
2967 | "hpux_htonl"; | |
2968 | ||
2969 | /* | |
2970 | * File name selection pattern | |
2971 | */ | |
2972 | tSCC zHpux_HtonlList[] = | |
e9afa104 | 2973 | "netinet/in.h\0"; |
1589683c | 2974 | /* |
2975 | * Machine/OS name selection pattern | |
2976 | */ | |
2977 | #define apzHpux_HtonlMachs (const char**)NULL | |
2978 | ||
2979 | /* | |
2980 | * content selection pattern - do fix if pattern found | |
2981 | */ | |
2982 | tSCC zHpux_HtonlSelect0[] = | |
2983 | "#ifndef _XOPEN_SOURCE_EXTENDED\n\ | |
2984 | (/\\*\n\ | |
2985 | \\* Macros for number representation conversion\\.\n\ | |
2986 | \\*/\n\ | |
2987 | #ifndef ntohl)"; | |
2988 | ||
2989 | #define HPUX_HTONL_TEST_CT 1 | |
2990 | static tTestDesc aHpux_HtonlTests[] = { | |
2991 | { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, }; | |
2992 | ||
2993 | /* | |
2994 | * Fix Command Arguments for Hpux_Htonl | |
2995 | */ | |
2996 | static const char* apzHpux_HtonlPatch[] = { | |
2997 | "format", | |
2998 | "#if 1\n\ | |
2999 | %1", | |
3000 | (char*)NULL }; | |
3001 | ||
a0d38f0b | 3002 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3003 | * | |
ebf664b2 | 3004 | * Description of Hpux_Long_Double fix |
a0d38f0b | 3005 | */ |
ebf664b2 | 3006 | tSCC zHpux_Long_DoubleName[] = |
3007 | "hpux_long_double"; | |
a0d38f0b | 3008 | |
3009 | /* | |
3010 | * File name selection pattern | |
3011 | */ | |
ebf664b2 | 3012 | tSCC zHpux_Long_DoubleList[] = |
e9afa104 | 3013 | "stdlib.h\0"; |
a0d38f0b | 3014 | /* |
3015 | * Machine/OS name selection pattern | |
3016 | */ | |
ebf664b2 | 3017 | #define apzHpux_Long_DoubleMachs (const char**)NULL |
a0d38f0b | 3018 | |
3019 | /* | |
3020 | * content selection pattern - do fix if pattern found | |
3021 | */ | |
ebf664b2 | 3022 | tSCC zHpux_Long_DoubleSelect0[] = |
3023 | "extern[ \t]long_double[ \t]strtold"; | |
9e024bbb | 3024 | |
3025 | /* | |
ebf664b2 | 3026 | * content bypass pattern - skip fix if pattern found |
9e024bbb | 3027 | */ |
ebf664b2 | 3028 | tSCC zHpux_Long_DoubleBypass0[] = |
3029 | "long_double_t"; | |
9e024bbb | 3030 | |
ebf664b2 | 3031 | #define HPUX_LONG_DOUBLE_TEST_CT 2 |
3032 | static tTestDesc aHpux_Long_DoubleTests[] = { | |
3033 | { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL }, | |
3034 | { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, }; | |
9e024bbb | 3035 | |
3036 | /* | |
ebf664b2 | 3037 | * Fix Command Arguments for Hpux_Long_Double |
9e024bbb | 3038 | */ |
ebf664b2 | 3039 | static const char* apzHpux_Long_DoublePatch[] = { "sed", |
3040 | "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D", | |
3041 | "-e", "s/long_double/long double/g", | |
9e024bbb | 3042 | (char*)NULL }; |
3043 | ||
fdb8fb96 | 3044 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3045 | * | |
3072d11f | 3046 | * Description of Hpux_Systime fix |
fdb8fb96 | 3047 | */ |
3072d11f | 3048 | tSCC zHpux_SystimeName[] = |
3049 | "hpux_systime"; | |
d4c4b01d | 3050 | |
fdb8fb96 | 3051 | /* |
3052 | * File name selection pattern | |
3053 | */ | |
3072d11f | 3054 | tSCC zHpux_SystimeList[] = |
e9afa104 | 3055 | "sys/time.h\0"; |
fdb8fb96 | 3056 | /* |
3057 | * Machine/OS name selection pattern | |
3058 | */ | |
3072d11f | 3059 | #define apzHpux_SystimeMachs (const char**)NULL |
fdb8fb96 | 3060 | |
3061 | /* | |
d6d7d999 | 3062 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3063 | */ |
3072d11f | 3064 | tSCC zHpux_SystimeSelect0[] = |
3065 | "^extern struct sigevent;"; | |
fdb8fb96 | 3066 | |
3072d11f | 3067 | #define HPUX_SYSTIME_TEST_CT 1 |
3068 | static tTestDesc aHpux_SystimeTests[] = { | |
3069 | { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 3070 | |
3071 | /* | |
3072d11f | 3072 | * Fix Command Arguments for Hpux_Systime |
fdb8fb96 | 3073 | */ |
3072d11f | 3074 | static const char* apzHpux_SystimePatch[] = { |
cfe5be71 | 3075 | "format", |
3072d11f | 3076 | "struct sigevent;", |
3077 | (char*)NULL }; | |
3078 | ||
5dabcff3 | 3079 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3080 | * | |
3081 | * Description of Hpux_Spu_Info fix | |
3082 | */ | |
3083 | tSCC zHpux_Spu_InfoName[] = | |
3084 | "hpux_spu_info"; | |
3085 | ||
3086 | /* | |
3087 | * File name selection pattern | |
3088 | */ | |
3089 | tSCC zHpux_Spu_InfoList[] = | |
e9afa104 | 3090 | "ia64/sys/getppdp.h\0"; |
5dabcff3 | 3091 | /* |
3092 | * Machine/OS name selection pattern | |
3093 | */ | |
3094 | tSCC* apzHpux_Spu_InfoMachs[] = { | |
3095 | "*-hp-hpux*", | |
3096 | (const char*)NULL }; | |
3097 | ||
3098 | /* | |
3099 | * content selection pattern - do fix if pattern found | |
3100 | */ | |
3101 | tSCC zHpux_Spu_InfoSelect0[] = | |
3102 | "^.*extern.*spu_info.*"; | |
3103 | ||
3104 | #define HPUX_SPU_INFO_TEST_CT 1 | |
3105 | static tTestDesc aHpux_Spu_InfoTests[] = { | |
3106 | { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, }; | |
3107 | ||
3108 | /* | |
3109 | * Fix Command Arguments for Hpux_Spu_Info | |
3110 | */ | |
3111 | static const char* apzHpux_Spu_InfoPatch[] = { | |
3112 | "format", | |
3113 | "#ifdef _KERNEL\n\ | |
3114 | %0\n\ | |
3115 | #endif", | |
3116 | (char*)NULL }; | |
3117 | ||
1cb3e86d | 3118 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3119 | * | |
3120 | * Description of Hpux11_Extern_Sendfile fix | |
3121 | */ | |
3122 | tSCC zHpux11_Extern_SendfileName[] = | |
3123 | "hpux11_extern_sendfile"; | |
3124 | ||
3125 | /* | |
3126 | * File name selection pattern | |
3127 | */ | |
3128 | tSCC zHpux11_Extern_SendfileList[] = | |
e9afa104 | 3129 | "sys/socket.h\0"; |
1cb3e86d | 3130 | /* |
3131 | * Machine/OS name selection pattern | |
3132 | */ | |
3133 | tSCC* apzHpux11_Extern_SendfileMachs[] = { | |
3134 | "*-hp-hpux11.[12]*", | |
3135 | (const char*)NULL }; | |
3136 | ||
3137 | /* | |
3138 | * content selection pattern - do fix if pattern found | |
3139 | */ | |
3140 | tSCC zHpux11_Extern_SendfileSelect0[] = | |
3141 | "^[ \t]*extern sbsize_t sendfile.*\n\ | |
3142 | .*, int\\)\\);\n"; | |
3143 | ||
3144 | #define HPUX11_EXTERN_SENDFILE_TEST_CT 1 | |
3145 | static tTestDesc aHpux11_Extern_SendfileTests[] = { | |
3146 | { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, }; | |
3147 | ||
3148 | /* | |
3149 | * Fix Command Arguments for Hpux11_Extern_Sendfile | |
3150 | */ | |
3151 | static const char* apzHpux11_Extern_SendfilePatch[] = { | |
3152 | "format", | |
3153 | "#ifndef _APP32_64BIT_OFF_T\n\ | |
3154 | %0#endif\n", | |
3155 | (char*)NULL }; | |
3156 | ||
3157 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3158 | * | |
3159 | * Description of Hpux11_Extern_Sendpath fix | |
3160 | */ | |
3161 | tSCC zHpux11_Extern_SendpathName[] = | |
3162 | "hpux11_extern_sendpath"; | |
3163 | ||
3164 | /* | |
3165 | * File name selection pattern | |
3166 | */ | |
3167 | tSCC zHpux11_Extern_SendpathList[] = | |
e9afa104 | 3168 | "sys/socket.h\0"; |
1cb3e86d | 3169 | /* |
3170 | * Machine/OS name selection pattern | |
3171 | */ | |
3172 | tSCC* apzHpux11_Extern_SendpathMachs[] = { | |
3173 | "*-hp-hpux11.[12]*", | |
3174 | (const char*)NULL }; | |
3175 | ||
3176 | /* | |
3177 | * content selection pattern - do fix if pattern found | |
3178 | */ | |
3179 | tSCC zHpux11_Extern_SendpathSelect0[] = | |
3180 | "^[ \t]*extern sbsize_t sendpath.*\n\ | |
3181 | .*, int\\)\\);\n"; | |
3182 | ||
3183 | #define HPUX11_EXTERN_SENDPATH_TEST_CT 1 | |
3184 | static tTestDesc aHpux11_Extern_SendpathTests[] = { | |
3185 | { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, }; | |
3186 | ||
3187 | /* | |
3188 | * Fix Command Arguments for Hpux11_Extern_Sendpath | |
3189 | */ | |
3190 | static const char* apzHpux11_Extern_SendpathPatch[] = { | |
3191 | "format", | |
3192 | "#ifndef _APP32_64BIT_OFF_T\n\ | |
3193 | %0#endif\n", | |
3194 | (char*)NULL }; | |
3195 | ||
898b6c0f | 3196 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3197 | * | |
3198 | * Description of Hpux_Extern_Errno fix | |
3199 | */ | |
3200 | tSCC zHpux_Extern_ErrnoName[] = | |
3201 | "hpux_extern_errno"; | |
3202 | ||
3203 | /* | |
3204 | * File name selection pattern | |
3205 | */ | |
3206 | tSCC zHpux_Extern_ErrnoList[] = | |
e9afa104 | 3207 | "errno.h\0"; |
898b6c0f | 3208 | /* |
3209 | * Machine/OS name selection pattern | |
3210 | */ | |
3211 | tSCC* apzHpux_Extern_ErrnoMachs[] = { | |
3212 | "*-hp-hpux10.*", | |
3213 | "*-hp-hpux11.[0-2]*", | |
3214 | (const char*)NULL }; | |
3215 | ||
3216 | /* | |
3217 | * content selection pattern - do fix if pattern found | |
3218 | */ | |
3219 | tSCC zHpux_Extern_ErrnoSelect0[] = | |
3220 | "^[ \t]*extern int errno;$"; | |
3221 | ||
3222 | #define HPUX_EXTERN_ERRNO_TEST_CT 1 | |
3223 | static tTestDesc aHpux_Extern_ErrnoTests[] = { | |
3224 | { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, }; | |
3225 | ||
3226 | /* | |
3227 | * Fix Command Arguments for Hpux_Extern_Errno | |
3228 | */ | |
3229 | static const char* apzHpux_Extern_ErrnoPatch[] = { | |
3230 | "format", | |
3231 | "#ifdef __cplusplus\n\ | |
3232 | extern \"C\" {\n\ | |
3233 | #endif\n\ | |
3234 | %0\n\ | |
3235 | #ifdef __cplusplus\n\ | |
3236 | }\n\ | |
3237 | #endif", | |
3238 | (char*)NULL }; | |
3239 | ||
3c6ef6a2 | 3240 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3241 | * | |
3242 | * Description of Hpux11_Pthread_Const fix | |
3243 | */ | |
3244 | tSCC zHpux11_Pthread_ConstName[] = | |
3245 | "hpux11_pthread_const"; | |
3246 | ||
3247 | /* | |
3248 | * File name selection pattern | |
3249 | */ | |
3250 | tSCC zHpux11_Pthread_ConstList[] = | |
3251 | "sys/pthread.h\0"; | |
3252 | /* | |
3253 | * Machine/OS name selection pattern | |
3254 | */ | |
3255 | tSCC* apzHpux11_Pthread_ConstMachs[] = { | |
3256 | "*-hp-hpux11.[0-3]*", | |
3257 | (const char*)NULL }; | |
3258 | ||
3259 | /* | |
3260 | * content selection pattern - do fix if pattern found | |
3261 | */ | |
3262 | tSCC zHpux11_Pthread_ConstSelect0[] = | |
3263 | "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)"; | |
3264 | ||
3265 | #define HPUX11_PTHREAD_CONST_TEST_CT 1 | |
3266 | static tTestDesc aHpux11_Pthread_ConstTests[] = { | |
3267 | { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, }; | |
3268 | ||
3269 | /* | |
3270 | * Fix Command Arguments for Hpux11_Pthread_Const | |
3271 | */ | |
3272 | static const char* apzHpux11_Pthread_ConstPatch[] = { | |
3273 | "format", | |
3274 | "#define __POINTER_SET\t\t((void *) 1L)", | |
3275 | (char*)NULL }; | |
3276 | ||
3dd59d44 | 3277 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3278 | * | |
3279 | * Description of Hpux_Pthread_Initializers fix | |
3280 | */ | |
3281 | tSCC zHpux_Pthread_InitializersName[] = | |
3282 | "hpux_pthread_initializers"; | |
3283 | ||
3284 | /* | |
3285 | * File name selection pattern | |
3286 | */ | |
3287 | tSCC zHpux_Pthread_InitializersList[] = | |
e9afa104 | 3288 | "sys/pthread.h\0"; |
3dd59d44 | 3289 | /* |
3290 | * Machine/OS name selection pattern | |
3291 | */ | |
3292 | tSCC* apzHpux_Pthread_InitializersMachs[] = { | |
3293 | "*-hp-hpux11.[0-3]*", | |
3294 | (const char*)NULL }; | |
3295 | #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0 | |
3296 | #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL | |
3297 | ||
3298 | /* | |
3299 | * Fix Command Arguments for Hpux_Pthread_Initializers | |
3300 | */ | |
3301 | static const char* apzHpux_Pthread_InitializersPatch[] = { "sed", | |
3302 | "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@", | |
3303 | "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@", | |
3304 | "-e", "/^[ \t]*0$/d", | |
3305 | "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@", | |
3306 | "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@", | |
3307 | "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@", | |
3308 | "-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\\\\@", | |
3309 | "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@", | |
3310 | "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@", | |
3311 | "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@", | |
3312 | "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@", | |
3313 | "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@", | |
3314 | "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@", | |
3315 | (char*)NULL }; | |
3316 | ||
96eced21 | 3317 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3318 | * | |
3319 | * Description of Huge_Val_Hex fix | |
3320 | */ | |
3321 | tSCC zHuge_Val_HexName[] = | |
3322 | "huge_val_hex"; | |
3323 | ||
3324 | /* | |
3325 | * File name selection pattern | |
3326 | */ | |
3327 | tSCC zHuge_Val_HexList[] = | |
e9afa104 | 3328 | "bits/huge_val.h\0"; |
96eced21 | 3329 | /* |
3330 | * Machine/OS name selection pattern | |
3331 | */ | |
3332 | #define apzHuge_Val_HexMachs (const char**)NULL | |
3333 | ||
3334 | /* | |
3335 | * content selection pattern - do fix if pattern found | |
3336 | */ | |
3337 | tSCC zHuge_Val_HexSelect0[] = | |
3338 | "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*"; | |
3339 | ||
3340 | /* | |
3341 | * content bypass pattern - skip fix if pattern found | |
3342 | */ | |
3343 | tSCC zHuge_Val_HexBypass0[] = | |
3344 | "__builtin_huge_val"; | |
3345 | ||
3346 | #define HUGE_VAL_HEX_TEST_CT 2 | |
3347 | static tTestDesc aHuge_Val_HexTests[] = { | |
3348 | { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL }, | |
3349 | { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, }; | |
3350 | ||
3351 | /* | |
3352 | * Fix Command Arguments for Huge_Val_Hex | |
3353 | */ | |
3354 | static const char* apzHuge_Val_HexPatch[] = { | |
3355 | "format", | |
3356 | "#define HUGE_VAL (__builtin_huge_val())\n", | |
3357 | (char*)NULL }; | |
3358 | ||
3359 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3360 | * | |
3361 | * Description of Huge_Valf_Hex fix | |
3362 | */ | |
3363 | tSCC zHuge_Valf_HexName[] = | |
3364 | "huge_valf_hex"; | |
3365 | ||
3366 | /* | |
3367 | * File name selection pattern | |
3368 | */ | |
3369 | tSCC zHuge_Valf_HexList[] = | |
e9afa104 | 3370 | "bits/huge_val.h\0"; |
96eced21 | 3371 | /* |
3372 | * Machine/OS name selection pattern | |
3373 | */ | |
3374 | #define apzHuge_Valf_HexMachs (const char**)NULL | |
3375 | ||
3376 | /* | |
3377 | * content selection pattern - do fix if pattern found | |
3378 | */ | |
3379 | tSCC zHuge_Valf_HexSelect0[] = | |
3380 | "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*"; | |
3381 | ||
3382 | /* | |
3383 | * content bypass pattern - skip fix if pattern found | |
3384 | */ | |
3385 | tSCC zHuge_Valf_HexBypass0[] = | |
3386 | "__builtin_huge_valf"; | |
3387 | ||
3388 | #define HUGE_VALF_HEX_TEST_CT 2 | |
3389 | static tTestDesc aHuge_Valf_HexTests[] = { | |
3390 | { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL }, | |
3391 | { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, }; | |
3392 | ||
3393 | /* | |
3394 | * Fix Command Arguments for Huge_Valf_Hex | |
3395 | */ | |
3396 | static const char* apzHuge_Valf_HexPatch[] = { | |
3397 | "format", | |
3398 | "#define HUGE_VALF (__builtin_huge_valf())\n", | |
3399 | (char*)NULL }; | |
3400 | ||
3401 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3402 | * | |
3403 | * Description of Huge_Vall_Hex fix | |
3404 | */ | |
3405 | tSCC zHuge_Vall_HexName[] = | |
3406 | "huge_vall_hex"; | |
3407 | ||
3408 | /* | |
3409 | * File name selection pattern | |
3410 | */ | |
3411 | tSCC zHuge_Vall_HexList[] = | |
e9afa104 | 3412 | "bits/huge_val.h\0"; |
96eced21 | 3413 | /* |
3414 | * Machine/OS name selection pattern | |
3415 | */ | |
3416 | #define apzHuge_Vall_HexMachs (const char**)NULL | |
3417 | ||
3418 | /* | |
3419 | * content selection pattern - do fix if pattern found | |
3420 | */ | |
3421 | tSCC zHuge_Vall_HexSelect0[] = | |
3422 | "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*"; | |
3423 | ||
3424 | /* | |
3425 | * content bypass pattern - skip fix if pattern found | |
3426 | */ | |
3427 | tSCC zHuge_Vall_HexBypass0[] = | |
3428 | "__builtin_huge_vall"; | |
3429 | ||
3430 | #define HUGE_VALL_HEX_TEST_CT 2 | |
3431 | static tTestDesc aHuge_Vall_HexTests[] = { | |
3432 | { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL }, | |
3433 | { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, }; | |
3434 | ||
3435 | /* | |
3436 | * Fix Command Arguments for Huge_Vall_Hex | |
3437 | */ | |
3438 | static const char* apzHuge_Vall_HexPatch[] = { | |
3439 | "format", | |
3440 | "#define HUGE_VALL (__builtin_huge_vall())\n", | |
3441 | (char*)NULL }; | |
3442 | ||
3072d11f | 3443 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3444 | * | |
3445 | * Description of Int_Abort_Free_And_Exit fix | |
3446 | */ | |
3447 | tSCC zInt_Abort_Free_And_ExitName[] = | |
3448 | "int_abort_free_and_exit"; | |
3449 | ||
3450 | /* | |
3451 | * File name selection pattern | |
3452 | */ | |
3453 | tSCC zInt_Abort_Free_And_ExitList[] = | |
e9afa104 | 3454 | "stdlib.h\0"; |
3072d11f | 3455 | /* |
3456 | * Machine/OS name selection pattern | |
3457 | */ | |
3458 | #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL | |
3459 | ||
3460 | /* | |
3461 | * content selection pattern - do fix if pattern found | |
3462 | */ | |
3463 | tSCC zInt_Abort_Free_And_ExitSelect0[] = | |
3464 | "int[ \t]+(abort|free|exit)[ \t]*\\("; | |
3465 | ||
69c13546 | 3466 | /* |
3467 | * content bypass pattern - skip fix if pattern found | |
3468 | */ | |
3469 | tSCC zInt_Abort_Free_And_ExitBypass0[] = | |
3470 | "_CLASSIC_ANSI_TYPES"; | |
3471 | ||
3472 | #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2 | |
3072d11f | 3473 | static tTestDesc aInt_Abort_Free_And_ExitTests[] = { |
69c13546 | 3474 | { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL }, |
3072d11f | 3475 | { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, }; |
3476 | ||
3477 | /* | |
3478 | * Fix Command Arguments for Int_Abort_Free_And_Exit | |
3479 | */ | |
3480 | static const char* apzInt_Abort_Free_And_ExitPatch[] = { | |
3481 | "format", | |
3482 | "void\t%1(", | |
fdb8fb96 | 3483 | (char*)NULL }; |
3484 | ||
fdb8fb96 | 3485 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3486 | * | |
49b4955b | 3487 | * Description of Io_Quotes_Def fix |
fdb8fb96 | 3488 | */ |
49b4955b | 3489 | tSCC zIo_Quotes_DefName[] = |
3490 | "io_quotes_def"; | |
d4c4b01d | 3491 | |
fdb8fb96 | 3492 | /* |
3493 | * File name selection pattern | |
3494 | */ | |
49b4955b | 3495 | #define zIo_Quotes_DefList (char*)NULL |
fdb8fb96 | 3496 | /* |
3497 | * Machine/OS name selection pattern | |
3498 | */ | |
49b4955b | 3499 | #define apzIo_Quotes_DefMachs (const char**)NULL |
fdb8fb96 | 3500 | |
3501 | /* | |
c1b28c63 | 3502 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3503 | */ |
49b4955b | 3504 | tSCC zIo_Quotes_DefSelect0[] = |
edb5e81d | 3505 | "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]"; |
fdb8fb96 | 3506 | |
49b4955b | 3507 | #define IO_QUOTES_DEF_TEST_CT 1 |
2548396b | 3508 | static tTestDesc aIo_Quotes_DefTests[] = { |
49b4955b | 3509 | { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 3510 | |
3511 | /* | |
49b4955b | 3512 | * Fix Command Arguments for Io_Quotes_Def |
fdb8fb96 | 3513 | */ |
2548396b | 3514 | static const char* apzIo_Quotes_DefPatch[] = { |
c940c2ae | 3515 | "char_macro_def", |
3516 | "IO", | |
ada96dc2 | 3517 | (char*)NULL }; |
3518 | ||
3519 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3520 | * | |
472aa368 | 3521 | * Description of Io_Quotes_Use fix |
ada96dc2 | 3522 | */ |
472aa368 | 3523 | tSCC zIo_Quotes_UseName[] = |
3524 | "io_quotes_use"; | |
d4c4b01d | 3525 | |
ada96dc2 | 3526 | /* |
3527 | * File name selection pattern | |
3528 | */ | |
472aa368 | 3529 | #define zIo_Quotes_UseList (char*)NULL |
ada96dc2 | 3530 | /* |
3531 | * Machine/OS name selection pattern | |
3532 | */ | |
472aa368 | 3533 | #define apzIo_Quotes_UseMachs (const char**)NULL |
ada96dc2 | 3534 | |
3535 | /* | |
3536 | * content selection pattern - do fix if pattern found | |
3537 | */ | |
472aa368 | 3538 | tSCC zIo_Quotes_UseSelect0[] = |
3539 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']"; | |
ada96dc2 | 3540 | |
472aa368 | 3541 | #define IO_QUOTES_USE_TEST_CT 1 |
2548396b | 3542 | static tTestDesc aIo_Quotes_UseTests[] = { |
472aa368 | 3543 | { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, }; |
ada96dc2 | 3544 | |
3545 | /* | |
472aa368 | 3546 | * Fix Command Arguments for Io_Quotes_Use |
ada96dc2 | 3547 | */ |
2548396b | 3548 | static const char* apzIo_Quotes_UsePatch[] = { |
c940c2ae | 3549 | "char_macro_use", |
472aa368 | 3550 | "IO", |
fdb8fb96 | 3551 | (char*)NULL }; |
3552 | ||
3553 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3554 | * | |
3072d11f | 3555 | * Description of Ip_Missing_Semi fix |
fdb8fb96 | 3556 | */ |
3072d11f | 3557 | tSCC zIp_Missing_SemiName[] = |
3558 | "ip_missing_semi"; | |
d4c4b01d | 3559 | |
fdb8fb96 | 3560 | /* |
3561 | * File name selection pattern | |
3562 | */ | |
3072d11f | 3563 | tSCC zIp_Missing_SemiList[] = |
e9afa104 | 3564 | "netinet/ip.h\0"; |
fdb8fb96 | 3565 | /* |
3566 | * Machine/OS name selection pattern | |
3567 | */ | |
3072d11f | 3568 | #define apzIp_Missing_SemiMachs (const char**)NULL |
bb304030 | 3569 | |
3570 | /* | |
3571 | * content selection pattern - do fix if pattern found | |
cfe5be71 | 3572 | */ |
3072d11f | 3573 | tSCC zIp_Missing_SemiSelect0[] = |
3574 | "}$"; | |
cfe5be71 | 3575 | |
3072d11f | 3576 | #define IP_MISSING_SEMI_TEST_CT 1 |
3577 | static tTestDesc aIp_Missing_SemiTests[] = { | |
3578 | { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, }; | |
2ef2faef | 3579 | |
3580 | /* | |
3072d11f | 3581 | * Fix Command Arguments for Ip_Missing_Semi |
fdb8fb96 | 3582 | */ |
3072d11f | 3583 | static const char* apzIp_Missing_SemiPatch[] = { "sed", |
3584 | "-e", "/^struct/,/^};/s/}$/};/", | |
fdb8fb96 | 3585 | (char*)NULL }; |
3586 | ||
4a050cc7 | 3587 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3588 | * | |
3589 | * Description of Irix___Restrict fix | |
3590 | */ | |
3591 | tSCC zIrix___RestrictName[] = | |
3592 | "irix___restrict"; | |
3593 | ||
3594 | /* | |
3595 | * File name selection pattern | |
3596 | */ | |
3597 | tSCC zIrix___RestrictList[] = | |
e9afa104 | 3598 | "internal/sgimacros.h\0"; |
4a050cc7 | 3599 | /* |
3600 | * Machine/OS name selection pattern | |
3601 | */ | |
3602 | tSCC* apzIrix___RestrictMachs[] = { | |
3603 | "mips-sgi-irix6.5", | |
3604 | (const char*)NULL }; | |
3605 | ||
3606 | /* | |
3607 | * content selection pattern - do fix if pattern found | |
3608 | */ | |
3609 | tSCC zIrix___RestrictSelect0[] = | |
3610 | "(#ifdef __c99\n\ | |
3611 | )(#[ \t]*define __restrict restrict)"; | |
3612 | ||
3613 | #define IRIX___RESTRICT_TEST_CT 1 | |
3614 | static tTestDesc aIrix___RestrictTests[] = { | |
3615 | { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, }; | |
3616 | ||
3617 | /* | |
3618 | * Fix Command Arguments for Irix___Restrict | |
3619 | */ | |
3620 | static const char* apzIrix___RestrictPatch[] = { | |
3621 | "format", | |
3622 | "%1# ifndef __cplusplus\n\ | |
3623 | %2\n\ | |
3624 | # endif", | |
3625 | (char*)NULL }; | |
3626 | ||
248b5b6c | 3627 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3628 | * | |
3629 | * Description of Irix___Generic1 fix | |
3630 | */ | |
3631 | tSCC zIrix___Generic1Name[] = | |
3632 | "irix___generic1"; | |
3633 | ||
3634 | /* | |
3635 | * File name selection pattern | |
3636 | */ | |
3637 | tSCC zIrix___Generic1List[] = | |
e9afa104 | 3638 | "internal/math_core.h\0"; |
248b5b6c | 3639 | /* |
3640 | * Machine/OS name selection pattern | |
3641 | */ | |
3642 | tSCC* apzIrix___Generic1Machs[] = { | |
3643 | "mips-sgi-irix6.5", | |
3644 | (const char*)NULL }; | |
3645 | ||
3646 | /* | |
3647 | * content selection pattern - do fix if pattern found | |
3648 | */ | |
3649 | tSCC zIrix___Generic1Select0[] = | |
3650 | "#define ([a-z]+)\\(x\\) *__generic.*"; | |
3651 | ||
3652 | #define IRIX___GENERIC1_TEST_CT 1 | |
3653 | static tTestDesc aIrix___Generic1Tests[] = { | |
3654 | { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, }; | |
3655 | ||
3656 | /* | |
3657 | * Fix Command Arguments for Irix___Generic1 | |
3658 | */ | |
3659 | static const char* apzIrix___Generic1Patch[] = { | |
3660 | "format", | |
3661 | "extern int %1(double);\n\ | |
3662 | extern int %1f(float);\n\ | |
3663 | extern int %1l(long double);\n\ | |
3664 | #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\ | |
3665 | : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\ | |
3666 | : _%1l(x))\n", | |
3667 | (char*)NULL }; | |
3668 | ||
3669 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3670 | * | |
3671 | * Description of Irix___Generic2 fix | |
3672 | */ | |
3673 | tSCC zIrix___Generic2Name[] = | |
3674 | "irix___generic2"; | |
3675 | ||
3676 | /* | |
3677 | * File name selection pattern | |
3678 | */ | |
3679 | tSCC zIrix___Generic2List[] = | |
e9afa104 | 3680 | "internal/math_core.h\0"; |
248b5b6c | 3681 | /* |
3682 | * Machine/OS name selection pattern | |
3683 | */ | |
3684 | tSCC* apzIrix___Generic2Machs[] = { | |
3685 | "mips-sgi-irix6.5", | |
3686 | (const char*)NULL }; | |
3687 | ||
3688 | /* | |
3689 | * content selection pattern - do fix if pattern found | |
3690 | */ | |
3691 | tSCC zIrix___Generic2Select0[] = | |
3692 | "#define ([a-z]+)\\(x,y\\) *__generic.*"; | |
3693 | ||
3694 | #define IRIX___GENERIC2_TEST_CT 1 | |
3695 | static tTestDesc aIrix___Generic2Tests[] = { | |
3696 | { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, }; | |
3697 | ||
3698 | /* | |
3699 | * Fix Command Arguments for Irix___Generic2 | |
3700 | */ | |
3701 | static const char* apzIrix___Generic2Patch[] = { | |
3702 | "format", | |
3703 | "#define %1(x,y) \\\n\ | |
3704 | ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\ | |
3705 | : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\ | |
3706 | : _%1l(x,y))\n", | |
3707 | (char*)NULL }; | |
3708 | ||
fdb8fb96 | 3709 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3710 | * | |
3072d11f | 3711 | * Description of Irix_Asm_Apostrophe fix |
fdb8fb96 | 3712 | */ |
3072d11f | 3713 | tSCC zIrix_Asm_ApostropheName[] = |
3714 | "irix_asm_apostrophe"; | |
d4c4b01d | 3715 | |
fdb8fb96 | 3716 | /* |
3717 | * File name selection pattern | |
3718 | */ | |
3072d11f | 3719 | tSCC zIrix_Asm_ApostropheList[] = |
e9afa104 | 3720 | "sys/asm.h\0"; |
fdb8fb96 | 3721 | /* |
3722 | * Machine/OS name selection pattern | |
3723 | */ | |
3072d11f | 3724 | #define apzIrix_Asm_ApostropheMachs (const char**)NULL |
fdb8fb96 | 3725 | |
3726 | /* | |
c1b28c63 | 3727 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3728 | */ |
3072d11f | 3729 | tSCC zIrix_Asm_ApostropheSelect0[] = |
3730 | "^[ \t]*#.*[Ww]e're"; | |
d4c4b01d | 3731 | |
3072d11f | 3732 | #define IRIX_ASM_APOSTROPHE_TEST_CT 1 |
3733 | static tTestDesc aIrix_Asm_ApostropheTests[] = { | |
3734 | { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 3735 | |
3736 | /* | |
3072d11f | 3737 | * Fix Command Arguments for Irix_Asm_Apostrophe |
fdb8fb96 | 3738 | */ |
3072d11f | 3739 | static const char* apzIrix_Asm_ApostrophePatch[] = { |
a83746ef | 3740 | "format", |
3072d11f | 3741 | "%1 are", |
3742 | "^([ \t]*#.*[Ww]e)'re", | |
fdb8fb96 | 3743 | (char*)NULL }; |
3744 | ||
3745 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3746 | * | |
3072d11f | 3747 | * Description of Irix_Limits_Const fix |
01719fc0 | 3748 | */ |
3072d11f | 3749 | tSCC zIrix_Limits_ConstName[] = |
3750 | "irix_limits_const"; | |
d4c4b01d | 3751 | |
01719fc0 | 3752 | /* |
3753 | * File name selection pattern | |
3754 | */ | |
3072d11f | 3755 | tSCC zIrix_Limits_ConstList[] = |
e9afa104 | 3756 | "fixinc-test-limits.h\0limits.h\0"; |
01719fc0 | 3757 | /* |
3758 | * Machine/OS name selection pattern | |
3759 | */ | |
3072d11f | 3760 | #define apzIrix_Limits_ConstMachs (const char**)NULL |
01719fc0 | 3761 | |
3762 | /* | |
3763 | * content selection pattern - do fix if pattern found | |
3764 | */ | |
3072d11f | 3765 | tSCC zIrix_Limits_ConstSelect0[] = |
3766 | "^extern const "; | |
01719fc0 | 3767 | |
3072d11f | 3768 | #define IRIX_LIMITS_CONST_TEST_CT 1 |
3769 | static tTestDesc aIrix_Limits_ConstTests[] = { | |
3770 | { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, }; | |
01719fc0 | 3771 | |
3772 | /* | |
3072d11f | 3773 | * Fix Command Arguments for Irix_Limits_Const |
01719fc0 | 3774 | */ |
3072d11f | 3775 | static const char* apzIrix_Limits_ConstPatch[] = { |
cfe5be71 | 3776 | "format", |
3072d11f | 3777 | "extern __const ", |
fdb8fb96 | 3778 | (char*)NULL }; |
3779 | ||
609088c0 | 3780 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3781 | * | |
3782 | * Description of Irix_Socklen_T fix | |
3783 | */ | |
3784 | tSCC zIrix_Socklen_TName[] = | |
3785 | "irix_socklen_t"; | |
3786 | ||
3787 | /* | |
3788 | * File name selection pattern | |
3789 | */ | |
3790 | tSCC zIrix_Socklen_TList[] = | |
e9afa104 | 3791 | "sys/socket.h\0"; |
609088c0 | 3792 | /* |
3793 | * Machine/OS name selection pattern | |
3794 | */ | |
3795 | tSCC* apzIrix_Socklen_TMachs[] = { | |
3796 | "mips-sgi-irix6.5", | |
3797 | (const char*)NULL }; | |
3798 | ||
3799 | /* | |
3800 | * content selection pattern - do fix if pattern found | |
3801 | */ | |
3802 | tSCC zIrix_Socklen_TSelect0[] = | |
3803 | "(#define _SOCKLEN_T\n\ | |
3804 | )(typedef u_int32_t socklen_t;)"; | |
3805 | ||
3806 | #define IRIX_SOCKLEN_T_TEST_CT 1 | |
3807 | static tTestDesc aIrix_Socklen_TTests[] = { | |
3808 | { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, }; | |
3809 | ||
3810 | /* | |
3811 | * Fix Command Arguments for Irix_Socklen_T | |
3812 | */ | |
3813 | static const char* apzIrix_Socklen_TPatch[] = { | |
3814 | "format", | |
3815 | "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\ | |
3816 | typedef int socklen_t;\n\ | |
3817 | #else\n\ | |
3818 | %2\n\ | |
3819 | #endif /* _NO_XOPEN4 && _NO_XOPEN5 */", | |
3820 | (char*)NULL }; | |
3821 | ||
5fb066e6 | 3822 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3823 | * | |
3824 | * Description of Irix_Stdint_C99 fix | |
3825 | */ | |
3826 | tSCC zIrix_Stdint_C99Name[] = | |
3827 | "irix_stdint_c99"; | |
3828 | ||
3829 | /* | |
3830 | * File name selection pattern | |
3831 | */ | |
3832 | tSCC zIrix_Stdint_C99List[] = | |
3833 | "stdint.h\0"; | |
3834 | /* | |
3835 | * Machine/OS name selection pattern | |
3836 | */ | |
3837 | tSCC* apzIrix_Stdint_C99Machs[] = { | |
3838 | "mips-sgi-irix6.5", | |
3839 | (const char*)NULL }; | |
3840 | ||
3841 | /* | |
3842 | * content selection pattern - do fix if pattern found | |
3843 | */ | |
3844 | tSCC zIrix_Stdint_C99Select0[] = | |
3845 | "(#ifndef __c99\n\ | |
3846 | )(#error This header file is to be used only for c99 mode compilations)"; | |
3847 | ||
3848 | #define IRIX_STDINT_C99_TEST_CT 1 | |
3849 | static tTestDesc aIrix_Stdint_C99Tests[] = { | |
3850 | { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, }; | |
3851 | ||
3852 | /* | |
3853 | * Fix Command Arguments for Irix_Stdint_C99 | |
3854 | */ | |
3855 | static const char* apzIrix_Stdint_C99Patch[] = { | |
3856 | "format", | |
3857 | "#if 0\n\ | |
3858 | %2", | |
3859 | (char*)NULL }; | |
3860 | ||
06730757 | 3861 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3862 | * | |
3863 | * Description of Irix_Stdio_Va_List fix | |
3864 | */ | |
06730757 | 3865 | tSCC zIrix_Stdio_Va_ListName[] = |
3866 | "irix_stdio_va_list"; | |
3867 | ||
3868 | /* | |
3869 | * File name selection pattern | |
3870 | */ | |
3871 | tSCC zIrix_Stdio_Va_ListList[] = | |
e9afa104 | 3872 | "stdio.h\0internal/stdio_core.h\0"; |
06730757 | 3873 | /* |
3874 | * Machine/OS name selection pattern | |
3875 | */ | |
3876 | #define apzIrix_Stdio_Va_ListMachs (const char**)NULL | |
3877 | ||
3878 | /* | |
3879 | * content selection pattern - do fix if pattern found | |
3880 | */ | |
3881 | tSCC zIrix_Stdio_Va_ListSelect0[] = | |
38f81ce5 | 3882 | "/\\* va_list \\*/ char \\*"; |
06730757 | 3883 | |
3884 | #define IRIX_STDIO_VA_LIST_TEST_CT 1 | |
3885 | static tTestDesc aIrix_Stdio_Va_ListTests[] = { | |
3886 | { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, }; | |
3887 | ||
3888 | /* | |
3889 | * Fix Command Arguments for Irix_Stdio_Va_List | |
3890 | */ | |
3891 | static const char* apzIrix_Stdio_Va_ListPatch[] = { | |
3892 | "format", | |
38f81ce5 | 3893 | "__gnuc_va_list", |
06730757 | 3894 | (char*)NULL }; |
3895 | ||
609088c0 | 3896 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3897 | * | |
3898 | * Description of Irix_Wcsftime fix | |
3899 | */ | |
3900 | tSCC zIrix_WcsftimeName[] = | |
3901 | "irix_wcsftime"; | |
3902 | ||
3903 | /* | |
3904 | * File name selection pattern | |
3905 | */ | |
3906 | tSCC zIrix_WcsftimeList[] = | |
e9afa104 | 3907 | "internal/wchar_core.h\0"; |
609088c0 | 3908 | /* |
3909 | * Machine/OS name selection pattern | |
3910 | */ | |
3911 | tSCC* apzIrix_WcsftimeMachs[] = { | |
3912 | "mips-sgi-irix6.5", | |
3913 | (const char*)NULL }; | |
3914 | ||
3915 | /* | |
3916 | * content selection pattern - do fix if pattern found | |
3917 | */ | |
3918 | tSCC zIrix_WcsftimeSelect0[] = | |
3919 | "#if _NO_XOPEN5\n\ | |
3920 | (extern size_t[ \t]+wcsftime.*const char *.*)"; | |
3921 | ||
3922 | #define IRIX_WCSFTIME_TEST_CT 1 | |
3923 | static tTestDesc aIrix_WcsftimeTests[] = { | |
3924 | { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, }; | |
3925 | ||
3926 | /* | |
3927 | * Fix Command Arguments for Irix_Wcsftime | |
3928 | */ | |
3929 | static const char* apzIrix_WcsftimePatch[] = { | |
3930 | "format", | |
3931 | "#if _NO_XOPEN5 && !defined(__c99)\n\ | |
3932 | %1", | |
3933 | (char*)NULL }; | |
3934 | ||
49e3683c | 3935 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3936 | * | |
3072d11f | 3937 | * Description of Isc_Fmod fix |
49e3683c | 3938 | */ |
3072d11f | 3939 | tSCC zIsc_FmodName[] = |
3940 | "isc_fmod"; | |
49e3683c | 3941 | |
3942 | /* | |
3943 | * File name selection pattern | |
3944 | */ | |
3072d11f | 3945 | tSCC zIsc_FmodList[] = |
e9afa104 | 3946 | "math.h\0"; |
49e3683c | 3947 | /* |
3948 | * Machine/OS name selection pattern | |
3949 | */ | |
3072d11f | 3950 | #define apzIsc_FmodMachs (const char**)NULL |
49e3683c | 3951 | |
3952 | /* | |
3953 | * content selection pattern - do fix if pattern found | |
3954 | */ | |
3072d11f | 3955 | tSCC zIsc_FmodSelect0[] = |
3956 | "fmod\\(double\\)"; | |
49e3683c | 3957 | |
3072d11f | 3958 | #define ISC_FMOD_TEST_CT 1 |
3959 | static tTestDesc aIsc_FmodTests[] = { | |
3960 | { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, }; | |
49e3683c | 3961 | |
3962 | /* | |
3072d11f | 3963 | * Fix Command Arguments for Isc_Fmod |
49e3683c | 3964 | */ |
3072d11f | 3965 | static const char* apzIsc_FmodPatch[] = { |
49e3683c | 3966 | "format", |
3072d11f | 3967 | "fmod(double, double)", |
49e3683c | 3968 | (char*)NULL }; |
3969 | ||
fdb8fb96 | 3970 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3971 | * | |
3072d11f | 3972 | * Description of Isc_Omits_With_Stdc fix |
fdb8fb96 | 3973 | */ |
3072d11f | 3974 | tSCC zIsc_Omits_With_StdcName[] = |
3975 | "isc_omits_with_stdc"; | |
d4c4b01d | 3976 | |
fdb8fb96 | 3977 | /* |
3978 | * File name selection pattern | |
3979 | */ | |
3072d11f | 3980 | tSCC zIsc_Omits_With_StdcList[] = |
e9afa104 | 3981 | "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0"; |
fdb8fb96 | 3982 | /* |
3983 | * Machine/OS name selection pattern | |
3984 | */ | |
3072d11f | 3985 | #define apzIsc_Omits_With_StdcMachs (const char**)NULL |
fdb8fb96 | 3986 | |
3987 | /* | |
c1b28c63 | 3988 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3989 | */ |
3072d11f | 3990 | tSCC zIsc_Omits_With_StdcSelect0[] = |
3991 | "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)"; | |
fdb8fb96 | 3992 | |
3072d11f | 3993 | #define ISC_OMITS_WITH_STDC_TEST_CT 1 |
3994 | static tTestDesc aIsc_Omits_With_StdcTests[] = { | |
3995 | { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 3996 | |
3997 | /* | |
3072d11f | 3998 | * Fix Command Arguments for Isc_Omits_With_Stdc |
fdb8fb96 | 3999 | */ |
3072d11f | 4000 | static const char* apzIsc_Omits_With_StdcPatch[] = { |
cfe5be71 | 4001 | "format", |
3072d11f | 4002 | "!defined(_POSIX_SOURCE)", |
fdb8fb96 | 4003 | (char*)NULL }; |
4004 | ||
4005 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4006 | * | |
5daf7ede | 4007 | * Description of Kandr_Concat fix |
fdb8fb96 | 4008 | */ |
4009 | tSCC zKandr_ConcatName[] = | |
d4c4b01d | 4010 | "kandr_concat"; |
4011 | ||
fdb8fb96 | 4012 | /* |
4013 | * File name selection pattern | |
4014 | */ | |
4015 | tSCC zKandr_ConcatList[] = | |
e9afa104 | 4016 | "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 | 4017 | /* |
4018 | * Machine/OS name selection pattern | |
4019 | */ | |
4020 | #define apzKandr_ConcatMachs (const char**)NULL | |
4021 | ||
4022 | /* | |
c1b28c63 | 4023 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4024 | */ |
4025 | tSCC zKandr_ConcatSelect0[] = | |
4026 | "/\\*\\*/"; | |
4027 | ||
4028 | #define KANDR_CONCAT_TEST_CT 1 | |
2548396b | 4029 | static tTestDesc aKandr_ConcatTests[] = { |
5daf7ede | 4030 | { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4031 | |
4032 | /* | |
4033 | * Fix Command Arguments for Kandr_Concat | |
4034 | */ | |
2548396b | 4035 | static const char* apzKandr_ConcatPatch[] = { |
cfe5be71 | 4036 | "format", |
4037 | "##", | |
fdb8fb96 | 4038 | (char*)NULL }; |
4039 | ||
d92db5b6 | 4040 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4041 | * | |
4042 | * Description of Linux_Ia64_Ucontext fix | |
4043 | */ | |
4044 | tSCC zLinux_Ia64_UcontextName[] = | |
4045 | "linux_ia64_ucontext"; | |
4046 | ||
4047 | /* | |
4048 | * File name selection pattern | |
4049 | */ | |
4050 | tSCC zLinux_Ia64_UcontextList[] = | |
e9afa104 | 4051 | "sys/ucontext.h\0"; |
d92db5b6 | 4052 | /* |
4053 | * Machine/OS name selection pattern | |
4054 | */ | |
4055 | tSCC* apzLinux_Ia64_UcontextMachs[] = { | |
4056 | "ia64-*-linux*", | |
4057 | (const char*)NULL }; | |
4058 | ||
4059 | /* | |
4060 | * content selection pattern - do fix if pattern found | |
4061 | */ | |
4062 | tSCC zLinux_Ia64_UcontextSelect0[] = | |
4063 | "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)"; | |
4064 | ||
4065 | #define LINUX_IA64_UCONTEXT_TEST_CT 1 | |
4066 | static tTestDesc aLinux_Ia64_UcontextTests[] = { | |
4067 | { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, }; | |
4068 | ||
4069 | /* | |
4070 | * Fix Command Arguments for Linux_Ia64_Ucontext | |
4071 | */ | |
4072 | static const char* apzLinux_Ia64_UcontextPatch[] = { | |
4073 | "format", | |
4074 | "__builtin_offsetof (struct sigcontext, sc_gr[0])", | |
4075 | (char*)NULL }; | |
4076 | ||
fdb8fb96 | 4077 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4078 | * | |
435ea059 | 4079 | * Description of Lynxos_No_Warning_In_Sys_Time_H fix |
fdb8fb96 | 4080 | */ |
435ea059 | 4081 | tSCC zLynxos_No_Warning_In_Sys_Time_HName[] = |
4082 | "lynxos_no_warning_in_sys_time_h"; | |
d4c4b01d | 4083 | |
fdb8fb96 | 4084 | /* |
4085 | * File name selection pattern | |
4086 | */ | |
435ea059 | 4087 | tSCC zLynxos_No_Warning_In_Sys_Time_HList[] = |
e9afa104 | 4088 | "sys/time.h\0"; |
fdb8fb96 | 4089 | /* |
4090 | * Machine/OS name selection pattern | |
4091 | */ | |
435ea059 | 4092 | #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL |
fdb8fb96 | 4093 | |
4094 | /* | |
c1b28c63 | 4095 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4096 | */ |
435ea059 | 4097 | tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] = |
4098 | "#warning[ \t]+Using <time.h> instead of <sys/time.h>"; | |
fdb8fb96 | 4099 | |
435ea059 | 4100 | #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1 |
4101 | static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = { | |
4102 | { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 4103 | |
4104 | /* | |
435ea059 | 4105 | * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H |
fdb8fb96 | 4106 | */ |
435ea059 | 4107 | static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = { |
cfe5be71 | 4108 | "format", |
4109 | "", | |
fdb8fb96 | 4110 | (char*)NULL }; |
4111 | ||
4112 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4113 | * | |
435ea059 | 4114 | * Description of Lynxos_Missing_Putenv fix |
fdb8fb96 | 4115 | */ |
435ea059 | 4116 | tSCC zLynxos_Missing_PutenvName[] = |
4117 | "lynxos_missing_putenv"; | |
d4c4b01d | 4118 | |
fdb8fb96 | 4119 | /* |
4120 | * File name selection pattern | |
4121 | */ | |
435ea059 | 4122 | tSCC zLynxos_Missing_PutenvList[] = |
e9afa104 | 4123 | "stdlib.h\0"; |
fdb8fb96 | 4124 | /* |
4125 | * Machine/OS name selection pattern | |
4126 | */ | |
435ea059 | 4127 | tSCC* apzLynxos_Missing_PutenvMachs[] = { |
4128 | "*-*-lynxos*", | |
4129 | (const char*)NULL }; | |
38ebab8a | 4130 | |
4131 | /* | |
c1b28c63 | 4132 | * content selection pattern - do fix if pattern found |
38ebab8a | 4133 | */ |
435ea059 | 4134 | tSCC zLynxos_Missing_PutenvSelect0[] = |
4135 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);"; | |
38ebab8a | 4136 | |
435ea059 | 4137 | /* |
4138 | * content bypass pattern - skip fix if pattern found | |
4139 | */ | |
4140 | tSCC zLynxos_Missing_PutenvBypass0[] = | |
4141 | "putenv[ \\t]*\\("; | |
4142 | ||
4143 | #define LYNXOS_MISSING_PUTENV_TEST_CT 2 | |
4144 | static tTestDesc aLynxos_Missing_PutenvTests[] = { | |
4145 | { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL }, | |
4146 | { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 4147 | |
4148 | /* | |
435ea059 | 4149 | * Fix Command Arguments for Lynxos_Missing_Putenv |
fdb8fb96 | 4150 | */ |
435ea059 | 4151 | static const char* apzLynxos_Missing_PutenvPatch[] = { |
cfe5be71 | 4152 | "format", |
435ea059 | 4153 | "%0\n\ |
4154 | extern int putenv\t\t\t\t_AP((char *));", | |
4155 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);", | |
fdb8fb96 | 4156 | (char*)NULL }; |
4157 | ||
d4c4b01d | 4158 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4159 | * | |
4160 | * Description of Machine_Ansi_H_Va_List fix | |
4161 | */ | |
d4c4b01d | 4162 | tSCC zMachine_Ansi_H_Va_ListName[] = |
4163 | "machine_ansi_h_va_list"; | |
4164 | ||
4165 | /* | |
4166 | * File name selection pattern | |
4167 | */ | |
0efa04d0 | 4168 | #define zMachine_Ansi_H_Va_ListList (char*)NULL |
d4c4b01d | 4169 | /* |
4170 | * Machine/OS name selection pattern | |
4171 | */ | |
4172 | #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL | |
4173 | ||
4174 | /* | |
4175 | * content selection pattern - do fix if pattern found | |
4176 | */ | |
4177 | tSCC zMachine_Ansi_H_Va_ListSelect0[] = | |
a83746ef | 4178 | "define[ \t]+_BSD_VA_LIST_[ \t]"; |
d4c4b01d | 4179 | |
4180 | /* | |
4181 | * content bypass pattern - skip fix if pattern found | |
4182 | */ | |
4183 | tSCC zMachine_Ansi_H_Va_ListBypass0[] = | |
4184 | "__builtin_va_list"; | |
4185 | ||
4186 | #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2 | |
2548396b | 4187 | static tTestDesc aMachine_Ansi_H_Va_ListTests[] = { |
d4c4b01d | 4188 | { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL }, |
4189 | { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, }; | |
4190 | ||
4191 | /* | |
4192 | * Fix Command Arguments for Machine_Ansi_H_Va_List | |
4193 | */ | |
2548396b | 4194 | static const char* apzMachine_Ansi_H_Va_ListPatch[] = { |
a83746ef | 4195 | "format", |
4196 | "%1__builtin_va_list", | |
4197 | "(define[ \t]+_BSD_VA_LIST_[ \t]+).*", | |
d4c4b01d | 4198 | (char*)NULL }; |
4199 | ||
fdb8fb96 | 4200 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4201 | * | |
5daf7ede | 4202 | * Description of Machine_Name fix |
fdb8fb96 | 4203 | */ |
4204 | tSCC zMachine_NameName[] = | |
d4c4b01d | 4205 | "machine_name"; |
4206 | ||
fdb8fb96 | 4207 | /* |
4208 | * File name selection pattern | |
4209 | */ | |
4210 | #define zMachine_NameList (char*)NULL | |
4211 | /* | |
4212 | * Machine/OS name selection pattern | |
4213 | */ | |
4214 | #define apzMachine_NameMachs (const char**)NULL | |
4215 | ||
4216 | /* | |
17f8e521 | 4217 | * perform the C function call test |
fdb8fb96 | 4218 | */ |
17f8e521 | 4219 | tSCC zMachine_NameFTst0[] = "machine_name"; |
fdb8fb96 | 4220 | |
4221 | #define MACHINE_NAME_TEST_CT 1 | |
2548396b | 4222 | static tTestDesc aMachine_NameTests[] = { |
17f8e521 | 4223 | { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, }; |
fdb8fb96 | 4224 | |
4225 | /* | |
4226 | * Fix Command Arguments for Machine_Name | |
4227 | */ | |
2548396b | 4228 | static const char* apzMachine_NamePatch[] = { |
6e791f25 | 4229 | "machine_name", |
fdb8fb96 | 4230 | (char*)NULL }; |
4231 | ||
4232 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4233 | * | |
5daf7ede | 4234 | * Description of Math_Exception fix |
fdb8fb96 | 4235 | */ |
4236 | tSCC zMath_ExceptionName[] = | |
d4c4b01d | 4237 | "math_exception"; |
4238 | ||
fdb8fb96 | 4239 | /* |
4240 | * File name selection pattern | |
4241 | */ | |
4242 | tSCC zMath_ExceptionList[] = | |
e9afa104 | 4243 | "math.h\0"; |
fdb8fb96 | 4244 | /* |
4245 | * Machine/OS name selection pattern | |
4246 | */ | |
4247 | #define apzMath_ExceptionMachs (const char**)NULL | |
4248 | ||
4249 | /* | |
c1b28c63 | 4250 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4251 | */ |
4252 | tSCC zMath_ExceptionSelect0[] = | |
4253 | "struct exception"; | |
4254 | ||
bb304030 | 4255 | /* |
4256 | * content bypass pattern - skip fix if pattern found | |
4257 | */ | |
4258 | tSCC zMath_ExceptionBypass0[] = | |
634f7a13 | 4259 | "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception"; |
bb304030 | 4260 | |
4261 | #define MATH_EXCEPTION_TEST_CT 2 | |
2548396b | 4262 | static tTestDesc aMath_ExceptionTests[] = { |
bb304030 | 4263 | { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL }, |
5daf7ede | 4264 | { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4265 | |
4266 | /* | |
4267 | * Fix Command Arguments for Math_Exception | |
4268 | */ | |
2548396b | 4269 | static const char* apzMath_ExceptionPatch[] = { |
e6650807 | 4270 | "wrap", |
4271 | "#ifdef __cplusplus\n\ | |
4272 | #define exception __math_exception\n\ | |
efb1b79b | 4273 | #endif\n", |
e6650807 | 4274 | "#ifdef __cplusplus\n\ |
4275 | #undef exception\n\ | |
efb1b79b | 4276 | #endif\n", |
fdb8fb96 | 4277 | (char*)NULL }; |
4278 | ||
4279 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4280 | * | |
bb304030 | 4281 | * Description of Math_Huge_Val_From_Dbl_Max fix |
fdb8fb96 | 4282 | */ |
bb304030 | 4283 | tSCC zMath_Huge_Val_From_Dbl_MaxName[] = |
d4c4b01d | 4284 | "math_huge_val_from_dbl_max"; |
4285 | ||
fdb8fb96 | 4286 | /* |
4287 | * File name selection pattern | |
4288 | */ | |
bb304030 | 4289 | tSCC zMath_Huge_Val_From_Dbl_MaxList[] = |
e9afa104 | 4290 | "math.h\0"; |
fdb8fb96 | 4291 | /* |
4292 | * Machine/OS name selection pattern | |
4293 | */ | |
bb304030 | 4294 | #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL |
4295 | ||
4296 | /* | |
4297 | * content selection pattern - do fix if pattern found | |
4298 | */ | |
4299 | tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] = | |
b07d36b9 | 4300 | "define[ \t]+HUGE_VAL[ \t]+DBL_MAX"; |
fdb8fb96 | 4301 | |
4302 | /* | |
bb304030 | 4303 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 4304 | */ |
bb304030 | 4305 | tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = |
b07d36b9 | 4306 | "define[ \t]+DBL_MAX"; |
bb304030 | 4307 | |
4308 | #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 | |
2548396b | 4309 | static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { |
bb304030 | 4310 | { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL }, |
4311 | { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, }; | |
4312 | ||
4313 | /* | |
4314 | * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max | |
4315 | */ | |
2548396b | 4316 | static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c", |
5c0b86e6 | 4317 | "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\ |
bb304030 | 4318 | \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\ |
b07d36b9 | 4319 | \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\ |
bb304030 | 4320 | \telse cat\n\ |
4321 | \tfi", | |
4322 | (char*)NULL }; | |
4323 | ||
3072d11f | 4324 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4325 | * | |
4326 | * Description of Nested_Auth_Des fix | |
4327 | */ | |
4328 | tSCC zNested_Auth_DesName[] = | |
4329 | "nested_auth_des"; | |
4330 | ||
4331 | /* | |
4332 | * File name selection pattern | |
4333 | */ | |
4334 | tSCC zNested_Auth_DesList[] = | |
e9afa104 | 4335 | "rpc/rpc.h\0"; |
3072d11f | 4336 | /* |
4337 | * Machine/OS name selection pattern | |
4338 | */ | |
4339 | #define apzNested_Auth_DesMachs (const char**)NULL | |
4340 | ||
4341 | /* | |
4342 | * content selection pattern - do fix if pattern found | |
4343 | */ | |
4344 | tSCC zNested_Auth_DesSelect0[] = | |
4345 | "(/\\*.*rpc/auth_des\\.h>.*)/\\*"; | |
4346 | ||
4347 | #define NESTED_AUTH_DES_TEST_CT 1 | |
4348 | static tTestDesc aNested_Auth_DesTests[] = { | |
4349 | { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, }; | |
4350 | ||
4351 | /* | |
4352 | * Fix Command Arguments for Nested_Auth_Des | |
4353 | */ | |
4354 | static const char* apzNested_Auth_DesPatch[] = { | |
4355 | "format", | |
4356 | "%1*/ /*", | |
4357 | (char*)NULL }; | |
4358 | ||
cfe5be71 | 4359 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4360 | * | |
4361 | * Description of Nested_Sys_Limits fix | |
4362 | */ | |
cfe5be71 | 4363 | tSCC zNested_Sys_LimitsName[] = |
4364 | "nested_sys_limits"; | |
4365 | ||
4366 | /* | |
4367 | * File name selection pattern | |
4368 | */ | |
4369 | tSCC zNested_Sys_LimitsList[] = | |
e9afa104 | 4370 | "sys/limits.h\0"; |
cfe5be71 | 4371 | /* |
4372 | * Machine/OS name selection pattern | |
4373 | */ | |
4374 | #define apzNested_Sys_LimitsMachs (const char**)NULL | |
4375 | ||
4376 | /* | |
4377 | * content selection pattern - do fix if pattern found | |
4378 | */ | |
4379 | tSCC zNested_Sys_LimitsSelect0[] = | |
4380 | "CHILD_MAX"; | |
4381 | ||
4382 | #define NESTED_SYS_LIMITS_TEST_CT 1 | |
2548396b | 4383 | static tTestDesc aNested_Sys_LimitsTests[] = { |
cfe5be71 | 4384 | { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, }; |
4385 | ||
4386 | /* | |
4387 | * Fix Command Arguments for Nested_Sys_Limits | |
4388 | */ | |
ca58af19 | 4389 | static const char* apzNested_Sys_LimitsPatch[] = { "sed", |
4390 | "-e", "/CHILD_MAX/s,/\\* Max, Max,", | |
4391 | "-e", "/OPEN_MAX/s,/\\* Max, Max,", | |
fdb8fb96 | 4392 | (char*)NULL }; |
4393 | ||
4cbf73b4 | 4394 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4395 | * | |
4396 | * Description of Netbsd_C99_Inline_1 fix | |
4397 | */ | |
4398 | tSCC zNetbsd_C99_Inline_1Name[] = | |
4399 | "netbsd_c99_inline_1"; | |
4400 | ||
4401 | /* | |
4402 | * File name selection pattern | |
4403 | */ | |
4404 | tSCC zNetbsd_C99_Inline_1List[] = | |
4405 | "signal.h\0"; | |
4406 | /* | |
4407 | * Machine/OS name selection pattern | |
4408 | */ | |
4409 | tSCC* apzNetbsd_C99_Inline_1Machs[] = { | |
4410 | "*-*-netbsd*", | |
4411 | (const char*)NULL }; | |
4412 | ||
4413 | /* | |
4414 | * content selection pattern - do fix if pattern found | |
4415 | */ | |
4416 | tSCC zNetbsd_C99_Inline_1Select0[] = | |
4417 | "extern __inline int"; | |
4418 | ||
4419 | #define NETBSD_C99_INLINE_1_TEST_CT 1 | |
4420 | static tTestDesc aNetbsd_C99_Inline_1Tests[] = { | |
4421 | { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, }; | |
4422 | ||
4423 | /* | |
4424 | * Fix Command Arguments for Netbsd_C99_Inline_1 | |
4425 | */ | |
4426 | static const char* apzNetbsd_C99_Inline_1Patch[] = { | |
4427 | "format", | |
4428 | "extern\n\ | |
4429 | #ifdef __GNUC_STDC_INLINE__\n\ | |
4430 | __attribute__((__gnu_inline__))\n\ | |
4431 | #endif\n\ | |
4432 | __inline int", | |
4433 | (char*)NULL }; | |
4434 | ||
759bfb14 | 4435 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4436 | * | |
4437 | * Description of Netbsd_C99_Inline_2 fix | |
4438 | */ | |
4439 | tSCC zNetbsd_C99_Inline_2Name[] = | |
4440 | "netbsd_c99_inline_2"; | |
4441 | ||
4442 | /* | |
4443 | * File name selection pattern | |
4444 | */ | |
4445 | tSCC zNetbsd_C99_Inline_2List[] = | |
4446 | "signal.h\0"; | |
4447 | /* | |
4448 | * Machine/OS name selection pattern | |
4449 | */ | |
4450 | tSCC* apzNetbsd_C99_Inline_2Machs[] = { | |
4451 | "*-*-netbsd*", | |
4452 | (const char*)NULL }; | |
4453 | ||
4454 | /* | |
4455 | * content selection pattern - do fix if pattern found | |
4456 | */ | |
4457 | tSCC zNetbsd_C99_Inline_2Select0[] = | |
4458 | "#define _SIGINLINE extern __inline"; | |
4459 | ||
4460 | #define NETBSD_C99_INLINE_2_TEST_CT 1 | |
4461 | static tTestDesc aNetbsd_C99_Inline_2Tests[] = { | |
4462 | { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, }; | |
4463 | ||
4464 | /* | |
4465 | * Fix Command Arguments for Netbsd_C99_Inline_2 | |
4466 | */ | |
4467 | static const char* apzNetbsd_C99_Inline_2Patch[] = { | |
4468 | "format", | |
4469 | "#ifdef __GNUC_STDC_INLINE__\n\ | |
4470 | #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\ | |
4471 | #else\n\ | |
4472 | %0\n\ | |
4473 | #endif", | |
4474 | (char*)NULL }; | |
4475 | ||
81a897fb | 4476 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4477 | * | |
4478 | * Description of Netbsd_Extra_Semicolon fix | |
4479 | */ | |
4480 | tSCC zNetbsd_Extra_SemicolonName[] = | |
4481 | "netbsd_extra_semicolon"; | |
4482 | ||
4483 | /* | |
4484 | * File name selection pattern | |
4485 | */ | |
4486 | tSCC zNetbsd_Extra_SemicolonList[] = | |
e9afa104 | 4487 | "sys/cdefs.h\0"; |
81a897fb | 4488 | /* |
4489 | * Machine/OS name selection pattern | |
4490 | */ | |
4491 | tSCC* apzNetbsd_Extra_SemicolonMachs[] = { | |
4492 | "*-*-netbsd*", | |
4493 | (const char*)NULL }; | |
4494 | ||
4495 | /* | |
4496 | * content selection pattern - do fix if pattern found | |
4497 | */ | |
4498 | tSCC zNetbsd_Extra_SemicolonSelect0[] = | |
4499 | "#define[ \t]*__END_DECLS[ \t]*};"; | |
4500 | ||
4501 | #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1 | |
4502 | static tTestDesc aNetbsd_Extra_SemicolonTests[] = { | |
4503 | { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, }; | |
4504 | ||
4505 | /* | |
4506 | * Fix Command Arguments for Netbsd_Extra_Semicolon | |
4507 | */ | |
4508 | static const char* apzNetbsd_Extra_SemicolonPatch[] = { | |
4509 | "format", | |
4510 | "#define __END_DECLS }", | |
4511 | (char*)NULL }; | |
4512 | ||
fdb8fb96 | 4513 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4514 | * | |
5daf7ede | 4515 | * Description of Next_Math_Prefix fix |
fdb8fb96 | 4516 | */ |
4517 | tSCC zNext_Math_PrefixName[] = | |
d4c4b01d | 4518 | "next_math_prefix"; |
4519 | ||
fdb8fb96 | 4520 | /* |
4521 | * File name selection pattern | |
4522 | */ | |
4523 | tSCC zNext_Math_PrefixList[] = | |
e9afa104 | 4524 | "ansi/math.h\0"; |
fdb8fb96 | 4525 | /* |
4526 | * Machine/OS name selection pattern | |
4527 | */ | |
4528 | #define apzNext_Math_PrefixMachs (const char**)NULL | |
4529 | ||
4530 | /* | |
c1b28c63 | 4531 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4532 | */ |
4533 | tSCC zNext_Math_PrefixSelect0[] = | |
a83746ef | 4534 | "^extern[ \t]+double[ \t]+__const__[ \t]"; |
fdb8fb96 | 4535 | |
4536 | #define NEXT_MATH_PREFIX_TEST_CT 1 | |
2548396b | 4537 | static tTestDesc aNext_Math_PrefixTests[] = { |
5daf7ede | 4538 | { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4539 | |
4540 | /* | |
4541 | * Fix Command Arguments for Next_Math_Prefix | |
4542 | */ | |
2548396b | 4543 | static const char* apzNext_Math_PrefixPatch[] = { |
a83746ef | 4544 | "format", |
4545 | "extern double %1(", | |
4546 | "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(", | |
fdb8fb96 | 4547 | (char*)NULL }; |
4548 | ||
4549 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4550 | * | |
5daf7ede | 4551 | * Description of Next_Template fix |
fdb8fb96 | 4552 | */ |
4553 | tSCC zNext_TemplateName[] = | |
d4c4b01d | 4554 | "next_template"; |
4555 | ||
fdb8fb96 | 4556 | /* |
4557 | * File name selection pattern | |
4558 | */ | |
4559 | tSCC zNext_TemplateList[] = | |
e9afa104 | 4560 | "bsd/libc.h\0"; |
fdb8fb96 | 4561 | /* |
4562 | * Machine/OS name selection pattern | |
4563 | */ | |
4564 | #define apzNext_TemplateMachs (const char**)NULL | |
4565 | ||
4566 | /* | |
c1b28c63 | 4567 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4568 | */ |
4569 | tSCC zNext_TemplateSelect0[] = | |
a83746ef | 4570 | "[ \t]template\\)"; |
fdb8fb96 | 4571 | |
4572 | #define NEXT_TEMPLATE_TEST_CT 1 | |
2548396b | 4573 | static tTestDesc aNext_TemplateTests[] = { |
5daf7ede | 4574 | { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4575 | |
4576 | /* | |
4577 | * Fix Command Arguments for Next_Template | |
4578 | */ | |
2548396b | 4579 | static const char* apzNext_TemplatePatch[] = { |
a83746ef | 4580 | "format", |
4581 | "(%1)", | |
4582 | "\\(([^)]*)[ \t]template\\)", | |
fdb8fb96 | 4583 | (char*)NULL }; |
4584 | ||
4585 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4586 | * | |
5daf7ede | 4587 | * Description of Next_Volitile fix |
fdb8fb96 | 4588 | */ |
4589 | tSCC zNext_VolitileName[] = | |
d4c4b01d | 4590 | "next_volitile"; |
4591 | ||
fdb8fb96 | 4592 | /* |
4593 | * File name selection pattern | |
4594 | */ | |
4595 | tSCC zNext_VolitileList[] = | |
e9afa104 | 4596 | "ansi/stdlib.h\0"; |
fdb8fb96 | 4597 | /* |
4598 | * Machine/OS name selection pattern | |
4599 | */ | |
4600 | #define apzNext_VolitileMachs (const char**)NULL | |
4601 | ||
4602 | /* | |
c1b28c63 | 4603 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4604 | */ |
4605 | tSCC zNext_VolitileSelect0[] = | |
a83746ef | 4606 | "^extern[ \t]+volatile[ \t]+void[ \t]"; |
fdb8fb96 | 4607 | |
4608 | #define NEXT_VOLITILE_TEST_CT 1 | |
2548396b | 4609 | static tTestDesc aNext_VolitileTests[] = { |
5daf7ede | 4610 | { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4611 | |
4612 | /* | |
4613 | * Fix Command Arguments for Next_Volitile | |
4614 | */ | |
2548396b | 4615 | static const char* apzNext_VolitilePatch[] = { |
a83746ef | 4616 | "format", |
4617 | "extern void %1(", | |
4618 | "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(", | |
fdb8fb96 | 4619 | (char*)NULL }; |
4620 | ||
4621 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4622 | * | |
5daf7ede | 4623 | * Description of Next_Wait_Union fix |
fdb8fb96 | 4624 | */ |
4625 | tSCC zNext_Wait_UnionName[] = | |
d4c4b01d | 4626 | "next_wait_union"; |
4627 | ||
fdb8fb96 | 4628 | /* |
4629 | * File name selection pattern | |
4630 | */ | |
4631 | tSCC zNext_Wait_UnionList[] = | |
e9afa104 | 4632 | "sys/wait.h\0"; |
fdb8fb96 | 4633 | /* |
4634 | * Machine/OS name selection pattern | |
4635 | */ | |
4636 | #define apzNext_Wait_UnionMachs (const char**)NULL | |
4637 | ||
4638 | /* | |
c1b28c63 | 4639 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4640 | */ |
4641 | tSCC zNext_Wait_UnionSelect0[] = | |
4642 | "wait\\(union wait"; | |
4643 | ||
4644 | #define NEXT_WAIT_UNION_TEST_CT 1 | |
2548396b | 4645 | static tTestDesc aNext_Wait_UnionTests[] = { |
5daf7ede | 4646 | { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4647 | |
4648 | /* | |
4649 | * Fix Command Arguments for Next_Wait_Union | |
4650 | */ | |
2548396b | 4651 | static const char* apzNext_Wait_UnionPatch[] = { |
038a3e7a | 4652 | "format", |
4653 | "wait(void", | |
fdb8fb96 | 4654 | (char*)NULL }; |
4655 | ||
4656 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4657 | * | |
5daf7ede | 4658 | * Description of Nodeent_Syntax fix |
fdb8fb96 | 4659 | */ |
4660 | tSCC zNodeent_SyntaxName[] = | |
d4c4b01d | 4661 | "nodeent_syntax"; |
4662 | ||
fdb8fb96 | 4663 | /* |
4664 | * File name selection pattern | |
4665 | */ | |
4666 | tSCC zNodeent_SyntaxList[] = | |
e9afa104 | 4667 | "netdnet/dnetdb.h\0"; |
fdb8fb96 | 4668 | /* |
4669 | * Machine/OS name selection pattern | |
4670 | */ | |
4671 | #define apzNodeent_SyntaxMachs (const char**)NULL | |
038a3e7a | 4672 | |
4673 | /* | |
4674 | * content selection pattern - do fix if pattern found | |
4675 | */ | |
4676 | tSCC zNodeent_SyntaxSelect0[] = | |
4677 | "char[ \t]*\\*na_addr[ \t]*$"; | |
4678 | ||
4679 | #define NODEENT_SYNTAX_TEST_CT 1 | |
2548396b | 4680 | static tTestDesc aNodeent_SyntaxTests[] = { |
038a3e7a | 4681 | { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4682 | |
4683 | /* | |
4684 | * Fix Command Arguments for Nodeent_Syntax | |
4685 | */ | |
2548396b | 4686 | static const char* apzNodeent_SyntaxPatch[] = { |
038a3e7a | 4687 | "format", |
4688 | "%0;", | |
fdb8fb96 | 4689 | (char*)NULL }; |
4690 | ||
129b92e3 | 4691 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4692 | * | |
4693 | * Description of Obstack_Lvalue_Cast fix | |
4694 | */ | |
4695 | tSCC zObstack_Lvalue_CastName[] = | |
4696 | "obstack_lvalue_cast"; | |
4697 | ||
4698 | /* | |
4699 | * File name selection pattern | |
4700 | */ | |
4701 | tSCC zObstack_Lvalue_CastList[] = | |
e9afa104 | 4702 | "obstack.h\0"; |
129b92e3 | 4703 | /* |
4704 | * Machine/OS name selection pattern | |
4705 | */ | |
4706 | #define apzObstack_Lvalue_CastMachs (const char**)NULL | |
4707 | ||
4708 | /* | |
4709 | * content selection pattern - do fix if pattern found | |
4710 | */ | |
4711 | tSCC zObstack_Lvalue_CastSelect0[] = | |
4712 | "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)"; | |
4713 | ||
4714 | #define OBSTACK_LVALUE_CAST_TEST_CT 1 | |
4715 | static tTestDesc aObstack_Lvalue_CastTests[] = { | |
4716 | { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, }; | |
4717 | ||
4718 | /* | |
4719 | * Fix Command Arguments for Obstack_Lvalue_Cast | |
4720 | */ | |
4721 | static const char* apzObstack_Lvalue_CastPatch[] = { | |
4722 | "format", | |
4723 | "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))", | |
4724 | (char*)NULL }; | |
4725 | ||
fdb8fb96 | 4726 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4727 | * | |
5daf7ede | 4728 | * Description of Osf_Namespace_A fix |
fdb8fb96 | 4729 | */ |
4730 | tSCC zOsf_Namespace_AName[] = | |
d4c4b01d | 4731 | "osf_namespace_a"; |
4732 | ||
fdb8fb96 | 4733 | /* |
4734 | * File name selection pattern | |
4735 | */ | |
4736 | tSCC zOsf_Namespace_AList[] = | |
e9afa104 | 4737 | "reg_types.h\0sys/lc_core.h\0"; |
fdb8fb96 | 4738 | /* |
4739 | * Machine/OS name selection pattern | |
4740 | */ | |
4741 | #define apzOsf_Namespace_AMachs (const char**)NULL | |
4742 | ||
4743 | /* | |
c1b28c63 | 4744 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 4745 | */ |
4746 | tSCC zOsf_Namespace_ATest0[] = | |
38ebab8a | 4747 | " -r reg_types.h"; |
4748 | tSCC zOsf_Namespace_ATest1[] = | |
4749 | " -r sys/lc_core.h"; | |
4750 | tSCC zOsf_Namespace_ATest2[] = | |
4751 | " -n \"`grep '} regex_t;' reg_types.h`\""; | |
4752 | tSCC zOsf_Namespace_ATest3[] = | |
4753 | " -z \"`grep __regex_t regex.h`\""; | |
4754 | ||
4755 | #define OSF_NAMESPACE_A_TEST_CT 4 | |
2548396b | 4756 | static tTestDesc aOsf_Namespace_ATests[] = { |
5daf7ede | 4757 | { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, |
4758 | { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ }, | |
4759 | { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ }, | |
4760 | { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, }; | |
fdb8fb96 | 4761 | |
4762 | /* | |
4763 | * Fix Command Arguments for Osf_Namespace_A | |
4764 | */ | |
2548396b | 4765 | static const char* apzOsf_Namespace_APatch[] = { |
038a3e7a | 4766 | "format", |
4767 | "__%0", | |
f0a465b4 | 4768 | "reg(ex|off|match)_t", |
fdb8fb96 | 4769 | (char*)NULL }; |
4770 | ||
4771 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4772 | * | |
038a3e7a | 4773 | * Description of Osf_Namespace_C fix |
fdb8fb96 | 4774 | */ |
038a3e7a | 4775 | tSCC zOsf_Namespace_CName[] = |
4776 | "osf_namespace_c"; | |
d4c4b01d | 4777 | |
fdb8fb96 | 4778 | /* |
4779 | * File name selection pattern | |
4780 | */ | |
038a3e7a | 4781 | tSCC zOsf_Namespace_CList[] = |
e9afa104 | 4782 | "regex.h\0"; |
fdb8fb96 | 4783 | /* |
4784 | * Machine/OS name selection pattern | |
4785 | */ | |
038a3e7a | 4786 | #define apzOsf_Namespace_CMachs (const char**)NULL |
4787 | ||
4788 | /* | |
4789 | * content selection pattern - do fix if pattern found | |
4790 | */ | |
4791 | tSCC zOsf_Namespace_CSelect0[] = | |
4792 | "#include <reg_types.h>.*"; | |
fdb8fb96 | 4793 | |
4794 | /* | |
c1b28c63 | 4795 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 4796 | */ |
038a3e7a | 4797 | tSCC zOsf_Namespace_CTest0[] = |
38ebab8a | 4798 | " -r reg_types.h"; |
038a3e7a | 4799 | tSCC zOsf_Namespace_CTest1[] = |
38ebab8a | 4800 | " -r sys/lc_core.h"; |
038a3e7a | 4801 | tSCC zOsf_Namespace_CTest2[] = |
38ebab8a | 4802 | " -n \"`grep '} regex_t;' reg_types.h`\""; |
038a3e7a | 4803 | tSCC zOsf_Namespace_CTest3[] = |
38ebab8a | 4804 | " -z \"`grep __regex_t regex.h`\""; |
4805 | ||
038a3e7a | 4806 | #define OSF_NAMESPACE_C_TEST_CT 5 |
2548396b | 4807 | static tTestDesc aOsf_Namespace_CTests[] = { |
038a3e7a | 4808 | { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ }, |
4809 | { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ }, | |
4810 | { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ }, | |
4811 | { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ }, | |
4812 | { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 4813 | |
4814 | /* | |
038a3e7a | 4815 | * Fix Command Arguments for Osf_Namespace_C |
fdb8fb96 | 4816 | */ |
2548396b | 4817 | static const char* apzOsf_Namespace_CPatch[] = { |
038a3e7a | 4818 | "format", |
4819 | "%0\n\ | |
4820 | typedef __regex_t\tregex_t;\n\ | |
4821 | typedef __regoff_t\tregoff_t;\n\ | |
4822 | typedef __regmatch_t\tregmatch_t;", | |
fdb8fb96 | 4823 | (char*)NULL }; |
4824 | ||
4825 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4826 | * | |
5daf7ede | 4827 | * Description of Pthread_Page_Size fix |
fdb8fb96 | 4828 | */ |
4829 | tSCC zPthread_Page_SizeName[] = | |
d4c4b01d | 4830 | "pthread_page_size"; |
4831 | ||
fdb8fb96 | 4832 | /* |
4833 | * File name selection pattern | |
4834 | */ | |
4835 | tSCC zPthread_Page_SizeList[] = | |
e9afa104 | 4836 | "pthread.h\0"; |
fdb8fb96 | 4837 | /* |
4838 | * Machine/OS name selection pattern | |
4839 | */ | |
4840 | #define apzPthread_Page_SizeMachs (const char**)NULL | |
4841 | ||
4842 | /* | |
c1b28c63 | 4843 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4844 | */ |
4845 | tSCC zPthread_Page_SizeSelect0[] = | |
4846 | "^int __page_size"; | |
4847 | ||
4848 | #define PTHREAD_PAGE_SIZE_TEST_CT 1 | |
2548396b | 4849 | static tTestDesc aPthread_Page_SizeTests[] = { |
5daf7ede | 4850 | { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4851 | |
4852 | /* | |
4853 | * Fix Command Arguments for Pthread_Page_Size | |
4854 | */ | |
2548396b | 4855 | static const char* apzPthread_Page_SizePatch[] = { |
038a3e7a | 4856 | "format", |
4857 | "extern %0", | |
fdb8fb96 | 4858 | (char*)NULL }; |
4859 | ||
a11c2c4d | 4860 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4861 | * | |
4862 | * Description of Pthread_Incomplete_Struct_Argument fix | |
4863 | */ | |
4864 | tSCC zPthread_Incomplete_Struct_ArgumentName[] = | |
4865 | "pthread_incomplete_struct_argument"; | |
4866 | ||
4867 | /* | |
4868 | * File name selection pattern | |
4869 | */ | |
4870 | tSCC zPthread_Incomplete_Struct_ArgumentList[] = | |
e9afa104 | 4871 | "pthread.h\0"; |
a11c2c4d | 4872 | /* |
4873 | * Machine/OS name selection pattern | |
4874 | */ | |
4875 | #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL | |
4876 | ||
4877 | /* | |
4878 | * content selection pattern - do fix if pattern found | |
4879 | */ | |
4880 | tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] = | |
4881 | "struct __jmp_buf_tag"; | |
4882 | ||
4883 | #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1 | |
4884 | static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = { | |
4885 | { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, }; | |
4886 | ||
4887 | /* | |
4888 | * Fix Command Arguments for Pthread_Incomplete_Struct_Argument | |
4889 | */ | |
4890 | static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = { | |
4891 | "format", | |
4892 | "%1 *%2%3", | |
4893 | "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$", | |
4894 | (char*)NULL }; | |
4895 | ||
fdb8fb96 | 4896 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4897 | * | |
5daf7ede | 4898 | * Description of Read_Ret_Type fix |
d0f5620b | 4899 | */ |
4900 | tSCC zRead_Ret_TypeName[] = | |
d4c4b01d | 4901 | "read_ret_type"; |
4902 | ||
d0f5620b | 4903 | /* |
4904 | * File name selection pattern | |
4905 | */ | |
4906 | tSCC zRead_Ret_TypeList[] = | |
e9afa104 | 4907 | "stdio.h\0"; |
d0f5620b | 4908 | /* |
4909 | * Machine/OS name selection pattern | |
4910 | */ | |
4911 | #define apzRead_Ret_TypeMachs (const char**)NULL | |
4912 | ||
4913 | /* | |
4914 | * content selection pattern - do fix if pattern found | |
4915 | */ | |
4916 | tSCC zRead_Ret_TypeSelect0[] = | |
4917 | "extern int\t.*, fread\\(\\), fwrite\\(\\)"; | |
4918 | ||
4919 | #define READ_RET_TYPE_TEST_CT 1 | |
2548396b | 4920 | static tTestDesc aRead_Ret_TypeTests[] = { |
5daf7ede | 4921 | { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, }; |
d0f5620b | 4922 | |
4923 | /* | |
4924 | * Fix Command Arguments for Read_Ret_Type | |
4925 | */ | |
2548396b | 4926 | static const char* apzRead_Ret_TypePatch[] = { |
038a3e7a | 4927 | "format", |
4928 | "extern unsigned int fread(), fwrite();\n\ | |
4929 | %1%2", | |
4930 | "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)", | |
d0f5620b | 4931 | (char*)NULL }; |
4932 | ||
e68aa18b | 4933 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4934 | * | |
4935 | * Description of Rpc_Xdr_Lvalue_Cast_A fix | |
4936 | */ | |
4937 | tSCC zRpc_Xdr_Lvalue_Cast_AName[] = | |
4938 | "rpc_xdr_lvalue_cast_a"; | |
4939 | ||
4940 | /* | |
4941 | * File name selection pattern | |
4942 | */ | |
4943 | tSCC zRpc_Xdr_Lvalue_Cast_AList[] = | |
e9afa104 | 4944 | "rpc/xdr.h\0"; |
e68aa18b | 4945 | /* |
4946 | * Machine/OS name selection pattern | |
4947 | */ | |
4948 | #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL | |
4949 | ||
4950 | /* | |
4951 | * content selection pattern - do fix if pattern found | |
4952 | */ | |
4953 | tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] = | |
4954 | "#define[ \t]*IXDR_GET_LONG.*\\\\\n\ | |
4955 | .*__extension__.*"; | |
4956 | ||
4957 | #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1 | |
4958 | static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = { | |
4959 | { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, }; | |
4960 | ||
4961 | /* | |
4962 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A | |
4963 | */ | |
4964 | static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = { | |
4965 | "format", | |
4966 | "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))", | |
4967 | (char*)NULL }; | |
4968 | ||
4969 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4970 | * | |
4971 | * Description of Rpc_Xdr_Lvalue_Cast_B fix | |
4972 | */ | |
4973 | tSCC zRpc_Xdr_Lvalue_Cast_BName[] = | |
4974 | "rpc_xdr_lvalue_cast_b"; | |
4975 | ||
4976 | /* | |
4977 | * File name selection pattern | |
4978 | */ | |
4979 | tSCC zRpc_Xdr_Lvalue_Cast_BList[] = | |
e9afa104 | 4980 | "rpc/xdr.h\0"; |
e68aa18b | 4981 | /* |
4982 | * Machine/OS name selection pattern | |
4983 | */ | |
4984 | #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL | |
4985 | ||
4986 | /* | |
4987 | * content selection pattern - do fix if pattern found | |
4988 | */ | |
4989 | tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] = | |
4990 | "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\ | |
4991 | .*__extension__.*"; | |
4992 | ||
4993 | #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1 | |
4994 | static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = { | |
4995 | { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, }; | |
4996 | ||
4997 | /* | |
4998 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B | |
4999 | */ | |
5000 | static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = { | |
5001 | "format", | |
5002 | "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))", | |
5003 | (char*)NULL }; | |
5004 | ||
d0f5620b | 5005 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5006 | * | |
5daf7ede | 5007 | * Description of Rs6000_Double fix |
fdb8fb96 | 5008 | */ |
5009 | tSCC zRs6000_DoubleName[] = | |
d4c4b01d | 5010 | "rs6000_double"; |
5011 | ||
fdb8fb96 | 5012 | /* |
5013 | * File name selection pattern | |
5014 | */ | |
5015 | tSCC zRs6000_DoubleList[] = | |
e9afa104 | 5016 | "math.h\0"; |
fdb8fb96 | 5017 | /* |
5018 | * Machine/OS name selection pattern | |
5019 | */ | |
5020 | #define apzRs6000_DoubleMachs (const char**)NULL | |
5021 | ||
5022 | /* | |
c1b28c63 | 5023 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 5024 | */ |
5025 | tSCC zRs6000_DoubleSelect0[] = | |
5026 | "[^a-zA-Z_]class\\("; | |
5027 | ||
5028 | #define RS6000_DOUBLE_TEST_CT 1 | |
2548396b | 5029 | static tTestDesc aRs6000_DoubleTests[] = { |
5daf7ede | 5030 | { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5031 | |
5032 | /* | |
5033 | * Fix Command Arguments for Rs6000_Double | |
5034 | */ | |
2548396b | 5035 | static const char* apzRs6000_DoublePatch[] = { |
038a3e7a | 5036 | "format", |
5037 | "#ifndef __cplusplus\n\ | |
5038 | %0\n\ | |
5039 | #endif", | |
5040 | "^.*[^a-zA-Z_]class\\(.*", | |
fdb8fb96 | 5041 | (char*)NULL }; |
5042 | ||
5043 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5044 | * | |
5daf7ede | 5045 | * Description of Rs6000_Fchmod fix |
fdb8fb96 | 5046 | */ |
5047 | tSCC zRs6000_FchmodName[] = | |
d4c4b01d | 5048 | "rs6000_fchmod"; |
5049 | ||
fdb8fb96 | 5050 | /* |
5051 | * File name selection pattern | |
5052 | */ | |
5053 | tSCC zRs6000_FchmodList[] = | |
e9afa104 | 5054 | "sys/stat.h\0"; |
fdb8fb96 | 5055 | /* |
5056 | * Machine/OS name selection pattern | |
5057 | */ | |
5058 | #define apzRs6000_FchmodMachs (const char**)NULL | |
5059 | ||
5060 | /* | |
c1b28c63 | 5061 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 5062 | */ |
5063 | tSCC zRs6000_FchmodSelect0[] = | |
038a3e7a | 5064 | "fchmod\\(char \\*"; |
fdb8fb96 | 5065 | |
5066 | #define RS6000_FCHMOD_TEST_CT 1 | |
2548396b | 5067 | static tTestDesc aRs6000_FchmodTests[] = { |
5daf7ede | 5068 | { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5069 | |
5070 | /* | |
5071 | * Fix Command Arguments for Rs6000_Fchmod | |
5072 | */ | |
2548396b | 5073 | static const char* apzRs6000_FchmodPatch[] = { |
038a3e7a | 5074 | "format", |
5075 | "fchmod(int", | |
fdb8fb96 | 5076 | (char*)NULL }; |
5077 | ||
5078 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5079 | * | |
5daf7ede | 5080 | * Description of Rs6000_Param fix |
fdb8fb96 | 5081 | */ |
5082 | tSCC zRs6000_ParamName[] = | |
d4c4b01d | 5083 | "rs6000_param"; |
5084 | ||
fdb8fb96 | 5085 | /* |
5086 | * File name selection pattern | |
5087 | */ | |
5088 | tSCC zRs6000_ParamList[] = | |
e9afa104 | 5089 | "stdio.h\0unistd.h\0"; |
fdb8fb96 | 5090 | /* |
5091 | * Machine/OS name selection pattern | |
5092 | */ | |
5093 | #define apzRs6000_ParamMachs (const char**)NULL | |
bb304030 | 5094 | |
5095 | /* | |
5096 | * content selection pattern - do fix if pattern found | |
5097 | */ | |
5098 | tSCC zRs6000_ParamSelect0[] = | |
038a3e7a | 5099 | "rename\\(const char \\*old, const char \\*new\\)"; |
bb304030 | 5100 | |
5101 | #define RS6000_PARAM_TEST_CT 1 | |
2548396b | 5102 | static tTestDesc aRs6000_ParamTests[] = { |
bb304030 | 5103 | { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5104 | |
5105 | /* | |
5106 | * Fix Command Arguments for Rs6000_Param | |
5107 | */ | |
2548396b | 5108 | static const char* apzRs6000_ParamPatch[] = { |
038a3e7a | 5109 | "format", |
5110 | "rename(const char *_old, const char *_new)", | |
fdb8fb96 | 5111 | (char*)NULL }; |
5112 | ||
3c04ceca | 5113 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5114 | * | |
5115 | * Description of Sco_Math fix | |
5116 | */ | |
5117 | tSCC zSco_MathName[] = | |
5118 | "sco_math"; | |
5119 | ||
5120 | /* | |
5121 | * File name selection pattern | |
5122 | */ | |
5123 | tSCC zSco_MathList[] = | |
e9afa104 | 5124 | "math.h\0*/math.h\0"; |
3c04ceca | 5125 | /* |
5126 | * Machine/OS name selection pattern | |
5127 | */ | |
5128 | #define apzSco_MathMachs (const char**)NULL | |
5129 | ||
5130 | /* | |
5131 | * content selection pattern - do fix if pattern found | |
5132 | */ | |
5133 | tSCC zSco_MathSelect0[] = | |
5134 | "inline double abs"; | |
5135 | ||
9119bca7 | 5136 | /* |
5137 | * content bypass pattern - skip fix if pattern found | |
5138 | */ | |
5139 | tSCC zSco_MathBypass0[] = | |
5140 | "__GNUG__"; | |
5141 | ||
5142 | #define SCO_MATH_TEST_CT 2 | |
3c04ceca | 5143 | static tTestDesc aSco_MathTests[] = { |
9119bca7 | 5144 | { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL }, |
3c04ceca | 5145 | { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, }; |
5146 | ||
5147 | /* | |
5148 | * Fix Command Arguments for Sco_Math | |
5149 | */ | |
5150 | static const char* apzSco_MathPatch[] = { "sed", | |
5151 | "-e", "/#define.*__fp_class(a) \\\\/i\\\n\ | |
5152 | #ifndef __GNUC__\n", | |
5153 | "-e", "/.*__builtin_generic/a\\\n\ | |
5154 | #else\\\n\ | |
5155 | #define __fp_class(a) \\\\\\\n\ | |
5156 | __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\ | |
5157 | __fpclassifyl(a), \\\\\\\n\ | |
5158 | __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\ | |
5159 | __fpclassifyf(a),__fpclassify(a)))\\\n\ | |
5160 | #endif", | |
5161 | "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\ | |
5162 | #ifndef __GNUC__\n", | |
5163 | "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\ | |
5164 | #endif /* ! __GNUC__ */", | |
5165 | (char*)NULL }; | |
5166 | ||
e849ea70 | 5167 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5168 | * | |
5169 | * Description of Solaris_Math_1 fix | |
5170 | */ | |
5171 | tSCC zSolaris_Math_1Name[] = | |
5172 | "solaris_math_1"; | |
5173 | ||
5174 | /* | |
5175 | * File name selection pattern | |
5176 | */ | |
5177 | tSCC zSolaris_Math_1List[] = | |
e9afa104 | 5178 | "iso/math_c99.h\0"; |
e849ea70 | 5179 | /* |
5180 | * Machine/OS name selection pattern | |
5181 | */ | |
5182 | #define apzSolaris_Math_1Machs (const char**)NULL | |
5183 | ||
5184 | /* | |
5185 | * content selection pattern - do fix if pattern found | |
5186 | */ | |
5187 | tSCC zSolaris_Math_1Select0[] = | |
5188 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5189 | ||
5190 | /* | |
5191 | * content bypass pattern - skip fix if pattern found | |
5192 | */ | |
5193 | tSCC zSolaris_Math_1Bypass0[] = | |
5194 | "__GNUC__"; | |
5195 | ||
5196 | #define SOLARIS_MATH_1_TEST_CT 2 | |
5197 | static tTestDesc aSolaris_Math_1Tests[] = { | |
5198 | { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL }, | |
5199 | { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, }; | |
5200 | ||
5201 | /* | |
5202 | * Fix Command Arguments for Solaris_Math_1 | |
5203 | */ | |
5204 | static const char* apzSolaris_Math_1Patch[] = { | |
5205 | "format", | |
5206 | "#define\tHUGE_VA%1\t(__builtin_huge_va%2())", | |
5207 | "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)", | |
5208 | (char*)NULL }; | |
5209 | ||
5210 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5211 | * | |
5212 | * Description of Solaris_Math_2 fix | |
5213 | */ | |
5214 | tSCC zSolaris_Math_2Name[] = | |
5215 | "solaris_math_2"; | |
5216 | ||
5217 | /* | |
5218 | * File name selection pattern | |
5219 | */ | |
5220 | tSCC zSolaris_Math_2List[] = | |
e9afa104 | 5221 | "iso/math_c99.h\0"; |
e849ea70 | 5222 | /* |
5223 | * Machine/OS name selection pattern | |
5224 | */ | |
5225 | #define apzSolaris_Math_2Machs (const char**)NULL | |
5226 | ||
5227 | /* | |
5228 | * content selection pattern - do fix if pattern found | |
5229 | */ | |
5230 | tSCC zSolaris_Math_2Select0[] = | |
5231 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5232 | ||
5233 | /* | |
5234 | * content bypass pattern - skip fix if pattern found | |
5235 | */ | |
5236 | tSCC zSolaris_Math_2Bypass0[] = | |
5237 | "__GNUC__"; | |
5238 | ||
5239 | #define SOLARIS_MATH_2_TEST_CT 2 | |
5240 | static tTestDesc aSolaris_Math_2Tests[] = { | |
5241 | { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL }, | |
5242 | { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, }; | |
5243 | ||
5244 | /* | |
5245 | * Fix Command Arguments for Solaris_Math_2 | |
5246 | */ | |
5247 | static const char* apzSolaris_Math_2Patch[] = { | |
5248 | "format", | |
5249 | "#define\tINFINITY\t(__builtin_inff())", | |
5250 | "^#define[ \t]+INFINITY[ \t]+__builtin_infinity", | |
5251 | (char*)NULL }; | |
5252 | ||
5253 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5254 | * | |
5255 | * Description of Solaris_Math_3 fix | |
5256 | */ | |
5257 | tSCC zSolaris_Math_3Name[] = | |
5258 | "solaris_math_3"; | |
5259 | ||
5260 | /* | |
5261 | * File name selection pattern | |
5262 | */ | |
5263 | tSCC zSolaris_Math_3List[] = | |
e9afa104 | 5264 | "iso/math_c99.h\0"; |
e849ea70 | 5265 | /* |
5266 | * Machine/OS name selection pattern | |
5267 | */ | |
5268 | #define apzSolaris_Math_3Machs (const char**)NULL | |
5269 | ||
5270 | /* | |
5271 | * content selection pattern - do fix if pattern found | |
5272 | */ | |
5273 | tSCC zSolaris_Math_3Select0[] = | |
5274 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5275 | ||
5276 | /* | |
5277 | * content bypass pattern - skip fix if pattern found | |
5278 | */ | |
5279 | tSCC zSolaris_Math_3Bypass0[] = | |
5280 | "__GNUC__"; | |
5281 | ||
5282 | #define SOLARIS_MATH_3_TEST_CT 2 | |
5283 | static tTestDesc aSolaris_Math_3Tests[] = { | |
5284 | { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL }, | |
5285 | { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, }; | |
5286 | ||
5287 | /* | |
5288 | * Fix Command Arguments for Solaris_Math_3 | |
5289 | */ | |
5290 | static const char* apzSolaris_Math_3Patch[] = { | |
5291 | "format", | |
5292 | "#define\tNAN\t\t(__builtin_nanf(\"\"))", | |
5293 | "^#define[ \t]+NAN[ \t]+__builtin_nan", | |
5294 | (char*)NULL }; | |
5295 | ||
5296 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5297 | * | |
5298 | * Description of Solaris_Math_4 fix | |
5299 | */ | |
5300 | tSCC zSolaris_Math_4Name[] = | |
5301 | "solaris_math_4"; | |
5302 | ||
5303 | /* | |
5304 | * File name selection pattern | |
5305 | */ | |
5306 | tSCC zSolaris_Math_4List[] = | |
e9afa104 | 5307 | "iso/math_c99.h\0"; |
e849ea70 | 5308 | /* |
5309 | * Machine/OS name selection pattern | |
5310 | */ | |
5311 | #define apzSolaris_Math_4Machs (const char**)NULL | |
5312 | ||
5313 | /* | |
5314 | * content selection pattern - do fix if pattern found | |
5315 | */ | |
5316 | tSCC zSolaris_Math_4Select0[] = | |
5317 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5318 | ||
5319 | /* | |
5320 | * content bypass pattern - skip fix if pattern found | |
5321 | */ | |
5322 | tSCC zSolaris_Math_4Bypass0[] = | |
5323 | "__GNUC__"; | |
5324 | ||
5325 | #define SOLARIS_MATH_4_TEST_CT 2 | |
5326 | static tTestDesc aSolaris_Math_4Tests[] = { | |
5327 | { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL }, | |
5328 | { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, }; | |
5329 | ||
5330 | /* | |
5331 | * Fix Command Arguments for Solaris_Math_4 | |
5332 | */ | |
5333 | static const char* apzSolaris_Math_4Patch[] = { | |
5334 | "format", | |
5335 | "#define\tfpclassify(x) \\\n\ | |
35fcf460 | 5336 | __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))", |
e849ea70 | 5337 | "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)", |
5338 | (char*)NULL }; | |
5339 | ||
e849ea70 | 5340 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5341 | * | |
5342 | * Description of Solaris_Math_8 fix | |
5343 | */ | |
5344 | tSCC zSolaris_Math_8Name[] = | |
5345 | "solaris_math_8"; | |
5346 | ||
5347 | /* | |
5348 | * File name selection pattern | |
5349 | */ | |
5350 | tSCC zSolaris_Math_8List[] = | |
e9afa104 | 5351 | "iso/math_c99.h\0"; |
e849ea70 | 5352 | /* |
5353 | * Machine/OS name selection pattern | |
5354 | */ | |
5355 | #define apzSolaris_Math_8Machs (const char**)NULL | |
5356 | ||
5357 | /* | |
5358 | * content selection pattern - do fix if pattern found | |
5359 | */ | |
5360 | tSCC zSolaris_Math_8Select0[] = | |
5361 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5362 | ||
5363 | /* | |
5364 | * content bypass pattern - skip fix if pattern found | |
5365 | */ | |
5366 | tSCC zSolaris_Math_8Bypass0[] = | |
5367 | "__GNUC__"; | |
5368 | ||
5369 | #define SOLARIS_MATH_8_TEST_CT 2 | |
5370 | static tTestDesc aSolaris_Math_8Tests[] = { | |
5371 | { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL }, | |
5372 | { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, }; | |
5373 | ||
5374 | /* | |
5375 | * Fix Command Arguments for Solaris_Math_8 | |
5376 | */ | |
5377 | static const char* apzSolaris_Math_8Patch[] = { | |
5378 | "format", | |
5379 | "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ | |
5380 | \t\t\t ? __builtin_signbitf(x) \\\n\ | |
5381 | \t\t\t : sizeof(x) == sizeof(long double) \\\n\ | |
5382 | \t\t\t ? __builtin_signbitl(x) \\\n\ | |
5383 | \t\t\t : __builtin_signbit(x))", | |
5384 | "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)", | |
5385 | (char*)NULL }; | |
5386 | ||
5387 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5388 | * | |
5389 | * Description of Solaris_Math_9 fix | |
5390 | */ | |
5391 | tSCC zSolaris_Math_9Name[] = | |
5392 | "solaris_math_9"; | |
5393 | ||
5394 | /* | |
5395 | * File name selection pattern | |
5396 | */ | |
5397 | tSCC zSolaris_Math_9List[] = | |
e9afa104 | 5398 | "iso/math_c99.h\0"; |
e849ea70 | 5399 | /* |
5400 | * Machine/OS name selection pattern | |
5401 | */ | |
5402 | #define apzSolaris_Math_9Machs (const char**)NULL | |
5403 | ||
5404 | /* | |
5405 | * content selection pattern - do fix if pattern found | |
5406 | */ | |
5407 | tSCC zSolaris_Math_9Select0[] = | |
5408 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5409 | ||
5410 | /* | |
5411 | * content bypass pattern - skip fix if pattern found | |
5412 | */ | |
5413 | tSCC zSolaris_Math_9Bypass0[] = | |
5414 | "__GNUC__"; | |
5415 | ||
5416 | #define SOLARIS_MATH_9_TEST_CT 2 | |
5417 | static tTestDesc aSolaris_Math_9Tests[] = { | |
5418 | { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL }, | |
5419 | { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, }; | |
5420 | ||
5421 | /* | |
5422 | * Fix Command Arguments for Solaris_Math_9 | |
5423 | */ | |
5424 | static const char* apzSolaris_Math_9Patch[] = { | |
5425 | "format", | |
5426 | "#define\t%1(x, y)%2__builtin_%1(x, y)", | |
5427 | "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)", | |
5428 | (char*)NULL }; | |
5429 | ||
1b0a9ef1 | 5430 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5431 | * | |
5432 | * Description of Solaris_Math_10 fix | |
5433 | */ | |
5434 | tSCC zSolaris_Math_10Name[] = | |
5435 | "solaris_math_10"; | |
5436 | ||
5437 | /* | |
5438 | * File name selection pattern | |
5439 | */ | |
5440 | tSCC zSolaris_Math_10List[] = | |
5441 | "iso/math_c99.h\0"; | |
5442 | /* | |
5443 | * Machine/OS name selection pattern | |
5444 | */ | |
5445 | #define apzSolaris_Math_10Machs (const char**)NULL | |
5446 | ||
5447 | /* | |
5448 | * content selection pattern - do fix if pattern found | |
5449 | */ | |
5450 | tSCC zSolaris_Math_10Select0[] = | |
5451 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5452 | ||
5453 | #define SOLARIS_MATH_10_TEST_CT 1 | |
5454 | static tTestDesc aSolaris_Math_10Tests[] = { | |
5455 | { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, }; | |
5456 | ||
5457 | /* | |
5458 | * Fix Command Arguments for Solaris_Math_10 | |
5459 | */ | |
5460 | static const char* apzSolaris_Math_10Patch[] = { | |
5461 | "format", | |
5462 | "#define\tisinf(x) __builtin_isinf(x)", | |
5463 | "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\ | |
5464 | [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\ | |
5465 | [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\ | |
5466 | [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)", | |
5467 | (char*)NULL }; | |
5468 | ||
4a050cc7 | 5469 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5470 | * | |
5471 | * Description of Solaris_Mutex_Init_2 fix | |
5472 | */ | |
5473 | tSCC zSolaris_Mutex_Init_2Name[] = | |
5474 | "solaris_mutex_init_2"; | |
5475 | ||
5476 | /* | |
5477 | * File name selection pattern | |
5478 | */ | |
5479 | tSCC zSolaris_Mutex_Init_2List[] = | |
e9afa104 | 5480 | "pthread.h\0"; |
4a050cc7 | 5481 | /* |
5482 | * Machine/OS name selection pattern | |
5483 | */ | |
b960b7b7 | 5484 | tSCC* apzSolaris_Mutex_Init_2Machs[] = { |
5485 | "*-*-solaris2.[0-9]", | |
5486 | "*-*-solaris2.[0-9][!0-9]*", | |
5487 | (const char*)NULL }; | |
4a050cc7 | 5488 | |
5489 | /* | |
5490 | * content selection pattern - do fix if pattern found | |
5491 | */ | |
5492 | tSCC zSolaris_Mutex_Init_2Select0[] = | |
c6738ff5 | 5493 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; |
9aac3497 | 5494 | |
4a050cc7 | 5495 | #define SOLARIS_MUTEX_INIT_2_TEST_CT 1 |
5496 | static tTestDesc aSolaris_Mutex_Init_2Tests[] = { | |
5497 | { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, }; | |
886db012 | 5498 | |
5499 | /* | |
4a050cc7 | 5500 | * Fix Command Arguments for Solaris_Mutex_Init_2 |
886db012 | 5501 | */ |
4a050cc7 | 5502 | static const char* apzSolaris_Mutex_Init_2Patch[] = { |
886db012 | 5503 | "format", |
c6738ff5 | 5504 | "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ |
5505 | %0\n\ | |
5506 | #else\n\ | |
b960b7b7 | 5507 | %1, {0}}%4\n\ |
c6738ff5 | 5508 | #endif", |
b960b7b7 | 5509 | "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\ |
5510 | [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$", | |
886db012 | 5511 | (char*)NULL }; |
5512 | ||
458caa24 | 5513 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5514 | * | |
5515 | * Description of Solaris_Rwlock_Init_1 fix | |
5516 | */ | |
5517 | tSCC zSolaris_Rwlock_Init_1Name[] = | |
5518 | "solaris_rwlock_init_1"; | |
5519 | ||
5520 | /* | |
5521 | * File name selection pattern | |
5522 | */ | |
5523 | tSCC zSolaris_Rwlock_Init_1List[] = | |
e9afa104 | 5524 | "pthread.h\0"; |
458caa24 | 5525 | /* |
5526 | * Machine/OS name selection pattern | |
5527 | */ | |
5528 | tSCC* apzSolaris_Rwlock_Init_1Machs[] = { | |
5529 | "*-*-solaris*", | |
5530 | (const char*)NULL }; | |
5531 | ||
5532 | /* | |
5533 | * content selection pattern - do fix if pattern found | |
5534 | */ | |
5535 | tSCC zSolaris_Rwlock_Init_1Select0[] = | |
5536 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5537 | ||
5538 | #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1 | |
5539 | static tTestDesc aSolaris_Rwlock_Init_1Tests[] = { | |
5540 | { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, }; | |
5541 | ||
5542 | /* | |
5543 | * Fix Command Arguments for Solaris_Rwlock_Init_1 | |
5544 | */ | |
5545 | static const char* apzSolaris_Rwlock_Init_1Patch[] = { | |
5546 | "format", | |
5547 | "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ | |
5548 | %0\n\ | |
5549 | #else\n\ | |
5550 | %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\ | |
5551 | #endif", | |
5552 | "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$", | |
5553 | (char*)NULL }; | |
5554 | ||
5555 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5556 | * | |
5557 | * Description of Solaris_Once_Init_1 fix | |
5558 | */ | |
5559 | tSCC zSolaris_Once_Init_1Name[] = | |
5560 | "solaris_once_init_1"; | |
5561 | ||
5562 | /* | |
5563 | * File name selection pattern | |
5564 | */ | |
5565 | tSCC zSolaris_Once_Init_1List[] = | |
e9afa104 | 5566 | "pthread.h\0"; |
458caa24 | 5567 | /* |
5568 | * Machine/OS name selection pattern | |
5569 | */ | |
5570 | tSCC* apzSolaris_Once_Init_1Machs[] = { | |
5571 | "*-*-solaris*", | |
5572 | (const char*)NULL }; | |
5573 | ||
5574 | /* | |
5575 | * content selection pattern - do fix if pattern found | |
5576 | */ | |
5577 | tSCC zSolaris_Once_Init_1Select0[] = | |
5578 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5579 | ||
5580 | #define SOLARIS_ONCE_INIT_1_TEST_CT 1 | |
5581 | static tTestDesc aSolaris_Once_Init_1Tests[] = { | |
5582 | { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, }; | |
5583 | ||
5584 | /* | |
5585 | * Fix Command Arguments for Solaris_Once_Init_1 | |
5586 | */ | |
5587 | static const char* apzSolaris_Once_Init_1Patch[] = { | |
5588 | "format", | |
5589 | "%1{%2}%3", | |
5590 | "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$", | |
5591 | (char*)NULL }; | |
5592 | ||
a96763ff | 5593 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5594 | * | |
5595 | * Description of Solaris_Once_Init_2 fix | |
5596 | */ | |
5597 | tSCC zSolaris_Once_Init_2Name[] = | |
5598 | "solaris_once_init_2"; | |
5599 | ||
5600 | /* | |
5601 | * File name selection pattern | |
5602 | */ | |
5603 | tSCC zSolaris_Once_Init_2List[] = | |
e9afa104 | 5604 | "pthread.h\0"; |
a96763ff | 5605 | /* |
5606 | * Machine/OS name selection pattern | |
5607 | */ | |
5608 | tSCC* apzSolaris_Once_Init_2Machs[] = { | |
5609 | "*-*-solaris2.[0-9]", | |
5610 | "*-*-solaris2.[0-9][!0-9]*", | |
5611 | (const char*)NULL }; | |
5612 | ||
5613 | /* | |
5614 | * content selection pattern - do fix if pattern found | |
5615 | */ | |
5616 | tSCC zSolaris_Once_Init_2Select0[] = | |
5617 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5618 | ||
5619 | #define SOLARIS_ONCE_INIT_2_TEST_CT 1 | |
5620 | static tTestDesc aSolaris_Once_Init_2Tests[] = { | |
5621 | { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, }; | |
5622 | ||
5623 | /* | |
5624 | * Fix Command Arguments for Solaris_Once_Init_2 | |
5625 | */ | |
5626 | static const char* apzSolaris_Once_Init_2Patch[] = { | |
5627 | "format", | |
5628 | "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ | |
5629 | %0\n\ | |
5630 | #else\n\ | |
5631 | %1{0}, {0}, {0}, {%3}%4\n\ | |
5632 | #endif", | |
5633 | "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$", | |
5634 | (char*)NULL }; | |
5635 | ||
4dbe9809 | 5636 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5637 | * | |
6af9f7ea | 5638 | * Description of Solaris_Stdio_Tag fix |
4dbe9809 | 5639 | */ |
6af9f7ea | 5640 | tSCC zSolaris_Stdio_TagName[] = |
5641 | "solaris_stdio_tag"; | |
4dbe9809 | 5642 | |
5643 | /* | |
5644 | * File name selection pattern | |
5645 | */ | |
6af9f7ea | 5646 | tSCC zSolaris_Stdio_TagList[] = |
5647 | "stdio_tag.h\0"; | |
4dbe9809 | 5648 | /* |
5649 | * Machine/OS name selection pattern | |
5650 | */ | |
6af9f7ea | 5651 | #define apzSolaris_Stdio_TagMachs (const char**)NULL |
4dbe9809 | 5652 | |
5653 | /* | |
5654 | * content selection pattern - do fix if pattern found | |
5655 | */ | |
6af9f7ea | 5656 | tSCC zSolaris_Stdio_TagSelect0[] = |
5657 | "__cplusplus < 54321L"; | |
4dbe9809 | 5658 | |
5659 | /* | |
6af9f7ea | 5660 | * content bypass pattern - skip fix if pattern found |
4dbe9809 | 5661 | */ |
6af9f7ea | 5662 | tSCC zSolaris_Stdio_TagBypass0[] = |
5663 | "__GNUC__"; | |
09a31484 | 5664 | |
5665 | #define SOLARIS_STDIO_TAG_TEST_CT 2 | |
91eb7bbc | 5666 | static tTestDesc aSolaris_Stdio_TagTests[] = { |
09a31484 | 5667 | { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL }, |
91eb7bbc | 5668 | { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, }; |
5669 | ||
5670 | /* | |
5671 | * Fix Command Arguments for Solaris_Stdio_Tag | |
5672 | */ | |
5673 | static const char* apzSolaris_Stdio_TagPatch[] = { "sed", | |
5674 | "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/", | |
5675 | (char*)NULL }; | |
5676 | ||
886db012 | 5677 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5678 | * | |
3072d11f | 5679 | * Description of Statsswtch fix |
886db012 | 5680 | */ |
3072d11f | 5681 | tSCC zStatsswtchName[] = |
5682 | "statsswtch"; | |
886db012 | 5683 | |
5684 | /* | |
5685 | * File name selection pattern | |
5686 | */ | |
3072d11f | 5687 | tSCC zStatsswtchList[] = |
e9afa104 | 5688 | "rpcsvc/rstat.h\0"; |
886db012 | 5689 | /* |
5690 | * Machine/OS name selection pattern | |
5691 | */ | |
3072d11f | 5692 | #define apzStatsswtchMachs (const char**)NULL |
886db012 | 5693 | |
5694 | /* | |
5695 | * content selection pattern - do fix if pattern found | |
5696 | */ | |
3072d11f | 5697 | tSCC zStatsswtchSelect0[] = |
5698 | "boottime$"; | |
9aac3497 | 5699 | |
3072d11f | 5700 | #define STATSSWTCH_TEST_CT 1 |
5701 | static tTestDesc aStatsswtchTests[] = { | |
5702 | { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, }; | |
886db012 | 5703 | |
5704 | /* | |
3072d11f | 5705 | * Fix Command Arguments for Statsswtch |
886db012 | 5706 | */ |
3072d11f | 5707 | static const char* apzStatsswtchPatch[] = { |
886db012 | 5708 | "format", |
3072d11f | 5709 | "boottime;", |
886db012 | 5710 | (char*)NULL }; |
5711 | ||
a712e12c | 5712 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5713 | * | |
3072d11f | 5714 | * Description of Stdio_Stdarg_H fix |
a712e12c | 5715 | */ |
3072d11f | 5716 | tSCC zStdio_Stdarg_HName[] = |
5717 | "stdio_stdarg_h"; | |
a712e12c | 5718 | |
5719 | /* | |
5720 | * File name selection pattern | |
5721 | */ | |
3072d11f | 5722 | tSCC zStdio_Stdarg_HList[] = |
e9afa104 | 5723 | "stdio.h\0"; |
a712e12c | 5724 | /* |
5725 | * Machine/OS name selection pattern | |
5726 | */ | |
09a31484 | 5727 | tSCC* apzStdio_Stdarg_HMachs[] = { |
85dedd01 | 5728 | "*-*-solaris2.1[0-9]*", |
09a31484 | 5729 | (const char*)NULL }; |
a712e12c | 5730 | |
5731 | /* | |
3072d11f | 5732 | * content bypass pattern - skip fix if pattern found |
a712e12c | 5733 | */ |
3072d11f | 5734 | tSCC zStdio_Stdarg_HBypass0[] = |
5735 | "include.*(stdarg.h|machine/ansi.h)"; | |
a712e12c | 5736 | |
3072d11f | 5737 | #define STDIO_STDARG_H_TEST_CT 1 |
5738 | static tTestDesc aStdio_Stdarg_HTests[] = { | |
5739 | { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, }; | |
a712e12c | 5740 | |
5741 | /* | |
3072d11f | 5742 | * Fix Command Arguments for Stdio_Stdarg_H |
a712e12c | 5743 | */ |
3072d11f | 5744 | static const char* apzStdio_Stdarg_HPatch[] = { |
5745 | "wrap", | |
5746 | "#define __need___va_list\n\ | |
5747 | #include <stdarg.h>\n", | |
a712e12c | 5748 | (char*)NULL }; |
5749 | ||
c718ce1e | 5750 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5751 | * | |
3072d11f | 5752 | * Description of Stdio_Va_List fix |
c718ce1e | 5753 | */ |
3072d11f | 5754 | tSCC zStdio_Va_ListName[] = |
5755 | "stdio_va_list"; | |
c718ce1e | 5756 | |
5757 | /* | |
5758 | * File name selection pattern | |
5759 | */ | |
3072d11f | 5760 | tSCC zStdio_Va_ListList[] = |
e9afa104 | 5761 | "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0"; |
c718ce1e | 5762 | /* |
5763 | * Machine/OS name selection pattern | |
5764 | */ | |
09a31484 | 5765 | tSCC* apzStdio_Va_ListMachs[] = { |
85dedd01 | 5766 | "*-*-solaris2.1[0-9]*", |
09a31484 | 5767 | (const char*)NULL }; |
c718ce1e | 5768 | |
5769 | /* | |
3072d11f | 5770 | * content bypass pattern - skip fix if pattern found |
c718ce1e | 5771 | */ |
3072d11f | 5772 | tSCC zStdio_Va_ListBypass0[] = |
5f6aa019 | 5773 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; |
c718ce1e | 5774 | |
ce225e8d | 5775 | #define STDIO_VA_LIST_TEST_CT 1 |
3072d11f | 5776 | static tTestDesc aStdio_Va_ListTests[] = { |
ce225e8d | 5777 | { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, }; |
c718ce1e | 5778 | |
5779 | /* | |
3072d11f | 5780 | * Fix Command Arguments for Stdio_Va_List |
c718ce1e | 5781 | */ |
3072d11f | 5782 | static const char* apzStdio_Va_ListPatch[] = { "sed", |
2a024ef8 | 5783 | "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ |
857f8fc6 | 5784 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ |
3072d11f | 5785 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ |
6bc3b53c | 5786 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ |
3072d11f | 5787 | s@ va_list@ __not_va_list__@\n\ |
5788 | s@\\*va_list@*__not_va_list__@\n\ | |
5789 | s@ __va_list)@ __gnuc_va_list)@\n\ | |
5790 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ | |
b93c3ed1 | 5791 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ |
3072d11f | 5792 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ |
3f2444de | 5793 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ |
3072d11f | 5794 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ |
5795 | s@VA_LIST@DUMMY_VA_LIST@\n\ | |
5796 | s@_Va_LIST@_VA_LIST@", | |
c718ce1e | 5797 | (char*)NULL }; |
5798 | ||
925b9291 | 5799 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5800 | * | |
5801 | * Description of Stdio_Va_List_Clients fix | |
5802 | */ | |
5803 | tSCC zStdio_Va_List_ClientsName[] = | |
5804 | "stdio_va_list_clients"; | |
5805 | ||
5806 | /* | |
5807 | * File name selection pattern | |
5808 | */ | |
5809 | tSCC zStdio_Va_List_ClientsList[] = | |
e9afa104 | 5810 | "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0"; |
925b9291 | 5811 | /* |
5812 | * Machine/OS name selection pattern | |
5813 | */ | |
5814 | #define apzStdio_Va_List_ClientsMachs (const char**)NULL | |
5815 | ||
5816 | /* | |
5817 | * content bypass pattern - skip fix if pattern found | |
5818 | */ | |
5819 | tSCC zStdio_Va_List_ClientsBypass0[] = | |
5820 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; | |
5821 | tSCC zStdio_Va_List_ClientsBypass1[] = | |
5822 | "include <stdarg\\.h>|#ifdef va_start"; | |
5823 | ||
5824 | #define STDIO_VA_LIST_CLIENTS_TEST_CT 2 | |
5825 | static tTestDesc aStdio_Va_List_ClientsTests[] = { | |
5826 | { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL }, | |
5827 | { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, }; | |
5828 | ||
5829 | /* | |
5830 | * Fix Command Arguments for Stdio_Va_List_Clients | |
5831 | */ | |
5832 | static const char* apzStdio_Va_List_ClientsPatch[] = { "sed", | |
5833 | "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ | |
5834 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ | |
5835 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ | |
5836 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ | |
5837 | s@ va_list@ __not_va_list__@\n\ | |
5838 | s@\\*va_list@*__not_va_list__@\n\ | |
5839 | s@ __va_list)@ __gnuc_va_list)@\n\ | |
5840 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ | |
5841 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ | |
5842 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ | |
5843 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ | |
5844 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ | |
5845 | s@VA_LIST@DUMMY_VA_LIST@\n\ | |
5846 | s@_Va_LIST@_VA_LIST@", | |
5847 | (char*)NULL }; | |
5848 | ||
fdb8fb96 | 5849 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5850 | * | |
3072d11f | 5851 | * Description of Strict_Ansi_Not fix |
fdb8fb96 | 5852 | */ |
3072d11f | 5853 | tSCC zStrict_Ansi_NotName[] = |
5854 | "strict_ansi_not"; | |
d4c4b01d | 5855 | |
fdb8fb96 | 5856 | /* |
5857 | * File name selection pattern | |
5858 | */ | |
3072d11f | 5859 | #define zStrict_Ansi_NotList (char*)NULL |
fdb8fb96 | 5860 | /* |
5861 | * Machine/OS name selection pattern | |
5862 | */ | |
3072d11f | 5863 | #define apzStrict_Ansi_NotMachs (const char**)NULL |
5864 | ||
5865 | /* | |
5866 | * content selection pattern - do fix if pattern found | |
5867 | */ | |
5868 | tSCC zStrict_Ansi_NotSelect0[] = | |
3ff85771 | 5869 | "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)"; |
fdb8fb96 | 5870 | |
68d0517a | 5871 | /* |
5872 | * content bypass pattern - skip fix if pattern found | |
5873 | */ | |
5874 | tSCC zStrict_Ansi_NotBypass0[] = | |
5875 | "GNU and MIPS C compilers define __STDC__ differently"; | |
5f6aa019 | 5876 | tSCC zStrict_Ansi_NotBypass1[] = |
5877 | "__SCO_VERSION__.*__STDC__ != 1"; | |
68d0517a | 5878 | |
fdb8fb96 | 5879 | /* |
3072d11f | 5880 | * perform the C function call test |
fdb8fb96 | 5881 | */ |
3072d11f | 5882 | tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers"; |
fdb8fb96 | 5883 | |
5f6aa019 | 5884 | #define STRICT_ANSI_NOT_TEST_CT 4 |
3072d11f | 5885 | static tTestDesc aStrict_Ansi_NotTests[] = { |
5886 | { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ }, | |
68d0517a | 5887 | { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL }, |
5f6aa019 | 5888 | { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL }, |
3072d11f | 5889 | { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5890 | |
5891 | /* | |
3072d11f | 5892 | * Fix Command Arguments for Strict_Ansi_Not |
fdb8fb96 | 5893 | */ |
3072d11f | 5894 | static const char* apzStrict_Ansi_NotPatch[] = { |
038a3e7a | 5895 | "format", |
3ff85771 | 5896 | "%1 !defined(__STRICT_ANSI__)", |
fdb8fb96 | 5897 | (char*)NULL }; |
5898 | ||
d4c4b01d | 5899 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5900 | * | |
3072d11f | 5901 | * Description of Strict_Ansi_Not_Ctd fix |
d4c4b01d | 5902 | */ |
3072d11f | 5903 | tSCC zStrict_Ansi_Not_CtdName[] = |
5904 | "strict_ansi_not_ctd"; | |
d4c4b01d | 5905 | |
5906 | /* | |
5907 | * File name selection pattern | |
5908 | */ | |
3072d11f | 5909 | tSCC zStrict_Ansi_Not_CtdList[] = |
e9afa104 | 5910 | "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0"; |
d4c4b01d | 5911 | /* |
5912 | * Machine/OS name selection pattern | |
5913 | */ | |
3072d11f | 5914 | #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL |
d4c4b01d | 5915 | |
5916 | /* | |
3072d11f | 5917 | * content selection pattern - do fix if pattern found |
d4c4b01d | 5918 | */ |
3072d11f | 5919 | tSCC zStrict_Ansi_Not_CtdSelect0[] = |
3ff85771 | 5920 | "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)"; |
d4c4b01d | 5921 | |
3072d11f | 5922 | /* |
5923 | * perform the C function call test | |
5924 | */ | |
5925 | tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers"; | |
5926 | ||
5927 | #define STRICT_ANSI_NOT_CTD_TEST_CT 2 | |
5928 | static tTestDesc aStrict_Ansi_Not_CtdTests[] = { | |
5929 | { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ }, | |
5930 | { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, }; | |
d4c4b01d | 5931 | |
5932 | /* | |
3072d11f | 5933 | * Fix Command Arguments for Strict_Ansi_Not_Ctd |
d4c4b01d | 5934 | */ |
3072d11f | 5935 | static const char* apzStrict_Ansi_Not_CtdPatch[] = { |
5936 | "format", | |
3ff85771 | 5937 | "%1 !defined(__STRICT_ANSI__)", |
d4c4b01d | 5938 | (char*)NULL }; |
5939 | ||
fdb8fb96 | 5940 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5941 | * | |
3072d11f | 5942 | * Description of Strict_Ansi_Only fix |
fdb8fb96 | 5943 | */ |
3072d11f | 5944 | tSCC zStrict_Ansi_OnlyName[] = |
5945 | "strict_ansi_only"; | |
d4c4b01d | 5946 | |
fdb8fb96 | 5947 | /* |
5948 | * File name selection pattern | |
5949 | */ | |
3072d11f | 5950 | #define zStrict_Ansi_OnlyList (char*)NULL |
fdb8fb96 | 5951 | /* |
5952 | * Machine/OS name selection pattern | |
5953 | */ | |
3072d11f | 5954 | #define apzStrict_Ansi_OnlyMachs (const char**)NULL |
bb304030 | 5955 | |
5956 | /* | |
3072d11f | 5957 | * content selection pattern - do fix if pattern found |
bb304030 | 5958 | */ |
3072d11f | 5959 | tSCC zStrict_Ansi_OnlySelect0[] = |
3ff85771 | 5960 | "^([ \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 | 5961 | |
3072d11f | 5962 | /* |
5963 | * perform the C function call test | |
5964 | */ | |
5965 | tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers"; | |
5966 | ||
5967 | #define STRICT_ANSI_ONLY_TEST_CT 2 | |
5968 | static tTestDesc aStrict_Ansi_OnlyTests[] = { | |
5969 | { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ }, | |
5970 | { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 5971 | |
5972 | /* | |
3072d11f | 5973 | * Fix Command Arguments for Strict_Ansi_Only |
fdb8fb96 | 5974 | */ |
3072d11f | 5975 | static const char* apzStrict_Ansi_OnlyPatch[] = { |
5976 | "format", | |
3ff85771 | 5977 | "%1 defined(__STRICT_ANSI__)", |
fdb8fb96 | 5978 | (char*)NULL }; |
5979 | ||
cfe5be71 | 5980 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5981 | * | |
5982 | * Description of Struct_File fix | |
5983 | */ | |
cfe5be71 | 5984 | tSCC zStruct_FileName[] = |
5985 | "struct_file"; | |
5986 | ||
5987 | /* | |
5988 | * File name selection pattern | |
5989 | */ | |
5990 | tSCC zStruct_FileList[] = | |
e9afa104 | 5991 | "rpc/xdr.h\0"; |
cfe5be71 | 5992 | /* |
5993 | * Machine/OS name selection pattern | |
5994 | */ | |
5995 | #define apzStruct_FileMachs (const char**)NULL | |
5996 | ||
5997 | /* | |
5998 | * content selection pattern - do fix if pattern found | |
5999 | */ | |
6000 | tSCC zStruct_FileSelect0[] = | |
6001 | "^.*xdrstdio_create.*struct __file_s"; | |
6002 | ||
6003 | #define STRUCT_FILE_TEST_CT 1 | |
2548396b | 6004 | static tTestDesc aStruct_FileTests[] = { |
cfe5be71 | 6005 | { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, }; |
6006 | ||
6007 | /* | |
6008 | * Fix Command Arguments for Struct_File | |
6009 | */ | |
2548396b | 6010 | static const char* apzStruct_FilePatch[] = { |
cfe5be71 | 6011 | "format", |
6012 | "struct __file_s;\n\ | |
6013 | %0", | |
6014 | (char*)NULL }; | |
6015 | ||
6016 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6017 | * | |
6018 | * Description of Struct_Sockaddr fix | |
6019 | */ | |
cfe5be71 | 6020 | tSCC zStruct_SockaddrName[] = |
6021 | "struct_sockaddr"; | |
6022 | ||
6023 | /* | |
6024 | * File name selection pattern | |
6025 | */ | |
6026 | tSCC zStruct_SockaddrList[] = | |
e9afa104 | 6027 | "rpc/auth.h\0"; |
cfe5be71 | 6028 | /* |
6029 | * Machine/OS name selection pattern | |
6030 | */ | |
6031 | #define apzStruct_SockaddrMachs (const char**)NULL | |
6032 | ||
6033 | /* | |
6034 | * content selection pattern - do fix if pattern found | |
6035 | */ | |
6036 | tSCC zStruct_SockaddrSelect0[] = | |
4176aa8f | 6037 | "^.*authdes_create.*struct sockaddr[^_]"; |
cfe5be71 | 6038 | |
6039 | /* | |
6040 | * content bypass pattern - skip fix if pattern found | |
6041 | */ | |
6042 | tSCC zStruct_SockaddrBypass0[] = | |
6043 | "<sys/socket.h>"; | |
4176aa8f | 6044 | tSCC zStruct_SockaddrBypass1[] = |
6045 | "struct sockaddr;\n"; | |
cfe5be71 | 6046 | |
4176aa8f | 6047 | #define STRUCT_SOCKADDR_TEST_CT 3 |
2548396b | 6048 | static tTestDesc aStruct_SockaddrTests[] = { |
cfe5be71 | 6049 | { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL }, |
4176aa8f | 6050 | { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL }, |
cfe5be71 | 6051 | { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, }; |
6052 | ||
6053 | /* | |
6054 | * Fix Command Arguments for Struct_Sockaddr | |
6055 | */ | |
2548396b | 6056 | static const char* apzStruct_SockaddrPatch[] = { |
cfe5be71 | 6057 | "format", |
6058 | "struct sockaddr;\n\ | |
6059 | %0", | |
6060 | (char*)NULL }; | |
6061 | ||
a712e12c | 6062 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6063 | * | |
6064 | * Description of Sun_Auth_Proto fix | |
6065 | */ | |
a712e12c | 6066 | tSCC zSun_Auth_ProtoName[] = |
6067 | "sun_auth_proto"; | |
6068 | ||
6069 | /* | |
6070 | * File name selection pattern | |
6071 | */ | |
6072 | tSCC zSun_Auth_ProtoList[] = | |
e9afa104 | 6073 | "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0"; |
a712e12c | 6074 | /* |
6075 | * Machine/OS name selection pattern | |
6076 | */ | |
6077 | #define apzSun_Auth_ProtoMachs (const char**)NULL | |
6078 | ||
6079 | /* | |
6080 | * content selection pattern - do fix if pattern found | |
6081 | */ | |
6082 | tSCC zSun_Auth_ProtoSelect0[] = | |
6083 | "\\(\\*[a-z][a-z_]*\\)\\(\\)"; | |
6084 | ||
69c13546 | 6085 | /* |
6086 | * content bypass pattern - skip fix if pattern found | |
6087 | */ | |
6088 | tSCC zSun_Auth_ProtoBypass0[] = | |
6089 | "__cplusplus"; | |
6090 | ||
6091 | #define SUN_AUTH_PROTO_TEST_CT 2 | |
2548396b | 6092 | static tTestDesc aSun_Auth_ProtoTests[] = { |
69c13546 | 6093 | { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL }, |
a712e12c | 6094 | { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; |
6095 | ||
6096 | /* | |
6097 | * Fix Command Arguments for Sun_Auth_Proto | |
6098 | */ | |
2548396b | 6099 | static const char* apzSun_Auth_ProtoPatch[] = { |
038a3e7a | 6100 | "format", |
6101 | "#ifdef __cplusplus\n\ | |
6102 | %1(...);%2\n\ | |
6103 | #else\n\ | |
6104 | %1();%2\n\ | |
6105 | #endif", | |
6106 | "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)", | |
a712e12c | 6107 | (char*)NULL }; |
6108 | ||
fdb8fb96 | 6109 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6110 | * | |
5daf7ede | 6111 | * Description of Sun_Bogus_Ifdef fix |
fdb8fb96 | 6112 | */ |
6113 | tSCC zSun_Bogus_IfdefName[] = | |
d4c4b01d | 6114 | "sun_bogus_ifdef"; |
6115 | ||
fdb8fb96 | 6116 | /* |
6117 | * File name selection pattern | |
6118 | */ | |
6119 | tSCC zSun_Bogus_IfdefList[] = | |
e9afa104 | 6120 | "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0"; |
fdb8fb96 | 6121 | /* |
6122 | * Machine/OS name selection pattern | |
6123 | */ | |
6124 | #define apzSun_Bogus_IfdefMachs (const char**)NULL | |
6125 | ||
6126 | /* | |
c1b28c63 | 6127 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6128 | */ |
6129 | tSCC zSun_Bogus_IfdefSelect0[] = | |
038a3e7a | 6130 | "#ifdef(.*\\|\\|.*)"; |
fdb8fb96 | 6131 | |
6132 | #define SUN_BOGUS_IFDEF_TEST_CT 1 | |
2548396b | 6133 | static tTestDesc aSun_Bogus_IfdefTests[] = { |
5daf7ede | 6134 | { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6135 | |
6136 | /* | |
6137 | * Fix Command Arguments for Sun_Bogus_Ifdef | |
6138 | */ | |
2548396b | 6139 | static const char* apzSun_Bogus_IfdefPatch[] = { |
038a3e7a | 6140 | "format", |
6141 | "#if%1", | |
fdb8fb96 | 6142 | (char*)NULL }; |
6143 | ||
6144 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6145 | * | |
5daf7ede | 6146 | * Description of Sun_Catmacro fix |
fdb8fb96 | 6147 | */ |
6148 | tSCC zSun_CatmacroName[] = | |
d4c4b01d | 6149 | "sun_catmacro"; |
6150 | ||
fdb8fb96 | 6151 | /* |
6152 | * File name selection pattern | |
6153 | */ | |
6154 | tSCC zSun_CatmacroList[] = | |
e9afa104 | 6155 | "pixrect/memvar.h\0"; |
fdb8fb96 | 6156 | /* |
6157 | * Machine/OS name selection pattern | |
6158 | */ | |
6159 | #define apzSun_CatmacroMachs (const char**)NULL | |
6160 | ||
6161 | /* | |
c1b28c63 | 6162 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6163 | */ |
6164 | tSCC zSun_CatmacroSelect0[] = | |
038a3e7a | 6165 | "^#define[ \t]+CAT\\(a,b\\).*"; |
fdb8fb96 | 6166 | |
6167 | #define SUN_CATMACRO_TEST_CT 1 | |
2548396b | 6168 | static tTestDesc aSun_CatmacroTests[] = { |
5daf7ede | 6169 | { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6170 | |
6171 | /* | |
6172 | * Fix Command Arguments for Sun_Catmacro | |
6173 | */ | |
2548396b | 6174 | static const char* apzSun_CatmacroPatch[] = { |
038a3e7a | 6175 | "format", |
6176 | "#ifdef __STDC__\n\ | |
6177 | # define CAT(a,b) a##b\n\ | |
6178 | #else\n\ | |
6179 | %0\n\ | |
6180 | #endif", | |
fdb8fb96 | 6181 | (char*)NULL }; |
6182 | ||
6183 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6184 | * | |
5daf7ede | 6185 | * Description of Sun_Malloc fix |
fdb8fb96 | 6186 | */ |
6187 | tSCC zSun_MallocName[] = | |
d4c4b01d | 6188 | "sun_malloc"; |
6189 | ||
fdb8fb96 | 6190 | /* |
6191 | * File name selection pattern | |
6192 | */ | |
6193 | tSCC zSun_MallocList[] = | |
e9afa104 | 6194 | "malloc.h\0"; |
fdb8fb96 | 6195 | /* |
6196 | * Machine/OS name selection pattern | |
6197 | */ | |
6198 | #define apzSun_MallocMachs (const char**)NULL | |
69c13546 | 6199 | |
6200 | /* | |
6201 | * content bypass pattern - skip fix if pattern found | |
6202 | */ | |
6203 | tSCC zSun_MallocBypass0[] = | |
6204 | "_CLASSIC_ANSI_TYPES"; | |
6205 | ||
6206 | #define SUN_MALLOC_TEST_CT 1 | |
6207 | static tTestDesc aSun_MallocTests[] = { | |
6208 | { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, }; | |
fdb8fb96 | 6209 | |
6210 | /* | |
6211 | * Fix Command Arguments for Sun_Malloc | |
6212 | */ | |
2548396b | 6213 | static const char* apzSun_MallocPatch[] = { "sed", |
c1b28c63 | 6214 | "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g", |
6215 | "-e", "s/int[ \t][ \t]*free/void\tfree/g", | |
6216 | "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g", | |
6217 | "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g", | |
6e58c05f | 6218 | "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g", |
fdb8fb96 | 6219 | (char*)NULL }; |
6220 | ||
fdb8fb96 | 6221 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6222 | * | |
5daf7ede | 6223 | * Description of Sun_Rusers_Semi fix |
fdb8fb96 | 6224 | */ |
6225 | tSCC zSun_Rusers_SemiName[] = | |
d4c4b01d | 6226 | "sun_rusers_semi"; |
6227 | ||
fdb8fb96 | 6228 | /* |
6229 | * File name selection pattern | |
6230 | */ | |
6231 | tSCC zSun_Rusers_SemiList[] = | |
e9afa104 | 6232 | "rpcsvc/rusers.h\0"; |
fdb8fb96 | 6233 | /* |
6234 | * Machine/OS name selection pattern | |
6235 | */ | |
6236 | #define apzSun_Rusers_SemiMachs (const char**)NULL | |
6237 | ||
6238 | /* | |
c1b28c63 | 6239 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6240 | */ |
6241 | tSCC zSun_Rusers_SemiSelect0[] = | |
6242 | "_cnt$"; | |
6243 | ||
6244 | #define SUN_RUSERS_SEMI_TEST_CT 1 | |
2548396b | 6245 | static tTestDesc aSun_Rusers_SemiTests[] = { |
5daf7ede | 6246 | { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6247 | |
6248 | /* | |
6249 | * Fix Command Arguments for Sun_Rusers_Semi | |
6250 | */ | |
2548396b | 6251 | static const char* apzSun_Rusers_SemiPatch[] = { "sed", |
c1b28c63 | 6252 | "-e", "/^struct/,/^};/s/_cnt$/_cnt;/", |
fdb8fb96 | 6253 | (char*)NULL }; |
6254 | ||
6255 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6256 | * | |
5daf7ede | 6257 | * Description of Sun_Signal fix |
fdb8fb96 | 6258 | */ |
6259 | tSCC zSun_SignalName[] = | |
d4c4b01d | 6260 | "sun_signal"; |
6261 | ||
fdb8fb96 | 6262 | /* |
6263 | * File name selection pattern | |
6264 | */ | |
6265 | tSCC zSun_SignalList[] = | |
e9afa104 | 6266 | "sys/signal.h\0signal.h\0"; |
fdb8fb96 | 6267 | /* |
6268 | * Machine/OS name selection pattern | |
6269 | */ | |
6270 | #define apzSun_SignalMachs (const char**)NULL | |
6271 | ||
6272 | /* | |
c1b28c63 | 6273 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6274 | */ |
6275 | tSCC zSun_SignalSelect0[] = | |
038a3e7a | 6276 | "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*"; |
fdb8fb96 | 6277 | |
6278 | #define SUN_SIGNAL_TEST_CT 1 | |
2548396b | 6279 | static tTestDesc aSun_SignalTests[] = { |
5daf7ede | 6280 | { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6281 | |
6282 | /* | |
6283 | * Fix Command Arguments for Sun_Signal | |
6284 | */ | |
2548396b | 6285 | static const char* apzSun_SignalPatch[] = { |
038a3e7a | 6286 | "format", |
6287 | "#ifdef __cplusplus\n\ | |
6288 | void\t(*signal(...))(...);\n\ | |
6289 | #else\n\ | |
6290 | %0\n\ | |
6291 | #endif", | |
fdb8fb96 | 6292 | (char*)NULL }; |
6293 | ||
fdb8fb96 | 6294 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6295 | * | |
5daf7ede | 6296 | * Description of Sunos_Strlen fix |
fdb8fb96 | 6297 | */ |
6298 | tSCC zSunos_StrlenName[] = | |
d4c4b01d | 6299 | "sunos_strlen"; |
6300 | ||
fdb8fb96 | 6301 | /* |
6302 | * File name selection pattern | |
6303 | */ | |
6304 | tSCC zSunos_StrlenList[] = | |
e9afa104 | 6305 | "strings.h\0"; |
fdb8fb96 | 6306 | /* |
6307 | * Machine/OS name selection pattern | |
6308 | */ | |
6309 | #define apzSunos_StrlenMachs (const char**)NULL | |
bb304030 | 6310 | |
6311 | /* | |
6312 | * content selection pattern - do fix if pattern found | |
6313 | */ | |
6314 | tSCC zSunos_StrlenSelect0[] = | |
038a3e7a | 6315 | "int[ \t]*strlen\\(\\);(.*)"; |
bb304030 | 6316 | |
6317 | #define SUNOS_STRLEN_TEST_CT 1 | |
2548396b | 6318 | static tTestDesc aSunos_StrlenTests[] = { |
bb304030 | 6319 | { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6320 | |
6321 | /* | |
6322 | * Fix Command Arguments for Sunos_Strlen | |
6323 | */ | |
2548396b | 6324 | static const char* apzSunos_StrlenPatch[] = { |
038a3e7a | 6325 | "format", |
6326 | "__SIZE_TYPE__ strlen();%1", | |
6327 | (char*)NULL }; | |
6328 | ||
3c04ceca | 6329 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6330 | * | |
6331 | * Description of Svr4_Disable_Opt fix | |
6332 | */ | |
6333 | tSCC zSvr4_Disable_OptName[] = | |
6334 | "svr4_disable_opt"; | |
6335 | ||
6336 | /* | |
6337 | * File name selection pattern | |
6338 | */ | |
6339 | tSCC zSvr4_Disable_OptList[] = | |
e9afa104 | 6340 | "string.h\0"; |
3c04ceca | 6341 | /* |
6342 | * Machine/OS name selection pattern | |
6343 | */ | |
6344 | #define apzSvr4_Disable_OptMachs (const char**)NULL | |
6345 | ||
6346 | /* | |
6347 | * content selection pattern - do fix if pattern found | |
6348 | */ | |
6349 | tSCC zSvr4_Disable_OptSelect0[] = | |
6350 | "#define.*__std_hdr_"; | |
6351 | ||
6352 | #define SVR4_DISABLE_OPT_TEST_CT 1 | |
6353 | static tTestDesc aSvr4_Disable_OptTests[] = { | |
6354 | { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, }; | |
6355 | ||
6356 | /* | |
6357 | * Fix Command Arguments for Svr4_Disable_Opt | |
6358 | */ | |
6359 | static const char* apzSvr4_Disable_OptPatch[] = { "sed", | |
6360 | "-e", "/#define.*__std_hdr_/d", | |
6361 | (char*)NULL }; | |
6362 | ||
a712e12c | 6363 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6364 | * | |
6365 | * Description of Svr4_Getcwd fix | |
6366 | */ | |
a712e12c | 6367 | tSCC zSvr4_GetcwdName[] = |
6368 | "svr4_getcwd"; | |
6369 | ||
6370 | /* | |
6371 | * File name selection pattern | |
6372 | */ | |
6373 | tSCC zSvr4_GetcwdList[] = | |
e9afa104 | 6374 | "stdlib.h\0unistd.h\0prototypes.h\0"; |
a712e12c | 6375 | /* |
6376 | * Machine/OS name selection pattern | |
6377 | */ | |
6378 | #define apzSvr4_GetcwdMachs (const char**)NULL | |
6379 | ||
6380 | /* | |
6381 | * content selection pattern - do fix if pattern found | |
6382 | */ | |
6383 | tSCC zSvr4_GetcwdSelect0[] = | |
6384 | "getcwd\\(char \\*, int\\)"; | |
6385 | ||
6386 | #define SVR4_GETCWD_TEST_CT 1 | |
2548396b | 6387 | static tTestDesc aSvr4_GetcwdTests[] = { |
a712e12c | 6388 | { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, }; |
6389 | ||
6390 | /* | |
6391 | * Fix Command Arguments for Svr4_Getcwd | |
6392 | */ | |
2548396b | 6393 | static const char* apzSvr4_GetcwdPatch[] = { |
038a3e7a | 6394 | "format", |
6395 | "getcwd(char *, size_t)", | |
a712e12c | 6396 | (char*)NULL }; |
6397 | ||
6398 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6399 | * | |
6400 | * Description of Svr4_Profil fix | |
6401 | */ | |
a712e12c | 6402 | tSCC zSvr4_ProfilName[] = |
6403 | "svr4_profil"; | |
6404 | ||
6405 | /* | |
6406 | * File name selection pattern | |
6407 | */ | |
6af9f7ea | 6408 | tSCC zSvr4_ProfilList[] = |
6409 | "stdlib.h\0unistd.h\0"; | |
7ab961ad | 6410 | /* |
6411 | * Machine/OS name selection pattern | |
6412 | */ | |
6af9f7ea | 6413 | #define apzSvr4_ProfilMachs (const char**)NULL |
7ab961ad | 6414 | |
6415 | /* | |
6416 | * content selection pattern - do fix if pattern found | |
6417 | */ | |
6af9f7ea | 6418 | tSCC zSvr4_ProfilSelect0[] = |
6419 | "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)"; | |
6420 | ||
6421 | /* | |
6422 | * content bypass pattern - skip fix if pattern found | |
6423 | */ | |
6424 | tSCC zSvr4_ProfilBypass0[] = | |
6425 | "Silicon Graphics"; | |
7ab961ad | 6426 | |
6af9f7ea | 6427 | #define SVR4_PROFIL_TEST_CT 2 |
6428 | static tTestDesc aSvr4_ProfilTests[] = { | |
6429 | { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL }, | |
6430 | { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, }; | |
7ab961ad | 6431 | |
6432 | /* | |
6af9f7ea | 6433 | * Fix Command Arguments for Svr4_Profil |
7ab961ad | 6434 | */ |
6af9f7ea | 6435 | static const char* apzSvr4_ProfilPatch[] = { |
6436 | "format", | |
6437 | "profil(unsigned short *, size_t, int, unsigned int)", | |
7ab961ad | 6438 | (char*)NULL }; |
6439 | ||
6440 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6441 | * | |
6af9f7ea | 6442 | * Description of Svr4_Sighandler_Type fix |
7ab961ad | 6443 | */ |
6af9f7ea | 6444 | tSCC zSvr4_Sighandler_TypeName[] = |
6445 | "svr4_sighandler_type"; | |
7ab961ad | 6446 | |
6447 | /* | |
6448 | * File name selection pattern | |
6449 | */ | |
6af9f7ea | 6450 | tSCC zSvr4_Sighandler_TypeList[] = |
6451 | "sys/signal.h\0"; | |
7ab961ad | 6452 | /* |
6453 | * Machine/OS name selection pattern | |
6454 | */ | |
6af9f7ea | 6455 | #define apzSvr4_Sighandler_TypeMachs (const char**)NULL |
7ab961ad | 6456 | |
6457 | /* | |
6458 | * content selection pattern - do fix if pattern found | |
6459 | */ | |
6af9f7ea | 6460 | tSCC zSvr4_Sighandler_TypeSelect0[] = |
6461 | "void *\\(\\*\\)\\(\\)"; | |
7ab961ad | 6462 | |
6af9f7ea | 6463 | #define SVR4_SIGHANDLER_TYPE_TEST_CT 1 |
6464 | static tTestDesc aSvr4_Sighandler_TypeTests[] = { | |
6465 | { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, }; | |
7ab961ad | 6466 | |
6467 | /* | |
6af9f7ea | 6468 | * Fix Command Arguments for Svr4_Sighandler_Type |
7ab961ad | 6469 | */ |
6af9f7ea | 6470 | static const char* apzSvr4_Sighandler_TypePatch[] = { |
6471 | "format", | |
6472 | "void (*)(int)", | |
7ab961ad | 6473 | (char*)NULL }; |
6474 | ||
37935110 | 6475 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6476 | * | |
6af9f7ea | 6477 | * Description of Svr4_Undeclared_Getrnge fix |
37935110 | 6478 | */ |
6af9f7ea | 6479 | tSCC zSvr4_Undeclared_GetrngeName[] = |
6480 | "svr4_undeclared_getrnge"; | |
37935110 | 6481 | |
6482 | /* | |
6483 | * File name selection pattern | |
6484 | */ | |
6af9f7ea | 6485 | tSCC zSvr4_Undeclared_GetrngeList[] = |
6486 | "regexp.h\0"; | |
37935110 | 6487 | /* |
6488 | * Machine/OS name selection pattern | |
6489 | */ | |
6af9f7ea | 6490 | #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL |
37935110 | 6491 | |
6492 | /* | |
6493 | * content selection pattern - do fix if pattern found | |
6494 | */ | |
6af9f7ea | 6495 | tSCC zSvr4_Undeclared_GetrngeSelect0[] = |
6496 | "getrnge"; | |
6497 | ||
6498 | /* | |
6499 | * content bypass pattern - skip fix if pattern found | |
6500 | */ | |
6501 | tSCC zSvr4_Undeclared_GetrngeBypass0[] = | |
6502 | "static void getrnge"; | |
37935110 | 6503 | |
6af9f7ea | 6504 | #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2 |
6505 | static tTestDesc aSvr4_Undeclared_GetrngeTests[] = { | |
6506 | { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL }, | |
6507 | { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, }; | |
37935110 | 6508 | |
6509 | /* | |
6af9f7ea | 6510 | * Fix Command Arguments for Svr4_Undeclared_Getrnge |
37935110 | 6511 | */ |
6af9f7ea | 6512 | static const char* apzSvr4_Undeclared_GetrngePatch[] = { |
6513 | "format", | |
6514 | "%0\n\ | |
6515 | static int getrnge ();", | |
6516 | "^static int[ \t]+size;", | |
37935110 | 6517 | (char*)NULL }; |
6518 | ||
7ab961ad | 6519 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6520 | * | |
6af9f7ea | 6521 | * Description of Sysv68_String fix |
7ab961ad | 6522 | */ |
6af9f7ea | 6523 | tSCC zSysv68_StringName[] = |
6524 | "sysv68_string"; | |
7ab961ad | 6525 | |
6526 | /* | |
6527 | * File name selection pattern | |
6528 | */ | |
6af9f7ea | 6529 | tSCC zSysv68_StringList[] = |
6530 | "testing.h\0string.h\0"; | |
7ab961ad | 6531 | /* |
6532 | * Machine/OS name selection pattern | |
6533 | */ | |
6af9f7ea | 6534 | #define apzSysv68_StringMachs (const char**)NULL |
7ab961ad | 6535 | |
6536 | /* | |
6af9f7ea | 6537 | * content bypass pattern - skip fix if pattern found |
7ab961ad | 6538 | */ |
6af9f7ea | 6539 | tSCC zSysv68_StringBypass0[] = |
6540 | "_CLASSIC_ANSI_TYPES"; | |
7ab961ad | 6541 | |
6af9f7ea | 6542 | #define SYSV68_STRING_TEST_CT 1 |
6543 | static tTestDesc aSysv68_StringTests[] = { | |
6544 | { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, }; | |
7ab961ad | 6545 | |
6546 | /* | |
6af9f7ea | 6547 | * Fix Command Arguments for Sysv68_String |
7ab961ad | 6548 | */ |
6af9f7ea | 6549 | static const char* apzSysv68_StringPatch[] = { "sed", |
6550 | "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/", | |
6551 | "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/", | |
6552 | "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/", | |
6553 | "-e", "/^extern char$/N", | |
6554 | "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/", | |
6555 | "-e", "/^extern int$/N", | |
6556 | "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/", | |
6557 | "-e", "/^\tstrncmp(),$/N", | |
6558 | "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ | |
6559 | extern unsigned int\\\n\ | |
6560 | \\2/", | |
7ab961ad | 6561 | (char*)NULL }; |
6562 | ||
37935110 | 6563 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6564 | * | |
6af9f7ea | 6565 | * Description of Sysz_Stdlib_For_Sun fix |
37935110 | 6566 | */ |
6af9f7ea | 6567 | tSCC zSysz_Stdlib_For_SunName[] = |
6568 | "sysz_stdlib_for_sun"; | |
37935110 | 6569 | |
6570 | /* | |
6571 | * File name selection pattern | |
6572 | */ | |
6af9f7ea | 6573 | tSCC zSysz_Stdlib_For_SunList[] = |
6574 | "stdlib.h\0"; | |
37935110 | 6575 | /* |
6576 | * Machine/OS name selection pattern | |
6577 | */ | |
6af9f7ea | 6578 | #define apzSysz_Stdlib_For_SunMachs (const char**)NULL |
37935110 | 6579 | |
6580 | /* | |
6581 | * content selection pattern - do fix if pattern found | |
6582 | */ | |
6af9f7ea | 6583 | tSCC zSysz_Stdlib_For_SunSelect0[] = |
6584 | "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\("; | |
6585 | ||
6586 | /* | |
6587 | * content bypass pattern - skip fix if pattern found | |
6588 | */ | |
6589 | tSCC zSysz_Stdlib_For_SunBypass0[] = | |
6590 | "_CLASSIC_ANSI_TYPES"; | |
37935110 | 6591 | |
6af9f7ea | 6592 | #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2 |
6593 | static tTestDesc aSysz_Stdlib_For_SunTests[] = { | |
6594 | { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL }, | |
6595 | { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, }; | |
37935110 | 6596 | |
6597 | /* | |
6af9f7ea | 6598 | * Fix Command Arguments for Sysz_Stdlib_For_Sun |
37935110 | 6599 | */ |
6af9f7ea | 6600 | static const char* apzSysz_Stdlib_For_SunPatch[] = { |
6601 | "format", | |
6602 | "void *\t%1(", | |
37935110 | 6603 | (char*)NULL }; |
6604 | ||
6605 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6606 | * | |
6af9f7ea | 6607 | * Description of Thread_Keyword fix |
37935110 | 6608 | */ |
6af9f7ea | 6609 | tSCC zThread_KeywordName[] = |
6610 | "thread_keyword"; | |
37935110 | 6611 | |
6612 | /* | |
6613 | * File name selection pattern | |
6614 | */ | |
6af9f7ea | 6615 | tSCC zThread_KeywordList[] = |
6616 | "pthread.h\0bits/sigthread.h\0"; | |
37935110 | 6617 | /* |
6618 | * Machine/OS name selection pattern | |
6619 | */ | |
6af9f7ea | 6620 | #define apzThread_KeywordMachs (const char**)NULL |
37935110 | 6621 | |
6622 | /* | |
6623 | * content selection pattern - do fix if pattern found | |
6624 | */ | |
6af9f7ea | 6625 | tSCC zThread_KeywordSelect0[] = |
6626 | "([* ])__thread([,)])"; | |
37935110 | 6627 | |
6af9f7ea | 6628 | #define THREAD_KEYWORD_TEST_CT 1 |
6629 | static tTestDesc aThread_KeywordTests[] = { | |
6630 | { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, }; | |
37935110 | 6631 | |
6632 | /* | |
6af9f7ea | 6633 | * Fix Command Arguments for Thread_Keyword |
37935110 | 6634 | */ |
6af9f7ea | 6635 | static const char* apzThread_KeywordPatch[] = { |
6636 | "format", | |
6637 | "%1__thr%2", | |
37935110 | 6638 | (char*)NULL }; |
6639 | ||
6640 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6641 | * | |
6af9f7ea | 6642 | * Description of Tinfo_Cplusplus fix |
37935110 | 6643 | */ |
6af9f7ea | 6644 | tSCC zTinfo_CplusplusName[] = |
6645 | "tinfo_cplusplus"; | |
37935110 | 6646 | |
6647 | /* | |
6648 | * File name selection pattern | |
6649 | */ | |
6af9f7ea | 6650 | tSCC zTinfo_CplusplusList[] = |
6651 | "tinfo.h\0"; | |
37935110 | 6652 | /* |
6653 | * Machine/OS name selection pattern | |
6654 | */ | |
6af9f7ea | 6655 | #define apzTinfo_CplusplusMachs (const char**)NULL |
37935110 | 6656 | |
6657 | /* | |
6658 | * content selection pattern - do fix if pattern found | |
6659 | */ | |
6af9f7ea | 6660 | tSCC zTinfo_CplusplusSelect0[] = |
6661 | "[ \t]_cplusplus"; | |
37935110 | 6662 | |
6af9f7ea | 6663 | #define TINFO_CPLUSPLUS_TEST_CT 1 |
6664 | static tTestDesc aTinfo_CplusplusTests[] = { | |
6665 | { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, }; | |
37935110 | 6666 | |
6667 | /* | |
6af9f7ea | 6668 | * Fix Command Arguments for Tinfo_Cplusplus |
37935110 | 6669 | */ |
6af9f7ea | 6670 | static const char* apzTinfo_CplusplusPatch[] = { |
6671 | "format", | |
6672 | " __cplusplus", | |
37935110 | 6673 | (char*)NULL }; |
6674 | ||
9caef960 | 6675 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6676 | * | |
6af9f7ea | 6677 | * Description of Ultrix_Const fix |
9caef960 | 6678 | */ |
6af9f7ea | 6679 | tSCC zUltrix_ConstName[] = |
6680 | "ultrix_const"; | |
9caef960 | 6681 | |
6682 | /* | |
6683 | * File name selection pattern | |
6684 | */ | |
6af9f7ea | 6685 | tSCC zUltrix_ConstList[] = |
6686 | "stdio.h\0"; | |
9caef960 | 6687 | /* |
6688 | * Machine/OS name selection pattern | |
6689 | */ | |
6af9f7ea | 6690 | #define apzUltrix_ConstMachs (const char**)NULL |
9caef960 | 6691 | |
6692 | /* | |
6693 | * content selection pattern - do fix if pattern found | |
6694 | */ | |
6af9f7ea | 6695 | tSCC zUltrix_ConstSelect0[] = |
6696 | "perror\\( char \\*"; | |
9caef960 | 6697 | |
6af9f7ea | 6698 | #define ULTRIX_CONST_TEST_CT 1 |
6699 | static tTestDesc aUltrix_ConstTests[] = { | |
6700 | { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, }; | |
9caef960 | 6701 | |
6702 | /* | |
6af9f7ea | 6703 | * Fix Command Arguments for Ultrix_Const |
9caef960 | 6704 | */ |
6af9f7ea | 6705 | static const char* apzUltrix_ConstPatch[] = { |
9caef960 | 6706 | "format", |
6af9f7ea | 6707 | "%1 const %3 *__", |
6708 | "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__", | |
9caef960 | 6709 | (char*)NULL }; |
6710 | ||
d08a0ac4 | 6711 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6712 | * | |
6af9f7ea | 6713 | * Description of Ultrix_Const2 fix |
d08a0ac4 | 6714 | */ |
6af9f7ea | 6715 | tSCC zUltrix_Const2Name[] = |
6716 | "ultrix_const2"; | |
d4c4b01d | 6717 | |
d08a0ac4 | 6718 | /* |
6719 | * File name selection pattern | |
6720 | */ | |
6af9f7ea | 6721 | tSCC zUltrix_Const2List[] = |
6722 | "stdio.h\0"; | |
d08a0ac4 | 6723 | /* |
6724 | * Machine/OS name selection pattern | |
6725 | */ | |
6af9f7ea | 6726 | #define apzUltrix_Const2Machs (const char**)NULL |
d08a0ac4 | 6727 | |
6728 | /* | |
6729 | * content selection pattern - do fix if pattern found | |
6730 | */ | |
6af9f7ea | 6731 | tSCC zUltrix_Const2Select0[] = |
6732 | "\\*fopen\\( char \\*"; | |
b07d36b9 | 6733 | |
6af9f7ea | 6734 | #define ULTRIX_CONST2_TEST_CT 1 |
6735 | static tTestDesc aUltrix_Const2Tests[] = { | |
6736 | { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, }; | |
d08a0ac4 | 6737 | |
6738 | /* | |
6af9f7ea | 6739 | * Fix Command Arguments for Ultrix_Const2 |
d08a0ac4 | 6740 | */ |
6af9f7ea | 6741 | static const char* apzUltrix_Const2Patch[] = { |
b07d36b9 | 6742 | "format", |
6af9f7ea | 6743 | "%1( const char *%3, const char *", |
6744 | "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*", | |
d08a0ac4 | 6745 | (char*)NULL }; |
6746 | ||
fdb8fb96 | 6747 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6748 | * | |
5daf7ede | 6749 | * Description of Va_I960_Macro fix |
fdb8fb96 | 6750 | */ |
6751 | tSCC zVa_I960_MacroName[] = | |
d4c4b01d | 6752 | "va_i960_macro"; |
6753 | ||
fdb8fb96 | 6754 | /* |
6755 | * File name selection pattern | |
6756 | */ | |
6757 | tSCC zVa_I960_MacroList[] = | |
e9afa104 | 6758 | "arch/i960/archI960.h\0"; |
fdb8fb96 | 6759 | /* |
6760 | * Machine/OS name selection pattern | |
6761 | */ | |
6762 | #define apzVa_I960_MacroMachs (const char**)NULL | |
6763 | ||
6764 | /* | |
c1b28c63 | 6765 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6766 | */ |
6767 | tSCC zVa_I960_MacroSelect0[] = | |
6768 | "__(vsiz|vali|vpad|alignof__)"; | |
6769 | ||
6770 | #define VA_I960_MACRO_TEST_CT 1 | |
2548396b | 6771 | static tTestDesc aVa_I960_MacroTests[] = { |
5daf7ede | 6772 | { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6773 | |
6774 | /* | |
6775 | * Fix Command Arguments for Va_I960_Macro | |
6776 | */ | |
2548396b | 6777 | static const char* apzVa_I960_MacroPatch[] = { |
f74d6549 | 6778 | "format", |
6779 | "__vx%1", | |
fdb8fb96 | 6780 | (char*)NULL }; |
6781 | ||
6782 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6783 | * | |
5daf7ede | 6784 | * Description of Void_Null fix |
fdb8fb96 | 6785 | */ |
6786 | tSCC zVoid_NullName[] = | |
d4c4b01d | 6787 | "void_null"; |
6788 | ||
fdb8fb96 | 6789 | /* |
6790 | * File name selection pattern | |
6791 | */ | |
6792 | tSCC zVoid_NullList[] = | |
e9afa104 | 6793 | "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 | 6794 | /* |
6795 | * Machine/OS name selection pattern | |
6796 | */ | |
6797 | #define apzVoid_NullMachs (const char**)NULL | |
6798 | ||
6799 | /* | |
c1b28c63 | 6800 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6801 | */ |
6802 | tSCC zVoid_NullSelect0[] = | |
f74d6549 | 6803 | "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)"; |
fdb8fb96 | 6804 | |
df2b0bc4 | 6805 | /* |
6806 | * content bypass pattern - skip fix if pattern found | |
6807 | */ | |
6808 | tSCC zVoid_NullBypass0[] = | |
6809 | "__cplusplus"; | |
6810 | ||
6811 | #define VOID_NULL_TEST_CT 2 | |
2548396b | 6812 | static tTestDesc aVoid_NullTests[] = { |
df2b0bc4 | 6813 | { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL }, |
5daf7ede | 6814 | { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6815 | |
6816 | /* | |
6817 | * Fix Command Arguments for Void_Null | |
6818 | */ | |
2548396b | 6819 | static const char* apzVoid_NullPatch[] = { |
f74d6549 | 6820 | "format", |
6821 | "#define NULL 0", | |
fdb8fb96 | 6822 | (char*)NULL }; |
6823 | ||
6824 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6825 | * | |
5daf7ede | 6826 | * Description of Vxworks_Gcc_Problem fix |
fdb8fb96 | 6827 | */ |
6828 | tSCC zVxworks_Gcc_ProblemName[] = | |
d4c4b01d | 6829 | "vxworks_gcc_problem"; |
6830 | ||
fdb8fb96 | 6831 | /* |
6832 | * File name selection pattern | |
6833 | */ | |
6834 | tSCC zVxworks_Gcc_ProblemList[] = | |
e9afa104 | 6835 | "types/vxTypesBase.h\0"; |
fdb8fb96 | 6836 | /* |
6837 | * Machine/OS name selection pattern | |
6838 | */ | |
6839 | #define apzVxworks_Gcc_ProblemMachs (const char**)NULL | |
6840 | ||
6841 | /* | |
c1b28c63 | 6842 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6843 | */ |
6844 | tSCC zVxworks_Gcc_ProblemSelect0[] = | |
6845 | "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__"; | |
6846 | ||
6847 | #define VXWORKS_GCC_PROBLEM_TEST_CT 1 | |
2548396b | 6848 | static tTestDesc aVxworks_Gcc_ProblemTests[] = { |
5daf7ede | 6849 | { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6850 | |
6851 | /* | |
6852 | * Fix Command Arguments for Vxworks_Gcc_Problem | |
6853 | */ | |
2548396b | 6854 | static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed", |
c1b28c63 | 6855 | "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", |
efb1b79b | 6856 | "-e", "/[ \t]size_t/i\\\n\ |
6857 | #ifndef _GCC_SIZE_T\\\n\ | |
6858 | #define _GCC_SIZE_T\n", | |
6859 | "-e", "/[ \t]size_t/a\\\n\ | |
6860 | #endif\n", | |
6861 | "-e", "/[ \t]ptrdiff_t/i\\\n\ | |
6862 | #ifndef _GCC_PTRDIFF_T\\\n\ | |
6863 | #define _GCC_PTRDIFF_T\n", | |
6864 | "-e", "/[ \t]ptrdiff_t/a\\\n\ | |
6865 | #endif\n", | |
6866 | "-e", "/[ \t]wchar_t/i\\\n\ | |
6867 | #ifndef _GCC_WCHAR_T\\\n\ | |
6868 | #define _GCC_WCHAR_T\n", | |
6869 | "-e", "/[ \t]wchar_t/a\\\n\ | |
6870 | #endif\n", | |
fdb8fb96 | 6871 | (char*)NULL }; |
6872 | ||
6873 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6874 | * | |
5daf7ede | 6875 | * Description of Vxworks_Needs_Vxtypes fix |
fdb8fb96 | 6876 | */ |
6877 | tSCC zVxworks_Needs_VxtypesName[] = | |
d4c4b01d | 6878 | "vxworks_needs_vxtypes"; |
6879 | ||
fdb8fb96 | 6880 | /* |
6881 | * File name selection pattern | |
6882 | */ | |
6883 | tSCC zVxworks_Needs_VxtypesList[] = | |
e9afa104 | 6884 | "time.h\0"; |
fdb8fb96 | 6885 | /* |
6886 | * Machine/OS name selection pattern | |
6887 | */ | |
6888 | #define apzVxworks_Needs_VxtypesMachs (const char**)NULL | |
6889 | ||
6890 | /* | |
c1b28c63 | 6891 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6892 | */ |
6893 | tSCC zVxworks_Needs_VxtypesSelect0[] = | |
f74d6549 | 6894 | "uint_t([ \t]+_clocks_per_sec)"; |
fdb8fb96 | 6895 | |
6896 | #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 | |
2548396b | 6897 | static tTestDesc aVxworks_Needs_VxtypesTests[] = { |
5daf7ede | 6898 | { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6899 | |
6900 | /* | |
6901 | * Fix Command Arguments for Vxworks_Needs_Vxtypes | |
6902 | */ | |
2548396b | 6903 | static const char* apzVxworks_Needs_VxtypesPatch[] = { |
f74d6549 | 6904 | "format", |
6905 | "unsigned int%1", | |
fdb8fb96 | 6906 | (char*)NULL }; |
6907 | ||
6908 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6909 | * | |
5daf7ede | 6910 | * Description of Vxworks_Needs_Vxworks fix |
fdb8fb96 | 6911 | */ |
6912 | tSCC zVxworks_Needs_VxworksName[] = | |
d4c4b01d | 6913 | "vxworks_needs_vxworks"; |
6914 | ||
fdb8fb96 | 6915 | /* |
6916 | * File name selection pattern | |
6917 | */ | |
6918 | tSCC zVxworks_Needs_VxworksList[] = | |
e9afa104 | 6919 | "sys/stat.h\0"; |
fdb8fb96 | 6920 | /* |
6921 | * Machine/OS name selection pattern | |
6922 | */ | |
6923 | #define apzVxworks_Needs_VxworksMachs (const char**)NULL | |
6924 | ||
6925 | /* | |
c1b28c63 | 6926 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6927 | */ |
6928 | tSCC zVxworks_Needs_VxworksSelect0[] = | |
f74d6549 | 6929 | "#[ \t]define[ \t]+__INCstath"; |
fdb8fb96 | 6930 | |
6931 | /* | |
c1b28c63 | 6932 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 6933 | */ |
6934 | tSCC zVxworks_Needs_VxworksTest0[] = | |
38ebab8a | 6935 | " -r types/vxTypesOld.h"; |
fdb8fb96 | 6936 | tSCC zVxworks_Needs_VxworksTest1[] = |
38ebab8a | 6937 | " -n \"`egrep '#include' $file`\""; |
fdb8fb96 | 6938 | tSCC zVxworks_Needs_VxworksTest2[] = |
38ebab8a | 6939 | " -n \"`egrep ULONG $file`\""; |
fdb8fb96 | 6940 | |
6941 | #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 | |
2548396b | 6942 | static tTestDesc aVxworks_Needs_VxworksTests[] = { |
5daf7ede | 6943 | { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ }, |
6944 | { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ }, | |
6945 | { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ }, | |
6946 | { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 6947 | |
6948 | /* | |
6949 | * Fix Command Arguments for Vxworks_Needs_Vxworks | |
6950 | */ | |
2548396b | 6951 | static const char* apzVxworks_Needs_VxworksPatch[] = { "sed", |
efb1b79b | 6952 | "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ |
6953 | #include <types/vxTypesOld.h>\n", | |
fdb8fb96 | 6954 | (char*)NULL }; |
6955 | ||
6956 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6957 | * | |
5daf7ede | 6958 | * Description of Vxworks_Time fix |
fdb8fb96 | 6959 | */ |
6960 | tSCC zVxworks_TimeName[] = | |
d4c4b01d | 6961 | "vxworks_time"; |
6962 | ||
fdb8fb96 | 6963 | /* |
6964 | * File name selection pattern | |
6965 | */ | |
6966 | tSCC zVxworks_TimeList[] = | |
e9afa104 | 6967 | "time.h\0"; |
fdb8fb96 | 6968 | /* |
6969 | * Machine/OS name selection pattern | |
6970 | */ | |
6971 | #define apzVxworks_TimeMachs (const char**)NULL | |
6972 | ||
6973 | /* | |
c1b28c63 | 6974 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6975 | */ |
6976 | tSCC zVxworks_TimeSelect0[] = | |
f74d6549 | 6977 | "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*"; |
fdb8fb96 | 6978 | |
6979 | /* | |
c1b28c63 | 6980 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 6981 | */ |
6982 | tSCC zVxworks_TimeTest0[] = | |
38ebab8a | 6983 | " -r vxWorks.h"; |
fdb8fb96 | 6984 | |
6985 | #define VXWORKS_TIME_TEST_CT 2 | |
2548396b | 6986 | static tTestDesc aVxworks_TimeTests[] = { |
5daf7ede | 6987 | { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ }, |
6988 | { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 6989 | |
6990 | /* | |
6991 | * Fix Command Arguments for Vxworks_Time | |
6992 | */ | |
2548396b | 6993 | static const char* apzVxworks_TimePatch[] = { |
f74d6549 | 6994 | "format", |
6995 | "#ifndef __gcc_VOIDFUNCPTR_defined\n\ | |
6996 | #ifdef __cplusplus\n\ | |
6997 | typedef void (*__gcc_VOIDFUNCPTR) (...);\n\ | |
6998 | #else\n\ | |
6999 | typedef void (*__gcc_VOIDFUNCPTR) ();\n\ | |
7000 | #endif\n\ | |
7001 | #define __gcc_VOIDFUNCPTR_defined\n\ | |
7002 | #endif\n\ | |
7003 | #define VOIDFUNCPTR __gcc_VOIDFUNCPTR", | |
fdb8fb96 | 7004 | (char*)NULL }; |
7005 | ||
7006 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7007 | * | |
5daf7ede | 7008 | * Description of X11_Class fix |
fdb8fb96 | 7009 | */ |
7010 | tSCC zX11_ClassName[] = | |
d4c4b01d | 7011 | "x11_class"; |
7012 | ||
fdb8fb96 | 7013 | /* |
7014 | * File name selection pattern | |
7015 | */ | |
7016 | tSCC zX11_ClassList[] = | |
e9afa104 | 7017 | "X11/ShellP.h\0"; |
fdb8fb96 | 7018 | /* |
7019 | * Machine/OS name selection pattern | |
7020 | */ | |
7021 | #define apzX11_ClassMachs (const char**)NULL | |
7022 | ||
e7ae4397 | 7023 | /* |
7024 | * content selection pattern - do fix if pattern found | |
7025 | */ | |
7026 | tSCC zX11_ClassSelect0[] = | |
7027 | "^([ \t]*char \\*)class;(.*)"; | |
7028 | ||
fdb8fb96 | 7029 | /* |
c1b28c63 | 7030 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 7031 | */ |
7032 | tSCC zX11_ClassBypass0[] = | |
7033 | "__cplusplus"; | |
7034 | ||
e7ae4397 | 7035 | #define X11_CLASS_TEST_CT 2 |
2548396b | 7036 | static tTestDesc aX11_ClassTests[] = { |
e7ae4397 | 7037 | { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, |
7038 | { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 7039 | |
7040 | /* | |
7041 | * Fix Command Arguments for X11_Class | |
7042 | */ | |
2548396b | 7043 | static const char* apzX11_ClassPatch[] = { |
e7ae4397 | 7044 | "format", |
7045 | "#ifdef __cplusplus\n\ | |
7046 | %1c_class;%2\n\ | |
7047 | #else\n\ | |
7048 | %1class;%2\n\ | |
7049 | #endif", | |
fdb8fb96 | 7050 | (char*)NULL }; |
7051 | ||
7052 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7053 | * | |
5daf7ede | 7054 | * Description of X11_Class_Usage fix |
fdb8fb96 | 7055 | */ |
7056 | tSCC zX11_Class_UsageName[] = | |
d4c4b01d | 7057 | "x11_class_usage"; |
7058 | ||
fdb8fb96 | 7059 | /* |
7060 | * File name selection pattern | |
7061 | */ | |
7062 | tSCC zX11_Class_UsageList[] = | |
e9afa104 | 7063 | "Xm/BaseClassI.h\0"; |
fdb8fb96 | 7064 | /* |
7065 | * Machine/OS name selection pattern | |
7066 | */ | |
7067 | #define apzX11_Class_UsageMachs (const char**)NULL | |
7068 | ||
f74d6549 | 7069 | /* |
7070 | * content selection pattern - do fix if pattern found | |
7071 | */ | |
7072 | tSCC zX11_Class_UsageSelect0[] = | |
7073 | " class\\)"; | |
7074 | ||
fdb8fb96 | 7075 | /* |
c1b28c63 | 7076 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 7077 | */ |
7078 | tSCC zX11_Class_UsageBypass0[] = | |
7079 | "__cplusplus"; | |
7080 | ||
f74d6549 | 7081 | #define X11_CLASS_USAGE_TEST_CT 2 |
2548396b | 7082 | static tTestDesc aX11_Class_UsageTests[] = { |
f74d6549 | 7083 | { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, |
7084 | { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 7085 | |
7086 | /* | |
7087 | * Fix Command Arguments for X11_Class_Usage | |
7088 | */ | |
2548396b | 7089 | static const char* apzX11_Class_UsagePatch[] = { |
f74d6549 | 7090 | "format", |
7091 | " c_class)", | |
fdb8fb96 | 7092 | (char*)NULL }; |
7093 | ||
7094 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7095 | * | |
5daf7ede | 7096 | * Description of X11_New fix |
fdb8fb96 | 7097 | */ |
7098 | tSCC zX11_NewName[] = | |
d4c4b01d | 7099 | "x11_new"; |
7100 | ||
fdb8fb96 | 7101 | /* |
7102 | * File name selection pattern | |
7103 | */ | |
7104 | tSCC zX11_NewList[] = | |
e9afa104 | 7105 | "Xm/Traversal.h\0"; |
fdb8fb96 | 7106 | /* |
7107 | * Machine/OS name selection pattern | |
7108 | */ | |
7109 | #define apzX11_NewMachs (const char**)NULL | |
7110 | ||
7111 | /* | |
c1b28c63 | 7112 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 7113 | */ |
7114 | tSCC zX11_NewBypass0[] = | |
7115 | "__cplusplus"; | |
7116 | ||
7117 | #define X11_NEW_TEST_CT 1 | |
2548396b | 7118 | static tTestDesc aX11_NewTests[] = { |
5daf7ede | 7119 | { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, }; |
fdb8fb96 | 7120 | |
7121 | /* | |
7122 | * Fix Command Arguments for X11_New | |
7123 | */ | |
2548396b | 7124 | static const char* apzX11_NewPatch[] = { "sed", |
efb1b79b | 7125 | "-e", "/Widget\told, new;/i\\\n\ |
7126 | #ifdef __cplusplus\\\n\ | |
7127 | \tWidget\told, c_new;\\\n\ | |
7128 | #else\n", | |
7129 | "-e", "/Widget\told, new;/a\\\n\ | |
7130 | #endif\n", | |
c1b28c63 | 7131 | "-e", "s/Widget new,/Widget c_new,/g", |
fdb8fb96 | 7132 | (char*)NULL }; |
7133 | ||
7134 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7135 | * | |
5daf7ede | 7136 | * Description of X11_Sprintf fix |
fdb8fb96 | 7137 | */ |
7138 | tSCC zX11_SprintfName[] = | |
d4c4b01d | 7139 | "x11_sprintf"; |
7140 | ||
fdb8fb96 | 7141 | /* |
7142 | * File name selection pattern | |
7143 | */ | |
7144 | tSCC zX11_SprintfList[] = | |
e9afa104 | 7145 | "X11/Xmu.h\0X11/Xmu/Xmu.h\0"; |
fdb8fb96 | 7146 | /* |
7147 | * Machine/OS name selection pattern | |
7148 | */ | |
7149 | #define apzX11_SprintfMachs (const char**)NULL | |
d6d7d999 | 7150 | |
7151 | /* | |
7152 | * content selection pattern - do fix if pattern found | |
7153 | */ | |
7154 | tSCC zX11_SprintfSelect0[] = | |
f74d6549 | 7155 | "^extern char \\*\tsprintf\\(\\);$"; |
d6d7d999 | 7156 | |
7157 | #define X11_SPRINTF_TEST_CT 1 | |
2548396b | 7158 | static tTestDesc aX11_SprintfTests[] = { |
d6d7d999 | 7159 | { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 7160 | |
7161 | /* | |
7162 | * Fix Command Arguments for X11_Sprintf | |
7163 | */ | |
2548396b | 7164 | static const char* apzX11_SprintfPatch[] = { |
f74d6549 | 7165 | "format", |
7166 | "#ifndef __STDC__\n\ | |
7167 | %0\n\ | |
7168 | #endif /* !defined __STDC__ */", | |
fdb8fb96 | 7169 | (char*)NULL }; |
7170 | ||
d4c4b01d | 7171 | |
fdb8fb96 | 7172 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7173 | * | |
7174 | * List of all fixes | |
7175 | */ | |
6af9f7ea | 7176 | #define REGEX_COUNT 223 |
7177 | #define MACH_LIST_SIZE_LIMIT 181 | |
7178 | #define FIX_COUNT 177 | |
5daf7ede | 7179 | |
3072d11f | 7180 | /* |
7181 | * Enumerate the fixes | |
7182 | */ | |
7183 | typedef enum { | |
3d906fac | 7184 | AAB_AIX_STDIO_FIXIDX, |
f2563b02 | 7185 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX, |
7186 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX, | |
3072d11f | 7187 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX, |
7188 | AAB_FD_ZERO_GNU_TYPES_H_FIXIDX, | |
7189 | AAB_FD_ZERO_SELECTBITS_H_FIXIDX, | |
bffe0cfe | 7190 | AAB_SOLARIS_SYS_VARARGS_H_FIXIDX, |
b93c3ed1 | 7191 | AAB_SUN_MEMCPY_FIXIDX, |
3072d11f | 7192 | AIX_PTHREAD_FIXIDX, |
7193 | AIX_SYSMACHINE_FIXIDX, | |
7194 | AIX_SYSWAIT_FIXIDX, | |
85df6fdf | 7195 | AIX_SYSWAIT_2_FIXIDX, |
3072d11f | 7196 | AIX_VOLATILE_FIXIDX, |
7197 | ALPHA___ASSERT_FIXIDX, | |
219cff1b | 7198 | ALPHA___EXTERN_PREFIX_FIXIDX, |
6a80f466 | 7199 | ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX, |
7200 | ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX, | |
03112946 | 7201 | ALPHA_ASSERT_FIXIDX, |
a3278934 | 7202 | ALPHA_BAD_LVAL_FIXIDX, |
3072d11f | 7203 | ALPHA_GETOPT_FIXIDX, |
7204 | ALPHA_PARENS_FIXIDX, | |
ecd34a08 | 7205 | ALPHA_PTHREAD_FIXIDX, |
89ebafd5 | 7206 | ALPHA_PTHREAD_GCC_FIXIDX, |
31e7bff5 | 7207 | ALPHA_PTHREAD_INIT_FIXIDX, |
3072d11f | 7208 | ALPHA_SBRK_FIXIDX, |
cc567216 | 7209 | ALPHA_WCHAR_FIXIDX, |
3072d11f | 7210 | AVOID_BOOL_DEFINE_FIXIDX, |
7211 | AVOID_BOOL_TYPE_FIXIDX, | |
7212 | AVOID_WCHAR_T_TYPE_FIXIDX, | |
3072d11f | 7213 | BAD_STRUCT_TERM_FIXIDX, |
7214 | BADQUOTE_FIXIDX, | |
7215 | BROKEN_ASSERT_STDIO_FIXIDX, | |
7216 | BROKEN_ASSERT_STDLIB_FIXIDX, | |
7217 | BROKEN_CABS_FIXIDX, | |
baee91be | 7218 | BROKEN_NAN_FIXIDX, |
d45e22c2 | 7219 | BSD_STDIO_ATTRS_CONFLICT_FIXIDX, |
3072d11f | 7220 | CTRL_QUOTES_DEF_FIXIDX, |
7221 | CTRL_QUOTES_USE_FIXIDX, | |
7222 | CXX_UNREADY_FIXIDX, | |
1908d6ac | 7223 | DARWIN_EXTERNC_FIXIDX, |
975d636c | 7224 | DARWIN_GCC4_BREAKAGE_FIXIDX, |
3067e435 | 7225 | DARWIN_PRIVATE_EXTERN_FIXIDX, |
3072d11f | 7226 | DEC_INTERN_ASM_FIXIDX, |
7227 | DJGPP_WCHAR_H_FIXIDX, | |
7228 | ECD_CURSOR_FIXIDX, | |
cee0cd59 | 7229 | EXCEPTION_STRUCTURE_FIXIDX, |
3072d11f | 7230 | FREEBSD_GCC3_BREAKAGE_FIXIDX, |
f9ac0b87 | 7231 | FREEBSD_GCC4_BREAKAGE_FIXIDX, |
efb8e7bf | 7232 | GLIBC_C99_INLINE_1_FIXIDX, |
661832db | 7233 | GLIBC_C99_INLINE_1A_FIXIDX, |
efb8e7bf | 7234 | GLIBC_C99_INLINE_2_FIXIDX, |
7235 | GLIBC_C99_INLINE_3_FIXIDX, | |
7236 | GLIBC_C99_INLINE_4_FIXIDX, | |
a1b11617 | 7237 | GLIBC_MUTEX_INIT_FIXIDX, |
3072d11f | 7238 | GNU_TYPES_FIXIDX, |
7239 | HP_INLINE_FIXIDX, | |
7240 | HP_SYSFILE_FIXIDX, | |
7b900f1a | 7241 | HPUX10_CPP_POW_INLINE_FIXIDX, |
c6738ff5 | 7242 | HPUX11_CPP_POW_INLINE_FIXIDX, |
31ee57b1 | 7243 | HPPA_HPUX_FP_MACROS_FIXIDX, |
ebf664b2 | 7244 | HPUX10_CTYPE_DECLARATIONS1_FIXIDX, |
7245 | HPUX10_CTYPE_DECLARATIONS2_FIXIDX, | |
37935110 | 7246 | HPUX10_STDIO_DECLARATIONS_FIXIDX, |
b93c3ed1 | 7247 | HPUX11_ABS_FIXIDX, |
ca58af19 | 7248 | HPUX11_FABSF_FIXIDX, |
c0854bd5 | 7249 | HPUX11_SIZE_T_FIXIDX, |
75dc2242 | 7250 | HPUX11_SNPRINTF_FIXIDX, |
3072d11f | 7251 | HPUX11_UINT32_C_FIXIDX, |
a0d38f0b | 7252 | HPUX11_VSNPRINTF_FIXIDX, |
3072d11f | 7253 | HPUX8_BOGUS_INLINES_FIXIDX, |
ebf664b2 | 7254 | HPUX_CTYPE_MACROS_FIXIDX, |
1589683c | 7255 | HPUX_HTONL_FIXIDX, |
ebf664b2 | 7256 | HPUX_LONG_DOUBLE_FIXIDX, |
3072d11f | 7257 | HPUX_SYSTIME_FIXIDX, |
5dabcff3 | 7258 | HPUX_SPU_INFO_FIXIDX, |
1cb3e86d | 7259 | HPUX11_EXTERN_SENDFILE_FIXIDX, |
7260 | HPUX11_EXTERN_SENDPATH_FIXIDX, | |
898b6c0f | 7261 | HPUX_EXTERN_ERRNO_FIXIDX, |
3c6ef6a2 | 7262 | HPUX11_PTHREAD_CONST_FIXIDX, |
3dd59d44 | 7263 | HPUX_PTHREAD_INITIALIZERS_FIXIDX, |
96eced21 | 7264 | HUGE_VAL_HEX_FIXIDX, |
7265 | HUGE_VALF_HEX_FIXIDX, | |
7266 | HUGE_VALL_HEX_FIXIDX, | |
3072d11f | 7267 | INT_ABORT_FREE_AND_EXIT_FIXIDX, |
7268 | IO_QUOTES_DEF_FIXIDX, | |
7269 | IO_QUOTES_USE_FIXIDX, | |
7270 | IP_MISSING_SEMI_FIXIDX, | |
4a050cc7 | 7271 | IRIX___RESTRICT_FIXIDX, |
248b5b6c | 7272 | IRIX___GENERIC1_FIXIDX, |
7273 | IRIX___GENERIC2_FIXIDX, | |
3072d11f | 7274 | IRIX_ASM_APOSTROPHE_FIXIDX, |
7275 | IRIX_LIMITS_CONST_FIXIDX, | |
609088c0 | 7276 | IRIX_SOCKLEN_T_FIXIDX, |
5fb066e6 | 7277 | IRIX_STDINT_C99_FIXIDX, |
3072d11f | 7278 | IRIX_STDIO_VA_LIST_FIXIDX, |
609088c0 | 7279 | IRIX_WCSFTIME_FIXIDX, |
3072d11f | 7280 | ISC_FMOD_FIXIDX, |
7281 | ISC_OMITS_WITH_STDC_FIXIDX, | |
7282 | KANDR_CONCAT_FIXIDX, | |
d92db5b6 | 7283 | LINUX_IA64_UCONTEXT_FIXIDX, |
435ea059 | 7284 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX, |
7285 | LYNXOS_MISSING_PUTENV_FIXIDX, | |
3072d11f | 7286 | MACHINE_ANSI_H_VA_LIST_FIXIDX, |
7287 | MACHINE_NAME_FIXIDX, | |
7288 | MATH_EXCEPTION_FIXIDX, | |
7289 | MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX, | |
3072d11f | 7290 | NESTED_AUTH_DES_FIXIDX, |
3072d11f | 7291 | NESTED_SYS_LIMITS_FIXIDX, |
4cbf73b4 | 7292 | NETBSD_C99_INLINE_1_FIXIDX, |
759bfb14 | 7293 | NETBSD_C99_INLINE_2_FIXIDX, |
81a897fb | 7294 | NETBSD_EXTRA_SEMICOLON_FIXIDX, |
3072d11f | 7295 | NEXT_MATH_PREFIX_FIXIDX, |
7296 | NEXT_TEMPLATE_FIXIDX, | |
7297 | NEXT_VOLITILE_FIXIDX, | |
7298 | NEXT_WAIT_UNION_FIXIDX, | |
7299 | NODEENT_SYNTAX_FIXIDX, | |
129b92e3 | 7300 | OBSTACK_LVALUE_CAST_FIXIDX, |
3072d11f | 7301 | OSF_NAMESPACE_A_FIXIDX, |
7302 | OSF_NAMESPACE_C_FIXIDX, | |
7303 | PTHREAD_PAGE_SIZE_FIXIDX, | |
a11c2c4d | 7304 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX, |
3072d11f | 7305 | READ_RET_TYPE_FIXIDX, |
e68aa18b | 7306 | RPC_XDR_LVALUE_CAST_A_FIXIDX, |
7307 | RPC_XDR_LVALUE_CAST_B_FIXIDX, | |
3072d11f | 7308 | RS6000_DOUBLE_FIXIDX, |
7309 | RS6000_FCHMOD_FIXIDX, | |
7310 | RS6000_PARAM_FIXIDX, | |
3c04ceca | 7311 | SCO_MATH_FIXIDX, |
e849ea70 | 7312 | SOLARIS_MATH_1_FIXIDX, |
7313 | SOLARIS_MATH_2_FIXIDX, | |
7314 | SOLARIS_MATH_3_FIXIDX, | |
7315 | SOLARIS_MATH_4_FIXIDX, | |
e849ea70 | 7316 | SOLARIS_MATH_8_FIXIDX, |
7317 | SOLARIS_MATH_9_FIXIDX, | |
1b0a9ef1 | 7318 | SOLARIS_MATH_10_FIXIDX, |
4a050cc7 | 7319 | SOLARIS_MUTEX_INIT_2_FIXIDX, |
458caa24 | 7320 | SOLARIS_RWLOCK_INIT_1_FIXIDX, |
7321 | SOLARIS_ONCE_INIT_1_FIXIDX, | |
a96763ff | 7322 | SOLARIS_ONCE_INIT_2_FIXIDX, |
91eb7bbc | 7323 | SOLARIS_STDIO_TAG_FIXIDX, |
3072d11f | 7324 | STATSSWTCH_FIXIDX, |
7325 | STDIO_STDARG_H_FIXIDX, | |
7326 | STDIO_VA_LIST_FIXIDX, | |
925b9291 | 7327 | STDIO_VA_LIST_CLIENTS_FIXIDX, |
3072d11f | 7328 | STRICT_ANSI_NOT_FIXIDX, |
7329 | STRICT_ANSI_NOT_CTD_FIXIDX, | |
7330 | STRICT_ANSI_ONLY_FIXIDX, | |
7331 | STRUCT_FILE_FIXIDX, | |
7332 | STRUCT_SOCKADDR_FIXIDX, | |
7333 | SUN_AUTH_PROTO_FIXIDX, | |
7334 | SUN_BOGUS_IFDEF_FIXIDX, | |
7335 | SUN_CATMACRO_FIXIDX, | |
7336 | SUN_MALLOC_FIXIDX, | |
7337 | SUN_RUSERS_SEMI_FIXIDX, | |
7338 | SUN_SIGNAL_FIXIDX, | |
3072d11f | 7339 | SUNOS_STRLEN_FIXIDX, |
3c04ceca | 7340 | SVR4_DISABLE_OPT_FIXIDX, |
3072d11f | 7341 | SVR4_GETCWD_FIXIDX, |
7342 | SVR4_PROFIL_FIXIDX, | |
d23689b2 | 7343 | SVR4_SIGHANDLER_TYPE_FIXIDX, |
630af039 | 7344 | SVR4_UNDECLARED_GETRNGE_FIXIDX, |
3072d11f | 7345 | SYSV68_STRING_FIXIDX, |
7346 | SYSZ_STDLIB_FOR_SUN_FIXIDX, | |
2a6f0f81 | 7347 | THREAD_KEYWORD_FIXIDX, |
3072d11f | 7348 | TINFO_CPLUSPLUS_FIXIDX, |
3072d11f | 7349 | ULTRIX_CONST_FIXIDX, |
7350 | ULTRIX_CONST2_FIXIDX, | |
3072d11f | 7351 | VA_I960_MACRO_FIXIDX, |
7352 | VOID_NULL_FIXIDX, | |
7353 | VXWORKS_GCC_PROBLEM_FIXIDX, | |
7354 | VXWORKS_NEEDS_VXTYPES_FIXIDX, | |
7355 | VXWORKS_NEEDS_VXWORKS_FIXIDX, | |
7356 | VXWORKS_TIME_FIXIDX, | |
7357 | X11_CLASS_FIXIDX, | |
7358 | X11_CLASS_USAGE_FIXIDX, | |
7359 | X11_NEW_FIXIDX, | |
7360 | X11_SPRINTF_FIXIDX | |
7361 | } t_fixinc_idx; | |
7362 | ||
c1b28c63 | 7363 | tFixDesc fixDescList[ FIX_COUNT ] = { |
3d906fac | 7364 | { zAab_Aix_StdioName, zAab_Aix_StdioList, |
7365 | apzAab_Aix_StdioMachs, | |
7366 | AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7367 | aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 }, | |
7368 | ||
f2563b02 | 7369 | { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList, |
7370 | apzAab_Darwin7_9_Long_Double_FuncsMachs, | |
7371 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
7372 | aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 }, | |
7373 | ||
7374 | { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List, | |
7375 | apzAab_Darwin7_9_Long_Double_Funcs_2Machs, | |
7376 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7377 | aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 }, | |
7378 | ||
bb304030 | 7379 | { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList, |
6e791f25 | 7380 | apzAab_Fd_Zero_Asm_Posix_Types_HMachs, |
bb304030 | 7381 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 7382 | aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 }, |
e26c299a | 7383 | |
bb304030 | 7384 | { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList, |
6e791f25 | 7385 | apzAab_Fd_Zero_Gnu_Types_HMachs, |
bb304030 | 7386 | AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 7387 | aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 }, |
e26c299a | 7388 | |
bb304030 | 7389 | { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList, |
6e791f25 | 7390 | apzAab_Fd_Zero_Selectbits_HMachs, |
bb304030 | 7391 | AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 7392 | aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 }, |
e26c299a | 7393 | |
bffe0cfe | 7394 | { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList, |
7395 | apzAab_Solaris_Sys_Varargs_HMachs, | |
7396 | AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
7397 | aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 }, | |
7398 | ||
b93c3ed1 | 7399 | { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList, |
7400 | apzAab_Sun_MemcpyMachs, | |
7401 | AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
7402 | aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 }, | |
7403 | ||
e494b1bb | 7404 | { zAix_PthreadName, zAix_PthreadList, |
7405 | apzAix_PthreadMachs, | |
7406 | AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7407 | aAix_PthreadTests, apzAix_PthreadPatch, 0 }, |
e494b1bb | 7408 | |
7409 | { zAix_SysmachineName, zAix_SysmachineList, | |
7410 | apzAix_SysmachineMachs, | |
7411 | AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7412 | aAix_SysmachineTests, apzAix_SysmachinePatch, 0 }, |
e494b1bb | 7413 | |
fdb8fb96 | 7414 | { zAix_SyswaitName, zAix_SyswaitList, |
6e791f25 | 7415 | apzAix_SyswaitMachs, |
49b4955b | 7416 | AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7417 | aAix_SyswaitTests, apzAix_SyswaitPatch, 0 }, |
fdb8fb96 | 7418 | |
85df6fdf | 7419 | { zAix_Syswait_2Name, zAix_Syswait_2List, |
7420 | apzAix_Syswait_2Machs, | |
7421 | AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7422 | aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 }, | |
7423 | ||
fdb8fb96 | 7424 | { zAix_VolatileName, zAix_VolatileList, |
6e791f25 | 7425 | apzAix_VolatileMachs, |
472aa368 | 7426 | AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7427 | aAix_VolatileTests, apzAix_VolatilePatch, 0 }, |
fdb8fb96 | 7428 | |
d1ec871e | 7429 | { zAlpha___AssertName, zAlpha___AssertList, |
7430 | apzAlpha___AssertMachs, | |
7431 | ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7432 | aAlpha___AssertTests, apzAlpha___AssertPatch, 0 }, | |
7433 | ||
219cff1b | 7434 | { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList, |
7435 | apzAlpha___Extern_PrefixMachs, | |
7436 | ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7437 | aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 }, | |
7438 | ||
6a80f466 | 7439 | { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList, |
7440 | apzAlpha___Extern_Prefix_StandardsMachs, | |
7441 | ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7442 | aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 }, | |
7443 | ||
7444 | { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList, | |
7445 | apzAlpha___Extern_Prefix_Sys_StatMachs, | |
7446 | ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7447 | aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 }, | |
7448 | ||
03112946 | 7449 | { zAlpha_AssertName, zAlpha_AssertList, |
7450 | apzAlpha_AssertMachs, | |
7451 | ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7452 | aAlpha_AssertTests, apzAlpha_AssertPatch, 0 }, | |
7453 | ||
a3278934 | 7454 | { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList, |
7455 | apzAlpha_Bad_LvalMachs, | |
7456 | ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY, | |
7457 | aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 }, | |
7458 | ||
fdb8fb96 | 7459 | { zAlpha_GetoptName, zAlpha_GetoptList, |
6e791f25 | 7460 | apzAlpha_GetoptMachs, |
472aa368 | 7461 | ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7462 | aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 }, |
fdb8fb96 | 7463 | |
7464 | { zAlpha_ParensName, zAlpha_ParensList, | |
6e791f25 | 7465 | apzAlpha_ParensMachs, |
472aa368 | 7466 | ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7467 | aAlpha_ParensTests, apzAlpha_ParensPatch, 0 }, |
fdb8fb96 | 7468 | |
ecd34a08 | 7469 | { zAlpha_PthreadName, zAlpha_PthreadList, |
7470 | apzAlpha_PthreadMachs, | |
7471 | ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7472 | aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 }, | |
7473 | ||
89ebafd5 | 7474 | { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList, |
7475 | apzAlpha_Pthread_GccMachs, | |
7476 | ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7477 | aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 }, | |
7478 | ||
31e7bff5 | 7479 | { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList, |
7480 | apzAlpha_Pthread_InitMachs, | |
7481 | ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY, | |
7482 | aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 }, | |
7483 | ||
fdb8fb96 | 7484 | { zAlpha_SbrkName, zAlpha_SbrkList, |
6e791f25 | 7485 | apzAlpha_SbrkMachs, |
472aa368 | 7486 | ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7487 | aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 }, |
fdb8fb96 | 7488 | |
cc567216 | 7489 | { zAlpha_WcharName, zAlpha_WcharList, |
7490 | apzAlpha_WcharMachs, | |
7491 | ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY, | |
7492 | aAlpha_WcharTests, apzAlpha_WcharPatch, 0 }, | |
7493 | ||
2c59c6d3 | 7494 | { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList, |
7495 | apzAvoid_Bool_DefineMachs, | |
7496 | AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7497 | aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 }, |
2c59c6d3 | 7498 | |
7499 | { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList, | |
7500 | apzAvoid_Bool_TypeMachs, | |
7501 | AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7502 | aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 }, |
fdb8fb96 | 7503 | |
7ab30fe8 | 7504 | { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList, |
7505 | apzAvoid_Wchar_T_TypeMachs, | |
7506 | AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7507 | aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 }, |
7ab30fe8 | 7508 | |
fdb8fb96 | 7509 | { zBad_Struct_TermName, zBad_Struct_TermList, |
6e791f25 | 7510 | apzBad_Struct_TermMachs, |
2c59c6d3 | 7511 | BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7512 | aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 }, |
fdb8fb96 | 7513 | |
7514 | { zBadquoteName, zBadquoteList, | |
6e791f25 | 7515 | apzBadquoteMachs, |
2c59c6d3 | 7516 | BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7517 | aBadquoteTests, apzBadquotePatch, 0 }, |
fdb8fb96 | 7518 | |
fdb8fb96 | 7519 | { zBroken_Assert_StdioName, zBroken_Assert_StdioList, |
6e791f25 | 7520 | apzBroken_Assert_StdioMachs, |
e6650807 | 7521 | BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7522 | aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 }, |
fdb8fb96 | 7523 | |
7524 | { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList, | |
6e791f25 | 7525 | apzBroken_Assert_StdlibMachs, |
e6650807 | 7526 | BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7527 | aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 }, |
fdb8fb96 | 7528 | |
58d8674b | 7529 | { zBroken_CabsName, zBroken_CabsList, |
6e791f25 | 7530 | apzBroken_CabsMachs, |
462510b2 | 7531 | BROKEN_CABS_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 7532 | aBroken_CabsTests, apzBroken_CabsPatch, 0 }, |
58d8674b | 7533 | |
baee91be | 7534 | { zBroken_NanName, zBroken_NanList, |
7535 | apzBroken_NanMachs, | |
7536 | BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7537 | aBroken_NanTests, apzBroken_NanPatch, 0 }, | |
7538 | ||
d45e22c2 | 7539 | { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList, |
7540 | apzBsd_Stdio_Attrs_ConflictMachs, | |
7541 | BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7542 | aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 }, | |
7543 | ||
cfe5be71 | 7544 | { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList, |
7545 | apzCtrl_Quotes_DefMachs, | |
7546 | CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7547 | aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 }, |
cfe5be71 | 7548 | |
7549 | { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList, | |
7550 | apzCtrl_Quotes_UseMachs, | |
7551 | CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7552 | aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 }, |
cfe5be71 | 7553 | |
7554 | { zCxx_UnreadyName, zCxx_UnreadyList, | |
7555 | apzCxx_UnreadyMachs, | |
7556 | CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7557 | aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 }, |
cfe5be71 | 7558 | |
1908d6ac | 7559 | { zDarwin_ExterncName, zDarwin_ExterncList, |
7560 | apzDarwin_ExterncMachs, | |
7561 | DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7562 | aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 }, | |
7563 | ||
975d636c | 7564 | { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList, |
7565 | apzDarwin_Gcc4_BreakageMachs, | |
7566 | DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7567 | aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 }, | |
7568 | ||
3067e435 | 7569 | { zDarwin_Private_ExternName, zDarwin_Private_ExternList, |
7570 | apzDarwin_Private_ExternMachs, | |
7571 | DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7572 | aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 }, | |
7573 | ||
38ebab8a | 7574 | { zDec_Intern_AsmName, zDec_Intern_AsmList, |
6e791f25 | 7575 | apzDec_Intern_AsmMachs, |
38ebab8a | 7576 | DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 7577 | aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 }, |
38ebab8a | 7578 | |
8c74272d | 7579 | { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList, |
7580 | apzDjgpp_Wchar_HMachs, | |
7581 | DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7582 | aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 }, | |
7583 | ||
fdb8fb96 | 7584 | { zEcd_CursorName, zEcd_CursorList, |
6e791f25 | 7585 | apzEcd_CursorMachs, |
2c59c6d3 | 7586 | ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7587 | aEcd_CursorTests, apzEcd_CursorPatch, 0 }, |
fdb8fb96 | 7588 | |
cee0cd59 | 7589 | { zException_StructureName, zException_StructureList, |
7590 | apzException_StructureMachs, | |
7591 | EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7592 | aException_StructureTests, apzException_StructurePatch, 0 }, | |
7593 | ||
65a92405 | 7594 | { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList, |
7595 | apzFreebsd_Gcc3_BreakageMachs, | |
7596 | FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7597 | aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 }, | |
7598 | ||
f9ac0b87 | 7599 | { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList, |
7600 | apzFreebsd_Gcc4_BreakageMachs, | |
7601 | FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7602 | aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 }, | |
7603 | ||
efb8e7bf | 7604 | { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List, |
7605 | apzGlibc_C99_Inline_1Machs, | |
7606 | GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7607 | aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 }, | |
7608 | ||
661832db | 7609 | { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList, |
7610 | apzGlibc_C99_Inline_1aMachs, | |
7611 | GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7612 | aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 }, | |
7613 | ||
efb8e7bf | 7614 | { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List, |
7615 | apzGlibc_C99_Inline_2Machs, | |
7616 | GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY, | |
7617 | aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 }, | |
7618 | ||
7619 | { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List, | |
7620 | apzGlibc_C99_Inline_3Machs, | |
7621 | GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7622 | aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 }, | |
7623 | ||
7624 | { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List, | |
7625 | apzGlibc_C99_Inline_4Machs, | |
7626 | GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7627 | aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 }, | |
7628 | ||
a1b11617 | 7629 | { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList, |
7630 | apzGlibc_Mutex_InitMachs, | |
7631 | GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY, | |
7632 | aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 }, | |
7633 | ||
3072d11f | 7634 | { zGnu_TypesName, zGnu_TypesList, |
7635 | apzGnu_TypesMachs, | |
09a31484 | 7636 | GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
3072d11f | 7637 | aGnu_TypesTests, apzGnu_TypesPatch, 0 }, |
7638 | ||
fdb8fb96 | 7639 | { zHp_InlineName, zHp_InlineList, |
6e791f25 | 7640 | apzHp_InlineMachs, |
2c59c6d3 | 7641 | HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7642 | aHp_InlineTests, apzHp_InlinePatch, 0 }, |
fdb8fb96 | 7643 | |
7644 | { zHp_SysfileName, zHp_SysfileList, | |
6e791f25 | 7645 | apzHp_SysfileMachs, |
2c59c6d3 | 7646 | HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7647 | aHp_SysfileTests, apzHp_SysfilePatch, 0 }, |
fdb8fb96 | 7648 | |
7b900f1a | 7649 | { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList, |
7650 | apzHpux10_Cpp_Pow_InlineMachs, | |
7651 | HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7652 | aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 }, | |
7653 | ||
c6738ff5 | 7654 | { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList, |
7655 | apzHpux11_Cpp_Pow_InlineMachs, | |
7656 | HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7657 | aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 }, | |
7658 | ||
31ee57b1 | 7659 | { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList, |
7660 | apzHppa_Hpux_Fp_MacrosMachs, | |
7661 | HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7662 | aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 }, | |
7663 | ||
ebf664b2 | 7664 | { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List, |
7665 | apzHpux10_Ctype_Declarations1Machs, | |
7666 | HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7667 | aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 }, | |
7668 | ||
7669 | { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List, | |
7670 | apzHpux10_Ctype_Declarations2Machs, | |
7671 | HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7672 | aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 }, | |
7673 | ||
37935110 | 7674 | { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList, |
7675 | apzHpux10_Stdio_DeclarationsMachs, | |
7676 | HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7677 | aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 }, | |
7678 | ||
b93c3ed1 | 7679 | { zHpux11_AbsName, zHpux11_AbsList, |
7680 | apzHpux11_AbsMachs, | |
4842028b | 7681 | HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
b93c3ed1 | 7682 | aHpux11_AbsTests, apzHpux11_AbsPatch, 0 }, |
7683 | ||
ca58af19 | 7684 | { zHpux11_FabsfName, zHpux11_FabsfList, |
7685 | apzHpux11_FabsfMachs, | |
7686 | HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7687 | aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 }, | |
7688 | ||
c0854bd5 | 7689 | { zHpux11_Size_TName, zHpux11_Size_TList, |
7690 | apzHpux11_Size_TMachs, | |
7691 | HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7692 | aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 }, | |
7693 | ||
75dc2242 | 7694 | { zHpux11_SnprintfName, zHpux11_SnprintfList, |
7695 | apzHpux11_SnprintfMachs, | |
7696 | HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7697 | aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 }, | |
7698 | ||
9e024bbb | 7699 | { zHpux11_Uint32_CName, zHpux11_Uint32_CList, |
6e791f25 | 7700 | apzHpux11_Uint32_CMachs, |
cfe5be71 | 7701 | HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7702 | aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 }, |
9e024bbb | 7703 | |
a0d38f0b | 7704 | { zHpux11_VsnprintfName, zHpux11_VsnprintfList, |
7705 | apzHpux11_VsnprintfMachs, | |
7706 | HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7707 | aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 }, | |
7708 | ||
2c59c6d3 | 7709 | { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList, |
7710 | apzHpux8_Bogus_InlinesMachs, | |
7711 | HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY, | |
ee70a29d | 7712 | aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 }, |
2c59c6d3 | 7713 | |
ebf664b2 | 7714 | { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList, |
7715 | apzHpux_Ctype_MacrosMachs, | |
7716 | HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7717 | aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 }, | |
7718 | ||
1589683c | 7719 | { zHpux_HtonlName, zHpux_HtonlList, |
7720 | apzHpux_HtonlMachs, | |
7721 | HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7722 | aHpux_HtonlTests, apzHpux_HtonlPatch, 0 }, | |
7723 | ||
ebf664b2 | 7724 | { zHpux_Long_DoubleName, zHpux_Long_DoubleList, |
7725 | apzHpux_Long_DoubleMachs, | |
7726 | HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY, | |
7727 | aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 }, | |
7728 | ||
3072d11f | 7729 | { zHpux_SystimeName, zHpux_SystimeList, |
7730 | apzHpux_SystimeMachs, | |
7731 | HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7732 | aHpux_SystimeTests, apzHpux_SystimePatch, 0 }, | |
7733 | ||
5dabcff3 | 7734 | { zHpux_Spu_InfoName, zHpux_Spu_InfoList, |
7735 | apzHpux_Spu_InfoMachs, | |
7736 | HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7737 | aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 }, | |
7738 | ||
1cb3e86d | 7739 | { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList, |
7740 | apzHpux11_Extern_SendfileMachs, | |
7741 | HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7742 | aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 }, | |
7743 | ||
7744 | { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList, | |
7745 | apzHpux11_Extern_SendpathMachs, | |
7746 | HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7747 | aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 }, | |
7748 | ||
898b6c0f | 7749 | { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList, |
7750 | apzHpux_Extern_ErrnoMachs, | |
7751 | HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7752 | aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 }, | |
7753 | ||
3c6ef6a2 | 7754 | { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList, |
7755 | apzHpux11_Pthread_ConstMachs, | |
7756 | HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7757 | aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 }, | |
7758 | ||
3dd59d44 | 7759 | { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList, |
7760 | apzHpux_Pthread_InitializersMachs, | |
7761 | HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY, | |
7762 | aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 }, | |
7763 | ||
96eced21 | 7764 | { zHuge_Val_HexName, zHuge_Val_HexList, |
7765 | apzHuge_Val_HexMachs, | |
7766 | HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7767 | aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 }, | |
7768 | ||
7769 | { zHuge_Valf_HexName, zHuge_Valf_HexList, | |
7770 | apzHuge_Valf_HexMachs, | |
7771 | HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7772 | aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 }, | |
7773 | ||
7774 | { zHuge_Vall_HexName, zHuge_Vall_HexList, | |
7775 | apzHuge_Vall_HexMachs, | |
7776 | HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7777 | aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 }, | |
7778 | ||
038a3e7a | 7779 | { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList, |
7780 | apzInt_Abort_Free_And_ExitMachs, | |
7781 | INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7782 | aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 }, |
038a3e7a | 7783 | |
49b4955b | 7784 | { zIo_Quotes_DefName, zIo_Quotes_DefList, |
7785 | apzIo_Quotes_DefMachs, | |
7786 | IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7787 | aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 }, |
49b4955b | 7788 | |
472aa368 | 7789 | { zIo_Quotes_UseName, zIo_Quotes_UseList, |
7790 | apzIo_Quotes_UseMachs, | |
7791 | IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7792 | aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 }, |
49b4955b | 7793 | |
fdb8fb96 | 7794 | { zIp_Missing_SemiName, zIp_Missing_SemiList, |
6e791f25 | 7795 | apzIp_Missing_SemiMachs, |
fdb8fb96 | 7796 | IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 7797 | aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 }, |
fdb8fb96 | 7798 | |
4a050cc7 | 7799 | { zIrix___RestrictName, zIrix___RestrictList, |
7800 | apzIrix___RestrictMachs, | |
7801 | IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7802 | aIrix___RestrictTests, apzIrix___RestrictPatch, 0 }, | |
7803 | ||
248b5b6c | 7804 | { zIrix___Generic1Name, zIrix___Generic1List, |
7805 | apzIrix___Generic1Machs, | |
7806 | IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7807 | aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 }, | |
7808 | ||
7809 | { zIrix___Generic2Name, zIrix___Generic2List, | |
7810 | apzIrix___Generic2Machs, | |
7811 | IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7812 | aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 }, | |
7813 | ||
cfe5be71 | 7814 | { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList, |
7815 | apzIrix_Asm_ApostropheMachs, | |
7816 | IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7817 | aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 }, |
cfe5be71 | 7818 | |
49e3683c | 7819 | { zIrix_Limits_ConstName, zIrix_Limits_ConstList, |
7820 | apzIrix_Limits_ConstMachs, | |
7821 | IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7822 | aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 }, | |
7823 | ||
609088c0 | 7824 | { zIrix_Socklen_TName, zIrix_Socklen_TList, |
7825 | apzIrix_Socklen_TMachs, | |
7826 | IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7827 | aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 }, | |
7828 | ||
5fb066e6 | 7829 | { zIrix_Stdint_C99Name, zIrix_Stdint_C99List, |
7830 | apzIrix_Stdint_C99Machs, | |
7831 | IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7832 | aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 }, | |
7833 | ||
3072d11f | 7834 | { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList, |
7835 | apzIrix_Stdio_Va_ListMachs, | |
7836 | IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7837 | aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 }, | |
7838 | ||
609088c0 | 7839 | { zIrix_WcsftimeName, zIrix_WcsftimeList, |
7840 | apzIrix_WcsftimeMachs, | |
7841 | IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7842 | aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 }, | |
7843 | ||
fdb8fb96 | 7844 | { zIsc_FmodName, zIsc_FmodList, |
6e791f25 | 7845 | apzIsc_FmodMachs, |
cfe5be71 | 7846 | ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7847 | aIsc_FmodTests, apzIsc_FmodPatch, 0 }, |
fdb8fb96 | 7848 | |
3072d11f | 7849 | { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList, |
7850 | apzIsc_Omits_With_StdcMachs, | |
7851 | ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7852 | aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 }, | |
7853 | ||
fdb8fb96 | 7854 | { zKandr_ConcatName, zKandr_ConcatList, |
6e791f25 | 7855 | apzKandr_ConcatMachs, |
cfe5be71 | 7856 | KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7857 | aKandr_ConcatTests, apzKandr_ConcatPatch, 0 }, |
fdb8fb96 | 7858 | |
d92db5b6 | 7859 | { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList, |
7860 | apzLinux_Ia64_UcontextMachs, | |
7861 | LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7862 | aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 }, | |
7863 | ||
435ea059 | 7864 | { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList, |
7865 | apzLynxos_No_Warning_In_Sys_Time_HMachs, | |
7866 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7867 | aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 }, | |
fdb8fb96 | 7868 | |
435ea059 | 7869 | { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList, |
7870 | apzLynxos_Missing_PutenvMachs, | |
7871 | LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7872 | aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 }, | |
fdb8fb96 | 7873 | |
d4c4b01d | 7874 | { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, |
6e791f25 | 7875 | apzMachine_Ansi_H_Va_ListMachs, |
a83746ef | 7876 | MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7877 | aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 }, |
d4c4b01d | 7878 | |
fdb8fb96 | 7879 | { zMachine_NameName, zMachine_NameList, |
6e791f25 | 7880 | apzMachine_NameMachs, |
17f8e521 | 7881 | MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7882 | aMachine_NameTests, apzMachine_NamePatch, 0 }, |
fdb8fb96 | 7883 | |
7884 | { zMath_ExceptionName, zMath_ExceptionList, | |
6e791f25 | 7885 | apzMath_ExceptionMachs, |
e6650807 | 7886 | MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7887 | aMath_ExceptionTests, apzMath_ExceptionPatch, 0 }, |
fdb8fb96 | 7888 | |
bb304030 | 7889 | { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList, |
6e791f25 | 7890 | apzMath_Huge_Val_From_Dbl_MaxMachs, |
bb304030 | 7891 | MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, |
ee70a29d | 7892 | aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 }, |
bb304030 | 7893 | |
3072d11f | 7894 | { zNested_Auth_DesName, zNested_Auth_DesList, |
7895 | apzNested_Auth_DesMachs, | |
7896 | NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7897 | aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 }, | |
7898 | ||
cfe5be71 | 7899 | { zNested_Sys_LimitsName, zNested_Sys_LimitsList, |
7900 | apzNested_Sys_LimitsMachs, | |
7901 | NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY, | |
ee70a29d | 7902 | aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 }, |
4cbf73b4 | 7903 | |
7904 | { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List, | |
7905 | apzNetbsd_C99_Inline_1Machs, | |
7906 | NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7907 | aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 }, | |
759bfb14 | 7908 | |
7909 | { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List, | |
7910 | apzNetbsd_C99_Inline_2Machs, | |
7911 | NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7912 | aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 }, | |
cfe5be71 | 7913 | |
81a897fb | 7914 | { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList, |
7915 | apzNetbsd_Extra_SemicolonMachs, | |
7916 | NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7917 | aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 }, | |
7918 | ||
fdb8fb96 | 7919 | { zNext_Math_PrefixName, zNext_Math_PrefixList, |
6e791f25 | 7920 | apzNext_Math_PrefixMachs, |
a83746ef | 7921 | NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7922 | aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 }, |
fdb8fb96 | 7923 | |
7924 | { zNext_TemplateName, zNext_TemplateList, | |
6e791f25 | 7925 | apzNext_TemplateMachs, |
a83746ef | 7926 | NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7927 | aNext_TemplateTests, apzNext_TemplatePatch, 0 }, |
fdb8fb96 | 7928 | |
7929 | { zNext_VolitileName, zNext_VolitileList, | |
6e791f25 | 7930 | apzNext_VolitileMachs, |
a83746ef | 7931 | NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7932 | aNext_VolitileTests, apzNext_VolitilePatch, 0 }, |
fdb8fb96 | 7933 | |
7934 | { zNext_Wait_UnionName, zNext_Wait_UnionList, | |
6e791f25 | 7935 | apzNext_Wait_UnionMachs, |
038a3e7a | 7936 | NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7937 | aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 }, |
fdb8fb96 | 7938 | |
7939 | { zNodeent_SyntaxName, zNodeent_SyntaxList, | |
6e791f25 | 7940 | apzNodeent_SyntaxMachs, |
038a3e7a | 7941 | NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7942 | aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 }, |
fdb8fb96 | 7943 | |
129b92e3 | 7944 | { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList, |
7945 | apzObstack_Lvalue_CastMachs, | |
7946 | OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7947 | aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 }, | |
7948 | ||
fdb8fb96 | 7949 | { zOsf_Namespace_AName, zOsf_Namespace_AList, |
6e791f25 | 7950 | apzOsf_Namespace_AMachs, |
038a3e7a | 7951 | OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7952 | aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 }, |
fdb8fb96 | 7953 | |
038a3e7a | 7954 | { zOsf_Namespace_CName, zOsf_Namespace_CList, |
7955 | apzOsf_Namespace_CMachs, | |
7956 | OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 7957 | aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 }, |
fdb8fb96 | 7958 | |
7959 | { zPthread_Page_SizeName, zPthread_Page_SizeList, | |
6e791f25 | 7960 | apzPthread_Page_SizeMachs, |
038a3e7a | 7961 | PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7962 | aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 }, |
fdb8fb96 | 7963 | |
a11c2c4d | 7964 | { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList, |
7965 | apzPthread_Incomplete_Struct_ArgumentMachs, | |
7966 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7967 | aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 }, | |
7968 | ||
d0f5620b | 7969 | { zRead_Ret_TypeName, zRead_Ret_TypeList, |
6e791f25 | 7970 | apzRead_Ret_TypeMachs, |
038a3e7a | 7971 | READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7972 | aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 }, |
d0f5620b | 7973 | |
e68aa18b | 7974 | { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList, |
7975 | apzRpc_Xdr_Lvalue_Cast_AMachs, | |
7976 | RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7977 | aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 }, | |
7978 | ||
7979 | { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList, | |
7980 | apzRpc_Xdr_Lvalue_Cast_BMachs, | |
7981 | RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
7982 | aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 }, | |
7983 | ||
fdb8fb96 | 7984 | { zRs6000_DoubleName, zRs6000_DoubleList, |
6e791f25 | 7985 | apzRs6000_DoubleMachs, |
038a3e7a | 7986 | RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7987 | aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 }, |
fdb8fb96 | 7988 | |
7989 | { zRs6000_FchmodName, zRs6000_FchmodList, | |
6e791f25 | 7990 | apzRs6000_FchmodMachs, |
038a3e7a | 7991 | RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7992 | aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 }, |
fdb8fb96 | 7993 | |
7994 | { zRs6000_ParamName, zRs6000_ParamList, | |
6e791f25 | 7995 | apzRs6000_ParamMachs, |
038a3e7a | 7996 | RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 7997 | aRs6000_ParamTests, apzRs6000_ParamPatch, 0 }, |
fdb8fb96 | 7998 | |
3c04ceca | 7999 | { zSco_MathName, zSco_MathList, |
8000 | apzSco_MathMachs, | |
8001 | SCO_MATH_TEST_CT, FD_MACH_ONLY, | |
8002 | aSco_MathTests, apzSco_MathPatch, 0 }, | |
8003 | ||
e849ea70 | 8004 | { zSolaris_Math_1Name, zSolaris_Math_1List, |
8005 | apzSolaris_Math_1Machs, | |
8006 | SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8007 | aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 }, | |
8008 | ||
8009 | { zSolaris_Math_2Name, zSolaris_Math_2List, | |
8010 | apzSolaris_Math_2Machs, | |
8011 | SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8012 | aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 }, | |
8013 | ||
8014 | { zSolaris_Math_3Name, zSolaris_Math_3List, | |
8015 | apzSolaris_Math_3Machs, | |
8016 | SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8017 | aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 }, | |
8018 | ||
8019 | { zSolaris_Math_4Name, zSolaris_Math_4List, | |
8020 | apzSolaris_Math_4Machs, | |
8021 | SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8022 | aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 }, | |
8023 | ||
e849ea70 | 8024 | { zSolaris_Math_8Name, zSolaris_Math_8List, |
8025 | apzSolaris_Math_8Machs, | |
8026 | SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8027 | aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 }, | |
8028 | ||
8029 | { zSolaris_Math_9Name, zSolaris_Math_9List, | |
8030 | apzSolaris_Math_9Machs, | |
8031 | SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8032 | aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 }, | |
8033 | ||
1b0a9ef1 | 8034 | { zSolaris_Math_10Name, zSolaris_Math_10List, |
8035 | apzSolaris_Math_10Machs, | |
8036 | SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8037 | aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 }, | |
8038 | ||
4a050cc7 | 8039 | { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List, |
8040 | apzSolaris_Mutex_Init_2Machs, | |
8041 | SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8042 | aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 }, | |
c718ce1e | 8043 | |
458caa24 | 8044 | { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List, |
8045 | apzSolaris_Rwlock_Init_1Machs, | |
8046 | SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8047 | aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 }, | |
8048 | ||
8049 | { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List, | |
8050 | apzSolaris_Once_Init_1Machs, | |
8051 | SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8052 | aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 }, | |
8053 | ||
a96763ff | 8054 | { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List, |
8055 | apzSolaris_Once_Init_2Machs, | |
8056 | SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8057 | aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 }, | |
8058 | ||
91eb7bbc | 8059 | { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList, |
8060 | apzSolaris_Stdio_TagMachs, | |
8061 | SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY, | |
8062 | aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 }, | |
8063 | ||
fdb8fb96 | 8064 | { zStatsswtchName, zStatsswtchList, |
6e791f25 | 8065 | apzStatsswtchMachs, |
038a3e7a | 8066 | STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8067 | aStatsswtchTests, apzStatsswtchPatch, 0 }, |
fdb8fb96 | 8068 | |
d4c4b01d | 8069 | { zStdio_Stdarg_HName, zStdio_Stdarg_HList, |
6e791f25 | 8070 | apzStdio_Stdarg_HMachs, |
09a31484 | 8071 | STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
ee70a29d | 8072 | aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 }, |
d4c4b01d | 8073 | |
fdb8fb96 | 8074 | { zStdio_Va_ListName, zStdio_Va_ListList, |
6e791f25 | 8075 | apzStdio_Va_ListMachs, |
09a31484 | 8076 | STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT, |
ee70a29d | 8077 | aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 }, |
fdb8fb96 | 8078 | |
925b9291 | 8079 | { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList, |
8080 | apzStdio_Va_List_ClientsMachs, | |
8081 | STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY, | |
8082 | aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 }, | |
8083 | ||
3072d11f | 8084 | { zStrict_Ansi_NotName, zStrict_Ansi_NotList, |
8085 | apzStrict_Ansi_NotMachs, | |
8086 | STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8087 | aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 }, | |
8088 | ||
8089 | { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList, | |
8090 | apzStrict_Ansi_Not_CtdMachs, | |
8091 | STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8092 | aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 }, | |
8093 | ||
8094 | { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList, | |
8095 | apzStrict_Ansi_OnlyMachs, | |
8096 | STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8097 | aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 }, | |
8098 | ||
cfe5be71 | 8099 | { zStruct_FileName, zStruct_FileList, |
8100 | apzStruct_FileMachs, | |
8101 | STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8102 | aStruct_FileTests, apzStruct_FilePatch, 0 }, |
cfe5be71 | 8103 | |
8104 | { zStruct_SockaddrName, zStruct_SockaddrList, | |
8105 | apzStruct_SockaddrMachs, | |
8106 | STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8107 | aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 }, |
cfe5be71 | 8108 | |
a712e12c | 8109 | { zSun_Auth_ProtoName, zSun_Auth_ProtoList, |
6e791f25 | 8110 | apzSun_Auth_ProtoMachs, |
038a3e7a | 8111 | SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8112 | aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 }, |
a712e12c | 8113 | |
fdb8fb96 | 8114 | { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList, |
6e791f25 | 8115 | apzSun_Bogus_IfdefMachs, |
038a3e7a | 8116 | SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8117 | aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 }, |
fdb8fb96 | 8118 | |
fdb8fb96 | 8119 | { zSun_CatmacroName, zSun_CatmacroList, |
6e791f25 | 8120 | apzSun_CatmacroMachs, |
038a3e7a | 8121 | SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8122 | aSun_CatmacroTests, apzSun_CatmacroPatch, 0 }, |
fdb8fb96 | 8123 | |
8124 | { zSun_MallocName, zSun_MallocList, | |
6e791f25 | 8125 | apzSun_MallocMachs, |
fdb8fb96 | 8126 | SUN_MALLOC_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8127 | aSun_MallocTests, apzSun_MallocPatch, 0 }, |
fdb8fb96 | 8128 | |
fdb8fb96 | 8129 | { zSun_Rusers_SemiName, zSun_Rusers_SemiList, |
6e791f25 | 8130 | apzSun_Rusers_SemiMachs, |
fdb8fb96 | 8131 | SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8132 | aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 }, |
fdb8fb96 | 8133 | |
8134 | { zSun_SignalName, zSun_SignalList, | |
6e791f25 | 8135 | apzSun_SignalMachs, |
038a3e7a | 8136 | SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8137 | aSun_SignalTests, apzSun_SignalPatch, 0 }, |
fdb8fb96 | 8138 | |
fdb8fb96 | 8139 | { zSunos_StrlenName, zSunos_StrlenList, |
6e791f25 | 8140 | apzSunos_StrlenMachs, |
038a3e7a | 8141 | SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8142 | aSunos_StrlenTests, apzSunos_StrlenPatch, 0 }, |
fdb8fb96 | 8143 | |
3c04ceca | 8144 | { zSvr4_Disable_OptName, zSvr4_Disable_OptList, |
8145 | apzSvr4_Disable_OptMachs, | |
8146 | SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY, | |
8147 | aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 }, | |
8148 | ||
a712e12c | 8149 | { zSvr4_GetcwdName, zSvr4_GetcwdList, |
6e791f25 | 8150 | apzSvr4_GetcwdMachs, |
038a3e7a | 8151 | SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8152 | aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 }, |
a712e12c | 8153 | |
8154 | { zSvr4_ProfilName, zSvr4_ProfilList, | |
6e791f25 | 8155 | apzSvr4_ProfilMachs, |
038a3e7a | 8156 | SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8157 | aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 }, |
a712e12c | 8158 | |
d23689b2 | 8159 | { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList, |
8160 | apzSvr4_Sighandler_TypeMachs, | |
8161 | SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8162 | aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 }, | |
8163 | ||
630af039 | 8164 | { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList, |
8165 | apzSvr4_Undeclared_GetrngeMachs, | |
8166 | SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8167 | aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 }, | |
8168 | ||
fdb8fb96 | 8169 | { zSysv68_StringName, zSysv68_StringList, |
6e791f25 | 8170 | apzSysv68_StringMachs, |
fdb8fb96 | 8171 | SYSV68_STRING_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8172 | aSysv68_StringTests, apzSysv68_StringPatch, 0 }, |
fdb8fb96 | 8173 | |
8174 | { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList, | |
6e791f25 | 8175 | apzSysz_Stdlib_For_SunMachs, |
038a3e7a | 8176 | SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8177 | aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 }, |
fdb8fb96 | 8178 | |
2a6f0f81 | 8179 | { zThread_KeywordName, zThread_KeywordList, |
8180 | apzThread_KeywordMachs, | |
77f26774 | 8181 | THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
2a6f0f81 | 8182 | aThread_KeywordTests, apzThread_KeywordPatch, 0 }, |
8183 | ||
fdb8fb96 | 8184 | { zTinfo_CplusplusName, zTinfo_CplusplusList, |
6e791f25 | 8185 | apzTinfo_CplusplusMachs, |
f74d6549 | 8186 | TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8187 | aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 }, |
fdb8fb96 | 8188 | |
fdb8fb96 | 8189 | { zUltrix_ConstName, zUltrix_ConstList, |
6e791f25 | 8190 | apzUltrix_ConstMachs, |
f74d6549 | 8191 | ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8192 | aUltrix_ConstTests, apzUltrix_ConstPatch, 0 }, |
fdb8fb96 | 8193 | |
f74d6549 | 8194 | { zUltrix_Const2Name, zUltrix_Const2List, |
8195 | apzUltrix_Const2Machs, | |
8196 | ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8197 | aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 }, |
f74d6549 | 8198 | |
fdb8fb96 | 8199 | { zVa_I960_MacroName, zVa_I960_MacroList, |
6e791f25 | 8200 | apzVa_I960_MacroMachs, |
f74d6549 | 8201 | VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8202 | aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 }, |
fdb8fb96 | 8203 | |
8204 | { zVoid_NullName, zVoid_NullList, | |
6e791f25 | 8205 | apzVoid_NullMachs, |
f74d6549 | 8206 | VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8207 | aVoid_NullTests, apzVoid_NullPatch, 0 }, |
fdb8fb96 | 8208 | |
8209 | { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList, | |
6e791f25 | 8210 | apzVxworks_Gcc_ProblemMachs, |
fdb8fb96 | 8211 | VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8212 | aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 }, |
fdb8fb96 | 8213 | |
8214 | { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList, | |
6e791f25 | 8215 | apzVxworks_Needs_VxtypesMachs, |
f74d6549 | 8216 | VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8217 | aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 }, |
fdb8fb96 | 8218 | |
8219 | { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList, | |
6e791f25 | 8220 | apzVxworks_Needs_VxworksMachs, |
fdb8fb96 | 8221 | VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8222 | aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 }, |
fdb8fb96 | 8223 | |
8224 | { zVxworks_TimeName, zVxworks_TimeList, | |
6e791f25 | 8225 | apzVxworks_TimeMachs, |
f74d6549 | 8226 | VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8227 | aVxworks_TimeTests, apzVxworks_TimePatch, 0 }, |
fdb8fb96 | 8228 | |
8229 | { zX11_ClassName, zX11_ClassList, | |
6e791f25 | 8230 | apzX11_ClassMachs, |
e7ae4397 | 8231 | X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8232 | aX11_ClassTests, apzX11_ClassPatch, 0 }, |
fdb8fb96 | 8233 | |
8234 | { zX11_Class_UsageName, zX11_Class_UsageList, | |
6e791f25 | 8235 | apzX11_Class_UsageMachs, |
f74d6549 | 8236 | X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8237 | aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 }, |
fdb8fb96 | 8238 | |
8239 | { zX11_NewName, zX11_NewList, | |
6e791f25 | 8240 | apzX11_NewMachs, |
fdb8fb96 | 8241 | X11_NEW_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8242 | aX11_NewTests, apzX11_NewPatch, 0 }, |
fdb8fb96 | 8243 | |
8244 | { zX11_SprintfName, zX11_SprintfList, | |
6e791f25 | 8245 | apzX11_SprintfMachs, |
f74d6549 | 8246 | X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8247 | aX11_SprintfTests, apzX11_SprintfPatch, 0 } |
fdb8fb96 | 8248 | }; |