1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Saturday September 6, 2008 at 11:42:15 AM PDT
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Sep 6 11:42:15 PDT 2008
11 * You must regenerate it. Use the ./genfixes script.
14 * This is part of the fixincl program used to install modified versions of
15 * certain ANSI-incompatible system header files which are fixed to work
16 * correctly with ANSI C and placed in a directory that GNU C will search.
18 * This file contains 177 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
24 * The Free Software Foundation, Inc.
26 * inclhack is free software: you can redistribute it and/or modify it
27 * under the terms of the GNU General Public License as published by the
28 * Free Software Foundation, either version 3 of the License, or
29 * (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful, but
32 * WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License along
37 * with this program. If not, see <http://www.gnu.org/licenses/>.
40 #define SED_PROGRAM "/usr/bin/sed"
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Aix_Stdio fix
48 tSCC zAab_Aix_StdioName[] =
52 * File name selection pattern
54 tSCC zAab_Aix_StdioList[] =
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Aix_StdioMachs[] = {
64 * content selection pattern - do fix if pattern found
66 tSCC zAab_Aix_StdioSelect0[] =
67 "define fopen fopen64";
69 #define AAB_AIX_STDIO_TEST_CT 1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74 * Fix Command Arguments for Aab_Aix_Stdio
76 static const char* apzAab_Aix_StdioPatch[] = {
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
89 /* Alias the symbols using asm */\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
106 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107 "AAB_darwin7_9_long_double_funcs";
110 * File name selection pattern
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113 "architecture/ppc/math.h\0";
115 * Machine/OS name selection pattern
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
122 * content bypass pattern - skip fix if pattern found
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
127 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
128 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
132 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
134 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135 "/* This file prototypes the long double functions available on Mac OS\n\
138 # undef __APPLE_CC__\n\
139 # define __APPLE_CC__ 1345\n\
140 # include_next <architecture/ppc/math.h>\n\
141 # undef __APPLE_CC__\n\
142 # define __APPLE_CC__ 1\n\
143 # ifndef __LIBMLDBL_COMPAT\n\
144 # ifdef __LONG_DOUBLE_128__\n\
145 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
147 # define __LIBMLDBL_COMPAT(sym)\n\
148 # endif /* __LONG_DOUBLE_128__ */\n\
149 # endif /* __LIBMLDBL_COMPAT */\n\
150 # ifdef __cplusplus\n\
153 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
154 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
155 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
156 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
157 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
158 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
159 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
160 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
161 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
162 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
163 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
164 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
165 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
166 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
167 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
168 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
169 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
170 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
171 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
172 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
173 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
174 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
175 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
176 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
177 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
178 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
179 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
180 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
181 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
182 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
183 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
184 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
185 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
186 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
187 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
188 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
189 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
190 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
191 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
192 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
193 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
194 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
195 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
196 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
197 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
198 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
199 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
200 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
201 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
202 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
203 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
204 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
205 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
206 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
207 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
208 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
209 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
210 # ifdef __cplusplus\n\
213 #endif /* __MATH__ */",
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
218 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
220 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221 "AAB_darwin7_9_long_double_funcs_2";
224 * File name selection pattern
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
229 * Machine/OS name selection pattern
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
236 * content selection pattern - do fix if pattern found
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239 "#include[ \\t]+\\\"";
241 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
242 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
246 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
248 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
251 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
256 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
258 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
259 "AAB_fd_zero_asm_posix_types_h";
262 * File name selection pattern
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265 "asm/posix_types.h\0";
267 * Machine/OS name selection pattern
269 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
270 "i[34567]86-*-linux*",
274 * content bypass pattern - skip fix if pattern found
276 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
278 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
283 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
284 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
285 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
286 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
287 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
290 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
292 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
293 "/* This file fixes a bug in the __FD_ZERO macro\n\
294 for older versions of the Linux kernel. */\n\
295 #ifndef _POSIX_TYPES_H_WRAPPER\n\
296 #include <features.h>\n\
297 #include_next <asm/posix_types.h>\n\n\
298 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
300 #define __FD_ZERO(fdsetp) \\\n\
302 int __d0, __d1; \\\n\
303 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
304 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
305 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
306 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
309 #define _POSIX_TYPES_H_WRAPPER\n\
310 #endif /* _POSIX_TYPES_H_WRAPPER */",
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
315 * Description of Aab_Fd_Zero_Gnu_Types_H fix
317 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
318 "AAB_fd_zero_gnu_types_h";
321 * File name selection pattern
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
326 * Machine/OS name selection pattern
328 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
329 "i[34567]86-*-linux*",
331 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
332 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
335 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
337 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
338 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
339 #ifndef _TYPES_H_WRAPPER\n\
340 #include <features.h>\n\
341 #include_next <gnu/types.h>\n\n\
342 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
344 # define __FD_ZERO(fdsetp) \\\n\
346 int __d0, __d1; \\\n\
347 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
348 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
349 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
350 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
353 #define _TYPES_H_WRAPPER\n\
354 #endif /* _TYPES_H_WRAPPER */",
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
359 * Description of Aab_Fd_Zero_Selectbits_H fix
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362 "AAB_fd_zero_selectbits_h";
365 * File name selection pattern
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
370 * Machine/OS name selection pattern
372 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
373 "i[34567]86-*-linux*",
375 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
376 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
379 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
381 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
382 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
383 #ifndef _SELECTBITS_H_WRAPPER\n\
384 #include <features.h>\n\
385 #include_next <selectbits.h>\n\n\
386 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
387 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
388 && __GLIBC_MINOR__ == 0\n\
390 #define __FD_ZERO(fdsetp) \\\\\n\
392 int __d0, __d1; \\\\\n\
393 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
394 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
395 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
396 / sizeof (__fd_mask)), \\\\\n\
397 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
398 : \"memory\"); \\\\\n\
401 #define _SELECTBITS_H_WRAPPER\n\
402 #endif /* _SELECTBITS_H_WRAPPER */",
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
407 * Description of Aab_Solaris_Sys_Varargs_H fix
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410 "AAB_solaris_sys_varargs_h";
413 * File name selection pattern
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
418 * Machine/OS name selection pattern
420 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
423 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
424 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
427 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
429 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
431 #include <stdarg.h>\n\
433 #include <varargs.h>\n\
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 * Description of Aab_Sun_Memcpy fix
441 tSCC zAab_Sun_MemcpyName[] =
445 * File name selection pattern
447 tSCC zAab_Sun_MemcpyList[] =
450 * Machine/OS name selection pattern
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
455 * content selection pattern - do fix if pattern found
457 tSCC zAab_Sun_MemcpySelect0[] =
458 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
460 #define AAB_SUN_MEMCPY_TEST_CT 1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
465 * Fix Command Arguments for Aab_Sun_Memcpy
467 static const char* apzAab_Sun_MemcpyPatch[] = {
468 "/* This file was generated by fixincludes */\n\
469 #ifndef __memory_h__\n\
470 #define __memory_h__\n\n\
472 extern void *memccpy();\n\
473 extern void *memchr();\n\
474 extern void *memcpy();\n\
475 extern void *memset();\n\
477 extern char *memccpy();\n\
478 extern char *memchr();\n\
479 extern char *memcpy();\n\
480 extern char *memset();\n\
481 #endif /* __STDC__ */\n\n\
482 extern int memcmp();\n\n\
483 #endif /* __memory_h__ */",
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
488 * Description of Aix_Pthread fix
490 tSCC zAix_PthreadName[] =
494 * File name selection pattern
496 tSCC zAix_PthreadList[] =
499 * Machine/OS name selection pattern
501 #define apzAix_PthreadMachs (const char**)NULL
504 * content selection pattern - do fix if pattern found
506 tSCC zAix_PthreadSelect0[] =
507 "(#define [A-Za-z_0-9]+)(\\\\\n\
511 #define AIX_PTHREAD_TEST_CT 1
512 static tTestDesc aAix_PthreadTests[] = {
513 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
516 * Fix Command Arguments for Aix_Pthread
518 static const char* apzAix_PthreadPatch[] = {
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525 * Description of Aix_Sysmachine fix
527 tSCC zAix_SysmachineName[] =
531 * File name selection pattern
533 tSCC zAix_SysmachineList[] =
536 * Machine/OS name selection pattern
538 #define apzAix_SysmachineMachs (const char**)NULL
541 * content selection pattern - do fix if pattern found
543 tSCC zAix_SysmachineSelect0[] =
546 #define AIX_SYSMACHINE_TEST_CT 1
547 static tTestDesc aAix_SysmachineTests[] = {
548 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
551 * Fix Command Arguments for Aix_Sysmachine
553 static const char* apzAix_SysmachinePatch[] = {
558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
560 * Description of Aix_Syswait fix
562 tSCC zAix_SyswaitName[] =
566 * File name selection pattern
568 tSCC zAix_SyswaitList[] =
571 * Machine/OS name selection pattern
573 #define apzAix_SyswaitMachs (const char**)NULL
576 * content selection pattern - do fix if pattern found
578 tSCC zAix_SyswaitSelect0[] =
579 "^extern pid_t wait3\\(\\);\n";
580 tSCC zAix_SyswaitSelect1[] =
583 #define AIX_SYSWAIT_TEST_CT 2
584 static tTestDesc aAix_SyswaitTests[] = {
585 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
586 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
589 * Fix Command Arguments for Aix_Syswait
591 static const char* apzAix_SyswaitPatch[] = {
597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
599 * Description of Aix_Syswait_2 fix
601 tSCC zAix_Syswait_2Name[] =
605 * File name selection pattern
607 tSCC zAix_Syswait_2List[] =
610 * Machine/OS name selection pattern
612 #define apzAix_Syswait_2Machs (const char**)NULL
615 * content selection pattern - do fix if pattern found
617 tSCC zAix_Syswait_2Select0[] =
618 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
620 #define AIX_SYSWAIT_2_TEST_CT 1
621 static tTestDesc aAix_Syswait_2Tests[] = {
622 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
625 * Fix Command Arguments for Aix_Syswait_2
627 static const char* apzAix_Syswait_2Patch[] = {
632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
634 * Description of Aix_Volatile fix
636 tSCC zAix_VolatileName[] =
640 * File name selection pattern
642 tSCC zAix_VolatileList[] =
645 * Machine/OS name selection pattern
647 #define apzAix_VolatileMachs (const char**)NULL
650 * content selection pattern - do fix if pattern found
652 tSCC zAix_VolatileSelect0[] =
653 "typedef volatile int sig_atomic_t";
655 #define AIX_VOLATILE_TEST_CT 1
656 static tTestDesc aAix_VolatileTests[] = {
657 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
660 * Fix Command Arguments for Aix_Volatile
662 static const char* apzAix_VolatilePatch[] = {
664 "typedef int sig_atomic_t",
667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
669 * Description of Alpha___Assert fix
671 tSCC zAlpha___AssertName[] =
675 * File name selection pattern
677 tSCC zAlpha___AssertList[] =
680 * Machine/OS name selection pattern
682 #define apzAlpha___AssertMachs (const char**)NULL
685 * content selection pattern - do fix if pattern found
687 tSCC zAlpha___AssertSelect0[] =
688 "__assert\\(char \\*, char \\*, int\\)";
690 #define ALPHA___ASSERT_TEST_CT 1
691 static tTestDesc aAlpha___AssertTests[] = {
692 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
695 * Fix Command Arguments for Alpha___Assert
697 static const char* apzAlpha___AssertPatch[] = {
699 "__assert(const char *, const char *, int)",
702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
704 * Description of Alpha___Extern_Prefix fix
706 tSCC zAlpha___Extern_PrefixName[] =
707 "alpha___extern_prefix";
710 * File name selection pattern
712 #define zAlpha___Extern_PrefixList (char*)NULL
714 * Machine/OS name selection pattern
716 tSCC* apzAlpha___Extern_PrefixMachs[] = {
721 * content selection pattern - do fix if pattern found
723 tSCC zAlpha___Extern_PrefixSelect0[] =
724 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
725 (#[ \t]*pragma[ \t]*extern_prefix.*)";
727 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
728 static tTestDesc aAlpha___Extern_PrefixTests[] = {
729 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
732 * Fix Command Arguments for Alpha___Extern_Prefix
734 static const char* apzAlpha___Extern_PrefixPatch[] = {
736 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
742 * Description of Alpha___Extern_Prefix_Standards fix
744 tSCC zAlpha___Extern_Prefix_StandardsName[] =
745 "alpha___extern_prefix_standards";
748 * File name selection pattern
750 tSCC zAlpha___Extern_Prefix_StandardsList[] =
753 * Machine/OS name selection pattern
755 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
760 * content selection pattern - do fix if pattern found
762 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
763 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
765 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
766 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
767 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
770 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
772 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
774 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
779 * Description of Alpha___Extern_Prefix_Sys_Stat fix
781 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
782 "alpha___extern_prefix_sys_stat";
785 * File name selection pattern
787 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
788 "sys/stat.h\0sys/mount.h\0";
790 * Machine/OS name selection pattern
792 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
797 * content selection pattern - do fix if pattern found
799 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
800 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
802 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
803 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
804 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
807 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
809 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
811 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
816 * Description of Alpha_Assert fix
818 tSCC zAlpha_AssertName[] =
822 * File name selection pattern
824 tSCC zAlpha_AssertList[] =
827 * Machine/OS name selection pattern
829 #define apzAlpha_AssertMachs (const char**)NULL
832 * content selection pattern - do fix if pattern found
834 tSCC zAlpha_AssertSelect0[] =
835 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
837 #define ALPHA_ASSERT_TEST_CT 1
838 static tTestDesc aAlpha_AssertTests[] = {
839 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
842 * Fix Command Arguments for Alpha_Assert
844 static const char* apzAlpha_AssertPatch[] = {
849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
851 * Description of Alpha_Bad_Lval fix
853 tSCC zAlpha_Bad_LvalName[] =
857 * File name selection pattern
859 #define zAlpha_Bad_LvalList (char*)NULL
861 * Machine/OS name selection pattern
863 tSCC* apzAlpha_Bad_LvalMachs[] = {
868 * content selection pattern - do fix if pattern found
870 tSCC zAlpha_Bad_LvalSelect0[] =
871 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
873 #define ALPHA_BAD_LVAL_TEST_CT 1
874 static tTestDesc aAlpha_Bad_LvalTests[] = {
875 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
878 * Fix Command Arguments for Alpha_Bad_Lval
880 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
881 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
886 * Description of Alpha_Getopt fix
888 tSCC zAlpha_GetoptName[] =
892 * File name selection pattern
894 tSCC zAlpha_GetoptList[] =
895 "stdio.h\0stdlib.h\0";
897 * Machine/OS name selection pattern
899 #define apzAlpha_GetoptMachs (const char**)NULL
902 * content selection pattern - do fix if pattern found
904 tSCC zAlpha_GetoptSelect0[] =
905 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
907 #define ALPHA_GETOPT_TEST_CT 1
908 static tTestDesc aAlpha_GetoptTests[] = {
909 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
912 * Fix Command Arguments for Alpha_Getopt
914 static const char* apzAlpha_GetoptPatch[] = {
916 "getopt(int, char *const[], const char *)",
919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
921 * Description of Alpha_Parens fix
923 tSCC zAlpha_ParensName[] =
927 * File name selection pattern
929 tSCC zAlpha_ParensList[] =
932 * Machine/OS name selection pattern
934 #define apzAlpha_ParensMachs (const char**)NULL
937 * content selection pattern - do fix if pattern found
939 tSCC zAlpha_ParensSelect0[] =
940 "#ifndef\\(__mips64\\)";
942 #define ALPHA_PARENS_TEST_CT 1
943 static tTestDesc aAlpha_ParensTests[] = {
944 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
947 * Fix Command Arguments for Alpha_Parens
949 static const char* apzAlpha_ParensPatch[] = {
954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
956 * Description of Alpha_Pthread fix
958 tSCC zAlpha_PthreadName[] =
962 * File name selection pattern
964 tSCC zAlpha_PthreadList[] =
967 * Machine/OS name selection pattern
969 tSCC* apzAlpha_PthreadMachs[] = {
974 * content selection pattern - do fix if pattern found
976 tSCC zAlpha_PthreadSelect0[] =
977 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
978 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
980 #define ALPHA_PTHREAD_TEST_CT 1
981 static tTestDesc aAlpha_PthreadTests[] = {
982 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
985 * Fix Command Arguments for Alpha_Pthread
987 static const char* apzAlpha_PthreadPatch[] = {
989 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
995 * Description of Alpha_Pthread_Gcc fix
997 tSCC zAlpha_Pthread_GccName[] =
1001 * File name selection pattern
1003 tSCC zAlpha_Pthread_GccList[] =
1006 * Machine/OS name selection pattern
1008 tSCC* apzAlpha_Pthread_GccMachs[] = {
1010 (const char*)NULL };
1013 * content selection pattern - do fix if pattern found
1015 tSCC zAlpha_Pthread_GccSelect0[] =
1017 # error <pthread.h>: unrecognized compiler.";
1019 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1020 static tTestDesc aAlpha_Pthread_GccTests[] = {
1021 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1024 * Fix Command Arguments for Alpha_Pthread_Gcc
1026 static const char* apzAlpha_Pthread_GccPatch[] = {
1028 "#elif defined (__GNUC__)\n\
1029 # define _PTHREAD_ENV_GCC\n\
1033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1035 * Description of Alpha_Pthread_Init fix
1037 tSCC zAlpha_Pthread_InitName[] =
1038 "alpha_pthread_init";
1041 * File name selection pattern
1043 tSCC zAlpha_Pthread_InitList[] =
1046 * Machine/OS name selection pattern
1048 tSCC* apzAlpha_Pthread_InitMachs[] = {
1050 (const char*)NULL };
1053 * content selection pattern - do fix if pattern found
1055 tSCC zAlpha_Pthread_InitSelect0[] =
1056 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1058 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1059 static tTestDesc aAlpha_Pthread_InitTests[] = {
1060 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1063 * Fix Command Arguments for Alpha_Pthread_Init
1065 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1066 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1067 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1068 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1069 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1070 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1071 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1076 * Description of Alpha_Sbrk fix
1078 tSCC zAlpha_SbrkName[] =
1082 * File name selection pattern
1084 tSCC zAlpha_SbrkList[] =
1087 * Machine/OS name selection pattern
1089 #define apzAlpha_SbrkMachs (const char**)NULL
1092 * content selection pattern - do fix if pattern found
1094 tSCC zAlpha_SbrkSelect0[] =
1095 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1097 #define ALPHA_SBRK_TEST_CT 1
1098 static tTestDesc aAlpha_SbrkTests[] = {
1099 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1102 * Fix Command Arguments for Alpha_Sbrk
1104 static const char* apzAlpha_SbrkPatch[] = {
1109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1111 * Description of Alpha_Wchar fix
1113 tSCC zAlpha_WcharName[] =
1117 * File name selection pattern
1119 tSCC zAlpha_WcharList[] =
1122 * Machine/OS name selection pattern
1124 tSCC* apzAlpha_WcharMachs[] = {
1126 (const char*)NULL };
1129 * content selection pattern - do fix if pattern found
1131 tSCC zAlpha_WcharSelect0[] =
1132 "#define wcstok wcstok_r";
1134 #define ALPHA_WCHAR_TEST_CT 1
1135 static tTestDesc aAlpha_WcharTests[] = {
1136 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1139 * Fix Command Arguments for Alpha_Wchar
1141 static const char* apzAlpha_WcharPatch[] = { sed_cmd_z,
1142 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1143 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1148 * Description of Avoid_Bool_Define fix
1150 tSCC zAvoid_Bool_DefineName[] =
1151 "avoid_bool_define";
1154 * File name selection pattern
1156 tSCC zAvoid_Bool_DefineList[] =
1157 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1159 * Machine/OS name selection pattern
1161 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1164 * content selection pattern - do fix if pattern found
1166 tSCC zAvoid_Bool_DefineSelect0[] =
1167 "#[ \t]*define[ \t]+bool[ \t]";
1170 * content bypass pattern - skip fix if pattern found
1172 tSCC zAvoid_Bool_DefineBypass0[] =
1175 #define AVOID_BOOL_DEFINE_TEST_CT 2
1176 static tTestDesc aAvoid_Bool_DefineTests[] = {
1177 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1178 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1181 * Fix Command Arguments for Avoid_Bool_Define
1183 static const char* apzAvoid_Bool_DefinePatch[] = {
1185 "#ifndef __cplusplus\n\
1188 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1193 * Description of Avoid_Bool_Type fix
1195 tSCC zAvoid_Bool_TypeName[] =
1199 * File name selection pattern
1201 tSCC zAvoid_Bool_TypeList[] =
1202 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1204 * Machine/OS name selection pattern
1206 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1209 * content selection pattern - do fix if pattern found
1211 tSCC zAvoid_Bool_TypeSelect0[] =
1212 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1215 * content bypass pattern - skip fix if pattern found
1217 tSCC zAvoid_Bool_TypeBypass0[] =
1220 #define AVOID_BOOL_TYPE_TEST_CT 2
1221 static tTestDesc aAvoid_Bool_TypeTests[] = {
1222 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1223 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1226 * Fix Command Arguments for Avoid_Bool_Type
1228 static const char* apzAvoid_Bool_TypePatch[] = {
1230 "#ifndef __cplusplus\n\
1235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1237 * Description of Avoid_Wchar_T_Type fix
1239 tSCC zAvoid_Wchar_T_TypeName[] =
1240 "avoid_wchar_t_type";
1243 * File name selection pattern
1245 #define zAvoid_Wchar_T_TypeList (char*)NULL
1247 * Machine/OS name selection pattern
1249 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1252 * content selection pattern - do fix if pattern found
1254 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1255 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1258 * content bypass pattern - skip fix if pattern found
1260 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1262 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1264 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1265 "XFree86: xc/lib/X11/Xlib\\.h";
1267 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1268 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1269 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1270 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1271 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1272 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1275 * Fix Command Arguments for Avoid_Wchar_T_Type
1277 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1279 "#ifndef __cplusplus\n\
1284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1286 * Description of Bad_Struct_Term fix
1288 tSCC zBad_Struct_TermName[] =
1292 * File name selection pattern
1294 tSCC zBad_Struct_TermList[] =
1297 * Machine/OS name selection pattern
1299 #define apzBad_Struct_TermMachs (const char**)NULL
1302 * content selection pattern - do fix if pattern found
1304 tSCC zBad_Struct_TermSelect0[] =
1305 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1307 #define BAD_STRUCT_TERM_TEST_CT 1
1308 static tTestDesc aBad_Struct_TermTests[] = {
1309 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1312 * Fix Command Arguments for Bad_Struct_Term
1314 static const char* apzBad_Struct_TermPatch[] = {
1319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1321 * Description of Badquote fix
1323 tSCC zBadquoteName[] =
1327 * File name selection pattern
1329 tSCC zBadquoteList[] =
1330 "sundev/vuid_event.h\0";
1332 * Machine/OS name selection pattern
1334 #define apzBadquoteMachs (const char**)NULL
1337 * content selection pattern - do fix if pattern found
1339 tSCC zBadquoteSelect0[] =
1342 #define BADQUOTE_TEST_CT 1
1343 static tTestDesc aBadquoteTests[] = {
1344 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1347 * Fix Command Arguments for Badquote
1349 static const char* apzBadquotePatch[] = {
1354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1356 * Description of Broken_Assert_Stdio fix
1358 tSCC zBroken_Assert_StdioName[] =
1359 "broken_assert_stdio";
1362 * File name selection pattern
1364 tSCC zBroken_Assert_StdioList[] =
1367 * Machine/OS name selection pattern
1369 #define apzBroken_Assert_StdioMachs (const char**)NULL
1372 * content selection pattern - do fix if pattern found
1374 tSCC zBroken_Assert_StdioSelect0[] =
1378 * content bypass pattern - skip fix if pattern found
1380 tSCC zBroken_Assert_StdioBypass0[] =
1381 "include.*stdio\\.h";
1383 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1384 static tTestDesc aBroken_Assert_StdioTests[] = {
1385 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1386 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1389 * Fix Command Arguments for Broken_Assert_Stdio
1391 static const char* apzBroken_Assert_StdioPatch[] = {
1393 "#include <stdio.h>\n",
1396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1398 * Description of Broken_Assert_Stdlib fix
1400 tSCC zBroken_Assert_StdlibName[] =
1401 "broken_assert_stdlib";
1404 * File name selection pattern
1406 tSCC zBroken_Assert_StdlibList[] =
1409 * Machine/OS name selection pattern
1411 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1414 * content selection pattern - do fix if pattern found
1416 tSCC zBroken_Assert_StdlibSelect0[] =
1417 "exit *\\(|abort *\\(";
1420 * content bypass pattern - skip fix if pattern found
1422 tSCC zBroken_Assert_StdlibBypass0[] =
1423 "include.*stdlib\\.h";
1425 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1426 static tTestDesc aBroken_Assert_StdlibTests[] = {
1427 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1428 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1431 * Fix Command Arguments for Broken_Assert_Stdlib
1433 static const char* apzBroken_Assert_StdlibPatch[] = {
1435 "#ifdef __cplusplus\n\
1436 #include <stdlib.h>\n\
1440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1442 * Description of Broken_Cabs fix
1444 tSCC zBroken_CabsName[] =
1448 * File name selection pattern
1450 tSCC zBroken_CabsList[] =
1451 "math.h\0architecture/*/math.h\0";
1453 * Machine/OS name selection pattern
1455 #define apzBroken_CabsMachs (const char**)NULL
1458 * content selection pattern - do fix if pattern found
1460 tSCC zBroken_CabsSelect0[] =
1461 "^extern[ \t]+double[ \t]+cabs";
1463 #define BROKEN_CABS_TEST_CT 1
1464 static tTestDesc aBroken_CabsTests[] = {
1465 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1468 * Fix Command Arguments for Broken_Cabs
1470 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1471 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1472 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1477 * Description of Broken_Nan fix
1479 tSCC zBroken_NanName[] =
1483 * File name selection pattern
1485 tSCC zBroken_NanList[] =
1486 "architecture/ppc/math.h\0architecture/*/math.h\0";
1488 * Machine/OS name selection pattern
1490 #define apzBroken_NanMachs (const char**)NULL
1493 * content selection pattern - do fix if pattern found
1495 tSCC zBroken_NanSelect0[] =
1496 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1499 * content bypass pattern - skip fix if pattern found
1501 tSCC zBroken_NanBypass0[] =
1504 #define BROKEN_NAN_TEST_CT 2
1505 static tTestDesc aBroken_NanTests[] = {
1506 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1507 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1510 * Fix Command Arguments for Broken_Nan
1512 static const char* apzBroken_NanPatch[] = {
1517 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1519 * Description of Bsd_Stdio_Attrs_Conflict fix
1521 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1522 "bsd_stdio_attrs_conflict";
1525 * File name selection pattern
1527 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1530 * Machine/OS name selection pattern
1532 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1535 (const char*)NULL };
1538 * content selection pattern - do fix if pattern found
1540 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1541 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1543 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1544 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1545 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1548 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1550 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1552 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1553 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1554 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1559 * Description of Ctrl_Quotes_Def fix
1561 tSCC zCtrl_Quotes_DefName[] =
1565 * File name selection pattern
1567 #define zCtrl_Quotes_DefList (char*)NULL
1569 * Machine/OS name selection pattern
1571 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1574 * content selection pattern - do fix if pattern found
1576 tSCC zCtrl_Quotes_DefSelect0[] =
1577 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1579 #define CTRL_QUOTES_DEF_TEST_CT 1
1580 static tTestDesc aCtrl_Quotes_DefTests[] = {
1581 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1584 * Fix Command Arguments for Ctrl_Quotes_Def
1586 static const char* apzCtrl_Quotes_DefPatch[] = {
1591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1593 * Description of Ctrl_Quotes_Use fix
1595 tSCC zCtrl_Quotes_UseName[] =
1599 * File name selection pattern
1601 #define zCtrl_Quotes_UseList (char*)NULL
1603 * Machine/OS name selection pattern
1605 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1608 * content selection pattern - do fix if pattern found
1610 tSCC zCtrl_Quotes_UseSelect0[] =
1611 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1613 #define CTRL_QUOTES_USE_TEST_CT 1
1614 static tTestDesc aCtrl_Quotes_UseTests[] = {
1615 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1618 * Fix Command Arguments for Ctrl_Quotes_Use
1620 static const char* apzCtrl_Quotes_UsePatch[] = {
1625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1627 * Description of Cxx_Unready fix
1629 tSCC zCxx_UnreadyName[] =
1633 * File name selection pattern
1635 tSCC zCxx_UnreadyList[] =
1636 "sys/mman.h\0rpc/types.h\0";
1638 * Machine/OS name selection pattern
1640 #define apzCxx_UnreadyMachs (const char**)NULL
1643 * content selection pattern - do fix if pattern found
1645 tSCC zCxx_UnreadySelect0[] =
1649 * content bypass pattern - skip fix if pattern found
1651 tSCC zCxx_UnreadyBypass0[] =
1652 "\"C\"|__BEGIN_DECLS";
1654 #define CXX_UNREADY_TEST_CT 2
1655 static tTestDesc aCxx_UnreadyTests[] = {
1656 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1657 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1660 * Fix Command Arguments for Cxx_Unready
1662 static const char* apzCxx_UnreadyPatch[] = {
1664 "#ifdef __cplusplus\n\
1667 "#ifdef __cplusplus\n\
1672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1674 * Description of Darwin_Externc fix
1676 tSCC zDarwin_ExterncName[] =
1680 * File name selection pattern
1682 tSCC zDarwin_ExterncList[] =
1683 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1685 * Machine/OS name selection pattern
1687 tSCC* apzDarwin_ExterncMachs[] = {
1689 (const char*)NULL };
1692 * content bypass pattern - skip fix if pattern found
1694 tSCC zDarwin_ExterncBypass0[] =
1696 tSCC zDarwin_ExterncBypass1[] =
1699 #define DARWIN_EXTERNC_TEST_CT 2
1700 static tTestDesc aDarwin_ExterncTests[] = {
1701 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1702 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1705 * Fix Command Arguments for Darwin_Externc
1707 static const char* apzDarwin_ExterncPatch[] = {
1709 "#ifdef __cplusplus\n\
1712 "#ifdef __cplusplus\n\
1717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1719 * Description of Darwin_Gcc4_Breakage fix
1721 tSCC zDarwin_Gcc4_BreakageName[] =
1722 "darwin_gcc4_breakage";
1725 * File name selection pattern
1727 tSCC zDarwin_Gcc4_BreakageList[] =
1728 "AvailabilityMacros.h\0";
1730 * Machine/OS name selection pattern
1732 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1734 (const char*)NULL };
1737 * content selection pattern - do fix if pattern found
1739 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1740 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1742 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1743 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1744 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1747 * Fix Command Arguments for Darwin_Gcc4_Breakage
1749 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1751 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1756 * Description of Darwin_Private_Extern fix
1758 tSCC zDarwin_Private_ExternName[] =
1759 "darwin_private_extern";
1762 * File name selection pattern
1764 tSCC zDarwin_Private_ExternList[] =
1767 * Machine/OS name selection pattern
1769 tSCC* apzDarwin_Private_ExternMachs[] = {
1771 (const char*)NULL };
1774 * content selection pattern - do fix if pattern found
1776 tSCC zDarwin_Private_ExternSelect0[] =
1777 "__private_extern__ [a-z_]+ _dyld_";
1779 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1780 static tTestDesc aDarwin_Private_ExternTests[] = {
1781 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1784 * Fix Command Arguments for Darwin_Private_Extern
1786 static const char* apzDarwin_Private_ExternPatch[] = {
1789 "__private_extern__",
1792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1794 * Description of Dec_Intern_Asm fix
1796 tSCC zDec_Intern_AsmName[] =
1800 * File name selection pattern
1802 tSCC zDec_Intern_AsmList[] =
1805 * Machine/OS name selection pattern
1807 #define apzDec_Intern_AsmMachs (const char**)NULL
1808 #define DEC_INTERN_ASM_TEST_CT 0
1809 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1812 * Fix Command Arguments for Dec_Intern_Asm
1814 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
1815 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1817 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1823 * Description of Djgpp_Wchar_H fix
1825 tSCC zDjgpp_Wchar_HName[] =
1829 * File name selection pattern
1831 #define zDjgpp_Wchar_HList (char*)NULL
1833 * Machine/OS name selection pattern
1835 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1838 * content selection pattern - do fix if pattern found
1840 tSCC zDjgpp_Wchar_HSelect0[] =
1844 * content bypass pattern - skip fix if pattern found
1846 tSCC zDjgpp_Wchar_HBypass0[] =
1849 #define DJGPP_WCHAR_H_TEST_CT 2
1850 static tTestDesc aDjgpp_Wchar_HTests[] = {
1851 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1852 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1855 * Fix Command Arguments for Djgpp_Wchar_H
1857 static const char* apzDjgpp_Wchar_HPatch[] = {
1860 #include <sys/djtypes.h>",
1861 "#include <stddef.h>",
1864 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1866 * Description of Ecd_Cursor fix
1868 tSCC zEcd_CursorName[] =
1872 * File name selection pattern
1874 tSCC zEcd_CursorList[] =
1875 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
1877 * Machine/OS name selection pattern
1879 #define apzEcd_CursorMachs (const char**)NULL
1882 * content selection pattern - do fix if pattern found
1884 tSCC zEcd_CursorSelect0[] =
1887 #define ECD_CURSOR_TEST_CT 1
1888 static tTestDesc aEcd_CursorTests[] = {
1889 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1892 * Fix Command Arguments for Ecd_Cursor
1894 static const char* apzEcd_CursorPatch[] = {
1899 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1901 * Description of Exception_Structure fix
1903 tSCC zException_StructureName[] =
1904 "exception_structure";
1907 * File name selection pattern
1909 tSCC zException_StructureList[] =
1912 * Machine/OS name selection pattern
1914 #define apzException_StructureMachs (const char**)NULL
1917 * content selection pattern - do fix if pattern found
1919 tSCC zException_StructureSelect0[] =
1923 * content bypass pattern - skip fix if pattern found
1925 tSCC zException_StructureBypass0[] =
1926 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
1928 #define EXCEPTION_STRUCTURE_TEST_CT 2
1929 static tTestDesc aException_StructureTests[] = {
1930 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
1931 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
1934 * Fix Command Arguments for Exception_Structure
1936 static const char* apzException_StructurePatch[] = {
1938 "struct exception;\n",
1941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1943 * Description of Freebsd_Gcc3_Breakage fix
1945 tSCC zFreebsd_Gcc3_BreakageName[] =
1946 "freebsd_gcc3_breakage";
1949 * File name selection pattern
1951 tSCC zFreebsd_Gcc3_BreakageList[] =
1954 * Machine/OS name selection pattern
1956 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1958 (const char*)NULL };
1961 * content selection pattern - do fix if pattern found
1963 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1964 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1967 * content bypass pattern - skip fix if pattern found
1969 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1970 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1972 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1973 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1974 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1975 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1978 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1980 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1982 "%0 || __GNUC__ >= 3",
1985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1987 * Description of Freebsd_Gcc4_Breakage fix
1989 tSCC zFreebsd_Gcc4_BreakageName[] =
1990 "freebsd_gcc4_breakage";
1993 * File name selection pattern
1995 tSCC zFreebsd_Gcc4_BreakageList[] =
1998 * Machine/OS name selection pattern
2000 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2002 (const char*)NULL };
2005 * content selection pattern - do fix if pattern found
2007 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2008 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2010 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2011 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2012 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2015 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2017 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2019 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2024 * Description of Glibc_C99_Inline_1 fix
2026 tSCC zGlibc_C99_Inline_1Name[] =
2027 "glibc_c99_inline_1";
2030 * File name selection pattern
2032 tSCC zGlibc_C99_Inline_1List[] =
2033 "features.h\0*/features.h\0";
2035 * Machine/OS name selection pattern
2037 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2040 * content selection pattern - do fix if pattern found
2042 tSCC zGlibc_C99_Inline_1Select0[] =
2043 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2045 #define GLIBC_C99_INLINE_1_TEST_CT 1
2046 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2047 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2050 * Fix Command Arguments for Glibc_C99_Inline_1
2052 static const char* apzGlibc_C99_Inline_1Patch[] = {
2054 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2059 * Description of Glibc_C99_Inline_1a fix
2061 tSCC zGlibc_C99_Inline_1aName[] =
2062 "glibc_c99_inline_1a";
2065 * File name selection pattern
2067 tSCC zGlibc_C99_Inline_1aList[] =
2068 "features.h\0*/features.h\0";
2070 * Machine/OS name selection pattern
2072 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2075 * content selection pattern - do fix if pattern found
2077 tSCC zGlibc_C99_Inline_1aSelect0[] =
2078 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2079 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2081 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2082 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2083 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2086 * Fix Command Arguments for Glibc_C99_Inline_1a
2088 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2090 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2096 * Description of Glibc_C99_Inline_2 fix
2098 tSCC zGlibc_C99_Inline_2Name[] =
2099 "glibc_c99_inline_2";
2102 * File name selection pattern
2104 tSCC zGlibc_C99_Inline_2List[] =
2105 "sys/stat.h\0*/sys/stat.h\0";
2107 * Machine/OS name selection pattern
2109 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2112 * content selection pattern - do fix if pattern found
2114 tSCC zGlibc_C99_Inline_2Select0[] =
2115 "extern __inline__ int";
2117 #define GLIBC_C99_INLINE_2_TEST_CT 1
2118 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2119 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2122 * Fix Command Arguments for Glibc_C99_Inline_2
2124 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2125 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2128 __inline__ int \\1/",
2129 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2132 __inline__ int __REDIRECT\\1 (\\2/",
2133 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2139 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2141 * Description of Glibc_C99_Inline_3 fix
2143 tSCC zGlibc_C99_Inline_3Name[] =
2144 "glibc_c99_inline_3";
2147 * File name selection pattern
2149 tSCC zGlibc_C99_Inline_3List[] =
2150 "bits/string2.h\0*/bits/string2.h\0";
2152 * Machine/OS name selection pattern
2154 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2157 * content selection pattern - do fix if pattern found
2159 tSCC zGlibc_C99_Inline_3Select0[] =
2163 * content bypass pattern - skip fix if pattern found
2165 tSCC zGlibc_C99_Inline_3Bypass0[] =
2166 "__extern_inline|__GNU_STDC_INLINE__";
2168 #define GLIBC_C99_INLINE_3_TEST_CT 2
2169 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2170 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2171 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2174 * Fix Command Arguments for Glibc_C99_Inline_3
2176 static const char* apzGlibc_C99_Inline_3Patch[] = {
2178 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2179 "^# ifdef __cplusplus$",
2182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2184 * Description of Glibc_C99_Inline_4 fix
2186 tSCC zGlibc_C99_Inline_4Name[] =
2187 "glibc_c99_inline_4";
2190 * File name selection pattern
2192 tSCC zGlibc_C99_Inline_4List[] =
2193 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2195 * Machine/OS name selection pattern
2197 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2200 * content selection pattern - do fix if pattern found
2202 tSCC zGlibc_C99_Inline_4Select0[] =
2203 "(^| )extern __inline";
2206 * content bypass pattern - skip fix if pattern found
2208 tSCC zGlibc_C99_Inline_4Bypass0[] =
2209 "__extern_inline|__gnu_inline__";
2211 #define GLIBC_C99_INLINE_4_TEST_CT 2
2212 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2213 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2214 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2217 * Fix Command Arguments for Glibc_C99_Inline_4
2219 static const char* apzGlibc_C99_Inline_4Patch[] = {
2221 "%0 __attribute__ ((__gnu_inline__))",
2224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2226 * Description of Glibc_Mutex_Init fix
2228 tSCC zGlibc_Mutex_InitName[] =
2232 * File name selection pattern
2234 tSCC zGlibc_Mutex_InitList[] =
2237 * Machine/OS name selection pattern
2239 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2242 * content selection pattern - do fix if pattern found
2244 tSCC zGlibc_Mutex_InitSelect0[] =
2245 "\\{ *\\{ *0, *\\} *\\}";
2247 #define GLIBC_MUTEX_INIT_TEST_CT 1
2248 static tTestDesc aGlibc_Mutex_InitTests[] = {
2249 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2252 * Fix Command Arguments for Glibc_Mutex_Init
2254 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2255 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2257 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2259 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2260 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2261 "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/",
2262 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2263 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2268 * Description of Gnu_Types fix
2270 tSCC zGnu_TypesName[] =
2274 * File name selection pattern
2276 tSCC zGnu_TypesList[] =
2277 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2279 * Machine/OS name selection pattern
2281 tSCC* apzGnu_TypesMachs[] = {
2282 "*-*-solaris2.1[0-9]*",
2283 (const char*)NULL };
2286 * content selection pattern - do fix if pattern found
2288 tSCC zGnu_TypesSelect0[] =
2289 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2292 * content bypass pattern - skip fix if pattern found
2294 tSCC zGnu_TypesBypass0[] =
2295 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2297 #define GNU_TYPES_TEST_CT 2
2298 static tTestDesc aGnu_TypesTests[] = {
2299 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2300 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2303 * Fix Command Arguments for Gnu_Types
2305 static const char* apzGnu_TypesPatch[] = {
2309 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2311 * Description of Hp_Inline fix
2313 tSCC zHp_InlineName[] =
2317 * File name selection pattern
2319 tSCC zHp_InlineList[] =
2320 "sys/spinlock.h\0machine/machparam.h\0";
2322 * Machine/OS name selection pattern
2324 #define apzHp_InlineMachs (const char**)NULL
2327 * content selection pattern - do fix if pattern found
2329 tSCC zHp_InlineSelect0[] =
2330 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2332 #define HP_INLINE_TEST_CT 1
2333 static tTestDesc aHp_InlineTests[] = {
2334 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2337 * Fix Command Arguments for Hp_Inline
2339 static const char* apzHp_InlinePatch[] = {
2342 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2347 * Description of Hp_Sysfile fix
2349 tSCC zHp_SysfileName[] =
2353 * File name selection pattern
2355 tSCC zHp_SysfileList[] =
2358 * Machine/OS name selection pattern
2360 #define apzHp_SysfileMachs (const char**)NULL
2363 * content selection pattern - do fix if pattern found
2365 tSCC zHp_SysfileSelect0[] =
2368 #define HP_SYSFILE_TEST_CT 1
2369 static tTestDesc aHp_SysfileTests[] = {
2370 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2373 * Fix Command Arguments for Hp_Sysfile
2375 static const char* apzHp_SysfilePatch[] = {
2377 "(struct file *, ...)",
2381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2383 * Description of Hppa_Hpux_Fp_Macros fix
2385 tSCC zHppa_Hpux_Fp_MacrosName[] =
2386 "hppa_hpux_fp_macros";
2389 * File name selection pattern
2391 tSCC zHppa_Hpux_Fp_MacrosList[] =
2394 * Machine/OS name selection pattern
2396 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2398 (const char*)NULL };
2401 * content selection pattern - do fix if pattern found
2403 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2404 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2405 #[ \t]*define[ \t]*FP_ZERO.*\n\
2406 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2407 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2408 #[ \t]*define[ \t]*FP_NAN.*\n";
2410 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2411 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2412 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2415 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2417 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2419 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2420 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2421 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2423 #ifdef _INCLUDE_HPUX_SOURCE\n",
2426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2428 * Description of Hpux10_Cpp_Pow_Inline fix
2430 tSCC zHpux10_Cpp_Pow_InlineName[] =
2431 "hpux10_cpp_pow_inline";
2434 * File name selection pattern
2436 tSCC zHpux10_Cpp_Pow_InlineList[] =
2437 "fixinc-test-limits.h\0math.h\0";
2439 * Machine/OS name selection pattern
2441 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2444 * content selection pattern - do fix if pattern found
2446 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2447 "^# +ifdef +__cplusplus\n\
2449 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2450 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2452 +extern +\"C\" +\\{\n\
2456 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2457 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2458 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2461 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2463 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2470 * Description of Hpux11_Cpp_Pow_Inline fix
2472 tSCC zHpux11_Cpp_Pow_InlineName[] =
2473 "hpux11_cpp_pow_inline";
2476 * File name selection pattern
2478 tSCC zHpux11_Cpp_Pow_InlineList[] =
2481 * Machine/OS name selection pattern
2483 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2486 * content selection pattern - do fix if pattern found
2488 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2489 " +inline double pow\\(double d,int expon\\) \\{\n\
2490 +return pow\\(d, \\(double\\)expon\\);\n\
2493 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2494 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2495 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2498 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2500 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2507 * Description of Hpux10_Ctype_Declarations1 fix
2509 tSCC zHpux10_Ctype_Declarations1Name[] =
2510 "hpux10_ctype_declarations1";
2513 * File name selection pattern
2515 tSCC zHpux10_Ctype_Declarations1List[] =
2518 * Machine/OS name selection pattern
2520 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2523 * content selection pattern - do fix if pattern found
2525 tSCC zHpux10_Ctype_Declarations1Select0[] =
2526 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2529 * content bypass pattern - skip fix if pattern found
2531 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2532 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2534 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2535 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2536 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2537 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2540 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2542 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2544 "#ifdef _PROTOTYPES\n\
2545 extern int __tolower(int);\n\
2546 extern int __toupper(int);\n\
2547 #else /* NOT _PROTOTYPES */\n\
2548 extern int __tolower();\n\
2549 extern int __toupper();\n\
2550 #endif /* _PROTOTYPES */\n\n\
2554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2556 * Description of Hpux10_Ctype_Declarations2 fix
2558 tSCC zHpux10_Ctype_Declarations2Name[] =
2559 "hpux10_ctype_declarations2";
2562 * File name selection pattern
2564 tSCC zHpux10_Ctype_Declarations2List[] =
2567 * Machine/OS name selection pattern
2569 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2572 * content selection pattern - do fix if pattern found
2574 tSCC zHpux10_Ctype_Declarations2Select0[] =
2575 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2578 * content bypass pattern - skip fix if pattern found
2580 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2581 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2583 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2584 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2585 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2586 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2589 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2591 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2594 #ifdef _PROTOTYPES\n\
2595 extern int _isalnum(int);\n\
2596 extern int _isalpha(int);\n\
2597 extern int _iscntrl(int);\n\
2598 extern int _isdigit(int);\n\
2599 extern int _isgraph(int);\n\
2600 extern int _islower(int);\n\
2601 extern int _isprint(int);\n\
2602 extern int _ispunct(int);\n\
2603 extern int _isspace(int);\n\
2604 extern int _isupper(int);\n\
2605 extern int _isxdigit(int);\n\
2606 # else /* not _PROTOTYPES */\n\
2607 extern int _isalnum();\n\
2608 extern int _isalpha();\n\
2609 extern int _iscntrl();\n\
2610 extern int _isdigit();\n\
2611 extern int _isgraph();\n\
2612 extern int _islower();\n\
2613 extern int _isprint();\n\
2614 extern int _ispunct();\n\
2615 extern int _isspace();\n\
2616 extern int _isupper();\n\
2617 extern int _isxdigit();\n\
2618 #endif /* _PROTOTYPES */\n",
2621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2623 * Description of Hpux10_Stdio_Declarations fix
2625 tSCC zHpux10_Stdio_DeclarationsName[] =
2626 "hpux10_stdio_declarations";
2629 * File name selection pattern
2631 tSCC zHpux10_Stdio_DeclarationsList[] =
2634 * Machine/OS name selection pattern
2636 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2639 * content selection pattern - do fix if pattern found
2641 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2642 "^#[ \t]*define _iob[ \t]*__iob";
2645 * content bypass pattern - skip fix if pattern found
2647 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2648 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2650 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2651 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2652 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2653 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2656 * Fix Command Arguments for Hpux10_Stdio_Declarations
2658 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2661 # if defined(__STDC__) || defined(__cplusplus)\n\
2662 extern int snprintf(char *, size_t, const char *, ...);\n\
2663 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2664 # else /* not __STDC__) || __cplusplus */\n\
2665 extern int snprintf();\n\
2666 extern int vsnprintf();\n\
2667 # endif /* __STDC__) || __cplusplus */\n",
2670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2672 * Description of Hpux11_Abs fix
2674 tSCC zHpux11_AbsName[] =
2678 * File name selection pattern
2680 tSCC zHpux11_AbsList[] =
2683 * Machine/OS name selection pattern
2685 tSCC* apzHpux11_AbsMachs[] = {
2687 (const char*)NULL };
2690 * content selection pattern - do fix if pattern found
2692 tSCC zHpux11_AbsSelect0[] =
2693 "ifndef _MATH_INCLUDED";
2695 #define HPUX11_ABS_TEST_CT 1
2696 static tTestDesc aHpux11_AbsTests[] = {
2697 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2700 * Fix Command Arguments for Hpux11_Abs
2702 static const char* apzHpux11_AbsPatch[] = {
2704 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2709 * Description of Hpux11_Fabsf fix
2711 tSCC zHpux11_FabsfName[] =
2715 * File name selection pattern
2717 tSCC zHpux11_FabsfList[] =
2720 * Machine/OS name selection pattern
2722 #define apzHpux11_FabsfMachs (const char**)NULL
2725 * content selection pattern - do fix if pattern found
2727 tSCC zHpux11_FabsfSelect0[] =
2728 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2731 * content bypass pattern - skip fix if pattern found
2733 tSCC zHpux11_FabsfBypass0[] =
2736 #define HPUX11_FABSF_TEST_CT 2
2737 static tTestDesc aHpux11_FabsfTests[] = {
2738 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2739 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2742 * Fix Command Arguments for Hpux11_Fabsf
2744 static const char* apzHpux11_FabsfPatch[] = {
2746 "#ifndef __cplusplus\n\
2751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2753 * Description of Hpux11_Pthread_Const fix
2755 tSCC zHpux11_Pthread_ConstName[] =
2756 "hpux11_pthread_const";
2759 * File name selection pattern
2761 tSCC zHpux11_Pthread_ConstList[] =
2764 * Machine/OS name selection pattern
2766 tSCC* apzHpux11_Pthread_ConstMachs[] = {
2767 "*-hp-hpux11.[0-3]*",
2768 (const char*)NULL };
2771 * content selection pattern - do fix if pattern found
2773 tSCC zHpux11_Pthread_ConstSelect0[] =
2774 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2776 #define HPUX11_PTHREAD_CONST_TEST_CT 1
2777 static tTestDesc aHpux11_Pthread_ConstTests[] = {
2778 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2781 * Fix Command Arguments for Hpux11_Pthread_Const
2783 static const char* apzHpux11_Pthread_ConstPatch[] = {
2785 "#define __POINTER_SET\t\t((void *) 1L)",
2788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2790 * Description of Hpux11_Size_T fix
2792 tSCC zHpux11_Size_TName[] =
2796 * File name selection pattern
2798 #define zHpux11_Size_TList (char*)NULL
2800 * Machine/OS name selection pattern
2802 tSCC* apzHpux11_Size_TMachs[] = {
2804 (const char*)NULL };
2807 * content selection pattern - do fix if pattern found
2809 tSCC zHpux11_Size_TSelect0[] =
2812 #define HPUX11_SIZE_T_TEST_CT 1
2813 static tTestDesc aHpux11_Size_TTests[] = {
2814 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2817 * Fix Command Arguments for Hpux11_Size_T
2819 static const char* apzHpux11_Size_TPatch[] = {
2824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2826 * Description of Hpux11_Snprintf fix
2828 tSCC zHpux11_SnprintfName[] =
2832 * File name selection pattern
2834 tSCC zHpux11_SnprintfList[] =
2837 * Machine/OS name selection pattern
2839 #define apzHpux11_SnprintfMachs (const char**)NULL
2842 * content selection pattern - do fix if pattern found
2844 tSCC zHpux11_SnprintfSelect0[] =
2845 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2847 #define HPUX11_SNPRINTF_TEST_CT 1
2848 static tTestDesc aHpux11_SnprintfTests[] = {
2849 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2852 * Fix Command Arguments for Hpux11_Snprintf
2854 static const char* apzHpux11_SnprintfPatch[] = {
2859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2861 * Description of Hpux11_Uint32_C fix
2863 tSCC zHpux11_Uint32_CName[] =
2867 * File name selection pattern
2869 tSCC zHpux11_Uint32_CList[] =
2872 * Machine/OS name selection pattern
2874 #define apzHpux11_Uint32_CMachs (const char**)NULL
2877 * content selection pattern - do fix if pattern found
2879 tSCC zHpux11_Uint32_CSelect0[] =
2880 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2882 #define HPUX11_UINT32_C_TEST_CT 1
2883 static tTestDesc aHpux11_Uint32_CTests[] = {
2884 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2887 * Fix Command Arguments for Hpux11_Uint32_C
2889 static const char* apzHpux11_Uint32_CPatch[] = {
2891 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2896 * Description of Hpux11_Vsnprintf fix
2898 tSCC zHpux11_VsnprintfName[] =
2902 * File name selection pattern
2904 tSCC zHpux11_VsnprintfList[] =
2907 * Machine/OS name selection pattern
2909 #define apzHpux11_VsnprintfMachs (const char**)NULL
2912 * content selection pattern - do fix if pattern found
2914 tSCC zHpux11_VsnprintfSelect0[] =
2915 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2917 #define HPUX11_VSNPRINTF_TEST_CT 1
2918 static tTestDesc aHpux11_VsnprintfTests[] = {
2919 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2922 * Fix Command Arguments for Hpux11_Vsnprintf
2924 static const char* apzHpux11_VsnprintfPatch[] = {
2929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2931 * Description of Hpux8_Bogus_Inlines fix
2933 tSCC zHpux8_Bogus_InlinesName[] =
2934 "hpux8_bogus_inlines";
2937 * File name selection pattern
2939 tSCC zHpux8_Bogus_InlinesList[] =
2942 * Machine/OS name selection pattern
2944 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2947 * content selection pattern - do fix if pattern found
2949 tSCC zHpux8_Bogus_InlinesSelect0[] =
2953 * content bypass pattern - skip fix if pattern found
2955 tSCC zHpux8_Bogus_InlinesBypass0[] =
2958 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2959 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2960 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2961 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2964 * Fix Command Arguments for Hpux8_Bogus_Inlines
2966 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
2967 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2968 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2969 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2970 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2975 * Description of Hpux_Ctype_Macros fix
2977 tSCC zHpux_Ctype_MacrosName[] =
2978 "hpux_ctype_macros";
2981 * File name selection pattern
2983 tSCC zHpux_Ctype_MacrosList[] =
2986 * Machine/OS name selection pattern
2988 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2991 * content selection pattern - do fix if pattern found
2993 tSCC zHpux_Ctype_MacrosSelect0[] =
2994 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2996 #define HPUX_CTYPE_MACROS_TEST_CT 1
2997 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2998 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3001 * Fix Command Arguments for Hpux_Ctype_Macros
3003 static const char* apzHpux_Ctype_MacrosPatch[] = {
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010 * Description of Hpux_Htonl fix
3012 tSCC zHpux_HtonlName[] =
3016 * File name selection pattern
3018 tSCC zHpux_HtonlList[] =
3021 * Machine/OS name selection pattern
3023 #define apzHpux_HtonlMachs (const char**)NULL
3026 * content selection pattern - do fix if pattern found
3028 tSCC zHpux_HtonlSelect0[] =
3029 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3031 \\* Macros for number representation conversion\\.\n\
3035 #define HPUX_HTONL_TEST_CT 1
3036 static tTestDesc aHpux_HtonlTests[] = {
3037 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3040 * Fix Command Arguments for Hpux_Htonl
3042 static const char* apzHpux_HtonlPatch[] = {
3048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3050 * Description of Hpux_Long_Double fix
3052 tSCC zHpux_Long_DoubleName[] =
3056 * File name selection pattern
3058 tSCC zHpux_Long_DoubleList[] =
3061 * Machine/OS name selection pattern
3063 #define apzHpux_Long_DoubleMachs (const char**)NULL
3066 * content selection pattern - do fix if pattern found
3068 tSCC zHpux_Long_DoubleSelect0[] =
3069 "extern[ \t]long_double[ \t]strtold";
3072 * content bypass pattern - skip fix if pattern found
3074 tSCC zHpux_Long_DoubleBypass0[] =
3077 #define HPUX_LONG_DOUBLE_TEST_CT 2
3078 static tTestDesc aHpux_Long_DoubleTests[] = {
3079 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3080 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3083 * Fix Command Arguments for Hpux_Long_Double
3085 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3086 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3087 "-e", "s/long_double/long double/g",
3090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3092 * Description of Hpux_Systime fix
3094 tSCC zHpux_SystimeName[] =
3098 * File name selection pattern
3100 tSCC zHpux_SystimeList[] =
3103 * Machine/OS name selection pattern
3105 #define apzHpux_SystimeMachs (const char**)NULL
3108 * content selection pattern - do fix if pattern found
3110 tSCC zHpux_SystimeSelect0[] =
3111 "^extern struct sigevent;";
3113 #define HPUX_SYSTIME_TEST_CT 1
3114 static tTestDesc aHpux_SystimeTests[] = {
3115 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3118 * Fix Command Arguments for Hpux_Systime
3120 static const char* apzHpux_SystimePatch[] = {
3125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3127 * Description of Hpux_Spu_Info fix
3129 tSCC zHpux_Spu_InfoName[] =
3133 * File name selection pattern
3135 tSCC zHpux_Spu_InfoList[] =
3136 "ia64/sys/getppdp.h\0";
3138 * Machine/OS name selection pattern
3140 tSCC* apzHpux_Spu_InfoMachs[] = {
3142 (const char*)NULL };
3145 * content selection pattern - do fix if pattern found
3147 tSCC zHpux_Spu_InfoSelect0[] =
3148 "^.*extern.*spu_info.*";
3150 #define HPUX_SPU_INFO_TEST_CT 1
3151 static tTestDesc aHpux_Spu_InfoTests[] = {
3152 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3155 * Fix Command Arguments for Hpux_Spu_Info
3157 static const char* apzHpux_Spu_InfoPatch[] = {
3164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3166 * Description of Hpux11_Extern_Sendfile fix
3168 tSCC zHpux11_Extern_SendfileName[] =
3169 "hpux11_extern_sendfile";
3172 * File name selection pattern
3174 tSCC zHpux11_Extern_SendfileList[] =
3177 * Machine/OS name selection pattern
3179 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3180 "*-hp-hpux11.[12]*",
3181 (const char*)NULL };
3184 * content selection pattern - do fix if pattern found
3186 tSCC zHpux11_Extern_SendfileSelect0[] =
3187 "^[ \t]*extern sbsize_t sendfile.*\n\
3190 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3191 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3192 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3195 * Fix Command Arguments for Hpux11_Extern_Sendfile
3197 static const char* apzHpux11_Extern_SendfilePatch[] = {
3199 "#ifndef _APP32_64BIT_OFF_T\n\
3203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3205 * Description of Hpux11_Extern_Sendpath fix
3207 tSCC zHpux11_Extern_SendpathName[] =
3208 "hpux11_extern_sendpath";
3211 * File name selection pattern
3213 tSCC zHpux11_Extern_SendpathList[] =
3216 * Machine/OS name selection pattern
3218 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3219 "*-hp-hpux11.[12]*",
3220 (const char*)NULL };
3223 * content selection pattern - do fix if pattern found
3225 tSCC zHpux11_Extern_SendpathSelect0[] =
3226 "^[ \t]*extern sbsize_t sendpath.*\n\
3229 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3230 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3231 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3234 * Fix Command Arguments for Hpux11_Extern_Sendpath
3236 static const char* apzHpux11_Extern_SendpathPatch[] = {
3238 "#ifndef _APP32_64BIT_OFF_T\n\
3242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3244 * Description of Hpux_Extern_Errno fix
3246 tSCC zHpux_Extern_ErrnoName[] =
3247 "hpux_extern_errno";
3250 * File name selection pattern
3252 tSCC zHpux_Extern_ErrnoList[] =
3255 * Machine/OS name selection pattern
3257 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3259 "*-hp-hpux11.[0-2]*",
3260 (const char*)NULL };
3263 * content selection pattern - do fix if pattern found
3265 tSCC zHpux_Extern_ErrnoSelect0[] =
3266 "^[ \t]*extern int errno;$";
3268 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3269 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3270 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3273 * Fix Command Arguments for Hpux_Extern_Errno
3275 static const char* apzHpux_Extern_ErrnoPatch[] = {
3277 "#ifdef __cplusplus\n\
3281 #ifdef __cplusplus\n\
3286 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3288 * Description of Hpux_Pthread_Initializers fix
3290 tSCC zHpux_Pthread_InitializersName[] =
3291 "hpux_pthread_initializers";
3294 * File name selection pattern
3296 tSCC zHpux_Pthread_InitializersList[] =
3299 * Machine/OS name selection pattern
3301 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3302 "*-hp-hpux11.[0-3]*",
3303 (const char*)NULL };
3304 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3305 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3308 * Fix Command Arguments for Hpux_Pthread_Initializers
3310 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3311 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3312 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3313 "-e", "/^[ \t]*0$/d",
3314 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3315 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3316 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3317 "-e", "s@^[ \t]*__LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@\t{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3318 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3319 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3320 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3321 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3322 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3323 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3328 * Description of Huge_Val_Hex fix
3330 tSCC zHuge_Val_HexName[] =
3334 * File name selection pattern
3336 tSCC zHuge_Val_HexList[] =
3337 "bits/huge_val.h\0";
3339 * Machine/OS name selection pattern
3341 #define apzHuge_Val_HexMachs (const char**)NULL
3344 * content selection pattern - do fix if pattern found
3346 tSCC zHuge_Val_HexSelect0[] =
3347 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3350 * content bypass pattern - skip fix if pattern found
3352 tSCC zHuge_Val_HexBypass0[] =
3353 "__builtin_huge_val";
3355 #define HUGE_VAL_HEX_TEST_CT 2
3356 static tTestDesc aHuge_Val_HexTests[] = {
3357 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3358 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3361 * Fix Command Arguments for Huge_Val_Hex
3363 static const char* apzHuge_Val_HexPatch[] = {
3365 "#define HUGE_VAL (__builtin_huge_val())\n",
3368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3370 * Description of Huge_Valf_Hex fix
3372 tSCC zHuge_Valf_HexName[] =
3376 * File name selection pattern
3378 tSCC zHuge_Valf_HexList[] =
3379 "bits/huge_val.h\0";
3381 * Machine/OS name selection pattern
3383 #define apzHuge_Valf_HexMachs (const char**)NULL
3386 * content selection pattern - do fix if pattern found
3388 tSCC zHuge_Valf_HexSelect0[] =
3389 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3392 * content bypass pattern - skip fix if pattern found
3394 tSCC zHuge_Valf_HexBypass0[] =
3395 "__builtin_huge_valf";
3397 #define HUGE_VALF_HEX_TEST_CT 2
3398 static tTestDesc aHuge_Valf_HexTests[] = {
3399 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3400 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3403 * Fix Command Arguments for Huge_Valf_Hex
3405 static const char* apzHuge_Valf_HexPatch[] = {
3407 "#define HUGE_VALF (__builtin_huge_valf())\n",
3410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3412 * Description of Huge_Vall_Hex fix
3414 tSCC zHuge_Vall_HexName[] =
3418 * File name selection pattern
3420 tSCC zHuge_Vall_HexList[] =
3421 "bits/huge_val.h\0";
3423 * Machine/OS name selection pattern
3425 #define apzHuge_Vall_HexMachs (const char**)NULL
3428 * content selection pattern - do fix if pattern found
3430 tSCC zHuge_Vall_HexSelect0[] =
3431 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3434 * content bypass pattern - skip fix if pattern found
3436 tSCC zHuge_Vall_HexBypass0[] =
3437 "__builtin_huge_vall";
3439 #define HUGE_VALL_HEX_TEST_CT 2
3440 static tTestDesc aHuge_Vall_HexTests[] = {
3441 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3442 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3445 * Fix Command Arguments for Huge_Vall_Hex
3447 static const char* apzHuge_Vall_HexPatch[] = {
3449 "#define HUGE_VALL (__builtin_huge_vall())\n",
3452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3454 * Description of Int_Abort_Free_And_Exit fix
3456 tSCC zInt_Abort_Free_And_ExitName[] =
3457 "int_abort_free_and_exit";
3460 * File name selection pattern
3462 tSCC zInt_Abort_Free_And_ExitList[] =
3465 * Machine/OS name selection pattern
3467 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3470 * content selection pattern - do fix if pattern found
3472 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3473 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3476 * content bypass pattern - skip fix if pattern found
3478 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3479 "_CLASSIC_ANSI_TYPES";
3481 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3482 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3483 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3484 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3487 * Fix Command Arguments for Int_Abort_Free_And_Exit
3489 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3494 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3496 * Description of Io_Quotes_Def fix
3498 tSCC zIo_Quotes_DefName[] =
3502 * File name selection pattern
3504 #define zIo_Quotes_DefList (char*)NULL
3506 * Machine/OS name selection pattern
3508 #define apzIo_Quotes_DefMachs (const char**)NULL
3511 * content selection pattern - do fix if pattern found
3513 tSCC zIo_Quotes_DefSelect0[] =
3514 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3516 #define IO_QUOTES_DEF_TEST_CT 1
3517 static tTestDesc aIo_Quotes_DefTests[] = {
3518 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3521 * Fix Command Arguments for Io_Quotes_Def
3523 static const char* apzIo_Quotes_DefPatch[] = {
3528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3530 * Description of Io_Quotes_Use fix
3532 tSCC zIo_Quotes_UseName[] =
3536 * File name selection pattern
3538 #define zIo_Quotes_UseList (char*)NULL
3540 * Machine/OS name selection pattern
3542 #define apzIo_Quotes_UseMachs (const char**)NULL
3545 * content selection pattern - do fix if pattern found
3547 tSCC zIo_Quotes_UseSelect0[] =
3548 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3550 #define IO_QUOTES_USE_TEST_CT 1
3551 static tTestDesc aIo_Quotes_UseTests[] = {
3552 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3555 * Fix Command Arguments for Io_Quotes_Use
3557 static const char* apzIo_Quotes_UsePatch[] = {
3562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3564 * Description of Ip_Missing_Semi fix
3566 tSCC zIp_Missing_SemiName[] =
3570 * File name selection pattern
3572 tSCC zIp_Missing_SemiList[] =
3575 * Machine/OS name selection pattern
3577 #define apzIp_Missing_SemiMachs (const char**)NULL
3580 * content selection pattern - do fix if pattern found
3582 tSCC zIp_Missing_SemiSelect0[] =
3585 #define IP_MISSING_SEMI_TEST_CT 1
3586 static tTestDesc aIp_Missing_SemiTests[] = {
3587 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3590 * Fix Command Arguments for Ip_Missing_Semi
3592 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
3593 "-e", "/^struct/,/^};/s/}$/};/",
3596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3598 * Description of Irix___Restrict fix
3600 tSCC zIrix___RestrictName[] =
3604 * File name selection pattern
3606 tSCC zIrix___RestrictList[] =
3607 "internal/sgimacros.h\0";
3609 * Machine/OS name selection pattern
3611 tSCC* apzIrix___RestrictMachs[] = {
3613 (const char*)NULL };
3616 * content selection pattern - do fix if pattern found
3618 tSCC zIrix___RestrictSelect0[] =
3620 )(#[ \t]*define __restrict restrict)";
3622 #define IRIX___RESTRICT_TEST_CT 1
3623 static tTestDesc aIrix___RestrictTests[] = {
3624 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3627 * Fix Command Arguments for Irix___Restrict
3629 static const char* apzIrix___RestrictPatch[] = {
3631 "%1# ifndef __cplusplus\n\
3636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3638 * Description of Irix___Generic1 fix
3640 tSCC zIrix___Generic1Name[] =
3644 * File name selection pattern
3646 tSCC zIrix___Generic1List[] =
3647 "internal/math_core.h\0";
3649 * Machine/OS name selection pattern
3651 tSCC* apzIrix___Generic1Machs[] = {
3653 (const char*)NULL };
3656 * content selection pattern - do fix if pattern found
3658 tSCC zIrix___Generic1Select0[] =
3659 "#define ([a-z]+)\\(x\\) *__generic.*";
3661 #define IRIX___GENERIC1_TEST_CT 1
3662 static tTestDesc aIrix___Generic1Tests[] = {
3663 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3666 * Fix Command Arguments for Irix___Generic1
3668 static const char* apzIrix___Generic1Patch[] = {
3670 "extern int %1(double);\n\
3671 extern int %1f(float);\n\
3672 extern int %1l(long double);\n\
3673 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3674 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3680 * Description of Irix___Generic2 fix
3682 tSCC zIrix___Generic2Name[] =
3686 * File name selection pattern
3688 tSCC zIrix___Generic2List[] =
3689 "internal/math_core.h\0";
3691 * Machine/OS name selection pattern
3693 tSCC* apzIrix___Generic2Machs[] = {
3695 (const char*)NULL };
3698 * content selection pattern - do fix if pattern found
3700 tSCC zIrix___Generic2Select0[] =
3701 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3703 #define IRIX___GENERIC2_TEST_CT 1
3704 static tTestDesc aIrix___Generic2Tests[] = {
3705 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3708 * Fix Command Arguments for Irix___Generic2
3710 static const char* apzIrix___Generic2Patch[] = {
3712 "#define %1(x,y) \\\n\
3713 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3714 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3720 * Description of Irix_Asm_Apostrophe fix
3722 tSCC zIrix_Asm_ApostropheName[] =
3723 "irix_asm_apostrophe";
3726 * File name selection pattern
3728 tSCC zIrix_Asm_ApostropheList[] =
3731 * Machine/OS name selection pattern
3733 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3736 * content selection pattern - do fix if pattern found
3738 tSCC zIrix_Asm_ApostropheSelect0[] =
3739 "^[ \t]*#.*[Ww]e're";
3741 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3742 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3743 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3746 * Fix Command Arguments for Irix_Asm_Apostrophe
3748 static const char* apzIrix_Asm_ApostrophePatch[] = {
3751 "^([ \t]*#.*[Ww]e)'re",
3754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3756 * Description of Irix_Limits_Const fix
3758 tSCC zIrix_Limits_ConstName[] =
3759 "irix_limits_const";
3762 * File name selection pattern
3764 tSCC zIrix_Limits_ConstList[] =
3765 "fixinc-test-limits.h\0limits.h\0";
3767 * Machine/OS name selection pattern
3769 #define apzIrix_Limits_ConstMachs (const char**)NULL
3772 * content selection pattern - do fix if pattern found
3774 tSCC zIrix_Limits_ConstSelect0[] =
3777 #define IRIX_LIMITS_CONST_TEST_CT 1
3778 static tTestDesc aIrix_Limits_ConstTests[] = {
3779 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3782 * Fix Command Arguments for Irix_Limits_Const
3784 static const char* apzIrix_Limits_ConstPatch[] = {
3789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3791 * Description of Irix_Socklen_T fix
3793 tSCC zIrix_Socklen_TName[] =
3797 * File name selection pattern
3799 tSCC zIrix_Socklen_TList[] =
3802 * Machine/OS name selection pattern
3804 tSCC* apzIrix_Socklen_TMachs[] = {
3806 (const char*)NULL };
3809 * content selection pattern - do fix if pattern found
3811 tSCC zIrix_Socklen_TSelect0[] =
3812 "(#define _SOCKLEN_T\n\
3813 )(typedef u_int32_t socklen_t;)";