* files which are fixed to work correctly with ANSI C and placed in a
* directory that GNU C will search.
*
- * This file contains 130 fixup descriptions.
+ * This file contains 127 fixup descriptions.
*
* See README-fixinc for more information.
*
* content selection pattern - do fix if pattern found
*/
tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
- "define[ \t]*HUGE_VAL[ \t]*DBL_MAX";
+ "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
- "define[ \t]*DBL_MAX";
+ "define[ \t]+DBL_MAX";
#define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
* Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
*/
const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
- "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
+ "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\
\n\
\tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
-\tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\
+\tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
\telse cat\n\
\tfi",
(char*)NULL };
tSCC* apzNested_MotorolaMachs[] = {
"m68k-motorola-sysv*",
(const char*)NULL };
-#define NESTED_MOTOROLA_TEST_CT 0
-#define aNested_MotorolaTests (tTestDesc*)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zNested_MotorolaSelect0[] =
+ "max # bytes atomic in write|error value returned by Math lib";
+
+#define NESTED_MOTOROLA_TEST_CT 1
+tTestDesc aNested_MotorolaTests[] = {
+ { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Nested_Motorola
"(const char *, const struct utimbuf *);",
(char*)NULL };
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Sony_Include fix
- */
-#define SONY_INCLUDE_FIXIDX 84
-tSCC zSony_IncludeName[] =
- "sony_include";
-
-/*
- * File name selection pattern
- */
-tSCC zSony_IncludeList[] =
- "|machine/machparam.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzSony_IncludeMachs (const char**)NULL
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zSony_IncludeSelect0[] =
- "\"\\.\\./machine/endian.h\"";
-
-#define SONY_INCLUDE_TEST_CT 1
-tTestDesc aSony_IncludeTests[] = {
- { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Sony_Include
- */
-const char* apzSony_IncludePatch[] = { "sed",
- "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
- (char*)NULL };
-
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Statsswtch fix
*/
-#define STATSSWTCH_FIXIDX 85
+#define STATSSWTCH_FIXIDX 84
tSCC zStatsswtchName[] =
"statsswtch";
*
* Description of Stdio_Stdarg_H fix
*/
-#define STDIO_STDARG_H_FIXIDX 86
+#define STDIO_STDARG_H_FIXIDX 85
tSCC zStdio_Stdarg_HName[] =
"stdio_stdarg_h";
*
* Description of Stdio_Va_List fix
*/
-#define STDIO_VA_LIST_FIXIDX 87
+#define STDIO_VA_LIST_FIXIDX 86
tSCC zStdio_Va_ListName[] =
"stdio_va_list";
*
* Description of Struct_File fix
*/
-#define STRUCT_FILE_FIXIDX 88
+#define STRUCT_FILE_FIXIDX 87
tSCC zStruct_FileName[] =
"struct_file";
*
* Description of Struct_Sockaddr fix
*/
-#define STRUCT_SOCKADDR_FIXIDX 89
+#define STRUCT_SOCKADDR_FIXIDX 88
tSCC zStruct_SockaddrName[] =
"struct_sockaddr";
*
* Description of Sun_Auth_Proto fix
*/
-#define SUN_AUTH_PROTO_FIXIDX 90
+#define SUN_AUTH_PROTO_FIXIDX 89
tSCC zSun_Auth_ProtoName[] =
"sun_auth_proto";
*
* Description of Sun_Bogus_Ifdef fix
*/
-#define SUN_BOGUS_IFDEF_FIXIDX 91
+#define SUN_BOGUS_IFDEF_FIXIDX 90
tSCC zSun_Bogus_IfdefName[] =
"sun_bogus_ifdef";
*
* Description of Sun_Catmacro fix
*/
-#define SUN_CATMACRO_FIXIDX 92
+#define SUN_CATMACRO_FIXIDX 91
tSCC zSun_CatmacroName[] =
"sun_catmacro";
*
* Description of Sun_Malloc fix
*/
-#define SUN_MALLOC_FIXIDX 93
+#define SUN_MALLOC_FIXIDX 92
tSCC zSun_MallocName[] =
"sun_malloc";
*
* Description of Sun_Rusers_Semi fix
*/
-#define SUN_RUSERS_SEMI_FIXIDX 94
+#define SUN_RUSERS_SEMI_FIXIDX 93
tSCC zSun_Rusers_SemiName[] =
"sun_rusers_semi";
*
* Description of Sun_Signal fix
*/
-#define SUN_SIGNAL_FIXIDX 95
+#define SUN_SIGNAL_FIXIDX 94
tSCC zSun_SignalName[] =
"sun_signal";
*
* Description of Sunos_Matherr_Decl fix
*/
-#define SUNOS_MATHERR_DECL_FIXIDX 96
+#define SUNOS_MATHERR_DECL_FIXIDX 95
tSCC zSunos_Matherr_DeclName[] =
"sunos_matherr_decl";
*
* Description of Sunos_Strlen fix
*/
-#define SUNOS_STRLEN_FIXIDX 97
+#define SUNOS_STRLEN_FIXIDX 96
tSCC zSunos_StrlenName[] =
"sunos_strlen";
*
* Description of Svr4__P fix
*/
-#define SVR4__P_FIXIDX 98
+#define SVR4__P_FIXIDX 97
tSCC zSvr4__PName[] =
"svr4__p";
*
* Description of Svr4_Getcwd fix
*/
-#define SVR4_GETCWD_FIXIDX 99
+#define SVR4_GETCWD_FIXIDX 98
tSCC zSvr4_GetcwdName[] =
"svr4_getcwd";
*
* Description of Svr4_Profil fix
*/
-#define SVR4_PROFIL_FIXIDX 100
+#define SVR4_PROFIL_FIXIDX 99
tSCC zSvr4_ProfilName[] =
"svr4_profil";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Systypes fix
+ * Description of Gnu_Types fix
*/
-#define SYSTYPES_FIXIDX 101
-tSCC zSystypesName[] =
- "systypes";
+#define GNU_TYPES_FIXIDX 100
+tSCC zGnu_TypesName[] =
+ "gnu_types";
/*
* File name selection pattern
*/
-tSCC zSystypesList[] =
+tSCC zGnu_TypesList[] =
"|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzSystypesMachs (const char**)NULL
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zSystypesSelect0[] =
- "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
-
-#define SYSTYPES_TEST_CT 1
-tTestDesc aSystypesTests[] = {
- { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Systypes
- */
-const char* apzSystypesPatch[] = { "sed",
- "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
- "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
-#ifndef __SIZE_TYPE__\\\n\
-#define __SIZE_TYPE__ long unsigned int\\\n\
-#endif\\\n\
-typedef __SIZE_TYPE__ size_t;\\\n\
-/",
- "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
-#ifndef __SIZE_TYPE__\\\n\
-#define __SIZE_TYPE__ long unsigned int\\\n\
-#endif\n",
- "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
- "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
-#ifndef __PTRDIFF_TYPE__\\\n\
-#define __PTRDIFF_TYPE__ long int\\\n\
-#endif\n",
- "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
- "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
-#ifndef __WCHAR_TYPE__\\\n\
-#define __WCHAR_TYPE__ int\\\n\
-#endif\\\n\
-#ifndef __cplusplus\n",
- "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
-#endif\n",
- "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Systypes_Stdlib_Size_T fix
- */
-#define SYSTYPES_STDLIB_SIZE_T_FIXIDX 102
-tSCC zSystypes_Stdlib_Size_TName[] =
- "systypes_stdlib_size_t";
-
-/*
- * File name selection pattern
- */
-tSCC zSystypes_Stdlib_Size_TList[] =
- "|sys/types.h|stdlib.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzSystypes_Stdlib_Size_TMachs (const char**)NULL
+#define apzGnu_TypesMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zSystypes_Stdlib_Size_TSelect0[] =
- "typedef[ \t]+[A-Za-z_][ \tA-Za-z_]*[ \t]size_t.*";
+tSCC zGnu_TypesSelect0[] =
+ "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
/*
* content bypass pattern - skip fix if pattern found
*/
-tSCC zSystypes_Stdlib_Size_TBypass0[] =
- "_(GCC|BSD)_SIZE_T";
+tSCC zGnu_TypesBypass0[] =
+ "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
-#define SYSTYPES_STDLIB_SIZE_T_TEST_CT 2
-tTestDesc aSystypes_Stdlib_Size_TTests[] = {
- { TT_NEGREP, zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL },
- { TT_EGREP, zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, };
+#define GNU_TYPES_TEST_CT 2
+tTestDesc aGnu_TypesTests[] = {
+ { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
+ { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Systypes_Stdlib_Size_T
+ * Fix Command Arguments for Gnu_Types
*/
-const char* apzSystypes_Stdlib_Size_TPatch[] = {
- "format",
- "#ifndef _GCC_SIZE_T\n\
-#define _GCC_SIZE_T\n\
-%0\n\
-#endif",
+const char* apzGnu_TypesPatch[] = {
+ "gnu_type",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Sysv68_String fix
*/
-#define SYSV68_STRING_FIXIDX 103
+#define SYSV68_STRING_FIXIDX 101
tSCC zSysv68_StringName[] =
"sysv68_string";
* File name selection pattern
*/
tSCC zSysv68_StringList[] =
- "|string.h|";
+ "|testing.h|string.h|";
/*
* Machine/OS name selection pattern
*/
*
* Description of Sysz_Stdlib_For_Sun fix
*/
-#define SYSZ_STDLIB_FOR_SUN_FIXIDX 104
+#define SYSZ_STDLIB_FOR_SUN_FIXIDX 102
tSCC zSysz_Stdlib_For_SunName[] =
"sysz_stdlib_for_sun";
"void *\t%1(",
(char*)NULL };
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Sysz_Stdtypes_For_Sun fix
- */
-#define SYSZ_STDTYPES_FOR_SUN_FIXIDX 105
-tSCC zSysz_Stdtypes_For_SunName[] =
- "sysz_stdtypes_for_sun";
-
-/*
- * File name selection pattern
- */
-tSCC zSysz_Stdtypes_For_SunList[] =
- "|sys/stdtypes.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
-#define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
-#define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
-
-/*
- * Fix Command Arguments for Sysz_Stdtypes_For_Sun
- */
-const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
- "-e", "/[\t ]size_t.*;/i\\\n\
-#ifndef _GCC_SIZE_T\\\n\
-#define _GCC_SIZE_T\n",
- "-e", "/[\t ]size_t.*;/a\\\n\
-#endif\n",
- "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
-#ifndef _GCC_PTRDIFF_T\\\n\
-#define _GCC_PTRDIFF_T\n",
- "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
-#endif\n",
- "-e", "/[\t ]wchar_t.*;/i\\\n\
-#ifndef _GCC_WCHAR_T\\\n\
-#define _GCC_WCHAR_T\n",
- "-e", "/[\t ]wchar_t.*;/a\\\n\
-#endif\n",
- (char*)NULL };
-
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Tinfo_Cplusplus fix
*/
-#define TINFO_CPLUSPLUS_FIXIDX 106
+#define TINFO_CPLUSPLUS_FIXIDX 103
tSCC zTinfo_CplusplusName[] =
"tinfo_cplusplus";
*
* Description of Ultrix_Atof_Param fix
*/
-#define ULTRIX_ATOF_PARAM_FIXIDX 107
+#define ULTRIX_ATOF_PARAM_FIXIDX 104
tSCC zUltrix_Atof_ParamName[] =
"ultrix_atof_param";
*
* Description of Ultrix_Const fix
*/
-#define ULTRIX_CONST_FIXIDX 108
+#define ULTRIX_CONST_FIXIDX 105
tSCC zUltrix_ConstName[] =
"ultrix_const";
*
* Description of Ultrix_Const2 fix
*/
-#define ULTRIX_CONST2_FIXIDX 109
+#define ULTRIX_CONST2_FIXIDX 106
tSCC zUltrix_Const2Name[] =
"ultrix_const2";
*
* Description of Ultrix_Fix_Fixproto fix
*/
-#define ULTRIX_FIX_FIXPROTO_FIXIDX 110
+#define ULTRIX_FIX_FIXPROTO_FIXIDX 107
tSCC zUltrix_Fix_FixprotoName[] =
"ultrix_fix_fixproto";
*
* Description of Ultrix_Ifdef fix
*/
-#define ULTRIX_IFDEF_FIXIDX 111
+#define ULTRIX_IFDEF_FIXIDX 108
tSCC zUltrix_IfdefName[] =
"ultrix_ifdef";
*
* Description of Ultrix_Math_Ifdef fix
*/
-#define ULTRIX_MATH_IFDEF_FIXIDX 112
+#define ULTRIX_MATH_IFDEF_FIXIDX 109
tSCC zUltrix_Math_IfdefName[] =
"ultrix_math_ifdef";
*
* Description of Ultrix_Nested_Ioctl fix
*/
-#define ULTRIX_NESTED_IOCTL_FIXIDX 113
+#define ULTRIX_NESTED_IOCTL_FIXIDX 110
tSCC zUltrix_Nested_IoctlName[] =
"ultrix_nested_ioctl";
*
* Description of Ultrix_Nested_Svc fix
*/
-#define ULTRIX_NESTED_SVC_FIXIDX 114
+#define ULTRIX_NESTED_SVC_FIXIDX 111
tSCC zUltrix_Nested_SvcName[] =
"ultrix_nested_svc";
*
* Description of Ultrix_Stat fix
*/
-#define ULTRIX_STAT_FIXIDX 115
+#define ULTRIX_STAT_FIXIDX 112
tSCC zUltrix_StatName[] =
"ultrix_stat";
*
* Description of Ultrix_Static fix
*/
-#define ULTRIX_STATIC_FIXIDX 116
+#define ULTRIX_STATIC_FIXIDX 113
tSCC zUltrix_StaticName[] =
"ultrix_static";
*
* Description of Ultrix_Strings fix
*/
-#define ULTRIX_STRINGS_FIXIDX 117
+#define ULTRIX_STRINGS_FIXIDX 114
tSCC zUltrix_StringsName[] =
"ultrix_strings";
*
* Description of Undefine_Null fix
*/
-#define UNDEFINE_NULL_FIXIDX 118
+#define UNDEFINE_NULL_FIXIDX 115
tSCC zUndefine_NullName[] =
"undefine_null";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Unixware7_Byteorder_Fix fix
+ * Description of Uw7_Byteorder_Fix fix
*/
-#define UNIXWARE7_BYTEORDER_FIX_FIXIDX 119
-tSCC zUnixware7_Byteorder_FixName[] =
- "unixware7_byteorder_fix";
+#define UW7_BYTEORDER_FIX_FIXIDX 116
+tSCC zUw7_Byteorder_FixName[] =
+ "uw7_byteorder_fix";
/*
* File name selection pattern
*/
-tSCC zUnixware7_Byteorder_FixList[] =
+tSCC zUw7_Byteorder_FixList[] =
"|arpa/inet.h|";
/*
* Machine/OS name selection pattern
*/
-tSCC* apzUnixware7_Byteorder_FixMachs[] = {
+tSCC* apzUw7_Byteorder_FixMachs[] = {
"*-*-sysv4*",
"i?86-*-sysv5*",
"i?86-*-udk*",
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zUnixware7_Byteorder_FixSelect0[] =
+tSCC zUw7_Byteorder_FixSelect0[] =
"in_port_t";
-#define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1
-tTestDesc aUnixware7_Byteorder_FixTests[] = {
- { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };
+/*
+ * perform the 'test' shell command - do fix on success
+ */
+tSCC zUw7_Byteorder_FixTest0[] =
+ "-f $DESTDIR/sys/byteorder.h";
+
+#define UW7_BYTEORDER_FIX_TEST_CT 2
+tTestDesc aUw7_Byteorder_FixTests[] = {
+ { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
+ { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Unixware7_Byteorder_Fix
+ * Fix Command Arguments for Uw7_Byteorder_Fix
*/
-const char* apzUnixware7_Byteorder_FixPatch[] = { "sed",
- "-e", "/^extern.*htons.*(in_port_t)/d",
- "-e", "/^extern.*ntohs.*(in_port_t)/d",
+const char* apzUw7_Byteorder_FixPatch[] = {
+ "format",
+ "",
+ "^extern.*(htons|ntohs).*\\(in_port_t\\).*\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Va_I960_Macro fix
*/
-#define VA_I960_MACRO_FIXIDX 120
+#define VA_I960_MACRO_FIXIDX 117
tSCC zVa_I960_MacroName[] =
"va_i960_macro";
*
* Description of Void_Null fix
*/
-#define VOID_NULL_FIXIDX 121
+#define VOID_NULL_FIXIDX 118
tSCC zVoid_NullName[] =
"void_null";
*
* Description of Vxworks_Gcc_Problem fix
*/
-#define VXWORKS_GCC_PROBLEM_FIXIDX 122
+#define VXWORKS_GCC_PROBLEM_FIXIDX 119
tSCC zVxworks_Gcc_ProblemName[] =
"vxworks_gcc_problem";
*
* Description of Vxworks_Needs_Vxtypes fix
*/
-#define VXWORKS_NEEDS_VXTYPES_FIXIDX 123
+#define VXWORKS_NEEDS_VXTYPES_FIXIDX 120
tSCC zVxworks_Needs_VxtypesName[] =
"vxworks_needs_vxtypes";
*
* Description of Vxworks_Needs_Vxworks fix
*/
-#define VXWORKS_NEEDS_VXWORKS_FIXIDX 124
+#define VXWORKS_NEEDS_VXWORKS_FIXIDX 121
tSCC zVxworks_Needs_VxworksName[] =
"vxworks_needs_vxworks";
*
* Description of Vxworks_Time fix
*/
-#define VXWORKS_TIME_FIXIDX 125
+#define VXWORKS_TIME_FIXIDX 122
tSCC zVxworks_TimeName[] =
"vxworks_time";
*
* Description of X11_Class fix
*/
-#define X11_CLASS_FIXIDX 126
+#define X11_CLASS_FIXIDX 123
tSCC zX11_ClassName[] =
"x11_class";
*
* Description of X11_Class_Usage fix
*/
-#define X11_CLASS_USAGE_FIXIDX 127
+#define X11_CLASS_USAGE_FIXIDX 124
tSCC zX11_Class_UsageName[] =
"x11_class_usage";
*
* Description of X11_New fix
*/
-#define X11_NEW_FIXIDX 128
+#define X11_NEW_FIXIDX 125
tSCC zX11_NewName[] =
"x11_new";
*
* Description of X11_Sprintf fix
*/
-#define X11_SPRINTF_FIXIDX 129
+#define X11_SPRINTF_FIXIDX 126
tSCC zX11_SprintfName[] =
"x11_sprintf";
*
* List of all fixes
*/
-#define REGEX_COUNT 132
+#define REGEX_COUNT 131
#define MACH_LIST_SIZE_LIMIT 279
-#define FIX_COUNT 130
+#define FIX_COUNT 127
tFixDesc fixDescList[ FIX_COUNT ] = {
{ zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aSco_UtimeTests, apzSco_UtimePatch },
- { zSony_IncludeName, zSony_IncludeList,
- apzSony_IncludeMachs,
- SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
- aSony_IncludeTests, apzSony_IncludePatch },
-
{ zStatsswtchName, zStatsswtchList,
apzStatsswtchMachs,
STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aSvr4_ProfilTests, apzSvr4_ProfilPatch },
- { zSystypesName, zSystypesList,
- apzSystypesMachs,
- SYSTYPES_TEST_CT, FD_MACH_ONLY,
- aSystypesTests, apzSystypesPatch },
-
- { zSystypes_Stdlib_Size_TName, zSystypes_Stdlib_Size_TList,
- apzSystypes_Stdlib_Size_TMachs,
- SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aSystypes_Stdlib_Size_TTests, apzSystypes_Stdlib_Size_TPatch },
+ { zGnu_TypesName, zGnu_TypesList,
+ apzGnu_TypesMachs,
+ GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aGnu_TypesTests, apzGnu_TypesPatch },
{ zSysv68_StringName, zSysv68_StringList,
apzSysv68_StringMachs,
SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
- { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList,
- apzSysz_Stdtypes_For_SunMachs,
- SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
- aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch },
-
{ zTinfo_CplusplusName, zTinfo_CplusplusList,
apzTinfo_CplusplusMachs,
TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aUndefine_NullTests, apzUndefine_NullPatch },
- { zUnixware7_Byteorder_FixName, zUnixware7_Byteorder_FixList,
- apzUnixware7_Byteorder_FixMachs,
- UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
- aUnixware7_Byteorder_FixTests, apzUnixware7_Byteorder_FixPatch },
+ { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
+ apzUw7_Byteorder_FixMachs,
+ UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch },
{ zVa_I960_MacroName, zVa_I960_MacroList,
apzVa_I960_MacroMachs,
X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aX11_SprintfTests, apzX11_SprintfPatch }
};
+
+#define GNU_TYPE_CT 3
+int gnu_type_map_ct = GNU_TYPE_CT;
+
+tSCC z_cxx_guard[] = " && !defined(__cplusplus)";
+tSCC z_nil[] = "";
+
+t_gnu_type_map gnu_type_map[ GNU_TYPE_CT ] = {
+ { 7, "ptrdiff", "PTRDIFF", "long int", z_nil },
+ { 4, "size", "SIZE", "long unsigned int", z_nil },
+ { 5, "wchar", "WCHAR", "int", z_cxx_guard }
+};