*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed July 1, 2021 at 03:44:46 PM by AutoGen 5.18.7
+ * It has been AutoGen-ed August 30, 2021 at 07:31:11 PM by AutoGen 5.18.16
* From the definitions inclhack.def
* and the template file fixincl
*/
-/* DO NOT SVN-MERGE THIS FILE, EITHER Thu Jul 1 15:44:46 CEST 2021
+/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Aug 30 19:31:11 UTC 2021
*
* 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 260 fixup descriptions.
+ * This file contains 261 fixup descriptions.
*
* See README for more information.
*
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
+ * Description of Hpux_C99_Inttypes5 fix
+ */
+tSCC zHpux_C99_Inttypes5Name[] =
+ "hpux_c99_inttypes5";
+
+/*
+ * File name selection pattern
+ */
+tSCC zHpux_C99_Inttypes5List[] =
+ "inttypes.h\0";
+/*
+ * Machine/OS name selection pattern
+ */
+tSCC* apzHpux_C99_Inttypes5Machs[] = {
+ "hppa*-hp-hpux11.[01]*",
+ (const char*)NULL };
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zHpux_C99_Inttypes5Select0[] =
+ "#ifndef[ \t]_KERNEL[ \t]*\n";
+
+#define HPUX_C99_INTTYPES5_TEST_CT 1
+static tTestDesc aHpux_C99_Inttypes5Tests[] = {
+ { TT_EGREP, zHpux_C99_Inttypes5Select0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Hpux_C99_Inttypes5
+ */
+static const char* apzHpux_C99_Inttypes5Patch[] = {
+ "format",
+ "#ifndef __LP64__\n\
+#define PRIdPTR\t\tPRId32\n\
+#define PRIiPTR\t\tPRIi32\n\
+#define PRIoPTR\t\tPRIo32\n\
+#define PRIuPTR\t\tPRIu32\n\
+#define PRIxPTR\t\tPRIx32\n\
+#define PRIXPTR\t\tPRIX32\n\
+#else\n\
+#define PRIdPTR\t\tPRId64\n\
+#define PRIiPTR\t\tPRIi64\n\
+#define PRIoPTR\t\tPRIo64\n\
+#define PRIuPTR\t\tPRIu64\n\
+#define PRIxPTR\t\tPRIx64\n\
+#define PRIXPTR\t\tPRIX64\n\
+#endif\n\n\
+#ifndef _KERNEL\n",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
* Description of Hpux_Ctype_Macros fix
*/
tSCC zHpux_Ctype_MacrosName[] =
*
* List of all fixes
*/
-#define REGEX_COUNT 298
+#define REGEX_COUNT 299
#define MACH_LIST_SIZE_LIMIT 187
-#define FIX_COUNT 260
+#define FIX_COUNT 261
/*
* Enumerate the fixes
HPUX_C99_INTTYPES2_FIXIDX,
HPUX_C99_INTTYPES3_FIXIDX,
HPUX_C99_INTTYPES4_FIXIDX,
+ HPUX_C99_INTTYPES5_FIXIDX,
HPUX_CTYPE_MACROS_FIXIDX,
HPUX_EXTERN_ERRNO_FIXIDX,
HPUX_HTONL_FIXIDX,
HPUX_C99_INTTYPES4_TEST_CT, FD_MACH_ONLY,
aHpux_C99_Inttypes4Tests, apzHpux_C99_Inttypes4Patch, 0 },
+ { zHpux_C99_Inttypes5Name, zHpux_C99_Inttypes5List,
+ apzHpux_C99_Inttypes5Machs,
+ HPUX_C99_INTTYPES5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aHpux_C99_Inttypes5Tests, apzHpux_C99_Inttypes5Patch, 0 },
+
{ zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
apzHpux_Ctype_MacrosMachs,
HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
};
/*
+ * Fix missing PRIdPTR defines in inttypes.h
+ */
+fix = {
+ hackname = hpux_c99_inttypes5;
+ mach = "hppa*-hp-hpux11.[01]*";
+ files = inttypes.h;
+ select = "#ifndef[ \t]_KERNEL[ \t]*\n";
+ c_fix = format;
+ c_fix_arg = "#ifndef __LP64__\n"
+ "#define PRIdPTR\t\tPRId32\n"
+ "#define PRIiPTR\t\tPRIi32\n"
+ "#define PRIoPTR\t\tPRIo32\n"
+ "#define PRIuPTR\t\tPRIu32\n"
+ "#define PRIxPTR\t\tPRIx32\n"
+ "#define PRIXPTR\t\tPRIX32\n"
+ "#else\n"
+ "#define PRIdPTR\t\tPRId64\n"
+ "#define PRIiPTR\t\tPRIi64\n"
+ "#define PRIoPTR\t\tPRIo64\n"
+ "#define PRIuPTR\t\tPRIu64\n"
+ "#define PRIxPTR\t\tPRIx64\n"
+ "#define PRIXPTR\t\tPRIX64\n"
+ "#endif\n\n"
+ "#ifndef _KERNEL\n";
+ test_text = "#ifndef _KERNEL\n";
+};
+
+/*
* Fix hpux broken ctype macros
*/
fix = {