]>
Commit | Line | Data |
---|---|---|
06bbab1b | 1 | /* |
be02fa1a | 2 | * DO NOT EDIT THIS FILE - it has been generated |
06bbab1b BK |
3 | * |
4 | * Install modified versions of certain ANSI-incompatible system header | |
5 | * files which are fixed to work correctly with ANSI C and placed in a | |
6 | * directory that GNU C will search. | |
7 | * | |
72b9c7fb | 8 | * This file contains 118 fixup descriptions. |
06bbab1b BK |
9 | * |
10 | * See README-fixinc for more information. | |
11 | * | |
3be1fb72 ZW |
12 | * inclhack copyright (c) 1998, 1999, 2000 |
13 | * The Free Software Foundation, Inc. | |
be02fa1a | 14 | * |
06bbab1b BK |
15 | * inclhack is free software. |
16 | * | |
17 | * You may redistribute it and/or modify it under the terms of the | |
18 | * GNU General Public License, as published by the Free Software | |
19 | * Foundation; either version 2, or (at your option) any later version. | |
20 | * | |
21 | * inclhack is distributed in the hope that it will be useful, | |
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
24 | * See the GNU General Public License for more details. | |
25 | * | |
26 | * You should have received a copy of the GNU General Public License | |
27 | * along with inclhack. See the file "COPYING". If not, | |
28 | * write to: The Free Software Foundation, Inc., | |
29 | * 59 Temple Place - Suite 330, | |
30 | * Boston, MA 02111-1307, USA. | |
3be1fb72 ZW |
31 | */ |
32 | ||
33 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
06bbab1b | 34 | * |
5abc1f74 | 35 | * Description of Aaa_Ki_Iface fix |
06bbab1b | 36 | */ |
5abc1f74 BK |
37 | #define AAA_KI_IFACE_FIXIDX 0 |
38 | tSCC zAaa_Ki_IfaceName[] = | |
3be1fb72 ZW |
39 | "AAA_ki_iface"; |
40 | ||
5abc1f74 BK |
41 | /* |
42 | * File name selection pattern | |
43 | */ | |
44 | tSCC zAaa_Ki_IfaceList[] = | |
45 | "|sys/ki_iface.h|"; | |
46 | /* | |
47 | * Machine/OS name selection pattern | |
48 | */ | |
49 | #define apzAaa_Ki_IfaceMachs (const char**)NULL | |
50 | ||
51 | /* | |
52 | * content selection pattern - do fix if pattern found | |
53 | */ | |
54 | tSCC zAaa_Ki_IfaceSelect0[] = | |
55 | "These definitions are for HP Internal developers"; | |
56 | ||
57 | #define AAA_KI_IFACE_TEST_CT 1 | |
5abc1f74 BK |
58 | tTestDesc aAaa_Ki_IfaceTests[] = { |
59 | { TT_EGREP, zAaa_Ki_IfaceSelect0, (regex_t*)NULL }, }; | |
60 | ||
61 | /* | |
62 | * Fix Command Arguments for Aaa_Ki_Iface | |
63 | */ | |
64 | const char* apzAaa_Ki_IfacePatch[] = { | |
65 | (char*)NULL }; | |
66 | ||
67 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
68 | * | |
69 | * Description of Aaa_Ki fix | |
70 | */ | |
71 | #define AAA_KI_FIXIDX 1 | |
72 | tSCC zAaa_KiName[] = | |
3be1fb72 ZW |
73 | "AAA_ki"; |
74 | ||
5abc1f74 BK |
75 | /* |
76 | * File name selection pattern | |
77 | */ | |
78 | tSCC zAaa_KiList[] = | |
79 | "|sys/ki.h|"; | |
80 | /* | |
81 | * Machine/OS name selection pattern | |
82 | */ | |
83 | #define apzAaa_KiMachs (const char**)NULL | |
84 | ||
85 | /* | |
86 | * content selection pattern - do fix if pattern found | |
87 | */ | |
88 | tSCC zAaa_KiSelect0[] = | |
89 | "11.00 HP-UX LP64"; | |
90 | ||
91 | #define AAA_KI_TEST_CT 1 | |
5abc1f74 BK |
92 | tTestDesc aAaa_KiTests[] = { |
93 | { TT_EGREP, zAaa_KiSelect0, (regex_t*)NULL }, }; | |
94 | ||
95 | /* | |
96 | * Fix Command Arguments for Aaa_Ki | |
97 | */ | |
98 | const char* apzAaa_KiPatch[] = { | |
99 | (char*)NULL }; | |
100 | ||
101 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
102 | * | |
103 | * Description of Aaa_Ki_Calls fix | |
104 | */ | |
105 | #define AAA_KI_CALLS_FIXIDX 2 | |
106 | tSCC zAaa_Ki_CallsName[] = | |
3be1fb72 ZW |
107 | "AAA_ki_calls"; |
108 | ||
5abc1f74 BK |
109 | /* |
110 | * File name selection pattern | |
111 | */ | |
112 | tSCC zAaa_Ki_CallsList[] = | |
113 | "|sys/ki_calls.h|"; | |
114 | /* | |
115 | * Machine/OS name selection pattern | |
116 | */ | |
117 | #define apzAaa_Ki_CallsMachs (const char**)NULL | |
118 | ||
119 | /* | |
120 | * content selection pattern - do fix if pattern found | |
121 | */ | |
122 | tSCC zAaa_Ki_CallsSelect0[] = | |
123 | "kthread_create_caller_t"; | |
124 | ||
125 | #define AAA_KI_CALLS_TEST_CT 1 | |
5abc1f74 BK |
126 | tTestDesc aAaa_Ki_CallsTests[] = { |
127 | { TT_EGREP, zAaa_Ki_CallsSelect0, (regex_t*)NULL }, }; | |
128 | ||
129 | /* | |
130 | * Fix Command Arguments for Aaa_Ki_Calls | |
131 | */ | |
132 | const char* apzAaa_Ki_CallsPatch[] = { | |
133 | (char*)NULL }; | |
134 | ||
135 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
136 | * | |
137 | * Description of Aaa_Ki_Defs fix | |
138 | */ | |
139 | #define AAA_KI_DEFS_FIXIDX 3 | |
140 | tSCC zAaa_Ki_DefsName[] = | |
3be1fb72 ZW |
141 | "AAA_ki_defs"; |
142 | ||
5abc1f74 BK |
143 | /* |
144 | * File name selection pattern | |
145 | */ | |
146 | tSCC zAaa_Ki_DefsList[] = | |
147 | "|sys/ki_defs.h|"; | |
148 | /* | |
149 | * Machine/OS name selection pattern | |
150 | */ | |
151 | #define apzAaa_Ki_DefsMachs (const char**)NULL | |
152 | ||
153 | /* | |
154 | * content selection pattern - do fix if pattern found | |
155 | */ | |
156 | tSCC zAaa_Ki_DefsSelect0[] = | |
157 | "Kernel Instrumentation Definitions"; | |
158 | ||
159 | #define AAA_KI_DEFS_TEST_CT 1 | |
5abc1f74 BK |
160 | tTestDesc aAaa_Ki_DefsTests[] = { |
161 | { TT_EGREP, zAaa_Ki_DefsSelect0, (regex_t*)NULL }, }; | |
162 | ||
163 | /* | |
164 | * Fix Command Arguments for Aaa_Ki_Defs | |
165 | */ | |
166 | const char* apzAaa_Ki_DefsPatch[] = { | |
167 | (char*)NULL }; | |
168 | ||
169 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
170 | * | |
171 | * Description of Aaa_Bad_Fixes fix | |
172 | */ | |
173 | #define AAA_BAD_FIXES_FIXIDX 4 | |
174 | tSCC zAaa_Bad_FixesName[] = | |
3be1fb72 ZW |
175 | "AAA_bad_fixes"; |
176 | ||
5abc1f74 BK |
177 | /* |
178 | * File name selection pattern | |
179 | */ | |
180 | tSCC zAaa_Bad_FixesList[] = | |
181 | "|sundev/ipi_error.h|"; | |
182 | /* | |
183 | * Machine/OS name selection pattern | |
184 | */ | |
185 | #define apzAaa_Bad_FixesMachs (const char**)NULL | |
186 | #define AAA_BAD_FIXES_TEST_CT 0 | |
5abc1f74 BK |
187 | #define aAaa_Bad_FixesTests (tTestDesc*)NULL |
188 | ||
189 | /* | |
190 | * Fix Command Arguments for Aaa_Bad_Fixes | |
191 | */ | |
192 | const char* apzAaa_Bad_FixesPatch[] = { | |
193 | (char*)NULL }; | |
194 | ||
195 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
196 | * | |
197 | * Description of Aaa_Time fix | |
198 | */ | |
199 | #define AAA_TIME_FIXIDX 5 | |
200 | tSCC zAaa_TimeName[] = | |
3be1fb72 ZW |
201 | "AAA_time"; |
202 | ||
5abc1f74 BK |
203 | /* |
204 | * File name selection pattern | |
205 | */ | |
206 | tSCC zAaa_TimeList[] = | |
207 | "|sys/time.h|"; | |
208 | /* | |
209 | * Machine/OS name selection pattern | |
210 | */ | |
211 | #define apzAaa_TimeMachs (const char**)NULL | |
212 | ||
213 | /* | |
214 | * content selection pattern - do fix if pattern found | |
215 | */ | |
216 | tSCC zAaa_TimeSelect0[] = | |
217 | "11.0 and later representation of ki time"; | |
218 | ||
219 | #define AAA_TIME_TEST_CT 1 | |
5abc1f74 BK |
220 | tTestDesc aAaa_TimeTests[] = { |
221 | { TT_EGREP, zAaa_TimeSelect0, (regex_t*)NULL }, }; | |
222 | ||
223 | /* | |
224 | * Fix Command Arguments for Aaa_Time | |
225 | */ | |
226 | const char* apzAaa_TimePatch[] = { | |
227 | (char*)NULL }; | |
228 | ||
229 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
230 | * | |
231 | * Description of Aab_Dgux_Int_Varargs fix | |
232 | */ | |
233 | #define AAB_DGUX_INT_VARARGS_FIXIDX 6 | |
234 | tSCC zAab_Dgux_Int_VarargsName[] = | |
3be1fb72 ZW |
235 | "AAB_dgux_int_varargs"; |
236 | ||
5abc1f74 BK |
237 | /* |
238 | * File name selection pattern | |
239 | */ | |
240 | tSCC zAab_Dgux_Int_VarargsList[] = | |
241 | "|_int_varargs.h|"; | |
242 | /* | |
243 | * Machine/OS name selection pattern | |
244 | */ | |
245 | #define apzAab_Dgux_Int_VarargsMachs (const char**)NULL | |
246 | #define AAB_DGUX_INT_VARARGS_TEST_CT 0 | |
5abc1f74 BK |
247 | #define aAab_Dgux_Int_VarargsTests (tTestDesc*)NULL |
248 | ||
249 | /* | |
250 | * Fix Command Arguments for Aab_Dgux_Int_Varargs | |
251 | */ | |
252 | const char* apzAab_Dgux_Int_VarargsPatch[] = { | |
253 | "#ifndef __INT_VARARGS_H\n\ | |
254 | #define __INT_VARARGS_H\n\ | |
255 | \n\ | |
256 | /************************************************************************/\n\ | |
257 | /* _INT_VARARGS.H - Define the common stuff for varargs/stdarg/stdio. */\n\ | |
258 | /************************************************************************/\n\ | |
259 | \n\ | |
260 | /*\n\ | |
261 | ** This file is a DG internal header. Never include this\n\ | |
262 | ** file directly.\n\ | |
263 | */\n\ | |
264 | \n\ | |
265 | #ifndef ___int_features_h\n\ | |
266 | #include <sys/_int_features.h>\n\ | |
267 | #endif\n\ | |
268 | \n\ | |
269 | #if !(defined(_VA_LIST) || defined(_VA_LIST_))\n\ | |
270 | #define _VA_LIST\n\ | |
271 | #define _VA_LIST_\n\ | |
272 | \n\ | |
273 | #ifdef __LINT__\n\ | |
274 | \n\ | |
275 | #ifdef __STDC__\n\ | |
276 | typedef void * va_list;\n\ | |
277 | #else\n\ | |
278 | typedef char * va_list;\n\ | |
279 | #endif\n\ | |
280 | \n\ | |
281 | #else\n\ | |
282 | #if _M88K_ANY\n\ | |
283 | \n\ | |
284 | #if defined(__DCC__)\n\ | |
285 | \n\ | |
286 | typedef struct {\n\ | |
287 | int next_arg;\n\ | |
288 | int *mem_ptr;\n\ | |
289 | int *reg_ptr;\n\ | |
290 | } va_list;\n\ | |
291 | \n\ | |
292 | #else /* ! defined(__DCC__) */\n\ | |
293 | \n\ | |
294 | typedef struct {\n\ | |
295 | int __va_arg; /* argument number */\n\ | |
296 | int *__va_stk; /* start of args passed on stack */\n\ | |
297 | int *__va_reg; /* start of args passed in regs */\n\ | |
298 | } va_list;\n\ | |
299 | \n\ | |
300 | #endif /* ! defined(__DCC__) */\n\ | |
301 | \n\ | |
302 | #elif _IX86_ANY\n\ | |
303 | \n\ | |
304 | #if defined(__GNUC__) || defined(__STDC__)\n\ | |
305 | typedef void * va_list;\n\ | |
306 | #else\n\ | |
307 | typedef char * va_list;\n\ | |
308 | #endif\n\ | |
309 | \n\ | |
310 | #endif /* _IX86_ANY */\n\ | |
311 | \n\ | |
312 | #endif /* __LINT__ */\n\ | |
313 | #endif /* !(defined(_VA_LIST) || defined(_VA_LIST_)) */\n\ | |
314 | #endif /* #ifndef __INT_VARARGS_H */\n", | |
315 | (char*)NULL }; | |
316 | ||
8aeb3b0e BK |
317 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
318 | * | |
d7eb5a45 | 319 | * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix |
8aeb3b0e | 320 | */ |
d7eb5a45 ZW |
321 | #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX 7 |
322 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] = | |
3be1fb72 ZW |
323 | "AAB_fd_zero_asm_posix_types_h"; |
324 | ||
8aeb3b0e BK |
325 | /* |
326 | * File name selection pattern | |
327 | */ | |
d7eb5a45 | 328 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] = |
8aeb3b0e BK |
329 | "|asm/posix_types.h|"; |
330 | /* | |
331 | * Machine/OS name selection pattern | |
332 | */ | |
d7eb5a45 | 333 | tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = { |
c5984b7b BK |
334 | "i[34567]86-*-linux-gnu*", |
335 | (const char*)NULL }; | |
8aeb3b0e BK |
336 | |
337 | /* | |
d7eb5a45 | 338 | * content bypass pattern - skip fix if pattern found |
8aeb3b0e | 339 | */ |
d7eb5a45 ZW |
340 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = |
341 | "} while"; | |
342 | ||
343 | #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1 | |
d7eb5a45 ZW |
344 | tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { |
345 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, }; | |
346 | ||
347 | /* | |
348 | * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H | |
349 | */ | |
350 | const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = { | |
351 | "/* This file fixes a bug in the __FD_ZERO macro\n\ | |
352 | for older versions of the Linux kernel. */\n\ | |
8aeb3b0e BK |
353 | #ifndef _POSIX_TYPES_H_WRAPPER\n\ |
354 | #include <features.h>\n\ | |
bfab56e7 | 355 | #include_next <asm/posix_types.h>\n\ |
8aeb3b0e BK |
356 | \n\ |
357 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ | |
358 | #undef __FD_ZERO\n\ | |
d7eb5a45 ZW |
359 | #define __FD_ZERO(fdsetp) \\\n\ |
360 | do { \\\n\ | |
361 | int __d0, __d1; \\\n\ | |
362 | \t\t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ | |
363 | \t\t\t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
364 | \t\t\t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
365 | \t\t\t \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
366 | } while (0)\n\ | |
8aeb3b0e BK |
367 | #endif\n\ |
368 | \n\ | |
369 | #define _POSIX_TYPES_H_WRAPPER\n\ | |
370 | #endif /* _POSIX_TYPES_H_WRAPPER */\n", | |
371 | (char*)NULL }; | |
372 | ||
373 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
374 | * | |
d7eb5a45 | 375 | * Description of Aab_Fd_Zero_Gnu_Types_H fix |
8aeb3b0e | 376 | */ |
d7eb5a45 ZW |
377 | #define AAB_FD_ZERO_GNU_TYPES_H_FIXIDX 8 |
378 | tSCC zAab_Fd_Zero_Gnu_Types_HName[] = | |
3be1fb72 ZW |
379 | "AAB_fd_zero_gnu_types_h"; |
380 | ||
8aeb3b0e BK |
381 | /* |
382 | * File name selection pattern | |
383 | */ | |
d7eb5a45 | 384 | tSCC zAab_Fd_Zero_Gnu_Types_HList[] = |
8aeb3b0e BK |
385 | "|gnu/types.h|"; |
386 | /* | |
387 | * Machine/OS name selection pattern | |
388 | */ | |
d7eb5a45 | 389 | tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = { |
c5984b7b BK |
390 | "i[34567]86-*-linux-gnu*", |
391 | (const char*)NULL }; | |
d7eb5a45 | 392 | #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0 |
d7eb5a45 | 393 | #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL |
8aeb3b0e BK |
394 | |
395 | /* | |
d7eb5a45 | 396 | * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H |
8aeb3b0e | 397 | */ |
d7eb5a45 ZW |
398 | const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = { |
399 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\ | |
8aeb3b0e BK |
400 | #ifndef _TYPES_H_WRAPPER\n\ |
401 | #include <features.h>\n\ | |
bfab56e7 | 402 | #include_next <gnu/types.h>\n\ |
8aeb3b0e BK |
403 | \n\ |
404 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ | |
405 | #undef __FD_ZERO\n\ | |
d7eb5a45 ZW |
406 | # define __FD_ZERO(fdsetp) \\\n\ |
407 | do { \\\n\ | |
408 | int __d0, __d1; \\\n\ | |
409 | \t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ | |
410 | \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
411 | \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
412 | \t\t \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
413 | } while (0)\n\ | |
8aeb3b0e BK |
414 | #endif\n\ |
415 | \n\ | |
416 | #define _TYPES_H_WRAPPER\n\ | |
417 | #endif /* _TYPES_H_WRAPPER */\n", | |
418 | (char*)NULL }; | |
419 | ||
420 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
421 | * | |
d7eb5a45 | 422 | * Description of Aab_Fd_Zero_Selectbits_H fix |
8aeb3b0e | 423 | */ |
d7eb5a45 ZW |
424 | #define AAB_FD_ZERO_SELECTBITS_H_FIXIDX 9 |
425 | tSCC zAab_Fd_Zero_Selectbits_HName[] = | |
3be1fb72 ZW |
426 | "AAB_fd_zero_selectbits_h"; |
427 | ||
8aeb3b0e BK |
428 | /* |
429 | * File name selection pattern | |
430 | */ | |
d7eb5a45 | 431 | tSCC zAab_Fd_Zero_Selectbits_HList[] = |
8aeb3b0e BK |
432 | "|selectbits.h|"; |
433 | /* | |
434 | * Machine/OS name selection pattern | |
435 | */ | |
d7eb5a45 | 436 | tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = { |
c5984b7b BK |
437 | "i[34567]86-*-linux-gnu*", |
438 | (const char*)NULL }; | |
d7eb5a45 | 439 | #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0 |
d7eb5a45 | 440 | #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL |
8aeb3b0e BK |
441 | |
442 | /* | |
d7eb5a45 | 443 | * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H |
8aeb3b0e | 444 | */ |
d7eb5a45 ZW |
445 | const char* apzAab_Fd_Zero_Selectbits_HPatch[] = { |
446 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\ | |
8aeb3b0e BK |
447 | #ifndef _SELECTBITS_H_WRAPPER\n\ |
448 | #include <features.h>\n\ | |
bfab56e7 | 449 | #include_next <selectbits.h>\n\ |
8aeb3b0e | 450 | \n\ |
d7eb5a45 ZW |
451 | #if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\ |
452 | \t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\ | |
453 | \t&& __GLIBC_MINOR__ == 0\n\ | |
8aeb3b0e | 454 | #undef __FD_ZERO\n\ |
d7eb5a45 ZW |
455 | #define __FD_ZERO(fdsetp) \\\n\ |
456 | do { \\\n\ | |
457 | int __d0, __d1; \\\n\ | |
458 | __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\ | |
459 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
460 | : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\ | |
461 | / sizeof (__fd_mask)), \\\n\ | |
462 | \"1\" ((__fd_mask *) (fdsetp)) \\\n\ | |
463 | : \"memory\"); \\\n\ | |
464 | } while (0)\n\ | |
8aeb3b0e BK |
465 | #endif\n\ |
466 | \n\ | |
467 | #define _SELECTBITS_H_WRAPPER\n\ | |
468 | #endif /* _SELECTBITS_H_WRAPPER */\n", | |
469 | (char*)NULL }; | |
470 | ||
b51207a4 ZW |
471 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
472 | * | |
473 | * Description of Aab_Sun_Memcpy fix | |
474 | */ | |
475 | #define AAB_SUN_MEMCPY_FIXIDX 10 | |
476 | tSCC zAab_Sun_MemcpyName[] = | |
3be1fb72 ZW |
477 | "AAB_sun_memcpy"; |
478 | ||
b51207a4 ZW |
479 | /* |
480 | * File name selection pattern | |
481 | */ | |
482 | tSCC zAab_Sun_MemcpyList[] = | |
483 | "|memory.h|"; | |
484 | /* | |
485 | * Machine/OS name selection pattern | |
486 | */ | |
487 | #define apzAab_Sun_MemcpyMachs (const char**)NULL | |
488 | ||
489 | /* | |
490 | * content selection pattern - do fix if pattern found | |
491 | */ | |
492 | tSCC zAab_Sun_MemcpySelect0[] = | |
493 | "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/"; | |
494 | ||
495 | #define AAB_SUN_MEMCPY_TEST_CT 1 | |
496 | tTestDesc aAab_Sun_MemcpyTests[] = { | |
497 | { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, }; | |
498 | ||
499 | /* | |
500 | * Fix Command Arguments for Aab_Sun_Memcpy | |
501 | */ | |
502 | const char* apzAab_Sun_MemcpyPatch[] = { | |
503 | "/* This file was generated by fixincludes */\n\ | |
504 | #ifndef __memory_h__\n\ | |
505 | #define __memory_h__\n\ | |
506 | \n\ | |
507 | #ifdef __STDC__\n\ | |
508 | extern void *memccpy();\n\ | |
509 | extern void *memchr();\n\ | |
510 | extern void *memcpy();\n\ | |
511 | extern void *memset();\n\ | |
512 | #else\n\ | |
513 | extern char *memccpy();\n\ | |
514 | extern char *memchr();\n\ | |
515 | extern char *memcpy();\n\ | |
516 | extern char *memset();\n\ | |
517 | #endif /* __STDC__ */\n\ | |
518 | \n\ | |
519 | extern int memcmp();\n\ | |
520 | \n\ | |
521 | #endif /* __memory_h__ */\n", | |
522 | (char*)NULL }; | |
523 | ||
86765ca0 RL |
524 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
525 | * | |
526 | * Description of Aab_Svr4_Replace_Byteorder fix | |
527 | */ | |
b51207a4 | 528 | #define AAB_SVR4_REPLACE_BYTEORDER_FIXIDX 11 |
86765ca0 | 529 | tSCC zAab_Svr4_Replace_ByteorderName[] = |
3be1fb72 ZW |
530 | "AAB_svr4_replace_byteorder"; |
531 | ||
86765ca0 RL |
532 | /* |
533 | * File name selection pattern | |
534 | */ | |
535 | tSCC zAab_Svr4_Replace_ByteorderList[] = | |
536 | "|sys/byteorder.h|"; | |
537 | /* | |
538 | * Machine/OS name selection pattern | |
539 | */ | |
540 | tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = { | |
541 | "*-*-sysv4*", | |
542 | "i[34567]86-*-sysv5*", | |
543 | "i[34567]86-*-udk*", | |
544 | "i[34567]86-*-solaris2.[0-4]", | |
545 | "powerpcle-*-solaris2.[0-4]", | |
546 | "sparc-*-solaris2.[0-4]", | |
547 | (const char*)NULL }; | |
548 | #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0 | |
86765ca0 RL |
549 | #define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL |
550 | ||
551 | /* | |
552 | * Fix Command Arguments for Aab_Svr4_Replace_Byteorder | |
553 | */ | |
554 | const char* apzAab_Svr4_Replace_ByteorderPatch[] = { | |
555 | "#ifndef _SYS_BYTEORDER_H\n\ | |
556 | #define _SYS_BYTEORDER_H\n\ | |
557 | \n\ | |
558 | /* Functions to convert `short' and `long' quantities from host byte order\n\ | |
559 | to (internet) network byte order (i.e. big-endian).\n\ | |
560 | \n\ | |
561 | Written by Ron Guilmette (rfg@ncd.com).\n\ | |
562 | \n\ | |
563 | This isn't actually used by GCC. It is installed by fixinc.svr4.\n\ | |
564 | \n\ | |
565 | For big-endian machines these functions are essentially no-ops.\n\ | |
566 | \n\ | |
567 | For little-endian machines, we define the functions using specialized\n\ | |
568 | asm sequences in cases where doing so yields better code (e.g. i386). */\n\ | |
569 | \n\ | |
570 | #if !defined (__GNUC__) && !defined (__GNUG__)\n\ | |
571 | #error You lose! This file is only useful with GNU compilers.\n\ | |
572 | #endif\n\ | |
573 | \n\ | |
574 | #ifndef __BYTE_ORDER__\n\ | |
575 | /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\ | |
576 | double underscores added at the front and back. */\n\ | |
577 | #define __LITTLE_ENDIAN__ 1234\n\ | |
578 | #define __BIG_ENDIAN__ 4321\n\ | |
579 | #define __PDP_ENDIAN__ 3412\n\ | |
580 | #endif\n\ | |
581 | \n\ | |
582 | #ifdef __STDC__\n\ | |
583 | static __inline__ unsigned long htonl (unsigned long);\n\ | |
584 | static __inline__ unsigned short htons (unsigned int);\n\ | |
585 | static __inline__ unsigned long ntohl (unsigned long);\n\ | |
586 | static __inline__ unsigned short ntohs (unsigned int);\n\ | |
587 | #endif /* defined (__STDC__) */\n\ | |
588 | \n\ | |
589 | #if defined (__i386__)\n\ | |
590 | \n\ | |
591 | #ifndef __BYTE_ORDER__\n\ | |
592 | #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\ | |
593 | #endif\n\ | |
594 | \n\ | |
595 | /* Convert a host long to a network long. */\n\ | |
596 | \n\ | |
597 | /* We must use a new-style function definition, so that this will also\n\ | |
598 | be valid for C++. */\n\ | |
599 | static __inline__ unsigned long\n\ | |
600 | htonl (unsigned long __arg)\n\ | |
601 | {\n\ | |
602 | register unsigned long __result;\n\ | |
603 | \n\ | |
604 | __asm__ (\"xchg%B0 %b0,%h0\n\ | |
605 | \tror%L0 $16,%0\n\ | |
606 | \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\ | |
607 | return __result;\n\ | |
608 | }\n\ | |
609 | \n\ | |
610 | /* Convert a host short to a network short. */\n\ | |
611 | \n\ | |
612 | static __inline__ unsigned short\n\ | |
613 | htons (unsigned int __arg)\n\ | |
614 | {\n\ | |
615 | register unsigned short __result;\n\ | |
616 | \n\ | |
617 | __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\ | |
618 | return __result;\n\ | |
619 | }\n\ | |
620 | \n\ | |
d7eb5a45 ZW |
621 | #elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\ |
622 | || defined (__ns32k__) || defined (__vax__)\t\t\\\n\ | |
623 | || defined (__spur__) || defined (__arm__))\n\ | |
86765ca0 RL |
624 | \n\ |
625 | #ifndef __BYTE_ORDER__\n\ | |
626 | #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\ | |
627 | #endif\n\ | |
628 | \n\ | |
629 | /* For other little-endian machines, using C code is just as efficient as\n\ | |
630 | using assembly code. */\n\ | |
631 | \n\ | |
632 | /* Convert a host long to a network long. */\n\ | |
633 | \n\ | |
634 | static __inline__ unsigned long\n\ | |
635 | htonl (unsigned long __arg)\n\ | |
636 | {\n\ | |
637 | register unsigned long __result;\n\ | |
638 | \n\ | |
639 | __result = (__arg >> 24) & 0x000000ff;\n\ | |
640 | __result |= (__arg >> 8) & 0x0000ff00;\n\ | |
641 | __result |= (__arg << 8) & 0x00ff0000;\n\ | |
642 | __result |= (__arg << 24) & 0xff000000;\n\ | |
643 | return __result;\n\ | |
644 | }\n\ | |
645 | \n\ | |
646 | /* Convert a host short to a network short. */\n\ | |
647 | \n\ | |
648 | static __inline__ unsigned short\n\ | |
649 | htons (unsigned int __arg)\n\ | |
650 | {\n\ | |
651 | register unsigned short __result;\n\ | |
652 | \n\ | |
653 | __result = (__arg << 8) & 0xff00;\n\ | |
654 | __result |= (__arg >> 8) & 0x00ff;\n\ | |
655 | return __result;\n\ | |
656 | }\n\ | |
657 | \n\ | |
658 | #else /* must be a big-endian machine */\n\ | |
659 | \n\ | |
660 | #ifndef __BYTE_ORDER__\n\ | |
661 | #define __BYTE_ORDER__ __BIG_ENDIAN__\n\ | |
662 | #endif\n\ | |
663 | \n\ | |
664 | /* Convert a host long to a network long. */\n\ | |
665 | \n\ | |
666 | static __inline__ unsigned long\n\ | |
667 | htonl (unsigned long __arg)\n\ | |
668 | {\n\ | |
669 | return __arg;\n\ | |
670 | }\n\ | |
671 | \n\ | |
672 | /* Convert a host short to a network short. */\n\ | |
673 | \n\ | |
674 | static __inline__ unsigned short\n\ | |
675 | htons (unsigned int __arg)\n\ | |
676 | {\n\ | |
677 | return __arg;\n\ | |
678 | }\n\ | |
679 | \n\ | |
680 | #endif /* big-endian */\n\ | |
681 | \n\ | |
682 | /* Convert a network long to a host long. */\n\ | |
683 | \n\ | |
684 | static __inline__ unsigned long\n\ | |
685 | ntohl (unsigned long __arg)\n\ | |
686 | {\n\ | |
687 | return htonl (__arg);\n\ | |
688 | }\n\ | |
689 | \n\ | |
690 | /* Convert a network short to a host short. */\n\ | |
691 | \n\ | |
692 | static __inline__ unsigned short\n\ | |
693 | ntohs (unsigned int __arg)\n\ | |
694 | {\n\ | |
695 | return htons (__arg);\n\ | |
696 | }\n\ | |
697 | #endif\n", | |
698 | (char*)NULL }; | |
699 | ||
b51207a4 ZW |
700 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
701 | * | |
702 | * Description of Aab_Ultrix_Ansi_Compat fix | |
703 | */ | |
704 | #define AAB_ULTRIX_ANSI_COMPAT_FIXIDX 12 | |
705 | tSCC zAab_Ultrix_Ansi_CompatName[] = | |
3be1fb72 ZW |
706 | "AAB_ultrix_ansi_compat"; |
707 | ||
b51207a4 ZW |
708 | /* |
709 | * File name selection pattern | |
710 | */ | |
711 | tSCC zAab_Ultrix_Ansi_CompatList[] = | |
712 | "|ansi_compat.h|"; | |
713 | /* | |
714 | * Machine/OS name selection pattern | |
715 | */ | |
716 | #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL | |
717 | ||
718 | /* | |
719 | * content selection pattern - do fix if pattern found | |
720 | */ | |
721 | tSCC zAab_Ultrix_Ansi_CompatSelect0[] = | |
722 | "ULTRIX"; | |
723 | ||
724 | #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1 | |
725 | tTestDesc aAab_Ultrix_Ansi_CompatTests[] = { | |
726 | { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, }; | |
727 | ||
728 | /* | |
729 | * Fix Command Arguments for Aab_Ultrix_Ansi_Compat | |
730 | */ | |
731 | const char* apzAab_Ultrix_Ansi_CompatPatch[] = { | |
732 | "/* This file intentionally left blank. */\n", | |
733 | (char*)NULL }; | |
734 | ||
5abc1f74 BK |
735 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
736 | * | |
737 | * Description of Aix_Syswait fix | |
738 | */ | |
b51207a4 | 739 | #define AIX_SYSWAIT_FIXIDX 13 |
06bbab1b | 740 | tSCC zAix_SyswaitName[] = |
3be1fb72 ZW |
741 | "aix_syswait"; |
742 | ||
06bbab1b BK |
743 | /* |
744 | * File name selection pattern | |
745 | */ | |
746 | tSCC zAix_SyswaitList[] = | |
54585825 | 747 | "|sys/wait.h|"; |
06bbab1b BK |
748 | /* |
749 | * Machine/OS name selection pattern | |
750 | */ | |
751 | #define apzAix_SyswaitMachs (const char**)NULL | |
752 | ||
753 | /* | |
be02fa1a | 754 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
755 | */ |
756 | tSCC zAix_SyswaitSelect0[] = | |
88acf854 BK |
757 | "^extern pid_t wait3\\(\\);\n"; |
758 | tSCC zAix_SyswaitSelect1[] = | |
06bbab1b BK |
759 | "bos325,"; |
760 | ||
88acf854 | 761 | #define AIX_SYSWAIT_TEST_CT 2 |
06bbab1b | 762 | tTestDesc aAix_SyswaitTests[] = { |
88acf854 BK |
763 | { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, |
764 | { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, }; | |
06bbab1b BK |
765 | |
766 | /* | |
767 | * Fix Command Arguments for Aix_Syswait | |
768 | */ | |
88acf854 BK |
769 | const char* apzAix_SyswaitPatch[] = { |
770 | "format", | |
771 | "struct rusage;\n\ | |
772 | %0", | |
06bbab1b BK |
773 | (char*)NULL }; |
774 | ||
775 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
776 | * | |
5abc1f74 | 777 | * Description of Aix_Volatile fix |
06bbab1b | 778 | */ |
b51207a4 | 779 | #define AIX_VOLATILE_FIXIDX 14 |
06bbab1b | 780 | tSCC zAix_VolatileName[] = |
3be1fb72 ZW |
781 | "aix_volatile"; |
782 | ||
06bbab1b BK |
783 | /* |
784 | * File name selection pattern | |
785 | */ | |
786 | tSCC zAix_VolatileList[] = | |
54585825 | 787 | "|sys/signal.h|"; |
06bbab1b BK |
788 | /* |
789 | * Machine/OS name selection pattern | |
790 | */ | |
791 | #define apzAix_VolatileMachs (const char**)NULL | |
792 | ||
793 | /* | |
be02fa1a | 794 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
795 | */ |
796 | tSCC zAix_VolatileSelect0[] = | |
797 | "typedef volatile int sig_atomic_t"; | |
798 | ||
799 | #define AIX_VOLATILE_TEST_CT 1 | |
800 | tTestDesc aAix_VolatileTests[] = { | |
5abc1f74 | 801 | { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
802 | |
803 | /* | |
804 | * Fix Command Arguments for Aix_Volatile | |
805 | */ | |
806 | const char* apzAix_VolatilePatch[] = { "sed", | |
be02fa1a | 807 | "-e", "s/typedef volatile int sig_atomic_t/typedef int sig_atomic_t/", |
06bbab1b BK |
808 | (char*)NULL }; |
809 | ||
810 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
811 | * | |
5abc1f74 | 812 | * Description of Alpha_Getopt fix |
06bbab1b | 813 | */ |
b51207a4 | 814 | #define ALPHA_GETOPT_FIXIDX 15 |
06bbab1b | 815 | tSCC zAlpha_GetoptName[] = |
3be1fb72 ZW |
816 | "alpha_getopt"; |
817 | ||
06bbab1b BK |
818 | /* |
819 | * File name selection pattern | |
820 | */ | |
821 | tSCC zAlpha_GetoptList[] = | |
54585825 | 822 | "|stdio.h|stdlib.h|"; |
06bbab1b BK |
823 | /* |
824 | * Machine/OS name selection pattern | |
825 | */ | |
826 | #define apzAlpha_GetoptMachs (const char**)NULL | |
827 | ||
828 | /* | |
be02fa1a | 829 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
830 | */ |
831 | tSCC zAlpha_GetoptSelect0[] = | |
87b6d63a | 832 | "getopt\\(int, char \\*\\[\\], *char \\*\\)"; |
06bbab1b BK |
833 | |
834 | #define ALPHA_GETOPT_TEST_CT 1 | |
835 | tTestDesc aAlpha_GetoptTests[] = { | |
5abc1f74 | 836 | { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
837 | |
838 | /* | |
839 | * Fix Command Arguments for Alpha_Getopt | |
840 | */ | |
841 | const char* apzAlpha_GetoptPatch[] = { "sed", | |
be02fa1a | 842 | "-e", "s/getopt(int, char \\*\\[\\],[ ]*char \\*)/getopt(int, char *const[], const char *)/", |
06bbab1b BK |
843 | (char*)NULL }; |
844 | ||
845 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
846 | * | |
5abc1f74 | 847 | * Description of Alpha_Parens fix |
06bbab1b | 848 | */ |
b51207a4 | 849 | #define ALPHA_PARENS_FIXIDX 16 |
06bbab1b | 850 | tSCC zAlpha_ParensName[] = |
3be1fb72 ZW |
851 | "alpha_parens"; |
852 | ||
06bbab1b BK |
853 | /* |
854 | * File name selection pattern | |
855 | */ | |
856 | tSCC zAlpha_ParensList[] = | |
c329beb0 | 857 | "|sym.h|"; |
06bbab1b BK |
858 | /* |
859 | * Machine/OS name selection pattern | |
860 | */ | |
861 | #define apzAlpha_ParensMachs (const char**)NULL | |
862 | ||
863 | /* | |
be02fa1a | 864 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
865 | */ |
866 | tSCC zAlpha_ParensSelect0[] = | |
867 | "#ifndef\\(__mips64\\)"; | |
868 | ||
869 | #define ALPHA_PARENS_TEST_CT 1 | |
870 | tTestDesc aAlpha_ParensTests[] = { | |
5abc1f74 | 871 | { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
872 | |
873 | /* | |
874 | * Fix Command Arguments for Alpha_Parens | |
875 | */ | |
876 | const char* apzAlpha_ParensPatch[] = { "sed", | |
be02fa1a | 877 | "-e", "s/#ifndef(__mips64)/#ifndef __mips64/", |
06bbab1b BK |
878 | (char*)NULL }; |
879 | ||
880 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
881 | * | |
5abc1f74 | 882 | * Description of Alpha_Sbrk fix |
06bbab1b | 883 | */ |
b51207a4 | 884 | #define ALPHA_SBRK_FIXIDX 17 |
06bbab1b | 885 | tSCC zAlpha_SbrkName[] = |
3be1fb72 ZW |
886 | "alpha_sbrk"; |
887 | ||
06bbab1b BK |
888 | /* |
889 | * File name selection pattern | |
890 | */ | |
891 | tSCC zAlpha_SbrkList[] = | |
c329beb0 | 892 | "|unistd.h|"; |
06bbab1b BK |
893 | /* |
894 | * Machine/OS name selection pattern | |
895 | */ | |
896 | #define apzAlpha_SbrkMachs (const char**)NULL | |
897 | ||
898 | /* | |
be02fa1a | 899 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
900 | */ |
901 | tSCC zAlpha_SbrkSelect0[] = | |
902 | "char[ \t]*\\*[\t ]*sbrk[ \t]*\\("; | |
903 | ||
904 | #define ALPHA_SBRK_TEST_CT 1 | |
905 | tTestDesc aAlpha_SbrkTests[] = { | |
5abc1f74 | 906 | { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
907 | |
908 | /* | |
909 | * Fix Command Arguments for Alpha_Sbrk | |
910 | */ | |
911 | const char* apzAlpha_SbrkPatch[] = { "sed", | |
be02fa1a | 912 | "-e", "s/char\\([ \t]*\\*[\t ]*sbrk[ \t]*(\\)/void\\1/", |
06bbab1b BK |
913 | (char*)NULL }; |
914 | ||
915 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
916 | * | |
5abc1f74 | 917 | * Description of Arm_Norcroft_Hint fix |
06bbab1b | 918 | */ |
b51207a4 | 919 | #define ARM_NORCROFT_HINT_FIXIDX 18 |
06bbab1b | 920 | tSCC zArm_Norcroft_HintName[] = |
3be1fb72 ZW |
921 | "arm_norcroft_hint"; |
922 | ||
06bbab1b BK |
923 | /* |
924 | * File name selection pattern | |
925 | */ | |
926 | tSCC zArm_Norcroft_HintList[] = | |
c329beb0 | 927 | "|X11/Intrinsic.h|"; |
06bbab1b BK |
928 | /* |
929 | * Machine/OS name selection pattern | |
930 | */ | |
931 | #define apzArm_Norcroft_HintMachs (const char**)NULL | |
ef16b5e5 JL |
932 | |
933 | /* | |
934 | * content selection pattern - do fix if pattern found | |
935 | */ | |
936 | tSCC zArm_Norcroft_HintSelect0[] = | |
937 | "___type p_type"; | |
938 | ||
939 | #define ARM_NORCROFT_HINT_TEST_CT 1 | |
ef16b5e5 | 940 | tTestDesc aArm_Norcroft_HintTests[] = { |
5abc1f74 | 941 | { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
942 | |
943 | /* | |
944 | * Fix Command Arguments for Arm_Norcroft_Hint | |
945 | */ | |
946 | const char* apzArm_Norcroft_HintPatch[] = { "sed", | |
be02fa1a | 947 | "-e", "s/___type p_type/p_type/", |
06bbab1b BK |
948 | (char*)NULL }; |
949 | ||
950 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
951 | * | |
5abc1f74 | 952 | * Description of Arm_Wchar fix |
06bbab1b | 953 | */ |
b51207a4 | 954 | #define ARM_WCHAR_FIXIDX 19 |
06bbab1b | 955 | tSCC zArm_WcharName[] = |
3be1fb72 ZW |
956 | "arm_wchar"; |
957 | ||
06bbab1b BK |
958 | /* |
959 | * File name selection pattern | |
960 | */ | |
961 | tSCC zArm_WcharList[] = | |
c329beb0 | 962 | "|stdlib.h|"; |
06bbab1b BK |
963 | /* |
964 | * Machine/OS name selection pattern | |
965 | */ | |
966 | #define apzArm_WcharMachs (const char**)NULL | |
967 | ||
968 | /* | |
be02fa1a | 969 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
970 | */ |
971 | tSCC zArm_WcharSelect0[] = | |
972 | "#[ \t]*define[ \t]*__wchar_t"; | |
973 | ||
974 | #define ARM_WCHAR_TEST_CT 1 | |
975 | tTestDesc aArm_WcharTests[] = { | |
5abc1f74 | 976 | { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
977 | |
978 | /* | |
979 | * Fix Command Arguments for Arm_Wchar | |
980 | */ | |
981 | const char* apzArm_WcharPatch[] = { "sed", | |
be02fa1a BK |
982 | "-e", "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/", |
983 | "-e", "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/", | |
06bbab1b BK |
984 | (char*)NULL }; |
985 | ||
986 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
987 | * | |
5abc1f74 | 988 | * Description of Aux_Asm fix |
06bbab1b | 989 | */ |
b51207a4 | 990 | #define AUX_ASM_FIXIDX 20 |
06bbab1b | 991 | tSCC zAux_AsmName[] = |
3be1fb72 ZW |
992 | "aux_asm"; |
993 | ||
06bbab1b BK |
994 | /* |
995 | * File name selection pattern | |
996 | */ | |
997 | tSCC zAux_AsmList[] = | |
c329beb0 | 998 | "|sys/param.h|"; |
06bbab1b BK |
999 | /* |
1000 | * Machine/OS name selection pattern | |
1001 | */ | |
1002 | #define apzAux_AsmMachs (const char**)NULL | |
1003 | ||
1004 | /* | |
be02fa1a | 1005 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1006 | */ |
1007 | tSCC zAux_AsmSelect0[] = | |
1008 | "#ifndef NOINLINE"; | |
1009 | ||
1010 | #define AUX_ASM_TEST_CT 1 | |
1011 | tTestDesc aAux_AsmTests[] = { | |
5abc1f74 | 1012 | { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
1013 | |
1014 | /* | |
1015 | * Fix Command Arguments for Aux_Asm | |
1016 | */ | |
1017 | const char* apzAux_AsmPatch[] = { "sed", | |
be02fa1a | 1018 | "-e", "s|#ifndef NOINLINE|#if !defined(NOINLINE) \\&\\& !defined(__GNUC__)|", |
06bbab1b BK |
1019 | (char*)NULL }; |
1020 | ||
1021 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1022 | * | |
5abc1f74 | 1023 | * Description of Avoid_Bool fix |
06bbab1b | 1024 | */ |
b51207a4 | 1025 | #define AVOID_BOOL_FIXIDX 21 |
06bbab1b | 1026 | tSCC zAvoid_BoolName[] = |
3be1fb72 ZW |
1027 | "avoid_bool"; |
1028 | ||
06bbab1b BK |
1029 | /* |
1030 | * File name selection pattern | |
1031 | */ | |
1032 | tSCC zAvoid_BoolList[] = | |
c329beb0 | 1033 | "|curses.h|curses_colr/curses.h|term.h|tinfo.h|"; |
06bbab1b BK |
1034 | /* |
1035 | * Machine/OS name selection pattern | |
1036 | */ | |
1037 | #define apzAvoid_BoolMachs (const char**)NULL | |
5c0d5b94 ZW |
1038 | |
1039 | /* | |
1040 | * content selection pattern - do fix if pattern found | |
1041 | */ | |
1042 | tSCC zAvoid_BoolSelect0[] = | |
1043 | "char[ \t]+bool|bool[ \t]+char"; | |
1044 | ||
1045 | /* | |
1046 | * content bypass pattern - skip fix if pattern found | |
1047 | */ | |
1048 | tSCC zAvoid_BoolBypass0[] = | |
1049 | "we must use the C\\+\\+ compiler's type"; | |
1050 | ||
1051 | #define AVOID_BOOL_TEST_CT 2 | |
1052 | tTestDesc aAvoid_BoolTests[] = { | |
1053 | { TT_NEGREP, zAvoid_BoolBypass0, (regex_t*)NULL }, | |
1054 | { TT_EGREP, zAvoid_BoolSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1055 | |
1056 | /* | |
1057 | * Fix Command Arguments for Avoid_Bool | |
1058 | */ | |
1059 | const char* apzAvoid_BoolPatch[] = { "sed", | |
c329beb0 BK |
1060 | "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n\ |
1061 | #ifndef __cplusplus\n", | |
1062 | "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n\ | |
1063 | #endif\n", | |
1064 | "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n\ | |
1065 | #ifndef __cplusplus\n", | |
1066 | "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n\ | |
1067 | #endif\n", | |
1068 | "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\ | |
1069 | #ifndef __cplusplus\n", | |
1070 | "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\ | |
fbc35bc1 JL |
1071 | #endif\n", |
1072 | "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/i\\\n\ | |
1073 | #ifndef __cplusplus\n", | |
1074 | "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/a\\\n\ | |
1075 | #endif\n", | |
1076 | "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/i\\\n\ | |
1077 | #ifndef __cplusplus\n", | |
1078 | "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/a\\\n\ | |
c329beb0 | 1079 | #endif\n", |
06bbab1b BK |
1080 | (char*)NULL }; |
1081 | ||
1082 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1083 | * | |
5abc1f74 | 1084 | * Description of Bad_Struct_Term fix |
06bbab1b | 1085 | */ |
b51207a4 | 1086 | #define BAD_STRUCT_TERM_FIXIDX 22 |
06bbab1b | 1087 | tSCC zBad_Struct_TermName[] = |
3be1fb72 ZW |
1088 | "bad_struct_term"; |
1089 | ||
06bbab1b BK |
1090 | /* |
1091 | * File name selection pattern | |
1092 | */ | |
1093 | tSCC zBad_Struct_TermList[] = | |
c329beb0 | 1094 | "|curses.h|"; |
06bbab1b BK |
1095 | /* |
1096 | * Machine/OS name selection pattern | |
1097 | */ | |
1098 | #define apzBad_Struct_TermMachs (const char**)NULL | |
1099 | ||
1100 | /* | |
be02fa1a | 1101 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1102 | */ |
1103 | tSCC zBad_Struct_TermSelect0[] = | |
1104 | "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;"; | |
1105 | ||
1106 | #define BAD_STRUCT_TERM_TEST_CT 1 | |
1107 | tTestDesc aBad_Struct_TermTests[] = { | |
5abc1f74 | 1108 | { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
1109 | |
1110 | /* | |
1111 | * Fix Command Arguments for Bad_Struct_Term | |
1112 | */ | |
1113 | const char* apzBad_Struct_TermPatch[] = { "sed", | |
be02fa1a | 1114 | "-e", "s/^[ \t]*typedef[ \t][ \t]*\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/", |
06bbab1b BK |
1115 | (char*)NULL }; |
1116 | ||
1117 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1118 | * | |
5abc1f74 | 1119 | * Description of Badquote fix |
06bbab1b | 1120 | */ |
b51207a4 | 1121 | #define BADQUOTE_FIXIDX 23 |
06bbab1b | 1122 | tSCC zBadquoteName[] = |
3be1fb72 ZW |
1123 | "badquote"; |
1124 | ||
06bbab1b BK |
1125 | /* |
1126 | * File name selection pattern | |
1127 | */ | |
1128 | tSCC zBadquoteList[] = | |
c329beb0 | 1129 | "|sundev/vuid_event.h|"; |
06bbab1b BK |
1130 | /* |
1131 | * Machine/OS name selection pattern | |
1132 | */ | |
1133 | #define apzBadquoteMachs (const char**)NULL | |
1134 | #define BADQUOTE_TEST_CT 0 | |
1135 | #define aBadquoteTests (tTestDesc*)NULL | |
1136 | ||
1137 | /* | |
1138 | * Fix Command Arguments for Badquote | |
1139 | */ | |
1140 | const char* apzBadquotePatch[] = { "sed", | |
be02fa1a | 1141 | "-e", "s/doesn't/does not/", |
06bbab1b BK |
1142 | (char*)NULL }; |
1143 | ||
1144 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1145 | * | |
5abc1f74 | 1146 | * Description of Bad_Lval fix |
06bbab1b | 1147 | */ |
b51207a4 | 1148 | #define BAD_LVAL_FIXIDX 24 |
06bbab1b | 1149 | tSCC zBad_LvalName[] = |
3be1fb72 ZW |
1150 | "bad_lval"; |
1151 | ||
06bbab1b BK |
1152 | /* |
1153 | * File name selection pattern | |
1154 | */ | |
1155 | tSCC zBad_LvalList[] = | |
c329beb0 | 1156 | "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|"; |
06bbab1b BK |
1157 | /* |
1158 | * Machine/OS name selection pattern | |
1159 | */ | |
1160 | #define apzBad_LvalMachs (const char**)NULL | |
8aeb3b0e BK |
1161 | |
1162 | /* | |
1163 | * content selection pattern - do fix if pattern found | |
1164 | */ | |
1165 | tSCC zBad_LvalSelect0[] = | |
87b6d63a | 1166 | "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix"; |
8aeb3b0e BK |
1167 | |
1168 | #define BAD_LVAL_TEST_CT 1 | |
8aeb3b0e BK |
1169 | tTestDesc aBad_LvalTests[] = { |
1170 | { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1171 | |
1172 | /* | |
1173 | * Fix Command Arguments for Bad_Lval | |
1174 | */ | |
1175 | const char* apzBad_LvalPatch[] = { "sed", | |
87b6d63a | 1176 | "-e", "s/^[ \t]*#[ \t]*define[ \t]+\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/", |
06bbab1b BK |
1177 | (char*)NULL }; |
1178 | ||
1179 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1180 | * | |
5abc1f74 | 1181 | * Description of Broken_Assert_Stdio fix |
06bbab1b | 1182 | */ |
b51207a4 | 1183 | #define BROKEN_ASSERT_STDIO_FIXIDX 25 |
06bbab1b | 1184 | tSCC zBroken_Assert_StdioName[] = |
3be1fb72 ZW |
1185 | "broken_assert_stdio"; |
1186 | ||
06bbab1b BK |
1187 | /* |
1188 | * File name selection pattern | |
1189 | */ | |
1190 | tSCC zBroken_Assert_StdioList[] = | |
c329beb0 | 1191 | "|assert.h|"; |
06bbab1b BK |
1192 | /* |
1193 | * Machine/OS name selection pattern | |
1194 | */ | |
1195 | #define apzBroken_Assert_StdioMachs (const char**)NULL | |
1196 | ||
1197 | /* | |
be02fa1a | 1198 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1199 | */ |
1200 | tSCC zBroken_Assert_StdioSelect0[] = | |
1201 | "stderr"; | |
1202 | ||
1203 | /* | |
be02fa1a | 1204 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
1205 | */ |
1206 | tSCC zBroken_Assert_StdioBypass0[] = | |
87b6d63a | 1207 | "include.*stdio\\.h"; |
06bbab1b BK |
1208 | |
1209 | #define BROKEN_ASSERT_STDIO_TEST_CT 2 | |
1210 | tTestDesc aBroken_Assert_StdioTests[] = { | |
5abc1f74 BK |
1211 | { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL }, |
1212 | { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1213 | |
1214 | /* | |
1215 | * Fix Command Arguments for Broken_Assert_Stdio | |
1216 | */ | |
1217 | const char* apzBroken_Assert_StdioPatch[] = { "sed", | |
c329beb0 BK |
1218 | "-e", "1i\\\n\ |
1219 | #include <stdio.h>\n", | |
06bbab1b BK |
1220 | (char*)NULL }; |
1221 | ||
1222 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1223 | * | |
5abc1f74 | 1224 | * Description of Broken_Assert_Stdlib fix |
06bbab1b | 1225 | */ |
b51207a4 | 1226 | #define BROKEN_ASSERT_STDLIB_FIXIDX 26 |
06bbab1b | 1227 | tSCC zBroken_Assert_StdlibName[] = |
3be1fb72 ZW |
1228 | "broken_assert_stdlib"; |
1229 | ||
06bbab1b BK |
1230 | /* |
1231 | * File name selection pattern | |
1232 | */ | |
1233 | tSCC zBroken_Assert_StdlibList[] = | |
c329beb0 | 1234 | "|assert.h|"; |
06bbab1b BK |
1235 | /* |
1236 | * Machine/OS name selection pattern | |
1237 | */ | |
1238 | #define apzBroken_Assert_StdlibMachs (const char**)NULL | |
1239 | ||
1240 | /* | |
be02fa1a | 1241 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1242 | */ |
1243 | tSCC zBroken_Assert_StdlibSelect0[] = | |
1244 | "exit *\\(|abort *\\("; | |
1245 | ||
1246 | /* | |
be02fa1a | 1247 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
1248 | */ |
1249 | tSCC zBroken_Assert_StdlibBypass0[] = | |
87b6d63a | 1250 | "include.*stdlib\\.h"; |
06bbab1b BK |
1251 | |
1252 | #define BROKEN_ASSERT_STDLIB_TEST_CT 2 | |
1253 | tTestDesc aBroken_Assert_StdlibTests[] = { | |
5abc1f74 BK |
1254 | { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL }, |
1255 | { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1256 | |
1257 | /* | |
1258 | * Fix Command Arguments for Broken_Assert_Stdlib | |
1259 | */ | |
1260 | const char* apzBroken_Assert_StdlibPatch[] = { "sed", | |
c329beb0 BK |
1261 | "-e", "1i\\\n\ |
1262 | #ifdef __cplusplus\\\n\ | |
1263 | #include <stdlib.h>\\\n\ | |
88acf854 | 1264 | #endif /* BROKEN_ASSERT_STDLIB_CHECK fix stamp */\n", |
06bbab1b BK |
1265 | (char*)NULL }; |
1266 | ||
72b9c7fb BK |
1267 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1268 | * | |
1269 | * Description of Broken_Cabs fix | |
1270 | */ | |
1271 | #define BROKEN_CABS_FIXIDX 27 | |
1272 | tSCC zBroken_CabsName[] = | |
1273 | "broken_cabs"; | |
1274 | ||
1275 | /* | |
1276 | * File name selection pattern | |
1277 | */ | |
1278 | tSCC zBroken_CabsList[] = | |
1279 | "|math.h|"; | |
1280 | /* | |
1281 | * Machine/OS name selection pattern | |
1282 | */ | |
1283 | #define apzBroken_CabsMachs (const char**)NULL | |
1284 | ||
1285 | /* | |
1286 | * content selection pattern - do fix if pattern found | |
1287 | */ | |
1288 | tSCC zBroken_CabsSelect0[] = | |
1289 | "^extern double cabs"; | |
1290 | ||
1291 | #define BROKEN_CABS_TEST_CT 1 | |
1292 | tTestDesc aBroken_CabsTests[] = { | |
1293 | { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, }; | |
1294 | ||
1295 | /* | |
1296 | * Fix Command Arguments for Broken_Cabs | |
1297 | */ | |
1298 | const char* apzBroken_CabsPatch[] = { "sed", | |
1299 | "-e", "/^extern double cabs();/d", | |
1300 | "-e", "/^extern double cabs(struct dbl_hypot);/d", | |
1301 | (char*)NULL }; | |
1302 | ||
48bd9529 BK |
1303 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1304 | * | |
5abc1f74 | 1305 | * Description of Dec_Intern_Asm fix |
48bd9529 | 1306 | */ |
72b9c7fb | 1307 | #define DEC_INTERN_ASM_FIXIDX 28 |
48bd9529 | 1308 | tSCC zDec_Intern_AsmName[] = |
3be1fb72 ZW |
1309 | "dec_intern_asm"; |
1310 | ||
48bd9529 BK |
1311 | /* |
1312 | * File name selection pattern | |
1313 | */ | |
1314 | tSCC zDec_Intern_AsmList[] = | |
c329beb0 | 1315 | "|c_asm.h|"; |
48bd9529 BK |
1316 | /* |
1317 | * Machine/OS name selection pattern | |
1318 | */ | |
1319 | #define apzDec_Intern_AsmMachs (const char**)NULL | |
1320 | #define DEC_INTERN_ASM_TEST_CT 0 | |
1321 | #define aDec_Intern_AsmTests (tTestDesc*)NULL | |
1322 | ||
1323 | /* | |
1324 | * Fix Command Arguments for Dec_Intern_Asm | |
1325 | */ | |
1326 | const char* apzDec_Intern_AsmPatch[] = { "sed", | |
c329beb0 BK |
1327 | "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\ |
1328 | #ifdef __DECC\n", | |
1329 | "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ | |
1330 | #endif\n", | |
48bd9529 BK |
1331 | (char*)NULL }; |
1332 | ||
06bbab1b BK |
1333 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1334 | * | |
5abc1f74 | 1335 | * Description of Ecd_Cursor fix |
06bbab1b | 1336 | */ |
72b9c7fb | 1337 | #define ECD_CURSOR_FIXIDX 29 |
06bbab1b | 1338 | tSCC zEcd_CursorName[] = |
3be1fb72 ZW |
1339 | "ecd_cursor"; |
1340 | ||
06bbab1b BK |
1341 | /* |
1342 | * File name selection pattern | |
1343 | */ | |
1344 | tSCC zEcd_CursorList[] = | |
c329beb0 | 1345 | "|sunwindow/win_lock.h|sunwindow/win_cursor.h|"; |
06bbab1b BK |
1346 | /* |
1347 | * Machine/OS name selection pattern | |
1348 | */ | |
1349 | #define apzEcd_CursorMachs (const char**)NULL | |
1350 | #define ECD_CURSOR_TEST_CT 0 | |
1351 | #define aEcd_CursorTests (tTestDesc*)NULL | |
1352 | ||
1353 | /* | |
1354 | * Fix Command Arguments for Ecd_Cursor | |
1355 | */ | |
1356 | const char* apzEcd_CursorPatch[] = { "sed", | |
be02fa1a | 1357 | "-e", "s/ecd.cursor/ecd_cursor/", |
06bbab1b BK |
1358 | (char*)NULL }; |
1359 | ||
06bbab1b BK |
1360 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1361 | * | |
5abc1f74 | 1362 | * Description of Hp_Inline fix |
06bbab1b | 1363 | */ |
72b9c7fb | 1364 | #define HP_INLINE_FIXIDX 30 |
06bbab1b | 1365 | tSCC zHp_InlineName[] = |
3be1fb72 ZW |
1366 | "hp_inline"; |
1367 | ||
06bbab1b BK |
1368 | /* |
1369 | * File name selection pattern | |
1370 | */ | |
1371 | tSCC zHp_InlineList[] = | |
c329beb0 | 1372 | "|sys/spinlock.h|"; |
06bbab1b BK |
1373 | /* |
1374 | * Machine/OS name selection pattern | |
1375 | */ | |
1376 | #define apzHp_InlineMachs (const char**)NULL | |
1377 | ||
1378 | /* | |
be02fa1a | 1379 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1380 | */ |
1381 | tSCC zHp_InlineSelect0[] = | |
1382 | "include.*\"\\.\\./machine/"; | |
1383 | ||
1384 | #define HP_INLINE_TEST_CT 1 | |
1385 | tTestDesc aHp_InlineTests[] = { | |
5abc1f74 | 1386 | { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
1387 | |
1388 | /* | |
1389 | * Fix Command Arguments for Hp_Inline | |
1390 | */ | |
1391 | const char* apzHp_InlinePatch[] = { "sed", | |
be02fa1a BK |
1392 | "-e", "s,\"../machine/inline.h\",<machine/inline.h>,", |
1393 | "-e", "s,\"../machine/psl.h\",<machine/psl.h>,", | |
06bbab1b BK |
1394 | (char*)NULL }; |
1395 | ||
1396 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1397 | * | |
5abc1f74 | 1398 | * Description of Hp_Sysfile fix |
06bbab1b | 1399 | */ |
72b9c7fb | 1400 | #define HP_SYSFILE_FIXIDX 31 |
06bbab1b | 1401 | tSCC zHp_SysfileName[] = |
3be1fb72 ZW |
1402 | "hp_sysfile"; |
1403 | ||
06bbab1b BK |
1404 | /* |
1405 | * File name selection pattern | |
1406 | */ | |
1407 | tSCC zHp_SysfileList[] = | |
c329beb0 | 1408 | "|sys/file.h|"; |
06bbab1b BK |
1409 | /* |
1410 | * Machine/OS name selection pattern | |
1411 | */ | |
1412 | #define apzHp_SysfileMachs (const char**)NULL | |
1413 | ||
1414 | /* | |
be02fa1a | 1415 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1416 | */ |
1417 | tSCC zHp_SysfileSelect0[] = | |
1418 | "HPUX_SOURCE"; | |
1419 | ||
1420 | #define HP_SYSFILE_TEST_CT 1 | |
1421 | tTestDesc aHp_SysfileTests[] = { | |
5abc1f74 | 1422 | { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
1423 | |
1424 | /* | |
1425 | * Fix Command Arguments for Hp_Sysfile | |
1426 | */ | |
1427 | const char* apzHp_SysfilePatch[] = { "sed", | |
78a0d70c | 1428 | "-e", "s/(\\.\\.\\.)/(struct file *, ...)/", |
06bbab1b BK |
1429 | (char*)NULL }; |
1430 | ||
1431 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1432 | * | |
5abc1f74 | 1433 | * Description of Cxx_Unready fix |
06bbab1b | 1434 | */ |
72b9c7fb | 1435 | #define CXX_UNREADY_FIXIDX 32 |
48bd9529 | 1436 | tSCC zCxx_UnreadyName[] = |
3be1fb72 ZW |
1437 | "cxx_unready"; |
1438 | ||
06bbab1b BK |
1439 | /* |
1440 | * File name selection pattern | |
1441 | */ | |
48bd9529 | 1442 | tSCC zCxx_UnreadyList[] = |
c329beb0 | 1443 | "|sys/mman.h|rpc/types.h|"; |
06bbab1b BK |
1444 | /* |
1445 | * Machine/OS name selection pattern | |
1446 | */ | |
48bd9529 | 1447 | #define apzCxx_UnreadyMachs (const char**)NULL |
06bbab1b | 1448 | |
3be1fb72 ZW |
1449 | /* |
1450 | * content selection pattern - do fix if pattern found | |
1451 | */ | |
1452 | tSCC zCxx_UnreadySelect0[] = | |
1453 | "[^#]+malloc.*;"; | |
1454 | ||
06bbab1b | 1455 | /* |
be02fa1a | 1456 | * content bypass pattern - skip fix if pattern found |
06bbab1b | 1457 | */ |
48bd9529 | 1458 | tSCC zCxx_UnreadyBypass0[] = |
06bbab1b BK |
1459 | "\"C\"|__BEGIN_DECLS"; |
1460 | ||
3be1fb72 | 1461 | #define CXX_UNREADY_TEST_CT 2 |
48bd9529 | 1462 | tTestDesc aCxx_UnreadyTests[] = { |
3be1fb72 ZW |
1463 | { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, |
1464 | { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1465 | |
1466 | /* | |
48bd9529 | 1467 | * Fix Command Arguments for Cxx_Unready |
06bbab1b | 1468 | */ |
48bd9529 | 1469 | const char* apzCxx_UnreadyPatch[] = { "sed", |
c329beb0 BK |
1470 | "-e", "1i\\\n\ |
1471 | #ifdef __cplusplus\\\n\ | |
1472 | extern \"C\" {\\\n\ | |
88acf854 | 1473 | #endif /* CXX_UNREADY_CHECK */\\\n\ |
c329beb0 BK |
1474 | \n", |
1475 | "-e", "$a\\\n\ | |
1476 | #ifdef __cplusplus\\\n\ | |
1477 | }\\\n\ | |
88acf854 | 1478 | #endif /* CXX_UNREADY_CHECK */\n", |
06bbab1b BK |
1479 | (char*)NULL }; |
1480 | ||
1481 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1482 | * | |
5abc1f74 | 1483 | * Description of Hpux_Maxint fix |
06bbab1b | 1484 | */ |
72b9c7fb | 1485 | #define HPUX_MAXINT_FIXIDX 33 |
06bbab1b | 1486 | tSCC zHpux_MaxintName[] = |
3be1fb72 ZW |
1487 | "hpux_maxint"; |
1488 | ||
06bbab1b BK |
1489 | /* |
1490 | * File name selection pattern | |
1491 | */ | |
1492 | tSCC zHpux_MaxintList[] = | |
c329beb0 | 1493 | "|sys/param.h|"; |
06bbab1b BK |
1494 | /* |
1495 | * Machine/OS name selection pattern | |
1496 | */ | |
1497 | #define apzHpux_MaxintMachs (const char**)NULL | |
87b6d63a BK |
1498 | |
1499 | /* | |
1500 | * content selection pattern - do fix if pattern found | |
1501 | */ | |
1502 | tSCC zHpux_MaxintSelect0[] = | |
1503 | "^#[ \t]*define[ \t]*MAXINT[ \t]"; | |
1504 | ||
1505 | #define HPUX_MAXINT_TEST_CT 1 | |
1506 | tTestDesc aHpux_MaxintTests[] = { | |
1507 | { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1508 | |
1509 | /* | |
1510 | * Fix Command Arguments for Hpux_Maxint | |
1511 | */ | |
1512 | const char* apzHpux_MaxintPatch[] = { "sed", | |
c329beb0 BK |
1513 | "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\ |
1514 | #ifndef MAXINT\n", | |
1515 | "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\ | |
1516 | #endif\n", | |
06bbab1b BK |
1517 | (char*)NULL }; |
1518 | ||
1519 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1520 | * | |
5abc1f74 | 1521 | * Description of Hpux_Systime fix |
06bbab1b | 1522 | */ |
72b9c7fb | 1523 | #define HPUX_SYSTIME_FIXIDX 34 |
06bbab1b | 1524 | tSCC zHpux_SystimeName[] = |
3be1fb72 ZW |
1525 | "hpux_systime"; |
1526 | ||
06bbab1b BK |
1527 | /* |
1528 | * File name selection pattern | |
1529 | */ | |
1530 | tSCC zHpux_SystimeList[] = | |
c329beb0 | 1531 | "|sys/time.h|"; |
06bbab1b BK |
1532 | /* |
1533 | * Machine/OS name selection pattern | |
1534 | */ | |
1535 | #define apzHpux_SystimeMachs (const char**)NULL | |
1536 | ||
1537 | /* | |
be02fa1a | 1538 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1539 | */ |
1540 | tSCC zHpux_SystimeSelect0[] = | |
1541 | "^extern struct sigevent;"; | |
1542 | ||
1543 | #define HPUX_SYSTIME_TEST_CT 1 | |
1544 | tTestDesc aHpux_SystimeTests[] = { | |
5abc1f74 | 1545 | { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
1546 | |
1547 | /* | |
1548 | * Fix Command Arguments for Hpux_Systime | |
1549 | */ | |
1550 | const char* apzHpux_SystimePatch[] = { "sed", | |
be02fa1a | 1551 | "-e", "s/^extern struct sigevent;/struct sigevent;/", |
06bbab1b BK |
1552 | (char*)NULL }; |
1553 | ||
d7eb5a45 ZW |
1554 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1555 | * | |
1556 | * Description of Hpux8_Bogus_Inlines fix | |
1557 | */ | |
72b9c7fb | 1558 | #define HPUX8_BOGUS_INLINES_FIXIDX 35 |
d7eb5a45 | 1559 | tSCC zHpux8_Bogus_InlinesName[] = |
3be1fb72 ZW |
1560 | "hpux8_bogus_inlines"; |
1561 | ||
d7eb5a45 ZW |
1562 | /* |
1563 | * File name selection pattern | |
1564 | */ | |
1565 | tSCC zHpux8_Bogus_InlinesList[] = | |
1566 | "|math.h|"; | |
1567 | /* | |
1568 | * Machine/OS name selection pattern | |
1569 | */ | |
1570 | #define apzHpux8_Bogus_InlinesMachs (const char**)NULL | |
1571 | ||
1572 | /* | |
1573 | * content selection pattern - do fix if pattern found | |
1574 | */ | |
1575 | tSCC zHpux8_Bogus_InlinesSelect0[] = | |
1576 | "inline"; | |
1577 | ||
f4305c31 | 1578 | #define HPUX8_BOGUS_INLINES_TEST_CT 1 |
d7eb5a45 ZW |
1579 | tTestDesc aHpux8_Bogus_InlinesTests[] = { |
1580 | { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; | |
1581 | ||
1582 | /* | |
1583 | * Fix Command Arguments for Hpux8_Bogus_Inlines | |
1584 | */ | |
1585 | const char* apzHpux8_Bogus_InlinesPatch[] = { "sed", | |
1586 | "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@", | |
1587 | "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@", | |
1588 | "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@", | |
1589 | "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@", | |
1590 | (char*)NULL }; | |
1591 | ||
abf7cec7 GRK |
1592 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1593 | * | |
1594 | * Description of Hpux11_Uint32_C fix | |
1595 | */ | |
72b9c7fb | 1596 | #define HPUX11_UINT32_C_FIXIDX 36 |
abf7cec7 | 1597 | tSCC zHpux11_Uint32_CName[] = |
3be1fb72 ZW |
1598 | "hpux11_uint32_c"; |
1599 | ||
abf7cec7 GRK |
1600 | /* |
1601 | * File name selection pattern | |
1602 | */ | |
1603 | tSCC zHpux11_Uint32_CList[] = | |
1604 | "|inttypes.h|"; | |
1605 | /* | |
1606 | * Machine/OS name selection pattern | |
1607 | */ | |
1608 | #define apzHpux11_Uint32_CMachs (const char**)NULL | |
1609 | ||
1610 | /* | |
1611 | * content selection pattern - do fix if pattern found | |
1612 | */ | |
1613 | tSCC zHpux11_Uint32_CSelect0[] = | |
1614 | "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)"; | |
1615 | ||
1616 | #define HPUX11_UINT32_C_TEST_CT 1 | |
abf7cec7 GRK |
1617 | tTestDesc aHpux11_Uint32_CTests[] = { |
1618 | { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, }; | |
1619 | ||
1620 | /* | |
1621 | * Fix Command Arguments for Hpux11_Uint32_C | |
1622 | */ | |
1623 | const char* apzHpux11_Uint32_CPatch[] = { "sed", | |
1624 | "-e", "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/", | |
1625 | (char*)NULL }; | |
1626 | ||
06bbab1b BK |
1627 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1628 | * | |
b51207a4 | 1629 | * Description of Isc_Omits_With_Stdc fix |
06bbab1b | 1630 | */ |
72b9c7fb | 1631 | #define ISC_OMITS_WITH_STDC_FIXIDX 37 |
b51207a4 | 1632 | tSCC zIsc_Omits_With_StdcName[] = |
3be1fb72 ZW |
1633 | "isc_omits_with_stdc"; |
1634 | ||
06bbab1b BK |
1635 | /* |
1636 | * File name selection pattern | |
1637 | */ | |
b51207a4 | 1638 | tSCC zIsc_Omits_With_StdcList[] = |
c329beb0 | 1639 | "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|"; |
06bbab1b BK |
1640 | /* |
1641 | * Machine/OS name selection pattern | |
1642 | */ | |
b51207a4 | 1643 | #define apzIsc_Omits_With_StdcMachs (const char**)NULL |
06bbab1b BK |
1644 | |
1645 | /* | |
b51207a4 | 1646 | * content selection pattern - do fix if pattern found |
06bbab1b | 1647 | */ |
b51207a4 | 1648 | tSCC zIsc_Omits_With_StdcSelect0[] = |
88acf854 | 1649 | "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)"; |
06bbab1b | 1650 | |
b51207a4 ZW |
1651 | #define ISC_OMITS_WITH_STDC_TEST_CT 1 |
1652 | tTestDesc aIsc_Omits_With_StdcTests[] = { | |
1653 | { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1654 | |
1655 | /* | |
b51207a4 | 1656 | * Fix Command Arguments for Isc_Omits_With_Stdc |
06bbab1b | 1657 | */ |
b51207a4 | 1658 | const char* apzIsc_Omits_With_StdcPatch[] = { "sed", |
be02fa1a | 1659 | "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/", |
06bbab1b BK |
1660 | (char*)NULL }; |
1661 | ||
5c0d5b94 ZW |
1662 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1663 | * | |
88acf854 | 1664 | * Description of Io_Quotes_Use fix |
5c0d5b94 | 1665 | */ |
88acf854 BK |
1666 | #define IO_QUOTES_USE_FIXIDX 38 |
1667 | tSCC zIo_Quotes_UseName[] = | |
1668 | "io_quotes_use"; | |
3be1fb72 | 1669 | |
5c0d5b94 ZW |
1670 | /* |
1671 | * File name selection pattern | |
1672 | */ | |
88acf854 | 1673 | #define zIo_Quotes_UseList (char*)NULL |
5c0d5b94 ZW |
1674 | /* |
1675 | * Machine/OS name selection pattern | |
1676 | */ | |
88acf854 | 1677 | #define apzIo_Quotes_UseMachs (const char**)NULL |
5c0d5b94 ZW |
1678 | |
1679 | /* | |
1680 | * content selection pattern - do fix if pattern found | |
1681 | */ | |
88acf854 | 1682 | tSCC zIo_Quotes_UseSelect0[] = |
5c0d5b94 ZW |
1683 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']"; |
1684 | ||
88acf854 BK |
1685 | #define IO_QUOTES_USE_TEST_CT 1 |
1686 | tTestDesc aIo_Quotes_UseTests[] = { | |
1687 | { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, }; | |
5c0d5b94 ZW |
1688 | |
1689 | /* | |
88acf854 | 1690 | * Fix Command Arguments for Io_Quotes_Use |
5c0d5b94 | 1691 | */ |
88acf854 | 1692 | const char* apzIo_Quotes_UsePatch[] = { |
4c6d912f ZW |
1693 | "char_macro_use", |
1694 | "IO", | |
5c0d5b94 ZW |
1695 | (char*)NULL }; |
1696 | ||
06bbab1b BK |
1697 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1698 | * | |
88acf854 | 1699 | * Description of Io_Quotes_Def fix |
06bbab1b | 1700 | */ |
88acf854 BK |
1701 | #define IO_QUOTES_DEF_FIXIDX 39 |
1702 | tSCC zIo_Quotes_DefName[] = | |
1703 | "io_quotes_def"; | |
3be1fb72 | 1704 | |
06bbab1b BK |
1705 | /* |
1706 | * File name selection pattern | |
1707 | */ | |
88acf854 | 1708 | #define zIo_Quotes_DefList (char*)NULL |
06bbab1b BK |
1709 | /* |
1710 | * Machine/OS name selection pattern | |
1711 | */ | |
88acf854 | 1712 | #define apzIo_Quotes_DefMachs (const char**)NULL |
06bbab1b BK |
1713 | |
1714 | /* | |
be02fa1a | 1715 | * content selection pattern - do fix if pattern found |
06bbab1b | 1716 | */ |
88acf854 | 1717 | tSCC zIo_Quotes_DefSelect0[] = |
5c0d5b94 | 1718 | "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\(([a-zA-Z]).*'\\1'"; |
06bbab1b | 1719 | |
88acf854 BK |
1720 | #define IO_QUOTES_DEF_TEST_CT 1 |
1721 | tTestDesc aIo_Quotes_DefTests[] = { | |
1722 | { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1723 | |
1724 | /* | |
88acf854 | 1725 | * Fix Command Arguments for Io_Quotes_Def |
06bbab1b | 1726 | */ |
88acf854 | 1727 | const char* apzIo_Quotes_DefPatch[] = { |
4c6d912f ZW |
1728 | "char_macro_def", |
1729 | "IO", | |
5c0d5b94 ZW |
1730 | (char*)NULL }; |
1731 | ||
1732 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1733 | * | |
88acf854 | 1734 | * Description of Ctrl_Quotes_Use fix |
5c0d5b94 | 1735 | */ |
88acf854 BK |
1736 | #define CTRL_QUOTES_USE_FIXIDX 40 |
1737 | tSCC zCtrl_Quotes_UseName[] = | |
1738 | "ctrl_quotes_use"; | |
3be1fb72 | 1739 | |
5c0d5b94 ZW |
1740 | /* |
1741 | * File name selection pattern | |
1742 | */ | |
88acf854 | 1743 | #define zCtrl_Quotes_UseList (char*)NULL |
5c0d5b94 ZW |
1744 | /* |
1745 | * Machine/OS name selection pattern | |
1746 | */ | |
88acf854 | 1747 | #define apzCtrl_Quotes_UseMachs (const char**)NULL |
5c0d5b94 ZW |
1748 | |
1749 | /* | |
1750 | * content selection pattern - do fix if pattern found | |
1751 | */ | |
88acf854 | 1752 | tSCC zCtrl_Quotes_UseSelect0[] = |
5c0d5b94 ZW |
1753 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']"; |
1754 | ||
88acf854 BK |
1755 | #define CTRL_QUOTES_USE_TEST_CT 1 |
1756 | tTestDesc aCtrl_Quotes_UseTests[] = { | |
1757 | { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, }; | |
5c0d5b94 ZW |
1758 | |
1759 | /* | |
88acf854 | 1760 | * Fix Command Arguments for Ctrl_Quotes_Use |
5c0d5b94 | 1761 | */ |
88acf854 | 1762 | const char* apzCtrl_Quotes_UsePatch[] = { |
4c6d912f ZW |
1763 | "char_macro_use", |
1764 | "CTRL", | |
06bbab1b BK |
1765 | (char*)NULL }; |
1766 | ||
1767 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1768 | * | |
88acf854 | 1769 | * Description of Ctrl_Quotes_Def fix |
06bbab1b | 1770 | */ |
88acf854 BK |
1771 | #define CTRL_QUOTES_DEF_FIXIDX 41 |
1772 | tSCC zCtrl_Quotes_DefName[] = | |
1773 | "ctrl_quotes_def"; | |
3be1fb72 | 1774 | |
06bbab1b BK |
1775 | /* |
1776 | * File name selection pattern | |
1777 | */ | |
88acf854 | 1778 | #define zCtrl_Quotes_DefList (char*)NULL |
06bbab1b BK |
1779 | /* |
1780 | * Machine/OS name selection pattern | |
1781 | */ | |
88acf854 | 1782 | #define apzCtrl_Quotes_DefMachs (const char**)NULL |
06bbab1b BK |
1783 | |
1784 | /* | |
be02fa1a | 1785 | * content selection pattern - do fix if pattern found |
06bbab1b | 1786 | */ |
88acf854 | 1787 | tSCC zCtrl_Quotes_DefSelect0[] = |
5c0d5b94 | 1788 | "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'"; |
06bbab1b | 1789 | |
88acf854 BK |
1790 | #define CTRL_QUOTES_DEF_TEST_CT 1 |
1791 | tTestDesc aCtrl_Quotes_DefTests[] = { | |
1792 | { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1793 | |
1794 | /* | |
88acf854 | 1795 | * Fix Command Arguments for Ctrl_Quotes_Def |
06bbab1b | 1796 | */ |
88acf854 | 1797 | const char* apzCtrl_Quotes_DefPatch[] = { |
4c6d912f ZW |
1798 | "char_macro_def", |
1799 | "CTRL", | |
06bbab1b BK |
1800 | (char*)NULL }; |
1801 | ||
1802 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1803 | * | |
5abc1f74 | 1804 | * Description of Ip_Missing_Semi fix |
06bbab1b | 1805 | */ |
72b9c7fb | 1806 | #define IP_MISSING_SEMI_FIXIDX 42 |
06bbab1b | 1807 | tSCC zIp_Missing_SemiName[] = |
3be1fb72 ZW |
1808 | "ip_missing_semi"; |
1809 | ||
06bbab1b BK |
1810 | /* |
1811 | * File name selection pattern | |
1812 | */ | |
1813 | tSCC zIp_Missing_SemiList[] = | |
c329beb0 | 1814 | "|netinet/ip.h|"; |
06bbab1b BK |
1815 | /* |
1816 | * Machine/OS name selection pattern | |
1817 | */ | |
1818 | #define apzIp_Missing_SemiMachs (const char**)NULL | |
d7eb5a45 ZW |
1819 | |
1820 | /* | |
1821 | * content selection pattern - do fix if pattern found | |
1822 | */ | |
1823 | tSCC zIp_Missing_SemiSelect0[] = | |
1824 | "}$"; | |
1825 | ||
1826 | #define IP_MISSING_SEMI_TEST_CT 1 | |
d7eb5a45 ZW |
1827 | tTestDesc aIp_Missing_SemiTests[] = { |
1828 | { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
1829 | |
1830 | /* | |
1831 | * Fix Command Arguments for Ip_Missing_Semi | |
1832 | */ | |
1833 | const char* apzIp_Missing_SemiPatch[] = { "sed", | |
be02fa1a | 1834 | "-e", "/^struct/,/^};/s/}$/};/", |
06bbab1b BK |
1835 | (char*)NULL }; |
1836 | ||
1837 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1838 | * | |
5abc1f74 | 1839 | * Description of Irix_Multiline_Cmnt fix |
06bbab1b | 1840 | */ |
72b9c7fb | 1841 | #define IRIX_MULTILINE_CMNT_FIXIDX 43 |
06bbab1b | 1842 | tSCC zIrix_Multiline_CmntName[] = |
3be1fb72 ZW |
1843 | "irix_multiline_cmnt"; |
1844 | ||
06bbab1b BK |
1845 | /* |
1846 | * File name selection pattern | |
1847 | */ | |
1848 | tSCC zIrix_Multiline_CmntList[] = | |
c329beb0 | 1849 | "|sys/types.h|"; |
06bbab1b BK |
1850 | /* |
1851 | * Machine/OS name selection pattern | |
1852 | */ | |
1853 | #define apzIrix_Multiline_CmntMachs (const char**)NULL | |
1854 | #define IRIX_MULTILINE_CMNT_TEST_CT 0 | |
1855 | #define aIrix_Multiline_CmntTests (tTestDesc*)NULL | |
1856 | ||
1857 | /* | |
1858 | * Fix Command Arguments for Irix_Multiline_Cmnt | |
1859 | */ | |
1860 | const char* apzIrix_Multiline_CmntPatch[] = { "sed", | |
be02fa1a BK |
1861 | "-e", "s@type of the result@type of the result */@", |
1862 | "-e", "s@of the sizeof@/* of the sizeof@", | |
06bbab1b BK |
1863 | (char*)NULL }; |
1864 | ||
1865 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1866 | * | |
5abc1f74 | 1867 | * Description of Irix_Sockaddr fix |
06bbab1b | 1868 | */ |
72b9c7fb | 1869 | #define IRIX_SOCKADDR_FIXIDX 44 |
06bbab1b | 1870 | tSCC zIrix_SockaddrName[] = |
3be1fb72 ZW |
1871 | "irix_sockaddr"; |
1872 | ||
06bbab1b BK |
1873 | /* |
1874 | * File name selection pattern | |
1875 | */ | |
1876 | tSCC zIrix_SockaddrList[] = | |
c329beb0 | 1877 | "|rpc/auth.h|"; |
06bbab1b BK |
1878 | /* |
1879 | * Machine/OS name selection pattern | |
1880 | */ | |
1881 | #define apzIrix_SockaddrMachs (const char**)NULL | |
1882 | ||
1883 | /* | |
be02fa1a | 1884 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1885 | */ |
1886 | tSCC zIrix_SockaddrSelect0[] = | |
1887 | "authdes_create.*struct sockaddr"; | |
1888 | ||
3be1fb72 ZW |
1889 | /* |
1890 | * content bypass pattern - skip fix if pattern found | |
1891 | */ | |
1892 | tSCC zIrix_SockaddrBypass0[] = | |
1893 | "<sys/socket.h>"; | |
1894 | ||
1895 | #define IRIX_SOCKADDR_TEST_CT 2 | |
06bbab1b | 1896 | tTestDesc aIrix_SockaddrTests[] = { |
3be1fb72 | 1897 | { TT_NEGREP, zIrix_SockaddrBypass0, (regex_t*)NULL }, |
5abc1f74 | 1898 | { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
1899 | |
1900 | /* | |
1901 | * Fix Command Arguments for Irix_Sockaddr | |
1902 | */ | |
1903 | const char* apzIrix_SockaddrPatch[] = { "sed", | |
c329beb0 BK |
1904 | "-e", "/authdes_create.*struct sockaddr/i\\\n\ |
1905 | struct sockaddr;\n", | |
06bbab1b BK |
1906 | (char*)NULL }; |
1907 | ||
1908 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1909 | * | |
5abc1f74 | 1910 | * Description of Irix_Struct__File fix |
06bbab1b | 1911 | */ |
72b9c7fb | 1912 | #define IRIX_STRUCT__FILE_FIXIDX 45 |
06bbab1b | 1913 | tSCC zIrix_Struct__FileName[] = |
3be1fb72 ZW |
1914 | "irix_struct__file"; |
1915 | ||
06bbab1b BK |
1916 | /* |
1917 | * File name selection pattern | |
1918 | */ | |
1919 | tSCC zIrix_Struct__FileList[] = | |
c329beb0 | 1920 | "|rpc/xdr.h|"; |
06bbab1b BK |
1921 | /* |
1922 | * Machine/OS name selection pattern | |
1923 | */ | |
1924 | #define apzIrix_Struct__FileMachs (const char**)NULL | |
1925 | #define IRIX_STRUCT__FILE_TEST_CT 0 | |
1926 | #define aIrix_Struct__FileTests (tTestDesc*)NULL | |
1927 | ||
1928 | /* | |
1929 | * Fix Command Arguments for Irix_Struct__File | |
1930 | */ | |
1931 | const char* apzIrix_Struct__FilePatch[] = { "sed", | |
c329beb0 BK |
1932 | "-e", "/xdrstdio_create.*struct __file_s/i\\\n\ |
1933 | struct __file_s;\n", | |
06bbab1b BK |
1934 | (char*)NULL }; |
1935 | ||
1936 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1937 | * | |
5abc1f74 | 1938 | * Description of Irix_Asm_Apostrophe fix |
94cc6036 | 1939 | */ |
72b9c7fb | 1940 | #define IRIX_ASM_APOSTROPHE_FIXIDX 46 |
94cc6036 | 1941 | tSCC zIrix_Asm_ApostropheName[] = |
3be1fb72 ZW |
1942 | "irix_asm_apostrophe"; |
1943 | ||
94cc6036 BK |
1944 | /* |
1945 | * File name selection pattern | |
1946 | */ | |
1947 | tSCC zIrix_Asm_ApostropheList[] = | |
1948 | "|sys/asm.h|"; | |
1949 | /* | |
1950 | * Machine/OS name selection pattern | |
1951 | */ | |
1952 | #define apzIrix_Asm_ApostropheMachs (const char**)NULL | |
1953 | ||
1954 | /* | |
1955 | * content selection pattern - do fix if pattern found | |
1956 | */ | |
1957 | tSCC zIrix_Asm_ApostropheSelect0[] = | |
1958 | "^[ \t]*#.*[Ww]e're"; | |
1959 | ||
1960 | #define IRIX_ASM_APOSTROPHE_TEST_CT 1 | |
94cc6036 | 1961 | tTestDesc aIrix_Asm_ApostropheTests[] = { |
5abc1f74 | 1962 | { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, }; |
94cc6036 BK |
1963 | |
1964 | /* | |
1965 | * Fix Command Arguments for Irix_Asm_Apostrophe | |
1966 | */ | |
1967 | const char* apzIrix_Asm_ApostrophePatch[] = { "sed", | |
1968 | "-e", "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/", | |
1969 | (char*)NULL }; | |
1970 | ||
1971 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1972 | * | |
5abc1f74 | 1973 | * Description of Isc_Fmod fix |
06bbab1b | 1974 | */ |
72b9c7fb | 1975 | #define ISC_FMOD_FIXIDX 47 |
06bbab1b | 1976 | tSCC zIsc_FmodName[] = |
3be1fb72 ZW |
1977 | "isc_fmod"; |
1978 | ||
06bbab1b BK |
1979 | /* |
1980 | * File name selection pattern | |
1981 | */ | |
1982 | tSCC zIsc_FmodList[] = | |
c329beb0 | 1983 | "|math.h|"; |
06bbab1b BK |
1984 | /* |
1985 | * Machine/OS name selection pattern | |
1986 | */ | |
1987 | #define apzIsc_FmodMachs (const char**)NULL | |
1988 | ||
1989 | /* | |
be02fa1a | 1990 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
1991 | */ |
1992 | tSCC zIsc_FmodSelect0[] = | |
1993 | "fmod\\(double\\)"; | |
1994 | ||
1995 | #define ISC_FMOD_TEST_CT 1 | |
1996 | tTestDesc aIsc_FmodTests[] = { | |
5abc1f74 | 1997 | { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
1998 | |
1999 | /* | |
2000 | * Fix Command Arguments for Isc_Fmod | |
2001 | */ | |
2002 | const char* apzIsc_FmodPatch[] = { "sed", | |
be02fa1a | 2003 | "-e", "s/fmod(double)/fmod(double, double)/", |
06bbab1b BK |
2004 | (char*)NULL }; |
2005 | ||
2006 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2007 | * | |
5abc1f74 | 2008 | * Description of Motorola_Nested fix |
06bbab1b | 2009 | */ |
72b9c7fb | 2010 | #define MOTOROLA_NESTED_FIXIDX 48 |
06bbab1b | 2011 | tSCC zMotorola_NestedName[] = |
3be1fb72 ZW |
2012 | "motorola_nested"; |
2013 | ||
06bbab1b BK |
2014 | /* |
2015 | * File name selection pattern | |
2016 | */ | |
2017 | tSCC zMotorola_NestedList[] = | |
c329beb0 | 2018 | "|limits.h|sys/limits.h|"; |
06bbab1b BK |
2019 | /* |
2020 | * Machine/OS name selection pattern | |
2021 | */ | |
48bd9529 BK |
2022 | tSCC* apzMotorola_NestedMachs[] = { |
2023 | "m68k-motorola-sysv*", | |
2024 | (const char*)NULL }; | |
06bbab1b BK |
2025 | #define MOTOROLA_NESTED_TEST_CT 0 |
2026 | #define aMotorola_NestedTests (tTestDesc*)NULL | |
2027 | ||
2028 | /* | |
2029 | * Fix Command Arguments for Motorola_Nested | |
2030 | */ | |
2031 | const char* apzMotorola_NestedPatch[] = { "sed", | |
be02fa1a BK |
2032 | "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@", |
2033 | "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@", | |
06bbab1b BK |
2034 | (char*)NULL }; |
2035 | ||
2036 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2037 | * | |
5abc1f74 | 2038 | * Description of Isc_Sys_Limits fix |
06bbab1b | 2039 | */ |
72b9c7fb | 2040 | #define ISC_SYS_LIMITS_FIXIDX 49 |
06bbab1b | 2041 | tSCC zIsc_Sys_LimitsName[] = |
3be1fb72 ZW |
2042 | "isc_sys_limits"; |
2043 | ||
06bbab1b BK |
2044 | /* |
2045 | * File name selection pattern | |
2046 | */ | |
2047 | tSCC zIsc_Sys_LimitsList[] = | |
c329beb0 | 2048 | "|sys/limits.h|"; |
06bbab1b BK |
2049 | /* |
2050 | * Machine/OS name selection pattern | |
2051 | */ | |
2052 | #define apzIsc_Sys_LimitsMachs (const char**)NULL | |
2053 | ||
2054 | /* | |
be02fa1a | 2055 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2056 | */ |
2057 | tSCC zIsc_Sys_LimitsSelect0[] = | |
2058 | "CHILD_MAX"; | |
2059 | ||
2060 | #define ISC_SYS_LIMITS_TEST_CT 1 | |
2061 | tTestDesc aIsc_Sys_LimitsTests[] = { | |
5abc1f74 | 2062 | { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2063 | |
2064 | /* | |
2065 | * Fix Command Arguments for Isc_Sys_Limits | |
2066 | */ | |
2067 | const char* apzIsc_Sys_LimitsPatch[] = { "sed", | |
be02fa1a BK |
2068 | "-e", "/CHILD_MAX/s,/\\* Max, Max,", |
2069 | "-e", "/OPEN_MAX/s,/\\* Max, Max,", | |
06bbab1b BK |
2070 | (char*)NULL }; |
2071 | ||
2072 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2073 | * | |
5abc1f74 | 2074 | * Description of Kandr_Concat fix |
06bbab1b | 2075 | */ |
72b9c7fb | 2076 | #define KANDR_CONCAT_FIXIDX 50 |
06bbab1b | 2077 | tSCC zKandr_ConcatName[] = |
3be1fb72 ZW |
2078 | "kandr_concat"; |
2079 | ||
06bbab1b BK |
2080 | /* |
2081 | * File name selection pattern | |
2082 | */ | |
2083 | tSCC zKandr_ConcatList[] = | |
c329beb0 | 2084 | "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|"; |
06bbab1b BK |
2085 | /* |
2086 | * Machine/OS name selection pattern | |
2087 | */ | |
2088 | #define apzKandr_ConcatMachs (const char**)NULL | |
2089 | ||
2090 | /* | |
be02fa1a | 2091 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2092 | */ |
2093 | tSCC zKandr_ConcatSelect0[] = | |
2094 | "/\\*\\*/"; | |
2095 | ||
2096 | #define KANDR_CONCAT_TEST_CT 1 | |
2097 | tTestDesc aKandr_ConcatTests[] = { | |
5abc1f74 | 2098 | { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2099 | |
2100 | /* | |
2101 | * Fix Command Arguments for Kandr_Concat | |
2102 | */ | |
2103 | const char* apzKandr_ConcatPatch[] = { "sed", | |
be02fa1a | 2104 | "-e", "s|/\\*\\*/|##|g", |
06bbab1b BK |
2105 | (char*)NULL }; |
2106 | ||
2107 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2108 | * | |
5abc1f74 | 2109 | * Description of Limits_Ifndefs fix |
06bbab1b | 2110 | */ |
72b9c7fb | 2111 | #define LIMITS_IFNDEFS_FIXIDX 51 |
06bbab1b | 2112 | tSCC zLimits_IfndefsName[] = |
3be1fb72 ZW |
2113 | "limits_ifndefs"; |
2114 | ||
06bbab1b BK |
2115 | /* |
2116 | * File name selection pattern | |
2117 | */ | |
2118 | tSCC zLimits_IfndefsList[] = | |
149911d4 | 2119 | "|limits.h|sys/limits.h|"; |
06bbab1b BK |
2120 | /* |
2121 | * Machine/OS name selection pattern | |
2122 | */ | |
2123 | #define apzLimits_IfndefsMachs (const char**)NULL | |
2124 | ||
2125 | /* | |
be02fa1a | 2126 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
2127 | */ |
2128 | tSCC zLimits_IfndefsBypass0[] = | |
2129 | "ifndef[ \t]+FLT_MIN"; | |
2130 | ||
2131 | #define LIMITS_IFNDEFS_TEST_CT 1 | |
2132 | tTestDesc aLimits_IfndefsTests[] = { | |
5abc1f74 | 2133 | { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, }; |
06bbab1b BK |
2134 | |
2135 | /* | |
2136 | * Fix Command Arguments for Limits_Ifndefs | |
2137 | */ | |
2138 | const char* apzLimits_IfndefsPatch[] = { "sed", | |
c329beb0 BK |
2139 | "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\ |
2140 | #ifndef FLT_MIN\n", | |
2141 | "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\ | |
2142 | #endif\n", | |
2143 | "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\ | |
2144 | #ifndef FLT_MAX\n", | |
2145 | "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\ | |
2146 | #endif\n", | |
2147 | "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\ | |
2148 | #ifndef FLT_DIG\n", | |
2149 | "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\ | |
2150 | #endif\n", | |
2151 | "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\ | |
2152 | #ifndef DBL_MIN\n", | |
2153 | "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\ | |
2154 | #endif\n", | |
2155 | "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\ | |
2156 | #ifndef DBL_MAX\n", | |
2157 | "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\ | |
2158 | #endif\n", | |
2159 | "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\ | |
2160 | #ifndef DBL_DIG\n", | |
2161 | "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\ | |
2162 | #endif\n", | |
be02fa1a | 2163 | "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/", |
06bbab1b BK |
2164 | (char*)NULL }; |
2165 | ||
2166 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2167 | * | |
5abc1f74 | 2168 | * Description of Lynx_Void_Int fix |
06bbab1b | 2169 | */ |
72b9c7fb | 2170 | #define LYNX_VOID_INT_FIXIDX 52 |
06bbab1b | 2171 | tSCC zLynx_Void_IntName[] = |
3be1fb72 ZW |
2172 | "lynx_void_int"; |
2173 | ||
06bbab1b BK |
2174 | /* |
2175 | * File name selection pattern | |
2176 | */ | |
2177 | tSCC zLynx_Void_IntList[] = | |
c329beb0 | 2178 | "|curses.h|"; |
06bbab1b BK |
2179 | /* |
2180 | * Machine/OS name selection pattern | |
2181 | */ | |
2182 | #define apzLynx_Void_IntMachs (const char**)NULL | |
2183 | ||
2184 | /* | |
be02fa1a | 2185 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2186 | */ |
2187 | tSCC zLynx_Void_IntSelect0[] = | |
2188 | "#[ \t]*define[ \t]+void[ \t]+int"; | |
2189 | ||
2190 | #define LYNX_VOID_INT_TEST_CT 1 | |
2191 | tTestDesc aLynx_Void_IntTests[] = { | |
5abc1f74 | 2192 | { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2193 | |
2194 | /* | |
2195 | * Fix Command Arguments for Lynx_Void_Int | |
2196 | */ | |
2197 | const char* apzLynx_Void_IntPatch[] = { "sed", | |
be02fa1a | 2198 | "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d", |
06bbab1b BK |
2199 | (char*)NULL }; |
2200 | ||
2201 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2202 | * | |
5abc1f74 | 2203 | * Description of Lynxos_Fcntl_Proto fix |
06bbab1b | 2204 | */ |
72b9c7fb | 2205 | #define LYNXOS_FCNTL_PROTO_FIXIDX 53 |
06bbab1b | 2206 | tSCC zLynxos_Fcntl_ProtoName[] = |
3be1fb72 ZW |
2207 | "lynxos_fcntl_proto"; |
2208 | ||
06bbab1b BK |
2209 | /* |
2210 | * File name selection pattern | |
2211 | */ | |
2212 | tSCC zLynxos_Fcntl_ProtoList[] = | |
c329beb0 | 2213 | "|fcntl.h|"; |
06bbab1b BK |
2214 | /* |
2215 | * Machine/OS name selection pattern | |
2216 | */ | |
2217 | #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL | |
48bd9529 BK |
2218 | |
2219 | /* | |
be02fa1a | 2220 | * content selection pattern - do fix if pattern found |
48bd9529 BK |
2221 | */ |
2222 | tSCC zLynxos_Fcntl_ProtoSelect0[] = | |
2223 | "fcntl.*\\(int, int, int\\)"; | |
2224 | ||
2225 | #define LYNXOS_FCNTL_PROTO_TEST_CT 1 | |
2226 | tTestDesc aLynxos_Fcntl_ProtoTests[] = { | |
5abc1f74 | 2227 | { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2228 | |
2229 | /* | |
2230 | * Fix Command Arguments for Lynxos_Fcntl_Proto | |
2231 | */ | |
2232 | const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed", | |
be02fa1a | 2233 | "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/", |
06bbab1b BK |
2234 | (char*)NULL }; |
2235 | ||
2236 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2237 | * | |
5abc1f74 | 2238 | * Description of M88k_Bad_Hypot_Opt fix |
06bbab1b | 2239 | */ |
72b9c7fb | 2240 | #define M88K_BAD_HYPOT_OPT_FIXIDX 54 |
06bbab1b | 2241 | tSCC zM88k_Bad_Hypot_OptName[] = |
3be1fb72 ZW |
2242 | "m88k_bad_hypot_opt"; |
2243 | ||
06bbab1b BK |
2244 | /* |
2245 | * File name selection pattern | |
2246 | */ | |
2247 | tSCC zM88k_Bad_Hypot_OptList[] = | |
c329beb0 | 2248 | "|math.h|"; |
06bbab1b BK |
2249 | /* |
2250 | * Machine/OS name selection pattern | |
2251 | */ | |
2252 | tSCC* apzM88k_Bad_Hypot_OptMachs[] = { | |
2253 | "m88k-motorola-sysv3*", | |
2254 | (const char*)NULL }; | |
2255 | #define M88K_BAD_HYPOT_OPT_TEST_CT 0 | |
2256 | #define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL | |
2257 | ||
2258 | /* | |
2259 | * Fix Command Arguments for M88k_Bad_Hypot_Opt | |
2260 | */ | |
2261 | const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed", | |
be02fa1a | 2262 | "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/", |
c329beb0 BK |
2263 | "-e", "/^extern double hypot();$/a\\\n\ |
2264 | \\/* Workaround a stupid Motorola optimization if one\\\n\ | |
2265 | of x or y is 0.0 and the other is negative! *\\/\\\n\ | |
2266 | #ifdef __STDC__\\\n\ | |
2267 | static __inline__ double fake_hypot (double x, double y)\\\n\ | |
2268 | #else\\\n\ | |
2269 | static __inline__ double fake_hypot (x, y)\\\n\ | |
2270 | \tdouble x, y;\\\n\ | |
2271 | #endif\\\n\ | |
2272 | {\\\n\ | |
2273 | \treturn fabs (hypot (x, y));\\\n\ | |
2274 | }\\\n\ | |
2275 | #define hypot\tfake_hypot\n", | |
06bbab1b BK |
2276 | (char*)NULL }; |
2277 | ||
2278 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2279 | * | |
5abc1f74 | 2280 | * Description of M88k_Bad_S_If fix |
06bbab1b | 2281 | */ |
72b9c7fb | 2282 | #define M88K_BAD_S_IF_FIXIDX 55 |
06bbab1b | 2283 | tSCC zM88k_Bad_S_IfName[] = |
3be1fb72 ZW |
2284 | "m88k_bad_s_if"; |
2285 | ||
06bbab1b BK |
2286 | /* |
2287 | * File name selection pattern | |
2288 | */ | |
2289 | tSCC zM88k_Bad_S_IfList[] = | |
c329beb0 | 2290 | "|sys/stat.h|"; |
06bbab1b BK |
2291 | /* |
2292 | * Machine/OS name selection pattern | |
2293 | */ | |
2294 | tSCC* apzM88k_Bad_S_IfMachs[] = { | |
2295 | "m88k-*-sysv3*", | |
2296 | (const char*)NULL }; | |
2297 | ||
2298 | /* | |
be02fa1a | 2299 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2300 | */ |
2301 | tSCC zM88k_Bad_S_IfSelect0[] = | |
2302 | "#define[ \t]+S_IS[A-Z]*(m)[ \t]"; | |
2303 | ||
2304 | #define M88K_BAD_S_IF_TEST_CT 1 | |
2305 | tTestDesc aM88k_Bad_S_IfTests[] = { | |
5abc1f74 | 2306 | { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2307 | |
2308 | /* | |
2309 | * Fix Command Arguments for M88k_Bad_S_If | |
2310 | */ | |
2311 | const char* apzM88k_Bad_S_IfPatch[] = { "sed", | |
be02fa1a BK |
2312 | "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(S_IF[A-Z][A-Z][A-Z][A-Z]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/", |
2313 | "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/", | |
06bbab1b BK |
2314 | (char*)NULL }; |
2315 | ||
2316 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2317 | * | |
5abc1f74 | 2318 | * Description of M88k_Multi_Incl fix |
06bbab1b | 2319 | */ |
72b9c7fb | 2320 | #define M88K_MULTI_INCL_FIXIDX 56 |
06bbab1b | 2321 | tSCC zM88k_Multi_InclName[] = |
3be1fb72 ZW |
2322 | "m88k_multi_incl"; |
2323 | ||
06bbab1b BK |
2324 | /* |
2325 | * File name selection pattern | |
2326 | */ | |
2327 | tSCC zM88k_Multi_InclList[] = | |
c329beb0 | 2328 | "|time.h|"; |
06bbab1b BK |
2329 | /* |
2330 | * Machine/OS name selection pattern | |
2331 | */ | |
2332 | tSCC* apzM88k_Multi_InclMachs[] = { | |
2333 | "m88k-tektronix-sysv3*", | |
2334 | (const char*)NULL }; | |
2335 | ||
2336 | /* | |
be02fa1a | 2337 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
2338 | */ |
2339 | tSCC zM88k_Multi_InclBypass0[] = | |
2340 | "#ifndef"; | |
2341 | ||
2342 | #define M88K_MULTI_INCL_TEST_CT 1 | |
2343 | tTestDesc aM88k_Multi_InclTests[] = { | |
5abc1f74 | 2344 | { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, }; |
06bbab1b BK |
2345 | |
2346 | /* | |
2347 | * Fix Command Arguments for M88k_Multi_Incl | |
2348 | */ | |
2349 | const char* apzM88k_Multi_InclPatch[] = { "sh", "-c", | |
c329beb0 BK |
2350 | "echo Fixing $file, to protect against multiple inclusion. >&2\n\ |
2351 | cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\ | |
2352 | echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\ | |
2353 | echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\ | |
2354 | cat\n\ | |
2355 | echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"", | |
06bbab1b BK |
2356 | (char*)NULL }; |
2357 | ||
3be1fb72 ZW |
2358 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2359 | * | |
2360 | * Description of Machine_Ansi_H_Va_List fix | |
2361 | */ | |
72b9c7fb | 2362 | #define MACHINE_ANSI_H_VA_LIST_FIXIDX 57 |
3be1fb72 ZW |
2363 | tSCC zMachine_Ansi_H_Va_ListName[] = |
2364 | "machine_ansi_h_va_list"; | |
2365 | ||
2366 | /* | |
2367 | * File name selection pattern | |
2368 | */ | |
2369 | tSCC zMachine_Ansi_H_Va_ListList[] = | |
2370 | "|machine/ansi.h|"; | |
2371 | /* | |
2372 | * Machine/OS name selection pattern | |
2373 | */ | |
2374 | #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL | |
2375 | ||
2376 | /* | |
2377 | * content selection pattern - do fix if pattern found | |
2378 | */ | |
2379 | tSCC zMachine_Ansi_H_Va_ListSelect0[] = | |
2380 | "_BSD_VA_LIST_"; | |
2381 | ||
2382 | /* | |
2383 | * content bypass pattern - skip fix if pattern found | |
2384 | */ | |
2385 | tSCC zMachine_Ansi_H_Va_ListBypass0[] = | |
2386 | "__builtin_va_list"; | |
2387 | ||
2388 | #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2 | |
2389 | tTestDesc aMachine_Ansi_H_Va_ListTests[] = { | |
2390 | { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL }, | |
2391 | { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, }; | |
2392 | ||
2393 | /* | |
2394 | * Fix Command Arguments for Machine_Ansi_H_Va_List | |
2395 | */ | |
2396 | const char* apzMachine_Ansi_H_Va_ListPatch[] = { "sed", | |
2397 | "-e", "s/\\(_BSD_VA_LIST_[ \t][ \t]*\\).*$/\\1__builtin_va_list/", | |
2398 | (char*)NULL }; | |
2399 | ||
06bbab1b BK |
2400 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2401 | * | |
5abc1f74 | 2402 | * Description of Machine_Name fix |
06bbab1b | 2403 | */ |
72b9c7fb | 2404 | #define MACHINE_NAME_FIXIDX 58 |
06bbab1b | 2405 | tSCC zMachine_NameName[] = |
3be1fb72 ZW |
2406 | "machine_name"; |
2407 | ||
06bbab1b BK |
2408 | /* |
2409 | * File name selection pattern | |
2410 | */ | |
2411 | #define zMachine_NameList (char*)NULL | |
2412 | /* | |
2413 | * Machine/OS name selection pattern | |
2414 | */ | |
2415 | #define apzMachine_NameMachs (const char**)NULL | |
2416 | ||
2417 | /* | |
52c207e2 | 2418 | * perform the C function call test |
06bbab1b | 2419 | */ |
52c207e2 | 2420 | tSCC zMachine_NameFTst0[] = "machine_name"; |
06bbab1b BK |
2421 | |
2422 | #define MACHINE_NAME_TEST_CT 1 | |
2423 | tTestDesc aMachine_NameTests[] = { | |
52c207e2 | 2424 | { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, }; |
06bbab1b BK |
2425 | |
2426 | /* | |
2427 | * Fix Command Arguments for Machine_Name | |
2428 | */ | |
f5b105ca BK |
2429 | const char* apzMachine_NamePatch[] = { |
2430 | "machine_name", | |
06bbab1b BK |
2431 | (char*)NULL }; |
2432 | ||
2433 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2434 | * | |
5abc1f74 | 2435 | * Description of Math_Exception fix |
06bbab1b | 2436 | */ |
72b9c7fb | 2437 | #define MATH_EXCEPTION_FIXIDX 59 |
06bbab1b | 2438 | tSCC zMath_ExceptionName[] = |
3be1fb72 ZW |
2439 | "math_exception"; |
2440 | ||
06bbab1b BK |
2441 | /* |
2442 | * File name selection pattern | |
2443 | */ | |
2444 | tSCC zMath_ExceptionList[] = | |
c329beb0 | 2445 | "|math.h|"; |
06bbab1b BK |
2446 | /* |
2447 | * Machine/OS name selection pattern | |
2448 | */ | |
2449 | #define apzMath_ExceptionMachs (const char**)NULL | |
2450 | ||
2451 | /* | |
be02fa1a | 2452 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2453 | */ |
2454 | tSCC zMath_ExceptionSelect0[] = | |
2455 | "struct exception"; | |
2456 | ||
d7eb5a45 ZW |
2457 | /* |
2458 | * content bypass pattern - skip fix if pattern found | |
2459 | */ | |
2460 | tSCC zMath_ExceptionBypass0[] = | |
5c0d5b94 | 2461 | "We have a problem when using C\\+\\+"; |
d7eb5a45 ZW |
2462 | |
2463 | #define MATH_EXCEPTION_TEST_CT 2 | |
06bbab1b | 2464 | tTestDesc aMath_ExceptionTests[] = { |
d7eb5a45 | 2465 | { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL }, |
5abc1f74 | 2466 | { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2467 | |
2468 | /* | |
2469 | * Fix Command Arguments for Math_Exception | |
2470 | */ | |
2471 | const char* apzMath_ExceptionPatch[] = { "sed", | |
78a0d70c | 2472 | "-e", "1i\\\n\ |
c329beb0 BK |
2473 | #ifdef __cplusplus\\\n\ |
2474 | #define exception __math_exception\\\n\ | |
2475 | #endif\n", | |
78a0d70c | 2476 | "-e", "$a\\\n\ |
c329beb0 BK |
2477 | #ifdef __cplusplus\\\n\ |
2478 | #undef exception\\\n\ | |
c329beb0 | 2479 | #endif\n", |
06bbab1b BK |
2480 | (char*)NULL }; |
2481 | ||
2482 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2483 | * | |
d7eb5a45 | 2484 | * Description of Math_Huge_Val_From_Dbl_Max fix |
06bbab1b | 2485 | */ |
72b9c7fb | 2486 | #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 60 |
d7eb5a45 | 2487 | tSCC zMath_Huge_Val_From_Dbl_MaxName[] = |
3be1fb72 ZW |
2488 | "math_huge_val_from_dbl_max"; |
2489 | ||
06bbab1b BK |
2490 | /* |
2491 | * File name selection pattern | |
2492 | */ | |
d7eb5a45 | 2493 | tSCC zMath_Huge_Val_From_Dbl_MaxList[] = |
c329beb0 | 2494 | "|math.h|"; |
06bbab1b BK |
2495 | /* |
2496 | * Machine/OS name selection pattern | |
2497 | */ | |
d7eb5a45 ZW |
2498 | #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL |
2499 | ||
2500 | /* | |
2501 | * content selection pattern - do fix if pattern found | |
2502 | */ | |
2503 | tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] = | |
2504 | "define[ \t]*HUGE_VAL[ \t]*DBL_MAX"; | |
06bbab1b BK |
2505 | |
2506 | /* | |
d7eb5a45 | 2507 | * content bypass pattern - skip fix if pattern found |
06bbab1b | 2508 | */ |
d7eb5a45 ZW |
2509 | tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = |
2510 | "define[ \t]*DBL_MAX"; | |
2511 | ||
2512 | #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 | |
d7eb5a45 ZW |
2513 | tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { |
2514 | { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL }, | |
2515 | { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, }; | |
2516 | ||
2517 | /* | |
2518 | * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max | |
2519 | */ | |
2520 | const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c", | |
c329beb0 BK |
2521 | "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\ |
2522 | \n\ | |
d7eb5a45 ZW |
2523 | \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\ |
2524 | \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\ | |
2525 | \telse cat\n\ | |
2526 | \tfi", | |
2527 | (char*)NULL }; | |
2528 | ||
2529 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2530 | * | |
2531 | * Description of Math_Huge_Val_Ifndef fix | |
2532 | */ | |
72b9c7fb | 2533 | #define MATH_HUGE_VAL_IFNDEF_FIXIDX 61 |
d7eb5a45 | 2534 | tSCC zMath_Huge_Val_IfndefName[] = |
3be1fb72 ZW |
2535 | "math_huge_val_ifndef"; |
2536 | ||
d7eb5a45 ZW |
2537 | /* |
2538 | * File name selection pattern | |
2539 | */ | |
2540 | tSCC zMath_Huge_Val_IfndefList[] = | |
2541 | "|math/math.h|"; | |
2542 | /* | |
2543 | * Machine/OS name selection pattern | |
2544 | */ | |
2545 | #define apzMath_Huge_Val_IfndefMachs (const char**)NULL | |
2546 | ||
2547 | /* | |
2548 | * content selection pattern - do fix if pattern found | |
2549 | */ | |
2550 | tSCC zMath_Huge_Val_IfndefSelect0[] = | |
2551 | "define[ \t]*HUGE_VAL"; | |
2552 | ||
2553 | #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1 | |
d7eb5a45 ZW |
2554 | tTestDesc aMath_Huge_Val_IfndefTests[] = { |
2555 | { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, }; | |
2556 | ||
2557 | /* | |
2558 | * Fix Command Arguments for Math_Huge_Val_Ifndef | |
2559 | */ | |
2560 | const char* apzMath_Huge_Val_IfndefPatch[] = { "sed", | |
2561 | "-e", "/define[ \t]HUGE_VAL[ \t]/i\\\n\ | |
2562 | #ifndef HUGE_VAL\n", | |
2563 | "-e", "/define[ \t]HUGE_VAL[ \t]/a\\\n\ | |
2564 | #endif\n", | |
06bbab1b BK |
2565 | (char*)NULL }; |
2566 | ||
2567 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2568 | * | |
5abc1f74 | 2569 | * Description of Nested_Comment fix |
06bbab1b | 2570 | */ |
72b9c7fb | 2571 | #define NESTED_COMMENT_FIXIDX 62 |
06bbab1b | 2572 | tSCC zNested_CommentName[] = |
3be1fb72 ZW |
2573 | "nested_comment"; |
2574 | ||
06bbab1b BK |
2575 | /* |
2576 | * File name selection pattern | |
2577 | */ | |
2578 | tSCC zNested_CommentList[] = | |
c329beb0 | 2579 | "|rpc/rpc.h|"; |
06bbab1b BK |
2580 | /* |
2581 | * Machine/OS name selection pattern | |
2582 | */ | |
2583 | #define apzNested_CommentMachs (const char**)NULL | |
2584 | #define NESTED_COMMENT_TEST_CT 0 | |
2585 | #define aNested_CommentTests (tTestDesc*)NULL | |
2586 | ||
2587 | /* | |
2588 | * Fix Command Arguments for Nested_Comment | |
2589 | */ | |
2590 | const char* apzNested_CommentPatch[] = { "sed", | |
be02fa1a | 2591 | "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@", |
06bbab1b BK |
2592 | (char*)NULL }; |
2593 | ||
2594 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2595 | * | |
5abc1f74 | 2596 | * Description of News_Os_Recursion fix |
06bbab1b | 2597 | */ |
72b9c7fb | 2598 | #define NEWS_OS_RECURSION_FIXIDX 63 |
06bbab1b | 2599 | tSCC zNews_Os_RecursionName[] = |
3be1fb72 ZW |
2600 | "news_os_recursion"; |
2601 | ||
06bbab1b BK |
2602 | /* |
2603 | * File name selection pattern | |
2604 | */ | |
2605 | tSCC zNews_Os_RecursionList[] = | |
c329beb0 | 2606 | "|stdlib.h|"; |
06bbab1b BK |
2607 | /* |
2608 | * Machine/OS name selection pattern | |
2609 | */ | |
2610 | #define apzNews_Os_RecursionMachs (const char**)NULL | |
2611 | ||
2612 | /* | |
be02fa1a | 2613 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2614 | */ |
2615 | tSCC zNews_Os_RecursionSelect0[] = | |
2616 | "#include <stdlib.h>"; | |
2617 | ||
2618 | #define NEWS_OS_RECURSION_TEST_CT 1 | |
2619 | tTestDesc aNews_Os_RecursionTests[] = { | |
5abc1f74 | 2620 | { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2621 | |
2622 | /* | |
2623 | * Fix Command Arguments for News_Os_Recursion | |
2624 | */ | |
2625 | const char* apzNews_Os_RecursionPatch[] = { "sed", | |
c329beb0 BK |
2626 | "-e", "/^#include <stdlib.h>/i\\\n\ |
2627 | #ifdef BOGUS_RECURSION\n", | |
2628 | "-e", "/^#include <stdlib.h>/a\\\n\ | |
2629 | #endif\n", | |
06bbab1b BK |
2630 | (char*)NULL }; |
2631 | ||
2632 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2633 | * | |
5abc1f74 | 2634 | * Description of Next_Math_Prefix fix |
06bbab1b | 2635 | */ |
72b9c7fb | 2636 | #define NEXT_MATH_PREFIX_FIXIDX 64 |
06bbab1b | 2637 | tSCC zNext_Math_PrefixName[] = |
3be1fb72 ZW |
2638 | "next_math_prefix"; |
2639 | ||
06bbab1b BK |
2640 | /* |
2641 | * File name selection pattern | |
2642 | */ | |
2643 | tSCC zNext_Math_PrefixList[] = | |
c329beb0 | 2644 | "|ansi/math.h|"; |
06bbab1b BK |
2645 | /* |
2646 | * Machine/OS name selection pattern | |
2647 | */ | |
2648 | #define apzNext_Math_PrefixMachs (const char**)NULL | |
2649 | ||
2650 | /* | |
be02fa1a | 2651 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2652 | */ |
2653 | tSCC zNext_Math_PrefixSelect0[] = | |
2654 | "^extern.*double.*__const__.*"; | |
2655 | ||
2656 | #define NEXT_MATH_PREFIX_TEST_CT 1 | |
2657 | tTestDesc aNext_Math_PrefixTests[] = { | |
5abc1f74 | 2658 | { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2659 | |
2660 | /* | |
2661 | * Fix Command Arguments for Next_Math_Prefix | |
2662 | */ | |
2663 | const char* apzNext_Math_PrefixPatch[] = { "sed", | |
be02fa1a BK |
2664 | "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//", |
2665 | "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//", | |
2666 | "-e", "/^extern.*double.*__const__.*cos(/s/__const__//", | |
2667 | "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//", | |
2668 | "-e", "/^extern.*double.*__const__.*sin(/s/__const__//", | |
06bbab1b BK |
2669 | (char*)NULL }; |
2670 | ||
2671 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2672 | * | |
5abc1f74 | 2673 | * Description of Next_Template fix |
06bbab1b | 2674 | */ |
72b9c7fb | 2675 | #define NEXT_TEMPLATE_FIXIDX 65 |
06bbab1b | 2676 | tSCC zNext_TemplateName[] = |
3be1fb72 ZW |
2677 | "next_template"; |
2678 | ||
06bbab1b BK |
2679 | /* |
2680 | * File name selection pattern | |
2681 | */ | |
2682 | tSCC zNext_TemplateList[] = | |
c329beb0 | 2683 | "|bsd/libc.h|"; |
06bbab1b BK |
2684 | /* |
2685 | * Machine/OS name selection pattern | |
2686 | */ | |
2687 | #define apzNext_TemplateMachs (const char**)NULL | |
2688 | ||
2689 | /* | |
be02fa1a | 2690 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2691 | */ |
2692 | tSCC zNext_TemplateSelect0[] = | |
2693 | "template"; | |
2694 | ||
2695 | #define NEXT_TEMPLATE_TEST_CT 1 | |
2696 | tTestDesc aNext_TemplateTests[] = { | |
5abc1f74 | 2697 | { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2698 | |
2699 | /* | |
2700 | * Fix Command Arguments for Next_Template | |
2701 | */ | |
2702 | const char* apzNext_TemplatePatch[] = { "sed", | |
be02fa1a BK |
2703 | "-e", "/\\(.*template\\)/s/template//", |
2704 | "-e", "/extern.*volatile.*void.*abort/s/volatile//", | |
06bbab1b BK |
2705 | (char*)NULL }; |
2706 | ||
2707 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2708 | * | |
5abc1f74 | 2709 | * Description of Next_Volitile fix |
06bbab1b | 2710 | */ |
72b9c7fb | 2711 | #define NEXT_VOLITILE_FIXIDX 66 |
06bbab1b | 2712 | tSCC zNext_VolitileName[] = |
3be1fb72 ZW |
2713 | "next_volitile"; |
2714 | ||
06bbab1b BK |
2715 | /* |
2716 | * File name selection pattern | |
2717 | */ | |
2718 | tSCC zNext_VolitileList[] = | |
c329beb0 | 2719 | "|ansi/stdlib.h|"; |
06bbab1b BK |
2720 | /* |
2721 | * Machine/OS name selection pattern | |
2722 | */ | |
2723 | #define apzNext_VolitileMachs (const char**)NULL | |
2724 | ||
2725 | /* | |
be02fa1a | 2726 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2727 | */ |
2728 | tSCC zNext_VolitileSelect0[] = | |
2729 | "volatile"; | |
2730 | ||
2731 | #define NEXT_VOLITILE_TEST_CT 1 | |
2732 | tTestDesc aNext_VolitileTests[] = { | |
5abc1f74 | 2733 | { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2734 | |
2735 | /* | |
2736 | * Fix Command Arguments for Next_Volitile | |
2737 | */ | |
2738 | const char* apzNext_VolitilePatch[] = { "sed", | |
be02fa1a BK |
2739 | "-e", "/extern.*volatile.*void.*exit/s/volatile//", |
2740 | "-e", "/extern.*volatile.*void.*abort/s/volatile//", | |
06bbab1b BK |
2741 | (char*)NULL }; |
2742 | ||
2743 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2744 | * | |
5abc1f74 | 2745 | * Description of Next_Wait_Union fix |
06bbab1b | 2746 | */ |
72b9c7fb | 2747 | #define NEXT_WAIT_UNION_FIXIDX 67 |
06bbab1b | 2748 | tSCC zNext_Wait_UnionName[] = |
3be1fb72 ZW |
2749 | "next_wait_union"; |
2750 | ||
06bbab1b BK |
2751 | /* |
2752 | * File name selection pattern | |
2753 | */ | |
2754 | tSCC zNext_Wait_UnionList[] = | |
c329beb0 | 2755 | "|sys/wait.h|"; |
06bbab1b BK |
2756 | /* |
2757 | * Machine/OS name selection pattern | |
2758 | */ | |
2759 | #define apzNext_Wait_UnionMachs (const char**)NULL | |
2760 | ||
2761 | /* | |
be02fa1a | 2762 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2763 | */ |
2764 | tSCC zNext_Wait_UnionSelect0[] = | |
2765 | "wait\\(union wait"; | |
2766 | ||
2767 | #define NEXT_WAIT_UNION_TEST_CT 1 | |
2768 | tTestDesc aNext_Wait_UnionTests[] = { | |
5abc1f74 | 2769 | { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2770 | |
2771 | /* | |
2772 | * Fix Command Arguments for Next_Wait_Union | |
2773 | */ | |
2774 | const char* apzNext_Wait_UnionPatch[] = { "sed", | |
be02fa1a | 2775 | "-e", "s@wait(union wait@wait(void@", |
06bbab1b BK |
2776 | (char*)NULL }; |
2777 | ||
2778 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2779 | * | |
5abc1f74 | 2780 | * Description of Nodeent_Syntax fix |
06bbab1b | 2781 | */ |
72b9c7fb | 2782 | #define NODEENT_SYNTAX_FIXIDX 68 |
06bbab1b | 2783 | tSCC zNodeent_SyntaxName[] = |
3be1fb72 ZW |
2784 | "nodeent_syntax"; |
2785 | ||
06bbab1b BK |
2786 | /* |
2787 | * File name selection pattern | |
2788 | */ | |
2789 | tSCC zNodeent_SyntaxList[] = | |
c329beb0 | 2790 | "|netdnet/dnetdb.h|"; |
06bbab1b BK |
2791 | /* |
2792 | * Machine/OS name selection pattern | |
2793 | */ | |
2794 | #define apzNodeent_SyntaxMachs (const char**)NULL | |
2795 | #define NODEENT_SYNTAX_TEST_CT 0 | |
2796 | #define aNodeent_SyntaxTests (tTestDesc*)NULL | |
2797 | ||
2798 | /* | |
2799 | * Fix Command Arguments for Nodeent_Syntax | |
2800 | */ | |
2801 | const char* apzNodeent_SyntaxPatch[] = { "sed", | |
be02fa1a | 2802 | "-e", "s/char.*na_addr *$/char *na_addr;/", |
06bbab1b BK |
2803 | (char*)NULL }; |
2804 | ||
2805 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2806 | * | |
5abc1f74 | 2807 | * Description of Osf_Namespace_A fix |
06bbab1b | 2808 | */ |
72b9c7fb | 2809 | #define OSF_NAMESPACE_A_FIXIDX 69 |
06bbab1b | 2810 | tSCC zOsf_Namespace_AName[] = |
3be1fb72 ZW |
2811 | "osf_namespace_a"; |
2812 | ||
06bbab1b BK |
2813 | /* |
2814 | * File name selection pattern | |
2815 | */ | |
2816 | tSCC zOsf_Namespace_AList[] = | |
c329beb0 | 2817 | "|reg_types.h|sys/lc_core.h|"; |
06bbab1b BK |
2818 | /* |
2819 | * Machine/OS name selection pattern | |
2820 | */ | |
2821 | #define apzOsf_Namespace_AMachs (const char**)NULL | |
2822 | ||
2823 | /* | |
be02fa1a | 2824 | * perform the 'test' shell command - do fix on success |
06bbab1b BK |
2825 | */ |
2826 | tSCC zOsf_Namespace_ATest0[] = | |
48bd9529 BK |
2827 | " -r reg_types.h"; |
2828 | tSCC zOsf_Namespace_ATest1[] = | |
2829 | " -r sys/lc_core.h"; | |
2830 | tSCC zOsf_Namespace_ATest2[] = | |
2831 | " -n \"`grep '} regex_t;' reg_types.h`\""; | |
2832 | tSCC zOsf_Namespace_ATest3[] = | |
2833 | " -z \"`grep __regex_t regex.h`\""; | |
2834 | ||
2835 | #define OSF_NAMESPACE_A_TEST_CT 4 | |
06bbab1b | 2836 | tTestDesc aOsf_Namespace_ATests[] = { |
5abc1f74 BK |
2837 | { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, |
2838 | { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ }, | |
2839 | { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ }, | |
2840 | { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, }; | |
06bbab1b BK |
2841 | |
2842 | /* | |
2843 | * Fix Command Arguments for Osf_Namespace_A | |
2844 | */ | |
2845 | const char* apzOsf_Namespace_APatch[] = { "sed", | |
be02fa1a BK |
2846 | "-e", "s/regex_t/__regex_t/g", |
2847 | "-e", "s/regoff_t/__regoff_t/g", | |
2848 | "-e", "s/regmatch_t/__regmatch_t/g", | |
06bbab1b BK |
2849 | (char*)NULL }; |
2850 | ||
2851 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2852 | * | |
5abc1f74 | 2853 | * Description of Osf_Namespace_B fix |
06bbab1b | 2854 | */ |
72b9c7fb | 2855 | #define OSF_NAMESPACE_B_FIXIDX 70 |
06bbab1b | 2856 | tSCC zOsf_Namespace_BName[] = |
3be1fb72 ZW |
2857 | "osf_namespace_b"; |
2858 | ||
06bbab1b BK |
2859 | /* |
2860 | * File name selection pattern | |
2861 | */ | |
2862 | tSCC zOsf_Namespace_BList[] = | |
c329beb0 | 2863 | "|regex.h|"; |
06bbab1b BK |
2864 | /* |
2865 | * Machine/OS name selection pattern | |
2866 | */ | |
2867 | #define apzOsf_Namespace_BMachs (const char**)NULL | |
2868 | ||
2869 | /* | |
be02fa1a | 2870 | * perform the 'test' shell command - do fix on success |
06bbab1b BK |
2871 | */ |
2872 | tSCC zOsf_Namespace_BTest0[] = | |
48bd9529 BK |
2873 | " -r reg_types.h"; |
2874 | tSCC zOsf_Namespace_BTest1[] = | |
2875 | " -r sys/lc_core.h"; | |
2876 | tSCC zOsf_Namespace_BTest2[] = | |
2877 | " -n \"`grep '} regex_t;' reg_types.h`\""; | |
2878 | tSCC zOsf_Namespace_BTest3[] = | |
2879 | " -z \"`grep __regex_t regex.h`\""; | |
2880 | ||
2881 | #define OSF_NAMESPACE_B_TEST_CT 4 | |
06bbab1b | 2882 | tTestDesc aOsf_Namespace_BTests[] = { |
5abc1f74 BK |
2883 | { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ }, |
2884 | { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ }, | |
2885 | { TT_TEST, zOsf_Namespace_BTest2, 0 /* unused */ }, | |
2886 | { TT_TEST, zOsf_Namespace_BTest3, 0 /* unused */ }, }; | |
06bbab1b BK |
2887 | |
2888 | /* | |
2889 | * Fix Command Arguments for Osf_Namespace_B | |
2890 | */ | |
2891 | const char* apzOsf_Namespace_BPatch[] = { "sed", | |
c329beb0 BK |
2892 | "-e", "/#include <reg_types.h>/a\\\n\ |
2893 | typedef __regex_t\tregex_t;\\\n\ | |
2894 | typedef __regoff_t\tregoff_t;\\\n\ | |
2895 | typedef __regmatch_t\tregmatch_t;\n", | |
06bbab1b BK |
2896 | (char*)NULL }; |
2897 | ||
2898 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2899 | * | |
5abc1f74 | 2900 | * Description of Pthread_Page_Size fix |
06bbab1b | 2901 | */ |
72b9c7fb | 2902 | #define PTHREAD_PAGE_SIZE_FIXIDX 71 |
06bbab1b | 2903 | tSCC zPthread_Page_SizeName[] = |
3be1fb72 ZW |
2904 | "pthread_page_size"; |
2905 | ||
06bbab1b BK |
2906 | /* |
2907 | * File name selection pattern | |
2908 | */ | |
2909 | tSCC zPthread_Page_SizeList[] = | |
c329beb0 | 2910 | "|pthread.h|"; |
06bbab1b BK |
2911 | /* |
2912 | * Machine/OS name selection pattern | |
2913 | */ | |
2914 | #define apzPthread_Page_SizeMachs (const char**)NULL | |
2915 | ||
2916 | /* | |
be02fa1a | 2917 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2918 | */ |
2919 | tSCC zPthread_Page_SizeSelect0[] = | |
2920 | "^int __page_size"; | |
2921 | ||
2922 | #define PTHREAD_PAGE_SIZE_TEST_CT 1 | |
2923 | tTestDesc aPthread_Page_SizeTests[] = { | |
5abc1f74 | 2924 | { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2925 | |
2926 | /* | |
2927 | * Fix Command Arguments for Pthread_Page_Size | |
2928 | */ | |
2929 | const char* apzPthread_Page_SizePatch[] = { "sed", | |
be02fa1a | 2930 | "-e", "s/^int __page_size/extern int __page_size/", |
06bbab1b BK |
2931 | (char*)NULL }; |
2932 | ||
2933 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2934 | * | |
5abc1f74 | 2935 | * Description of Read_Ret_Type fix |
d71ef9d4 | 2936 | */ |
72b9c7fb | 2937 | #define READ_RET_TYPE_FIXIDX 72 |
d71ef9d4 | 2938 | tSCC zRead_Ret_TypeName[] = |
3be1fb72 ZW |
2939 | "read_ret_type"; |
2940 | ||
d71ef9d4 BK |
2941 | /* |
2942 | * File name selection pattern | |
2943 | */ | |
2944 | tSCC zRead_Ret_TypeList[] = | |
2945 | "|stdio.h|"; | |
2946 | /* | |
2947 | * Machine/OS name selection pattern | |
2948 | */ | |
2949 | #define apzRead_Ret_TypeMachs (const char**)NULL | |
2950 | ||
2951 | /* | |
2952 | * content selection pattern - do fix if pattern found | |
2953 | */ | |
2954 | tSCC zRead_Ret_TypeSelect0[] = | |
2955 | "extern int\t.*, fread\\(\\), fwrite\\(\\)"; | |
2956 | ||
2957 | #define READ_RET_TYPE_TEST_CT 1 | |
d71ef9d4 | 2958 | tTestDesc aRead_Ret_TypeTests[] = { |
5abc1f74 | 2959 | { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, }; |
d71ef9d4 BK |
2960 | |
2961 | /* | |
2962 | * Fix Command Arguments for Read_Ret_Type | |
2963 | */ | |
2964 | const char* apzRead_Ret_TypePatch[] = { "sed", | |
2965 | "-e", "s/^\\(extern int\tfclose(), fflush()\\), \\(fread(), fwrite()\\)\\(.*\\)$/extern unsigned int\t\\2;\\\n\ | |
2966 | \\1\\3/", | |
2967 | (char*)NULL }; | |
2968 | ||
2969 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2970 | * | |
5abc1f74 | 2971 | * Description of Rs6000_Double fix |
06bbab1b | 2972 | */ |
72b9c7fb | 2973 | #define RS6000_DOUBLE_FIXIDX 73 |
06bbab1b | 2974 | tSCC zRs6000_DoubleName[] = |
3be1fb72 ZW |
2975 | "rs6000_double"; |
2976 | ||
06bbab1b BK |
2977 | /* |
2978 | * File name selection pattern | |
2979 | */ | |
2980 | tSCC zRs6000_DoubleList[] = | |
c329beb0 | 2981 | "|math.h|"; |
06bbab1b BK |
2982 | /* |
2983 | * Machine/OS name selection pattern | |
2984 | */ | |
2985 | #define apzRs6000_DoubleMachs (const char**)NULL | |
2986 | ||
2987 | /* | |
be02fa1a | 2988 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
2989 | */ |
2990 | tSCC zRs6000_DoubleSelect0[] = | |
2991 | "[^a-zA-Z_]class\\("; | |
2992 | ||
2993 | #define RS6000_DOUBLE_TEST_CT 1 | |
2994 | tTestDesc aRs6000_DoubleTests[] = { | |
5abc1f74 | 2995 | { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
2996 | |
2997 | /* | |
2998 | * Fix Command Arguments for Rs6000_Double | |
2999 | */ | |
3000 | const char* apzRs6000_DoublePatch[] = { "sed", | |
c329beb0 BK |
3001 | "-e", "/class[(]/i\\\n\ |
3002 | #ifndef __cplusplus\n", | |
3003 | "-e", "/class[(]/a\\\n\ | |
3004 | #endif\n", | |
06bbab1b BK |
3005 | (char*)NULL }; |
3006 | ||
3007 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3008 | * | |
5abc1f74 | 3009 | * Description of Rs6000_Fchmod fix |
06bbab1b | 3010 | */ |
72b9c7fb | 3011 | #define RS6000_FCHMOD_FIXIDX 74 |
06bbab1b | 3012 | tSCC zRs6000_FchmodName[] = |
3be1fb72 ZW |
3013 | "rs6000_fchmod"; |
3014 | ||
06bbab1b BK |
3015 | /* |
3016 | * File name selection pattern | |
3017 | */ | |
3018 | tSCC zRs6000_FchmodList[] = | |
c329beb0 | 3019 | "|sys/stat.h|"; |
06bbab1b BK |
3020 | /* |
3021 | * Machine/OS name selection pattern | |
3022 | */ | |
3023 | #define apzRs6000_FchmodMachs (const char**)NULL | |
3024 | ||
3025 | /* | |
be02fa1a | 3026 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3027 | */ |
3028 | tSCC zRs6000_FchmodSelect0[] = | |
3029 | "fchmod\\(char"; | |
3030 | ||
3031 | #define RS6000_FCHMOD_TEST_CT 1 | |
3032 | tTestDesc aRs6000_FchmodTests[] = { | |
5abc1f74 | 3033 | { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3034 | |
3035 | /* | |
3036 | * Fix Command Arguments for Rs6000_Fchmod | |
3037 | */ | |
3038 | const char* apzRs6000_FchmodPatch[] = { "sed", | |
be02fa1a | 3039 | "-e", "s/fchmod(char \\*/fchmod(int/", |
06bbab1b BK |
3040 | (char*)NULL }; |
3041 | ||
3042 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3043 | * | |
5abc1f74 | 3044 | * Description of Rs6000_Param fix |
06bbab1b | 3045 | */ |
72b9c7fb | 3046 | #define RS6000_PARAM_FIXIDX 75 |
06bbab1b | 3047 | tSCC zRs6000_ParamName[] = |
3be1fb72 ZW |
3048 | "rs6000_param"; |
3049 | ||
06bbab1b BK |
3050 | /* |
3051 | * File name selection pattern | |
3052 | */ | |
3053 | tSCC zRs6000_ParamList[] = | |
c329beb0 | 3054 | "|stdio.h|unistd.h|"; |
06bbab1b BK |
3055 | /* |
3056 | * Machine/OS name selection pattern | |
3057 | */ | |
3058 | #define apzRs6000_ParamMachs (const char**)NULL | |
d7eb5a45 ZW |
3059 | |
3060 | /* | |
3061 | * content selection pattern - do fix if pattern found | |
3062 | */ | |
3063 | tSCC zRs6000_ParamSelect0[] = | |
3064 | "const char new"; | |
3065 | ||
3066 | #define RS6000_PARAM_TEST_CT 1 | |
d7eb5a45 ZW |
3067 | tTestDesc aRs6000_ParamTests[] = { |
3068 | { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
3069 | |
3070 | /* | |
3071 | * Fix Command Arguments for Rs6000_Param | |
3072 | */ | |
3073 | const char* apzRs6000_ParamPatch[] = { "sed", | |
be02fa1a | 3074 | "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@", |
06bbab1b BK |
3075 | (char*)NULL }; |
3076 | ||
4c188026 BK |
3077 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3078 | * | |
3079 | * Description of Sco_Strict_Ansi fix | |
3080 | */ | |
72b9c7fb | 3081 | #define SCO_STRICT_ANSI_FIXIDX 76 |
4c188026 BK |
3082 | tSCC zSco_Strict_AnsiName[] = |
3083 | "sco_strict_ansi"; | |
3084 | ||
3085 | /* | |
3086 | * File name selection pattern | |
3087 | */ | |
3088 | #define zSco_Strict_AnsiList (char*)NULL | |
3089 | /* | |
3090 | * Machine/OS name selection pattern | |
3091 | */ | |
3092 | tSCC* apzSco_Strict_AnsiMachs[] = { | |
3093 | "i?86-*-sco3.2*", | |
3094 | (const char*)NULL }; | |
3095 | ||
3096 | /* | |
3097 | * content selection pattern - do fix if pattern found | |
3098 | */ | |
3099 | tSCC zSco_Strict_AnsiSelect0[] = | |
3100 | "^[ \t]*#[ \t]*if.*!__STDC__"; | |
3101 | ||
3102 | #define SCO_STRICT_ANSI_TEST_CT 1 | |
3103 | tTestDesc aSco_Strict_AnsiTests[] = { | |
3104 | { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, }; | |
3105 | ||
3106 | /* | |
3107 | * Fix Command Arguments for Sco_Strict_Ansi | |
3108 | */ | |
3109 | const char* apzSco_Strict_AnsiPatch[] = { "sed", | |
3110 | "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g", | |
3111 | (char*)NULL }; | |
3112 | ||
3113 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3114 | * | |
3115 | * Description of Sco_Static_Func fix | |
3116 | */ | |
72b9c7fb | 3117 | #define SCO_STATIC_FUNC_FIXIDX 77 |
4c188026 BK |
3118 | tSCC zSco_Static_FuncName[] = |
3119 | "sco_static_func"; | |
3120 | ||
3121 | /* | |
3122 | * File name selection pattern | |
3123 | */ | |
3124 | tSCC zSco_Static_FuncList[] = | |
3125 | "|sys/stat.h|"; | |
3126 | /* | |
3127 | * Machine/OS name selection pattern | |
3128 | */ | |
3129 | tSCC* apzSco_Static_FuncMachs[] = { | |
3130 | "i?86-*-sco3.2*", | |
3131 | (const char*)NULL }; | |
3132 | ||
3133 | /* | |
3134 | * content selection pattern - do fix if pattern found | |
3135 | */ | |
3136 | tSCC zSco_Static_FuncSelect0[] = | |
3137 | "^static int"; | |
3138 | ||
3139 | #define SCO_STATIC_FUNC_TEST_CT 1 | |
3140 | tTestDesc aSco_Static_FuncTests[] = { | |
3141 | { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, }; | |
3142 | ||
3143 | /* | |
3144 | * Fix Command Arguments for Sco_Static_Func | |
3145 | */ | |
3146 | const char* apzSco_Static_FuncPatch[] = { "sed", | |
3147 | "-e", "/^static int/i\\\n\ | |
3148 | #if __cplusplus\\\n\ | |
3149 | extern \"C\" {\\\n\ | |
3150 | #endif /* __cplusplus */", | |
3151 | "-e", "/^}$/a\\\n\ | |
3152 | #if __cplusplus\\\n\ | |
3153 | }\\\n\ | |
3154 | #endif /* __cplusplus */", | |
3155 | (char*)NULL }; | |
3156 | ||
3157 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3158 | * | |
3159 | * Description of Sco_Utime fix | |
3160 | */ | |
72b9c7fb | 3161 | #define SCO_UTIME_FIXIDX 78 |
4c188026 BK |
3162 | tSCC zSco_UtimeName[] = |
3163 | "sco_utime"; | |
3164 | ||
3165 | /* | |
3166 | * File name selection pattern | |
3167 | */ | |
3168 | tSCC zSco_UtimeList[] = | |
3169 | "|sys/times.h|"; | |
3170 | /* | |
3171 | * Machine/OS name selection pattern | |
3172 | */ | |
3173 | tSCC* apzSco_UtimeMachs[] = { | |
3174 | "i?86-*-sco3.2v4*", | |
3175 | (const char*)NULL }; | |
3176 | ||
3177 | /* | |
3178 | * content selection pattern - do fix if pattern found | |
3179 | */ | |
3180 | tSCC zSco_UtimeSelect0[] = | |
3181 | "(const char *, struct utimbuf *);"; | |
3182 | ||
3183 | #define SCO_UTIME_TEST_CT 1 | |
3184 | tTestDesc aSco_UtimeTests[] = { | |
3185 | { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, }; | |
3186 | ||
3187 | /* | |
3188 | * Fix Command Arguments for Sco_Utime | |
3189 | */ | |
3190 | const char* apzSco_UtimePatch[] = { "sed", | |
3191 | "-e", "s/(const char \\*, struct utimbuf \\*);/(const char *, const struct utimbuf *);/", | |
3192 | (char*)NULL }; | |
3193 | ||
06bbab1b BK |
3194 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3195 | * | |
5abc1f74 | 3196 | * Description of Sony_Include fix |
06bbab1b | 3197 | */ |
72b9c7fb | 3198 | #define SONY_INCLUDE_FIXIDX 79 |
06bbab1b | 3199 | tSCC zSony_IncludeName[] = |
3be1fb72 ZW |
3200 | "sony_include"; |
3201 | ||
06bbab1b BK |
3202 | /* |
3203 | * File name selection pattern | |
3204 | */ | |
3205 | tSCC zSony_IncludeList[] = | |
c329beb0 | 3206 | "|machine/machparam.h|"; |
06bbab1b BK |
3207 | /* |
3208 | * Machine/OS name selection pattern | |
3209 | */ | |
3210 | #define apzSony_IncludeMachs (const char**)NULL | |
3211 | ||
3212 | /* | |
be02fa1a | 3213 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3214 | */ |
3215 | tSCC zSony_IncludeSelect0[] = | |
3216 | "\"\\.\\./machine/endian.h\""; | |
3217 | ||
3218 | #define SONY_INCLUDE_TEST_CT 1 | |
3219 | tTestDesc aSony_IncludeTests[] = { | |
5abc1f74 | 3220 | { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3221 | |
3222 | /* | |
3223 | * Fix Command Arguments for Sony_Include | |
3224 | */ | |
3225 | const char* apzSony_IncludePatch[] = { "sed", | |
be02fa1a | 3226 | "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@", |
06bbab1b BK |
3227 | (char*)NULL }; |
3228 | ||
3229 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3230 | * | |
5abc1f74 | 3231 | * Description of Statsswtch fix |
06bbab1b | 3232 | */ |
72b9c7fb | 3233 | #define STATSSWTCH_FIXIDX 80 |
06bbab1b | 3234 | tSCC zStatsswtchName[] = |
3be1fb72 ZW |
3235 | "statsswtch"; |
3236 | ||
06bbab1b BK |
3237 | /* |
3238 | * File name selection pattern | |
3239 | */ | |
3240 | tSCC zStatsswtchList[] = | |
c329beb0 | 3241 | "|rpcsvc/rstat.h|"; |
06bbab1b BK |
3242 | /* |
3243 | * Machine/OS name selection pattern | |
3244 | */ | |
3245 | #define apzStatsswtchMachs (const char**)NULL | |
3246 | ||
3247 | /* | |
be02fa1a | 3248 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3249 | */ |
3250 | tSCC zStatsswtchSelect0[] = | |
3251 | "boottime$"; | |
3252 | ||
3253 | #define STATSSWTCH_TEST_CT 1 | |
3254 | tTestDesc aStatsswtchTests[] = { | |
5abc1f74 | 3255 | { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3256 | |
3257 | /* | |
3258 | * Fix Command Arguments for Statsswtch | |
3259 | */ | |
3260 | const char* apzStatsswtchPatch[] = { "sed", | |
be02fa1a | 3261 | "-e", "s/boottime$/boottime;/", |
06bbab1b BK |
3262 | (char*)NULL }; |
3263 | ||
3be1fb72 ZW |
3264 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3265 | * | |
3266 | * Description of Stdio_Stdarg_H fix | |
3267 | */ | |
72b9c7fb | 3268 | #define STDIO_STDARG_H_FIXIDX 81 |
3be1fb72 ZW |
3269 | tSCC zStdio_Stdarg_HName[] = |
3270 | "stdio_stdarg_h"; | |
3271 | ||
3272 | /* | |
3273 | * File name selection pattern | |
3274 | */ | |
3275 | tSCC zStdio_Stdarg_HList[] = | |
3276 | "|stdio.h|"; | |
3277 | /* | |
3278 | * Machine/OS name selection pattern | |
3279 | */ | |
3280 | #define apzStdio_Stdarg_HMachs (const char**)NULL | |
3281 | ||
3282 | /* | |
3283 | * content bypass pattern - skip fix if pattern found | |
3284 | */ | |
3285 | tSCC zStdio_Stdarg_HBypass0[] = | |
3286 | "include.*(stdarg.h|machine/ansi.h)"; | |
3287 | ||
3288 | #define STDIO_STDARG_H_TEST_CT 1 | |
3289 | tTestDesc aStdio_Stdarg_HTests[] = { | |
3290 | { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, }; | |
3291 | ||
3292 | /* | |
3293 | * Fix Command Arguments for Stdio_Stdarg_H | |
3294 | */ | |
3295 | const char* apzStdio_Stdarg_HPatch[] = { "sed", | |
3296 | "-e", "1i\\\n\ | |
3297 | #define __need___va_list\\\n\ | |
3298 | #include <stdarg.h>\n", | |
3299 | (char*)NULL }; | |
3300 | ||
06bbab1b BK |
3301 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3302 | * | |
5abc1f74 | 3303 | * Description of Stdio_Va_List fix |
06bbab1b | 3304 | */ |
72b9c7fb | 3305 | #define STDIO_VA_LIST_FIXIDX 82 |
06bbab1b | 3306 | tSCC zStdio_Va_ListName[] = |
3be1fb72 ZW |
3307 | "stdio_va_list"; |
3308 | ||
06bbab1b BK |
3309 | /* |
3310 | * File name selection pattern | |
3311 | */ | |
3312 | tSCC zStdio_Va_ListList[] = | |
c329beb0 | 3313 | "|stdio.h|"; |
06bbab1b BK |
3314 | /* |
3315 | * Machine/OS name selection pattern | |
3316 | */ | |
3317 | #define apzStdio_Va_ListMachs (const char**)NULL | |
d7eb5a45 ZW |
3318 | |
3319 | /* | |
3320 | * content bypass pattern - skip fix if pattern found | |
3321 | */ | |
3322 | tSCC zStdio_Va_ListBypass0[] = | |
3be1fb72 | 3323 | "__gnuc_va_list|_BSD_VA_LIST_"; |
d7eb5a45 ZW |
3324 | |
3325 | #define STDIO_VA_LIST_TEST_CT 1 | |
d7eb5a45 ZW |
3326 | tTestDesc aStdio_Va_ListTests[] = { |
3327 | { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, }; | |
06bbab1b BK |
3328 | |
3329 | /* | |
3330 | * Fix Command Arguments for Stdio_Va_List | |
3331 | */ | |
3be1fb72 ZW |
3332 | const char* apzStdio_Va_ListPatch[] = { "sed", |
3333 | "-e", "s@ va_list @ __gnuc_va_list @\n\ | |
3334 | s@ va_list)@ __gnuc_va_list)@\n\ | |
3335 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ | |
3336 | s@ va_list@ __not_va_list__@\n\ | |
3337 | s@\\*va_list@*__not_va_list__@\n\ | |
3338 | s@ __va_list)@ __gnuc_va_list)@\n\ | |
b6412bae | 3339 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ |
3be1fb72 ZW |
3340 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ |
3341 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ | |
3342 | s@VA_LIST@DUMMY_VA_LIST@\n\ | |
3343 | s@_Va_LIST@_VA_LIST@", | |
06bbab1b BK |
3344 | (char*)NULL }; |
3345 | ||
4c188026 BK |
3346 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3347 | * | |
3348 | * Description of Sun_Auth_Proto fix | |
3349 | */ | |
72b9c7fb | 3350 | #define SUN_AUTH_PROTO_FIXIDX 83 |
4c188026 BK |
3351 | tSCC zSun_Auth_ProtoName[] = |
3352 | "sun_auth_proto"; | |
3353 | ||
3354 | /* | |
3355 | * File name selection pattern | |
3356 | */ | |
3357 | tSCC zSun_Auth_ProtoList[] = | |
3358 | "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|"; | |
3359 | /* | |
3360 | * Machine/OS name selection pattern | |
3361 | */ | |
3362 | #define apzSun_Auth_ProtoMachs (const char**)NULL | |
3363 | ||
3364 | /* | |
3365 | * content selection pattern - do fix if pattern found | |
3366 | */ | |
3367 | tSCC zSun_Auth_ProtoSelect0[] = | |
3368 | "\\(\\*[a-z][a-z_]*\\)\\(\\)"; | |
3369 | ||
3370 | #define SUN_AUTH_PROTO_TEST_CT 1 | |
3371 | tTestDesc aSun_Auth_ProtoTests[] = { | |
3372 | { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; | |
3373 | ||
3374 | /* | |
3375 | * Fix Command Arguments for Sun_Auth_Proto | |
3376 | */ | |
3377 | const char* apzSun_Auth_ProtoPatch[] = { "sed", | |
3378 | "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\ | |
3379 | #ifdef __cplusplus\\\n\ | |
3380 | \\1...\\2\\\n\ | |
3381 | #else\\\n\ | |
3382 | \\1\\2\\\n\ | |
3383 | #endif/", | |
3384 | (char*)NULL }; | |
3385 | ||
06bbab1b BK |
3386 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3387 | * | |
5abc1f74 | 3388 | * Description of Sun_Bogus_Ifdef fix |
06bbab1b | 3389 | */ |
72b9c7fb | 3390 | #define SUN_BOGUS_IFDEF_FIXIDX 84 |
06bbab1b | 3391 | tSCC zSun_Bogus_IfdefName[] = |
3be1fb72 ZW |
3392 | "sun_bogus_ifdef"; |
3393 | ||
06bbab1b BK |
3394 | /* |
3395 | * File name selection pattern | |
3396 | */ | |
3397 | tSCC zSun_Bogus_IfdefList[] = | |
c329beb0 | 3398 | "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|"; |
06bbab1b BK |
3399 | /* |
3400 | * Machine/OS name selection pattern | |
3401 | */ | |
3402 | #define apzSun_Bogus_IfdefMachs (const char**)NULL | |
3403 | ||
3404 | /* | |
be02fa1a | 3405 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3406 | */ |
3407 | tSCC zSun_Bogus_IfdefSelect0[] = | |
3408 | "#ifdef __i386__ || __vax__"; | |
3409 | ||
3410 | #define SUN_BOGUS_IFDEF_TEST_CT 1 | |
3411 | tTestDesc aSun_Bogus_IfdefTests[] = { | |
5abc1f74 | 3412 | { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3413 | |
3414 | /* | |
3415 | * Fix Command Arguments for Sun_Bogus_Ifdef | |
3416 | */ | |
3417 | const char* apzSun_Bogus_IfdefPatch[] = { "sed", | |
be02fa1a | 3418 | "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g", |
06bbab1b BK |
3419 | (char*)NULL }; |
3420 | ||
3421 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3422 | * | |
5abc1f74 | 3423 | * Description of Sun_Bogus_Ifdef_Sun4c fix |
06bbab1b | 3424 | */ |
72b9c7fb | 3425 | #define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 85 |
06bbab1b | 3426 | tSCC zSun_Bogus_Ifdef_Sun4cName[] = |
3be1fb72 ZW |
3427 | "sun_bogus_ifdef_sun4c"; |
3428 | ||
06bbab1b BK |
3429 | /* |
3430 | * File name selection pattern | |
3431 | */ | |
3432 | tSCC zSun_Bogus_Ifdef_Sun4cList[] = | |
c329beb0 | 3433 | "|hsfs/hsnode.h|"; |
06bbab1b BK |
3434 | /* |
3435 | * Machine/OS name selection pattern | |
3436 | */ | |
3437 | #define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL | |
3438 | ||
3439 | /* | |
be02fa1a | 3440 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3441 | */ |
3442 | tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] = | |
3443 | "#ifdef __i386__ || __sun4c__"; | |
3444 | ||
3445 | #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1 | |
3446 | tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = { | |
5abc1f74 | 3447 | { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3448 | |
3449 | /* | |
3450 | * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c | |
3451 | */ | |
3452 | const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed", | |
be02fa1a | 3453 | "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g", |
06bbab1b BK |
3454 | (char*)NULL }; |
3455 | ||
3456 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3457 | * | |
5abc1f74 | 3458 | * Description of Sun_Catmacro fix |
06bbab1b | 3459 | */ |
72b9c7fb | 3460 | #define SUN_CATMACRO_FIXIDX 86 |
06bbab1b | 3461 | tSCC zSun_CatmacroName[] = |
3be1fb72 ZW |
3462 | "sun_catmacro"; |
3463 | ||
06bbab1b BK |
3464 | /* |
3465 | * File name selection pattern | |
3466 | */ | |
3467 | tSCC zSun_CatmacroList[] = | |
c329beb0 | 3468 | "|pixrect/memvar.h|"; |
06bbab1b BK |
3469 | /* |
3470 | * Machine/OS name selection pattern | |
3471 | */ | |
3472 | #define apzSun_CatmacroMachs (const char**)NULL | |
3473 | ||
3474 | /* | |
be02fa1a | 3475 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3476 | */ |
3477 | tSCC zSun_CatmacroSelect0[] = | |
b75b4e92 | 3478 | "^#define[ \t]+CAT\\(a,b\\)"; |
06bbab1b BK |
3479 | |
3480 | #define SUN_CATMACRO_TEST_CT 1 | |
3481 | tTestDesc aSun_CatmacroTests[] = { | |
5abc1f74 | 3482 | { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3483 | |
3484 | /* | |
3485 | * Fix Command Arguments for Sun_Catmacro | |
3486 | */ | |
3487 | const char* apzSun_CatmacroPatch[] = { "sed", | |
c329beb0 BK |
3488 | "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\ |
3489 | #ifdef __STDC__ \\\n\ | |
3490 | #define CAT(a,b) a##b\\\n\ | |
3491 | #else\n", | |
3492 | "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\ | |
3493 | #endif\n", | |
06bbab1b BK |
3494 | (char*)NULL }; |
3495 | ||
3496 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3497 | * | |
5abc1f74 | 3498 | * Description of Sun_Malloc fix |
06bbab1b | 3499 | */ |
72b9c7fb | 3500 | #define SUN_MALLOC_FIXIDX 87 |
06bbab1b | 3501 | tSCC zSun_MallocName[] = |
3be1fb72 ZW |
3502 | "sun_malloc"; |
3503 | ||
06bbab1b BK |
3504 | /* |
3505 | * File name selection pattern | |
3506 | */ | |
3507 | tSCC zSun_MallocList[] = | |
c329beb0 | 3508 | "|malloc.h|"; |
06bbab1b BK |
3509 | /* |
3510 | * Machine/OS name selection pattern | |
3511 | */ | |
3512 | #define apzSun_MallocMachs (const char**)NULL | |
3513 | #define SUN_MALLOC_TEST_CT 0 | |
3514 | #define aSun_MallocTests (tTestDesc*)NULL | |
3515 | ||
3516 | /* | |
3517 | * Fix Command Arguments for Sun_Malloc | |
3518 | */ | |
3519 | const char* apzSun_MallocPatch[] = { "sed", | |
be02fa1a BK |
3520 | "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g", |
3521 | "-e", "s/int[ \t][ \t]*free/void\tfree/g", | |
3522 | "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g", | |
3523 | "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g", | |
06bbab1b BK |
3524 | (char*)NULL }; |
3525 | ||
06bbab1b BK |
3526 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3527 | * | |
5abc1f74 | 3528 | * Description of Sun_Rusers_Semi fix |
06bbab1b | 3529 | */ |
72b9c7fb | 3530 | #define SUN_RUSERS_SEMI_FIXIDX 88 |
06bbab1b | 3531 | tSCC zSun_Rusers_SemiName[] = |
3be1fb72 ZW |
3532 | "sun_rusers_semi"; |
3533 | ||
06bbab1b BK |
3534 | /* |
3535 | * File name selection pattern | |
3536 | */ | |
3537 | tSCC zSun_Rusers_SemiList[] = | |
c329beb0 | 3538 | "|rpcsvc/rusers.h|"; |
06bbab1b BK |
3539 | /* |
3540 | * Machine/OS name selection pattern | |
3541 | */ | |
3542 | #define apzSun_Rusers_SemiMachs (const char**)NULL | |
3543 | ||
3544 | /* | |
be02fa1a | 3545 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3546 | */ |
3547 | tSCC zSun_Rusers_SemiSelect0[] = | |
3548 | "_cnt$"; | |
3549 | ||
3550 | #define SUN_RUSERS_SEMI_TEST_CT 1 | |
3551 | tTestDesc aSun_Rusers_SemiTests[] = { | |
5abc1f74 | 3552 | { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3553 | |
3554 | /* | |
3555 | * Fix Command Arguments for Sun_Rusers_Semi | |
3556 | */ | |
3557 | const char* apzSun_Rusers_SemiPatch[] = { "sed", | |
be02fa1a | 3558 | "-e", "/^struct/,/^};/s/_cnt$/_cnt;/", |
06bbab1b BK |
3559 | (char*)NULL }; |
3560 | ||
3561 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3562 | * | |
5abc1f74 | 3563 | * Description of Sun_Signal fix |
06bbab1b | 3564 | */ |
72b9c7fb | 3565 | #define SUN_SIGNAL_FIXIDX 89 |
06bbab1b | 3566 | tSCC zSun_SignalName[] = |
3be1fb72 ZW |
3567 | "sun_signal"; |
3568 | ||
06bbab1b BK |
3569 | /* |
3570 | * File name selection pattern | |
3571 | */ | |
3572 | tSCC zSun_SignalList[] = | |
c329beb0 | 3573 | "|sys/signal.h|signal.h|"; |
06bbab1b BK |
3574 | /* |
3575 | * Machine/OS name selection pattern | |
3576 | */ | |
3577 | #define apzSun_SignalMachs (const char**)NULL | |
3578 | ||
3579 | /* | |
be02fa1a | 3580 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3581 | */ |
3582 | tSCC zSun_SignalSelect0[] = | |
3583 | "^void\t\\(\\*signal\\(\\)\\)\\(\\);"; | |
3584 | ||
3585 | #define SUN_SIGNAL_TEST_CT 1 | |
3586 | tTestDesc aSun_SignalTests[] = { | |
5abc1f74 | 3587 | { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3588 | |
3589 | /* | |
3590 | * Fix Command Arguments for Sun_Signal | |
3591 | */ | |
3592 | const char* apzSun_SignalPatch[] = { "sed", | |
c329beb0 BK |
3593 | "-e", "/^void\t(\\*signal())();$/i\\\n\ |
3594 | #ifdef __cplusplus\\\n\ | |
3595 | void\t(*signal(...))(...);\\\n\ | |
3596 | #else\n", | |
3597 | "-e", "/^void\t(\\*signal())();$/a\\\n\ | |
3598 | #endif\n", | |
06bbab1b BK |
3599 | (char*)NULL }; |
3600 | ||
06bbab1b BK |
3601 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3602 | * | |
5abc1f74 | 3603 | * Description of Sunos_Matherr_Decl fix |
06bbab1b | 3604 | */ |
72b9c7fb | 3605 | #define SUNOS_MATHERR_DECL_FIXIDX 90 |
06bbab1b | 3606 | tSCC zSunos_Matherr_DeclName[] = |
3be1fb72 ZW |
3607 | "sunos_matherr_decl"; |
3608 | ||
06bbab1b BK |
3609 | /* |
3610 | * File name selection pattern | |
3611 | */ | |
3612 | tSCC zSunos_Matherr_DeclList[] = | |
c329beb0 | 3613 | "|math.h|"; |
06bbab1b BK |
3614 | /* |
3615 | * Machine/OS name selection pattern | |
3616 | */ | |
3617 | #define apzSunos_Matherr_DeclMachs (const char**)NULL | |
d7eb5a45 ZW |
3618 | |
3619 | /* | |
3620 | * content bypass pattern - skip fix if pattern found | |
3621 | */ | |
3622 | tSCC zSunos_Matherr_DeclBypass0[] = | |
3623 | "matherr.*struct exception"; | |
3624 | ||
3625 | #define SUNOS_MATHERR_DECL_TEST_CT 1 | |
d7eb5a45 ZW |
3626 | tTestDesc aSunos_Matherr_DeclTests[] = { |
3627 | { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, }; | |
06bbab1b BK |
3628 | |
3629 | /* | |
3630 | * Fix Command Arguments for Sunos_Matherr_Decl | |
3631 | */ | |
3632 | const char* apzSunos_Matherr_DeclPatch[] = { "sed", | |
be02fa1a | 3633 | "-e", "/^struct exception/,$b", |
c329beb0 BK |
3634 | "-e", "/matherr/i\\\n\ |
3635 | struct exception;\n", | |
06bbab1b BK |
3636 | (char*)NULL }; |
3637 | ||
3638 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3639 | * | |
5abc1f74 | 3640 | * Description of Sunos_Strlen fix |
06bbab1b | 3641 | */ |
72b9c7fb | 3642 | #define SUNOS_STRLEN_FIXIDX 91 |
06bbab1b | 3643 | tSCC zSunos_StrlenName[] = |
3be1fb72 ZW |
3644 | "sunos_strlen"; |
3645 | ||
06bbab1b BK |
3646 | /* |
3647 | * File name selection pattern | |
3648 | */ | |
3649 | tSCC zSunos_StrlenList[] = | |
c329beb0 | 3650 | "|strings.h|"; |
06bbab1b BK |
3651 | /* |
3652 | * Machine/OS name selection pattern | |
3653 | */ | |
3654 | #define apzSunos_StrlenMachs (const char**)NULL | |
d7eb5a45 ZW |
3655 | |
3656 | /* | |
3657 | * content selection pattern - do fix if pattern found | |
3658 | */ | |
3659 | tSCC zSunos_StrlenSelect0[] = | |
3660 | "int[ \t]*strlen"; | |
3661 | ||
3662 | #define SUNOS_STRLEN_TEST_CT 1 | |
d7eb5a45 ZW |
3663 | tTestDesc aSunos_StrlenTests[] = { |
3664 | { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
3665 | |
3666 | /* | |
3667 | * Fix Command Arguments for Sunos_Strlen | |
3668 | */ | |
3669 | const char* apzSunos_StrlenPatch[] = { "sed", | |
be02fa1a | 3670 | "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/", |
06bbab1b BK |
3671 | (char*)NULL }; |
3672 | ||
4c188026 BK |
3673 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3674 | * | |
3675 | * Description of Svr4_Getcwd fix | |
3676 | */ | |
72b9c7fb | 3677 | #define SVR4_GETCWD_FIXIDX 92 |
4c188026 BK |
3678 | tSCC zSvr4_GetcwdName[] = |
3679 | "svr4_getcwd"; | |
3680 | ||
3681 | /* | |
3682 | * File name selection pattern | |
3683 | */ | |
3684 | tSCC zSvr4_GetcwdList[] = | |
3685 | "|stdlib.h|unistd.h|prototypes.h|"; | |
3686 | /* | |
3687 | * Machine/OS name selection pattern | |
3688 | */ | |
3689 | #define apzSvr4_GetcwdMachs (const char**)NULL | |
3690 | ||
3691 | /* | |
3692 | * content selection pattern - do fix if pattern found | |
3693 | */ | |
3694 | tSCC zSvr4_GetcwdSelect0[] = | |
3695 | "getcwd\\(char \\*, int\\)"; | |
3696 | ||
3697 | #define SVR4_GETCWD_TEST_CT 1 | |
3698 | tTestDesc aSvr4_GetcwdTests[] = { | |
3699 | { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, }; | |
3700 | ||
3701 | /* | |
3702 | * Fix Command Arguments for Svr4_Getcwd | |
3703 | */ | |
3704 | const char* apzSvr4_GetcwdPatch[] = { "sed", | |
3705 | "-e", "s/getcwd(char \\*, int)/getcwd(char *, size_t)/", | |
3706 | (char*)NULL }; | |
3707 | ||
3708 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3709 | * | |
3710 | * Description of Svr4_Profil fix | |
3711 | */ | |
72b9c7fb | 3712 | #define SVR4_PROFIL_FIXIDX 93 |
4c188026 BK |
3713 | tSCC zSvr4_ProfilName[] = |
3714 | "svr4_profil"; | |
3715 | ||
3716 | /* | |
3717 | * File name selection pattern | |
3718 | */ | |
3719 | tSCC zSvr4_ProfilList[] = | |
3720 | "|stdlib.h|unistd.h|"; | |
3721 | /* | |
3722 | * Machine/OS name selection pattern | |
3723 | */ | |
3724 | #define apzSvr4_ProfilMachs (const char**)NULL | |
3725 | #define SVR4_PROFIL_TEST_CT 0 | |
3726 | #define aSvr4_ProfilTests (tTestDesc*)NULL | |
3727 | ||
3728 | /* | |
3729 | * Fix Command Arguments for Svr4_Profil | |
3730 | */ | |
3731 | const char* apzSvr4_ProfilPatch[] = { "sed", | |
3732 | "-e", "s/profil(unsigned short \\*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/", | |
3733 | (char*)NULL }; | |
3734 | ||
06bbab1b BK |
3735 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3736 | * | |
5abc1f74 | 3737 | * Description of Systypes fix |
06bbab1b | 3738 | */ |
72b9c7fb | 3739 | #define SYSTYPES_FIXIDX 94 |
06bbab1b | 3740 | tSCC zSystypesName[] = |
3be1fb72 ZW |
3741 | "systypes"; |
3742 | ||
06bbab1b BK |
3743 | /* |
3744 | * File name selection pattern | |
3745 | */ | |
3746 | tSCC zSystypesList[] = | |
c329beb0 | 3747 | "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|"; |
06bbab1b BK |
3748 | /* |
3749 | * Machine/OS name selection pattern | |
3750 | */ | |
3751 | #define apzSystypesMachs (const char**)NULL | |
3752 | ||
3753 | /* | |
be02fa1a | 3754 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
3755 | */ |
3756 | tSCC zSystypesSelect0[] = | |
3757 | "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t"; | |
3758 | ||
3759 | #define SYSTYPES_TEST_CT 1 | |
3760 | tTestDesc aSystypesTests[] = { | |
5abc1f74 | 3761 | { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
3762 | |
3763 | /* | |
3764 | * Fix Command Arguments for Systypes | |
3765 | */ | |
3766 | const char* apzSystypesPatch[] = { "sed", | |
be02fa1a | 3767 | "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N", |
c329beb0 BK |
3768 | "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\ |
3769 | #ifndef __SIZE_TYPE__\\\n\ | |
3770 | #define __SIZE_TYPE__ long unsigned int\\\n\ | |
3771 | #endif\\\n\ | |
3772 | typedef __SIZE_TYPE__ size_t;\\\n\ | |
3773 | /", | |
3774 | "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\ | |
3775 | #ifndef __SIZE_TYPE__\\\n\ | |
3776 | #define __SIZE_TYPE__ long unsigned int\\\n\ | |
3777 | #endif\n", | |
be02fa1a | 3778 | "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/", |
c329beb0 BK |
3779 | "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\ |
3780 | #ifndef __PTRDIFF_TYPE__\\\n\ | |
3781 | #define __PTRDIFF_TYPE__ long int\\\n\ | |
3782 | #endif\n", | |
be02fa1a | 3783 | "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/", |
c329beb0 BK |
3784 | "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\ |
3785 | #ifndef __WCHAR_TYPE__\\\n\ | |
3786 | #define __WCHAR_TYPE__ int\\\n\ | |
3787 | #endif\\\n\ | |
3788 | #ifndef __cplusplus\n", | |
3789 | "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\ | |
3790 | #endif\n", | |
be02fa1a | 3791 | "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/", |
06bbab1b BK |
3792 | (char*)NULL }; |
3793 | ||
3794 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3795 | * | |
3be1fb72 | 3796 | * Description of Systypes_Stdlib_Size_T fix |
06bbab1b | 3797 | */ |
72b9c7fb | 3798 | #define SYSTYPES_STDLIB_SIZE_T_FIXIDX 95 |
3be1fb72 ZW |
3799 | tSCC zSystypes_Stdlib_Size_TName[] = |
3800 | "systypes_stdlib_size_t"; | |
3801 | ||
06bbab1b BK |
3802 | /* |
3803 | * File name selection pattern | |
3804 | */ | |
3be1fb72 ZW |
3805 | tSCC zSystypes_Stdlib_Size_TList[] = |
3806 | "|sys/types.h|stdlib.h|"; | |
06bbab1b BK |
3807 | /* |
3808 | * Machine/OS name selection pattern | |
3809 | */ | |
3be1fb72 | 3810 | #define apzSystypes_Stdlib_Size_TMachs (const char**)NULL |
06bbab1b BK |
3811 | |
3812 | /* | |
be02fa1a | 3813 | * content selection pattern - do fix if pattern found |
06bbab1b | 3814 | */ |
3be1fb72 | 3815 | tSCC zSystypes_Stdlib_Size_TSelect0[] = |
06bbab1b BK |
3816 | "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t"; |
3817 | ||
3818 | /* | |
be02fa1a | 3819 | * content bypass pattern - skip fix if pattern found |
06bbab1b | 3820 | */ |
3be1fb72 ZW |
3821 | tSCC zSystypes_Stdlib_Size_TBypass0[] = |
3822 | "_(GCC|BSD)_SIZE_T"; | |
06bbab1b | 3823 | |
3be1fb72 ZW |
3824 | #define SYSTYPES_STDLIB_SIZE_T_TEST_CT 2 |
3825 | tTestDesc aSystypes_Stdlib_Size_TTests[] = { | |
3826 | { TT_NEGREP, zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL }, | |
3827 | { TT_EGREP, zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
3828 | |
3829 | /* | |
3be1fb72 | 3830 | * Fix Command Arguments for Systypes_Stdlib_Size_T |
06bbab1b | 3831 | */ |
3be1fb72 | 3832 | const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed", |
c329beb0 BK |
3833 | "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\ |
3834 | #ifndef _GCC_SIZE_T\\\n\ | |
3835 | #define _GCC_SIZE_T\n", | |
3836 | "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\ | |
3837 | #endif\n", | |
06bbab1b BK |
3838 | (char*)NULL }; |
3839 | ||
3840 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3841 | * | |
5abc1f74 | 3842 | * Description of Sysv68_String fix |
06bbab1b | 3843 | */ |
72b9c7fb | 3844 | #define SYSV68_STRING_FIXIDX 96 |
06bbab1b | 3845 | tSCC zSysv68_StringName[] = |
3be1fb72 ZW |
3846 | "sysv68_string"; |
3847 | ||
06bbab1b BK |
3848 | /* |
3849 | * File name selection pattern | |
3850 | */ | |
3851 | tSCC zSysv68_StringList[] = | |
c329beb0 | 3852 | "|string.h|"; |
06bbab1b BK |
3853 | /* |
3854 | * Machine/OS name selection pattern | |
3855 | */ | |
3856 | #define apzSysv68_StringMachs (const char**)NULL | |
3857 | #define SYSV68_STRING_TEST_CT 0 | |
3858 | #define aSysv68_StringTests (tTestDesc*)NULL | |
3859 | ||
3860 | /* | |
3861 | * Fix Command Arguments for Sysv68_String | |
3862 | */ | |
3863 | const char* apzSysv68_StringPatch[] = { "sed", | |
be02fa1a BK |
3864 | "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/", |
3865 | "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/", | |
3866 | "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/", | |
3867 | "-e", "/^extern char$/N", | |
3868 | "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/", | |
3869 | "-e", "/^\tstrncmp(),$/N", | |
c329beb0 BK |
3870 | "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ |
3871 | extern unsigned int\\\n\ | |
3872 | \\2/", | |
be02fa1a BK |
3873 | "-e", "/^extern int$/N", |
3874 | "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/", | |
06bbab1b BK |
3875 | (char*)NULL }; |
3876 | ||
3877 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3878 | * | |
5abc1f74 | 3879 | * Description of Sysz_Stdlib_For_Sun fix |
06bbab1b | 3880 | */ |
72b9c7fb | 3881 | #define SYSZ_STDLIB_FOR_SUN_FIXIDX 97 |
06bbab1b | 3882 | tSCC zSysz_Stdlib_For_SunName[] = |
3be1fb72 ZW |
3883 | "sysz_stdlib_for_sun"; |
3884 | ||
06bbab1b BK |
3885 | /* |
3886 | * File name selection pattern | |
3887 | */ | |
3888 | tSCC zSysz_Stdlib_For_SunList[] = | |
c329beb0 | 3889 | "|stdlib.h|"; |
06bbab1b BK |
3890 | /* |
3891 | * Machine/OS name selection pattern | |
3892 | */ | |
ef16b5e5 | 3893 | #define apzSysz_Stdlib_For_SunMachs (const char**)NULL |
06bbab1b BK |
3894 | #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0 |
3895 | #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL | |
3896 | ||
3897 | /* | |
3898 | * Fix Command Arguments for Sysz_Stdlib_For_Sun | |
3899 | */ | |
3900 | const char* apzSysz_Stdlib_For_SunPatch[] = { "sed", | |
be02fa1a BK |
3901 | "-e", "s/int\tabort/void\tabort/g", |
3902 | "-e", "s/int\tfree/void\tfree/g", | |
3903 | "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g", | |
3904 | "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g", | |
3905 | "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g", | |
c354f40d | 3906 | "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g", |
be02fa1a | 3907 | "-e", "s/int[ \t][ \t]*exit/void\texit/g", |
06bbab1b BK |
3908 | (char*)NULL }; |
3909 | ||
3910 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3911 | * | |
5abc1f74 | 3912 | * Description of Sysz_Stdtypes_For_Sun fix |
06bbab1b | 3913 | */ |
72b9c7fb | 3914 | #define SYSZ_STDTYPES_FOR_SUN_FIXIDX 98 |
06bbab1b | 3915 | tSCC zSysz_Stdtypes_For_SunName[] = |
3be1fb72 ZW |
3916 | "sysz_stdtypes_for_sun"; |
3917 | ||
06bbab1b BK |
3918 | /* |
3919 | * File name selection pattern | |
3920 | */ | |
3921 | tSCC zSysz_Stdtypes_For_SunList[] = | |
c329beb0 | 3922 | "|sys/stdtypes.h|"; |
06bbab1b BK |
3923 | /* |
3924 | * Machine/OS name selection pattern | |
3925 | */ | |
3926 | #define apzSysz_Stdtypes_For_SunMachs (const char**)NULL | |
3927 | #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0 | |
3928 | #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL | |
3929 | ||
3930 | /* | |
3931 | * Fix Command Arguments for Sysz_Stdtypes_For_Sun | |
3932 | */ | |
3933 | const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed", | |
c329beb0 BK |
3934 | "-e", "/[\t ]size_t.*;/i\\\n\ |
3935 | #ifndef _GCC_SIZE_T\\\n\ | |
3936 | #define _GCC_SIZE_T\n", | |
3937 | "-e", "/[\t ]size_t.*;/a\\\n\ | |
3938 | #endif\n", | |
3939 | "-e", "/[\t ]ptrdiff_t.*;/i\\\n\ | |
3940 | #ifndef _GCC_PTRDIFF_T\\\n\ | |
3941 | #define _GCC_PTRDIFF_T\n", | |
3942 | "-e", "/[\t ]ptrdiff_t.*;/a\\\n\ | |
3943 | #endif\n", | |
3944 | "-e", "/[\t ]wchar_t.*;/i\\\n\ | |
3945 | #ifndef _GCC_WCHAR_T\\\n\ | |
3946 | #define _GCC_WCHAR_T\n", | |
3947 | "-e", "/[\t ]wchar_t.*;/a\\\n\ | |
3948 | #endif\n", | |
06bbab1b BK |
3949 | (char*)NULL }; |
3950 | ||
3951 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3952 | * | |
5abc1f74 | 3953 | * Description of Tinfo_Cplusplus fix |
06bbab1b | 3954 | */ |
72b9c7fb | 3955 | #define TINFO_CPLUSPLUS_FIXIDX 99 |
06bbab1b | 3956 | tSCC zTinfo_CplusplusName[] = |
3be1fb72 ZW |
3957 | "tinfo_cplusplus"; |
3958 | ||
06bbab1b BK |
3959 | /* |
3960 | * File name selection pattern | |
3961 | */ | |
3962 | tSCC zTinfo_CplusplusList[] = | |
c329beb0 | 3963 | "|tinfo.h|"; |
06bbab1b BK |
3964 | /* |
3965 | * Machine/OS name selection pattern | |
3966 | */ | |
3967 | #define apzTinfo_CplusplusMachs (const char**)NULL | |
d7eb5a45 ZW |
3968 | |
3969 | /* | |
3970 | * content selection pattern - do fix if pattern found | |
3971 | */ | |
3972 | tSCC zTinfo_CplusplusSelect0[] = | |
3973 | "[ \t]_cplusplus"; | |
3974 | ||
3975 | #define TINFO_CPLUSPLUS_TEST_CT 1 | |
d7eb5a45 ZW |
3976 | tTestDesc aTinfo_CplusplusTests[] = { |
3977 | { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
3978 | |
3979 | /* | |
3980 | * Fix Command Arguments for Tinfo_Cplusplus | |
3981 | */ | |
3982 | const char* apzTinfo_CplusplusPatch[] = { "sed", | |
be02fa1a | 3983 | "-e", "s/[ \t]_cplusplus/ __cplusplus/", |
06bbab1b BK |
3984 | (char*)NULL }; |
3985 | ||
06bbab1b BK |
3986 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3987 | * | |
5abc1f74 | 3988 | * Description of Ultrix_Fix_Fixproto fix |
1f414ac4 | 3989 | */ |
72b9c7fb | 3990 | #define ULTRIX_FIX_FIXPROTO_FIXIDX 100 |
1f414ac4 | 3991 | tSCC zUltrix_Fix_FixprotoName[] = |
3be1fb72 ZW |
3992 | "ultrix_fix_fixproto"; |
3993 | ||
1f414ac4 BK |
3994 | /* |
3995 | * File name selection pattern | |
3996 | */ | |
3997 | tSCC zUltrix_Fix_FixprotoList[] = | |
c329beb0 | 3998 | "|sys/utsname.h|"; |
1f414ac4 BK |
3999 | /* |
4000 | * Machine/OS name selection pattern | |
4001 | */ | |
4002 | #define apzUltrix_Fix_FixprotoMachs (const char**)NULL | |
4003 | ||
4004 | /* | |
be02fa1a | 4005 | * content selection pattern - do fix if pattern found |
1f414ac4 BK |
4006 | */ |
4007 | tSCC zUltrix_Fix_FixprotoSelect0[] = | |
4008 | "ULTRIX"; | |
4009 | ||
4010 | #define ULTRIX_FIX_FIXPROTO_TEST_CT 1 | |
4011 | tTestDesc aUltrix_Fix_FixprotoTests[] = { | |
5abc1f74 | 4012 | { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, }; |
1f414ac4 BK |
4013 | |
4014 | /* | |
4015 | * Fix Command Arguments for Ultrix_Fix_Fixproto | |
4016 | */ | |
4017 | const char* apzUltrix_Fix_FixprotoPatch[] = { "sed", | |
c329beb0 BK |
4018 | "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\ |
4019 | struct utsname;\n", | |
1f414ac4 BK |
4020 | (char*)NULL }; |
4021 | ||
4022 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4023 | * | |
5abc1f74 | 4024 | * Description of Ultrix_Atof_Param fix |
06bbab1b | 4025 | */ |
72b9c7fb | 4026 | #define ULTRIX_ATOF_PARAM_FIXIDX 101 |
06bbab1b | 4027 | tSCC zUltrix_Atof_ParamName[] = |
3be1fb72 ZW |
4028 | "ultrix_atof_param"; |
4029 | ||
06bbab1b BK |
4030 | /* |
4031 | * File name selection pattern | |
4032 | */ | |
4033 | tSCC zUltrix_Atof_ParamList[] = | |
c329beb0 | 4034 | "|math.h|"; |
06bbab1b BK |
4035 | /* |
4036 | * Machine/OS name selection pattern | |
4037 | */ | |
4038 | #define apzUltrix_Atof_ParamMachs (const char**)NULL | |
d7eb5a45 ZW |
4039 | |
4040 | /* | |
4041 | * content selection pattern - do fix if pattern found | |
4042 | */ | |
4043 | tSCC zUltrix_Atof_ParamSelect0[] = | |
4044 | "atof\\([ \t]*char"; | |
4045 | ||
4046 | #define ULTRIX_ATOF_PARAM_TEST_CT 1 | |
d7eb5a45 ZW |
4047 | tTestDesc aUltrix_Atof_ParamTests[] = { |
4048 | { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
4049 | |
4050 | /* | |
4051 | * Fix Command Arguments for Ultrix_Atof_Param | |
4052 | */ | |
4053 | const char* apzUltrix_Atof_ParamPatch[] = { "sed", | |
be02fa1a | 4054 | "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@", |
06bbab1b BK |
4055 | (char*)NULL }; |
4056 | ||
4057 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4058 | * | |
5abc1f74 | 4059 | * Description of Ultrix_Const fix |
06bbab1b | 4060 | */ |
72b9c7fb | 4061 | #define ULTRIX_CONST_FIXIDX 102 |
06bbab1b | 4062 | tSCC zUltrix_ConstName[] = |
3be1fb72 ZW |
4063 | "ultrix_const"; |
4064 | ||
06bbab1b BK |
4065 | /* |
4066 | * File name selection pattern | |
4067 | */ | |
4068 | tSCC zUltrix_ConstList[] = | |
c329beb0 | 4069 | "|stdio.h|"; |
06bbab1b BK |
4070 | /* |
4071 | * Machine/OS name selection pattern | |
4072 | */ | |
4073 | #define apzUltrix_ConstMachs (const char**)NULL | |
4074 | #define ULTRIX_CONST_TEST_CT 0 | |
4075 | #define aUltrix_ConstTests (tTestDesc*)NULL | |
4076 | ||
4077 | /* | |
4078 | * Fix Command Arguments for Ultrix_Const | |
4079 | */ | |
4080 | const char* apzUltrix_ConstPatch[] = { "sed", | |
be02fa1a BK |
4081 | "-e", "s@perror( char \\*__s );@perror( const char *__s );@", |
4082 | "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@", | |
4083 | "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@", | |
4084 | "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@", | |
4085 | "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@", | |
4086 | "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@", | |
4087 | "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@", | |
4088 | "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@", | |
4089 | "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@", | |
06bbab1b BK |
4090 | (char*)NULL }; |
4091 | ||
4092 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4093 | * | |
5abc1f74 | 4094 | * Description of Ultrix_Ifdef fix |
06bbab1b | 4095 | */ |
72b9c7fb | 4096 | #define ULTRIX_IFDEF_FIXIDX 103 |
06bbab1b | 4097 | tSCC zUltrix_IfdefName[] = |
3be1fb72 ZW |
4098 | "ultrix_ifdef"; |
4099 | ||
06bbab1b BK |
4100 | /* |
4101 | * File name selection pattern | |
4102 | */ | |
4103 | tSCC zUltrix_IfdefList[] = | |
c329beb0 | 4104 | "|sys/file.h|"; |
06bbab1b BK |
4105 | /* |
4106 | * Machine/OS name selection pattern | |
4107 | */ | |
4108 | #define apzUltrix_IfdefMachs (const char**)NULL | |
4109 | ||
4110 | /* | |
be02fa1a | 4111 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4112 | */ |
4113 | tSCC zUltrix_IfdefSelect0[] = | |
3be1fb72 | 4114 | "#ifdef KERNEL[ \t]*[^ \t]"; |
06bbab1b BK |
4115 | |
4116 | #define ULTRIX_IFDEF_TEST_CT 1 | |
4117 | tTestDesc aUltrix_IfdefTests[] = { | |
5abc1f74 | 4118 | { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
4119 | |
4120 | /* | |
4121 | * Fix Command Arguments for Ultrix_Ifdef | |
4122 | */ | |
4123 | const char* apzUltrix_IfdefPatch[] = { "sed", | |
be02fa1a | 4124 | "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/", |
06bbab1b BK |
4125 | (char*)NULL }; |
4126 | ||
4127 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4128 | * | |
5abc1f74 | 4129 | * Description of Ultrix_Nested_Cmnt fix |
06bbab1b | 4130 | */ |
72b9c7fb | 4131 | #define ULTRIX_NESTED_CMNT_FIXIDX 104 |
06bbab1b | 4132 | tSCC zUltrix_Nested_CmntName[] = |
3be1fb72 ZW |
4133 | "ultrix_nested_cmnt"; |
4134 | ||
06bbab1b BK |
4135 | /* |
4136 | * File name selection pattern | |
4137 | */ | |
4138 | tSCC zUltrix_Nested_CmntList[] = | |
c329beb0 | 4139 | "|rpc/svc.h|"; |
06bbab1b BK |
4140 | /* |
4141 | * Machine/OS name selection pattern | |
4142 | */ | |
4143 | #define apzUltrix_Nested_CmntMachs (const char**)NULL | |
4144 | #define ULTRIX_NESTED_CMNT_TEST_CT 0 | |
4145 | #define aUltrix_Nested_CmntTests (tTestDesc*)NULL | |
4146 | ||
4147 | /* | |
4148 | * Fix Command Arguments for Ultrix_Nested_Cmnt | |
4149 | */ | |
4150 | const char* apzUltrix_Nested_CmntPatch[] = { "sed", | |
be02fa1a | 4151 | "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@", |
06bbab1b BK |
4152 | (char*)NULL }; |
4153 | ||
4154 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4155 | * | |
5abc1f74 | 4156 | * Description of Ultrix_Static fix |
06bbab1b | 4157 | */ |
72b9c7fb | 4158 | #define ULTRIX_STATIC_FIXIDX 105 |
06bbab1b | 4159 | tSCC zUltrix_StaticName[] = |
3be1fb72 ZW |
4160 | "ultrix_static"; |
4161 | ||
06bbab1b BK |
4162 | /* |
4163 | * File name selection pattern | |
4164 | */ | |
4165 | tSCC zUltrix_StaticList[] = | |
c329beb0 | 4166 | "|machine/cpu.h|"; |
06bbab1b BK |
4167 | /* |
4168 | * Machine/OS name selection pattern | |
4169 | */ | |
4170 | #define apzUltrix_StaticMachs (const char**)NULL | |
4171 | ||
4172 | /* | |
be02fa1a | 4173 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4174 | */ |
4175 | tSCC zUltrix_StaticSelect0[] = | |
4176 | "#include \"r[34]_cpu"; | |
4177 | ||
4178 | #define ULTRIX_STATIC_TEST_CT 1 | |
4179 | tTestDesc aUltrix_StaticTests[] = { | |
5abc1f74 | 4180 | { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
4181 | |
4182 | /* | |
4183 | * Fix Command Arguments for Ultrix_Static | |
4184 | */ | |
4185 | const char* apzUltrix_StaticPatch[] = { "sed", | |
be02fa1a BK |
4186 | "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/", |
4187 | "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/", | |
4188 | "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/", | |
06bbab1b BK |
4189 | (char*)NULL }; |
4190 | ||
4191 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4192 | * | |
5abc1f74 | 4193 | * Description of Undefine_Null fix |
06bbab1b | 4194 | */ |
72b9c7fb | 4195 | #define UNDEFINE_NULL_FIXIDX 106 |
06bbab1b | 4196 | tSCC zUndefine_NullName[] = |
3be1fb72 ZW |
4197 | "undefine_null"; |
4198 | ||
06bbab1b BK |
4199 | /* |
4200 | * File name selection pattern | |
4201 | */ | |
4202 | #define zUndefine_NullList (char*)NULL | |
4203 | /* | |
4204 | * Machine/OS name selection pattern | |
4205 | */ | |
4206 | #define apzUndefine_NullMachs (const char**)NULL | |
4207 | ||
4208 | /* | |
be02fa1a | 4209 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4210 | */ |
4211 | tSCC zUndefine_NullSelect0[] = | |
42a2c30e | 4212 | "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]"; |
06bbab1b BK |
4213 | |
4214 | /* | |
be02fa1a | 4215 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
4216 | */ |
4217 | tSCC zUndefine_NullBypass0[] = | |
42a2c30e | 4218 | "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])"; |
06bbab1b BK |
4219 | |
4220 | #define UNDEFINE_NULL_TEST_CT 2 | |
4221 | tTestDesc aUndefine_NullTests[] = { | |
5abc1f74 BK |
4222 | { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL }, |
4223 | { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
4224 | |
4225 | /* | |
4226 | * Fix Command Arguments for Undefine_Null | |
4227 | */ | |
4228 | const char* apzUndefine_NullPatch[] = { "sed", | |
42a2c30e | 4229 | "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n\ |
c329beb0 | 4230 | #undef NULL\n", |
06bbab1b BK |
4231 | (char*)NULL }; |
4232 | ||
86765ca0 RL |
4233 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4234 | * | |
4235 | * Description of Unixware7_Byteorder_Fix fix | |
4236 | */ | |
72b9c7fb | 4237 | #define UNIXWARE7_BYTEORDER_FIX_FIXIDX 107 |
86765ca0 | 4238 | tSCC zUnixware7_Byteorder_FixName[] = |
3be1fb72 ZW |
4239 | "unixware7_byteorder_fix"; |
4240 | ||
86765ca0 RL |
4241 | /* |
4242 | * File name selection pattern | |
4243 | */ | |
4244 | tSCC zUnixware7_Byteorder_FixList[] = | |
4245 | "|arpa/inet.h|"; | |
4246 | /* | |
4247 | * Machine/OS name selection pattern | |
4248 | */ | |
4249 | tSCC* apzUnixware7_Byteorder_FixMachs[] = { | |
4250 | "*-*-sysv4*", | |
4251 | "i[34567]86-*-sysv5*", | |
4252 | "i[34567]86-*-udk*", | |
4253 | "i[34567]86-*-solaris2.[0-4]", | |
4254 | "powerpcle-*-solaris2.[0-4]", | |
4255 | "sparc-*-solaris2.[0-4]", | |
4256 | (const char*)NULL }; | |
4257 | ||
4258 | /* | |
4259 | * content selection pattern - do fix if pattern found | |
4260 | */ | |
4261 | tSCC zUnixware7_Byteorder_FixSelect0[] = | |
4262 | "in_port_t"; | |
4263 | ||
4264 | #define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1 | |
86765ca0 RL |
4265 | tTestDesc aUnixware7_Byteorder_FixTests[] = { |
4266 | { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, }; | |
4267 | ||
4268 | /* | |
4269 | * Fix Command Arguments for Unixware7_Byteorder_Fix | |
4270 | */ | |
4271 | const char* apzUnixware7_Byteorder_FixPatch[] = { "sed", | |
4272 | "-e", "/^extern.*htons.*(in_port_t)/d", | |
4273 | "-e", "/^extern.*ntohs.*(in_port_t)/d", | |
4274 | (char*)NULL }; | |
4275 | ||
06bbab1b BK |
4276 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4277 | * | |
5abc1f74 | 4278 | * Description of Va_I960_Macro fix |
06bbab1b | 4279 | */ |
72b9c7fb | 4280 | #define VA_I960_MACRO_FIXIDX 108 |
06bbab1b | 4281 | tSCC zVa_I960_MacroName[] = |
3be1fb72 ZW |
4282 | "va_i960_macro"; |
4283 | ||
06bbab1b BK |
4284 | /* |
4285 | * File name selection pattern | |
4286 | */ | |
4287 | tSCC zVa_I960_MacroList[] = | |
c329beb0 | 4288 | "|arch/i960/archI960.h|"; |
06bbab1b BK |
4289 | /* |
4290 | * Machine/OS name selection pattern | |
4291 | */ | |
4292 | #define apzVa_I960_MacroMachs (const char**)NULL | |
4293 | ||
4294 | /* | |
be02fa1a | 4295 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4296 | */ |
4297 | tSCC zVa_I960_MacroSelect0[] = | |
4298 | "__(vsiz|vali|vpad|alignof__)"; | |
4299 | ||
4300 | #define VA_I960_MACRO_TEST_CT 1 | |
4301 | tTestDesc aVa_I960_MacroTests[] = { | |
5abc1f74 | 4302 | { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
4303 | |
4304 | /* | |
4305 | * Fix Command Arguments for Va_I960_Macro | |
4306 | */ | |
4307 | const char* apzVa_I960_MacroPatch[] = { "sed", | |
be02fa1a BK |
4308 | "-e", "s/__vsiz/__vxvsiz/", |
4309 | "-e", "s/__vali/__vxvali/", | |
4310 | "-e", "s/__vpad/__vxvpad/", | |
4311 | "-e", "s/__alignof__/__vxalignof__/", | |
06bbab1b BK |
4312 | (char*)NULL }; |
4313 | ||
4314 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4315 | * | |
5abc1f74 | 4316 | * Description of Void_Null fix |
06bbab1b | 4317 | */ |
72b9c7fb | 4318 | #define VOID_NULL_FIXIDX 109 |
06bbab1b | 4319 | tSCC zVoid_NullName[] = |
3be1fb72 ZW |
4320 | "void_null"; |
4321 | ||
06bbab1b BK |
4322 | /* |
4323 | * File name selection pattern | |
4324 | */ | |
4325 | tSCC zVoid_NullList[] = | |
c329beb0 | 4326 | "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|"; |
06bbab1b BK |
4327 | /* |
4328 | * Machine/OS name selection pattern | |
4329 | */ | |
4330 | #define apzVoid_NullMachs (const char**)NULL | |
4331 | ||
4332 | /* | |
be02fa1a | 4333 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4334 | */ |
4335 | tSCC zVoid_NullSelect0[] = | |
4336 | "#[ \t]*define[ \t][ \t]*NULL[ \t].*void"; | |
4337 | ||
4338 | #define VOID_NULL_TEST_CT 1 | |
4339 | tTestDesc aVoid_NullTests[] = { | |
5abc1f74 | 4340 | { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
4341 | |
4342 | /* | |
4343 | * Fix Command Arguments for Void_Null | |
4344 | */ | |
4345 | const char* apzVoid_NullPatch[] = { "sed", | |
be02fa1a | 4346 | "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/", |
06bbab1b BK |
4347 | (char*)NULL }; |
4348 | ||
4349 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4350 | * | |
5abc1f74 | 4351 | * Description of Vxworks_Gcc_Problem fix |
06bbab1b | 4352 | */ |
72b9c7fb | 4353 | #define VXWORKS_GCC_PROBLEM_FIXIDX 110 |
06bbab1b | 4354 | tSCC zVxworks_Gcc_ProblemName[] = |
3be1fb72 ZW |
4355 | "vxworks_gcc_problem"; |
4356 | ||
06bbab1b BK |
4357 | /* |
4358 | * File name selection pattern | |
4359 | */ | |
4360 | tSCC zVxworks_Gcc_ProblemList[] = | |
c329beb0 | 4361 | "|types/vxTypesBase.h|"; |
06bbab1b BK |
4362 | /* |
4363 | * Machine/OS name selection pattern | |
4364 | */ | |
4365 | #define apzVxworks_Gcc_ProblemMachs (const char**)NULL | |
4366 | ||
4367 | /* | |
be02fa1a | 4368 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4369 | */ |
4370 | tSCC zVxworks_Gcc_ProblemSelect0[] = | |
4371 | "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__"; | |
4372 | ||
4373 | #define VXWORKS_GCC_PROBLEM_TEST_CT 1 | |
4374 | tTestDesc aVxworks_Gcc_ProblemTests[] = { | |
5abc1f74 | 4375 | { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
4376 | |
4377 | /* | |
4378 | * Fix Command Arguments for Vxworks_Gcc_Problem | |
4379 | */ | |
4380 | const char* apzVxworks_Gcc_ProblemPatch[] = { "sed", | |
be02fa1a | 4381 | "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", |
c329beb0 BK |
4382 | "-e", "/[ \t]size_t/i\\\n\ |
4383 | #ifndef _GCC_SIZE_T\\\n\ | |
4384 | #define _GCC_SIZE_T\n", | |
4385 | "-e", "/[ \t]size_t/a\\\n\ | |
4386 | #endif\n", | |
4387 | "-e", "/[ \t]ptrdiff_t/i\\\n\ | |
4388 | #ifndef _GCC_PTRDIFF_T\\\n\ | |
4389 | #define _GCC_PTRDIFF_T\n", | |
4390 | "-e", "/[ \t]ptrdiff_t/a\\\n\ | |
4391 | #endif\n", | |
4392 | "-e", "/[ \t]wchar_t/i\\\n\ | |
4393 | #ifndef _GCC_WCHAR_T\\\n\ | |
4394 | #define _GCC_WCHAR_T\n", | |
4395 | "-e", "/[ \t]wchar_t/a\\\n\ | |
4396 | #endif\n", | |
06bbab1b BK |
4397 | (char*)NULL }; |
4398 | ||
4399 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4400 | * | |
5abc1f74 | 4401 | * Description of Vxworks_Needs_Vxtypes fix |
06bbab1b | 4402 | */ |
72b9c7fb | 4403 | #define VXWORKS_NEEDS_VXTYPES_FIXIDX 111 |
06bbab1b | 4404 | tSCC zVxworks_Needs_VxtypesName[] = |
3be1fb72 ZW |
4405 | "vxworks_needs_vxtypes"; |
4406 | ||
06bbab1b BK |
4407 | /* |
4408 | * File name selection pattern | |
4409 | */ | |
4410 | tSCC zVxworks_Needs_VxtypesList[] = | |
c329beb0 | 4411 | "|time.h|"; |
06bbab1b BK |
4412 | /* |
4413 | * Machine/OS name selection pattern | |
4414 | */ | |
4415 | #define apzVxworks_Needs_VxtypesMachs (const char**)NULL | |
4416 | ||
4417 | /* | |
be02fa1a | 4418 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4419 | */ |
4420 | tSCC zVxworks_Needs_VxtypesSelect0[] = | |
4421 | "uint_t[ \t][ \t]*_clocks_per_sec"; | |
4422 | ||
4423 | #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 | |
4424 | tTestDesc aVxworks_Needs_VxtypesTests[] = { | |
5abc1f74 | 4425 | { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, }; |
06bbab1b BK |
4426 | |
4427 | /* | |
4428 | * Fix Command Arguments for Vxworks_Needs_Vxtypes | |
4429 | */ | |
4430 | const char* apzVxworks_Needs_VxtypesPatch[] = { "sed", | |
be02fa1a | 4431 | "-e", "s/uint_t/unsigned int/", |
06bbab1b BK |
4432 | (char*)NULL }; |
4433 | ||
4434 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4435 | * | |
5abc1f74 | 4436 | * Description of Vxworks_Needs_Vxworks fix |
06bbab1b | 4437 | */ |
72b9c7fb | 4438 | #define VXWORKS_NEEDS_VXWORKS_FIXIDX 112 |
06bbab1b | 4439 | tSCC zVxworks_Needs_VxworksName[] = |
3be1fb72 ZW |
4440 | "vxworks_needs_vxworks"; |
4441 | ||
06bbab1b BK |
4442 | /* |
4443 | * File name selection pattern | |
4444 | */ | |
4445 | tSCC zVxworks_Needs_VxworksList[] = | |
c329beb0 | 4446 | "|sys/stat.h|"; |
06bbab1b BK |
4447 | /* |
4448 | * Machine/OS name selection pattern | |
4449 | */ | |
4450 | #define apzVxworks_Needs_VxworksMachs (const char**)NULL | |
4451 | ||
4452 | /* | |
be02fa1a | 4453 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4454 | */ |
4455 | tSCC zVxworks_Needs_VxworksSelect0[] = | |
4456 | "#[ \t]define[ \t][ \t]*__INCstath"; | |
4457 | ||
4458 | /* | |
be02fa1a | 4459 | * perform the 'test' shell command - do fix on success |
06bbab1b BK |
4460 | */ |
4461 | tSCC zVxworks_Needs_VxworksTest0[] = | |
48bd9529 | 4462 | " -r types/vxTypesOld.h"; |
06bbab1b | 4463 | tSCC zVxworks_Needs_VxworksTest1[] = |
48bd9529 | 4464 | " -n \"`egrep '#include' $file`\""; |
06bbab1b | 4465 | tSCC zVxworks_Needs_VxworksTest2[] = |
48bd9529 | 4466 | " -n \"`egrep ULONG $file`\""; |
06bbab1b BK |
4467 | |
4468 | #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 | |
4469 | tTestDesc aVxworks_Needs_VxworksTests[] = { | |
5abc1f74 BK |
4470 | { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ }, |
4471 | { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ }, | |
4472 | { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ }, | |
4473 | { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
4474 | |
4475 | /* | |
4476 | * Fix Command Arguments for Vxworks_Needs_Vxworks | |
4477 | */ | |
4478 | const char* apzVxworks_Needs_VxworksPatch[] = { "sed", | |
c329beb0 BK |
4479 | "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ |
4480 | #include <types/vxTypesOld.h>\n", | |
06bbab1b BK |
4481 | (char*)NULL }; |
4482 | ||
4483 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4484 | * | |
5abc1f74 | 4485 | * Description of Vxworks_Time fix |
06bbab1b | 4486 | */ |
72b9c7fb | 4487 | #define VXWORKS_TIME_FIXIDX 113 |
06bbab1b | 4488 | tSCC zVxworks_TimeName[] = |
3be1fb72 ZW |
4489 | "vxworks_time"; |
4490 | ||
06bbab1b BK |
4491 | /* |
4492 | * File name selection pattern | |
4493 | */ | |
4494 | tSCC zVxworks_TimeList[] = | |
c329beb0 | 4495 | "|time.h|"; |
06bbab1b BK |
4496 | /* |
4497 | * Machine/OS name selection pattern | |
4498 | */ | |
4499 | #define apzVxworks_TimeMachs (const char**)NULL | |
4500 | ||
4501 | /* | |
be02fa1a | 4502 | * content selection pattern - do fix if pattern found |
06bbab1b BK |
4503 | */ |
4504 | tSCC zVxworks_TimeSelect0[] = | |
4505 | "VOIDFUNCPTR"; | |
4506 | ||
4507 | /* | |
be02fa1a | 4508 | * perform the 'test' shell command - do fix on success |
06bbab1b BK |
4509 | */ |
4510 | tSCC zVxworks_TimeTest0[] = | |
48bd9529 | 4511 | " -r vxWorks.h"; |
06bbab1b BK |
4512 | |
4513 | #define VXWORKS_TIME_TEST_CT 2 | |
4514 | tTestDesc aVxworks_TimeTests[] = { | |
5abc1f74 BK |
4515 | { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ }, |
4516 | { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
4517 | |
4518 | /* | |
4519 | * Fix Command Arguments for Vxworks_Time | |
4520 | */ | |
4521 | const char* apzVxworks_TimePatch[] = { "sed", | |
c329beb0 BK |
4522 | "-e", "/VOIDFUNCPTR/i\\\n\ |
4523 | #ifndef __gcc_VOIDFUNCPTR_defined\\\n\ | |
4524 | #ifdef __cplusplus\\\n\ | |
4525 | typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\ | |
4526 | #else\\\n\ | |
4527 | typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\ | |
4528 | #endif\\\n\ | |
4529 | #define __gcc_VOIDFUNCPTR_defined\\\n\ | |
4530 | #endif\n", | |
be02fa1a | 4531 | "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g", |
06bbab1b BK |
4532 | (char*)NULL }; |
4533 | ||
4534 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4535 | * | |
5abc1f74 | 4536 | * Description of X11_Class fix |
06bbab1b | 4537 | */ |
72b9c7fb | 4538 | #define X11_CLASS_FIXIDX 114 |
06bbab1b | 4539 | tSCC zX11_ClassName[] = |
3be1fb72 ZW |
4540 | "x11_class"; |
4541 | ||
06bbab1b BK |
4542 | /* |
4543 | * File name selection pattern | |
4544 | */ | |
4545 | tSCC zX11_ClassList[] = | |
c329beb0 | 4546 | "|X11/ShellP.h|"; |
06bbab1b BK |
4547 | /* |
4548 | * Machine/OS name selection pattern | |
4549 | */ | |
4550 | #define apzX11_ClassMachs (const char**)NULL | |
4551 | ||
4552 | /* | |
be02fa1a | 4553 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
4554 | */ |
4555 | tSCC zX11_ClassBypass0[] = | |
4556 | "__cplusplus"; | |
4557 | ||
4558 | #define X11_CLASS_TEST_CT 1 | |
4559 | tTestDesc aX11_ClassTests[] = { | |
5abc1f74 | 4560 | { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, }; |
06bbab1b BK |
4561 | |
4562 | /* | |
4563 | * Fix Command Arguments for X11_Class | |
4564 | */ | |
4565 | const char* apzX11_ClassPatch[] = { "sed", | |
c329beb0 BK |
4566 | "-e", "/char \\*class;/i\\\n\ |
4567 | #ifdef __cplusplus\\\n\ | |
4568 | \tchar *c_class;\\\n\ | |
4569 | #else\n", | |
4570 | "-e", "/char \\*class;/a\\\n\ | |
4571 | #endif\n", | |
06bbab1b BK |
4572 | (char*)NULL }; |
4573 | ||
4574 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4575 | * | |
5abc1f74 | 4576 | * Description of X11_Class_Usage fix |
06bbab1b | 4577 | */ |
72b9c7fb | 4578 | #define X11_CLASS_USAGE_FIXIDX 115 |
06bbab1b | 4579 | tSCC zX11_Class_UsageName[] = |
3be1fb72 ZW |
4580 | "x11_class_usage"; |
4581 | ||
06bbab1b BK |
4582 | /* |
4583 | * File name selection pattern | |
4584 | */ | |
4585 | tSCC zX11_Class_UsageList[] = | |
c329beb0 | 4586 | "|Xm/BaseClassI.h|"; |
06bbab1b BK |
4587 | /* |
4588 | * Machine/OS name selection pattern | |
4589 | */ | |
4590 | #define apzX11_Class_UsageMachs (const char**)NULL | |
4591 | ||
4592 | /* | |
be02fa1a | 4593 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
4594 | */ |
4595 | tSCC zX11_Class_UsageBypass0[] = | |
4596 | "__cplusplus"; | |
4597 | ||
4598 | #define X11_CLASS_USAGE_TEST_CT 1 | |
4599 | tTestDesc aX11_Class_UsageTests[] = { | |
5abc1f74 | 4600 | { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, }; |
06bbab1b BK |
4601 | |
4602 | /* | |
4603 | * Fix Command Arguments for X11_Class_Usage | |
4604 | */ | |
4605 | const char* apzX11_Class_UsagePatch[] = { "sed", | |
be02fa1a | 4606 | "-e", "s/ class[)]/ c_class)/g", |
06bbab1b BK |
4607 | (char*)NULL }; |
4608 | ||
4609 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4610 | * | |
5abc1f74 | 4611 | * Description of X11_New fix |
06bbab1b | 4612 | */ |
72b9c7fb | 4613 | #define X11_NEW_FIXIDX 116 |
06bbab1b | 4614 | tSCC zX11_NewName[] = |
3be1fb72 ZW |
4615 | "x11_new"; |
4616 | ||
06bbab1b BK |
4617 | /* |
4618 | * File name selection pattern | |
4619 | */ | |
4620 | tSCC zX11_NewList[] = | |
c329beb0 | 4621 | "|Xm/Traversal.h|"; |
06bbab1b BK |
4622 | /* |
4623 | * Machine/OS name selection pattern | |
4624 | */ | |
4625 | #define apzX11_NewMachs (const char**)NULL | |
4626 | ||
4627 | /* | |
be02fa1a | 4628 | * content bypass pattern - skip fix if pattern found |
06bbab1b BK |
4629 | */ |
4630 | tSCC zX11_NewBypass0[] = | |
4631 | "__cplusplus"; | |
4632 | ||
4633 | #define X11_NEW_TEST_CT 1 | |
4634 | tTestDesc aX11_NewTests[] = { | |
5abc1f74 | 4635 | { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, }; |
06bbab1b BK |
4636 | |
4637 | /* | |
4638 | * Fix Command Arguments for X11_New | |
4639 | */ | |
4640 | const char* apzX11_NewPatch[] = { "sed", | |
c329beb0 BK |
4641 | "-e", "/Widget\told, new;/i\\\n\ |
4642 | #ifdef __cplusplus\\\n\ | |
4643 | \tWidget\told, c_new;\\\n\ | |
4644 | #else\n", | |
4645 | "-e", "/Widget\told, new;/a\\\n\ | |
4646 | #endif\n", | |
be02fa1a | 4647 | "-e", "s/Widget new,/Widget c_new,/g", |
06bbab1b BK |
4648 | (char*)NULL }; |
4649 | ||
4650 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4651 | * | |
5abc1f74 | 4652 | * Description of X11_Sprintf fix |
06bbab1b | 4653 | */ |
72b9c7fb | 4654 | #define X11_SPRINTF_FIXIDX 117 |
06bbab1b | 4655 | tSCC zX11_SprintfName[] = |
3be1fb72 ZW |
4656 | "x11_sprintf"; |
4657 | ||
06bbab1b BK |
4658 | /* |
4659 | * File name selection pattern | |
4660 | */ | |
4661 | tSCC zX11_SprintfList[] = | |
b51207a4 | 4662 | "|X11/Xmu.h|X11/Xmu/Xmu.h|"; |
06bbab1b BK |
4663 | /* |
4664 | * Machine/OS name selection pattern | |
4665 | */ | |
4666 | #define apzX11_SprintfMachs (const char**)NULL | |
b51207a4 ZW |
4667 | |
4668 | /* | |
4669 | * content selection pattern - do fix if pattern found | |
4670 | */ | |
4671 | tSCC zX11_SprintfSelect0[] = | |
4672 | "sprintf\\(\\)"; | |
4673 | ||
4674 | #define X11_SPRINTF_TEST_CT 1 | |
4675 | tTestDesc aX11_SprintfTests[] = { | |
4676 | { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, }; | |
06bbab1b BK |
4677 | |
4678 | /* | |
4679 | * Fix Command Arguments for X11_Sprintf | |
4680 | */ | |
4681 | const char* apzX11_SprintfPatch[] = { "sed", | |
c329beb0 BK |
4682 | "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\ |
4683 | extern char *\tsprintf();\\\n\ | |
4684 | #endif /* !defined __STDC__ */,", | |
06bbab1b BK |
4685 | (char*)NULL }; |
4686 | ||
3be1fb72 | 4687 | |
06bbab1b BK |
4688 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4689 | * | |
4690 | * List of all fixes | |
4691 | */ | |
88acf854 | 4692 | #define REGEX_COUNT 105 |
86765ca0 | 4693 | #define MACH_LIST_SIZE_LIMIT 279 |
72b9c7fb | 4694 | #define FIX_COUNT 118 |
5abc1f74 | 4695 | |
be02fa1a | 4696 | tFixDesc fixDescList[ FIX_COUNT ] = { |
5abc1f74 | 4697 | { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList, |
f5b105ca | 4698 | apzAaa_Ki_IfaceMachs, |
5abc1f74 BK |
4699 | AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4700 | aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch }, | |
4701 | ||
4702 | { zAaa_KiName, zAaa_KiList, | |
f5b105ca | 4703 | apzAaa_KiMachs, |
5abc1f74 BK |
4704 | AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4705 | aAaa_KiTests, apzAaa_KiPatch }, | |
4706 | ||
4707 | { zAaa_Ki_CallsName, zAaa_Ki_CallsList, | |
f5b105ca | 4708 | apzAaa_Ki_CallsMachs, |
5abc1f74 BK |
4709 | AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4710 | aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch }, | |
4711 | ||
4712 | { zAaa_Ki_DefsName, zAaa_Ki_DefsList, | |
f5b105ca | 4713 | apzAaa_Ki_DefsMachs, |
5abc1f74 BK |
4714 | AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4715 | aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch }, | |
4716 | ||
4717 | { zAaa_Bad_FixesName, zAaa_Bad_FixesList, | |
f5b105ca | 4718 | apzAaa_Bad_FixesMachs, |
5abc1f74 BK |
4719 | AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4720 | aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch }, | |
4721 | ||
4722 | { zAaa_TimeName, zAaa_TimeList, | |
f5b105ca | 4723 | apzAaa_TimeMachs, |
5abc1f74 BK |
4724 | AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4725 | aAaa_TimeTests, apzAaa_TimePatch }, | |
4726 | ||
4727 | { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList, | |
f5b105ca | 4728 | apzAab_Dgux_Int_VarargsMachs, |
5abc1f74 BK |
4729 | AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4730 | aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch }, | |
4731 | ||
d7eb5a45 | 4732 | { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList, |
f5b105ca | 4733 | apzAab_Fd_Zero_Asm_Posix_Types_HMachs, |
d7eb5a45 ZW |
4734 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4735 | aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch }, | |
8aeb3b0e | 4736 | |
d7eb5a45 | 4737 | { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList, |
f5b105ca | 4738 | apzAab_Fd_Zero_Gnu_Types_HMachs, |
d7eb5a45 ZW |
4739 | AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4740 | aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch }, | |
8aeb3b0e | 4741 | |
d7eb5a45 | 4742 | { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList, |
f5b105ca | 4743 | apzAab_Fd_Zero_Selectbits_HMachs, |
d7eb5a45 ZW |
4744 | AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4745 | aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch }, | |
8aeb3b0e | 4746 | |
b51207a4 | 4747 | { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList, |
f5b105ca | 4748 | apzAab_Sun_MemcpyMachs, |
b51207a4 ZW |
4749 | AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4750 | aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch }, | |
4751 | ||
86765ca0 | 4752 | { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList, |
f5b105ca | 4753 | apzAab_Svr4_Replace_ByteorderMachs, |
86765ca0 RL |
4754 | AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4755 | aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch }, | |
4756 | ||
b51207a4 | 4757 | { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList, |
f5b105ca | 4758 | apzAab_Ultrix_Ansi_CompatMachs, |
b51207a4 ZW |
4759 | AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
4760 | aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch }, | |
4761 | ||
06bbab1b | 4762 | { zAix_SyswaitName, zAix_SyswaitList, |
f5b105ca | 4763 | apzAix_SyswaitMachs, |
88acf854 | 4764 | AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
06bbab1b BK |
4765 | aAix_SyswaitTests, apzAix_SyswaitPatch }, |
4766 | ||
4767 | { zAix_VolatileName, zAix_VolatileList, | |
f5b105ca | 4768 | apzAix_VolatileMachs, |
06bbab1b BK |
4769 | AIX_VOLATILE_TEST_CT, FD_MACH_ONLY, |
4770 | aAix_VolatileTests, apzAix_VolatilePatch }, | |
4771 | ||
4772 | { zAlpha_GetoptName, zAlpha_GetoptList, | |
f5b105ca | 4773 | apzAlpha_GetoptMachs, |
06bbab1b BK |
4774 | ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY, |
4775 | aAlpha_GetoptTests, apzAlpha_GetoptPatch }, | |
4776 | ||
4777 | { zAlpha_ParensName, zAlpha_ParensList, | |
f5b105ca | 4778 | apzAlpha_ParensMachs, |
06bbab1b BK |
4779 | ALPHA_PARENS_TEST_CT, FD_MACH_ONLY, |
4780 | aAlpha_ParensTests, apzAlpha_ParensPatch }, | |
4781 | ||
4782 | { zAlpha_SbrkName, zAlpha_SbrkList, | |
f5b105ca | 4783 | apzAlpha_SbrkMachs, |
06bbab1b BK |
4784 | ALPHA_SBRK_TEST_CT, FD_MACH_ONLY, |
4785 | aAlpha_SbrkTests, apzAlpha_SbrkPatch }, | |
4786 | ||
4787 | { zArm_Norcroft_HintName, zArm_Norcroft_HintList, | |
f5b105ca | 4788 | apzArm_Norcroft_HintMachs, |
06bbab1b BK |
4789 | ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY, |
4790 | aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch }, | |
4791 | ||
4792 | { zArm_WcharName, zArm_WcharList, | |
f5b105ca | 4793 | apzArm_WcharMachs, |
06bbab1b BK |
4794 | ARM_WCHAR_TEST_CT, FD_MACH_ONLY, |
4795 | aArm_WcharTests, apzArm_WcharPatch }, | |
4796 | ||
4797 | { zAux_AsmName, zAux_AsmList, | |
f5b105ca | 4798 | apzAux_AsmMachs, |
06bbab1b BK |
4799 | AUX_ASM_TEST_CT, FD_MACH_ONLY, |
4800 | aAux_AsmTests, apzAux_AsmPatch }, | |
4801 | ||
4802 | { zAvoid_BoolName, zAvoid_BoolList, | |
f5b105ca | 4803 | apzAvoid_BoolMachs, |
06bbab1b BK |
4804 | AVOID_BOOL_TEST_CT, FD_MACH_ONLY, |
4805 | aAvoid_BoolTests, apzAvoid_BoolPatch }, | |
4806 | ||
06bbab1b | 4807 | { zBad_Struct_TermName, zBad_Struct_TermList, |
f5b105ca | 4808 | apzBad_Struct_TermMachs, |
06bbab1b BK |
4809 | BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY, |
4810 | aBad_Struct_TermTests, apzBad_Struct_TermPatch }, | |
4811 | ||
4812 | { zBadquoteName, zBadquoteList, | |
f5b105ca | 4813 | apzBadquoteMachs, |
06bbab1b BK |
4814 | BADQUOTE_TEST_CT, FD_MACH_ONLY, |
4815 | aBadquoteTests, apzBadquotePatch }, | |
4816 | ||
4817 | { zBad_LvalName, zBad_LvalList, | |
f5b105ca | 4818 | apzBad_LvalMachs, |
06bbab1b BK |
4819 | BAD_LVAL_TEST_CT, FD_MACH_ONLY, |
4820 | aBad_LvalTests, apzBad_LvalPatch }, | |
4821 | ||
4822 | { zBroken_Assert_StdioName, zBroken_Assert_StdioList, | |
f5b105ca | 4823 | apzBroken_Assert_StdioMachs, |
06bbab1b BK |
4824 | BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY, |
4825 | aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch }, | |
4826 | ||
4827 | { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList, | |
f5b105ca | 4828 | apzBroken_Assert_StdlibMachs, |
06bbab1b BK |
4829 | BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY, |
4830 | aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch }, | |
4831 | ||
72b9c7fb | 4832 | { zBroken_CabsName, zBroken_CabsList, |
f5b105ca | 4833 | apzBroken_CabsMachs, |
72b9c7fb BK |
4834 | BROKEN_CABS_TEST_CT, FD_MACH_ONLY, |
4835 | aBroken_CabsTests, apzBroken_CabsPatch }, | |
4836 | ||
48bd9529 | 4837 | { zDec_Intern_AsmName, zDec_Intern_AsmList, |
f5b105ca | 4838 | apzDec_Intern_AsmMachs, |
48bd9529 BK |
4839 | DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY, |
4840 | aDec_Intern_AsmTests, apzDec_Intern_AsmPatch }, | |
4841 | ||
06bbab1b | 4842 | { zEcd_CursorName, zEcd_CursorList, |
f5b105ca | 4843 | apzEcd_CursorMachs, |
06bbab1b BK |
4844 | ECD_CURSOR_TEST_CT, FD_MACH_ONLY, |
4845 | aEcd_CursorTests, apzEcd_CursorPatch }, | |
4846 | ||
06bbab1b | 4847 | { zHp_InlineName, zHp_InlineList, |
f5b105ca | 4848 | apzHp_InlineMachs, |
06bbab1b BK |
4849 | HP_INLINE_TEST_CT, FD_MACH_ONLY, |
4850 | aHp_InlineTests, apzHp_InlinePatch }, | |
4851 | ||
4852 | { zHp_SysfileName, zHp_SysfileList, | |
f5b105ca | 4853 | apzHp_SysfileMachs, |
06bbab1b BK |
4854 | HP_SYSFILE_TEST_CT, FD_MACH_ONLY, |
4855 | aHp_SysfileTests, apzHp_SysfilePatch }, | |
4856 | ||
48bd9529 | 4857 | { zCxx_UnreadyName, zCxx_UnreadyList, |
f5b105ca | 4858 | apzCxx_UnreadyMachs, |
48bd9529 BK |
4859 | CXX_UNREADY_TEST_CT, FD_MACH_ONLY, |
4860 | aCxx_UnreadyTests, apzCxx_UnreadyPatch }, | |
06bbab1b BK |
4861 | |
4862 | { zHpux_MaxintName, zHpux_MaxintList, | |
f5b105ca | 4863 | apzHpux_MaxintMachs, |
06bbab1b BK |
4864 | HPUX_MAXINT_TEST_CT, FD_MACH_ONLY, |
4865 | aHpux_MaxintTests, apzHpux_MaxintPatch }, | |
4866 | ||
4867 | { zHpux_SystimeName, zHpux_SystimeList, | |
f5b105ca | 4868 | apzHpux_SystimeMachs, |
06bbab1b BK |
4869 | HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY, |
4870 | aHpux_SystimeTests, apzHpux_SystimePatch }, | |
4871 | ||
d7eb5a45 | 4872 | { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList, |
f5b105ca | 4873 | apzHpux8_Bogus_InlinesMachs, |
d7eb5a45 ZW |
4874 | HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY, |
4875 | aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch }, | |
4876 | ||
abf7cec7 | 4877 | { zHpux11_Uint32_CName, zHpux11_Uint32_CList, |
f5b105ca | 4878 | apzHpux11_Uint32_CMachs, |
abf7cec7 GRK |
4879 | HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY, |
4880 | aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch }, | |
4881 | ||
b51207a4 | 4882 | { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList, |
f5b105ca | 4883 | apzIsc_Omits_With_StdcMachs, |
b51207a4 ZW |
4884 | ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY, |
4885 | aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch }, | |
06bbab1b | 4886 | |
88acf854 BK |
4887 | { zIo_Quotes_UseName, zIo_Quotes_UseList, |
4888 | apzIo_Quotes_UseMachs, | |
4889 | IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
4890 | aIo_Quotes_UseTests, apzIo_Quotes_UsePatch }, | |
4891 | ||
4892 | { zIo_Quotes_DefName, zIo_Quotes_DefList, | |
4893 | apzIo_Quotes_DefMachs, | |
4894 | IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
4895 | aIo_Quotes_DefTests, apzIo_Quotes_DefPatch }, | |
4896 | ||
4897 | { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList, | |
4898 | apzCtrl_Quotes_UseMachs, | |
4899 | CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
4900 | aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch }, | |
4901 | ||
4902 | { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList, | |
4903 | apzCtrl_Quotes_DefMachs, | |
4904 | CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
4905 | aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch }, | |
06bbab1b BK |
4906 | |
4907 | { zIp_Missing_SemiName, zIp_Missing_SemiList, | |
f5b105ca | 4908 | apzIp_Missing_SemiMachs, |
06bbab1b BK |
4909 | IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY, |
4910 | aIp_Missing_SemiTests, apzIp_Missing_SemiPatch }, | |
4911 | ||
4912 | { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList, | |
f5b105ca | 4913 | apzIrix_Multiline_CmntMachs, |
06bbab1b BK |
4914 | IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY, |
4915 | aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch }, | |
4916 | ||
4917 | { zIrix_SockaddrName, zIrix_SockaddrList, | |
f5b105ca | 4918 | apzIrix_SockaddrMachs, |
06bbab1b BK |
4919 | IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY, |
4920 | aIrix_SockaddrTests, apzIrix_SockaddrPatch }, | |
4921 | ||
4922 | { zIrix_Struct__FileName, zIrix_Struct__FileList, | |
f5b105ca | 4923 | apzIrix_Struct__FileMachs, |
06bbab1b BK |
4924 | IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY, |
4925 | aIrix_Struct__FileTests, apzIrix_Struct__FilePatch }, | |
4926 | ||
94cc6036 | 4927 | { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList, |
f5b105ca | 4928 | apzIrix_Asm_ApostropheMachs, |
94cc6036 BK |
4929 | IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY, |
4930 | aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch }, | |
4931 | ||
06bbab1b | 4932 | { zIsc_FmodName, zIsc_FmodList, |
f5b105ca | 4933 | apzIsc_FmodMachs, |
06bbab1b BK |
4934 | ISC_FMOD_TEST_CT, FD_MACH_ONLY, |
4935 | aIsc_FmodTests, apzIsc_FmodPatch }, | |
4936 | ||
4937 | { zMotorola_NestedName, zMotorola_NestedList, | |
f5b105ca | 4938 | apzMotorola_NestedMachs, |
06bbab1b BK |
4939 | MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY, |
4940 | aMotorola_NestedTests, apzMotorola_NestedPatch }, | |
4941 | ||
4942 | { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList, | |
f5b105ca | 4943 | apzIsc_Sys_LimitsMachs, |
06bbab1b BK |
4944 | ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY, |
4945 | aIsc_Sys_LimitsTests, apzIsc_Sys_LimitsPatch }, | |
4946 | ||
4947 | { zKandr_ConcatName, zKandr_ConcatList, | |
f5b105ca | 4948 | apzKandr_ConcatMachs, |
06bbab1b BK |
4949 | KANDR_CONCAT_TEST_CT, FD_MACH_ONLY, |
4950 | aKandr_ConcatTests, apzKandr_ConcatPatch }, | |
4951 | ||
4952 | { zLimits_IfndefsName, zLimits_IfndefsList, | |
f5b105ca | 4953 | apzLimits_IfndefsMachs, |
06bbab1b BK |
4954 | LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY, |
4955 | aLimits_IfndefsTests, apzLimits_IfndefsPatch }, | |
4956 | ||
4957 | { zLynx_Void_IntName, zLynx_Void_IntList, | |
f5b105ca | 4958 | apzLynx_Void_IntMachs, |
06bbab1b BK |
4959 | LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY, |
4960 | aLynx_Void_IntTests, apzLynx_Void_IntPatch }, | |
4961 | ||
4962 | { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList, | |
f5b105ca | 4963 | apzLynxos_Fcntl_ProtoMachs, |
06bbab1b BK |
4964 | LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY, |
4965 | aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch }, | |
4966 | ||
4967 | { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList, | |
f5b105ca | 4968 | apzM88k_Bad_Hypot_OptMachs, |
06bbab1b BK |
4969 | M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY, |
4970 | aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch }, | |
4971 | ||
4972 | { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList, | |
f5b105ca | 4973 | apzM88k_Bad_S_IfMachs, |
06bbab1b BK |
4974 | M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY, |
4975 | aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch }, | |
4976 | ||
4977 | { zM88k_Multi_InclName, zM88k_Multi_InclList, | |
f5b105ca | 4978 | apzM88k_Multi_InclMachs, |
bb786201 | 4979 | M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, |
06bbab1b BK |
4980 | aM88k_Multi_InclTests, apzM88k_Multi_InclPatch }, |
4981 | ||
3be1fb72 | 4982 | { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, |
f5b105ca | 4983 | apzMachine_Ansi_H_Va_ListMachs, |
3be1fb72 ZW |
4984 | MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY, |
4985 | aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch }, | |
4986 | ||
06bbab1b | 4987 | { zMachine_NameName, zMachine_NameList, |
f5b105ca | 4988 | apzMachine_NameMachs, |
52c207e2 | 4989 | MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
06bbab1b BK |
4990 | aMachine_NameTests, apzMachine_NamePatch }, |
4991 | ||
4992 | { zMath_ExceptionName, zMath_ExceptionList, | |
f5b105ca | 4993 | apzMath_ExceptionMachs, |
06bbab1b BK |
4994 | MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY, |
4995 | aMath_ExceptionTests, apzMath_ExceptionPatch }, | |
4996 | ||
d7eb5a45 | 4997 | { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList, |
f5b105ca | 4998 | apzMath_Huge_Val_From_Dbl_MaxMachs, |
d7eb5a45 ZW |
4999 | MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, |
5000 | aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch }, | |
5001 | ||
5002 | { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList, | |
f5b105ca | 5003 | apzMath_Huge_Val_IfndefMachs, |
d7eb5a45 ZW |
5004 | MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY, |
5005 | aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch }, | |
06bbab1b | 5006 | |
06bbab1b | 5007 | { zNested_CommentName, zNested_CommentList, |
f5b105ca | 5008 | apzNested_CommentMachs, |
06bbab1b BK |
5009 | NESTED_COMMENT_TEST_CT, FD_MACH_ONLY, |
5010 | aNested_CommentTests, apzNested_CommentPatch }, | |
5011 | ||
5012 | { zNews_Os_RecursionName, zNews_Os_RecursionList, | |
f5b105ca | 5013 | apzNews_Os_RecursionMachs, |
06bbab1b BK |
5014 | NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY, |
5015 | aNews_Os_RecursionTests, apzNews_Os_RecursionPatch }, | |
5016 | ||
5017 | { zNext_Math_PrefixName, zNext_Math_PrefixList, | |
f5b105ca | 5018 | apzNext_Math_PrefixMachs, |
06bbab1b BK |
5019 | NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY, |
5020 | aNext_Math_PrefixTests, apzNext_Math_PrefixPatch }, | |
5021 | ||
5022 | { zNext_TemplateName, zNext_TemplateList, | |
f5b105ca | 5023 | apzNext_TemplateMachs, |
06bbab1b BK |
5024 | NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY, |
5025 | aNext_TemplateTests, apzNext_TemplatePatch }, | |
5026 | ||
5027 | { zNext_VolitileName, zNext_VolitileList, | |
f5b105ca | 5028 | apzNext_VolitileMachs, |
06bbab1b BK |
5029 | NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY, |
5030 | aNext_VolitileTests, apzNext_VolitilePatch }, | |
5031 | ||
5032 | { zNext_Wait_UnionName, zNext_Wait_UnionList, | |
f5b105ca | 5033 | apzNext_Wait_UnionMachs, |
06bbab1b BK |
5034 | NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY, |
5035 | aNext_Wait_UnionTests, apzNext_Wait_UnionPatch }, | |
5036 | ||
5037 | { zNodeent_SyntaxName, zNodeent_SyntaxList, | |
f5b105ca | 5038 | apzNodeent_SyntaxMachs, |
06bbab1b BK |
5039 | NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY, |
5040 | aNodeent_SyntaxTests, apzNodeent_SyntaxPatch }, | |
5041 | ||
5042 | { zOsf_Namespace_AName, zOsf_Namespace_AList, | |
f5b105ca | 5043 | apzOsf_Namespace_AMachs, |
06bbab1b BK |
5044 | OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY, |
5045 | aOsf_Namespace_ATests, apzOsf_Namespace_APatch }, | |
5046 | ||
5047 | { zOsf_Namespace_BName, zOsf_Namespace_BList, | |
f5b105ca | 5048 | apzOsf_Namespace_BMachs, |
06bbab1b BK |
5049 | OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY, |
5050 | aOsf_Namespace_BTests, apzOsf_Namespace_BPatch }, | |
5051 | ||
5052 | { zPthread_Page_SizeName, zPthread_Page_SizeList, | |
f5b105ca | 5053 | apzPthread_Page_SizeMachs, |
06bbab1b BK |
5054 | PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY, |
5055 | aPthread_Page_SizeTests, apzPthread_Page_SizePatch }, | |
5056 | ||
d71ef9d4 | 5057 | { zRead_Ret_TypeName, zRead_Ret_TypeList, |
f5b105ca | 5058 | apzRead_Ret_TypeMachs, |
d71ef9d4 BK |
5059 | READ_RET_TYPE_TEST_CT, FD_MACH_ONLY, |
5060 | aRead_Ret_TypeTests, apzRead_Ret_TypePatch }, | |
5061 | ||
06bbab1b | 5062 | { zRs6000_DoubleName, zRs6000_DoubleList, |
f5b105ca | 5063 | apzRs6000_DoubleMachs, |
06bbab1b BK |
5064 | RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY, |
5065 | aRs6000_DoubleTests, apzRs6000_DoublePatch }, | |
5066 | ||
5067 | { zRs6000_FchmodName, zRs6000_FchmodList, | |
f5b105ca | 5068 | apzRs6000_FchmodMachs, |
06bbab1b BK |
5069 | RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY, |
5070 | aRs6000_FchmodTests, apzRs6000_FchmodPatch }, | |
5071 | ||
5072 | { zRs6000_ParamName, zRs6000_ParamList, | |
f5b105ca | 5073 | apzRs6000_ParamMachs, |
06bbab1b BK |
5074 | RS6000_PARAM_TEST_CT, FD_MACH_ONLY, |
5075 | aRs6000_ParamTests, apzRs6000_ParamPatch }, | |
5076 | ||
4c188026 | 5077 | { zSco_Strict_AnsiName, zSco_Strict_AnsiList, |
f5b105ca | 5078 | apzSco_Strict_AnsiMachs, |
4c188026 BK |
5079 | SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY, |
5080 | aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch }, | |
5081 | ||
5082 | { zSco_Static_FuncName, zSco_Static_FuncList, | |
f5b105ca | 5083 | apzSco_Static_FuncMachs, |
4c188026 BK |
5084 | SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY, |
5085 | aSco_Static_FuncTests, apzSco_Static_FuncPatch }, | |
5086 | ||
5087 | { zSco_UtimeName, zSco_UtimeList, | |
f5b105ca | 5088 | apzSco_UtimeMachs, |
4c188026 BK |
5089 | SCO_UTIME_TEST_CT, FD_MACH_ONLY, |
5090 | aSco_UtimeTests, apzSco_UtimePatch }, | |
5091 | ||
06bbab1b | 5092 | { zSony_IncludeName, zSony_IncludeList, |
f5b105ca | 5093 | apzSony_IncludeMachs, |
06bbab1b BK |
5094 | SONY_INCLUDE_TEST_CT, FD_MACH_ONLY, |
5095 | aSony_IncludeTests, apzSony_IncludePatch }, | |
5096 | ||
5097 | { zStatsswtchName, zStatsswtchList, | |
f5b105ca | 5098 | apzStatsswtchMachs, |
06bbab1b BK |
5099 | STATSSWTCH_TEST_CT, FD_MACH_ONLY, |
5100 | aStatsswtchTests, apzStatsswtchPatch }, | |
5101 | ||
3be1fb72 | 5102 | { zStdio_Stdarg_HName, zStdio_Stdarg_HList, |
f5b105ca | 5103 | apzStdio_Stdarg_HMachs, |
3be1fb72 ZW |
5104 | STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY, |
5105 | aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch }, | |
5106 | ||
06bbab1b | 5107 | { zStdio_Va_ListName, zStdio_Va_ListList, |
f5b105ca | 5108 | apzStdio_Va_ListMachs, |
3be1fb72 | 5109 | STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY, |
06bbab1b BK |
5110 | aStdio_Va_ListTests, apzStdio_Va_ListPatch }, |
5111 | ||
4c188026 | 5112 | { zSun_Auth_ProtoName, zSun_Auth_ProtoList, |
f5b105ca | 5113 | apzSun_Auth_ProtoMachs, |
4c188026 BK |
5114 | SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY, |
5115 | aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch }, | |
5116 | ||
06bbab1b | 5117 | { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList, |
f5b105ca | 5118 | apzSun_Bogus_IfdefMachs, |
06bbab1b BK |
5119 | SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY, |
5120 | aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch }, | |
5121 | ||
5122 | { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList, | |
f5b105ca | 5123 | apzSun_Bogus_Ifdef_Sun4cMachs, |
06bbab1b BK |
5124 | SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY, |
5125 | aSun_Bogus_Ifdef_Sun4cTests, apzSun_Bogus_Ifdef_Sun4cPatch }, | |
5126 | ||
5127 | { zSun_CatmacroName, zSun_CatmacroList, | |
f5b105ca | 5128 | apzSun_CatmacroMachs, |
06bbab1b BK |
5129 | SUN_CATMACRO_TEST_CT, FD_MACH_ONLY, |
5130 | aSun_CatmacroTests, apzSun_CatmacroPatch }, | |
5131 | ||
5132 | { zSun_MallocName, zSun_MallocList, | |
f5b105ca | 5133 | apzSun_MallocMachs, |
06bbab1b BK |
5134 | SUN_MALLOC_TEST_CT, FD_MACH_ONLY, |
5135 | aSun_MallocTests, apzSun_MallocPatch }, | |
5136 | ||
06bbab1b | 5137 | { zSun_Rusers_SemiName, zSun_Rusers_SemiList, |
f5b105ca | 5138 | apzSun_Rusers_SemiMachs, |
06bbab1b BK |
5139 | SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY, |
5140 | aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch }, | |
5141 | ||
5142 | { zSun_SignalName, zSun_SignalList, | |
f5b105ca | 5143 | apzSun_SignalMachs, |
06bbab1b BK |
5144 | SUN_SIGNAL_TEST_CT, FD_MACH_ONLY, |
5145 | aSun_SignalTests, apzSun_SignalPatch }, | |
5146 | ||
06bbab1b | 5147 | { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList, |
f5b105ca | 5148 | apzSunos_Matherr_DeclMachs, |
06bbab1b BK |
5149 | SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY, |
5150 | aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch }, | |
5151 | ||
5152 | { zSunos_StrlenName, zSunos_StrlenList, | |
f5b105ca | 5153 | apzSunos_StrlenMachs, |
06bbab1b BK |
5154 | SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY, |
5155 | aSunos_StrlenTests, apzSunos_StrlenPatch }, | |
5156 | ||
4c188026 | 5157 | { zSvr4_GetcwdName, zSvr4_GetcwdList, |
f5b105ca | 5158 | apzSvr4_GetcwdMachs, |
4c188026 BK |
5159 | SVR4_GETCWD_TEST_CT, FD_MACH_ONLY, |
5160 | aSvr4_GetcwdTests, apzSvr4_GetcwdPatch }, | |
5161 | ||
5162 | { zSvr4_ProfilName, zSvr4_ProfilList, | |
f5b105ca | 5163 | apzSvr4_ProfilMachs, |
4c188026 BK |
5164 | SVR4_PROFIL_TEST_CT, FD_MACH_ONLY, |
5165 | aSvr4_ProfilTests, apzSvr4_ProfilPatch }, | |
5166 | ||
06bbab1b | 5167 | { zSystypesName, zSystypesList, |
f5b105ca | 5168 | apzSystypesMachs, |
06bbab1b BK |
5169 | SYSTYPES_TEST_CT, FD_MACH_ONLY, |
5170 | aSystypesTests, apzSystypesPatch }, | |
5171 | ||
3be1fb72 | 5172 | { zSystypes_Stdlib_Size_TName, zSystypes_Stdlib_Size_TList, |
f5b105ca | 5173 | apzSystypes_Stdlib_Size_TMachs, |
3be1fb72 ZW |
5174 | SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY, |
5175 | aSystypes_Stdlib_Size_TTests, apzSystypes_Stdlib_Size_TPatch }, | |
06bbab1b BK |
5176 | |
5177 | { zSysv68_StringName, zSysv68_StringList, | |
f5b105ca | 5178 | apzSysv68_StringMachs, |
06bbab1b BK |
5179 | SYSV68_STRING_TEST_CT, FD_MACH_ONLY, |
5180 | aSysv68_StringTests, apzSysv68_StringPatch }, | |
5181 | ||
5182 | { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList, | |
f5b105ca | 5183 | apzSysz_Stdlib_For_SunMachs, |
06bbab1b BK |
5184 | SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY, |
5185 | aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch }, | |
5186 | ||
5187 | { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList, | |
f5b105ca | 5188 | apzSysz_Stdtypes_For_SunMachs, |
06bbab1b BK |
5189 | SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY, |
5190 | aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch }, | |
5191 | ||
5192 | { zTinfo_CplusplusName, zTinfo_CplusplusList, | |
f5b105ca | 5193 | apzTinfo_CplusplusMachs, |
06bbab1b BK |
5194 | TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY, |
5195 | aTinfo_CplusplusTests, apzTinfo_CplusplusPatch }, | |
5196 | ||
1f414ac4 | 5197 | { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList, |
f5b105ca | 5198 | apzUltrix_Fix_FixprotoMachs, |
1f414ac4 BK |
5199 | ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY, |
5200 | aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch }, | |
5201 | ||
06bbab1b | 5202 | { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList, |
f5b105ca | 5203 | apzUltrix_Atof_ParamMachs, |
06bbab1b BK |
5204 | ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY, |
5205 | aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch }, | |
5206 | ||
5207 | { zUltrix_ConstName, zUltrix_ConstList, | |
f5b105ca | 5208 | apzUltrix_ConstMachs, |
06bbab1b BK |
5209 | ULTRIX_CONST_TEST_CT, FD_MACH_ONLY, |
5210 | aUltrix_ConstTests, apzUltrix_ConstPatch }, | |
5211 | ||
5212 | { zUltrix_IfdefName, zUltrix_IfdefList, | |
f5b105ca | 5213 | apzUltrix_IfdefMachs, |
06bbab1b BK |
5214 | ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY, |
5215 | aUltrix_IfdefTests, apzUltrix_IfdefPatch }, | |
5216 | ||
5217 | { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList, | |
f5b105ca | 5218 | apzUltrix_Nested_CmntMachs, |
06bbab1b BK |
5219 | ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY, |
5220 | aUltrix_Nested_CmntTests, apzUltrix_Nested_CmntPatch }, | |
5221 | ||
5222 | { zUltrix_StaticName, zUltrix_StaticList, | |
f5b105ca | 5223 | apzUltrix_StaticMachs, |
06bbab1b BK |
5224 | ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY, |
5225 | aUltrix_StaticTests, apzUltrix_StaticPatch }, | |
5226 | ||
5227 | { zUndefine_NullName, zUndefine_NullList, | |
f5b105ca | 5228 | apzUndefine_NullMachs, |
06bbab1b BK |
5229 | UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY, |
5230 | aUndefine_NullTests, apzUndefine_NullPatch }, | |
5231 | ||
86765ca0 | 5232 | { zUnixware7_Byteorder_FixName, zUnixware7_Byteorder_FixList, |
f5b105ca | 5233 | apzUnixware7_Byteorder_FixMachs, |
86765ca0 RL |
5234 | UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY, |
5235 | aUnixware7_Byteorder_FixTests, apzUnixware7_Byteorder_FixPatch }, | |
5236 | ||
06bbab1b | 5237 | { zVa_I960_MacroName, zVa_I960_MacroList, |
f5b105ca | 5238 | apzVa_I960_MacroMachs, |
06bbab1b BK |
5239 | VA_I960_MACRO_TEST_CT, FD_MACH_ONLY, |
5240 | aVa_I960_MacroTests, apzVa_I960_MacroPatch }, | |
5241 | ||
5242 | { zVoid_NullName, zVoid_NullList, | |
f5b105ca | 5243 | apzVoid_NullMachs, |
06bbab1b BK |
5244 | VOID_NULL_TEST_CT, FD_MACH_ONLY, |
5245 | aVoid_NullTests, apzVoid_NullPatch }, | |
5246 | ||
5247 | { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList, | |
f5b105ca | 5248 | apzVxworks_Gcc_ProblemMachs, |
06bbab1b BK |
5249 | VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY, |
5250 | aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch }, | |
5251 | ||
5252 | { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList, | |
f5b105ca | 5253 | apzVxworks_Needs_VxtypesMachs, |
06bbab1b BK |
5254 | VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY, |
5255 | aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch }, | |
5256 | ||
5257 | { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList, | |
f5b105ca | 5258 | apzVxworks_Needs_VxworksMachs, |
06bbab1b BK |
5259 | VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY, |
5260 | aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch }, | |
5261 | ||
5262 | { zVxworks_TimeName, zVxworks_TimeList, | |
f5b105ca | 5263 | apzVxworks_TimeMachs, |
06bbab1b BK |
5264 | VXWORKS_TIME_TEST_CT, FD_MACH_ONLY, |
5265 | aVxworks_TimeTests, apzVxworks_TimePatch }, | |
5266 | ||
5267 | { zX11_ClassName, zX11_ClassList, | |
f5b105ca | 5268 | apzX11_ClassMachs, |
06bbab1b BK |
5269 | X11_CLASS_TEST_CT, FD_MACH_ONLY, |
5270 | aX11_ClassTests, apzX11_ClassPatch }, | |
5271 | ||
5272 | { zX11_Class_UsageName, zX11_Class_UsageList, | |
f5b105ca | 5273 | apzX11_Class_UsageMachs, |
06bbab1b BK |
5274 | X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY, |
5275 | aX11_Class_UsageTests, apzX11_Class_UsagePatch }, | |
5276 | ||
5277 | { zX11_NewName, zX11_NewList, | |
f5b105ca | 5278 | apzX11_NewMachs, |
06bbab1b BK |
5279 | X11_NEW_TEST_CT, FD_MACH_ONLY, |
5280 | aX11_NewTests, apzX11_NewPatch }, | |
5281 | ||
5282 | { zX11_SprintfName, zX11_SprintfList, | |
f5b105ca | 5283 | apzX11_SprintfMachs, |
06bbab1b | 5284 | X11_SPRINTF_TEST_CT, FD_MACH_ONLY, |
5abc1f74 | 5285 | aX11_SprintfTests, apzX11_SprintfPatch } |
06bbab1b | 5286 | }; |