* files which are fixed to work correctly with ANSI C and placed in a
* directory that GNU C will search.
*
- * This file contains 144 fixup descriptions.
+ * This file contains 145 fixup descriptions.
*
* See README for more information.
*
#endif",
(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-hpux*",
+ (const char*)NULL };
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zHpux11_Size_TSelect0[] =
+ "^#define __size_t 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",
+ "__size_t",
+ (char*)NULL };
+
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Hpux11_Uint32_C fix
*
* List of all fixes
*/
-#define REGEX_COUNT 151
+#define REGEX_COUNT 152
#define MACH_LIST_SIZE_LIMIT 279
-#define FIX_COUNT 144
+#define FIX_COUNT 145
/*
* Enumerate the fixes
HPUX10_CPP_POW_INLINE_FIXIDX,
HPUX11_CPP_POW_INLINE_FIXIDX,
HPUX11_FABSF_FIXIDX,
+ HPUX11_SIZE_T_FIXIDX,
HPUX11_UINT32_C_FIXIDX,
HPUX11_VSNPRINTF_FIXIDX,
HPUX8_BOGUS_INLINES_FIXIDX,
HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
+ { zHpux11_Size_TName, zHpux11_Size_TList,
+ apzHpux11_Size_TMachs,
+ HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
+
{ zHpux11_Uint32_CName, zHpux11_Uint32_CList,
apzHpux11_Uint32_CMachs,
HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
" }\n";
};
+
/*
* Keep HP-UX 11 from stomping on C++ math namespace
* with defines for fabsf.
};
+/*
+ * Prevent HP-UX 11 from defining __size_t and preventing size_t from
+ * being defined by having it define _hpux_size_t instead.
+ */
+fix = {
+ hackname = hpux11_size_t;
+ mach = "*-hp-hpux*";
+ select = "^#define __size_t size_t";
+
+ c_fix = format;
+ c_fix_arg = "_hpux_size_t";
+ c_fix_arg = "__size_t";
+
+ test_text =
+ "#define __size_t size_t\n"
+ " extern int getpwuid_r( char *, __size_t, struct passwd **);\n";
+};
+
+
/*
* In inttypes.h on HPUX 11, the use of __CONCAT__ in the definition
* of UINT32_C has undefined behavior according to ISO/ANSI: