*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed Saturday August 1, 2009 at 09:16:11 PM EDT
+ * It has been AutoGen-ed Saturday August 8, 2009 at 08:07:05 PM EDT
* From the definitions inclhack.def
* and the template file fixincl
*/
-/* DO NOT SVN-MERGE THIS FILE, EITHER Sat Aug 1 21:16:12 EDT 2009
+/* DO NOT SVN-MERGE THIS FILE, EITHER Sat Aug 8 20:07:05 EDT 2009
*
* You must regenerate it. Use the ./genfixes script.
*
* 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 199 fixup descriptions.
+ * This file contains 200 fixup descriptions.
*
* See README for more information.
*
#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
+ */
+#define apzAix_ComplexMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zAix_ComplexSelect0[] =
+ "AIX xlc C99";
+
+#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[] = { sed_cmd_z,
+ "-e", "s/^#define[ \t]_Complex_I[ \t]__I//",
+ "-e", "s/^#define[ \t]I[ \t]_Complex_I//",
+ (char*)NULL };
+
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Pthread fix
*
* List of all fixes
*/
-#define REGEX_COUNT 242
+#define REGEX_COUNT 243
#define MACH_LIST_SIZE_LIMIT 181
-#define FIX_COUNT 199
+#define FIX_COUNT 200
/*
* Enumerate the fixes
AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
AAB_SUN_MEMCPY_FIXIDX,
+ AIX_COMPLEX_FIXIDX,
AIX_PTHREAD_FIXIDX,
AIX_SYSMACHINE_FIXIDX,
AIX_SYSWAIT_2_FIXIDX,
AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
+ { zAix_ComplexName, zAix_ComplexList,
+ apzAix_ComplexMachs,
+ AIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
+ aAix_ComplexTests, apzAix_ComplexPatch, 0 },
+
{ zAix_PthreadName, zAix_PthreadList,
apzAix_PthreadMachs,
AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
};
+/*
+ * complex.h on AIX 5 and AIX 6 define _Complex_I and I in terms of __I,
+ * which only is provided by AIX xlc C99.
+ */
+fix = {
+ hackname = aix_complex;
+ files = complex.h;
+ select = "AIX xlc C99";
+
+ sed = "s/^#define[ \t]_Complex_I[ \t]__I//";
+ sed = "s/^#define[ \t]I[ \t]_Complex_I//";
+
+ test_text = "#define _Complex_I __I\n"
+ "#define I _Complex_I";
+};
+
+
/*
* pthread.h on AIX 4.3.3 tries to define a macro without whitspace
* which violates a requirement of ISO C.