You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9602 lines
256 KiB
Plaintext
9602 lines
256 KiB
Plaintext
/* -*- buffer-read-only: t -*- vi: set ro:
|
|
*
|
|
* DO NOT EDIT THIS FILE (fixincl.x)
|
|
*
|
|
* It has been AutoGen-ed Wednesday April 7, 2010 at 05:11:50 PM MEST
|
|
* From the definitions inclhack.def
|
|
* and the template file fixincl
|
|
*/
|
|
/* DO NOT SVN-MERGE THIS FILE, EITHER Wed Apr 7 17:11:50 MEST 2010
|
|
*
|
|
* You must regenerate it. Use the ./genfixes script.
|
|
*
|
|
*
|
|
* This is part of the fixincl program used to install modified versions of
|
|
* certain ANSI-incompatible system header files which are fixed to work
|
|
* correctly with ANSI C and placed in a directory that GNU C will search.
|
|
*
|
|
* This file contains 205 fixup descriptions.
|
|
*
|
|
* See README for more information.
|
|
*
|
|
* inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
|
* 2006, 2007, 2008
|
|
* The Free Software Foundation, Inc.
|
|
*
|
|
* inclhack is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* inclhack is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
* See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#ifndef SED_PROGRAM
|
|
#define SED_PROGRAM "/usr/bin/sed"
|
|
#endif
|
|
static char const sed_cmd_z[] = SED_PROGRAM;
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Aix_Stdio fix
|
|
*/
|
|
tSCC zAab_Aix_StdioName[] =
|
|
"AAB_aix_stdio";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Aix_StdioList[] =
|
|
"stdio.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAab_Aix_StdioMachs[] = {
|
|
"*-*-aix*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAab_Aix_StdioSelect0[] =
|
|
"define fopen fopen64";
|
|
|
|
#define AAB_AIX_STDIO_TEST_CT 1
|
|
static tTestDesc aAab_Aix_StdioTests[] = {
|
|
{ TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Aix_Stdio
|
|
*/
|
|
static const char* apzAab_Aix_StdioPatch[] = {
|
|
"wrap",
|
|
"",
|
|
"\n\
|
|
#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
|
|
#define __need__aix_stdio_h_fix\n\
|
|
#ifdef __need__aix_stdio_h_fix\n\
|
|
#undef fseeko\n\
|
|
#undef ftello\n\
|
|
#undef fgetpos\n\
|
|
#undef fsetpos\n\
|
|
#undef fopen\n\
|
|
#undef freopen\n\
|
|
/* Alias the symbols using asm */\n\
|
|
extern \"C\" {\n\
|
|
extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
|
|
extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
|
|
extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
|
|
extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
|
|
extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
|
|
extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
|
|
}\n\
|
|
#endif\n\
|
|
#endif\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Darwin7_9_Long_Double_Funcs fix
|
|
*/
|
|
tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
|
|
"AAB_darwin7_9_long_double_funcs";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
|
|
"architecture/ppc/math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
|
|
"*-*-darwin7.9*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
|
|
"powl";
|
|
|
|
#define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
|
|
static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
|
|
{ TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
|
|
*/
|
|
static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
|
|
"/* This file prototypes the long double functions available on Mac OS\n\
|
|
10.3.9. */\n\
|
|
#ifndef __MATH__\n\
|
|
# undef __APPLE_CC__\n\
|
|
# define __APPLE_CC__ 1345\n\
|
|
# include_next <architecture/ppc/math.h>\n\
|
|
# undef __APPLE_CC__\n\
|
|
# define __APPLE_CC__ 1\n\
|
|
# ifndef __LIBMLDBL_COMPAT\n\
|
|
# ifdef __LONG_DOUBLE_128__\n\
|
|
# define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
|
|
# else\n\
|
|
# define __LIBMLDBL_COMPAT(sym)\n\
|
|
# endif /* __LONG_DOUBLE_128__ */\n\
|
|
# endif /* __LIBMLDBL_COMPAT */\n\
|
|
# ifdef __cplusplus\n\
|
|
extern \"C\" {\n\
|
|
# endif\n\
|
|
extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
|
|
extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
|
|
extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
|
|
extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
|
|
extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
|
|
extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
|
|
extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
|
|
extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
|
|
extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
|
|
extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
|
|
extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
|
|
extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
|
|
extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
|
|
extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
|
|
extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
|
|
extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
|
|
extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
|
|
extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
|
|
extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
|
|
extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
|
|
extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
|
|
extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
|
|
extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
|
|
extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
|
|
extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
|
|
extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
|
|
extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
|
|
extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
|
|
extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
|
|
extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
|
|
extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
|
|
extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
|
|
extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
|
|
extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
|
|
extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
|
|
extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
|
|
extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
|
|
extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
|
|
extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
|
|
extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
|
|
extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
|
|
extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
|
|
extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
|
|
extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
|
|
extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
|
|
extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
|
|
extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
|
|
extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
|
|
extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
|
|
extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
|
|
extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
|
|
extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
|
|
extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
|
|
extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
|
|
extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
|
|
extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
|
|
extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
|
|
# ifdef __cplusplus\n\
|
|
}\n\
|
|
# endif\n\
|
|
#endif /* __MATH__ */",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
|
|
*/
|
|
tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
|
|
"AAB_darwin7_9_long_double_funcs_2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
|
|
"math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
|
|
"*-*-darwin7.9*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
|
|
"#include[ \\t]+\\\"";
|
|
|
|
#define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
|
|
static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
|
|
{ TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
|
|
*/
|
|
static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
|
|
"format",
|
|
"%1<%2.h>",
|
|
"([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
|
|
*/
|
|
tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
|
|
"AAB_fd_zero_asm_posix_types_h";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
|
|
"asm/posix_types.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
|
|
"i[34567]86-*-linux*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
|
|
"} while";
|
|
tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
|
|
"x86_64";
|
|
tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
|
|
"posix_types_64";
|
|
|
|
#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
|
|
static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
|
|
{ TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
|
|
{ TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
|
|
{ TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
|
|
*/
|
|
static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
|
|
"/* This file fixes a bug in the __FD_ZERO macro\n\
|
|
for older versions of the Linux kernel. */\n\
|
|
#ifndef _POSIX_TYPES_H_WRAPPER\n\
|
|
#include <features.h>\n\
|
|
#include_next <asm/posix_types.h>\n\n\
|
|
#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
|
|
#undef __FD_ZERO\n\
|
|
#define __FD_ZERO(fdsetp) \\\n\
|
|
do { \\\n\
|
|
int __d0, __d1; \\\n\
|
|
__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
|
|
: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
|
|
: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
|
|
\"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
|
|
} while (0)\n\
|
|
#endif\n\n\
|
|
#define _POSIX_TYPES_H_WRAPPER\n\
|
|
#endif /* _POSIX_TYPES_H_WRAPPER */",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Fd_Zero_Gnu_Types_H fix
|
|
*/
|
|
tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
|
|
"AAB_fd_zero_gnu_types_h";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
|
|
"gnu/types.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
|
|
"i[34567]86-*-linux*",
|
|
(const char*)NULL };
|
|
#define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
|
|
#define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
|
|
*/
|
|
static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
|
|
"/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
|
|
#ifndef _TYPES_H_WRAPPER\n\
|
|
#include <features.h>\n\
|
|
#include_next <gnu/types.h>\n\n\
|
|
#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
|
|
#undef __FD_ZERO\n\
|
|
# define __FD_ZERO(fdsetp) \\\n\
|
|
do { \\\n\
|
|
int __d0, __d1; \\\n\
|
|
__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
|
|
: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
|
|
: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
|
|
\"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
|
|
} while (0)\n\
|
|
#endif\n\n\
|
|
#define _TYPES_H_WRAPPER\n\
|
|
#endif /* _TYPES_H_WRAPPER */",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Fd_Zero_Selectbits_H fix
|
|
*/
|
|
tSCC zAab_Fd_Zero_Selectbits_HName[] =
|
|
"AAB_fd_zero_selectbits_h";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Fd_Zero_Selectbits_HList[] =
|
|
"selectbits.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
|
|
"i[34567]86-*-linux*",
|
|
(const char*)NULL };
|
|
#define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
|
|
#define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
|
|
*/
|
|
static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
|
|
"/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
|
|
#ifndef _SELECTBITS_H_WRAPPER\n\
|
|
#include <features.h>\n\
|
|
#include_next <selectbits.h>\n\n\
|
|
#if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
|
|
&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
|
|
&& __GLIBC_MINOR__ == 0\n\
|
|
#undef __FD_ZERO\n\
|
|
#define __FD_ZERO(fdsetp) \\\\\n\
|
|
do { \\\\\n\
|
|
int __d0, __d1; \\\\\n\
|
|
__asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
|
|
: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
|
|
: \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
|
|
/ sizeof (__fd_mask)), \\\\\n\
|
|
\"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
|
|
: \"memory\"); \\\\\n\
|
|
} while (0)\n\
|
|
#endif\n\n\
|
|
#define _SELECTBITS_H_WRAPPER\n\
|
|
#endif /* _SELECTBITS_H_WRAPPER */",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Solaris_Sys_Varargs_H fix
|
|
*/
|
|
tSCC zAab_Solaris_Sys_Varargs_HName[] =
|
|
"AAB_solaris_sys_varargs_h";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Solaris_Sys_Varargs_HList[] =
|
|
"sys/varargs.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
|
|
"*-*-solaris*",
|
|
(const char*)NULL };
|
|
#define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
|
|
#define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
|
|
*/
|
|
static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
|
|
"#ifdef __STDC__\n\
|
|
#include <stdarg.h>\n\
|
|
#else\n\
|
|
#include <varargs.h>\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aab_Sun_Memcpy fix
|
|
*/
|
|
tSCC zAab_Sun_MemcpyName[] =
|
|
"AAB_sun_memcpy";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAab_Sun_MemcpyList[] =
|
|
"memory.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAab_Sun_MemcpyMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAab_Sun_MemcpySelect0[] =
|
|
"/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
|
|
|
|
#define AAB_SUN_MEMCPY_TEST_CT 1
|
|
static tTestDesc aAab_Sun_MemcpyTests[] = {
|
|
{ TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aab_Sun_Memcpy
|
|
*/
|
|
static const char* apzAab_Sun_MemcpyPatch[] = {
|
|
"/* This file was generated by fixincludes */\n\
|
|
#ifndef __memory_h__\n\
|
|
#define __memory_h__\n\n\
|
|
#ifdef __STDC__\n\
|
|
extern void *memccpy();\n\
|
|
extern void *memchr();\n\
|
|
extern void *memcpy();\n\
|
|
extern void *memset();\n\
|
|
#else\n\
|
|
extern char *memccpy();\n\
|
|
extern char *memchr();\n\
|
|
extern char *memcpy();\n\
|
|
extern char *memset();\n\
|
|
#endif /* __STDC__ */\n\n\
|
|
extern int memcmp();\n\n\
|
|
#endif /* __memory_h__ */",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Complex fix
|
|
*/
|
|
tSCC zAix_ComplexName[] =
|
|
"aix_complex";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_ComplexList[] =
|
|
"complex.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAix_ComplexMachs[] = {
|
|
"*-*-aix*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_ComplexSelect0[] =
|
|
"#define[ \t]_Complex_I[ \t]__I";
|
|
|
|
#define AIX_COMPLEX_TEST_CT 1
|
|
static tTestDesc aAix_ComplexTests[] = {
|
|
{ TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Complex
|
|
*/
|
|
static const char* apzAix_ComplexPatch[] = {
|
|
"format",
|
|
"#define _Complex_I (__extension__ 1.0iF)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Pthread fix
|
|
*/
|
|
tSCC zAix_PthreadName[] =
|
|
"aix_pthread";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_PthreadList[] =
|
|
"pthread.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAix_PthreadMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_PthreadSelect0[] =
|
|
"(#define [A-Za-z_0-9]+)(\\\\\n\
|
|
[^A-Za-z_0-9 \t\n\
|
|
(])";
|
|
|
|
#define AIX_PTHREAD_TEST_CT 1
|
|
static tTestDesc aAix_PthreadTests[] = {
|
|
{ TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Pthread
|
|
*/
|
|
static const char* apzAix_PthreadPatch[] = {
|
|
"format",
|
|
"%1 %2",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Stdint_1 fix
|
|
*/
|
|
tSCC zAix_Stdint_1Name[] =
|
|
"aix_stdint_1";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_Stdint_1List[] =
|
|
"stdint-aix.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAix_Stdint_1Machs[] = {
|
|
"*-*-aix*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_Stdint_1Select0[] =
|
|
"#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
|
|
#define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
|
|
|
|
#define AIX_STDINT_1_TEST_CT 1
|
|
static tTestDesc aAix_Stdint_1Tests[] = {
|
|
{ TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Stdint_1
|
|
*/
|
|
static const char* apzAix_Stdint_1Patch[] = {
|
|
"format",
|
|
"#define UINT8_MAX\t(255)\n\
|
|
#define UINT16_MAX\t(65535)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Stdint_2 fix
|
|
*/
|
|
tSCC zAix_Stdint_2Name[] =
|
|
"aix_stdint_2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_Stdint_2List[] =
|
|
"stdint-aix.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAix_Stdint_2Machs[] = {
|
|
"*-*-aix*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_Stdint_2Select0[] =
|
|
"#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
|
|
#define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
|
|
#define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
|
|
#else\n\
|
|
#define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
|
|
#define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
|
|
#define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
|
|
|
|
#define AIX_STDINT_2_TEST_CT 1
|
|
static tTestDesc aAix_Stdint_2Tests[] = {
|
|
{ TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Stdint_2
|
|
*/
|
|
static const char* apzAix_Stdint_2Patch[] = {
|
|
"format",
|
|
"#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
|
|
#define INTPTR_MAX\t9223372036854775807L\n\
|
|
#define UINTPTR_MAX\t18446744073709551615UL\n\
|
|
#else\n\
|
|
#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
|
|
#define INTPTR_MAX\t2147483647L\n\
|
|
#define UINTPTR_MAX\t4294967295UL",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Stdint_3 fix
|
|
*/
|
|
tSCC zAix_Stdint_3Name[] =
|
|
"aix_stdint_3";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_Stdint_3List[] =
|
|
"stdint-aix.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAix_Stdint_3Machs[] = {
|
|
"*-*-aix*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_Stdint_3Select0[] =
|
|
"#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
|
|
#define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
|
|
#else\n\
|
|
#define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
|
|
#define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
|
|
|
|
#define AIX_STDINT_3_TEST_CT 1
|
|
static tTestDesc aAix_Stdint_3Tests[] = {
|
|
{ TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Stdint_3
|
|
*/
|
|
static const char* apzAix_Stdint_3Patch[] = {
|
|
"format",
|
|
"#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
|
|
#define PTRDIFF_MAX\t9223372036854775807L\n\
|
|
#else\n\
|
|
#define PTRDIFF_MIN\t(-2147483647L - 1)\n\
|
|
#define PTRDIFF_MAX\t2147483647L",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Stdint_4 fix
|
|
*/
|
|
tSCC zAix_Stdint_4Name[] =
|
|
"aix_stdint_4";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_Stdint_4List[] =
|
|
"stdint-aix.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAix_Stdint_4Machs[] = {
|
|
"*-*-aix*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_Stdint_4Select0[] =
|
|
"#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
|
|
#else\n\
|
|
#define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
|
|
|
|
#define AIX_STDINT_4_TEST_CT 1
|
|
static tTestDesc aAix_Stdint_4Tests[] = {
|
|
{ TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Stdint_4
|
|
*/
|
|
static const char* apzAix_Stdint_4Patch[] = {
|
|
"format",
|
|
"#define SIZE_MAX\t18446744073709551615UL\n\
|
|
#else\n\
|
|
#define SIZE_MAX\t4294967295UL",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Stdint_5 fix
|
|
*/
|
|
tSCC zAix_Stdint_5Name[] =
|
|
"aix_stdint_5";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_Stdint_5List[] =
|
|
"stdint-aix.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAix_Stdint_5Machs[] = {
|
|
"*-*-aix*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_Stdint_5Select0[] =
|
|
"#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
|
|
#define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
|
|
|
|
#define AIX_STDINT_5_TEST_CT 1
|
|
static tTestDesc aAix_Stdint_5Tests[] = {
|
|
{ TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Stdint_5
|
|
*/
|
|
static const char* apzAix_Stdint_5Patch[] = {
|
|
"format",
|
|
"#define UINT8_C(c)\tc\n\
|
|
#define UINT16_C(c)\tc",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Sysmachine fix
|
|
*/
|
|
tSCC zAix_SysmachineName[] =
|
|
"aix_sysmachine";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_SysmachineList[] =
|
|
"sys/machine.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAix_SysmachineMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_SysmachineSelect0[] =
|
|
"\\\\ +\n";
|
|
|
|
#define AIX_SYSMACHINE_TEST_CT 1
|
|
static tTestDesc aAix_SysmachineTests[] = {
|
|
{ TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Sysmachine
|
|
*/
|
|
static const char* apzAix_SysmachinePatch[] = {
|
|
"format",
|
|
"\\\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Syswait_2 fix
|
|
*/
|
|
tSCC zAix_Syswait_2Name[] =
|
|
"aix_syswait_2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_Syswait_2List[] =
|
|
"sys/wait.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAix_Syswait_2Machs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_Syswait_2Select0[] =
|
|
"\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
|
|
|
|
#define AIX_SYSWAIT_2_TEST_CT 1
|
|
static tTestDesc aAix_Syswait_2Tests[] = {
|
|
{ TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Syswait_2
|
|
*/
|
|
static const char* apzAix_Syswait_2Patch[] = {
|
|
"format",
|
|
"? (int)%1",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Aix_Volatile fix
|
|
*/
|
|
tSCC zAix_VolatileName[] =
|
|
"aix_volatile";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAix_VolatileList[] =
|
|
"sys/signal.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAix_VolatileMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAix_VolatileSelect0[] =
|
|
"typedef volatile int sig_atomic_t";
|
|
|
|
#define AIX_VOLATILE_TEST_CT 1
|
|
static tTestDesc aAix_VolatileTests[] = {
|
|
{ TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Aix_Volatile
|
|
*/
|
|
static const char* apzAix_VolatilePatch[] = {
|
|
"format",
|
|
"typedef int sig_atomic_t",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha___Assert fix
|
|
*/
|
|
tSCC zAlpha___AssertName[] =
|
|
"alpha___assert";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha___AssertList[] =
|
|
"assert.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAlpha___AssertMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha___AssertSelect0[] =
|
|
"__assert\\(char \\*, char \\*, int\\)";
|
|
|
|
#define ALPHA___ASSERT_TEST_CT 1
|
|
static tTestDesc aAlpha___AssertTests[] = {
|
|
{ TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha___Assert
|
|
*/
|
|
static const char* apzAlpha___AssertPatch[] = {
|
|
"format",
|
|
"__assert(const char *, const char *, int)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha___Extern_Prefix fix
|
|
*/
|
|
tSCC zAlpha___Extern_PrefixName[] =
|
|
"alpha___extern_prefix";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
#define zAlpha___Extern_PrefixList (char*)NULL
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAlpha___Extern_PrefixMachs[] = {
|
|
"alpha*-dec-osf*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha___Extern_PrefixSelect0[] =
|
|
"(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
|
|
(#[ \t]*pragma[ \t]*extern_prefix.*)";
|
|
|
|
#define ALPHA___EXTERN_PREFIX_TEST_CT 1
|
|
static tTestDesc aAlpha___Extern_PrefixTests[] = {
|
|
{ TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha___Extern_Prefix
|
|
*/
|
|
static const char* apzAlpha___Extern_PrefixPatch[] = {
|
|
"format",
|
|
"%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
|
|
%3",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha___Extern_Prefix_Standards fix
|
|
*/
|
|
tSCC zAlpha___Extern_Prefix_StandardsName[] =
|
|
"alpha___extern_prefix_standards";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha___Extern_Prefix_StandardsList[] =
|
|
"standards.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
|
|
"alpha*-dec-osf*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
|
|
".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
|
|
|
|
#define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
|
|
static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
|
|
{ TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha___Extern_Prefix_Standards
|
|
*/
|
|
static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
|
|
"format",
|
|
"%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha___Extern_Prefix_Sys_Stat fix
|
|
*/
|
|
tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
|
|
"alpha___extern_prefix_sys_stat";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
|
|
"sys/stat.h\0sys/mount.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
|
|
"alpha*-dec-osf5*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
|
|
"#[ \t]*if[ \t]*defined\\(__DECC\\)";
|
|
|
|
#define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
|
|
static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
|
|
{ TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
|
|
*/
|
|
static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
|
|
"format",
|
|
"%0 || defined(__PRAGMA_EXTERN_PREFIX)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Assert fix
|
|
*/
|
|
tSCC zAlpha_AssertName[] =
|
|
"alpha_assert";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_AssertList[] =
|
|
"assert.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAlpha_AssertMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_AssertSelect0[] =
|
|
"(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
|
|
|
|
#define ALPHA_ASSERT_TEST_CT 1
|
|
static tTestDesc aAlpha_AssertTests[] = {
|
|
{ TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Assert
|
|
*/
|
|
static const char* apzAlpha_AssertPatch[] = {
|
|
"format",
|
|
"%1(EX)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Bad_Lval fix
|
|
*/
|
|
tSCC zAlpha_Bad_LvalName[] =
|
|
"alpha_bad_lval";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
#define zAlpha_Bad_LvalList (char*)NULL
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAlpha_Bad_LvalMachs[] = {
|
|
"alpha*-dec-osf*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_Bad_LvalSelect0[] =
|
|
"^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
|
|
|
|
#define ALPHA_BAD_LVAL_TEST_CT 1
|
|
static tTestDesc aAlpha_Bad_LvalTests[] = {
|
|
{ TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Bad_Lval
|
|
*/
|
|
static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
|
|
"-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Getopt fix
|
|
*/
|
|
tSCC zAlpha_GetoptName[] =
|
|
"alpha_getopt";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_GetoptList[] =
|
|
"stdio.h\0stdlib.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAlpha_GetoptMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_GetoptSelect0[] =
|
|
"getopt\\(int, char \\*\\[\\], *char \\*\\)";
|
|
|
|
#define ALPHA_GETOPT_TEST_CT 1
|
|
static tTestDesc aAlpha_GetoptTests[] = {
|
|
{ TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Getopt
|
|
*/
|
|
static const char* apzAlpha_GetoptPatch[] = {
|
|
"format",
|
|
"getopt(int, char *const[], const char *)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_If_Semicolon fix
|
|
*/
|
|
tSCC zAlpha_If_SemicolonName[] =
|
|
"alpha_if_semicolon";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_If_SemicolonList[] =
|
|
"net/if.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAlpha_If_SemicolonMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_If_SemicolonSelect0[] =
|
|
"struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
|
|
|
|
#define ALPHA_IF_SEMICOLON_TEST_CT 1
|
|
static tTestDesc aAlpha_If_SemicolonTests[] = {
|
|
{ TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_If_Semicolon
|
|
*/
|
|
static const char* apzAlpha_If_SemicolonPatch[] = {
|
|
"format",
|
|
"struct sockaddr vmif_paddr;\t/*",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Parens fix
|
|
*/
|
|
tSCC zAlpha_ParensName[] =
|
|
"alpha_parens";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_ParensList[] =
|
|
"sym.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAlpha_ParensMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_ParensSelect0[] =
|
|
"#ifndef\\(__mips64\\)";
|
|
|
|
#define ALPHA_PARENS_TEST_CT 1
|
|
static tTestDesc aAlpha_ParensTests[] = {
|
|
{ TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Parens
|
|
*/
|
|
static const char* apzAlpha_ParensPatch[] = {
|
|
"format",
|
|
"#ifndef __mips64",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Pthread fix
|
|
*/
|
|
tSCC zAlpha_PthreadName[] =
|
|
"alpha_pthread";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_PthreadList[] =
|
|
"pthread.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAlpha_PthreadMachs[] = {
|
|
"alpha*-dec-osf*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_PthreadSelect0[] =
|
|
"((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
|
|
(#[ \t]*define _PTHREAD_USE_PTDNAM_)";
|
|
|
|
#define ALPHA_PTHREAD_TEST_CT 1
|
|
static tTestDesc aAlpha_PthreadTests[] = {
|
|
{ TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Pthread
|
|
*/
|
|
static const char* apzAlpha_PthreadPatch[] = {
|
|
"format",
|
|
"%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
|
|
%5",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Pthread_Gcc fix
|
|
*/
|
|
tSCC zAlpha_Pthread_GccName[] =
|
|
"alpha_pthread_gcc";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_Pthread_GccList[] =
|
|
"pthread.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAlpha_Pthread_GccMachs[] = {
|
|
"alpha*-dec-osf*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_Pthread_GccSelect0[] =
|
|
"#else\n\
|
|
# error <pthread.h>: unrecognized compiler.";
|
|
|
|
#define ALPHA_PTHREAD_GCC_TEST_CT 1
|
|
static tTestDesc aAlpha_Pthread_GccTests[] = {
|
|
{ TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Pthread_Gcc
|
|
*/
|
|
static const char* apzAlpha_Pthread_GccPatch[] = {
|
|
"format",
|
|
"#elif defined (__GNUC__)\n\
|
|
# define _PTHREAD_ENV_GCC\n\
|
|
%0",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Pthread_Init fix
|
|
*/
|
|
tSCC zAlpha_Pthread_InitName[] =
|
|
"alpha_pthread_init";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_Pthread_InitList[] =
|
|
"pthread.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzAlpha_Pthread_InitMachs[] = {
|
|
"alpha*-dec-osf*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_Pthread_InitSelect0[] =
|
|
" \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
|
|
|
|
#define ALPHA_PTHREAD_INIT_TEST_CT 1
|
|
static tTestDesc aAlpha_Pthread_InitTests[] = {
|
|
{ TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Pthread_Init
|
|
*/
|
|
static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
|
|
"-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
|
|
s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
|
|
s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
|
|
s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
|
|
s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
|
|
s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Alpha_Sbrk fix
|
|
*/
|
|
tSCC zAlpha_SbrkName[] =
|
|
"alpha_sbrk";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAlpha_SbrkList[] =
|
|
"unistd.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAlpha_SbrkMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAlpha_SbrkSelect0[] =
|
|
"char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
|
|
|
|
#define ALPHA_SBRK_TEST_CT 1
|
|
static tTestDesc aAlpha_SbrkTests[] = {
|
|
{ TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Alpha_Sbrk
|
|
*/
|
|
static const char* apzAlpha_SbrkPatch[] = {
|
|
"format",
|
|
"void *sbrk(",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Avoid_Bool_Define fix
|
|
*/
|
|
tSCC zAvoid_Bool_DefineName[] =
|
|
"avoid_bool_define";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAvoid_Bool_DefineList[] =
|
|
"curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAvoid_Bool_DefineMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAvoid_Bool_DefineSelect0[] =
|
|
"#[ \t]*define[ \t]+bool[ \t]";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zAvoid_Bool_DefineBypass0[] =
|
|
"__cplusplus";
|
|
|
|
#define AVOID_BOOL_DEFINE_TEST_CT 2
|
|
static tTestDesc aAvoid_Bool_DefineTests[] = {
|
|
{ TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Avoid_Bool_Define
|
|
*/
|
|
static const char* apzAvoid_Bool_DefinePatch[] = {
|
|
"format",
|
|
"#ifndef __cplusplus\n\
|
|
%0\n\
|
|
#endif",
|
|
"^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Avoid_Bool_Type fix
|
|
*/
|
|
tSCC zAvoid_Bool_TypeName[] =
|
|
"avoid_bool_type";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zAvoid_Bool_TypeList[] =
|
|
"curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAvoid_Bool_TypeMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAvoid_Bool_TypeSelect0[] =
|
|
"^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zAvoid_Bool_TypeBypass0[] =
|
|
"__cplusplus";
|
|
|
|
#define AVOID_BOOL_TYPE_TEST_CT 2
|
|
static tTestDesc aAvoid_Bool_TypeTests[] = {
|
|
{ TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Avoid_Bool_Type
|
|
*/
|
|
static const char* apzAvoid_Bool_TypePatch[] = {
|
|
"format",
|
|
"#ifndef __cplusplus\n\
|
|
%0\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Avoid_Wchar_T_Type fix
|
|
*/
|
|
tSCC zAvoid_Wchar_T_TypeName[] =
|
|
"avoid_wchar_t_type";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
#define zAvoid_Wchar_T_TypeList (char*)NULL
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zAvoid_Wchar_T_TypeSelect0[] =
|
|
"^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zAvoid_Wchar_T_TypeBypass0[] =
|
|
"__cplusplus";
|
|
tSCC zAvoid_Wchar_T_TypeBypass1[] =
|
|
"_LINUX_NLS_H";
|
|
tSCC zAvoid_Wchar_T_TypeBypass2[] =
|
|
"XFree86: xc/lib/X11/Xlib\\.h";
|
|
|
|
#define AVOID_WCHAR_T_TYPE_TEST_CT 4
|
|
static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
|
|
{ TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
|
|
{ TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
|
|
{ TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
|
|
{ TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Avoid_Wchar_T_Type
|
|
*/
|
|
static const char* apzAvoid_Wchar_T_TypePatch[] = {
|
|
"format",
|
|
"#ifndef __cplusplus\n\
|
|
%0\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Bad_Struct_Term fix
|
|
*/
|
|
tSCC zBad_Struct_TermName[] =
|
|
"bad_struct_term";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zBad_Struct_TermList[] =
|
|
"curses.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzBad_Struct_TermMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zBad_Struct_TermSelect0[] =
|
|
"^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
|
|
|
|
#define BAD_STRUCT_TERM_TEST_CT 1
|
|
static tTestDesc aBad_Struct_TermTests[] = {
|
|
{ TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Bad_Struct_Term
|
|
*/
|
|
static const char* apzBad_Struct_TermPatch[] = {
|
|
"format",
|
|
"struct term;",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Badquote fix
|
|
*/
|
|
tSCC zBadquoteName[] =
|
|
"badquote";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zBadquoteList[] =
|
|
"sundev/vuid_event.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzBadquoteMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zBadquoteSelect0[] =
|
|
"doesn't";
|
|
|
|
#define BADQUOTE_TEST_CT 1
|
|
static tTestDesc aBadquoteTests[] = {
|
|
{ TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Badquote
|
|
*/
|
|
static const char* apzBadquotePatch[] = {
|
|
"format",
|
|
"does not",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Broken_Assert_Stdio fix
|
|
*/
|
|
tSCC zBroken_Assert_StdioName[] =
|
|
"broken_assert_stdio";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zBroken_Assert_StdioList[] =
|
|
"assert.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzBroken_Assert_StdioMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zBroken_Assert_StdioSelect0[] =
|
|
"stderr";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zBroken_Assert_StdioBypass0[] =
|
|
"include.*stdio\\.h";
|
|
|
|
#define BROKEN_ASSERT_STDIO_TEST_CT 2
|
|
static tTestDesc aBroken_Assert_StdioTests[] = {
|
|
{ TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Broken_Assert_Stdio
|
|
*/
|
|
static const char* apzBroken_Assert_StdioPatch[] = {
|
|
"wrap",
|
|
"#include <stdio.h>\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Broken_Assert_Stdlib fix
|
|
*/
|
|
tSCC zBroken_Assert_StdlibName[] =
|
|
"broken_assert_stdlib";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zBroken_Assert_StdlibList[] =
|
|
"assert.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzBroken_Assert_StdlibMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zBroken_Assert_StdlibSelect0[] =
|
|
"exit *\\(|abort *\\(";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zBroken_Assert_StdlibBypass0[] =
|
|
"include.*stdlib\\.h";
|
|
|
|
#define BROKEN_ASSERT_STDLIB_TEST_CT 2
|
|
static tTestDesc aBroken_Assert_StdlibTests[] = {
|
|
{ TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Broken_Assert_Stdlib
|
|
*/
|
|
static const char* apzBroken_Assert_StdlibPatch[] = {
|
|
"wrap",
|
|
"#ifdef __cplusplus\n\
|
|
#include <stdlib.h>\n\
|
|
#endif\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Broken_Cabs fix
|
|
*/
|
|
tSCC zBroken_CabsName[] =
|
|
"broken_cabs";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zBroken_CabsList[] =
|
|
"math.h\0architecture/*/math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzBroken_CabsMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zBroken_CabsSelect0[] =
|
|
"^extern[ \t]+double[ \t]+cabs";
|
|
|
|
#define BROKEN_CABS_TEST_CT 1
|
|
static tTestDesc aBroken_CabsTests[] = {
|
|
{ TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Broken_Cabs
|
|
*/
|
|
static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
|
|
"-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
|
|
"-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Broken_Nan fix
|
|
*/
|
|
tSCC zBroken_NanName[] =
|
|
"broken_nan";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zBroken_NanList[] =
|
|
"architecture/ppc/math.h\0architecture/*/math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzBroken_NanMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zBroken_NanSelect0[] =
|
|
"#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zBroken_NanBypass0[] =
|
|
"powl";
|
|
|
|
#define BROKEN_NAN_TEST_CT 2
|
|
static tTestDesc aBroken_NanTests[] = {
|
|
{ TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Broken_Nan
|
|
*/
|
|
static const char* apzBroken_NanPatch[] = {
|
|
"format",
|
|
"#if 1",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Bsd_Stdio_Attrs_Conflict fix
|
|
*/
|
|
tSCC zBsd_Stdio_Attrs_ConflictName[] =
|
|
"bsd_stdio_attrs_conflict";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zBsd_Stdio_Attrs_ConflictList[] =
|
|
"stdio.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
|
|
"*-*-*bsd*",
|
|
"*-*-*darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
|
|
"^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
|
|
|
|
#define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
|
|
static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
|
|
{ TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
|
|
*/
|
|
static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
|
|
"format",
|
|
"#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
|
|
#define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
|
|
int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Ctrl_Quotes_Def fix
|
|
*/
|
|
tSCC zCtrl_Quotes_DefName[] =
|
|
"ctrl_quotes_def";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
#define zCtrl_Quotes_DefList (char*)NULL
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzCtrl_Quotes_DefMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zCtrl_Quotes_DefSelect0[] =
|
|
"define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
|
|
|
|
#define CTRL_QUOTES_DEF_TEST_CT 1
|
|
static tTestDesc aCtrl_Quotes_DefTests[] = {
|
|
{ TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Ctrl_Quotes_Def
|
|
*/
|
|
static const char* apzCtrl_Quotes_DefPatch[] = {
|
|
"char_macro_def",
|
|
"CTRL",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Ctrl_Quotes_Use fix
|
|
*/
|
|
tSCC zCtrl_Quotes_UseName[] =
|
|
"ctrl_quotes_use";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
#define zCtrl_Quotes_UseList (char*)NULL
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzCtrl_Quotes_UseMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zCtrl_Quotes_UseSelect0[] =
|
|
"define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
|
|
|
|
#define CTRL_QUOTES_USE_TEST_CT 1
|
|
static tTestDesc aCtrl_Quotes_UseTests[] = {
|
|
{ TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Ctrl_Quotes_Use
|
|
*/
|
|
static const char* apzCtrl_Quotes_UsePatch[] = {
|
|
"char_macro_use",
|
|
"CTRL",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Cxx_Unready fix
|
|
*/
|
|
tSCC zCxx_UnreadyName[] =
|
|
"cxx_unready";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zCxx_UnreadyList[] =
|
|
"sys/mman.h\0rpc/types.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzCxx_UnreadyMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zCxx_UnreadySelect0[] =
|
|
"[^#]+malloc.*;";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zCxx_UnreadyBypass0[] =
|
|
"\"C\"|__BEGIN_DECLS";
|
|
|
|
#define CXX_UNREADY_TEST_CT 2
|
|
static tTestDesc aCxx_UnreadyTests[] = {
|
|
{ TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Cxx_Unready
|
|
*/
|
|
static const char* apzCxx_UnreadyPatch[] = {
|
|
"wrap",
|
|
"#ifdef __cplusplus\n\
|
|
extern \"C\" {\n\
|
|
#endif\n",
|
|
"#ifdef __cplusplus\n\
|
|
}\n\
|
|
#endif\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Externc fix
|
|
*/
|
|
tSCC zDarwin_ExterncName[] =
|
|
"darwin_externc";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_ExterncList[] =
|
|
"mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_ExterncMachs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zDarwin_ExterncBypass0[] =
|
|
"extern \"C\"";
|
|
tSCC zDarwin_ExterncBypass1[] =
|
|
"__BEGIN_DECLS";
|
|
|
|
#define DARWIN_EXTERNC_TEST_CT 2
|
|
static tTestDesc aDarwin_ExterncTests[] = {
|
|
{ TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
|
|
{ TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Externc
|
|
*/
|
|
static const char* apzDarwin_ExterncPatch[] = {
|
|
"wrap",
|
|
"#ifdef __cplusplus\n\
|
|
extern \"C\" {\n\
|
|
#endif\n",
|
|
"#ifdef __cplusplus\n\
|
|
}\n\
|
|
#endif\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Gcc4_Breakage fix
|
|
*/
|
|
tSCC zDarwin_Gcc4_BreakageName[] =
|
|
"darwin_gcc4_breakage";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Gcc4_BreakageList[] =
|
|
"AvailabilityMacros.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Gcc4_BreakageSelect0[] =
|
|
"\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
|
|
|
|
#define DARWIN_GCC4_BREAKAGE_TEST_CT 1
|
|
static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
|
|
{ TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Gcc4_Breakage
|
|
*/
|
|
static const char* apzDarwin_Gcc4_BreakagePatch[] = {
|
|
"format",
|
|
"((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Private_Extern fix
|
|
*/
|
|
tSCC zDarwin_Private_ExternName[] =
|
|
"darwin_private_extern";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Private_ExternList[] =
|
|
"mach-o/dyld.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Private_ExternMachs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Private_ExternSelect0[] =
|
|
"__private_extern__ [a-z_]+ _dyld_";
|
|
|
|
#define DARWIN_PRIVATE_EXTERN_TEST_CT 1
|
|
static tTestDesc aDarwin_Private_ExternTests[] = {
|
|
{ TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Private_Extern
|
|
*/
|
|
static const char* apzDarwin_Private_ExternPatch[] = {
|
|
"format",
|
|
"extern",
|
|
"__private_extern__",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Stdint_1 fix
|
|
*/
|
|
tSCC zDarwin_Stdint_1Name[] =
|
|
"darwin_stdint_1";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Stdint_1List[] =
|
|
"stdint-darwin.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Stdint_1Machs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Stdint_1Select0[] =
|
|
"#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
|
|
#define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
|
|
|
|
#define DARWIN_STDINT_1_TEST_CT 1
|
|
static tTestDesc aDarwin_Stdint_1Tests[] = {
|
|
{ TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Stdint_1
|
|
*/
|
|
static const char* apzDarwin_Stdint_1Patch[] = {
|
|
"format",
|
|
"#define UINT8_C(v)\tv\n\
|
|
#define UINT16_C(v)\tv",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Stdint_2 fix
|
|
*/
|
|
tSCC zDarwin_Stdint_2Name[] =
|
|
"darwin_stdint_2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Stdint_2List[] =
|
|
"stdint-darwin.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Stdint_2Machs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Stdint_2Select0[] =
|
|
"#if __WORDSIZE == 64\n\
|
|
#define INTPTR_MIN[ \t]+INT64_MIN\n\
|
|
#define INTPTR_MAX[ \t]+INT64_MAX\n\
|
|
#else\n\
|
|
#define INTPTR_MIN[ \t]+INT32_MIN\n\
|
|
#define INTPTR_MAX[ \t]+INT32_MAX\n\
|
|
#endif";
|
|
|
|
#define DARWIN_STDINT_2_TEST_CT 1
|
|
static tTestDesc aDarwin_Stdint_2Tests[] = {
|
|
{ TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Stdint_2
|
|
*/
|
|
static const char* apzDarwin_Stdint_2Patch[] = {
|
|
"format",
|
|
"#if __WORDSIZE == 64\n\
|
|
#define INTPTR_MAX 9223372036854775807L\n\
|
|
#define INTPTR_MIN (-INTPTR_MAX-1)\n\
|
|
#else\n\
|
|
#define INTPTR_MAX 2147483647L\n\
|
|
#define INTPTR_MIN (-INTPTR_MAX-1)\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Stdint_3 fix
|
|
*/
|
|
tSCC zDarwin_Stdint_3Name[] =
|
|
"darwin_stdint_3";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Stdint_3List[] =
|
|
"stdint-darwin.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Stdint_3Machs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Stdint_3Select0[] =
|
|
"#if __WORDSIZE == 64\n\
|
|
#define UINTPTR_MAX[ \t]+UINT64_MAX\n\
|
|
#else\n\
|
|
#define UINTPTR_MAX[ \t]+UINT32_MAX\n\
|
|
#endif";
|
|
|
|
#define DARWIN_STDINT_3_TEST_CT 1
|
|
static tTestDesc aDarwin_Stdint_3Tests[] = {
|
|
{ TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Stdint_3
|
|
*/
|
|
static const char* apzDarwin_Stdint_3Patch[] = {
|
|
"format",
|
|
"#if __WORDSIZE == 64\n\
|
|
#define UINTPTR_MAX 18446744073709551615UL\n\
|
|
#else\n\
|
|
#define UINTPTR_MAX 4294967295UL\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Stdint_4 fix
|
|
*/
|
|
tSCC zDarwin_Stdint_4Name[] =
|
|
"darwin_stdint_4";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Stdint_4List[] =
|
|
"stdint-darwin.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Stdint_4Machs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Stdint_4Select0[] =
|
|
"#if __WORDSIZE == 64\n\
|
|
#define SIZE_MAX[ \t]+UINT64_MAX\n\
|
|
#else\n\
|
|
#define SIZE_MAX[ \t]+UINT32_MAX\n\
|
|
#endif";
|
|
|
|
#define DARWIN_STDINT_4_TEST_CT 1
|
|
static tTestDesc aDarwin_Stdint_4Tests[] = {
|
|
{ TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Stdint_4
|
|
*/
|
|
static const char* apzDarwin_Stdint_4Patch[] = {
|
|
"format",
|
|
"#if __WORDSIZE == 64\n\
|
|
#define SIZE_MAX 18446744073709551615UL\n\
|
|
#else\n\
|
|
#define SIZE_MAX 4294967295UL\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Stdint_5 fix
|
|
*/
|
|
tSCC zDarwin_Stdint_5Name[] =
|
|
"darwin_stdint_5";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Stdint_5List[] =
|
|
"stdint-darwin.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Stdint_5Machs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Stdint_5Select0[] =
|
|
"#define INTMAX_MIN[ \t]+INT64_MIN\n\
|
|
#define INTMAX_MAX[ \t]+INT64_MAX\n\n\
|
|
#define UINTMAX_MAX[ \t]+UINT64_MAX";
|
|
|
|
#define DARWIN_STDINT_5_TEST_CT 1
|
|
static tTestDesc aDarwin_Stdint_5Tests[] = {
|
|
{ TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Stdint_5
|
|
*/
|
|
static const char* apzDarwin_Stdint_5Patch[] = {
|
|
"format",
|
|
"#if __WORDSIZE == 64\n\
|
|
#define INTMAX_MIN (-9223372036854775807L - 1)\n\
|
|
#define INTMAX_MAX 9223372036854775807L\n\
|
|
#define UINTMAX_MAX 18446744073709551615UL\n\
|
|
#else\n\
|
|
#define INTMAX_MIN (-9223372036854775807LL - 1)\n\
|
|
#define INTMAX_MAX 9223372036854775807LL\n\
|
|
#define UINTMAX_MAX 18446744073709551615ULL\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Stdint_6 fix
|
|
*/
|
|
tSCC zDarwin_Stdint_6Name[] =
|
|
"darwin_stdint_6";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Stdint_6List[] =
|
|
"stdint-darwin.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Stdint_6Machs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Stdint_6Select0[] =
|
|
"#if __WORDSIZE == 64\n\
|
|
#define PTRDIFF_MIN[ \t]+INT64_MIN\n\
|
|
#define PTRDIFF_MAX[ \t]+INT64_MAX\n\
|
|
#else\n\
|
|
#define PTRDIFF_MIN[ \t]+INT32_MIN\n\
|
|
#define PTRDIFF_MAX[ \t]+INT32_MAX\n\
|
|
#endif";
|
|
|
|
#define DARWIN_STDINT_6_TEST_CT 1
|
|
static tTestDesc aDarwin_Stdint_6Tests[] = {
|
|
{ TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Stdint_6
|
|
*/
|
|
static const char* apzDarwin_Stdint_6Patch[] = {
|
|
"format",
|
|
"#if __WORDSIZE == 64\n\
|
|
#define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
|
|
#define PTRDIFF_MAX 9223372036854775807L\n\
|
|
#else\n\
|
|
#define PTRDIFF_MIN (-2147483647 - 1)\n\
|
|
#define PTRDIFF_MAX 2147483647\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Darwin_Stdint_7 fix
|
|
*/
|
|
tSCC zDarwin_Stdint_7Name[] =
|
|
"darwin_stdint_7";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDarwin_Stdint_7List[] =
|
|
"stdint-darwin.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzDarwin_Stdint_7Machs[] = {
|
|
"*-*-darwin*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDarwin_Stdint_7Select0[] =
|
|
"#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
|
|
#define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
|
|
|
|
#define DARWIN_STDINT_7_TEST_CT 1
|
|
static tTestDesc aDarwin_Stdint_7Tests[] = {
|
|
{ TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Darwin_Stdint_7
|
|
*/
|
|
static const char* apzDarwin_Stdint_7Patch[] = {
|
|
"format",
|
|
"#if __WORDSIZE == 64\n\
|
|
#define INTMAX_C(v) (v ## L)\n\
|
|
#define UINTMAX_C(v) (v ## UL)\n\
|
|
#else\n\
|
|
#define INTMAX_C(v) (v ## LL)\n\
|
|
#define UINTMAX_C(v) (v ## ULL)\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Dec_Intern_Asm fix
|
|
*/
|
|
tSCC zDec_Intern_AsmName[] =
|
|
"dec_intern_asm";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zDec_Intern_AsmList[] =
|
|
"c_asm.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzDec_Intern_AsmMachs (const char**)NULL
|
|
#define DEC_INTERN_ASM_TEST_CT 0
|
|
#define aDec_Intern_AsmTests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Dec_Intern_Asm
|
|
*/
|
|
static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
|
|
"-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
|
|
#ifdef __DECC\n",
|
|
"-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
|
|
#endif\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Djgpp_Wchar_H fix
|
|
*/
|
|
tSCC zDjgpp_Wchar_HName[] =
|
|
"djgpp_wchar_h";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
#define zDjgpp_Wchar_HList (char*)NULL
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzDjgpp_Wchar_HMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zDjgpp_Wchar_HSelect0[] =
|
|
"__DJ_wint_t";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zDjgpp_Wchar_HBypass0[] =
|
|
"sys/djtypes.h";
|
|
|
|
#define DJGPP_WCHAR_H_TEST_CT 2
|
|
static tTestDesc aDjgpp_Wchar_HTests[] = {
|
|
{ TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Djgpp_Wchar_H
|
|
*/
|
|
static const char* apzDjgpp_Wchar_HPatch[] = {
|
|
"format",
|
|
"%0\n\
|
|
#include <sys/djtypes.h>",
|
|
"#include <stddef.h>",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Ecd_Cursor fix
|
|
*/
|
|
tSCC zEcd_CursorName[] =
|
|
"ecd_cursor";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zEcd_CursorList[] =
|
|
"sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzEcd_CursorMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zEcd_CursorSelect0[] =
|
|
"ecd\\.cursor";
|
|
|
|
#define ECD_CURSOR_TEST_CT 1
|
|
static tTestDesc aEcd_CursorTests[] = {
|
|
{ TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Ecd_Cursor
|
|
*/
|
|
static const char* apzEcd_CursorPatch[] = {
|
|
"format",
|
|
"ecd_cursor",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Freebsd_Gcc3_Breakage fix
|
|
*/
|
|
tSCC zFreebsd_Gcc3_BreakageName[] =
|
|
"freebsd_gcc3_breakage";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zFreebsd_Gcc3_BreakageList[] =
|
|
"sys/cdefs.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
|
|
"*-*-freebsd*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zFreebsd_Gcc3_BreakageSelect0[] =
|
|
"^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zFreebsd_Gcc3_BreakageBypass0[] =
|
|
"__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
|
|
|
|
#define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
|
|
static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
|
|
{ TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Freebsd_Gcc3_Breakage
|
|
*/
|
|
static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
|
|
"format",
|
|
"%0 || __GNUC__ >= 3",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Freebsd_Gcc4_Breakage fix
|
|
*/
|
|
tSCC zFreebsd_Gcc4_BreakageName[] =
|
|
"freebsd_gcc4_breakage";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zFreebsd_Gcc4_BreakageList[] =
|
|
"sys/cdefs.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
|
|
"*-*-freebsd*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zFreebsd_Gcc4_BreakageSelect0[] =
|
|
"^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
|
|
|
|
#define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
|
|
static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
|
|
{ TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Freebsd_Gcc4_Breakage
|
|
*/
|
|
static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
|
|
"format",
|
|
"#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_C99_Inline_1 fix
|
|
*/
|
|
tSCC zGlibc_C99_Inline_1Name[] =
|
|
"glibc_c99_inline_1";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_C99_Inline_1List[] =
|
|
"features.h\0*/features.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_C99_Inline_1Machs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_C99_Inline_1Select0[] =
|
|
"^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
|
|
|
|
#define GLIBC_C99_INLINE_1_TEST_CT 1
|
|
static tTestDesc aGlibc_C99_Inline_1Tests[] = {
|
|
{ TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_C99_Inline_1
|
|
*/
|
|
static const char* apzGlibc_C99_Inline_1Patch[] = {
|
|
"format",
|
|
"%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_C99_Inline_1a fix
|
|
*/
|
|
tSCC zGlibc_C99_Inline_1aName[] =
|
|
"glibc_c99_inline_1a";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_C99_Inline_1aList[] =
|
|
"features.h\0*/features.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_C99_Inline_1aMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_C99_Inline_1aSelect0[] =
|
|
"(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
|
|
(#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
|
|
|
|
#define GLIBC_C99_INLINE_1A_TEST_CT 1
|
|
static tTestDesc aGlibc_C99_Inline_1aTests[] = {
|
|
{ TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_C99_Inline_1a
|
|
*/
|
|
static const char* apzGlibc_C99_Inline_1aPatch[] = {
|
|
"format",
|
|
"%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
|
|
%2",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_C99_Inline_2 fix
|
|
*/
|
|
tSCC zGlibc_C99_Inline_2Name[] =
|
|
"glibc_c99_inline_2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_C99_Inline_2List[] =
|
|
"sys/stat.h\0*/sys/stat.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_C99_Inline_2Machs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_C99_Inline_2Select0[] =
|
|
"extern __inline__ int";
|
|
|
|
#define GLIBC_C99_INLINE_2_TEST_CT 1
|
|
static tTestDesc aGlibc_C99_Inline_2Tests[] = {
|
|
{ TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_C99_Inline_2
|
|
*/
|
|
static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
|
|
"-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
|
|
extern\\\n\
|
|
#endif\\\n\
|
|
__inline__ int \\1/",
|
|
"-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
|
|
extern\\\n\
|
|
#endif\\\n\
|
|
__inline__ int \\1/",
|
|
"-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
|
|
extern\\\n\
|
|
#endif\\\n\
|
|
__inline__ int \\1/",
|
|
"-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
|
|
extern\\\n\
|
|
#endif\\\n\
|
|
__inline__ int __REDIRECT\\1 (\\2/",
|
|
"-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
|
|
extern\\\n\
|
|
#endif\\\n\
|
|
__inline__ int __REDIRECT\\1 (\\2/",
|
|
"-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
|
|
extern\\\n\
|
|
#endif\\\n\
|
|
__inline__ int/",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_C99_Inline_3 fix
|
|
*/
|
|
tSCC zGlibc_C99_Inline_3Name[] =
|
|
"glibc_c99_inline_3";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_C99_Inline_3List[] =
|
|
"bits/string2.h\0*/bits/string2.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_C99_Inline_3Machs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_C99_Inline_3Select0[] =
|
|
"extern __inline";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zGlibc_C99_Inline_3Bypass0[] =
|
|
"__extern_inline|__GNU_STDC_INLINE__";
|
|
|
|
#define GLIBC_C99_INLINE_3_TEST_CT 2
|
|
static tTestDesc aGlibc_C99_Inline_3Tests[] = {
|
|
{ TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_C99_Inline_3
|
|
*/
|
|
static const char* apzGlibc_C99_Inline_3Patch[] = {
|
|
"format",
|
|
"# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
|
|
"^# ifdef __cplusplus$",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_C99_Inline_4 fix
|
|
*/
|
|
tSCC zGlibc_C99_Inline_4Name[] =
|
|
"glibc_c99_inline_4";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_C99_Inline_4List[] =
|
|
"sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_C99_Inline_4Machs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_C99_Inline_4Select0[] =
|
|
"(^| )extern __inline";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zGlibc_C99_Inline_4Bypass0[] =
|
|
"__extern_inline|__gnu_inline__";
|
|
|
|
#define GLIBC_C99_INLINE_4_TEST_CT 2
|
|
static tTestDesc aGlibc_C99_Inline_4Tests[] = {
|
|
{ TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_C99_Inline_4
|
|
*/
|
|
static const char* apzGlibc_C99_Inline_4Patch[] = {
|
|
"format",
|
|
"%0 __attribute__ ((__gnu_inline__))",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_Mutex_Init fix
|
|
*/
|
|
tSCC zGlibc_Mutex_InitName[] =
|
|
"glibc_mutex_init";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_Mutex_InitList[] =
|
|
"pthread.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_Mutex_InitMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_Mutex_InitSelect0[] =
|
|
"\\{ *\\{ *0, *\\} *\\}";
|
|
|
|
#define GLIBC_MUTEX_INIT_TEST_CT 1
|
|
static tTestDesc aGlibc_Mutex_InitTests[] = {
|
|
{ TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_Mutex_Init
|
|
*/
|
|
static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
|
|
"-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
|
|
N\n\
|
|
s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
|
|
}",
|
|
"-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
|
|
"-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
|
|
"-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
|
|
"-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
|
|
"-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
|
|
"-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
|
|
"-e", "/define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\\n\
|
|
# \\1\\\n\
|
|
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
|
|
# else\\\n\
|
|
# \\1\\\n\
|
|
{ { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
|
|
# endif/",
|
|
"-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
|
|
"-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_Stdint fix
|
|
*/
|
|
tSCC zGlibc_StdintName[] =
|
|
"glibc_stdint";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_StdintList[] =
|
|
"stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_StdintMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_StdintSelect0[] =
|
|
"GNU C Library";
|
|
|
|
#define GLIBC_STDINT_TEST_CT 1
|
|
static tTestDesc aGlibc_StdintTests[] = {
|
|
{ TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_Stdint
|
|
*/
|
|
static const char* apzGlibc_StdintPatch[] = {
|
|
"format",
|
|
"# define UINT8_C(c)\tc\n\
|
|
# define UINT16_C(c)\tc",
|
|
"# define UINT8_C\\(c\\)\tc ## U\n\
|
|
# define UINT16_C\\(c\\)\tc ## U",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_Strncpy fix
|
|
*/
|
|
tSCC zGlibc_StrncpyName[] =
|
|
"glibc_strncpy";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_StrncpyList[] =
|
|
"bits/string2.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_StrncpyMachs (const char**)NULL
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zGlibc_StrncpyBypass0[] =
|
|
"__builtin_strncpy";
|
|
|
|
#define GLIBC_STRNCPY_TEST_CT 1
|
|
static tTestDesc aGlibc_StrncpyTests[] = {
|
|
{ TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_Strncpy
|
|
*/
|
|
static const char* apzGlibc_StrncpyPatch[] = {
|
|
"format",
|
|
"# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
|
|
"# define strncpy([^\n\
|
|
]*\\\\\n\
|
|
)*[^\n\
|
|
]*",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Glibc_Tgmath fix
|
|
*/
|
|
tSCC zGlibc_TgmathName[] =
|
|
"glibc_tgmath";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGlibc_TgmathList[] =
|
|
"tgmath.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzGlibc_TgmathMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGlibc_TgmathSelect0[] =
|
|
"\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zGlibc_TgmathBypass0[] =
|
|
"__floating_type\\(type\\) \\\\\n\
|
|
.*__builtin_classify_type";
|
|
|
|
#define GLIBC_TGMATH_TEST_CT 2
|
|
static tTestDesc aGlibc_TgmathTests[] = {
|
|
{ TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Glibc_Tgmath
|
|
*/
|
|
static const char* apzGlibc_TgmathPatch[] = {
|
|
"format",
|
|
"(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Gnu_Types fix
|
|
*/
|
|
tSCC zGnu_TypesName[] =
|
|
"gnu_types";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zGnu_TypesList[] =
|
|
"sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzGnu_TypesMachs[] = {
|
|
"*-*-solaris2.1[0-9]*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zGnu_TypesSelect0[] =
|
|
"^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zGnu_TypesBypass0[] =
|
|
"_GCC_(PTRDIFF|SIZE|WCHAR)_T";
|
|
|
|
#define GNU_TYPES_TEST_CT 2
|
|
static tTestDesc aGnu_TypesTests[] = {
|
|
{ TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Gnu_Types
|
|
*/
|
|
static const char* apzGnu_TypesPatch[] = {
|
|
"gnu_type",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hp_Inline fix
|
|
*/
|
|
tSCC zHp_InlineName[] =
|
|
"hp_inline";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHp_InlineList[] =
|
|
"sys/spinlock.h\0machine/machparam.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHp_InlineMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHp_InlineSelect0[] =
|
|
"[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
|
|
|
|
#define HP_INLINE_TEST_CT 1
|
|
static tTestDesc aHp_InlineTests[] = {
|
|
{ TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hp_Inline
|
|
*/
|
|
static const char* apzHp_InlinePatch[] = {
|
|
"format",
|
|
"%1<machine/%2.h>",
|
|
"([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hp_Sysfile fix
|
|
*/
|
|
tSCC zHp_SysfileName[] =
|
|
"hp_sysfile";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHp_SysfileList[] =
|
|
"sys/file.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHp_SysfileMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHp_SysfileSelect0[] =
|
|
"HPUX_SOURCE";
|
|
|
|
#define HP_SYSFILE_TEST_CT 1
|
|
static tTestDesc aHp_SysfileTests[] = {
|
|
{ TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hp_Sysfile
|
|
*/
|
|
static const char* apzHp_SysfilePatch[] = {
|
|
"format",
|
|
"(struct file *, ...)",
|
|
"\\(\\.\\.\\.\\)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hppa_Hpux_Fp_Macros fix
|
|
*/
|
|
tSCC zHppa_Hpux_Fp_MacrosName[] =
|
|
"hppa_hpux_fp_macros";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHppa_Hpux_Fp_MacrosList[] =
|
|
"math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
|
|
"hppa*-hp-hpux11*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
|
|
"#[ \t]*define[ \t]*FP_NORMAL.*\n\
|
|
#[ \t]*define[ \t]*FP_ZERO.*\n\
|
|
#[ \t]*define[ \t]*FP_INFINITE.*\n\
|
|
#[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
|
|
#[ \t]*define[ \t]*FP_NAN.*\n";
|
|
|
|
#define HPPA_HPUX_FP_MACROS_TEST_CT 1
|
|
static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
|
|
{ TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hppa_Hpux_Fp_Macros
|
|
*/
|
|
static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
|
|
"format",
|
|
"#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
|
|
#if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
|
|
(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
|
|
%0#endif\n\n\
|
|
#ifdef _INCLUDE_HPUX_SOURCE\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux10_Cpp_Pow_Inline fix
|
|
*/
|
|
tSCC zHpux10_Cpp_Pow_InlineName[] =
|
|
"hpux10_cpp_pow_inline";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux10_Cpp_Pow_InlineList[] =
|
|
"fixinc-test-limits.h\0math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
|
|
"^# +ifdef +__cplusplus\n\
|
|
+\\}\n\
|
|
+inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
|
|
[ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
|
|
+\\}\n\
|
|
+extern +\"C\" +\\{\n\
|
|
#else\n\
|
|
# +endif";
|
|
|
|
#define HPUX10_CPP_POW_INLINE_TEST_CT 1
|
|
static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
|
|
{ TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux10_Cpp_Pow_Inline
|
|
*/
|
|
static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
|
|
"format",
|
|
"",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Cpp_Pow_Inline fix
|
|
*/
|
|
tSCC zHpux11_Cpp_Pow_InlineName[] =
|
|
"hpux11_cpp_pow_inline";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_Cpp_Pow_InlineList[] =
|
|
"math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
|
|
" +inline double pow\\(double d,int expon\\) \\{\n\
|
|
+return pow\\(d, \\(double\\)expon\\);\n\
|
|
+\\}\n";
|
|
|
|
#define HPUX11_CPP_POW_INLINE_TEST_CT 1
|
|
static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
|
|
{ TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Cpp_Pow_Inline
|
|
*/
|
|
static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
|
|
"format",
|
|
"",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux10_Ctype_Declarations1 fix
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations1Name[] =
|
|
"hpux10_ctype_declarations1";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations1List[] =
|
|
"ctype.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations1Select0[] =
|
|
"^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations1Bypass0[] =
|
|
"^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
|
|
|
|
#define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
|
|
static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
|
|
{ TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux10_Ctype_Declarations1
|
|
*/
|
|
static const char* apzHpux10_Ctype_Declarations1Patch[] = {
|
|
"format",
|
|
"#ifdef _PROTOTYPES\n\
|
|
extern int __tolower(int);\n\
|
|
extern int __toupper(int);\n\
|
|
#else /* NOT _PROTOTYPES */\n\
|
|
extern int __tolower();\n\
|
|
extern int __toupper();\n\
|
|
#endif /* _PROTOTYPES */\n\n\
|
|
%0\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux10_Ctype_Declarations2 fix
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations2Name[] =
|
|
"hpux10_ctype_declarations2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations2List[] =
|
|
"ctype.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations2Select0[] =
|
|
"^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zHpux10_Ctype_Declarations2Bypass0[] =
|
|
"^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
|
|
|
|
#define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
|
|
static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
|
|
{ TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux10_Ctype_Declarations2
|
|
*/
|
|
static const char* apzHpux10_Ctype_Declarations2Patch[] = {
|
|
"format",
|
|
"%0\n\n\
|
|
#ifdef _PROTOTYPES\n\
|
|
extern int _isalnum(int);\n\
|
|
extern int _isalpha(int);\n\
|
|
extern int _iscntrl(int);\n\
|
|
extern int _isdigit(int);\n\
|
|
extern int _isgraph(int);\n\
|
|
extern int _islower(int);\n\
|
|
extern int _isprint(int);\n\
|
|
extern int _ispunct(int);\n\
|
|
extern int _isspace(int);\n\
|
|
extern int _isupper(int);\n\
|
|
extern int _isxdigit(int);\n\
|
|
# else /* not _PROTOTYPES */\n\
|
|
extern int _isalnum();\n\
|
|
extern int _isalpha();\n\
|
|
extern int _iscntrl();\n\
|
|
extern int _isdigit();\n\
|
|
extern int _isgraph();\n\
|
|
extern int _islower();\n\
|
|
extern int _isprint();\n\
|
|
extern int _ispunct();\n\
|
|
extern int _isspace();\n\
|
|
extern int _isupper();\n\
|
|
extern int _isxdigit();\n\
|
|
#endif /* _PROTOTYPES */\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux10_Stdio_Declarations fix
|
|
*/
|
|
tSCC zHpux10_Stdio_DeclarationsName[] =
|
|
"hpux10_stdio_declarations";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux10_Stdio_DeclarationsList[] =
|
|
"stdio.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux10_Stdio_DeclarationsSelect0[] =
|
|
"^#[ \t]*define _iob[ \t]*__iob";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zHpux10_Stdio_DeclarationsBypass0[] =
|
|
"^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
|
|
|
|
#define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
|
|
static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
|
|
{ TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux10_Stdio_Declarations
|
|
*/
|
|
static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
|
|
"format",
|
|
"%0\n\n\
|
|
# if defined(__STDC__) || defined(__cplusplus)\n\
|
|
extern int snprintf(char *, size_t, const char *, ...);\n\
|
|
extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
|
|
# else /* not __STDC__) || __cplusplus */\n\
|
|
extern int snprintf();\n\
|
|
extern int vsnprintf();\n\
|
|
# endif /* __STDC__) || __cplusplus */\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Abs fix
|
|
*/
|
|
tSCC zHpux11_AbsName[] =
|
|
"hpux11_abs";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_AbsList[] =
|
|
"stdlib.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux11_AbsMachs[] = {
|
|
"ia64-hp-hpux11*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_AbsSelect0[] =
|
|
"ifndef _MATH_INCLUDED";
|
|
|
|
#define HPUX11_ABS_TEST_CT 1
|
|
static tTestDesc aHpux11_AbsTests[] = {
|
|
{ TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Abs
|
|
*/
|
|
static const char* apzHpux11_AbsPatch[] = {
|
|
"format",
|
|
"if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Fabsf fix
|
|
*/
|
|
tSCC zHpux11_FabsfName[] =
|
|
"hpux11_fabsf";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_FabsfList[] =
|
|
"math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux11_FabsfMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_FabsfSelect0[] =
|
|
"^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zHpux11_FabsfBypass0[] =
|
|
"__cplusplus";
|
|
|
|
#define HPUX11_FABSF_TEST_CT 2
|
|
static tTestDesc aHpux11_FabsfTests[] = {
|
|
{ TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Fabsf
|
|
*/
|
|
static const char* apzHpux11_FabsfPatch[] = {
|
|
"format",
|
|
"#ifndef __cplusplus\n\
|
|
%0\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Pthread_Const fix
|
|
*/
|
|
tSCC zHpux11_Pthread_ConstName[] =
|
|
"hpux11_pthread_const";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_Pthread_ConstList[] =
|
|
"sys/pthread.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux11_Pthread_ConstMachs[] = {
|
|
"*-hp-hpux11.[0-3]*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_Pthread_ConstSelect0[] =
|
|
"^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
|
|
|
|
#define HPUX11_PTHREAD_CONST_TEST_CT 1
|
|
static tTestDesc aHpux11_Pthread_ConstTests[] = {
|
|
{ TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Pthread_Const
|
|
*/
|
|
static const char* apzHpux11_Pthread_ConstPatch[] = {
|
|
"format",
|
|
"#define __POINTER_SET\t\t((void *) 1L)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Size_T fix
|
|
*/
|
|
tSCC zHpux11_Size_TName[] =
|
|
"hpux11_size_t";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
#define zHpux11_Size_TList (char*)NULL
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux11_Size_TMachs[] = {
|
|
"*-hp-hpux11*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_Size_TSelect0[] =
|
|
"__size_t";
|
|
|
|
#define HPUX11_SIZE_T_TEST_CT 1
|
|
static tTestDesc aHpux11_Size_TTests[] = {
|
|
{ TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Size_T
|
|
*/
|
|
static const char* apzHpux11_Size_TPatch[] = {
|
|
"format",
|
|
"_hpux_size_t",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Snprintf fix
|
|
*/
|
|
tSCC zHpux11_SnprintfName[] =
|
|
"hpux11_snprintf";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_SnprintfList[] =
|
|
"stdio.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux11_SnprintfMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_SnprintfSelect0[] =
|
|
"(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
|
|
|
|
#define HPUX11_SNPRINTF_TEST_CT 1
|
|
static tTestDesc aHpux11_SnprintfTests[] = {
|
|
{ TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Snprintf
|
|
*/
|
|
static const char* apzHpux11_SnprintfPatch[] = {
|
|
"format",
|
|
"%1 const %3",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Vsnprintf fix
|
|
*/
|
|
tSCC zHpux11_VsnprintfName[] =
|
|
"hpux11_vsnprintf";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_VsnprintfList[] =
|
|
"stdio.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux11_VsnprintfMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_VsnprintfSelect0[] =
|
|
"(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
|
|
|
|
#define HPUX11_VSNPRINTF_TEST_CT 1
|
|
static tTestDesc aHpux11_VsnprintfTests[] = {
|
|
{ TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Vsnprintf
|
|
*/
|
|
static const char* apzHpux11_VsnprintfPatch[] = {
|
|
"format",
|
|
"%1 __va_list);",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux8_Bogus_Inlines fix
|
|
*/
|
|
tSCC zHpux8_Bogus_InlinesName[] =
|
|
"hpux8_bogus_inlines";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux8_Bogus_InlinesList[] =
|
|
"math.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux8_Bogus_InlinesMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux8_Bogus_InlinesSelect0[] =
|
|
"inline";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zHpux8_Bogus_InlinesBypass0[] =
|
|
"__GNUG__";
|
|
|
|
#define HPUX8_BOGUS_INLINES_TEST_CT 2
|
|
static tTestDesc aHpux8_Bogus_InlinesTests[] = {
|
|
{ TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux8_Bogus_Inlines
|
|
*/
|
|
static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
|
|
"-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
|
|
"-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
|
|
"-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
|
|
"-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Ctype_Macros fix
|
|
*/
|
|
tSCC zHpux_Ctype_MacrosName[] =
|
|
"hpux_ctype_macros";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_Ctype_MacrosList[] =
|
|
"ctype.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux_Ctype_MacrosMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux_Ctype_MacrosSelect0[] =
|
|
"((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
|
|
|
|
#define HPUX_CTYPE_MACROS_TEST_CT 1
|
|
static tTestDesc aHpux_Ctype_MacrosTests[] = {
|
|
{ TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Ctype_Macros
|
|
*/
|
|
static const char* apzHpux_Ctype_MacrosPatch[] = {
|
|
"format",
|
|
"%1(int)%3",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Htonl fix
|
|
*/
|
|
tSCC zHpux_HtonlName[] =
|
|
"hpux_htonl";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_HtonlList[] =
|
|
"netinet/in.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux_HtonlMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux_HtonlSelect0[] =
|
|
"#ifndef _XOPEN_SOURCE_EXTENDED\n\
|
|
(/\\*\n\
|
|
\\* Macros for number representation conversion\\.\n\
|
|
\\*/\n\
|
|
#ifndef ntohl)";
|
|
|
|
#define HPUX_HTONL_TEST_CT 1
|
|
static tTestDesc aHpux_HtonlTests[] = {
|
|
{ TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Htonl
|
|
*/
|
|
static const char* apzHpux_HtonlPatch[] = {
|
|
"format",
|
|
"#if 1\n\
|
|
%1",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Long_Double fix
|
|
*/
|
|
tSCC zHpux_Long_DoubleName[] =
|
|
"hpux_long_double";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_Long_DoubleList[] =
|
|
"stdlib.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_Long_DoubleMachs[] = {
|
|
"*-*-hpux10*",
|
|
"*-*-hpux11.[012]*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux_Long_DoubleSelect0[] =
|
|
"extern[ \t]long_double[ \t]strtold";
|
|
|
|
/*
|
|
* content bypass pattern - skip fix if pattern found
|
|
*/
|
|
tSCC zHpux_Long_DoubleBypass0[] =
|
|
"long_double_t";
|
|
|
|
#define HPUX_LONG_DOUBLE_TEST_CT 2
|
|
static tTestDesc aHpux_Long_DoubleTests[] = {
|
|
{ TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
|
|
{ TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Long_Double
|
|
*/
|
|
static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
|
|
"-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
|
|
"-e", "s/long_double/long double/g",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Long_Double_2 fix
|
|
*/
|
|
tSCC zHpux_Long_Double_2Name[] =
|
|
"hpux_long_double_2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_Long_Double_2List[] =
|
|
"stdlib.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_Long_Double_2Machs[] = {
|
|
"hppa*-*-hpux11.3*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux_Long_Double_2Select0[] =
|
|
"#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
|
|
|
|
#define HPUX_LONG_DOUBLE_2_TEST_CT 1
|
|
static tTestDesc aHpux_Long_Double_2Tests[] = {
|
|
{ TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Long_Double_2
|
|
*/
|
|
static const char* apzHpux_Long_Double_2Patch[] = {
|
|
"format",
|
|
"# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Systime fix
|
|
*/
|
|
tSCC zHpux_SystimeName[] =
|
|
"hpux_systime";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_SystimeList[] =
|
|
"sys/time.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
#define apzHpux_SystimeMachs (const char**)NULL
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux_SystimeSelect0[] =
|
|
"^extern struct sigevent;";
|
|
|
|
#define HPUX_SYSTIME_TEST_CT 1
|
|
static tTestDesc aHpux_SystimeTests[] = {
|
|
{ TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Systime
|
|
*/
|
|
static const char* apzHpux_SystimePatch[] = {
|
|
"format",
|
|
"struct sigevent;",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Spu_Info fix
|
|
*/
|
|
tSCC zHpux_Spu_InfoName[] =
|
|
"hpux_spu_info";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_Spu_InfoList[] =
|
|
"ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_Spu_InfoMachs[] = {
|
|
"*-hp-hpux*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux_Spu_InfoSelect0[] =
|
|
"^.*extern.*spu_info.*";
|
|
|
|
#define HPUX_SPU_INFO_TEST_CT 1
|
|
static tTestDesc aHpux_Spu_InfoTests[] = {
|
|
{ TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Spu_Info
|
|
*/
|
|
static const char* apzHpux_Spu_InfoPatch[] = {
|
|
"format",
|
|
"#ifdef _KERNEL\n\
|
|
%0\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Extern_Sendfile fix
|
|
*/
|
|
tSCC zHpux11_Extern_SendfileName[] =
|
|
"hpux11_extern_sendfile";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_Extern_SendfileList[] =
|
|
"sys/socket.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux11_Extern_SendfileMachs[] = {
|
|
"*-hp-hpux11.[12]*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_Extern_SendfileSelect0[] =
|
|
"^[ \t]*extern sbsize_t sendfile.*\n\
|
|
.*, int\\)\\);\n";
|
|
|
|
#define HPUX11_EXTERN_SENDFILE_TEST_CT 1
|
|
static tTestDesc aHpux11_Extern_SendfileTests[] = {
|
|
{ TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Extern_Sendfile
|
|
*/
|
|
static const char* apzHpux11_Extern_SendfilePatch[] = {
|
|
"format",
|
|
"#ifndef _APP32_64BIT_OFF_T\n\
|
|
%0#endif\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux11_Extern_Sendpath fix
|
|
*/
|
|
tSCC zHpux11_Extern_SendpathName[] =
|
|
"hpux11_extern_sendpath";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux11_Extern_SendpathList[] =
|
|
"sys/socket.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux11_Extern_SendpathMachs[] = {
|
|
"*-hp-hpux11.[12]*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux11_Extern_SendpathSelect0[] =
|
|
"^[ \t]*extern sbsize_t sendpath.*\n\
|
|
.*, int\\)\\);\n";
|
|
|
|
#define HPUX11_EXTERN_SENDPATH_TEST_CT 1
|
|
static tTestDesc aHpux11_Extern_SendpathTests[] = {
|
|
{ TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux11_Extern_Sendpath
|
|
*/
|
|
static const char* apzHpux11_Extern_SendpathPatch[] = {
|
|
"format",
|
|
"#ifndef _APP32_64BIT_OFF_T\n\
|
|
%0#endif\n",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Extern_Errno fix
|
|
*/
|
|
tSCC zHpux_Extern_ErrnoName[] =
|
|
"hpux_extern_errno";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_Extern_ErrnoList[] =
|
|
"errno.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_Extern_ErrnoMachs[] = {
|
|
"*-hp-hpux10.*",
|
|
"*-hp-hpux11.[0-2]*",
|
|
(const char*)NULL };
|
|
|
|
/*
|
|
* content selection pattern - do fix if pattern found
|
|
*/
|
|
tSCC zHpux_Extern_ErrnoSelect0[] =
|
|
"^[ \t]*extern int errno;$";
|
|
|
|
#define HPUX_EXTERN_ERRNO_TEST_CT 1
|
|
static tTestDesc aHpux_Extern_ErrnoTests[] = {
|
|
{ TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Extern_Errno
|
|
*/
|
|
static const char* apzHpux_Extern_ErrnoPatch[] = {
|
|
"format",
|
|
"#ifdef __cplusplus\n\
|
|
extern \"C\" {\n\
|
|
#endif\n\
|
|
%0\n\
|
|
#ifdef __cplusplus\n\
|
|
}\n\
|
|
#endif",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_Pthread_Initializers fix
|
|
*/
|
|
tSCC zHpux_Pthread_InitializersName[] =
|
|
"hpux_pthread_initializers";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_Pthread_InitializersList[] =
|
|
"sys/pthread.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_Pthread_InitializersMachs[] = {
|
|
"*-hp-hpux11.[0-3]*",
|
|
(const char*)NULL };
|
|
#define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
|
|
#define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_Pthread_Initializers
|
|
*/
|
|
static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
|
|
"-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
|
|
"-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
|
|
"-e", "/^[ \t]*0$/d",
|
|
"-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
|
|
"-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
|
|
"-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
|
|
"-e", "s@^[ \t]*__LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@\t{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
|
|
"-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
|
|
"-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
|
|
"-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
|
|
"-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
|
|
"-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
|
|
"-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_C99_Intptr fix
|
|
*/
|
|
tSCC zHpux_C99_IntptrName[] =
|
|
"hpux_c99_intptr";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_C99_IntptrList[] =
|
|
"stdint-hpux11.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_C99_IntptrMachs[] = {
|
|
"*-hp-hpux11.3*",
|
|
(const char*)NULL };
|
|
#define HPUX_C99_INTPTR_TEST_CT 0
|
|
#define aHpux_C99_IntptrTests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_C99_Intptr
|
|
*/
|
|
static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_C99_Inttypes fix
|
|
*/
|
|
tSCC zHpux_C99_InttypesName[] =
|
|
"hpux_c99_inttypes";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_C99_InttypesList[] =
|
|
"inttypes.h\0stdint-hpux11.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_C99_InttypesMachs[] = {
|
|
"*-hp-hpux11.[23]*",
|
|
(const char*)NULL };
|
|
#define HPUX_C99_INTTYPES_TEST_CT 0
|
|
#define aHpux_C99_InttypesTests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_C99_Inttypes
|
|
*/
|
|
static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
|
|
(char*)NULL };
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Description of Hpux_C99_Inttypes2 fix
|
|
*/
|
|
tSCC zHpux_C99_Inttypes2Name[] =
|
|
"hpux_c99_inttypes2";
|
|
|
|
/*
|
|
* File name selection pattern
|
|
*/
|
|
tSCC zHpux_C99_Inttypes2List[] =
|
|
"stdint-hpux11.h\0stdint.h\0";
|
|
/*
|
|
* Machine/OS name selection pattern
|
|
*/
|
|
tSCC* apzHpux_C99_Inttypes2Machs[] = {
|
|
"*-hp-hpux11.2*",
|
|
(const char*)NULL };
|
|
#define HPUX_C99_INTTYPES2_TEST_CT 0
|
|
#define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
|
|
|
|
/*
|
|
* Fix Command Arguments for Hpux_C99_Inttypes2
|
|
*/
|
|
static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
|
|
"-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
|
|
(char*)NULL };
|
|