1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Friday June 24, 2005 at 01:40:52 PM EDT
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Fri Jun 24 13:40:52 EDT 2005
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 190 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, or (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful,
32 * but 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
37 * along with inclhack. See the file "COPYING". If not,
38 * write to: The Free Software Foundation, Inc.,
39 * 51 Franklin Street, Fifth Floor,
40 * Boston, MA 02110-1301, USA.
43 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
47 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
48 "AAB_darwin7_9_long_double_funcs";
51 * File name selection pattern
53 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
54 "|architecture/ppc/math.h|";
56 * Machine/OS name selection pattern
58 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
63 * content bypass pattern - skip fix if pattern found
65 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
68 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
69 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
70 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
73 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
75 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
76 "/* This file prototypes the long double functions available on Mac OS\n\
79 # include_next <architecture/ppc/math.h>\n\
80 # ifndef __LIBMLDBL_COMPAT\n\
81 # ifdef __LONG_DOUBLE_128__\n\
82 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
84 # define __LIBMLDBL_COMPAT(sym)\n\
85 # endif /* __LONG_DOUBLE_128__ */\n\
86 # endif /* __LIBMLDBL_COMPAT */\n\
87 # ifdef __cplusplus\n\
90 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
91 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
92 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
93 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
94 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
95 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
96 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
97 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
98 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
99 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
100 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
101 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
102 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
103 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
104 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
105 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
106 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
107 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
108 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
109 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
110 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
111 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
112 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
113 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
114 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
115 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
116 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
117 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
118 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
119 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
120 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
121 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
122 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
123 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
124 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
125 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
126 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
127 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
128 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
129 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
130 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
131 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
132 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
133 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
134 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
135 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
136 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
137 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
138 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
139 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
140 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
141 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
142 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
143 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
144 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
145 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
146 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
147 # ifdef __cplusplus\n\
150 #endif /* __MATH__ */",
153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
155 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
157 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
158 "AAB_darwin7_9_long_double_funcs_2";
161 * File name selection pattern
163 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
166 * Machine/OS name selection pattern
168 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
173 * content selection pattern - do fix if pattern found
175 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
176 "#include[ \\t]+\\\"";
178 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
179 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
180 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
183 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
185 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
188 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
193 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
195 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
196 "AAB_fd_zero_asm_posix_types_h";
199 * File name selection pattern
201 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
202 "|asm/posix_types.h|";
204 * Machine/OS name selection pattern
206 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
207 "i[34567]86-*-linux*",
211 * content bypass pattern - skip fix if pattern found
213 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
216 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
217 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
218 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
221 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
223 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
224 "/* This file fixes a bug in the __FD_ZERO macro\n\
225 for older versions of the Linux kernel. */\n\
226 #ifndef _POSIX_TYPES_H_WRAPPER\n\
227 #include <features.h>\n\
228 #include_next <asm/posix_types.h>\n\n\
229 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
231 #define __FD_ZERO(fdsetp) \\\n\
233 int __d0, __d1; \\\n\
234 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
235 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
236 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
237 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
240 #define _POSIX_TYPES_H_WRAPPER\n\
241 #endif /* _POSIX_TYPES_H_WRAPPER */",
244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
246 * Description of Aab_Fd_Zero_Gnu_Types_H fix
248 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
249 "AAB_fd_zero_gnu_types_h";
252 * File name selection pattern
254 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
257 * Machine/OS name selection pattern
259 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
260 "i[34567]86-*-linux*",
262 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
263 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
266 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
268 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
269 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
270 #ifndef _TYPES_H_WRAPPER\n\
271 #include <features.h>\n\
272 #include_next <gnu/types.h>\n\n\
273 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
275 # define __FD_ZERO(fdsetp) \\\n\
277 int __d0, __d1; \\\n\
278 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
279 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
280 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
281 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
284 #define _TYPES_H_WRAPPER\n\
285 #endif /* _TYPES_H_WRAPPER */",
288 /* * * * * * * * * * * * * * * * * * * * * * * * * *
290 * Description of Aab_Fd_Zero_Selectbits_H fix
292 tSCC zAab_Fd_Zero_Selectbits_HName[] =
293 "AAB_fd_zero_selectbits_h";
296 * File name selection pattern
298 tSCC zAab_Fd_Zero_Selectbits_HList[] =
301 * Machine/OS name selection pattern
303 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
304 "i[34567]86-*-linux*",
306 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
307 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
310 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
312 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
313 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
314 #ifndef _SELECTBITS_H_WRAPPER\n\
315 #include <features.h>\n\
316 #include_next <selectbits.h>\n\n\
317 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
318 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
319 && __GLIBC_MINOR__ == 0\n\
321 #define __FD_ZERO(fdsetp) \\\\\n\
323 int __d0, __d1; \\\\\n\
324 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
325 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
326 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
327 / sizeof (__fd_mask)), \\\\\n\
328 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
329 : \"memory\"); \\\\\n\
332 #define _SELECTBITS_H_WRAPPER\n\
333 #endif /* _SELECTBITS_H_WRAPPER */",
336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
338 * Description of Aab_Solaris_Sys_Varargs_H fix
340 tSCC zAab_Solaris_Sys_Varargs_HName[] =
341 "AAB_solaris_sys_varargs_h";
344 * File name selection pattern
346 tSCC zAab_Solaris_Sys_Varargs_HList[] =
349 * Machine/OS name selection pattern
351 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
354 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
355 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
358 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
360 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
362 #include <stdarg.h>\n\
364 #include <varargs.h>\n\
368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
370 * Description of Aab_Sun_Memcpy fix
372 tSCC zAab_Sun_MemcpyName[] =
376 * File name selection pattern
378 tSCC zAab_Sun_MemcpyList[] =
381 * Machine/OS name selection pattern
383 #define apzAab_Sun_MemcpyMachs (const char**)NULL
386 * content selection pattern - do fix if pattern found
388 tSCC zAab_Sun_MemcpySelect0[] =
389 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
391 #define AAB_SUN_MEMCPY_TEST_CT 1
392 static tTestDesc aAab_Sun_MemcpyTests[] = {
393 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
396 * Fix Command Arguments for Aab_Sun_Memcpy
398 static const char* apzAab_Sun_MemcpyPatch[] = {
399 "/* This file was generated by fixincludes */\n\
400 #ifndef __memory_h__\n\
401 #define __memory_h__\n\n\
403 extern void *memccpy();\n\
404 extern void *memchr();\n\
405 extern void *memcpy();\n\
406 extern void *memset();\n\
408 extern char *memccpy();\n\
409 extern char *memchr();\n\
410 extern char *memcpy();\n\
411 extern char *memset();\n\
412 #endif /* __STDC__ */\n\n\
413 extern int memcmp();\n\n\
414 #endif /* __memory_h__ */\n\
418 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
419 * stdarg.h or varargs.h files as appropriate.\n\
423 hackname = AAB_svr4_no_varargs;\n\
424 files = sys/varargs.h;\n\
425 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
426 \"#ifndef _SYS_VARARGS_H\\n\"\n\
427 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
428 \"#ifdef __STDC__\\n\"\n\
429 \"#include <stdarg.h>\\n\"\n\
431 \"#include <varargs.h>\\n\"\n\
432 \"#endif\\n\\n\"\n\n\
433 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
437 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
438 * optimized byteswapping. (The original probably implemented some\n\
439 * incompatible optimized byteswapping.)\n\
442 hackname = AAB_svr4_replace_byteorder;\n\
443 mach = \"*-*-sysv4*\";\n\
444 mach = \"i[34567]86-*-sysv5*\";\n\
445 mach = \"i[34567]86-*-sco3.2v5*\";\n\
446 mach = \"i[34567]86-*-udk*\";\n\
447 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
448 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
449 mach = \"sparc-*-solaris2.[0-4]\";\n\
450 mach = \"i[34567]86-sequent-ptx*\";\n\
451 files = sys/byteorder.h;\n\
452 replace = <<- _EndOfHeader_\n\
453 #ifndef _SYS_BYTEORDER_H\n\
454 #define _SYS_BYTEORDER_H\n\n\
455 /* Functions to convert `short' and `long' quantities from host byte order\n\
456 to (internet) network byte order (i.e. big-endian).\n\n\
457 Written by Ron Guilmette (rfg@ncd.com).\n\n\
458 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
459 For big-endian machines these functions are essentially no-ops.\n\n\
460 For little-endian machines, we define the functions using specialized\n\
461 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
462 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
463 #error You lose! This file is only useful with GNU compilers.\n\
465 #ifndef __BYTE_ORDER__\n\
466 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
467 double underscores added at the front and back. */\n\
468 #define __LITTLE_ENDIAN__ 1234\n\
469 #define __BIG_ENDIAN__ 4321\n\
470 #define __PDP_ENDIAN__ 3412\n\
473 static __inline__ unsigned long htonl (unsigned long);\n\
474 static __inline__ unsigned short htons (unsigned int);\n\
475 static __inline__ unsigned long ntohl (unsigned long);\n\
476 static __inline__ unsigned short ntohs (unsigned int);\n\
477 #endif /* defined (__STDC__) */\n\n\
478 #if defined (__i386__)\n\n\
479 #ifndef __BYTE_ORDER__\n\
480 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
482 /* Convert a host long to a network long. */\n\n\
483 /* We must use a new-style function definition, so that this will also\n\
484 be valid for C++. */\n\
485 static __inline__ unsigned long\n\
486 htonl (unsigned long __arg)\n\
488 register unsigned long __result;\n\n\
489 __asm__ (\"xchg%B0 %b0,%h0\n\
491 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
494 /* Convert a host short to a network short. */\n\n\
495 static __inline__ unsigned short\n\
496 htons (unsigned int __arg)\n\
498 register unsigned short __result;\n\n\
499 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
502 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
503 #ifndef __BYTE_ORDER__\n\
504 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
506 /* For other little-endian machines, using C code is just as efficient as\n\
507 using assembly code. */\n\n\
508 /* Convert a host long to a network long. */\n\n\
509 static __inline__ unsigned long\n\
510 htonl (unsigned long __arg)\n\
512 register unsigned long __result;\n\n\
513 __result = (__arg >> 24) & 0x000000ff;\n\
514 __result |= (__arg >> 8) & 0x0000ff00;\n\
515 __result |= (__arg << 8) & 0x00ff0000;\n\
516 __result |= (__arg << 24) & 0xff000000;\n\
519 /* Convert a host short to a network short. */\n\n\
520 static __inline__ unsigned short\n\
521 htons (unsigned int __arg)\n\
523 register unsigned short __result;\n\n\
524 __result = (__arg << 8) & 0xff00;\n\
525 __result |= (__arg >> 8) & 0x00ff;\n\
528 #else /* must be a big-endian machine */\n\n\
529 #ifndef __BYTE_ORDER__\n\
530 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
532 /* Convert a host long to a network long. */\n\n\
533 static __inline__ unsigned long\n\
534 htonl (unsigned long __arg)\n\
538 /* Convert a host short to a network short. */\n\n\
539 static __inline__ unsigned short\n\
540 htons (unsigned int __arg)\n\
544 #endif /* big-endian */\n\n\
545 /* Convert a network long to a host long. */\n\n\
546 static __inline__ unsigned long\n\
547 ntohl (unsigned long __arg)\n\
549 return htonl (__arg);\n\
551 /* Convert a network short to a host short. */\n\n\
552 static __inline__ unsigned short\n\
553 ntohs (unsigned int __arg)\n\
555 return htons (__arg);\n\
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
562 * Description of Aab_Ultrix_Ansi_Compat fix
564 tSCC zAab_Ultrix_Ansi_CompatName[] =
565 "AAB_ultrix_ansi_compat";
568 * File name selection pattern
570 tSCC zAab_Ultrix_Ansi_CompatList[] =
573 * Machine/OS name selection pattern
575 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
578 * content selection pattern - do fix if pattern found
580 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
583 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
584 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
585 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
588 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
590 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
591 "/* This file intentionally left blank. */\n",
594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
596 * Description of Aab_Ultrix_Limits fix
598 tSCC zAab_Ultrix_LimitsName[] =
602 * File name selection pattern
604 tSCC zAab_Ultrix_LimitsList[] =
607 * Machine/OS name selection pattern
609 tSCC* apzAab_Ultrix_LimitsMachs[] = {
612 #define AAB_ULTRIX_LIMITS_TEST_CT 0
613 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
616 * Fix Command Arguments for Aab_Ultrix_Limits
618 static const char* apzAab_Ultrix_LimitsPatch[] = {
619 "#ifndef _LIMITS_INCLUDED\n\
620 #define _LIMITS_INCLUDED\n\
621 #include <sys/limits.h>\n\
622 #endif /* _LIMITS_INCLUDED */",
625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
627 * Description of Aab_Ultrix_Memory fix
629 tSCC zAab_Ultrix_MemoryName[] =
633 * File name selection pattern
635 tSCC zAab_Ultrix_MemoryList[] =
638 * Machine/OS name selection pattern
640 tSCC* apzAab_Ultrix_MemoryMachs[] = {
643 #define AAB_ULTRIX_MEMORY_TEST_CT 0
644 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
647 * Fix Command Arguments for Aab_Ultrix_Memory
649 static const char* apzAab_Ultrix_MemoryPatch[] = {
650 "#ifndef _MEMORY_INCLUDED\n\
651 #define _MEMORY_INCLUDED\n\
652 #include <strings.h>\n\
653 #endif /* _MEMORY_INCLUDED */",
656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
658 * Description of Aab_Ultrix_String fix
660 tSCC zAab_Ultrix_StringName[] =
664 * File name selection pattern
666 tSCC zAab_Ultrix_StringList[] =
669 * Machine/OS name selection pattern
671 tSCC* apzAab_Ultrix_StringMachs[] = {
674 #define AAB_ULTRIX_STRING_TEST_CT 0
675 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
678 * Fix Command Arguments for Aab_Ultrix_String
680 static const char* apzAab_Ultrix_StringPatch[] = {
681 "#ifndef _STRING_INCLUDED\n\
682 #define _STRING_INCLUDED\n\
683 #include <strings.h>\n\
684 #endif /* _STRING_INCLUDED */",
687 /* * * * * * * * * * * * * * * * * * * * * * * * * *
689 * Description of Aix_Pthread fix
691 tSCC zAix_PthreadName[] =
695 * File name selection pattern
697 tSCC zAix_PthreadList[] =
700 * Machine/OS name selection pattern
702 #define apzAix_PthreadMachs (const char**)NULL
705 * content selection pattern - do fix if pattern found
707 tSCC zAix_PthreadSelect0[] =
708 "(#define [A-Za-z_0-9]+)(\\\\\n\
712 #define AIX_PTHREAD_TEST_CT 1
713 static tTestDesc aAix_PthreadTests[] = {
714 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
717 * Fix Command Arguments for Aix_Pthread
719 static const char* apzAix_PthreadPatch[] = {
724 /* * * * * * * * * * * * * * * * * * * * * * * * * *
726 * Description of Aix_Sysmachine fix
728 tSCC zAix_SysmachineName[] =
732 * File name selection pattern
734 tSCC zAix_SysmachineList[] =
737 * Machine/OS name selection pattern
739 #define apzAix_SysmachineMachs (const char**)NULL
742 * content selection pattern - do fix if pattern found
744 tSCC zAix_SysmachineSelect0[] =
747 #define AIX_SYSMACHINE_TEST_CT 1
748 static tTestDesc aAix_SysmachineTests[] = {
749 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
752 * Fix Command Arguments for Aix_Sysmachine
754 static const char* apzAix_SysmachinePatch[] = {
759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
761 * Description of Aix_Syswait fix
763 tSCC zAix_SyswaitName[] =
767 * File name selection pattern
769 tSCC zAix_SyswaitList[] =
772 * Machine/OS name selection pattern
774 #define apzAix_SyswaitMachs (const char**)NULL
777 * content selection pattern - do fix if pattern found
779 tSCC zAix_SyswaitSelect0[] =
780 "^extern pid_t wait3\\(\\);\n";
781 tSCC zAix_SyswaitSelect1[] =
784 #define AIX_SYSWAIT_TEST_CT 2
785 static tTestDesc aAix_SyswaitTests[] = {
786 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
787 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
790 * Fix Command Arguments for Aix_Syswait
792 static const char* apzAix_SyswaitPatch[] = {
798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
800 * Description of Aix_Syswait_2 fix
802 tSCC zAix_Syswait_2Name[] =
806 * File name selection pattern
808 tSCC zAix_Syswait_2List[] =
811 * Machine/OS name selection pattern
813 #define apzAix_Syswait_2Machs (const char**)NULL
816 * content selection pattern - do fix if pattern found
818 tSCC zAix_Syswait_2Select0[] =
819 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
821 #define AIX_SYSWAIT_2_TEST_CT 1
822 static tTestDesc aAix_Syswait_2Tests[] = {
823 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
826 * Fix Command Arguments for Aix_Syswait_2
828 static const char* apzAix_Syswait_2Patch[] = {
833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
835 * Description of Aix_Volatile fix
837 tSCC zAix_VolatileName[] =
841 * File name selection pattern
843 tSCC zAix_VolatileList[] =
846 * Machine/OS name selection pattern
848 #define apzAix_VolatileMachs (const char**)NULL
851 * content selection pattern - do fix if pattern found
853 tSCC zAix_VolatileSelect0[] =
854 "typedef volatile int sig_atomic_t";
856 #define AIX_VOLATILE_TEST_CT 1
857 static tTestDesc aAix_VolatileTests[] = {
858 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
861 * Fix Command Arguments for Aix_Volatile
863 static const char* apzAix_VolatilePatch[] = {
865 "typedef int sig_atomic_t",
868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
870 * Description of Alpha___Assert fix
872 tSCC zAlpha___AssertName[] =
876 * File name selection pattern
878 tSCC zAlpha___AssertList[] =
881 * Machine/OS name selection pattern
883 #define apzAlpha___AssertMachs (const char**)NULL
886 * content selection pattern - do fix if pattern found
888 tSCC zAlpha___AssertSelect0[] =
889 "__assert\\(char \\*, char \\*, int\\)";
891 #define ALPHA___ASSERT_TEST_CT 1
892 static tTestDesc aAlpha___AssertTests[] = {
893 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
896 * Fix Command Arguments for Alpha___Assert
898 static const char* apzAlpha___AssertPatch[] = {
900 "__assert(const char *, const char *, int)",
903 /* * * * * * * * * * * * * * * * * * * * * * * * * *
905 * Description of Alpha___Extern_Prefix fix
907 tSCC zAlpha___Extern_PrefixName[] =
908 "alpha___extern_prefix";
911 * File name selection pattern
913 #define zAlpha___Extern_PrefixList (char*)NULL
915 * Machine/OS name selection pattern
917 tSCC* apzAlpha___Extern_PrefixMachs[] = {
922 * content selection pattern - do fix if pattern found
924 tSCC zAlpha___Extern_PrefixSelect0[] =
925 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
926 (#[ \t]*pragma[ \t]*extern_prefix.*)";
928 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
929 static tTestDesc aAlpha___Extern_PrefixTests[] = {
930 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
933 * Fix Command Arguments for Alpha___Extern_Prefix
935 static const char* apzAlpha___Extern_PrefixPatch[] = {
937 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
943 * Description of Alpha___Extern_Prefix_Standards fix
945 tSCC zAlpha___Extern_Prefix_StandardsName[] =
946 "alpha___extern_prefix_standards";
949 * File name selection pattern
951 tSCC zAlpha___Extern_Prefix_StandardsList[] =
954 * Machine/OS name selection pattern
956 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
961 * content selection pattern - do fix if pattern found
963 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
964 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
966 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
967 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
968 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
971 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
973 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
975 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
980 * Description of Alpha___Extern_Prefix_Sys_Stat fix
982 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
983 "alpha___extern_prefix_sys_stat";
986 * File name selection pattern
988 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
989 "|sys/stat.h|sys/mount.h|";
991 * Machine/OS name selection pattern
993 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
998 * content selection pattern - do fix if pattern found
1000 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1001 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1003 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1004 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1005 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1008 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1010 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1012 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1017 * Description of Alpha_Assert fix
1019 tSCC zAlpha_AssertName[] =
1023 * File name selection pattern
1025 tSCC zAlpha_AssertList[] =
1028 * Machine/OS name selection pattern
1030 #define apzAlpha_AssertMachs (const char**)NULL
1033 * content selection pattern - do fix if pattern found
1035 tSCC zAlpha_AssertSelect0[] =
1036 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1038 #define ALPHA_ASSERT_TEST_CT 1
1039 static tTestDesc aAlpha_AssertTests[] = {
1040 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1043 * Fix Command Arguments for Alpha_Assert
1045 static const char* apzAlpha_AssertPatch[] = {
1050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1052 * Description of Alpha_Bad_Lval fix
1054 tSCC zAlpha_Bad_LvalName[] =
1058 * File name selection pattern
1060 #define zAlpha_Bad_LvalList (char*)NULL
1062 * Machine/OS name selection pattern
1064 tSCC* apzAlpha_Bad_LvalMachs[] = {
1066 (const char*)NULL };
1069 * content selection pattern - do fix if pattern found
1071 tSCC zAlpha_Bad_LvalSelect0[] =
1072 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1074 #define ALPHA_BAD_LVAL_TEST_CT 1
1075 static tTestDesc aAlpha_Bad_LvalTests[] = {
1076 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1079 * Fix Command Arguments for Alpha_Bad_Lval
1081 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1082 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1087 * Description of Alpha_Getopt fix
1089 tSCC zAlpha_GetoptName[] =
1093 * File name selection pattern
1095 tSCC zAlpha_GetoptList[] =
1096 "|stdio.h|stdlib.h|";
1098 * Machine/OS name selection pattern
1100 #define apzAlpha_GetoptMachs (const char**)NULL
1103 * content selection pattern - do fix if pattern found
1105 tSCC zAlpha_GetoptSelect0[] =
1106 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1108 #define ALPHA_GETOPT_TEST_CT 1
1109 static tTestDesc aAlpha_GetoptTests[] = {
1110 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1113 * Fix Command Arguments for Alpha_Getopt
1115 static const char* apzAlpha_GetoptPatch[] = {
1117 "getopt(int, char *const[], const char *)",
1120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1122 * Description of Alpha_Parens fix
1124 tSCC zAlpha_ParensName[] =
1128 * File name selection pattern
1130 tSCC zAlpha_ParensList[] =
1133 * Machine/OS name selection pattern
1135 #define apzAlpha_ParensMachs (const char**)NULL
1138 * content selection pattern - do fix if pattern found
1140 tSCC zAlpha_ParensSelect0[] =
1141 "#ifndef\\(__mips64\\)";
1143 #define ALPHA_PARENS_TEST_CT 1
1144 static tTestDesc aAlpha_ParensTests[] = {
1145 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1148 * Fix Command Arguments for Alpha_Parens
1150 static const char* apzAlpha_ParensPatch[] = {
1155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1157 * Description of Alpha_Pthread fix
1159 tSCC zAlpha_PthreadName[] =
1163 * File name selection pattern
1165 tSCC zAlpha_PthreadList[] =
1168 * Machine/OS name selection pattern
1170 tSCC* apzAlpha_PthreadMachs[] = {
1172 (const char*)NULL };
1175 * content selection pattern - do fix if pattern found
1177 tSCC zAlpha_PthreadSelect0[] =
1178 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1179 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1181 #define ALPHA_PTHREAD_TEST_CT 1
1182 static tTestDesc aAlpha_PthreadTests[] = {
1183 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1186 * Fix Command Arguments for Alpha_Pthread
1188 static const char* apzAlpha_PthreadPatch[] = {
1190 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1196 * Description of Alpha_Pthread_Gcc fix
1198 tSCC zAlpha_Pthread_GccName[] =
1199 "alpha_pthread_gcc";
1202 * File name selection pattern
1204 tSCC zAlpha_Pthread_GccList[] =
1207 * Machine/OS name selection pattern
1209 tSCC* apzAlpha_Pthread_GccMachs[] = {
1211 (const char*)NULL };
1214 * content selection pattern - do fix if pattern found
1216 tSCC zAlpha_Pthread_GccSelect0[] =
1218 # error <pthread.h>: unrecognized compiler.";
1220 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1221 static tTestDesc aAlpha_Pthread_GccTests[] = {
1222 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1225 * Fix Command Arguments for Alpha_Pthread_Gcc
1227 static const char* apzAlpha_Pthread_GccPatch[] = {
1229 "#elif defined (__GNUC__)\n\
1230 # define _PTHREAD_ENV_GCC\n\
1234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1236 * Description of Alpha_Pthread_Init fix
1238 tSCC zAlpha_Pthread_InitName[] =
1239 "alpha_pthread_init";
1242 * File name selection pattern
1244 tSCC zAlpha_Pthread_InitList[] =
1247 * Machine/OS name selection pattern
1249 tSCC* apzAlpha_Pthread_InitMachs[] = {
1251 (const char*)NULL };
1254 * content selection pattern - do fix if pattern found
1256 tSCC zAlpha_Pthread_InitSelect0[] =
1257 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1259 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1260 static tTestDesc aAlpha_Pthread_InitTests[] = {
1261 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1264 * Fix Command Arguments for Alpha_Pthread_Init
1266 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1267 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1268 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1269 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1270 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1271 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1272 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1275 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1277 * Description of Alpha_Sbrk fix
1279 tSCC zAlpha_SbrkName[] =
1283 * File name selection pattern
1285 tSCC zAlpha_SbrkList[] =
1288 * Machine/OS name selection pattern
1290 #define apzAlpha_SbrkMachs (const char**)NULL
1293 * content selection pattern - do fix if pattern found
1295 tSCC zAlpha_SbrkSelect0[] =
1296 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1298 #define ALPHA_SBRK_TEST_CT 1
1299 static tTestDesc aAlpha_SbrkTests[] = {
1300 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1303 * Fix Command Arguments for Alpha_Sbrk
1305 static const char* apzAlpha_SbrkPatch[] = {
1310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1312 * Description of Alpha_Wchar fix
1314 tSCC zAlpha_WcharName[] =
1318 * File name selection pattern
1320 tSCC zAlpha_WcharList[] =
1323 * Machine/OS name selection pattern
1325 tSCC* apzAlpha_WcharMachs[] = {
1327 (const char*)NULL };
1330 * content selection pattern - do fix if pattern found
1332 tSCC zAlpha_WcharSelect0[] =
1333 "#define wcstok wcstok_r";
1335 #define ALPHA_WCHAR_TEST_CT 1
1336 static tTestDesc aAlpha_WcharTests[] = {
1337 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1340 * Fix Command Arguments for Alpha_Wchar
1342 static const char* apzAlpha_WcharPatch[] = { "sed",
1343 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1344 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1349 * Description of Avoid_Bool_Define fix
1351 tSCC zAvoid_Bool_DefineName[] =
1352 "avoid_bool_define";
1355 * File name selection pattern
1357 tSCC zAvoid_Bool_DefineList[] =
1358 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1360 * Machine/OS name selection pattern
1362 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1365 * content selection pattern - do fix if pattern found
1367 tSCC zAvoid_Bool_DefineSelect0[] =
1368 "#[ \t]*define[ \t]+bool[ \t]";
1371 * content bypass pattern - skip fix if pattern found
1373 tSCC zAvoid_Bool_DefineBypass0[] =
1376 #define AVOID_BOOL_DEFINE_TEST_CT 2
1377 static tTestDesc aAvoid_Bool_DefineTests[] = {
1378 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1379 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1382 * Fix Command Arguments for Avoid_Bool_Define
1384 static const char* apzAvoid_Bool_DefinePatch[] = {
1386 "#ifndef __cplusplus\n\
1389 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1394 * Description of Avoid_Bool_Type fix
1396 tSCC zAvoid_Bool_TypeName[] =
1400 * File name selection pattern
1402 tSCC zAvoid_Bool_TypeList[] =
1403 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1405 * Machine/OS name selection pattern
1407 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1410 * content selection pattern - do fix if pattern found
1412 tSCC zAvoid_Bool_TypeSelect0[] =
1413 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1416 * content bypass pattern - skip fix if pattern found
1418 tSCC zAvoid_Bool_TypeBypass0[] =
1421 #define AVOID_BOOL_TYPE_TEST_CT 2
1422 static tTestDesc aAvoid_Bool_TypeTests[] = {
1423 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1424 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1427 * Fix Command Arguments for Avoid_Bool_Type
1429 static const char* apzAvoid_Bool_TypePatch[] = {
1431 "#ifndef __cplusplus\n\
1436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1438 * Description of Avoid_Wchar_T_Type fix
1440 tSCC zAvoid_Wchar_T_TypeName[] =
1441 "avoid_wchar_t_type";
1444 * File name selection pattern
1446 #define zAvoid_Wchar_T_TypeList (char*)NULL
1448 * Machine/OS name selection pattern
1450 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1453 * content selection pattern - do fix if pattern found
1455 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1456 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1459 * content bypass pattern - skip fix if pattern found
1461 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1463 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1465 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1466 "XFree86: xc/lib/X11/Xlib\\.h";
1468 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1469 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1470 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1471 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1472 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1473 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1476 * Fix Command Arguments for Avoid_Wchar_T_Type
1478 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1480 "#ifndef __cplusplus\n\
1485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1487 * Description of Bad_Struct_Term fix
1489 tSCC zBad_Struct_TermName[] =
1493 * File name selection pattern
1495 tSCC zBad_Struct_TermList[] =
1498 * Machine/OS name selection pattern
1500 #define apzBad_Struct_TermMachs (const char**)NULL
1503 * content selection pattern - do fix if pattern found
1505 tSCC zBad_Struct_TermSelect0[] =
1506 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1508 #define BAD_STRUCT_TERM_TEST_CT 1
1509 static tTestDesc aBad_Struct_TermTests[] = {
1510 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1513 * Fix Command Arguments for Bad_Struct_Term
1515 static const char* apzBad_Struct_TermPatch[] = {
1520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1522 * Description of Badquote fix
1524 tSCC zBadquoteName[] =
1528 * File name selection pattern
1530 tSCC zBadquoteList[] =
1531 "|sundev/vuid_event.h|";
1533 * Machine/OS name selection pattern
1535 #define apzBadquoteMachs (const char**)NULL
1538 * content selection pattern - do fix if pattern found
1540 tSCC zBadquoteSelect0[] =
1543 #define BADQUOTE_TEST_CT 1
1544 static tTestDesc aBadquoteTests[] = {
1545 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1548 * Fix Command Arguments for Badquote
1550 static const char* apzBadquotePatch[] = {
1555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1557 * Description of Broken_Assert_Stdio fix
1559 tSCC zBroken_Assert_StdioName[] =
1560 "broken_assert_stdio";
1563 * File name selection pattern
1565 tSCC zBroken_Assert_StdioList[] =
1568 * Machine/OS name selection pattern
1570 #define apzBroken_Assert_StdioMachs (const char**)NULL
1573 * content selection pattern - do fix if pattern found
1575 tSCC zBroken_Assert_StdioSelect0[] =
1579 * content bypass pattern - skip fix if pattern found
1581 tSCC zBroken_Assert_StdioBypass0[] =
1582 "include.*stdio\\.h";
1584 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1585 static tTestDesc aBroken_Assert_StdioTests[] = {
1586 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1587 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1590 * Fix Command Arguments for Broken_Assert_Stdio
1592 static const char* apzBroken_Assert_StdioPatch[] = {
1594 "#include <stdio.h>\n",
1597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1599 * Description of Broken_Assert_Stdlib fix
1601 tSCC zBroken_Assert_StdlibName[] =
1602 "broken_assert_stdlib";
1605 * File name selection pattern
1607 tSCC zBroken_Assert_StdlibList[] =
1610 * Machine/OS name selection pattern
1612 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1615 * content selection pattern - do fix if pattern found
1617 tSCC zBroken_Assert_StdlibSelect0[] =
1618 "exit *\\(|abort *\\(";
1621 * content bypass pattern - skip fix if pattern found
1623 tSCC zBroken_Assert_StdlibBypass0[] =
1624 "include.*stdlib\\.h";
1626 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1627 static tTestDesc aBroken_Assert_StdlibTests[] = {
1628 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1629 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1632 * Fix Command Arguments for Broken_Assert_Stdlib
1634 static const char* apzBroken_Assert_StdlibPatch[] = {
1636 "#ifdef __cplusplus\n\
1637 #include <stdlib.h>\n\
1641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1643 * Description of Broken_Cabs fix
1645 tSCC zBroken_CabsName[] =
1649 * File name selection pattern
1651 tSCC zBroken_CabsList[] =
1652 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1654 * Machine/OS name selection pattern
1656 #define apzBroken_CabsMachs (const char**)NULL
1659 * content selection pattern - do fix if pattern found
1661 tSCC zBroken_CabsSelect0[] =
1662 "^extern[ \t]+double[ \t]+cabs";
1664 #define BROKEN_CABS_TEST_CT 1
1665 static tTestDesc aBroken_CabsTests[] = {
1666 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1669 * Fix Command Arguments for Broken_Cabs
1671 static const char* apzBroken_CabsPatch[] = {
1674 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1679 * Description of Bsd_Stdio_Attrs_Conflict fix
1681 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1682 "bsd_stdio_attrs_conflict";
1685 * File name selection pattern
1687 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1690 * Machine/OS name selection pattern
1692 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1695 (const char*)NULL };
1698 * content selection pattern - do fix if pattern found
1700 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1701 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1703 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1704 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1705 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1708 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1710 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1712 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1713 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1714 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1719 * Description of Ctrl_Quotes_Def fix
1721 tSCC zCtrl_Quotes_DefName[] =
1725 * File name selection pattern
1727 #define zCtrl_Quotes_DefList (char*)NULL
1729 * Machine/OS name selection pattern
1731 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1734 * content selection pattern - do fix if pattern found
1736 tSCC zCtrl_Quotes_DefSelect0[] =
1737 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1739 #define CTRL_QUOTES_DEF_TEST_CT 1
1740 static tTestDesc aCtrl_Quotes_DefTests[] = {
1741 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1744 * Fix Command Arguments for Ctrl_Quotes_Def
1746 static const char* apzCtrl_Quotes_DefPatch[] = {
1751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1753 * Description of Ctrl_Quotes_Use fix
1755 tSCC zCtrl_Quotes_UseName[] =
1759 * File name selection pattern
1761 #define zCtrl_Quotes_UseList (char*)NULL
1763 * Machine/OS name selection pattern
1765 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1768 * content selection pattern - do fix if pattern found
1770 tSCC zCtrl_Quotes_UseSelect0[] =
1771 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1773 #define CTRL_QUOTES_USE_TEST_CT 1
1774 static tTestDesc aCtrl_Quotes_UseTests[] = {
1775 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1778 * Fix Command Arguments for Ctrl_Quotes_Use
1780 static const char* apzCtrl_Quotes_UsePatch[] = {
1785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1787 * Description of Cxx_Unready fix
1789 tSCC zCxx_UnreadyName[] =
1793 * File name selection pattern
1795 tSCC zCxx_UnreadyList[] =
1796 "|sys/mman.h|rpc/types.h|";
1798 * Machine/OS name selection pattern
1800 #define apzCxx_UnreadyMachs (const char**)NULL
1803 * content selection pattern - do fix if pattern found
1805 tSCC zCxx_UnreadySelect0[] =
1809 * content bypass pattern - skip fix if pattern found
1811 tSCC zCxx_UnreadyBypass0[] =
1812 "\"C\"|__BEGIN_DECLS";
1814 #define CXX_UNREADY_TEST_CT 2
1815 static tTestDesc aCxx_UnreadyTests[] = {
1816 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1817 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1820 * Fix Command Arguments for Cxx_Unready
1822 static const char* apzCxx_UnreadyPatch[] = {
1824 "#ifdef __cplusplus\n\
1827 "#ifdef __cplusplus\n\
1832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1834 * Description of Darwin_Gcc4_Breakage fix
1836 tSCC zDarwin_Gcc4_BreakageName[] =
1837 "darwin_gcc4_breakage";
1840 * File name selection pattern
1842 tSCC zDarwin_Gcc4_BreakageList[] =
1843 "|AvailabilityMacros.h|";
1845 * Machine/OS name selection pattern
1847 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1849 (const char*)NULL };
1852 * content selection pattern - do fix if pattern found
1854 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1855 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1857 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1858 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1859 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1862 * Fix Command Arguments for Darwin_Gcc4_Breakage
1864 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1866 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1871 * Description of Darwin_Private_Extern fix
1873 tSCC zDarwin_Private_ExternName[] =
1874 "darwin_private_extern";
1877 * File name selection pattern
1879 tSCC zDarwin_Private_ExternList[] =
1882 * Machine/OS name selection pattern
1884 tSCC* apzDarwin_Private_ExternMachs[] = {
1886 (const char*)NULL };
1889 * content selection pattern - do fix if pattern found
1891 tSCC zDarwin_Private_ExternSelect0[] =
1892 "__private_extern__ [a-z_]+ _dyld_";
1894 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1895 static tTestDesc aDarwin_Private_ExternTests[] = {
1896 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1899 * Fix Command Arguments for Darwin_Private_Extern
1901 static const char* apzDarwin_Private_ExternPatch[] = {
1904 "__private_extern__",
1907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1909 * Description of Dec_Intern_Asm fix
1911 tSCC zDec_Intern_AsmName[] =
1915 * File name selection pattern
1917 tSCC zDec_Intern_AsmList[] =
1920 * Machine/OS name selection pattern
1922 #define apzDec_Intern_AsmMachs (const char**)NULL
1923 #define DEC_INTERN_ASM_TEST_CT 0
1924 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1927 * Fix Command Arguments for Dec_Intern_Asm
1929 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1930 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1932 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1938 * Description of Djgpp_Wchar_H fix
1940 tSCC zDjgpp_Wchar_HName[] =
1944 * File name selection pattern
1946 #define zDjgpp_Wchar_HList (char*)NULL
1948 * Machine/OS name selection pattern
1950 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1953 * content selection pattern - do fix if pattern found
1955 tSCC zDjgpp_Wchar_HSelect0[] =
1959 * content bypass pattern - skip fix if pattern found
1961 tSCC zDjgpp_Wchar_HBypass0[] =
1964 #define DJGPP_WCHAR_H_TEST_CT 2
1965 static tTestDesc aDjgpp_Wchar_HTests[] = {
1966 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1967 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1970 * Fix Command Arguments for Djgpp_Wchar_H
1972 static const char* apzDjgpp_Wchar_HPatch[] = {
1975 #include <sys/djtypes.h>",
1976 "#include <stddef.h>",
1979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1981 * Description of Ecd_Cursor fix
1983 tSCC zEcd_CursorName[] =
1987 * File name selection pattern
1989 tSCC zEcd_CursorList[] =
1990 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1992 * Machine/OS name selection pattern
1994 #define apzEcd_CursorMachs (const char**)NULL
1997 * content selection pattern - do fix if pattern found
1999 tSCC zEcd_CursorSelect0[] =
2002 #define ECD_CURSOR_TEST_CT 1
2003 static tTestDesc aEcd_CursorTests[] = {
2004 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2007 * Fix Command Arguments for Ecd_Cursor
2009 static const char* apzEcd_CursorPatch[] = {
2014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2016 * Description of Exception_Structure fix
2018 tSCC zException_StructureName[] =
2019 "exception_structure";
2022 * File name selection pattern
2024 tSCC zException_StructureList[] =
2027 * Machine/OS name selection pattern
2029 #define apzException_StructureMachs (const char**)NULL
2032 * content selection pattern - do fix if pattern found
2034 tSCC zException_StructureSelect0[] =
2038 * content bypass pattern - skip fix if pattern found
2040 tSCC zException_StructureBypass0[] =
2041 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2043 #define EXCEPTION_STRUCTURE_TEST_CT 2
2044 static tTestDesc aException_StructureTests[] = {
2045 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2046 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2049 * Fix Command Arguments for Exception_Structure
2051 static const char* apzException_StructurePatch[] = {
2053 "struct exception;\n",
2056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2058 * Description of Freebsd_Gcc3_Breakage fix
2060 tSCC zFreebsd_Gcc3_BreakageName[] =
2061 "freebsd_gcc3_breakage";
2064 * File name selection pattern
2066 tSCC zFreebsd_Gcc3_BreakageList[] =
2069 * Machine/OS name selection pattern
2071 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2073 (const char*)NULL };
2076 * content selection pattern - do fix if pattern found
2078 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2079 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2082 * content bypass pattern - skip fix if pattern found
2084 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2085 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2087 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2088 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2089 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2090 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2093 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2095 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2097 "%0 || __GNUC__ >= 3",
2100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2102 * Description of Freebsd_Gcc4_Breakage fix
2104 tSCC zFreebsd_Gcc4_BreakageName[] =
2105 "freebsd_gcc4_breakage";
2108 * File name selection pattern
2110 tSCC zFreebsd_Gcc4_BreakageList[] =
2113 * Machine/OS name selection pattern
2115 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2117 (const char*)NULL };
2120 * content selection pattern - do fix if pattern found
2122 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2123 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2125 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2126 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2127 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2130 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2132 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2134 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2139 * Description of Gnu_Types fix
2141 tSCC zGnu_TypesName[] =
2145 * File name selection pattern
2147 tSCC zGnu_TypesList[] =
2148 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
2150 * Machine/OS name selection pattern
2152 tSCC* apzGnu_TypesMachs[] = {
2153 "*-*-solaris2.1[0-9]*",
2154 (const char*)NULL };
2157 * content selection pattern - do fix if pattern found
2159 tSCC zGnu_TypesSelect0[] =
2160 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2163 * content bypass pattern - skip fix if pattern found
2165 tSCC zGnu_TypesBypass0[] =
2166 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2168 #define GNU_TYPES_TEST_CT 2
2169 static tTestDesc aGnu_TypesTests[] = {
2170 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2171 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2174 * Fix Command Arguments for Gnu_Types
2176 static const char* apzGnu_TypesPatch[] = {
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2182 * Description of Hp_Inline fix
2184 tSCC zHp_InlineName[] =
2188 * File name selection pattern
2190 tSCC zHp_InlineList[] =
2191 "|sys/spinlock.h|machine/machparam.h|";
2193 * Machine/OS name selection pattern
2195 #define apzHp_InlineMachs (const char**)NULL
2198 * content selection pattern - do fix if pattern found
2200 tSCC zHp_InlineSelect0[] =
2201 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2203 #define HP_INLINE_TEST_CT 1
2204 static tTestDesc aHp_InlineTests[] = {
2205 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2208 * Fix Command Arguments for Hp_Inline
2210 static const char* apzHp_InlinePatch[] = {
2213 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2218 * Description of Hp_Sysfile fix
2220 tSCC zHp_SysfileName[] =
2224 * File name selection pattern
2226 tSCC zHp_SysfileList[] =
2229 * Machine/OS name selection pattern
2231 #define apzHp_SysfileMachs (const char**)NULL
2234 * content selection pattern - do fix if pattern found
2236 tSCC zHp_SysfileSelect0[] =
2239 #define HP_SYSFILE_TEST_CT 1
2240 static tTestDesc aHp_SysfileTests[] = {
2241 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2244 * Fix Command Arguments for Hp_Sysfile
2246 static const char* apzHp_SysfilePatch[] = {
2248 "(struct file *, ...)",
2252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2254 * Description of Hpux10_Cpp_Pow_Inline fix
2256 tSCC zHpux10_Cpp_Pow_InlineName[] =
2257 "hpux10_cpp_pow_inline";
2260 * File name selection pattern
2262 tSCC zHpux10_Cpp_Pow_InlineList[] =
2263 "|fixinc-test-limits.h|math.h|";
2265 * Machine/OS name selection pattern
2267 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2270 * content selection pattern - do fix if pattern found
2272 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2273 "^# +ifdef +__cplusplus\n\
2275 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2276 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2278 +extern +\"C\" +\\{\n\
2282 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2283 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2284 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2287 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2289 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2296 * Description of Hpux11_Cpp_Pow_Inline fix
2298 tSCC zHpux11_Cpp_Pow_InlineName[] =
2299 "hpux11_cpp_pow_inline";
2302 * File name selection pattern
2304 tSCC zHpux11_Cpp_Pow_InlineList[] =
2307 * Machine/OS name selection pattern
2309 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2312 * content selection pattern - do fix if pattern found
2314 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2315 " +inline double pow\\(double d,int expon\\) \\{\n\
2316 +return pow\\(d, \\(double\\)expon\\);\n\
2319 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2320 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2321 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2324 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2326 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2333 * Description of Hpux10_Ctype_Declarations1 fix
2335 tSCC zHpux10_Ctype_Declarations1Name[] =
2336 "hpux10_ctype_declarations1";
2339 * File name selection pattern
2341 tSCC zHpux10_Ctype_Declarations1List[] =
2344 * Machine/OS name selection pattern
2346 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2349 * content selection pattern - do fix if pattern found
2351 tSCC zHpux10_Ctype_Declarations1Select0[] =
2352 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2355 * content bypass pattern - skip fix if pattern found
2357 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2358 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2360 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2361 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2362 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2363 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2366 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2368 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2370 "#ifdef _PROTOTYPES\n\
2371 extern int __tolower(int);\n\
2372 extern int __toupper(int);\n\
2373 #else /* NOT _PROTOTYPES */\n\
2374 extern int __tolower();\n\
2375 extern int __toupper();\n\
2376 #endif /* _PROTOTYPES */\n\n\
2380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2382 * Description of Hpux10_Ctype_Declarations2 fix
2384 tSCC zHpux10_Ctype_Declarations2Name[] =
2385 "hpux10_ctype_declarations2";
2388 * File name selection pattern
2390 tSCC zHpux10_Ctype_Declarations2List[] =
2393 * Machine/OS name selection pattern
2395 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2398 * content selection pattern - do fix if pattern found
2400 tSCC zHpux10_Ctype_Declarations2Select0[] =
2401 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2404 * content bypass pattern - skip fix if pattern found
2406 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2407 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2409 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2410 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2411 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2412 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2415 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2417 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2420 #ifdef _PROTOTYPES\n\
2421 extern int _isalnum(int);\n\
2422 extern int _isalpha(int);\n\
2423 extern int _iscntrl(int);\n\
2424 extern int _isdigit(int);\n\
2425 extern int _isgraph(int);\n\
2426 extern int _islower(int);\n\
2427 extern int _isprint(int);\n\
2428 extern int _ispunct(int);\n\
2429 extern int _isspace(int);\n\
2430 extern int _isupper(int);\n\
2431 extern int _isxdigit(int);\n\
2432 # else /* not _PROTOTYPES */\n\
2433 extern int _isalnum();\n\
2434 extern int _isalpha();\n\
2435 extern int _iscntrl();\n\
2436 extern int _isdigit();\n\
2437 extern int _isgraph();\n\
2438 extern int _islower();\n\
2439 extern int _isprint();\n\
2440 extern int _ispunct();\n\
2441 extern int _isspace();\n\
2442 extern int _isupper();\n\
2443 extern int _isxdigit();\n\
2444 #endif /* _PROTOTYPES */\n",
2447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2449 * Description of Hpux10_Stdio_Declarations fix
2451 tSCC zHpux10_Stdio_DeclarationsName[] =
2452 "hpux10_stdio_declarations";
2455 * File name selection pattern
2457 tSCC zHpux10_Stdio_DeclarationsList[] =
2460 * Machine/OS name selection pattern
2462 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2465 * content selection pattern - do fix if pattern found
2467 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2468 "^#[ \t]*define _iob[ \t]*__iob";
2471 * content bypass pattern - skip fix if pattern found
2473 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2474 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2476 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2477 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2478 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2479 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2482 * Fix Command Arguments for Hpux10_Stdio_Declarations
2484 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2487 # if defined(__STDC__) || defined(__cplusplus)\n\
2488 extern int snprintf(char *, size_t, const char *, ...);\n\
2489 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2490 # else /* not __STDC__) || __cplusplus */\n\
2491 extern int snprintf();\n\
2492 extern int vsnprintf();\n\
2493 # endif /* __STDC__) || __cplusplus */\n",
2496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2498 * Description of Hpux11_Abs fix
2500 tSCC zHpux11_AbsName[] =
2504 * File name selection pattern
2506 tSCC zHpux11_AbsList[] =
2509 * Machine/OS name selection pattern
2511 tSCC* apzHpux11_AbsMachs[] = {
2513 (const char*)NULL };
2516 * content selection pattern - do fix if pattern found
2518 tSCC zHpux11_AbsSelect0[] =
2519 "ifndef _MATH_INCLUDED";
2521 #define HPUX11_ABS_TEST_CT 1
2522 static tTestDesc aHpux11_AbsTests[] = {
2523 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2526 * Fix Command Arguments for Hpux11_Abs
2528 static const char* apzHpux11_AbsPatch[] = {
2530 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2533 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2535 * Description of Hpux11_Fabsf fix
2537 tSCC zHpux11_FabsfName[] =
2541 * File name selection pattern
2543 tSCC zHpux11_FabsfList[] =
2546 * Machine/OS name selection pattern
2548 #define apzHpux11_FabsfMachs (const char**)NULL
2551 * content selection pattern - do fix if pattern found
2553 tSCC zHpux11_FabsfSelect0[] =
2554 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2557 * content bypass pattern - skip fix if pattern found
2559 tSCC zHpux11_FabsfBypass0[] =
2562 #define HPUX11_FABSF_TEST_CT 2
2563 static tTestDesc aHpux11_FabsfTests[] = {
2564 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2565 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2568 * Fix Command Arguments for Hpux11_Fabsf
2570 static const char* apzHpux11_FabsfPatch[] = {
2572 "#ifndef __cplusplus\n\
2577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2579 * Description of Hpux11_Size_T fix
2581 tSCC zHpux11_Size_TName[] =
2585 * File name selection pattern
2587 #define zHpux11_Size_TList (char*)NULL
2589 * Machine/OS name selection pattern
2591 tSCC* apzHpux11_Size_TMachs[] = {
2593 (const char*)NULL };
2596 * content selection pattern - do fix if pattern found
2598 tSCC zHpux11_Size_TSelect0[] =
2601 #define HPUX11_SIZE_T_TEST_CT 1
2602 static tTestDesc aHpux11_Size_TTests[] = {
2603 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2606 * Fix Command Arguments for Hpux11_Size_T
2608 static const char* apzHpux11_Size_TPatch[] = {
2613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2615 * Description of Hpux11_Snprintf fix
2617 tSCC zHpux11_SnprintfName[] =
2621 * File name selection pattern
2623 tSCC zHpux11_SnprintfList[] =
2626 * Machine/OS name selection pattern
2628 #define apzHpux11_SnprintfMachs (const char**)NULL
2631 * content selection pattern - do fix if pattern found
2633 tSCC zHpux11_SnprintfSelect0[] =
2634 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2636 #define HPUX11_SNPRINTF_TEST_CT 1
2637 static tTestDesc aHpux11_SnprintfTests[] = {
2638 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2641 * Fix Command Arguments for Hpux11_Snprintf
2643 static const char* apzHpux11_SnprintfPatch[] = {
2648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2650 * Description of Hpux11_Uint32_C fix
2652 tSCC zHpux11_Uint32_CName[] =
2656 * File name selection pattern
2658 tSCC zHpux11_Uint32_CList[] =
2661 * Machine/OS name selection pattern
2663 #define apzHpux11_Uint32_CMachs (const char**)NULL
2666 * content selection pattern - do fix if pattern found
2668 tSCC zHpux11_Uint32_CSelect0[] =
2669 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2671 #define HPUX11_UINT32_C_TEST_CT 1
2672 static tTestDesc aHpux11_Uint32_CTests[] = {
2673 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2676 * Fix Command Arguments for Hpux11_Uint32_C
2678 static const char* apzHpux11_Uint32_CPatch[] = {
2680 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2685 * Description of Hpux11_Vsnprintf fix
2687 tSCC zHpux11_VsnprintfName[] =
2691 * File name selection pattern
2693 tSCC zHpux11_VsnprintfList[] =
2696 * Machine/OS name selection pattern
2698 #define apzHpux11_VsnprintfMachs (const char**)NULL
2701 * content selection pattern - do fix if pattern found
2703 tSCC zHpux11_VsnprintfSelect0[] =
2704 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2706 #define HPUX11_VSNPRINTF_TEST_CT 1
2707 static tTestDesc aHpux11_VsnprintfTests[] = {
2708 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2711 * Fix Command Arguments for Hpux11_Vsnprintf
2713 static const char* apzHpux11_VsnprintfPatch[] = {
2718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2720 * Description of Hpux8_Bogus_Inlines fix
2722 tSCC zHpux8_Bogus_InlinesName[] =
2723 "hpux8_bogus_inlines";
2726 * File name selection pattern
2728 tSCC zHpux8_Bogus_InlinesList[] =
2731 * Machine/OS name selection pattern
2733 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2736 * content selection pattern - do fix if pattern found
2738 tSCC zHpux8_Bogus_InlinesSelect0[] =
2742 * content bypass pattern - skip fix if pattern found
2744 tSCC zHpux8_Bogus_InlinesBypass0[] =
2747 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2748 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2749 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2750 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2753 * Fix Command Arguments for Hpux8_Bogus_Inlines
2755 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2756 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2757 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2758 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2759 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2764 * Description of Hpux_Ctype_Macros fix
2766 tSCC zHpux_Ctype_MacrosName[] =
2767 "hpux_ctype_macros";
2770 * File name selection pattern
2772 tSCC zHpux_Ctype_MacrosList[] =
2775 * Machine/OS name selection pattern
2777 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2780 * content selection pattern - do fix if pattern found
2782 tSCC zHpux_Ctype_MacrosSelect0[] =
2783 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2785 #define HPUX_CTYPE_MACROS_TEST_CT 1
2786 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2787 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2790 * Fix Command Arguments for Hpux_Ctype_Macros
2792 static const char* apzHpux_Ctype_MacrosPatch[] = {
2797 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2799 * Description of Hpux_Htonl fix
2801 tSCC zHpux_HtonlName[] =
2805 * File name selection pattern
2807 tSCC zHpux_HtonlList[] =
2810 * Machine/OS name selection pattern
2812 #define apzHpux_HtonlMachs (const char**)NULL
2815 * content selection pattern - do fix if pattern found
2817 tSCC zHpux_HtonlSelect0[] =
2818 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
2820 \\* Macros for number representation conversion\\.\n\
2824 #define HPUX_HTONL_TEST_CT 1
2825 static tTestDesc aHpux_HtonlTests[] = {
2826 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
2829 * Fix Command Arguments for Hpux_Htonl
2831 static const char* apzHpux_HtonlPatch[] = {
2837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2839 * Description of Hpux_Long_Double fix
2841 tSCC zHpux_Long_DoubleName[] =
2845 * File name selection pattern
2847 tSCC zHpux_Long_DoubleList[] =
2850 * Machine/OS name selection pattern
2852 #define apzHpux_Long_DoubleMachs (const char**)NULL
2855 * content selection pattern - do fix if pattern found
2857 tSCC zHpux_Long_DoubleSelect0[] =
2858 "extern[ \t]long_double[ \t]strtold";
2861 * content bypass pattern - skip fix if pattern found
2863 tSCC zHpux_Long_DoubleBypass0[] =
2866 #define HPUX_LONG_DOUBLE_TEST_CT 2
2867 static tTestDesc aHpux_Long_DoubleTests[] = {
2868 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2869 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2872 * Fix Command Arguments for Hpux_Long_Double
2874 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2875 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2876 "-e", "s/long_double/long double/g",
2879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2881 * Description of Hpux_Systime fix
2883 tSCC zHpux_SystimeName[] =
2887 * File name selection pattern
2889 tSCC zHpux_SystimeList[] =
2892 * Machine/OS name selection pattern
2894 #define apzHpux_SystimeMachs (const char**)NULL
2897 * content selection pattern - do fix if pattern found
2899 tSCC zHpux_SystimeSelect0[] =
2900 "^extern struct sigevent;";
2902 #define HPUX_SYSTIME_TEST_CT 1
2903 static tTestDesc aHpux_SystimeTests[] = {
2904 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2907 * Fix Command Arguments for Hpux_Systime
2909 static const char* apzHpux_SystimePatch[] = {
2914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2916 * Description of Int_Abort_Free_And_Exit fix
2918 tSCC zInt_Abort_Free_And_ExitName[] =
2919 "int_abort_free_and_exit";
2922 * File name selection pattern
2924 tSCC zInt_Abort_Free_And_ExitList[] =
2927 * Machine/OS name selection pattern
2929 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2932 * content selection pattern - do fix if pattern found
2934 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2935 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2938 * content bypass pattern - skip fix if pattern found
2940 tSCC zInt_Abort_Free_And_ExitBypass0[] =
2941 "_CLASSIC_ANSI_TYPES";
2943 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
2944 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2945 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
2946 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2949 * Fix Command Arguments for Int_Abort_Free_And_Exit
2951 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2958 * Description of Io_Quotes_Def fix
2960 tSCC zIo_Quotes_DefName[] =
2964 * File name selection pattern
2966 #define zIo_Quotes_DefList (char*)NULL
2968 * Machine/OS name selection pattern
2970 #define apzIo_Quotes_DefMachs (const char**)NULL
2973 * content selection pattern - do fix if pattern found
2975 tSCC zIo_Quotes_DefSelect0[] =
2976 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2978 #define IO_QUOTES_DEF_TEST_CT 1
2979 static tTestDesc aIo_Quotes_DefTests[] = {
2980 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2983 * Fix Command Arguments for Io_Quotes_Def
2985 static const char* apzIo_Quotes_DefPatch[] = {
2990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2992 * Description of Io_Quotes_Use fix
2994 tSCC zIo_Quotes_UseName[] =
2998 * File name selection pattern
3000 #define zIo_Quotes_UseList (char*)NULL
3002 * Machine/OS name selection pattern
3004 #define apzIo_Quotes_UseMachs (const char**)NULL
3007 * content selection pattern - do fix if pattern found
3009 tSCC zIo_Quotes_UseSelect0[] =
3010 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3012 #define IO_QUOTES_USE_TEST_CT 1
3013 static tTestDesc aIo_Quotes_UseTests[] = {
3014 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3017 * Fix Command Arguments for Io_Quotes_Use
3019 static const char* apzIo_Quotes_UsePatch[] = {
3024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3026 * Description of Ip_Missing_Semi fix
3028 tSCC zIp_Missing_SemiName[] =
3032 * File name selection pattern
3034 tSCC zIp_Missing_SemiList[] =
3037 * Machine/OS name selection pattern
3039 #define apzIp_Missing_SemiMachs (const char**)NULL
3042 * content selection pattern - do fix if pattern found
3044 tSCC zIp_Missing_SemiSelect0[] =
3047 #define IP_MISSING_SEMI_TEST_CT 1
3048 static tTestDesc aIp_Missing_SemiTests[] = {
3049 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3052 * Fix Command Arguments for Ip_Missing_Semi
3054 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3055 "-e", "/^struct/,/^};/s/}$/};/",
3058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3060 * Description of Irix___Restrict fix
3062 tSCC zIrix___RestrictName[] =
3066 * File name selection pattern
3068 tSCC zIrix___RestrictList[] =
3069 "|internal/sgimacros.h|";
3071 * Machine/OS name selection pattern
3073 tSCC* apzIrix___RestrictMachs[] = {
3075 (const char*)NULL };
3078 * content selection pattern - do fix if pattern found
3080 tSCC zIrix___RestrictSelect0[] =
3082 )(#[ \t]*define __restrict restrict)";
3084 #define IRIX___RESTRICT_TEST_CT 1
3085 static tTestDesc aIrix___RestrictTests[] = {
3086 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3089 * Fix Command Arguments for Irix___Restrict
3091 static const char* apzIrix___RestrictPatch[] = {
3093 "%1# ifndef __cplusplus\n\
3098 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3100 * Description of Irix___Generic1 fix
3102 tSCC zIrix___Generic1Name[] =
3106 * File name selection pattern
3108 tSCC zIrix___Generic1List[] =
3109 "|internal/math_core.h|";
3111 * Machine/OS name selection pattern
3113 tSCC* apzIrix___Generic1Machs[] = {
3115 (const char*)NULL };
3118 * content selection pattern - do fix if pattern found
3120 tSCC zIrix___Generic1Select0[] =
3121 "#define ([a-z]+)\\(x\\) *__generic.*";
3123 #define IRIX___GENERIC1_TEST_CT 1
3124 static tTestDesc aIrix___Generic1Tests[] = {
3125 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3128 * Fix Command Arguments for Irix___Generic1
3130 static const char* apzIrix___Generic1Patch[] = {
3132 "extern int %1(double);\n\
3133 extern int %1f(float);\n\
3134 extern int %1l(long double);\n\
3135 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3136 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3142 * Description of Irix___Generic2 fix
3144 tSCC zIrix___Generic2Name[] =
3148 * File name selection pattern
3150 tSCC zIrix___Generic2List[] =
3151 "|internal/math_core.h|";
3153 * Machine/OS name selection pattern
3155 tSCC* apzIrix___Generic2Machs[] = {
3157 (const char*)NULL };
3160 * content selection pattern - do fix if pattern found
3162 tSCC zIrix___Generic2Select0[] =
3163 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3165 #define IRIX___GENERIC2_TEST_CT 1
3166 static tTestDesc aIrix___Generic2Tests[] = {
3167 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3170 * Fix Command Arguments for Irix___Generic2
3172 static const char* apzIrix___Generic2Patch[] = {
3174 "#define %1(x,y) \\\n\
3175 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3176 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3182 * Description of Irix_Asm_Apostrophe fix
3184 tSCC zIrix_Asm_ApostropheName[] =
3185 "irix_asm_apostrophe";
3188 * File name selection pattern
3190 tSCC zIrix_Asm_ApostropheList[] =
3193 * Machine/OS name selection pattern
3195 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3198 * content selection pattern - do fix if pattern found
3200 tSCC zIrix_Asm_ApostropheSelect0[] =
3201 "^[ \t]*#.*[Ww]e're";
3203 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3204 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3205 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3208 * Fix Command Arguments for Irix_Asm_Apostrophe
3210 static const char* apzIrix_Asm_ApostrophePatch[] = {
3213 "^([ \t]*#.*[Ww]e)'re",
3216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3218 * Description of Irix_Limits_Const fix
3220 tSCC zIrix_Limits_ConstName[] =
3221 "irix_limits_const";
3224 * File name selection pattern
3226 tSCC zIrix_Limits_ConstList[] =
3227 "|fixinc-test-limits.h|limits.h|";
3229 * Machine/OS name selection pattern
3231 #define apzIrix_Limits_ConstMachs (const char**)NULL
3234 * content selection pattern - do fix if pattern found
3236 tSCC zIrix_Limits_ConstSelect0[] =
3239 #define IRIX_LIMITS_CONST_TEST_CT 1
3240 static tTestDesc aIrix_Limits_ConstTests[] = {
3241 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3244 * Fix Command Arguments for Irix_Limits_Const
3246 static const char* apzIrix_Limits_ConstPatch[] = {
3251 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3253 * Description of Irix_Socklen_T fix
3255 tSCC zIrix_Socklen_TName[] =
3259 * File name selection pattern
3261 tSCC zIrix_Socklen_TList[] =
3264 * Machine/OS name selection pattern
3266 tSCC* apzIrix_Socklen_TMachs[] = {
3268 (const char*)NULL };
3271 * content selection pattern - do fix if pattern found
3273 tSCC zIrix_Socklen_TSelect0[] =
3274 "(#define _SOCKLEN_T\n\
3275 )(typedef u_int32_t socklen_t;)";
3277 #define IRIX_SOCKLEN_T_TEST_CT 1
3278 static tTestDesc aIrix_Socklen_TTests[] = {
3279 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3282 * Fix Command Arguments for Irix_Socklen_T
3284 static const char* apzIrix_Socklen_TPatch[] = {
3286 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3287 typedef int socklen_t;\n\
3290 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3295 * Description of Irix_Stdio_Va_List fix
3297 tSCC zIrix_Stdio_Va_ListName[] =
3298 "irix_stdio_va_list";
3301 * File name selection pattern
3303 tSCC zIrix_Stdio_Va_ListList[] =
3304 "|stdio.h|internal/stdio_core.h|";
3306 * Machine/OS name selection pattern
3308 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3311 * content selection pattern - do fix if pattern found
3313 tSCC zIrix_Stdio_Va_ListSelect0[] =
3314 "/\\* va_list \\*/ char \\*";
3316 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3317 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3318 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3321 * Fix Command Arguments for Irix_Stdio_Va_List
3323 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3330 * Description of Irix_Wcsftime fix
3332 tSCC zIrix_WcsftimeName[] =
3336 * File name selection pattern
3338 tSCC zIrix_WcsftimeList[] =
3339 "|internal/wchar_core.h|";
3341 * Machine/OS name selection pattern
3343 tSCC* apzIrix_WcsftimeMachs[] = {
3345 (const char*)NULL };
3348 * content selection pattern - do fix if pattern found
3350 tSCC zIrix_WcsftimeSelect0[] =
3352 (extern size_t[ \t]+wcsftime.*const char *.*)";
3354 #define IRIX_WCSFTIME_TEST_CT 1
3355 static tTestDesc aIrix_WcsftimeTests[] = {
3356 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3359 * Fix Command Arguments for Irix_Wcsftime
3361 static const char* apzIrix_WcsftimePatch[] = {
3363 "#if _NO_XOPEN5 && !defined(__c99)\n\
3367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3369 * Description of Isc_Fmod fix
3371 tSCC zIsc_FmodName[] =
3375 * File name selection pattern
3377 tSCC zIsc_FmodList[] =
3380 * Machine/OS name selection pattern
3382 #define apzIsc_FmodMachs (const char**)NULL
3385 * content selection pattern - do fix if pattern found
3387 tSCC zIsc_FmodSelect0[] =
3390 #define ISC_FMOD_TEST_CT 1
3391 static tTestDesc aIsc_FmodTests[] = {
3392 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3395 * Fix Command Arguments for Isc_Fmod
3397 static const char* apzIsc_FmodPatch[] = {
3399 "fmod(double, double)",
3402 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3404 * Description of Isc_Omits_With_Stdc fix
3406 tSCC zIsc_Omits_With_StdcName[] =
3407 "isc_omits_with_stdc";
3410 * File name selection pattern
3412 tSCC zIsc_Omits_With_StdcList[] =
3413 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3415 * Machine/OS name selection pattern
3417 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3420 * content selection pattern - do fix if pattern found
3422 tSCC zIsc_Omits_With_StdcSelect0[] =
3423 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3425 #define ISC_OMITS_WITH_STDC_TEST_CT 1
3426 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3427 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3430 * Fix Command Arguments for Isc_Omits_With_Stdc
3432 static const char* apzIsc_Omits_With_StdcPatch[] = {
3434 "!defined(_POSIX_SOURCE)",
3437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3439 * Description of Kandr_Concat fix
3441 tSCC zKandr_ConcatName[] =
3445 * File name selection pattern
3447 tSCC zKandr_ConcatList[] =
3448 "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";
3450 * Machine/OS name selection pattern
3452 #define apzKandr_ConcatMachs (const char**)NULL
3455 * content selection pattern - do fix if pattern found
3457 tSCC zKandr_ConcatSelect0[] =
3460 #define KANDR_CONCAT_TEST_CT 1
3461 static tTestDesc aKandr_ConcatTests[] = {
3462 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
3465 * Fix Command Arguments for Kandr_Concat
3467 static const char* apzKandr_ConcatPatch[] = {
3472 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3474 * Description of Libc1_G_Va_List fix
3476 tSCC zLibc1_G_Va_ListName[] =
3480 * File name selection pattern
3482 tSCC zLibc1_G_Va_ListList[] =
3485 * Machine/OS name selection pattern
3487 tSCC* apzLibc1_G_Va_ListMachs[] = {
3489 (const char*)NULL };
3492 * content selection pattern - do fix if pattern found
3494 tSCC zLibc1_G_Va_ListSelect0[] =
3495 "typedef void \\* _G_va_list;";
3497 #define LIBC1_G_VA_LIST_TEST_CT 1
3498 static tTestDesc aLibc1_G_Va_ListTests[] = {
3499 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3502 * Fix Command Arguments for Libc1_G_Va_List
3504 static const char* apzLibc1_G_Va_ListPatch[] = {
3506 "typedef __builtin_va_list _G_va_list;",
3509 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3511 * Description of Libc1_Ifdefd_Memx fix
3513 tSCC zLibc1_Ifdefd_MemxName[] =
3514 "libc1_ifdefd_memx";
3517 * File name selection pattern
3519 tSCC zLibc1_Ifdefd_MemxList[] =
3520 "|testing.h|string.h|";
3522 * Machine/OS name selection pattern
3524 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3527 * content selection pattern - do fix if pattern found
3529 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3530 "' is a built-in function for gcc 2\\.x\\. \\*/";
3533 * content bypass pattern - skip fix if pattern found
3535 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3538 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
3539 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3540 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3541 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3544 * Fix Command Arguments for Libc1_Ifdefd_Memx
3546 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3549 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3550 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3552 extern [a-z_]+ mem.*(\n\
3557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3559 * Description of Linux_Ia64_Ucontext fix
3561 tSCC zLinux_Ia64_UcontextName[] =
3562 "linux_ia64_ucontext";
3565 * File name selection pattern
3567 tSCC zLinux_Ia64_UcontextList[] =
3570 * Machine/OS name selection pattern
3572 tSCC* apzLinux_Ia64_UcontextMachs[] = {
3574 (const char*)NULL };
3577 * content selection pattern - do fix if pattern found
3579 tSCC zLinux_Ia64_UcontextSelect0[] =
3580 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
3582 #define LINUX_IA64_UCONTEXT_TEST_CT 1
3583 static tTestDesc aLinux_Ia64_UcontextTests[] = {
3584 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
3587 * Fix Command Arguments for Linux_Ia64_Ucontext
3589 static const char* apzLinux_Ia64_UcontextPatch[] = {
3591 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
3594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3596 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
3598 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
3599 "lynxos_no_warning_in_sys_time_h";
3602 * File name selection pattern
3604 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
3607 * Machine/OS name selection pattern
3609 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
3612 * content selection pattern - do fix if pattern found
3614 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
3615 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
3617 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
3618 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
3619 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
3622 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
3624 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
3629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3631 * Description of Lynxos_Missing_Putenv fix
3633 tSCC zLynxos_Missing_PutenvName[] =
3634 "lynxos_missing_putenv";
3637 * File name selection pattern
3639 tSCC zLynxos_Missing_PutenvList[] =
3642 * Machine/OS name selection pattern
3644 tSCC* apzLynxos_Missing_PutenvMachs[] = {
3646 (const char*)NULL };
3649 * content selection pattern - do fix if pattern found
3651 tSCC zLynxos_Missing_PutenvSelect0[] =
3652 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
3655 * content bypass pattern - skip fix if pattern found
3657 tSCC zLynxos_Missing_PutenvBypass0[] =
3660 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
3661 static tTestDesc aLynxos_Missing_PutenvTests[] = {
3662 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
3663 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
3666 * Fix Command Arguments for Lynxos_Missing_Putenv
3668 static const char* apzLynxos_Missing_PutenvPatch[] = {
3671 extern int putenv\t\t\t\t_AP((char *));",
3672 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
3675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3677 * Description of Machine_Ansi_H_Va_List fix
3679 tSCC zMachine_Ansi_H_Va_ListName[] =
3680 "machine_ansi_h_va_list";
3683 * File name selection pattern
3685 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3687 * Machine/OS name selection pattern
3689 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3692 * content selection pattern - do fix if pattern found
3694 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3695 "define[ \t]+_BSD_VA_LIST_[ \t]";
3698 * content bypass pattern - skip fix if pattern found
3700 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3701 "__builtin_va_list";
3703 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3704 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3705 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3706 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3709 * Fix Command Arguments for Machine_Ansi_H_Va_List
3711 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3713 "%1__builtin_va_list",
3714 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3719 * Description of Machine_Name fix
3721 tSCC zMachine_NameName[] =
3725 * File name selection pattern
3727 #define zMachine_NameList (char*)NULL
3729 * Machine/OS name selection pattern
3731 #define apzMachine_NameMachs (const char**)NULL
3734 * perform the C function call test
3736 tSCC zMachine_NameFTst0[] = "machine_name";
3738 #define MACHINE_NAME_TEST_CT 1
3739 static tTestDesc aMachine_NameTests[] = {
3740 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
3743 * Fix Command Arguments for Machine_Name
3745 static const char* apzMachine_NamePatch[] = {
3749 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3751 * Description of Math_Exception fix
3753 tSCC zMath_ExceptionName[] =
3757 * File name selection pattern
3759 tSCC zMath_ExceptionList[] =
3762 * Machine/OS name selection pattern
3764 #define apzMath_ExceptionMachs (const char**)NULL
3767 * content selection pattern - do fix if pattern found
3769 tSCC zMath_ExceptionSelect0[] =
3773 * content bypass pattern - skip fix if pattern found
3775 tSCC zMath_ExceptionBypass0[] =
3776 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
3778 #define MATH_EXCEPTION_TEST_CT 2
3779 static tTestDesc aMath_ExceptionTests[] = {
3780 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
3781 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
3784 * Fix Command Arguments for Math_Exception
3786 static const char* apzMath_ExceptionPatch[] = {
3788 "#ifdef __cplusplus\n\
3789 #define exception __math_exception\n\
3791 "#ifdef __cplusplus\n\
3796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3798 * Description of Math_Huge_Val_From_Dbl_Max fix
3800 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3801 "math_huge_val_from_dbl_max";
3804 * File name selection pattern
3806 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3809 * Machine/OS name selection pattern
3811 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3814 * content selection pattern - do fix if pattern found
3816 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3817 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3820 * content bypass pattern - skip fix if pattern found
3822 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3823 "define[ \t]+DBL_MAX";
3825 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3826 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3827 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3828 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3831 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3833 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3834 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3835 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3836 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3843 * Description of Nested_Auth_Des fix
3845 tSCC zNested_Auth_DesName[] =
3849 * File name selection pattern
3851 tSCC zNested_Auth_DesList[] =
3854 * Machine/OS name selection pattern
3856 #define apzNested_Auth_DesMachs (const char**)NULL
3859 * content selection pattern - do fix if pattern found
3861 tSCC zNested_Auth_DesSelect0[] =
3862 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3864 #define NESTED_AUTH_DES_TEST_CT 1
3865 static tTestDesc aNested_Auth_DesTests[] = {
3866 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3869 * Fix Command Arguments for Nested_Auth_Des
3871 static const char* apzNested_Auth_DesPatch[] = {
3876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3878 * Description of Nested_Motorola fix
3880 tSCC zNested_MotorolaName[] =
3884 * File name selection pattern
3886 tSCC zNested_MotorolaList[] =
3887 "|sys/limits.h|limits.h|";
3889 * Machine/OS name selection pattern
3891 tSCC* apzNested_MotorolaMachs[] = {
3892 "m68k-motorola-sysv*",
3893 (const char*)NULL };
3896 * content selection pattern - do fix if pattern found
3898 tSCC zNested_MotorolaSelect0[] =
3899 "max # bytes atomic in write|error value returned by Math lib";
3901 #define NESTED_MOTOROLA_TEST_CT 1
3902 static tTestDesc aNested_MotorolaTests[] = {
3903 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3906 * Fix Command Arguments for Nested_Motorola
3908 static const char* apzNested_MotorolaPatch[] = { "sed",
3909 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3910 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3915 * Description of Nested_Sys_Limits fix
3917 tSCC zNested_Sys_LimitsName[] =
3918 "nested_sys_limits";
3921 * File name selection pattern
3923 tSCC zNested_Sys_LimitsList[] =
3926 * Machine/OS name selection pattern
3928 #define apzNested_Sys_LimitsMachs (const char**)NULL
3931 * content selection pattern - do fix if pattern found
3933 tSCC zNested_Sys_LimitsSelect0[] =
3936 #define NESTED_SYS_LIMITS_TEST_CT 1
3937 static tTestDesc aNested_Sys_LimitsTests[] = {
3938 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3941 * Fix Command Arguments for Nested_Sys_Limits
3943 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3944 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3945 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3950 * Description of Netbsd_Extra_Semicolon fix
3952 tSCC zNetbsd_Extra_SemicolonName[] =
3953 "netbsd_extra_semicolon";
3956 * File name selection pattern
3958 tSCC zNetbsd_Extra_SemicolonList[] =
3961 * Machine/OS name selection pattern
3963 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3965 (const char*)NULL };
3968 * content selection pattern - do fix if pattern found
3970 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3971 "#define[ \t]*__END_DECLS[ \t]*};";
3973 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3974 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3975 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3978 * Fix Command Arguments for Netbsd_Extra_Semicolon
3980 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3982 "#define __END_DECLS }",
3985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3987 * Description of Next_Math_Prefix fix
3989 tSCC zNext_Math_PrefixName[] =
3993 * File name selection pattern
3995 tSCC zNext_Math_PrefixList[] =
3998 * Machine/OS name selection pattern
4000 #define apzNext_Math_PrefixMachs (const char**)NULL
4003 * content selection pattern - do fix if pattern found
4005 tSCC zNext_Math_PrefixSelect0[] =
4006 "^extern[ \t]+double[ \t]+__const__[ \t]";
4008 #define NEXT_MATH_PREFIX_TEST_CT 1
4009 static tTestDesc aNext_Math_PrefixTests[] = {
4010 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4013 * Fix Command Arguments for Next_Math_Prefix
4015 static const char* apzNext_Math_PrefixPatch[] = {
4017 "extern double %1(",
4018 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4023 * Description of Next_Template fix
4025 tSCC zNext_TemplateName[] =
4029 * File name selection pattern
4031 tSCC zNext_TemplateList[] =
4034 * Machine/OS name selection pattern
4036 #define apzNext_TemplateMachs (const char**)NULL
4039 * content selection pattern - do fix if pattern found
4041 tSCC zNext_TemplateSelect0[] =
4044 #define NEXT_TEMPLATE_TEST_CT 1
4045 static tTestDesc aNext_TemplateTests[] = {
4046 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4049 * Fix Command Arguments for Next_Template
4051 static const char* apzNext_TemplatePatch[] = {
4054 "\\(([^)]*)[ \t]template\\)",
4057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4059 * Description of Next_Volitile fix
4061 tSCC zNext_VolitileName[] =
4065 * File name selection pattern
4067 tSCC zNext_VolitileList[] =
4070 * Machine/OS name selection pattern
4072 #define apzNext_VolitileMachs (const char**)NULL
4075 * content selection pattern - do fix if pattern found
4077 tSCC zNext_VolitileSelect0[] =
4078 "^extern[ \t]+volatile[ \t]+void[ \t]";
4080 #define NEXT_VOLITILE_TEST_CT 1
4081 static tTestDesc aNext_VolitileTests[] = {
4082 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4085 * Fix Command Arguments for Next_Volitile
4087 static const char* apzNext_VolitilePatch[] = {
4090 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4095 * Description of Next_Wait_Union fix
4097 tSCC zNext_Wait_UnionName[] =
4101 * File name selection pattern
4103 tSCC zNext_Wait_UnionList[] =
4106 * Machine/OS name selection pattern
4108 #define apzNext_Wait_UnionMachs (const char**)NULL
4111 * content selection pattern - do fix if pattern found
4113 tSCC zNext_Wait_UnionSelect0[] =
4114 "wait\\(union wait";
4116 #define NEXT_WAIT_UNION_TEST_CT 1
4117 static tTestDesc aNext_Wait_UnionTests[] = {
4118 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4121 * Fix Command Arguments for Next_Wait_Union
4123 static const char* apzNext_Wait_UnionPatch[] = {
4128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4130 * Description of Nodeent_Syntax fix
4132 tSCC zNodeent_SyntaxName[] =
4136 * File name selection pattern
4138 tSCC zNodeent_SyntaxList[] =
4139 "|netdnet/dnetdb.h|";
4141 * Machine/OS name selection pattern
4143 #define apzNodeent_SyntaxMachs (const char**)NULL
4146 * content selection pattern - do fix if pattern found
4148 tSCC zNodeent_SyntaxSelect0[] =
4149 "char[ \t]*\\*na_addr[ \t]*$";
4151 #define NODEENT_SYNTAX_TEST_CT 1
4152 static tTestDesc aNodeent_SyntaxTests[] = {
4153 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4156 * Fix Command Arguments for Nodeent_Syntax
4158 static const char* apzNodeent_SyntaxPatch[] = {
4163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4165 * Description of Obstack_Lvalue_Cast fix
4167 tSCC zObstack_Lvalue_CastName[] =
4168 "obstack_lvalue_cast";
4171 * File name selection pattern
4173 tSCC zObstack_Lvalue_CastList[] =
4176 * Machine/OS name selection pattern
4178 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4181 * content selection pattern - do fix if pattern found
4183 tSCC zObstack_Lvalue_CastSelect0[] =
4184 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4186 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4187 static tTestDesc aObstack_Lvalue_CastTests[] = {
4188 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4191 * Fix Command Arguments for Obstack_Lvalue_Cast
4193 static const char* apzObstack_Lvalue_CastPatch[] = {
4195 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4200 * Description of Osf_Namespace_A fix
4202 tSCC zOsf_Namespace_AName[] =
4206 * File name selection pattern
4208 tSCC zOsf_Namespace_AList[] =
4209 "|reg_types.h|sys/lc_core.h|";
4211 * Machine/OS name selection pattern
4213 #define apzOsf_Namespace_AMachs (const char**)NULL
4216 * perform the 'test' shell command - do fix on success
4218 tSCC zOsf_Namespace_ATest0[] =
4220 tSCC zOsf_Namespace_ATest1[] =
4221 " -r sys/lc_core.h";
4222 tSCC zOsf_Namespace_ATest2[] =
4223 " -n \"`grep '} regex_t;' reg_types.h`\"";
4224 tSCC zOsf_Namespace_ATest3[] =
4225 " -z \"`grep __regex_t regex.h`\"";
4227 #define OSF_NAMESPACE_A_TEST_CT 4
4228 static tTestDesc aOsf_Namespace_ATests[] = {
4229 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4230 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4231 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4232 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4235 * Fix Command Arguments for Osf_Namespace_A
4237 static const char* apzOsf_Namespace_APatch[] = {
4240 "reg(ex|off|match)_t",
4243 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4245 * Description of Osf_Namespace_C fix
4247 tSCC zOsf_Namespace_CName[] =
4251 * File name selection pattern
4253 tSCC zOsf_Namespace_CList[] =
4256 * Machine/OS name selection pattern
4258 #define apzOsf_Namespace_CMachs (const char**)NULL
4261 * content selection pattern - do fix if pattern found
4263 tSCC zOsf_Namespace_CSelect0[] =
4264 "#include <reg_types.h>.*";
4267 * perform the 'test' shell command - do fix on success
4269 tSCC zOsf_Namespace_CTest0[] =
4271 tSCC zOsf_Namespace_CTest1[] =
4272 " -r sys/lc_core.h";
4273 tSCC zOsf_Namespace_CTest2[] =
4274 " -n \"`grep '} regex_t;' reg_types.h`\"";
4275 tSCC zOsf_Namespace_CTest3[] =
4276 " -z \"`grep __regex_t regex.h`\"";
4278 #define OSF_NAMESPACE_C_TEST_CT 5
4279 static tTestDesc aOsf_Namespace_CTests[] = {
4280 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4281 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4282 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4283 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4284 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4287 * Fix Command Arguments for Osf_Namespace_C
4289 static const char* apzOsf_Namespace_CPatch[] = {
4292 typedef __regex_t\tregex_t;\n\
4293 typedef __regoff_t\tregoff_t;\n\
4294 typedef __regmatch_t\tregmatch_t;",
4297 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4299 * Description of Pthread_Page_Size fix
4301 tSCC zPthread_Page_SizeName[] =
4302 "pthread_page_size";
4305 * File name selection pattern
4307 tSCC zPthread_Page_SizeList[] =
4310 * Machine/OS name selection pattern
4312 #define apzPthread_Page_SizeMachs (const char**)NULL
4315 * content selection pattern - do fix if pattern found
4317 tSCC zPthread_Page_SizeSelect0[] =
4320 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4321 static tTestDesc aPthread_Page_SizeTests[] = {
4322 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4325 * Fix Command Arguments for Pthread_Page_Size
4327 static const char* apzPthread_Page_SizePatch[] = {
4332 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4334 * Description of Pthread_Incomplete_Struct_Argument fix
4336 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
4337 "pthread_incomplete_struct_argument";
4340 * File name selection pattern
4342 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
4345 * Machine/OS name selection pattern
4347 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
4350 * content selection pattern - do fix if pattern found
4352 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
4353 "struct __jmp_buf_tag";
4355 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
4356 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
4357 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
4360 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
4362 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
4365 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
4368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4370 * Description of Read_Ret_Type fix
4372 tSCC zRead_Ret_TypeName[] =
4376 * File name selection pattern
4378 tSCC zRead_Ret_TypeList[] =
4381 * Machine/OS name selection pattern
4383 #define apzRead_Ret_TypeMachs (const char**)NULL
4386 * content selection pattern - do fix if pattern found
4388 tSCC zRead_Ret_TypeSelect0[] =
4389 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4391 #define READ_RET_TYPE_TEST_CT 1
4392 static tTestDesc aRead_Ret_TypeTests[] = {
4393 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4396 * Fix Command Arguments for Read_Ret_Type
4398 static const char* apzRead_Ret_TypePatch[] = {
4400 "extern unsigned int fread(), fwrite();\n\
4402 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4407 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4409 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4410 "rpc_xdr_lvalue_cast_a";
4413 * File name selection pattern
4415 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4418 * Machine/OS name selection pattern
4420 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4423 * content selection pattern - do fix if pattern found
4425 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4426 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4429 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
4430 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4431 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4434 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4436 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4438 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4441 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4443 * Description of Rpc_Xdr_Lvalue_Cast_B fix
4445 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4446 "rpc_xdr_lvalue_cast_b";
4449 * File name selection pattern
4451 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4454 * Machine/OS name selection pattern
4456 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4459 * content selection pattern - do fix if pattern found
4461 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4462 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4465 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
4466 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4467 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4470 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4472 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4474 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4479 * Description of Rs6000_Double fix
4481 tSCC zRs6000_DoubleName[] =
4485 * File name selection pattern
4487 tSCC zRs6000_DoubleList[] =
4490 * Machine/OS name selection pattern
4492 #define apzRs6000_DoubleMachs (const char**)NULL
4495 * content selection pattern - do fix if pattern found
4497 tSCC zRs6000_DoubleSelect0[] =
4498 "[^a-zA-Z_]class\\(";
4500 #define RS6000_DOUBLE_TEST_CT 1
4501 static tTestDesc aRs6000_DoubleTests[] = {
4502 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4505 * Fix Command Arguments for Rs6000_Double
4507 static const char* apzRs6000_DoublePatch[] = {
4509 "#ifndef __cplusplus\n\
4512 "^.*[^a-zA-Z_]class\\(.*",
4515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4517 * Description of Rs6000_Fchmod fix
4519 tSCC zRs6000_FchmodName[] =
4523 * File name selection pattern
4525 tSCC zRs6000_FchmodList[] =
4528 * Machine/OS name selection pattern
4530 #define apzRs6000_FchmodMachs (const char**)NULL
4533 * content selection pattern - do fix if pattern found
4535 tSCC zRs6000_FchmodSelect0[] =
4536 "fchmod\\(char \\*";
4538 #define RS6000_FCHMOD_TEST_CT 1
4539 static tTestDesc aRs6000_FchmodTests[] = {
4540 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4543 * Fix Command Arguments for Rs6000_Fchmod
4545 static const char* apzRs6000_FchmodPatch[] = {
4550 /* * * * * * * * * * * * * * * * * * * * * * * * * *