1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Monday February 5, 2007 at 05:19:14 PM PST
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mon Feb 5 17:19:14 PST 2007
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 207 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
25 * inclhack is free software.
27 * You may redistribute it and/or modify it under the terms of the
28 * GNU General Public License, as published by the Free Software
29 * Foundation; either version 2 of the License, or (at your option)
32 * inclhack is distributed in the hope that it will be useful,
33 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35 * See the GNU General Public License for more details.
37 * You should have received a copy of the GNU General Public License
38 * along with inclhack. If not, write to:
39 * The Free Software Foundation, Inc.,
40 * 51 Franklin Street, Fifth Floor
41 * Boston, MA 02110-1301, USA.
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
48 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
49 "AAB_darwin7_9_long_double_funcs";
52 * File name selection pattern
54 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
55 "architecture/ppc/math.h\0";
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
64 * content bypass pattern - skip fix if pattern found
66 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
69 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
70 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
71 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
74 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
76 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
77 "/* This file prototypes the long double functions available on Mac OS\n\
80 # undef __APPLE_CC__\n\
81 # define __APPLE_CC__ 1345\n\
82 # include_next <architecture/ppc/math.h>\n\
83 # undef __APPLE_CC__\n\
84 # define __APPLE_CC__ 1\n\
85 # ifndef __LIBMLDBL_COMPAT\n\
86 # ifdef __LONG_DOUBLE_128__\n\
87 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
89 # define __LIBMLDBL_COMPAT(sym)\n\
90 # endif /* __LONG_DOUBLE_128__ */\n\
91 # endif /* __LIBMLDBL_COMPAT */\n\
92 # ifdef __cplusplus\n\
95 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
96 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
97 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
98 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
99 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
100 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
101 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
102 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
103 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
104 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
105 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
106 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
107 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
108 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
109 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
110 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
111 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
112 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
113 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
114 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
115 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
116 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
117 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
118 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
119 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
120 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
121 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
122 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
123 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
124 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
125 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
126 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
127 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
128 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
129 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
130 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
131 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
132 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
133 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
134 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
135 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
136 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
137 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
138 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
139 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
140 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
141 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
142 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
143 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
144 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
145 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
146 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
147 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
148 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
149 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
150 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
151 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
152 # ifdef __cplusplus\n\
155 #endif /* __MATH__ */",
158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
160 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
162 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
163 "AAB_darwin7_9_long_double_funcs_2";
166 * File name selection pattern
168 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
171 * Machine/OS name selection pattern
173 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
178 * content selection pattern - do fix if pattern found
180 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
181 "#include[ \\t]+\\\"";
183 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
184 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
185 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
188 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
190 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
193 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
198 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
200 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
201 "AAB_fd_zero_asm_posix_types_h";
204 * File name selection pattern
206 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
207 "asm/posix_types.h\0";
209 * Machine/OS name selection pattern
211 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
212 "i[34567]86-*-linux*",
216 * content bypass pattern - skip fix if pattern found
218 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
220 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
223 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 2
224 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
225 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
226 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, };
229 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
231 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
232 "/* This file fixes a bug in the __FD_ZERO macro\n\
233 for older versions of the Linux kernel. */\n\
234 #ifndef _POSIX_TYPES_H_WRAPPER\n\
235 #include <features.h>\n\
236 #include_next <asm/posix_types.h>\n\n\
237 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
239 #define __FD_ZERO(fdsetp) \\\n\
241 int __d0, __d1; \\\n\
242 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
243 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
244 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
245 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
248 #define _POSIX_TYPES_H_WRAPPER\n\
249 #endif /* _POSIX_TYPES_H_WRAPPER */",
252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
254 * Description of Aab_Fd_Zero_Gnu_Types_H fix
256 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
257 "AAB_fd_zero_gnu_types_h";
260 * File name selection pattern
262 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
265 * Machine/OS name selection pattern
267 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
268 "i[34567]86-*-linux*",
270 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
271 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
274 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
276 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
277 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
278 #ifndef _TYPES_H_WRAPPER\n\
279 #include <features.h>\n\
280 #include_next <gnu/types.h>\n\n\
281 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
283 # define __FD_ZERO(fdsetp) \\\n\
285 int __d0, __d1; \\\n\
286 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
287 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
288 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
289 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
292 #define _TYPES_H_WRAPPER\n\
293 #endif /* _TYPES_H_WRAPPER */",
296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
298 * Description of Aab_Fd_Zero_Selectbits_H fix
300 tSCC zAab_Fd_Zero_Selectbits_HName[] =
301 "AAB_fd_zero_selectbits_h";
304 * File name selection pattern
306 tSCC zAab_Fd_Zero_Selectbits_HList[] =
309 * Machine/OS name selection pattern
311 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
312 "i[34567]86-*-linux*",
314 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
315 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
318 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
320 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
321 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
322 #ifndef _SELECTBITS_H_WRAPPER\n\
323 #include <features.h>\n\
324 #include_next <selectbits.h>\n\n\
325 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
326 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
327 && __GLIBC_MINOR__ == 0\n\
329 #define __FD_ZERO(fdsetp) \\\\\n\
331 int __d0, __d1; \\\\\n\
332 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
333 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
334 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
335 / sizeof (__fd_mask)), \\\\\n\
336 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
337 : \"memory\"); \\\\\n\
340 #define _SELECTBITS_H_WRAPPER\n\
341 #endif /* _SELECTBITS_H_WRAPPER */",
344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
346 * Description of Aab_Solaris_Sys_Varargs_H fix
348 tSCC zAab_Solaris_Sys_Varargs_HName[] =
349 "AAB_solaris_sys_varargs_h";
352 * File name selection pattern
354 tSCC zAab_Solaris_Sys_Varargs_HList[] =
357 * Machine/OS name selection pattern
359 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
362 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
363 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
366 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
368 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
370 #include <stdarg.h>\n\
372 #include <varargs.h>\n\
376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
378 * Description of Aab_Sun_Memcpy fix
380 tSCC zAab_Sun_MemcpyName[] =
384 * File name selection pattern
386 tSCC zAab_Sun_MemcpyList[] =
389 * Machine/OS name selection pattern
391 #define apzAab_Sun_MemcpyMachs (const char**)NULL
394 * content selection pattern - do fix if pattern found
396 tSCC zAab_Sun_MemcpySelect0[] =
397 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
399 #define AAB_SUN_MEMCPY_TEST_CT 1
400 static tTestDesc aAab_Sun_MemcpyTests[] = {
401 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
404 * Fix Command Arguments for Aab_Sun_Memcpy
406 static const char* apzAab_Sun_MemcpyPatch[] = {
407 "/* This file was generated by fixincludes */\n\
408 #ifndef __memory_h__\n\
409 #define __memory_h__\n\n\
411 extern void *memccpy();\n\
412 extern void *memchr();\n\
413 extern void *memcpy();\n\
414 extern void *memset();\n\
416 extern char *memccpy();\n\
417 extern char *memchr();\n\
418 extern char *memcpy();\n\
419 extern char *memset();\n\
420 #endif /* __STDC__ */\n\n\
421 extern int memcmp();\n\n\
422 #endif /* __memory_h__ */\n\
426 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
427 * stdarg.h or varargs.h files as appropriate.\n\
431 hackname = AAB_svr4_no_varargs;\n\
432 files = sys/varargs.h;\n\
433 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
434 \"#ifndef _SYS_VARARGS_H\\n\"\n\
435 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
436 \"#ifdef __STDC__\\n\"\n\
437 \"#include <stdarg.h>\\n\"\n\
439 \"#include <varargs.h>\\n\"\n\
440 \"#endif\\n\\n\"\n\n\
441 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
445 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
446 * optimized byteswapping. (The original probably implemented some\n\
447 * incompatible optimized byteswapping.)\n\
450 hackname = AAB_svr4_replace_byteorder;\n\
451 mach = \"*-*-sysv4*\";\n\
452 mach = \"i[34567]86-*-sysv5*\";\n\
453 mach = \"i[34567]86-*-sco3.2v5*\";\n\
454 mach = \"i[34567]86-*-udk*\";\n\
455 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
456 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
457 mach = \"sparc-*-solaris2.[0-4]\";\n\
458 mach = \"i[34567]86-sequent-ptx*\";\n\
459 files = sys/byteorder.h;\n\
460 replace = <<- _EndOfHeader_\n\
461 #ifndef _SYS_BYTEORDER_H\n\
462 #define _SYS_BYTEORDER_H\n\n\
463 /* Functions to convert `short' and `long' quantities from host byte order\n\
464 to (internet) network byte order (i.e. big-endian).\n\n\
465 Written by Ron Guilmette (rfg@ncd.com).\n\n\
466 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
467 For big-endian machines these functions are essentially no-ops.\n\n\
468 For little-endian machines, we define the functions using specialized\n\
469 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
470 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
471 #error You lose! This file is only useful with GNU compilers.\n\
473 #ifndef __BYTE_ORDER__\n\
474 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
475 double underscores added at the front and back. */\n\
476 #define __LITTLE_ENDIAN__ 1234\n\
477 #define __BIG_ENDIAN__ 4321\n\
478 #define __PDP_ENDIAN__ 3412\n\
481 static __inline__ unsigned long htonl (unsigned long);\n\
482 static __inline__ unsigned short htons (unsigned int);\n\
483 static __inline__ unsigned long ntohl (unsigned long);\n\
484 static __inline__ unsigned short ntohs (unsigned int);\n\
485 #endif /* defined (__STDC__) */\n\n\
486 #if defined (__i386__)\n\n\
487 #ifndef __BYTE_ORDER__\n\
488 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
490 /* Convert a host long to a network long. */\n\n\
491 /* We must use a new-style function definition, so that this will also\n\
492 be valid for C++. */\n\
493 static __inline__ unsigned long\n\
494 htonl (unsigned long __arg)\n\
496 register unsigned long __result;\n\n\
497 __asm__ (\"xchg%B0 %b0,%h0\n\
499 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
502 /* Convert a host short to a network short. */\n\n\
503 static __inline__ unsigned short\n\
504 htons (unsigned int __arg)\n\
506 register unsigned short __result;\n\n\
507 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
510 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
511 #ifndef __BYTE_ORDER__\n\
512 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
514 /* For other little-endian machines, using C code is just as efficient as\n\
515 using assembly code. */\n\n\
516 /* Convert a host long to a network long. */\n\n\
517 static __inline__ unsigned long\n\
518 htonl (unsigned long __arg)\n\
520 register unsigned long __result;\n\n\
521 __result = (__arg >> 24) & 0x000000ff;\n\
522 __result |= (__arg >> 8) & 0x0000ff00;\n\
523 __result |= (__arg << 8) & 0x00ff0000;\n\
524 __result |= (__arg << 24) & 0xff000000;\n\
527 /* Convert a host short to a network short. */\n\n\
528 static __inline__ unsigned short\n\
529 htons (unsigned int __arg)\n\
531 register unsigned short __result;\n\n\
532 __result = (__arg << 8) & 0xff00;\n\
533 __result |= (__arg >> 8) & 0x00ff;\n\
536 #else /* must be a big-endian machine */\n\n\
537 #ifndef __BYTE_ORDER__\n\
538 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
540 /* Convert a host long to a network long. */\n\n\
541 static __inline__ unsigned long\n\
542 htonl (unsigned long __arg)\n\
546 /* Convert a host short to a network short. */\n\n\
547 static __inline__ unsigned short\n\
548 htons (unsigned int __arg)\n\
552 #endif /* big-endian */\n\n\
553 /* Convert a network long to a host long. */\n\n\
554 static __inline__ unsigned long\n\
555 ntohl (unsigned long __arg)\n\
557 return htonl (__arg);\n\
559 /* Convert a network short to a host short. */\n\n\
560 static __inline__ unsigned short\n\
561 ntohs (unsigned int __arg)\n\
563 return htons (__arg);\n\
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
570 * Description of Aab_Ultrix_Ansi_Compat fix
572 tSCC zAab_Ultrix_Ansi_CompatName[] =
573 "AAB_ultrix_ansi_compat";
576 * File name selection pattern
578 tSCC zAab_Ultrix_Ansi_CompatList[] =
581 * Machine/OS name selection pattern
583 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
586 * content selection pattern - do fix if pattern found
588 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
591 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
592 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
593 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
596 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
598 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
599 "/* This file intentionally left blank. */\n",
602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
604 * Description of Aab_Ultrix_Limits fix
606 tSCC zAab_Ultrix_LimitsName[] =
610 * File name selection pattern
612 tSCC zAab_Ultrix_LimitsList[] =
615 * Machine/OS name selection pattern
617 tSCC* apzAab_Ultrix_LimitsMachs[] = {
620 #define AAB_ULTRIX_LIMITS_TEST_CT 0
621 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
624 * Fix Command Arguments for Aab_Ultrix_Limits
626 static const char* apzAab_Ultrix_LimitsPatch[] = {
627 "#ifndef _LIMITS_INCLUDED\n\
628 #define _LIMITS_INCLUDED\n\
629 #include <sys/limits.h>\n\
630 #endif /* _LIMITS_INCLUDED */",
633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
635 * Description of Aab_Ultrix_Memory fix
637 tSCC zAab_Ultrix_MemoryName[] =
641 * File name selection pattern
643 tSCC zAab_Ultrix_MemoryList[] =
646 * Machine/OS name selection pattern
648 tSCC* apzAab_Ultrix_MemoryMachs[] = {
651 #define AAB_ULTRIX_MEMORY_TEST_CT 0
652 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
655 * Fix Command Arguments for Aab_Ultrix_Memory
657 static const char* apzAab_Ultrix_MemoryPatch[] = {
658 "#ifndef _MEMORY_INCLUDED\n\
659 #define _MEMORY_INCLUDED\n\
660 #include <strings.h>\n\
661 #endif /* _MEMORY_INCLUDED */",
664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
666 * Description of Aab_Ultrix_String fix
668 tSCC zAab_Ultrix_StringName[] =
672 * File name selection pattern
674 tSCC zAab_Ultrix_StringList[] =
677 * Machine/OS name selection pattern
679 tSCC* apzAab_Ultrix_StringMachs[] = {
682 #define AAB_ULTRIX_STRING_TEST_CT 0
683 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
686 * Fix Command Arguments for Aab_Ultrix_String
688 static const char* apzAab_Ultrix_StringPatch[] = {
689 "#ifndef _STRING_INCLUDED\n\
690 #define _STRING_INCLUDED\n\
691 #include <strings.h>\n\
692 #endif /* _STRING_INCLUDED */",
695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
697 * Description of Aix_Pthread fix
699 tSCC zAix_PthreadName[] =
703 * File name selection pattern
705 tSCC zAix_PthreadList[] =
708 * Machine/OS name selection pattern
710 #define apzAix_PthreadMachs (const char**)NULL
713 * content selection pattern - do fix if pattern found
715 tSCC zAix_PthreadSelect0[] =
716 "(#define [A-Za-z_0-9]+)(\\\\\n\
720 #define AIX_PTHREAD_TEST_CT 1
721 static tTestDesc aAix_PthreadTests[] = {
722 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
725 * Fix Command Arguments for Aix_Pthread
727 static const char* apzAix_PthreadPatch[] = {
732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
734 * Description of Aix_Sysmachine fix
736 tSCC zAix_SysmachineName[] =
740 * File name selection pattern
742 tSCC zAix_SysmachineList[] =
745 * Machine/OS name selection pattern
747 #define apzAix_SysmachineMachs (const char**)NULL
750 * content selection pattern - do fix if pattern found
752 tSCC zAix_SysmachineSelect0[] =
755 #define AIX_SYSMACHINE_TEST_CT 1
756 static tTestDesc aAix_SysmachineTests[] = {
757 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
760 * Fix Command Arguments for Aix_Sysmachine
762 static const char* apzAix_SysmachinePatch[] = {
767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
769 * Description of Aix_Syswait fix
771 tSCC zAix_SyswaitName[] =
775 * File name selection pattern
777 tSCC zAix_SyswaitList[] =
780 * Machine/OS name selection pattern
782 #define apzAix_SyswaitMachs (const char**)NULL
785 * content selection pattern - do fix if pattern found
787 tSCC zAix_SyswaitSelect0[] =
788 "^extern pid_t wait3\\(\\);\n";
789 tSCC zAix_SyswaitSelect1[] =
792 #define AIX_SYSWAIT_TEST_CT 2
793 static tTestDesc aAix_SyswaitTests[] = {
794 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
795 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
798 * Fix Command Arguments for Aix_Syswait
800 static const char* apzAix_SyswaitPatch[] = {
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808 * Description of Aix_Syswait_2 fix
810 tSCC zAix_Syswait_2Name[] =
814 * File name selection pattern
816 tSCC zAix_Syswait_2List[] =
819 * Machine/OS name selection pattern
821 #define apzAix_Syswait_2Machs (const char**)NULL
824 * content selection pattern - do fix if pattern found
826 tSCC zAix_Syswait_2Select0[] =
827 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
829 #define AIX_SYSWAIT_2_TEST_CT 1
830 static tTestDesc aAix_Syswait_2Tests[] = {
831 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
834 * Fix Command Arguments for Aix_Syswait_2
836 static const char* apzAix_Syswait_2Patch[] = {
841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
843 * Description of Aix_Volatile fix
845 tSCC zAix_VolatileName[] =
849 * File name selection pattern
851 tSCC zAix_VolatileList[] =
854 * Machine/OS name selection pattern
856 #define apzAix_VolatileMachs (const char**)NULL
859 * content selection pattern - do fix if pattern found
861 tSCC zAix_VolatileSelect0[] =
862 "typedef volatile int sig_atomic_t";
864 #define AIX_VOLATILE_TEST_CT 1
865 static tTestDesc aAix_VolatileTests[] = {
866 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
869 * Fix Command Arguments for Aix_Volatile
871 static const char* apzAix_VolatilePatch[] = {
873 "typedef int sig_atomic_t",
876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
878 * Description of Alpha___Assert fix
880 tSCC zAlpha___AssertName[] =
884 * File name selection pattern
886 tSCC zAlpha___AssertList[] =
889 * Machine/OS name selection pattern
891 #define apzAlpha___AssertMachs (const char**)NULL
894 * content selection pattern - do fix if pattern found
896 tSCC zAlpha___AssertSelect0[] =
897 "__assert\\(char \\*, char \\*, int\\)";
899 #define ALPHA___ASSERT_TEST_CT 1
900 static tTestDesc aAlpha___AssertTests[] = {
901 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
904 * Fix Command Arguments for Alpha___Assert
906 static const char* apzAlpha___AssertPatch[] = {
908 "__assert(const char *, const char *, int)",
911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
913 * Description of Alpha___Extern_Prefix fix
915 tSCC zAlpha___Extern_PrefixName[] =
916 "alpha___extern_prefix";
919 * File name selection pattern
921 #define zAlpha___Extern_PrefixList (char*)NULL
923 * Machine/OS name selection pattern
925 tSCC* apzAlpha___Extern_PrefixMachs[] = {
930 * content selection pattern - do fix if pattern found
932 tSCC zAlpha___Extern_PrefixSelect0[] =
933 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
934 (#[ \t]*pragma[ \t]*extern_prefix.*)";
936 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
937 static tTestDesc aAlpha___Extern_PrefixTests[] = {
938 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
941 * Fix Command Arguments for Alpha___Extern_Prefix
943 static const char* apzAlpha___Extern_PrefixPatch[] = {
945 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
951 * Description of Alpha___Extern_Prefix_Standards fix
953 tSCC zAlpha___Extern_Prefix_StandardsName[] =
954 "alpha___extern_prefix_standards";
957 * File name selection pattern
959 tSCC zAlpha___Extern_Prefix_StandardsList[] =
962 * Machine/OS name selection pattern
964 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
969 * content selection pattern - do fix if pattern found
971 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
972 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
974 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
975 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
976 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
979 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
981 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
983 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
988 * Description of Alpha___Extern_Prefix_Sys_Stat fix
990 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
991 "alpha___extern_prefix_sys_stat";
994 * File name selection pattern
996 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
997 "sys/stat.h\0sys/mount.h\0";
999 * Machine/OS name selection pattern
1001 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1003 (const char*)NULL };
1006 * content selection pattern - do fix if pattern found
1008 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1009 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1011 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1012 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1013 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1016 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1018 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1020 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1025 * Description of Alpha_Assert fix
1027 tSCC zAlpha_AssertName[] =
1031 * File name selection pattern
1033 tSCC zAlpha_AssertList[] =
1036 * Machine/OS name selection pattern
1038 #define apzAlpha_AssertMachs (const char**)NULL
1041 * content selection pattern - do fix if pattern found
1043 tSCC zAlpha_AssertSelect0[] =
1044 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1046 #define ALPHA_ASSERT_TEST_CT 1
1047 static tTestDesc aAlpha_AssertTests[] = {
1048 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1051 * Fix Command Arguments for Alpha_Assert
1053 static const char* apzAlpha_AssertPatch[] = {
1058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1060 * Description of Alpha_Bad_Lval fix
1062 tSCC zAlpha_Bad_LvalName[] =
1066 * File name selection pattern
1068 #define zAlpha_Bad_LvalList (char*)NULL
1070 * Machine/OS name selection pattern
1072 tSCC* apzAlpha_Bad_LvalMachs[] = {
1074 (const char*)NULL };
1077 * content selection pattern - do fix if pattern found
1079 tSCC zAlpha_Bad_LvalSelect0[] =
1080 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1082 #define ALPHA_BAD_LVAL_TEST_CT 1
1083 static tTestDesc aAlpha_Bad_LvalTests[] = {
1084 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1087 * Fix Command Arguments for Alpha_Bad_Lval
1089 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1090 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1095 * Description of Alpha_Getopt fix
1097 tSCC zAlpha_GetoptName[] =
1101 * File name selection pattern
1103 tSCC zAlpha_GetoptList[] =
1104 "stdio.h\0stdlib.h\0";
1106 * Machine/OS name selection pattern
1108 #define apzAlpha_GetoptMachs (const char**)NULL
1111 * content selection pattern - do fix if pattern found
1113 tSCC zAlpha_GetoptSelect0[] =
1114 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1116 #define ALPHA_GETOPT_TEST_CT 1
1117 static tTestDesc aAlpha_GetoptTests[] = {
1118 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1121 * Fix Command Arguments for Alpha_Getopt
1123 static const char* apzAlpha_GetoptPatch[] = {
1125 "getopt(int, char *const[], const char *)",
1128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1130 * Description of Alpha_Parens fix
1132 tSCC zAlpha_ParensName[] =
1136 * File name selection pattern
1138 tSCC zAlpha_ParensList[] =
1141 * Machine/OS name selection pattern
1143 #define apzAlpha_ParensMachs (const char**)NULL
1146 * content selection pattern - do fix if pattern found
1148 tSCC zAlpha_ParensSelect0[] =
1149 "#ifndef\\(__mips64\\)";
1151 #define ALPHA_PARENS_TEST_CT 1
1152 static tTestDesc aAlpha_ParensTests[] = {
1153 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1156 * Fix Command Arguments for Alpha_Parens
1158 static const char* apzAlpha_ParensPatch[] = {
1163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1165 * Description of Alpha_Pthread fix
1167 tSCC zAlpha_PthreadName[] =
1171 * File name selection pattern
1173 tSCC zAlpha_PthreadList[] =
1176 * Machine/OS name selection pattern
1178 tSCC* apzAlpha_PthreadMachs[] = {
1180 (const char*)NULL };
1183 * content selection pattern - do fix if pattern found
1185 tSCC zAlpha_PthreadSelect0[] =
1186 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1187 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1189 #define ALPHA_PTHREAD_TEST_CT 1
1190 static tTestDesc aAlpha_PthreadTests[] = {
1191 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1194 * Fix Command Arguments for Alpha_Pthread
1196 static const char* apzAlpha_PthreadPatch[] = {
1198 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1204 * Description of Alpha_Pthread_Gcc fix
1206 tSCC zAlpha_Pthread_GccName[] =
1207 "alpha_pthread_gcc";
1210 * File name selection pattern
1212 tSCC zAlpha_Pthread_GccList[] =
1215 * Machine/OS name selection pattern
1217 tSCC* apzAlpha_Pthread_GccMachs[] = {
1219 (const char*)NULL };
1222 * content selection pattern - do fix if pattern found
1224 tSCC zAlpha_Pthread_GccSelect0[] =
1226 # error <pthread.h>: unrecognized compiler.";
1228 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1229 static tTestDesc aAlpha_Pthread_GccTests[] = {
1230 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1233 * Fix Command Arguments for Alpha_Pthread_Gcc
1235 static const char* apzAlpha_Pthread_GccPatch[] = {
1237 "#elif defined (__GNUC__)\n\
1238 # define _PTHREAD_ENV_GCC\n\
1242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1244 * Description of Alpha_Pthread_Init fix
1246 tSCC zAlpha_Pthread_InitName[] =
1247 "alpha_pthread_init";
1250 * File name selection pattern
1252 tSCC zAlpha_Pthread_InitList[] =
1255 * Machine/OS name selection pattern
1257 tSCC* apzAlpha_Pthread_InitMachs[] = {
1259 (const char*)NULL };
1262 * content selection pattern - do fix if pattern found
1264 tSCC zAlpha_Pthread_InitSelect0[] =
1265 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1267 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1268 static tTestDesc aAlpha_Pthread_InitTests[] = {
1269 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1272 * Fix Command Arguments for Alpha_Pthread_Init
1274 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1275 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1276 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1277 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1278 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1279 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1280 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1285 * Description of Alpha_Sbrk fix
1287 tSCC zAlpha_SbrkName[] =
1291 * File name selection pattern
1293 tSCC zAlpha_SbrkList[] =
1296 * Machine/OS name selection pattern
1298 #define apzAlpha_SbrkMachs (const char**)NULL
1301 * content selection pattern - do fix if pattern found
1303 tSCC zAlpha_SbrkSelect0[] =
1304 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1306 #define ALPHA_SBRK_TEST_CT 1
1307 static tTestDesc aAlpha_SbrkTests[] = {
1308 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1311 * Fix Command Arguments for Alpha_Sbrk
1313 static const char* apzAlpha_SbrkPatch[] = {
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1320 * Description of Alpha_Wchar fix
1322 tSCC zAlpha_WcharName[] =
1326 * File name selection pattern
1328 tSCC zAlpha_WcharList[] =
1331 * Machine/OS name selection pattern
1333 tSCC* apzAlpha_WcharMachs[] = {
1335 (const char*)NULL };
1338 * content selection pattern - do fix if pattern found
1340 tSCC zAlpha_WcharSelect0[] =
1341 "#define wcstok wcstok_r";
1343 #define ALPHA_WCHAR_TEST_CT 1
1344 static tTestDesc aAlpha_WcharTests[] = {
1345 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1348 * Fix Command Arguments for Alpha_Wchar
1350 static const char* apzAlpha_WcharPatch[] = { "sed",
1351 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1352 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1357 * Description of Avoid_Bool_Define fix
1359 tSCC zAvoid_Bool_DefineName[] =
1360 "avoid_bool_define";
1363 * File name selection pattern
1365 tSCC zAvoid_Bool_DefineList[] =
1366 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1368 * Machine/OS name selection pattern
1370 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1373 * content selection pattern - do fix if pattern found
1375 tSCC zAvoid_Bool_DefineSelect0[] =
1376 "#[ \t]*define[ \t]+bool[ \t]";
1379 * content bypass pattern - skip fix if pattern found
1381 tSCC zAvoid_Bool_DefineBypass0[] =
1384 #define AVOID_BOOL_DEFINE_TEST_CT 2
1385 static tTestDesc aAvoid_Bool_DefineTests[] = {
1386 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1387 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1390 * Fix Command Arguments for Avoid_Bool_Define
1392 static const char* apzAvoid_Bool_DefinePatch[] = {
1394 "#ifndef __cplusplus\n\
1397 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1402 * Description of Avoid_Bool_Type fix
1404 tSCC zAvoid_Bool_TypeName[] =
1408 * File name selection pattern
1410 tSCC zAvoid_Bool_TypeList[] =
1411 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1413 * Machine/OS name selection pattern
1415 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1418 * content selection pattern - do fix if pattern found
1420 tSCC zAvoid_Bool_TypeSelect0[] =
1421 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1424 * content bypass pattern - skip fix if pattern found
1426 tSCC zAvoid_Bool_TypeBypass0[] =
1429 #define AVOID_BOOL_TYPE_TEST_CT 2
1430 static tTestDesc aAvoid_Bool_TypeTests[] = {
1431 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1432 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1435 * Fix Command Arguments for Avoid_Bool_Type
1437 static const char* apzAvoid_Bool_TypePatch[] = {
1439 "#ifndef __cplusplus\n\
1444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1446 * Description of Avoid_Wchar_T_Type fix
1448 tSCC zAvoid_Wchar_T_TypeName[] =
1449 "avoid_wchar_t_type";
1452 * File name selection pattern
1454 #define zAvoid_Wchar_T_TypeList (char*)NULL
1456 * Machine/OS name selection pattern
1458 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1461 * content selection pattern - do fix if pattern found
1463 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1464 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1467 * content bypass pattern - skip fix if pattern found
1469 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1471 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1473 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1474 "XFree86: xc/lib/X11/Xlib\\.h";
1476 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1477 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1478 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1479 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1480 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1481 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1484 * Fix Command Arguments for Avoid_Wchar_T_Type
1486 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1488 "#ifndef __cplusplus\n\
1493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1495 * Description of Bad_Struct_Term fix
1497 tSCC zBad_Struct_TermName[] =
1501 * File name selection pattern
1503 tSCC zBad_Struct_TermList[] =
1506 * Machine/OS name selection pattern
1508 #define apzBad_Struct_TermMachs (const char**)NULL
1511 * content selection pattern - do fix if pattern found
1513 tSCC zBad_Struct_TermSelect0[] =
1514 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1516 #define BAD_STRUCT_TERM_TEST_CT 1
1517 static tTestDesc aBad_Struct_TermTests[] = {
1518 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1521 * Fix Command Arguments for Bad_Struct_Term
1523 static const char* apzBad_Struct_TermPatch[] = {
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530 * Description of Badquote fix
1532 tSCC zBadquoteName[] =
1536 * File name selection pattern
1538 tSCC zBadquoteList[] =
1539 "sundev/vuid_event.h\0";
1541 * Machine/OS name selection pattern
1543 #define apzBadquoteMachs (const char**)NULL
1546 * content selection pattern - do fix if pattern found
1548 tSCC zBadquoteSelect0[] =
1551 #define BADQUOTE_TEST_CT 1
1552 static tTestDesc aBadquoteTests[] = {
1553 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1556 * Fix Command Arguments for Badquote
1558 static const char* apzBadquotePatch[] = {
1563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1565 * Description of Broken_Assert_Stdio fix
1567 tSCC zBroken_Assert_StdioName[] =
1568 "broken_assert_stdio";
1571 * File name selection pattern
1573 tSCC zBroken_Assert_StdioList[] =
1576 * Machine/OS name selection pattern
1578 #define apzBroken_Assert_StdioMachs (const char**)NULL
1581 * content selection pattern - do fix if pattern found
1583 tSCC zBroken_Assert_StdioSelect0[] =
1587 * content bypass pattern - skip fix if pattern found
1589 tSCC zBroken_Assert_StdioBypass0[] =
1590 "include.*stdio\\.h";
1592 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1593 static tTestDesc aBroken_Assert_StdioTests[] = {
1594 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1595 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1598 * Fix Command Arguments for Broken_Assert_Stdio
1600 static const char* apzBroken_Assert_StdioPatch[] = {
1602 "#include <stdio.h>\n",
1605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1607 * Description of Broken_Assert_Stdlib fix
1609 tSCC zBroken_Assert_StdlibName[] =
1610 "broken_assert_stdlib";
1613 * File name selection pattern
1615 tSCC zBroken_Assert_StdlibList[] =
1618 * Machine/OS name selection pattern
1620 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1623 * content selection pattern - do fix if pattern found
1625 tSCC zBroken_Assert_StdlibSelect0[] =
1626 "exit *\\(|abort *\\(";
1629 * content bypass pattern - skip fix if pattern found
1631 tSCC zBroken_Assert_StdlibBypass0[] =
1632 "include.*stdlib\\.h";
1634 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1635 static tTestDesc aBroken_Assert_StdlibTests[] = {
1636 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1637 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1640 * Fix Command Arguments for Broken_Assert_Stdlib
1642 static const char* apzBroken_Assert_StdlibPatch[] = {
1644 "#ifdef __cplusplus\n\
1645 #include <stdlib.h>\n\
1649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1651 * Description of Broken_Cabs fix
1653 tSCC zBroken_CabsName[] =
1657 * File name selection pattern
1659 tSCC zBroken_CabsList[] =
1660 "math.h\0architecture/*/math.h\0";
1662 * Machine/OS name selection pattern
1664 #define apzBroken_CabsMachs (const char**)NULL
1667 * content selection pattern - do fix if pattern found
1669 tSCC zBroken_CabsSelect0[] =
1670 "^extern[ \t]+double[ \t]+cabs";
1672 #define BROKEN_CABS_TEST_CT 1
1673 static tTestDesc aBroken_CabsTests[] = {
1674 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1677 * Fix Command Arguments for Broken_Cabs
1679 static const char* apzBroken_CabsPatch[] = { "sed",
1680 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1681 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1686 * Description of Broken_Nan fix
1688 tSCC zBroken_NanName[] =
1692 * File name selection pattern
1694 tSCC zBroken_NanList[] =
1695 "architecture/ppc/math.h\0architecture/*/math.h\0";
1697 * Machine/OS name selection pattern
1699 #define apzBroken_NanMachs (const char**)NULL
1702 * content selection pattern - do fix if pattern found
1704 tSCC zBroken_NanSelect0[] =
1705 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1708 * content bypass pattern - skip fix if pattern found
1710 tSCC zBroken_NanBypass0[] =
1713 #define BROKEN_NAN_TEST_CT 2
1714 static tTestDesc aBroken_NanTests[] = {
1715 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1716 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1719 * Fix Command Arguments for Broken_Nan
1721 static const char* apzBroken_NanPatch[] = {
1726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1728 * Description of Bsd_Stdio_Attrs_Conflict fix
1730 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1731 "bsd_stdio_attrs_conflict";
1734 * File name selection pattern
1736 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1739 * Machine/OS name selection pattern
1741 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1744 (const char*)NULL };
1747 * content selection pattern - do fix if pattern found
1749 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1750 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1752 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1753 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1754 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1757 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1759 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1761 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1762 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1763 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1768 * Description of Ctrl_Quotes_Def fix
1770 tSCC zCtrl_Quotes_DefName[] =
1774 * File name selection pattern
1776 #define zCtrl_Quotes_DefList (char*)NULL
1778 * Machine/OS name selection pattern
1780 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1783 * content selection pattern - do fix if pattern found
1785 tSCC zCtrl_Quotes_DefSelect0[] =
1786 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1788 #define CTRL_QUOTES_DEF_TEST_CT 1
1789 static tTestDesc aCtrl_Quotes_DefTests[] = {
1790 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1793 * Fix Command Arguments for Ctrl_Quotes_Def
1795 static const char* apzCtrl_Quotes_DefPatch[] = {
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1802 * Description of Ctrl_Quotes_Use fix
1804 tSCC zCtrl_Quotes_UseName[] =
1808 * File name selection pattern
1810 #define zCtrl_Quotes_UseList (char*)NULL
1812 * Machine/OS name selection pattern
1814 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1817 * content selection pattern - do fix if pattern found
1819 tSCC zCtrl_Quotes_UseSelect0[] =
1820 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1822 #define CTRL_QUOTES_USE_TEST_CT 1
1823 static tTestDesc aCtrl_Quotes_UseTests[] = {
1824 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1827 * Fix Command Arguments for Ctrl_Quotes_Use
1829 static const char* apzCtrl_Quotes_UsePatch[] = {
1834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1836 * Description of Cxx_Unready fix
1838 tSCC zCxx_UnreadyName[] =
1842 * File name selection pattern
1844 tSCC zCxx_UnreadyList[] =
1845 "sys/mman.h\0rpc/types.h\0";
1847 * Machine/OS name selection pattern
1849 #define apzCxx_UnreadyMachs (const char**)NULL
1852 * content selection pattern - do fix if pattern found
1854 tSCC zCxx_UnreadySelect0[] =
1858 * content bypass pattern - skip fix if pattern found
1860 tSCC zCxx_UnreadyBypass0[] =
1861 "\"C\"|__BEGIN_DECLS";
1863 #define CXX_UNREADY_TEST_CT 2
1864 static tTestDesc aCxx_UnreadyTests[] = {
1865 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1866 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1869 * Fix Command Arguments for Cxx_Unready
1871 static const char* apzCxx_UnreadyPatch[] = {
1873 "#ifdef __cplusplus\n\
1876 "#ifdef __cplusplus\n\
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1883 * Description of Darwin_Gcc4_Breakage fix
1885 tSCC zDarwin_Gcc4_BreakageName[] =
1886 "darwin_gcc4_breakage";
1889 * File name selection pattern
1891 tSCC zDarwin_Gcc4_BreakageList[] =
1892 "AvailabilityMacros.h\0";
1894 * Machine/OS name selection pattern
1896 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1898 (const char*)NULL };
1901 * content selection pattern - do fix if pattern found
1903 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1904 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1906 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1907 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1908 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1911 * Fix Command Arguments for Darwin_Gcc4_Breakage
1913 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1915 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1920 * Description of Darwin_Private_Extern fix
1922 tSCC zDarwin_Private_ExternName[] =
1923 "darwin_private_extern";
1926 * File name selection pattern
1928 tSCC zDarwin_Private_ExternList[] =
1931 * Machine/OS name selection pattern
1933 tSCC* apzDarwin_Private_ExternMachs[] = {
1935 (const char*)NULL };
1938 * content selection pattern - do fix if pattern found
1940 tSCC zDarwin_Private_ExternSelect0[] =
1941 "__private_extern__ [a-z_]+ _dyld_";
1943 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1944 static tTestDesc aDarwin_Private_ExternTests[] = {
1945 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1948 * Fix Command Arguments for Darwin_Private_Extern
1950 static const char* apzDarwin_Private_ExternPatch[] = {
1953 "__private_extern__",
1956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1958 * Description of Dec_Intern_Asm fix
1960 tSCC zDec_Intern_AsmName[] =
1964 * File name selection pattern
1966 tSCC zDec_Intern_AsmList[] =
1969 * Machine/OS name selection pattern
1971 #define apzDec_Intern_AsmMachs (const char**)NULL
1972 #define DEC_INTERN_ASM_TEST_CT 0
1973 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1976 * Fix Command Arguments for Dec_Intern_Asm
1978 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1979 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1981 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1987 * Description of Djgpp_Wchar_H fix
1989 tSCC zDjgpp_Wchar_HName[] =
1993 * File name selection pattern
1995 #define zDjgpp_Wchar_HList (char*)NULL
1997 * Machine/OS name selection pattern
1999 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2002 * content selection pattern - do fix if pattern found
2004 tSCC zDjgpp_Wchar_HSelect0[] =
2008 * content bypass pattern - skip fix if pattern found
2010 tSCC zDjgpp_Wchar_HBypass0[] =
2013 #define DJGPP_WCHAR_H_TEST_CT 2
2014 static tTestDesc aDjgpp_Wchar_HTests[] = {
2015 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2016 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2019 * Fix Command Arguments for Djgpp_Wchar_H
2021 static const char* apzDjgpp_Wchar_HPatch[] = {
2024 #include <sys/djtypes.h>",
2025 "#include <stddef.h>",
2028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2030 * Description of Ecd_Cursor fix
2032 tSCC zEcd_CursorName[] =
2036 * File name selection pattern
2038 tSCC zEcd_CursorList[] =
2039 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2041 * Machine/OS name selection pattern
2043 #define apzEcd_CursorMachs (const char**)NULL
2046 * content selection pattern - do fix if pattern found
2048 tSCC zEcd_CursorSelect0[] =
2051 #define ECD_CURSOR_TEST_CT 1
2052 static tTestDesc aEcd_CursorTests[] = {
2053 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2056 * Fix Command Arguments for Ecd_Cursor
2058 static const char* apzEcd_CursorPatch[] = {
2063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2065 * Description of Exception_Structure fix
2067 tSCC zException_StructureName[] =
2068 "exception_structure";
2071 * File name selection pattern
2073 tSCC zException_StructureList[] =
2076 * Machine/OS name selection pattern
2078 #define apzException_StructureMachs (const char**)NULL
2081 * content selection pattern - do fix if pattern found
2083 tSCC zException_StructureSelect0[] =
2087 * content bypass pattern - skip fix if pattern found
2089 tSCC zException_StructureBypass0[] =
2090 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2092 #define EXCEPTION_STRUCTURE_TEST_CT 2
2093 static tTestDesc aException_StructureTests[] = {
2094 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2095 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2098 * Fix Command Arguments for Exception_Structure
2100 static const char* apzException_StructurePatch[] = {
2102 "struct exception;\n",
2105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2107 * Description of Freebsd_Gcc3_Breakage fix
2109 tSCC zFreebsd_Gcc3_BreakageName[] =
2110 "freebsd_gcc3_breakage";
2113 * File name selection pattern
2115 tSCC zFreebsd_Gcc3_BreakageList[] =
2118 * Machine/OS name selection pattern
2120 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2122 (const char*)NULL };
2125 * content selection pattern - do fix if pattern found
2127 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2128 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2131 * content bypass pattern - skip fix if pattern found
2133 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2134 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2136 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2137 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2138 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2139 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2142 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2144 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2146 "%0 || __GNUC__ >= 3",
2149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2151 * Description of Freebsd_Gcc4_Breakage fix
2153 tSCC zFreebsd_Gcc4_BreakageName[] =
2154 "freebsd_gcc4_breakage";
2157 * File name selection pattern
2159 tSCC zFreebsd_Gcc4_BreakageList[] =
2162 * Machine/OS name selection pattern
2164 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2166 (const char*)NULL };
2169 * content selection pattern - do fix if pattern found
2171 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2172 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2174 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2175 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2176 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2179 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2181 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2183 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2188 * Description of Glibc_C99_Inline_1 fix
2190 tSCC zGlibc_C99_Inline_1Name[] =
2191 "glibc_c99_inline_1";
2194 * File name selection pattern
2196 tSCC zGlibc_C99_Inline_1List[] =
2197 "features.h\0*/features.h\0";
2199 * Machine/OS name selection pattern
2201 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2204 * content selection pattern - do fix if pattern found
2206 tSCC zGlibc_C99_Inline_1Select0[] =
2207 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2209 #define GLIBC_C99_INLINE_1_TEST_CT 1
2210 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2211 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2214 * Fix Command Arguments for Glibc_C99_Inline_1
2216 static const char* apzGlibc_C99_Inline_1Patch[] = {
2218 "%0 && __STDC_VERSION__ < 199901L",
2221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2223 * Description of Glibc_C99_Inline_2 fix
2225 tSCC zGlibc_C99_Inline_2Name[] =
2226 "glibc_c99_inline_2";
2229 * File name selection pattern
2231 tSCC zGlibc_C99_Inline_2List[] =
2232 "sys/stat.h\0*/sys/stat.h\0";
2234 * Machine/OS name selection pattern
2236 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2239 * content selection pattern - do fix if pattern found
2241 tSCC zGlibc_C99_Inline_2Select0[] =
2242 "extern __inline__ int";
2244 #define GLIBC_C99_INLINE_2_TEST_CT 1
2245 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2246 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2249 * Fix Command Arguments for Glibc_C99_Inline_2
2251 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2252 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#if __STDC_VERSION__ < 199901L\\\n\
2255 __inline__ int \\1/",
2256 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#if __STDC_VERSION__ < 199901L\\\n\
2259 __inline__ int __REDIRECT\\1 (\\2/",
2260 "-e", "s/^extern __inline__ int/#if __STDC_VERSION__ < 199901L\\\n\
2266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2268 * Description of Glibc_C99_Inline_3 fix
2270 tSCC zGlibc_C99_Inline_3Name[] =
2271 "glibc_c99_inline_3";
2274 * File name selection pattern
2276 tSCC zGlibc_C99_Inline_3List[] =
2277 "bits/string2.h\0*/bits/string2.h\0";
2279 * Machine/OS name selection pattern
2281 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2284 * content bypass pattern - skip fix if pattern found
2286 tSCC zGlibc_C99_Inline_3Bypass0[] =
2289 #define GLIBC_C99_INLINE_3_TEST_CT 1
2290 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2291 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL }, };
2294 * Fix Command Arguments for Glibc_C99_Inline_3
2296 static const char* apzGlibc_C99_Inline_3Patch[] = {
2298 "# if defined(__cplusplus) || __STDC_VERSION__ >= 19901L",
2299 "^# ifdef __cplusplus$",
2302 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2304 * Description of Glibc_C99_Inline_4 fix
2306 tSCC zGlibc_C99_Inline_4Name[] =
2307 "glibc_c99_inline_4";
2310 * File name selection pattern
2312 tSCC zGlibc_C99_Inline_4List[] =
2313 "sys/sysmacros.h\0*/sys/sysmacros.h\0";
2315 * Machine/OS name selection pattern
2317 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2320 * content selection pattern - do fix if pattern found
2322 tSCC zGlibc_C99_Inline_4Select0[] =
2326 * content bypass pattern - skip fix if pattern found
2328 tSCC zGlibc_C99_Inline_4Bypass0[] =
2331 #define GLIBC_C99_INLINE_4_TEST_CT 2
2332 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2333 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2334 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2337 * Fix Command Arguments for Glibc_C99_Inline_4
2339 static const char* apzGlibc_C99_Inline_4Patch[] = {
2342 #if __STDC_VERSION__ < 199901L\n\
2347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2349 * Description of Glibc_Mutex_Init fix
2351 tSCC zGlibc_Mutex_InitName[] =
2355 * File name selection pattern
2357 tSCC zGlibc_Mutex_InitList[] =
2360 * Machine/OS name selection pattern
2362 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2365 * content selection pattern - do fix if pattern found
2367 tSCC zGlibc_Mutex_InitSelect0[] =
2368 "\\{ *\\{ *0, *\\} *\\}";
2370 #define GLIBC_MUTEX_INIT_TEST_CT 1
2371 static tTestDesc aGlibc_Mutex_InitTests[] = {
2372 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2375 * Fix Command Arguments for Glibc_Mutex_Init
2377 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2378 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2379 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2380 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2381 "-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/",
2382 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2383 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2388 * Description of Gnu_Types fix
2390 tSCC zGnu_TypesName[] =
2394 * File name selection pattern
2396 tSCC zGnu_TypesList[] =
2397 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2399 * Machine/OS name selection pattern
2401 tSCC* apzGnu_TypesMachs[] = {
2402 "*-*-solaris2.1[0-9]*",
2403 (const char*)NULL };
2406 * content selection pattern - do fix if pattern found
2408 tSCC zGnu_TypesSelect0[] =
2409 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2412 * content bypass pattern - skip fix if pattern found
2414 tSCC zGnu_TypesBypass0[] =
2415 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2417 #define GNU_TYPES_TEST_CT 2
2418 static tTestDesc aGnu_TypesTests[] = {
2419 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2420 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2423 * Fix Command Arguments for Gnu_Types
2425 static const char* apzGnu_TypesPatch[] = {
2429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2431 * Description of Hp_Inline fix
2433 tSCC zHp_InlineName[] =
2437 * File name selection pattern
2439 tSCC zHp_InlineList[] =
2440 "sys/spinlock.h\0machine/machparam.h\0";
2442 * Machine/OS name selection pattern
2444 #define apzHp_InlineMachs (const char**)NULL
2447 * content selection pattern - do fix if pattern found
2449 tSCC zHp_InlineSelect0[] =
2450 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2452 #define HP_INLINE_TEST_CT 1
2453 static tTestDesc aHp_InlineTests[] = {
2454 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2457 * Fix Command Arguments for Hp_Inline
2459 static const char* apzHp_InlinePatch[] = {
2462 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2467 * Description of Hp_Sysfile fix
2469 tSCC zHp_SysfileName[] =
2473 * File name selection pattern
2475 tSCC zHp_SysfileList[] =
2478 * Machine/OS name selection pattern
2480 #define apzHp_SysfileMachs (const char**)NULL
2483 * content selection pattern - do fix if pattern found
2485 tSCC zHp_SysfileSelect0[] =
2488 #define HP_SYSFILE_TEST_CT 1
2489 static tTestDesc aHp_SysfileTests[] = {
2490 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2493 * Fix Command Arguments for Hp_Sysfile
2495 static const char* apzHp_SysfilePatch[] = {
2497 "(struct file *, ...)",
2501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2503 * Description of Hpux10_Cpp_Pow_Inline fix
2505 tSCC zHpux10_Cpp_Pow_InlineName[] =
2506 "hpux10_cpp_pow_inline";
2509 * File name selection pattern
2511 tSCC zHpux10_Cpp_Pow_InlineList[] =
2512 "fixinc-test-limits.h\0math.h\0";
2514 * Machine/OS name selection pattern
2516 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2519 * content selection pattern - do fix if pattern found
2521 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2522 "^# +ifdef +__cplusplus\n\
2524 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2525 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2527 +extern +\"C\" +\\{\n\
2531 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2532 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2533 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2536 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2538 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2545 * Description of Hpux11_Cpp_Pow_Inline fix
2547 tSCC zHpux11_Cpp_Pow_InlineName[] =
2548 "hpux11_cpp_pow_inline";
2551 * File name selection pattern
2553 tSCC zHpux11_Cpp_Pow_InlineList[] =
2556 * Machine/OS name selection pattern
2558 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2561 * content selection pattern - do fix if pattern found
2563 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2564 " +inline double pow\\(double d,int expon\\) \\{\n\
2565 +return pow\\(d, \\(double\\)expon\\);\n\
2568 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2569 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2570 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2573 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2575 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2582 * Description of Hpux10_Ctype_Declarations1 fix
2584 tSCC zHpux10_Ctype_Declarations1Name[] =
2585 "hpux10_ctype_declarations1";
2588 * File name selection pattern
2590 tSCC zHpux10_Ctype_Declarations1List[] =
2593 * Machine/OS name selection pattern
2595 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2598 * content selection pattern - do fix if pattern found
2600 tSCC zHpux10_Ctype_Declarations1Select0[] =
2601 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2604 * content bypass pattern - skip fix if pattern found
2606 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2607 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2609 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2610 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2611 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2612 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2615 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2617 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2619 "#ifdef _PROTOTYPES\n\
2620 extern int __tolower(int);\n\
2621 extern int __toupper(int);\n\
2622 #else /* NOT _PROTOTYPES */\n\
2623 extern int __tolower();\n\
2624 extern int __toupper();\n\
2625 #endif /* _PROTOTYPES */\n\n\
2629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2631 * Description of Hpux10_Ctype_Declarations2 fix
2633 tSCC zHpux10_Ctype_Declarations2Name[] =
2634 "hpux10_ctype_declarations2";
2637 * File name selection pattern
2639 tSCC zHpux10_Ctype_Declarations2List[] =
2642 * Machine/OS name selection pattern
2644 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2647 * content selection pattern - do fix if pattern found
2649 tSCC zHpux10_Ctype_Declarations2Select0[] =
2650 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2653 * content bypass pattern - skip fix if pattern found
2655 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2656 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2658 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2659 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2660 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2661 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2664 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2666 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2669 #ifdef _PROTOTYPES\n\
2670 extern int _isalnum(int);\n\
2671 extern int _isalpha(int);\n\
2672 extern int _iscntrl(int);\n\
2673 extern int _isdigit(int);\n\
2674 extern int _isgraph(int);\n\
2675 extern int _islower(int);\n\
2676 extern int _isprint(int);\n\
2677 extern int _ispunct(int);\n\
2678 extern int _isspace(int);\n\
2679 extern int _isupper(int);\n\
2680 extern int _isxdigit(int);\n\
2681 # else /* not _PROTOTYPES */\n\
2682 extern int _isalnum();\n\
2683 extern int _isalpha();\n\
2684 extern int _iscntrl();\n\
2685 extern int _isdigit();\n\
2686 extern int _isgraph();\n\
2687 extern int _islower();\n\
2688 extern int _isprint();\n\
2689 extern int _ispunct();\n\
2690 extern int _isspace();\n\
2691 extern int _isupper();\n\
2692 extern int _isxdigit();\n\
2693 #endif /* _PROTOTYPES */\n",
2696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2698 * Description of Hpux10_Stdio_Declarations fix
2700 tSCC zHpux10_Stdio_DeclarationsName[] =
2701 "hpux10_stdio_declarations";
2704 * File name selection pattern
2706 tSCC zHpux10_Stdio_DeclarationsList[] =
2709 * Machine/OS name selection pattern
2711 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2714 * content selection pattern - do fix if pattern found
2716 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2717 "^#[ \t]*define _iob[ \t]*__iob";
2720 * content bypass pattern - skip fix if pattern found
2722 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2723 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2725 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2726 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2727 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2728 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2731 * Fix Command Arguments for Hpux10_Stdio_Declarations
2733 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2736 # if defined(__STDC__) || defined(__cplusplus)\n\
2737 extern int snprintf(char *, size_t, const char *, ...);\n\
2738 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2739 # else /* not __STDC__) || __cplusplus */\n\
2740 extern int snprintf();\n\
2741 extern int vsnprintf();\n\
2742 # endif /* __STDC__) || __cplusplus */\n",
2745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2747 * Description of Hpux11_Abs fix
2749 tSCC zHpux11_AbsName[] =
2753 * File name selection pattern
2755 tSCC zHpux11_AbsList[] =
2758 * Machine/OS name selection pattern
2760 tSCC* apzHpux11_AbsMachs[] = {
2762 (const char*)NULL };
2765 * content selection pattern - do fix if pattern found
2767 tSCC zHpux11_AbsSelect0[] =
2768 "ifndef _MATH_INCLUDED";
2770 #define HPUX11_ABS_TEST_CT 1
2771 static tTestDesc aHpux11_AbsTests[] = {
2772 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2775 * Fix Command Arguments for Hpux11_Abs
2777 static const char* apzHpux11_AbsPatch[] = {
2779 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2784 * Description of Hpux11_Fabsf fix
2786 tSCC zHpux11_FabsfName[] =
2790 * File name selection pattern
2792 tSCC zHpux11_FabsfList[] =
2795 * Machine/OS name selection pattern
2797 #define apzHpux11_FabsfMachs (const char**)NULL
2800 * content selection pattern - do fix if pattern found
2802 tSCC zHpux11_FabsfSelect0[] =
2803 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2806 * content bypass pattern - skip fix if pattern found
2808 tSCC zHpux11_FabsfBypass0[] =
2811 #define HPUX11_FABSF_TEST_CT 2
2812 static tTestDesc aHpux11_FabsfTests[] = {
2813 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2814 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2817 * Fix Command Arguments for Hpux11_Fabsf
2819 static const char* apzHpux11_FabsfPatch[] = {
2821 "#ifndef __cplusplus\n\
2826 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2828 * Description of Hpux11_Size_T fix
2830 tSCC zHpux11_Size_TName[] =
2834 * File name selection pattern
2836 #define zHpux11_Size_TList (char*)NULL
2838 * Machine/OS name selection pattern
2840 tSCC* apzHpux11_Size_TMachs[] = {
2842 (const char*)NULL };
2845 * content selection pattern - do fix if pattern found
2847 tSCC zHpux11_Size_TSelect0[] =
2850 #define HPUX11_SIZE_T_TEST_CT 1
2851 static tTestDesc aHpux11_Size_TTests[] = {
2852 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2855 * Fix Command Arguments for Hpux11_Size_T
2857 static const char* apzHpux11_Size_TPatch[] = {
2862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2864 * Description of Hpux11_Snprintf fix
2866 tSCC zHpux11_SnprintfName[] =
2870 * File name selection pattern
2872 tSCC zHpux11_SnprintfList[] =
2875 * Machine/OS name selection pattern
2877 #define apzHpux11_SnprintfMachs (const char**)NULL
2880 * content selection pattern - do fix if pattern found
2882 tSCC zHpux11_SnprintfSelect0[] =
2883 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2885 #define HPUX11_SNPRINTF_TEST_CT 1
2886 static tTestDesc aHpux11_SnprintfTests[] = {
2887 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2890 * Fix Command Arguments for Hpux11_Snprintf
2892 static const char* apzHpux11_SnprintfPatch[] = {
2897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2899 * Description of Hpux11_Uint32_C fix
2901 tSCC zHpux11_Uint32_CName[] =
2905 * File name selection pattern
2907 tSCC zHpux11_Uint32_CList[] =
2910 * Machine/OS name selection pattern
2912 #define apzHpux11_Uint32_CMachs (const char**)NULL
2915 * content selection pattern - do fix if pattern found
2917 tSCC zHpux11_Uint32_CSelect0[] =
2918 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2920 #define HPUX11_UINT32_C_TEST_CT 1
2921 static tTestDesc aHpux11_Uint32_CTests[] = {
2922 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2925 * Fix Command Arguments for Hpux11_Uint32_C
2927 static const char* apzHpux11_Uint32_CPatch[] = {
2929 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2934 * Description of Hpux11_Vsnprintf fix
2936 tSCC zHpux11_VsnprintfName[] =
2940 * File name selection pattern
2942 tSCC zHpux11_VsnprintfList[] =
2945 * Machine/OS name selection pattern
2947 #define apzHpux11_VsnprintfMachs (const char**)NULL
2950 * content selection pattern - do fix if pattern found
2952 tSCC zHpux11_VsnprintfSelect0[] =
2953 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2955 #define HPUX11_VSNPRINTF_TEST_CT 1
2956 static tTestDesc aHpux11_VsnprintfTests[] = {
2957 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2960 * Fix Command Arguments for Hpux11_Vsnprintf
2962 static const char* apzHpux11_VsnprintfPatch[] = {
2967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2969 * Description of Hpux8_Bogus_Inlines fix
2971 tSCC zHpux8_Bogus_InlinesName[] =
2972 "hpux8_bogus_inlines";
2975 * File name selection pattern
2977 tSCC zHpux8_Bogus_InlinesList[] =
2980 * Machine/OS name selection pattern
2982 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2985 * content selection pattern - do fix if pattern found
2987 tSCC zHpux8_Bogus_InlinesSelect0[] =
2991 * content bypass pattern - skip fix if pattern found
2993 tSCC zHpux8_Bogus_InlinesBypass0[] =
2996 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2997 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2998 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2999 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3002 * Fix Command Arguments for Hpux8_Bogus_Inlines
3004 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
3005 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3006 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3007 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3008 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3013 * Description of Hpux_Ctype_Macros fix
3015 tSCC zHpux_Ctype_MacrosName[] =
3016 "hpux_ctype_macros";
3019 * File name selection pattern
3021 tSCC zHpux_Ctype_MacrosList[] =
3024 * Machine/OS name selection pattern
3026 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3029 * content selection pattern - do fix if pattern found
3031 tSCC zHpux_Ctype_MacrosSelect0[] =
3032 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3034 #define HPUX_CTYPE_MACROS_TEST_CT 1
3035 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3036 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3039 * Fix Command Arguments for Hpux_Ctype_Macros
3041 static const char* apzHpux_Ctype_MacrosPatch[] = {
3046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3048 * Description of Hpux_Htonl fix
3050 tSCC zHpux_HtonlName[] =
3054 * File name selection pattern
3056 tSCC zHpux_HtonlList[] =
3059 * Machine/OS name selection pattern
3061 #define apzHpux_HtonlMachs (const char**)NULL
3064 * content selection pattern - do fix if pattern found
3066 tSCC zHpux_HtonlSelect0[] =
3067 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3069 \\* Macros for number representation conversion\\.\n\
3073 #define HPUX_HTONL_TEST_CT 1
3074 static tTestDesc aHpux_HtonlTests[] = {
3075 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3078 * Fix Command Arguments for Hpux_Htonl
3080 static const char* apzHpux_HtonlPatch[] = {
3086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3088 * Description of Hpux_Long_Double fix
3090 tSCC zHpux_Long_DoubleName[] =
3094 * File name selection pattern
3096 tSCC zHpux_Long_DoubleList[] =
3099 * Machine/OS name selection pattern
3101 #define apzHpux_Long_DoubleMachs (const char**)NULL
3104 * content selection pattern - do fix if pattern found
3106 tSCC zHpux_Long_DoubleSelect0[] =
3107 "extern[ \t]long_double[ \t]strtold";
3110 * content bypass pattern - skip fix if pattern found
3112 tSCC zHpux_Long_DoubleBypass0[] =
3115 #define HPUX_LONG_DOUBLE_TEST_CT 2
3116 static tTestDesc aHpux_Long_DoubleTests[] = {
3117 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3118 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3121 * Fix Command Arguments for Hpux_Long_Double
3123 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3124 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3125 "-e", "s/long_double/long double/g",
3128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3130 * Description of Hpux_Systime fix
3132 tSCC zHpux_SystimeName[] =
3136 * File name selection pattern
3138 tSCC zHpux_SystimeList[] =
3141 * Machine/OS name selection pattern
3143 #define apzHpux_SystimeMachs (const char**)NULL
3146 * content selection pattern - do fix if pattern found
3148 tSCC zHpux_SystimeSelect0[] =
3149 "^extern struct sigevent;";
3151 #define HPUX_SYSTIME_TEST_CT 1
3152 static tTestDesc aHpux_SystimeTests[] = {
3153 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3156 * Fix Command Arguments for Hpux_Systime
3158 static const char* apzHpux_SystimePatch[] = {
3163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3165 * Description of Hpux_Spu_Info fix
3167 tSCC zHpux_Spu_InfoName[] =
3171 * File name selection pattern
3173 tSCC zHpux_Spu_InfoList[] =
3174 "ia64/sys/getppdp.h\0";
3176 * Machine/OS name selection pattern
3178 tSCC* apzHpux_Spu_InfoMachs[] = {
3180 (const char*)NULL };
3183 * content selection pattern - do fix if pattern found
3185 tSCC zHpux_Spu_InfoSelect0[] =
3186 "^.*extern.*spu_info.*";
3188 #define HPUX_SPU_INFO_TEST_CT 1
3189 static tTestDesc aHpux_Spu_InfoTests[] = {
3190 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3193 * Fix Command Arguments for Hpux_Spu_Info
3195 static const char* apzHpux_Spu_InfoPatch[] = {
3202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3204 * Description of Hpux11_Extern_Sendfile fix
3206 tSCC zHpux11_Extern_SendfileName[] =
3207 "hpux11_extern_sendfile";
3210 * File name selection pattern
3212 tSCC zHpux11_Extern_SendfileList[] =
3215 * Machine/OS name selection pattern
3217 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3218 "*-hp-hpux11.[12]*",
3219 (const char*)NULL };
3222 * content selection pattern - do fix if pattern found
3224 tSCC zHpux11_Extern_SendfileSelect0[] =
3225 "^[ \t]*extern sbsize_t sendfile.*\n\
3228 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3229 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3230 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3233 * Fix Command Arguments for Hpux11_Extern_Sendfile
3235 static const char* apzHpux11_Extern_SendfilePatch[] = {
3237 "#ifndef _APP32_64BIT_OFF_T\n\
3241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3243 * Description of Hpux11_Extern_Sendpath fix
3245 tSCC zHpux11_Extern_SendpathName[] =
3246 "hpux11_extern_sendpath";
3249 * File name selection pattern
3251 tSCC zHpux11_Extern_SendpathList[] =
3254 * Machine/OS name selection pattern
3256 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3257 "*-hp-hpux11.[12]*",
3258 (const char*)NULL };
3261 * content selection pattern - do fix if pattern found
3263 tSCC zHpux11_Extern_SendpathSelect0[] =
3264 "^[ \t]*extern sbsize_t sendpath.*\n\
3267 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3268 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3269 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3272 * Fix Command Arguments for Hpux11_Extern_Sendpath
3274 static const char* apzHpux11_Extern_SendpathPatch[] = {
3276 "#ifndef _APP32_64BIT_OFF_T\n\
3280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3282 * Description of Hpux_Extern_Errno fix
3284 tSCC zHpux_Extern_ErrnoName[] =
3285 "hpux_extern_errno";
3288 * File name selection pattern
3290 tSCC zHpux_Extern_ErrnoList[] =
3293 * Machine/OS name selection pattern
3295 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3297 "*-hp-hpux11.[0-2]*",
3298 (const char*)NULL };
3301 * content selection pattern - do fix if pattern found
3303 tSCC zHpux_Extern_ErrnoSelect0[] =
3304 "^[ \t]*extern int errno;$";
3306 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3307 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3308 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3311 * Fix Command Arguments for Hpux_Extern_Errno
3313 static const char* apzHpux_Extern_ErrnoPatch[] = {
3315 "#ifdef __cplusplus\n\
3319 #ifdef __cplusplus\n\
3324 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3326 * Description of Hpux_Pthread_Initializers fix
3328 tSCC zHpux_Pthread_InitializersName[] =
3329 "hpux_pthread_initializers";
3332 * File name selection pattern
3334 tSCC zHpux_Pthread_InitializersList[] =
3337 * Machine/OS name selection pattern
3339 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3340 "*-hp-hpux11.[0-3]*",
3341 (const char*)NULL };
3342 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3343 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3346 * Fix Command Arguments for Hpux_Pthread_Initializers
3348 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3349 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3350 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3351 "-e", "/^[ \t]*0$/d",
3352 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3353 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3354 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3355 "-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\\\\@",
3356 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3357 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3358 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3359 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3360 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3361 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3366 * Description of Huge_Val_Hex fix
3368 tSCC zHuge_Val_HexName[] =
3372 * File name selection pattern
3374 tSCC zHuge_Val_HexList[] =
3375 "bits/huge_val.h\0";
3377 * Machine/OS name selection pattern
3379 #define apzHuge_Val_HexMachs (const char**)NULL
3382 * content selection pattern - do fix if pattern found
3384 tSCC zHuge_Val_HexSelect0[] =
3385 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3388 * content bypass pattern - skip fix if pattern found
3390 tSCC zHuge_Val_HexBypass0[] =
3391 "__builtin_huge_val";
3393 #define HUGE_VAL_HEX_TEST_CT 2
3394 static tTestDesc aHuge_Val_HexTests[] = {
3395 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3396 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3399 * Fix Command Arguments for Huge_Val_Hex
3401 static const char* apzHuge_Val_HexPatch[] = {
3403 "#define HUGE_VAL (__builtin_huge_val())\n",
3406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3408 * Description of Huge_Valf_Hex fix
3410 tSCC zHuge_Valf_HexName[] =
3414 * File name selection pattern
3416 tSCC zHuge_Valf_HexList[] =
3417 "bits/huge_val.h\0";
3419 * Machine/OS name selection pattern
3421 #define apzHuge_Valf_HexMachs (const char**)NULL
3424 * content selection pattern - do fix if pattern found
3426 tSCC zHuge_Valf_HexSelect0[] =
3427 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3430 * content bypass pattern - skip fix if pattern found
3432 tSCC zHuge_Valf_HexBypass0[] =
3433 "__builtin_huge_valf";
3435 #define HUGE_VALF_HEX_TEST_CT 2
3436 static tTestDesc aHuge_Valf_HexTests[] = {
3437 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3438 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3441 * Fix Command Arguments for Huge_Valf_Hex
3443 static const char* apzHuge_Valf_HexPatch[] = {
3445 "#define HUGE_VALF (__builtin_huge_valf())\n",
3448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3450 * Description of Huge_Vall_Hex fix
3452 tSCC zHuge_Vall_HexName[] =
3456 * File name selection pattern
3458 tSCC zHuge_Vall_HexList[] =
3459 "bits/huge_val.h\0";
3461 * Machine/OS name selection pattern
3463 #define apzHuge_Vall_HexMachs (const char**)NULL
3466 * content selection pattern - do fix if pattern found
3468 tSCC zHuge_Vall_HexSelect0[] =
3469 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3472 * content bypass pattern - skip fix if pattern found
3474 tSCC zHuge_Vall_HexBypass0[] =
3475 "__builtin_huge_vall";
3477 #define HUGE_VALL_HEX_TEST_CT 2
3478 static tTestDesc aHuge_Vall_HexTests[] = {
3479 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3480 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3483 * Fix Command Arguments for Huge_Vall_Hex
3485 static const char* apzHuge_Vall_HexPatch[] = {
3487 "#define HUGE_VALL (__builtin_huge_vall())\n",
3490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3492 * Description of Int_Abort_Free_And_Exit fix
3494 tSCC zInt_Abort_Free_And_ExitName[] =
3495 "int_abort_free_and_exit";
3498 * File name selection pattern
3500 tSCC zInt_Abort_Free_And_ExitList[] =
3503 * Machine/OS name selection pattern
3505 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3508 * content selection pattern - do fix if pattern found
3510 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3511 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3514 * content bypass pattern - skip fix if pattern found
3516 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3517 "_CLASSIC_ANSI_TYPES";
3519 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3520 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3521 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3522 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3525 * Fix Command Arguments for Int_Abort_Free_And_Exit
3527 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3534 * Description of Io_Quotes_Def fix
3536 tSCC zIo_Quotes_DefName[] =
3540 * File name selection pattern
3542 #define zIo_Quotes_DefList (char*)NULL
3544 * Machine/OS name selection pattern
3546 #define apzIo_Quotes_DefMachs (const char**)NULL
3549 * content selection pattern - do fix if pattern found
3551 tSCC zIo_Quotes_DefSelect0[] =
3552 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3554 #define IO_QUOTES_DEF_TEST_CT 1
3555 static tTestDesc aIo_Quotes_DefTests[] = {
3556 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3559 * Fix Command Arguments for Io_Quotes_Def
3561 static const char* apzIo_Quotes_DefPatch[] = {
3566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3568 * Description of Io_Quotes_Use fix
3570 tSCC zIo_Quotes_UseName[] =
3574 * File name selection pattern
3576 #define zIo_Quotes_UseList (char*)NULL
3578 * Machine/OS name selection pattern
3580 #define apzIo_Quotes_UseMachs (const char**)NULL
3583 * content selection pattern - do fix if pattern found
3585 tSCC zIo_Quotes_UseSelect0[] =
3586 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3588 #define IO_QUOTES_USE_TEST_CT 1
3589 static tTestDesc aIo_Quotes_UseTests[] = {
3590 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3593 * Fix Command Arguments for Io_Quotes_Use
3595 static const char* apzIo_Quotes_UsePatch[] = {
3600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3602 * Description of Ip_Missing_Semi fix
3604 tSCC zIp_Missing_SemiName[] =
3608 * File name selection pattern
3610 tSCC zIp_Missing_SemiList[] =
3613 * Machine/OS name selection pattern
3615 #define apzIp_Missing_SemiMachs (const char**)NULL
3618 * content selection pattern - do fix if pattern found
3620 tSCC zIp_Missing_SemiSelect0[] =
3623 #define IP_MISSING_SEMI_TEST_CT 1
3624 static tTestDesc aIp_Missing_SemiTests[] = {
3625 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3628 * Fix Command Arguments for Ip_Missing_Semi
3630 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3631 "-e", "/^struct/,/^};/s/}$/};/",
3634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3636 * Description of Irix___Restrict fix
3638 tSCC zIrix___RestrictName[] =
3642 * File name selection pattern
3644 tSCC zIrix___RestrictList[] =
3645 "internal/sgimacros.h\0";
3647 * Machine/OS name selection pattern
3649 tSCC* apzIrix___RestrictMachs[] = {
3651 (const char*)NULL };
3654 * content selection pattern - do fix if pattern found
3656 tSCC zIrix___RestrictSelect0[] =
3658 )(#[ \t]*define __restrict restrict)";
3660 #define IRIX___RESTRICT_TEST_CT 1
3661 static tTestDesc aIrix___RestrictTests[] = {
3662 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3665 * Fix Command Arguments for Irix___Restrict
3667 static const char* apzIrix___RestrictPatch[] = {
3669 "%1# ifndef __cplusplus\n\
3674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3676 * Description of Irix___Generic1 fix
3678 tSCC zIrix___Generic1Name[] =
3682 * File name selection pattern
3684 tSCC zIrix___Generic1List[] =
3685 "internal/math_core.h\0";
3687 * Machine/OS name selection pattern
3689 tSCC* apzIrix___Generic1Machs[] = {
3691 (const char*)NULL };
3694 * content selection pattern - do fix if pattern found
3696 tSCC zIrix___Generic1Select0[] =
3697 "#define ([a-z]+)\\(x\\) *__generic.*";
3699 #define IRIX___GENERIC1_TEST_CT 1
3700 static tTestDesc aIrix___Generic1Tests[] = {
3701 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3704 * Fix Command Arguments for Irix___Generic1
3706 static const char* apzIrix___Generic1Patch[] = {
3708 "extern int %1(double);\n\
3709 extern int %1f(float);\n\
3710 extern int %1l(long double);\n\
3711 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3712 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3718 * Description of Irix___Generic2 fix
3720 tSCC zIrix___Generic2Name[] =
3724 * File name selection pattern
3726 tSCC zIrix___Generic2List[] =
3727 "internal/math_core.h\0";
3729 * Machine/OS name selection pattern
3731 tSCC* apzIrix___Generic2Machs[] = {
3733 (const char*)NULL };
3736 * content selection pattern - do fix if pattern found
3738 tSCC zIrix___Generic2Select0[] =
3739 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3741 #define IRIX___GENERIC2_TEST_CT 1
3742 static tTestDesc aIrix___Generic2Tests[] = {
3743 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3746 * Fix Command Arguments for Irix___Generic2
3748 static const char* apzIrix___Generic2Patch[] = {
3750 "#define %1(x,y) \\\n\
3751 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3752 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3758 * Description of Irix_Asm_Apostrophe fix
3760 tSCC zIrix_Asm_ApostropheName[] =
3761 "irix_asm_apostrophe";
3764 * File name selection pattern
3766 tSCC zIrix_Asm_ApostropheList[] =
3769 * Machine/OS name selection pattern
3771 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3774 * content selection pattern - do fix if pattern found
3776 tSCC zIrix_Asm_ApostropheSelect0[] =
3777 "^[ \t]*#.*[Ww]e're";
3779 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3780 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3781 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3784 * Fix Command Arguments for Irix_Asm_Apostrophe
3786 static const char* apzIrix_Asm_ApostrophePatch[] = {
3789 "^([ \t]*#.*[Ww]e)'re",
3792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3794 * Description of Irix_Limits_Const fix
3796 tSCC zIrix_Limits_ConstName[] =
3797 "irix_limits_const";
3800 * File name selection pattern