* files which are fixed to work correctly with ANSI C and placed in a
* directory that GNU C will search.
*
- * This file contains 118 fixup descriptions.
+ * This file contains 119 fixup descriptions.
*
* See README-fixinc for more information.
*
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
+ * Description of Bad_Lval fix
+ */
+#define BAD_LVAL_FIXIDX 22
+tSCC zBad_LvalName[] =
+ "bad_lval";
+
+/*
+ * File name selection pattern
+ */
+tSCC zBad_LvalList[] =
+ "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+#define apzBad_LvalMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zBad_LvalSelect0[] =
+ "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
+
+#define BAD_LVAL_TEST_CT 1
+tTestDesc aBad_LvalTests[] = {
+ { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Bad_Lval
+ */
+const char* apzBad_LvalPatch[] = { "sed",
+ "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
* Description of Bad_Struct_Term fix
*/
-#define BAD_STRUCT_TERM_FIXIDX 22
+#define BAD_STRUCT_TERM_FIXIDX 23
tSCC zBad_Struct_TermName[] =
"bad_struct_term";
*
* Description of Badquote fix
*/
-#define BADQUOTE_FIXIDX 23
+#define BADQUOTE_FIXIDX 24
tSCC zBadquoteName[] =
"badquote";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Bad_Lval fix
- */
-#define BAD_LVAL_FIXIDX 24
-tSCC zBad_LvalName[] =
- "bad_lval";
-
-/*
- * File name selection pattern
- */
-tSCC zBad_LvalList[] =
- "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzBad_LvalMachs (const char**)NULL
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zBad_LvalSelect0[] =
- "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
-
-#define BAD_LVAL_TEST_CT 1
-tTestDesc aBad_LvalTests[] = {
- { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Bad_Lval
- */
-const char* apzBad_LvalPatch[] = { "sed",
- "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
* Description of Broken_Assert_Stdio fix
*/
#define BROKEN_ASSERT_STDIO_FIXIDX 25
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Dec_Intern_Asm fix
+ * Description of Ctrl_Quotes_Def fix
*/
-#define DEC_INTERN_ASM_FIXIDX 28
-tSCC zDec_Intern_AsmName[] =
- "dec_intern_asm";
+#define CTRL_QUOTES_DEF_FIXIDX 28
+tSCC zCtrl_Quotes_DefName[] =
+ "ctrl_quotes_def";
/*
* File name selection pattern
*/
-tSCC zDec_Intern_AsmList[] =
- "|c_asm.h|";
+#define zCtrl_Quotes_DefList (char*)NULL
/*
* 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
+#define apzCtrl_Quotes_DefMachs (const char**)NULL
/*
- * Fix Command Arguments for Dec_Intern_Asm
+ * content selection pattern - do fix if pattern found
*/
-const char* apzDec_Intern_AsmPatch[] = { "sed",
- "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
-#ifdef __DECC\n",
- "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
-#endif\n",
+tSCC zCtrl_Quotes_DefSelect0[] =
+ "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
+
+#define CTRL_QUOTES_DEF_TEST_CT 1
+tTestDesc aCtrl_Quotes_DefTests[] = {
+ { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Ctrl_Quotes_Def
+ */
+const char* apzCtrl_Quotes_DefPatch[] = {
+ "char_macro_def",
+ "CTRL",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Ecd_Cursor fix
+ * Description of Ctrl_Quotes_Use fix
*/
-#define ECD_CURSOR_FIXIDX 29
-tSCC zEcd_CursorName[] =
- "ecd_cursor";
+#define CTRL_QUOTES_USE_FIXIDX 29
+tSCC zCtrl_Quotes_UseName[] =
+ "ctrl_quotes_use";
/*
* File name selection pattern
*/
-tSCC zEcd_CursorList[] =
- "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
+#define zCtrl_Quotes_UseList (char*)NULL
/*
* Machine/OS name selection pattern
*/
-#define apzEcd_CursorMachs (const char**)NULL
-#define ECD_CURSOR_TEST_CT 0
-#define aEcd_CursorTests (tTestDesc*)NULL
+#define apzCtrl_Quotes_UseMachs (const char**)NULL
/*
- * Fix Command Arguments for Ecd_Cursor
+ * content selection pattern - do fix if pattern found
*/
-const char* apzEcd_CursorPatch[] = { "sed",
- "-e", "s/ecd.cursor/ecd_cursor/",
+tSCC zCtrl_Quotes_UseSelect0[] =
+ "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
+
+#define CTRL_QUOTES_USE_TEST_CT 1
+tTestDesc aCtrl_Quotes_UseTests[] = {
+ { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Ctrl_Quotes_Use
+ */
+const char* apzCtrl_Quotes_UsePatch[] = {
+ "char_macro_use",
+ "CTRL",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Hp_Inline fix
+ * Description of Cxx_Unready fix
*/
-#define HP_INLINE_FIXIDX 30
-tSCC zHp_InlineName[] =
- "hp_inline";
+#define CXX_UNREADY_FIXIDX 30
+tSCC zCxx_UnreadyName[] =
+ "cxx_unready";
/*
* File name selection pattern
*/
-tSCC zHp_InlineList[] =
- "|sys/spinlock.h|";
+tSCC zCxx_UnreadyList[] =
+ "|sys/mman.h|rpc/types.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzHp_InlineMachs (const char**)NULL
+#define apzCxx_UnreadyMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zHp_InlineSelect0[] =
- "include.*\"\\.\\./machine/";
+tSCC zCxx_UnreadySelect0[] =
+ "[^#]+malloc.*;";
-#define HP_INLINE_TEST_CT 1
-tTestDesc aHp_InlineTests[] = {
- { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
+/*
+ * content bypass pattern - skip fix if pattern found
+ */
+tSCC zCxx_UnreadyBypass0[] =
+ "\"C\"|__BEGIN_DECLS";
+
+#define CXX_UNREADY_TEST_CT 2
+tTestDesc aCxx_UnreadyTests[] = {
+ { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
+ { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Hp_Inline
+ * Fix Command Arguments for Cxx_Unready
*/
-const char* apzHp_InlinePatch[] = { "sed",
- "-e", "s,\"../machine/inline.h\",<machine/inline.h>,",
- "-e", "s,\"../machine/psl.h\",<machine/psl.h>,",
+const char* apzCxx_UnreadyPatch[] = {
+ "wrap",
+ "#ifdef __cplusplus\n\
+extern \"C\" {\n\
+#endif\n",
+ "#ifdef __cplusplus\n\
+}\n\
+#endif\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Hp_Sysfile fix
+ * Description of Dec_Intern_Asm fix
*/
-#define HP_SYSFILE_FIXIDX 31
-tSCC zHp_SysfileName[] =
- "hp_sysfile";
+#define DEC_INTERN_ASM_FIXIDX 31
+tSCC zDec_Intern_AsmName[] =
+ "dec_intern_asm";
/*
* File name selection pattern
*/
-tSCC zHp_SysfileList[] =
- "|sys/file.h|";
+tSCC zDec_Intern_AsmList[] =
+ "|c_asm.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzHp_SysfileMachs (const char**)NULL
+#define apzDec_Intern_AsmMachs (const char**)NULL
+#define DEC_INTERN_ASM_TEST_CT 0
+#define aDec_Intern_AsmTests (tTestDesc*)NULL
/*
- * content selection pattern - do fix if pattern found
+ * Fix Command Arguments for Dec_Intern_Asm
*/
-tSCC zHp_SysfileSelect0[] =
- "HPUX_SOURCE";
+const char* apzDec_Intern_AsmPatch[] = { "sed",
+ "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
+#ifdef __DECC\n",
+ "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
+#endif\n",
+ (char*)NULL };
-#define HP_SYSFILE_TEST_CT 1
-tTestDesc aHp_SysfileTests[] = {
- { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description of Ecd_Cursor fix
+ */
+#define ECD_CURSOR_FIXIDX 32
+tSCC zEcd_CursorName[] =
+ "ecd_cursor";
/*
- * Fix Command Arguments for Hp_Sysfile
+ * File name selection pattern
*/
-const char* apzHp_SysfilePatch[] = { "sed",
- "-e", "s/(\\.\\.\\.)/(struct file *, ...)/",
+tSCC zEcd_CursorList[] =
+ "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+#define apzEcd_CursorMachs (const char**)NULL
+#define ECD_CURSOR_TEST_CT 0
+#define aEcd_CursorTests (tTestDesc*)NULL
+
+/*
+ * Fix Command Arguments for Ecd_Cursor
+ */
+const char* apzEcd_CursorPatch[] = { "sed",
+ "-e", "s/ecd.cursor/ecd_cursor/",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Cxx_Unready fix
+ * Description of Fix_Header_Breakage fix
*/
-#define CXX_UNREADY_FIXIDX 32
-tSCC zCxx_UnreadyName[] =
- "cxx_unready";
+#define FIX_HEADER_BREAKAGE_FIXIDX 33
+tSCC zFix_Header_BreakageName[] =
+ "fix_header_breakage";
/*
* File name selection pattern
*/
-tSCC zCxx_UnreadyList[] =
- "|sys/mman.h|rpc/types.h|";
+tSCC zFix_Header_BreakageList[] =
+ "|math.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzCxx_UnreadyMachs (const char**)NULL
+tSCC* apzFix_Header_BreakageMachs[] = {
+ "m88k-motorola-sysv3*",
+ (const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zCxx_UnreadySelect0[] =
- "[^#]+malloc.*;";
+tSCC zFix_Header_BreakageSelect0[] =
+ "extern double floor\\(\\), ceil\\(\\), fmod\\(\\), fabs\\(\\);";
-/*
- * content bypass pattern - skip fix if pattern found
- */
-tSCC zCxx_UnreadyBypass0[] =
- "\"C\"|__BEGIN_DECLS";
-
-#define CXX_UNREADY_TEST_CT 2
-tTestDesc aCxx_UnreadyTests[] = {
- { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
- { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
+#define FIX_HEADER_BREAKAGE_TEST_CT 1
+tTestDesc aFix_Header_BreakageTests[] = {
+ { TT_EGREP, zFix_Header_BreakageSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Cxx_Unready
+ * Fix Command Arguments for Fix_Header_Breakage
*/
-const char* apzCxx_UnreadyPatch[] = {
- "wrap",
- "#ifdef __cplusplus\n\
-extern \"C\" {\n\
-#endif\n",
- "#ifdef __cplusplus\n\
-}\n\
-#endif\n",
+const char* apzFix_Header_BreakagePatch[] = {
+ "format",
+ "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Hpux_Maxint fix
+ * Description of Hp_Inline fix
*/
-#define HPUX_MAXINT_FIXIDX 33
-tSCC zHpux_MaxintName[] =
- "hpux_maxint";
+#define HP_INLINE_FIXIDX 34
+tSCC zHp_InlineName[] =
+ "hp_inline";
/*
* File name selection pattern
*/
-tSCC zHpux_MaxintList[] =
- "|sys/param.h|";
+tSCC zHp_InlineList[] =
+ "|sys/spinlock.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzHpux_MaxintMachs (const char**)NULL
+#define apzHp_InlineMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zHpux_MaxintSelect0[] =
- "^#[ \t]*define[ \t]*MAXINT[ \t]";
+tSCC zHp_InlineSelect0[] =
+ "include.*\"\\.\\./machine/";
-#define HPUX_MAXINT_TEST_CT 1
-tTestDesc aHpux_MaxintTests[] = {
- { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
+#define HP_INLINE_TEST_CT 1
+tTestDesc aHp_InlineTests[] = {
+ { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Hpux_Maxint
+ * Fix Command Arguments for Hp_Inline
*/
-const char* apzHpux_MaxintPatch[] = { "sed",
- "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\
-#ifndef MAXINT\n",
- "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\
-#endif\n",
+const char* apzHp_InlinePatch[] = { "sed",
+ "-e", "s,\"../machine/inline.h\",<machine/inline.h>,",
+ "-e", "s,\"../machine/psl.h\",<machine/psl.h>,",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Hpux_Systime fix
+ * Description of Hp_Sysfile fix
*/
-#define HPUX_SYSTIME_FIXIDX 34
-tSCC zHpux_SystimeName[] =
- "hpux_systime";
+#define HP_SYSFILE_FIXIDX 35
+tSCC zHp_SysfileName[] =
+ "hp_sysfile";
/*
* File name selection pattern
*/
-tSCC zHpux_SystimeList[] =
- "|sys/time.h|";
+tSCC zHp_SysfileList[] =
+ "|sys/file.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzHpux_SystimeMachs (const char**)NULL
+#define apzHp_SysfileMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zHpux_SystimeSelect0[] =
- "^extern struct sigevent;";
+tSCC zHp_SysfileSelect0[] =
+ "HPUX_SOURCE";
-#define HPUX_SYSTIME_TEST_CT 1
-tTestDesc aHpux_SystimeTests[] = {
- { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
+#define HP_SYSFILE_TEST_CT 1
+tTestDesc aHp_SysfileTests[] = {
+ { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Hpux_Systime
+ * Fix Command Arguments for Hp_Sysfile
*/
-const char* apzHpux_SystimePatch[] = { "sed",
- "-e", "s/^extern struct sigevent;/struct sigevent;/",
+const char* apzHp_SysfilePatch[] = { "sed",
+ "-e", "s/(\\.\\.\\.)/(struct file *, ...)/",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Hpux8_Bogus_Inlines fix
*/
-#define HPUX8_BOGUS_INLINES_FIXIDX 35
+#define HPUX8_BOGUS_INLINES_FIXIDX 36
tSCC zHpux8_Bogus_InlinesName[] =
"hpux8_bogus_inlines";
*
* Description of Hpux11_Uint32_C fix
*/
-#define HPUX11_UINT32_C_FIXIDX 36
+#define HPUX11_UINT32_C_FIXIDX 37
tSCC zHpux11_Uint32_CName[] =
"hpux11_uint32_c";
/*
* Fix Command Arguments for Hpux11_Uint32_C
*/
-const char* apzHpux11_Uint32_CPatch[] = { "sed",
- "-e", "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/",
+const char* apzHpux11_Uint32_CPatch[] = {
+ "format",
+ "#define UINT32_C(__c) __CONCAT__(__c,ul)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Isc_Omits_With_Stdc fix
*/
-#define ISC_OMITS_WITH_STDC_FIXIDX 37
+#define ISC_OMITS_WITH_STDC_FIXIDX 38
tSCC zIsc_Omits_With_StdcName[] =
"isc_omits_with_stdc";
/*
* Fix Command Arguments for Isc_Omits_With_Stdc
*/
-const char* apzIsc_Omits_With_StdcPatch[] = { "sed",
- "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
+const char* apzIsc_Omits_With_StdcPatch[] = {
+ "format",
+ "!defined(_POSIX_SOURCE)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Io_Quotes_Def fix
*/
-#define IO_QUOTES_DEF_FIXIDX 38
+#define IO_QUOTES_DEF_FIXIDX 39
tSCC zIo_Quotes_DefName[] =
"io_quotes_def";
*
* Description of Io_Quotes_Use fix
*/
-#define IO_QUOTES_USE_FIXIDX 39
+#define IO_QUOTES_USE_FIXIDX 40
tSCC zIo_Quotes_UseName[] =
"io_quotes_use";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Ctrl_Quotes_Def fix
- */
-#define CTRL_QUOTES_DEF_FIXIDX 40
-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]).*'\\1'";
-
-#define CTRL_QUOTES_DEF_TEST_CT 1
-tTestDesc aCtrl_Quotes_DefTests[] = {
- { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Ctrl_Quotes_Def
- */
-const char* apzCtrl_Quotes_DefPatch[] = {
- "char_macro_def",
- "CTRL",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Ctrl_Quotes_Use fix
- */
-#define CTRL_QUOTES_USE_FIXIDX 41
-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
-tTestDesc aCtrl_Quotes_UseTests[] = {
- { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Ctrl_Quotes_Use
- */
-const char* apzCtrl_Quotes_UsePatch[] = {
- "char_macro_use",
- "CTRL",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Ip_Missing_Semi fix
+ * Description of Hpux_Maxint fix
*/
-#define IP_MISSING_SEMI_FIXIDX 42
-tSCC zIp_Missing_SemiName[] =
- "ip_missing_semi";
+#define HPUX_MAXINT_FIXIDX 41
+tSCC zHpux_MaxintName[] =
+ "hpux_maxint";
/*
* File name selection pattern
*/
-tSCC zIp_Missing_SemiList[] =
- "|netinet/ip.h|";
+tSCC zHpux_MaxintList[] =
+ "|sys/param.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzIp_Missing_SemiMachs (const char**)NULL
+#define apzHpux_MaxintMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
- */
-tSCC zIp_Missing_SemiSelect0[] =
- "}$";
-
-#define IP_MISSING_SEMI_TEST_CT 1
-tTestDesc aIp_Missing_SemiTests[] = {
- { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Ip_Missing_Semi
- */
-const char* apzIp_Missing_SemiPatch[] = { "sed",
- "-e", "/^struct/,/^};/s/}$/};/",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Irix_Multiline_Cmnt fix
- */
-#define IRIX_MULTILINE_CMNT_FIXIDX 43
-tSCC zIrix_Multiline_CmntName[] =
- "irix_multiline_cmnt";
-
-/*
- * File name selection pattern
- */
-tSCC zIrix_Multiline_CmntList[] =
- "|sys/types.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzIrix_Multiline_CmntMachs (const char**)NULL
-#define IRIX_MULTILINE_CMNT_TEST_CT 0
-#define aIrix_Multiline_CmntTests (tTestDesc*)NULL
+ */
+tSCC zHpux_MaxintSelect0[] =
+ "^#[ \t]*define[ \t]*MAXINT[ \t]";
+
+#define HPUX_MAXINT_TEST_CT 1
+tTestDesc aHpux_MaxintTests[] = {
+ { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Irix_Multiline_Cmnt
+ * Fix Command Arguments for Hpux_Maxint
*/
-const char* apzIrix_Multiline_CmntPatch[] = { "sed",
- "-e", "s@type of the result@type of the result */@",
- "-e", "s@of the sizeof@/* of the sizeof@",
+const char* apzHpux_MaxintPatch[] = { "sed",
+ "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\
+#ifndef MAXINT\n",
+ "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\
+#endif\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Irix_Sockaddr fix
+ * Description of Hpux_Systime fix
*/
-#define IRIX_SOCKADDR_FIXIDX 44
-tSCC zIrix_SockaddrName[] =
- "irix_sockaddr";
+#define HPUX_SYSTIME_FIXIDX 42
+tSCC zHpux_SystimeName[] =
+ "hpux_systime";
/*
* File name selection pattern
*/
-tSCC zIrix_SockaddrList[] =
- "|rpc/auth.h|";
+tSCC zHpux_SystimeList[] =
+ "|sys/time.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzIrix_SockaddrMachs (const char**)NULL
+#define apzHpux_SystimeMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zIrix_SockaddrSelect0[] =
- "authdes_create.*struct sockaddr";
-
-/*
- * content bypass pattern - skip fix if pattern found
- */
-tSCC zIrix_SockaddrBypass0[] =
- "<sys/socket.h>";
+tSCC zHpux_SystimeSelect0[] =
+ "^extern struct sigevent;";
-#define IRIX_SOCKADDR_TEST_CT 2
-tTestDesc aIrix_SockaddrTests[] = {
- { TT_NEGREP, zIrix_SockaddrBypass0, (regex_t*)NULL },
- { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, };
+#define HPUX_SYSTIME_TEST_CT 1
+tTestDesc aHpux_SystimeTests[] = {
+ { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Irix_Sockaddr
+ * Fix Command Arguments for Hpux_Systime
*/
-const char* apzIrix_SockaddrPatch[] = { "sed",
- "-e", "/authdes_create.*struct sockaddr/i\\\n\
-struct sockaddr;\n",
+const char* apzHpux_SystimePatch[] = { "sed",
+ "-e", "s/^extern struct sigevent;/struct sigevent;/",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Irix_Struct__File fix
+ * Description of Ip_Missing_Semi fix
*/
-#define IRIX_STRUCT__FILE_FIXIDX 45
-tSCC zIrix_Struct__FileName[] =
- "irix_struct__file";
+#define IP_MISSING_SEMI_FIXIDX 43
+tSCC zIp_Missing_SemiName[] =
+ "ip_missing_semi";
/*
* File name selection pattern
*/
-tSCC zIrix_Struct__FileList[] =
- "|rpc/xdr.h|";
+tSCC zIp_Missing_SemiList[] =
+ "|netinet/ip.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzIrix_Struct__FileMachs (const char**)NULL
-#define IRIX_STRUCT__FILE_TEST_CT 0
-#define aIrix_Struct__FileTests (tTestDesc*)NULL
+#define apzIp_Missing_SemiMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zIp_Missing_SemiSelect0[] =
+ "}$";
+
+#define IP_MISSING_SEMI_TEST_CT 1
+tTestDesc aIp_Missing_SemiTests[] = {
+ { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Irix_Struct__File
+ * Fix Command Arguments for Ip_Missing_Semi
*/
-const char* apzIrix_Struct__FilePatch[] = { "sed",
- "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
-struct __file_s;\n",
+const char* apzIp_Missing_SemiPatch[] = { "sed",
+ "-e", "/^struct/,/^};/s/}$/};/",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Irix_Asm_Apostrophe fix
*/
-#define IRIX_ASM_APOSTROPHE_FIXIDX 46
+#define IRIX_ASM_APOSTROPHE_FIXIDX 44
tSCC zIrix_Asm_ApostropheName[] =
"irix_asm_apostrophe";
/*
* Fix Command Arguments for Irix_Asm_Apostrophe
*/
-const char* apzIrix_Asm_ApostrophePatch[] = { "sed",
- "-e", "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Isc_Fmod fix
- */
-#define ISC_FMOD_FIXIDX 47
-tSCC zIsc_FmodName[] =
- "isc_fmod";
-
-/*
- * File name selection pattern
- */
-tSCC zIsc_FmodList[] =
- "|math.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzIsc_FmodMachs (const char**)NULL
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zIsc_FmodSelect0[] =
- "fmod\\(double\\)";
-
-#define ISC_FMOD_TEST_CT 1
-tTestDesc aIsc_FmodTests[] = {
- { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Isc_Fmod
- */
-const char* apzIsc_FmodPatch[] = { "sed",
- "-e", "s/fmod(double)/fmod(double, double)/",
+const char* apzIrix_Asm_ApostrophePatch[] = {
+ "format",
+ "%1 are",
+ "^([ \t]*#.*[Ww]e)'re",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Motorola_Nested fix
+ * Description of Irix_Multiline_Cmnt fix
*/
-#define MOTOROLA_NESTED_FIXIDX 48
-tSCC zMotorola_NestedName[] =
- "motorola_nested";
+#define IRIX_MULTILINE_CMNT_FIXIDX 45
+tSCC zIrix_Multiline_CmntName[] =
+ "irix_multiline_cmnt";
/*
* File name selection pattern
*/
-tSCC zMotorola_NestedList[] =
- "|limits.h|sys/limits.h|";
+tSCC zIrix_Multiline_CmntList[] =
+ "|sys/types.h|";
/*
* Machine/OS name selection pattern
*/
-tSCC* apzMotorola_NestedMachs[] = {
- "m68k-motorola-sysv*",
- (const char*)NULL };
-#define MOTOROLA_NESTED_TEST_CT 0
-#define aMotorola_NestedTests (tTestDesc*)NULL
+#define apzIrix_Multiline_CmntMachs (const char**)NULL
+#define IRIX_MULTILINE_CMNT_TEST_CT 0
+#define aIrix_Multiline_CmntTests (tTestDesc*)NULL
/*
- * Fix Command Arguments for Motorola_Nested
+ * Fix Command Arguments for Irix_Multiline_Cmnt
*/
-const char* apzMotorola_NestedPatch[] = { "sed",
- "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
- "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
+const char* apzIrix_Multiline_CmntPatch[] = { "sed",
+ "-e", "s@type of the result@type of the result */@",
+ "-e", "s@of the sizeof@/* of the sizeof@",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Isc_Sys_Limits fix
+ * Description of Isc_Fmod fix
*/
-#define ISC_SYS_LIMITS_FIXIDX 49
-tSCC zIsc_Sys_LimitsName[] =
- "isc_sys_limits";
+#define ISC_FMOD_FIXIDX 46
+tSCC zIsc_FmodName[] =
+ "isc_fmod";
/*
* File name selection pattern
*/
-tSCC zIsc_Sys_LimitsList[] =
- "|sys/limits.h|";
+tSCC zIsc_FmodList[] =
+ "|math.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzIsc_Sys_LimitsMachs (const char**)NULL
+#define apzIsc_FmodMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zIsc_Sys_LimitsSelect0[] =
- "CHILD_MAX";
+tSCC zIsc_FmodSelect0[] =
+ "fmod\\(double\\)";
-#define ISC_SYS_LIMITS_TEST_CT 1
-tTestDesc aIsc_Sys_LimitsTests[] = {
- { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
+#define ISC_FMOD_TEST_CT 1
+tTestDesc aIsc_FmodTests[] = {
+ { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Isc_Sys_Limits
+ * Fix Command Arguments for Isc_Fmod
*/
-const char* apzIsc_Sys_LimitsPatch[] = { "sed",
- "-e", "/CHILD_MAX/s,/\\* Max, Max,",
- "-e", "/OPEN_MAX/s,/\\* Max, Max,",
+const char* apzIsc_FmodPatch[] = {
+ "format",
+ "fmod(double, double)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Kandr_Concat fix
*/
-#define KANDR_CONCAT_FIXIDX 50
+#define KANDR_CONCAT_FIXIDX 47
tSCC zKandr_ConcatName[] =
"kandr_concat";
/*
* Fix Command Arguments for Kandr_Concat
*/
-const char* apzKandr_ConcatPatch[] = { "sed",
- "-e", "s|/\\*\\*/|##|g",
+const char* apzKandr_ConcatPatch[] = {
+ "format",
+ "##",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Limits_Ifndefs fix
*/
-#define LIMITS_IFNDEFS_FIXIDX 51
+#define LIMITS_IFNDEFS_FIXIDX 48
tSCC zLimits_IfndefsName[] =
"limits_ifndefs";
/*
* Fix Command Arguments for Limits_Ifndefs
*/
-const char* apzLimits_IfndefsPatch[] = { "sed",
- "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\
-#ifndef FLT_MIN\n",
- "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\
-#endif\n",
- "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\
-#ifndef FLT_MAX\n",
- "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\
-#endif\n",
- "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\
-#ifndef FLT_DIG\n",
- "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\
-#endif\n",
- "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\
-#ifndef DBL_MIN\n",
- "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\
-#endif\n",
- "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\
-#ifndef DBL_MAX\n",
- "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\
-#endif\n",
- "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\
-#ifndef DBL_DIG\n",
- "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\
-#endif\n",
- "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
+const char* apzLimits_IfndefsPatch[] = {
+ "format",
+ "#ifndef %1\n\
+%0#endif\n",
+ "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t][^\n\
+]*\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Lynx_Void_Int fix
*/
-#define LYNX_VOID_INT_FIXIDX 52
+#define LYNX_VOID_INT_FIXIDX 49
tSCC zLynx_Void_IntName[] =
"lynx_void_int";
* content selection pattern - do fix if pattern found
*/
tSCC zLynx_Void_IntSelect0[] =
- "#[ \t]*define[ \t]+void[ \t]+int";
+ "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
#define LYNX_VOID_INT_TEST_CT 1
tTestDesc aLynx_Void_IntTests[] = {
/*
* Fix Command Arguments for Lynx_Void_Int
*/
-const char* apzLynx_Void_IntPatch[] = { "sed",
- "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
+const char* apzLynx_Void_IntPatch[] = {
+ "format",
+ "",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Lynxos_Fcntl_Proto fix
*/
-#define LYNXOS_FCNTL_PROTO_FIXIDX 53
+#define LYNXOS_FCNTL_PROTO_FIXIDX 50
tSCC zLynxos_Fcntl_ProtoName[] =
"lynxos_fcntl_proto";
* content selection pattern - do fix if pattern found
*/
tSCC zLynxos_Fcntl_ProtoSelect0[] =
- "fcntl.*\\(int, int, int\\)";
+ "fcntl[ \t]*\\(int, int, int\\)";
#define LYNXOS_FCNTL_PROTO_TEST_CT 1
tTestDesc aLynxos_Fcntl_ProtoTests[] = {
/*
* Fix Command Arguments for Lynxos_Fcntl_Proto
*/
-const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
- "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
+const char* apzLynxos_Fcntl_ProtoPatch[] = {
+ "format",
+ "%1...)",
+ "(fcntl[ \t]*\\(int, int, )int\\)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of M88k_Bad_Hypot_Opt fix
*/
-#define M88K_BAD_HYPOT_OPT_FIXIDX 54
+#define M88K_BAD_HYPOT_OPT_FIXIDX 51
tSCC zM88k_Bad_Hypot_OptName[] =
"m88k_bad_hypot_opt";
tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
"m88k-motorola-sysv3*",
(const char*)NULL };
-#define M88K_BAD_HYPOT_OPT_TEST_CT 0
-#define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zM88k_Bad_Hypot_OptSelect0[] =
+ "^extern double hypot\\(\\);\n";
+
+#define M88K_BAD_HYPOT_OPT_TEST_CT 1
+tTestDesc aM88k_Bad_Hypot_OptTests[] = {
+ { TT_EGREP, zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for M88k_Bad_Hypot_Opt
*/
-const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
- "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
- "-e", "/^extern double hypot();$/a\\\n\
-\\/* Workaround a stupid Motorola optimization if one\\\n\
- of x or y is 0.0 and the other is negative! *\\/\\\n\
-#ifdef __STDC__\\\n\
-static __inline__ double fake_hypot (double x, double y)\\\n\
-#else\\\n\
-static __inline__ double fake_hypot (x, y)\\\n\
-\tdouble x, y;\\\n\
-#endif\\\n\
-{\\\n\
-\treturn fabs (hypot (x, y));\\\n\
-}\\\n\
+const char* apzM88k_Bad_Hypot_OptPatch[] = {
+ "format",
+ "%0/* Workaround a stupid Motorola optimization if one\n\
+ of x or y is 0.0 and the other is negative! */\n\
+#ifdef __STDC__\n\
+static __inline__ double fake_hypot (double x, double y)\n\
+#else\n\
+static __inline__ double fake_hypot (x, y)\n\
+\tdouble x, y;\n\
+#endif\n\
+{\n\
+\treturn fabs (hypot (x, y));\n\
+}\n\
#define hypot\tfake_hypot\n",
(char*)NULL };
*
* Description of M88k_Bad_S_If fix
*/
-#define M88K_BAD_S_IF_FIXIDX 55
+#define M88K_BAD_S_IF_FIXIDX 52
tSCC zM88k_Bad_S_IfName[] =
"m88k_bad_s_if";
* content selection pattern - do fix if pattern found
*/
tSCC zM88k_Bad_S_IfSelect0[] =
- "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
+ "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
#define M88K_BAD_S_IF_TEST_CT 1
tTestDesc aM88k_Bad_S_IfTests[] = {
/*
* Fix Command Arguments for M88k_Bad_S_If
*/
-const char* apzM88k_Bad_S_IfPatch[] = { "sed",
- "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(S_IF[A-Z][A-Z][A-Z][A-Z]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
- "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
+const char* apzM88k_Bad_S_IfPatch[] = {
+ "format",
+ "#define %1(m) (((m) & S_IFMT) == %2)",
+ "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of M88k_Multi_Incl fix
*/
-#define M88K_MULTI_INCL_FIXIDX 56
+#define M88K_MULTI_INCL_FIXIDX 53
tSCC zM88k_Multi_InclName[] =
"m88k_multi_incl";
*
* Description of Machine_Ansi_H_Va_List fix
*/
-#define MACHINE_ANSI_H_VA_LIST_FIXIDX 57
+#define MACHINE_ANSI_H_VA_LIST_FIXIDX 54
tSCC zMachine_Ansi_H_Va_ListName[] =
"machine_ansi_h_va_list";
*
* Description of Machine_Name fix
*/
-#define MACHINE_NAME_FIXIDX 58
+#define MACHINE_NAME_FIXIDX 55
tSCC zMachine_NameName[] =
"machine_name";
*
* Description of Math_Exception fix
*/
-#define MATH_EXCEPTION_FIXIDX 59
+#define MATH_EXCEPTION_FIXIDX 56
tSCC zMath_ExceptionName[] =
"math_exception";
*
* Description of Math_Huge_Val_From_Dbl_Max fix
*/
-#define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 60
+#define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 57
tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
"math_huge_val_from_dbl_max";
*
* Description of Math_Huge_Val_Ifndef fix
*/
-#define MATH_HUGE_VAL_IFNDEF_FIXIDX 61
+#define MATH_HUGE_VAL_IFNDEF_FIXIDX 58
tSCC zMath_Huge_Val_IfndefName[] =
"math_huge_val_ifndef";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Nested_Comment fix
+ * Description of Nested_Motorola fix
+ */
+#define NESTED_MOTOROLA_FIXIDX 59
+tSCC zNested_MotorolaName[] =
+ "nested_motorola";
+
+/*
+ * File name selection pattern
+ */
+tSCC zNested_MotorolaList[] =
+ "|limits.h|sys/limits.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+tSCC* apzNested_MotorolaMachs[] = {
+ "m68k-motorola-sysv*",
+ (const char*)NULL };
+#define NESTED_MOTOROLA_TEST_CT 0
+#define aNested_MotorolaTests (tTestDesc*)NULL
+
+/*
+ * Fix Command Arguments for Nested_Motorola
+ */
+const char* apzNested_MotorolaPatch[] = { "sed",
+ "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
+ "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description of Nested_Sys_Limits fix
+ */
+#define NESTED_SYS_LIMITS_FIXIDX 60
+tSCC zNested_Sys_LimitsName[] =
+ "nested_sys_limits";
+
+/*
+ * File name selection pattern
+ */
+tSCC zNested_Sys_LimitsList[] =
+ "|sys/limits.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+#define apzNested_Sys_LimitsMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zNested_Sys_LimitsSelect0[] =
+ "CHILD_MAX";
+
+#define NESTED_SYS_LIMITS_TEST_CT 1
+tTestDesc aNested_Sys_LimitsTests[] = {
+ { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Nested_Sys_Limits
+ */
+const char* apzNested_Sys_LimitsPatch[] = { "sed",
+ "-e", "/CHILD_MAX/s,/\\* Max, Max,",
+ "-e", "/OPEN_MAX/s,/\\* Max, Max,",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description of Nested_Auth_Des fix
*/
-#define NESTED_COMMENT_FIXIDX 62
-tSCC zNested_CommentName[] =
- "nested_comment";
+#define NESTED_AUTH_DES_FIXIDX 61
+tSCC zNested_Auth_DesName[] =
+ "nested_auth_des";
/*
* File name selection pattern
*/
-tSCC zNested_CommentList[] =
+tSCC zNested_Auth_DesList[] =
"|rpc/rpc.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzNested_CommentMachs (const char**)NULL
-#define NESTED_COMMENT_TEST_CT 0
-#define aNested_CommentTests (tTestDesc*)NULL
+#define apzNested_Auth_DesMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zNested_Auth_DesSelect0[] =
+ "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
+
+#define NESTED_AUTH_DES_TEST_CT 1
+tTestDesc aNested_Auth_DesTests[] = {
+ { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Nested_Auth_Des
+ */
+const char* apzNested_Auth_DesPatch[] = {
+ "format",
+ "%1*/ /*",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description of Nested_Ultrix fix
+ */
+#define NESTED_ULTRIX_FIXIDX 62
+tSCC zNested_UltrixName[] =
+ "nested_ultrix";
+
+/*
+ * File name selection pattern
+ */
+tSCC zNested_UltrixList[] =
+ "|rpc/svc.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+#define apzNested_UltrixMachs (const char**)NULL
+#define NESTED_ULTRIX_TEST_CT 0
+#define aNested_UltrixTests (tTestDesc*)NULL
/*
- * Fix Command Arguments for Nested_Comment
+ * Fix Command Arguments for Nested_Ultrix
*/
-const char* apzNested_CommentPatch[] = { "sed",
- "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
+const char* apzNested_UltrixPatch[] = { "sed",
+ "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Sco_Strict_Ansi fix
+ * Description of Sco_Static_Func fix
*/
-#define SCO_STRICT_ANSI_FIXIDX 76
-tSCC zSco_Strict_AnsiName[] =
- "sco_strict_ansi";
+#define SCO_STATIC_FUNC_FIXIDX 76
+tSCC zSco_Static_FuncName[] =
+ "sco_static_func";
/*
* File name selection pattern
*/
-#define zSco_Strict_AnsiList (char*)NULL
+tSCC zSco_Static_FuncList[] =
+ "|sys/stat.h|";
/*
* Machine/OS name selection pattern
*/
-tSCC* apzSco_Strict_AnsiMachs[] = {
+tSCC* apzSco_Static_FuncMachs[] = {
"i?86-*-sco3.2*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zSco_Strict_AnsiSelect0[] =
- "^[ \t]*#[ \t]*if.*!__STDC__";
+tSCC zSco_Static_FuncSelect0[] =
+ "^static int";
-#define SCO_STRICT_ANSI_TEST_CT 1
-tTestDesc aSco_Strict_AnsiTests[] = {
- { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
+#define SCO_STATIC_FUNC_TEST_CT 1
+tTestDesc aSco_Static_FuncTests[] = {
+ { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Sco_Strict_Ansi
+ * Fix Command Arguments for Sco_Static_Func
*/
-const char* apzSco_Strict_AnsiPatch[] = { "sed",
- "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
+const char* apzSco_Static_FuncPatch[] = { "sed",
+ "-e", "/^static int/i\\\n\
+#if __cplusplus\\\n\
+extern \"C\" {\\\n\
+#endif /* __cplusplus */",
+ "-e", "/^}$/a\\\n\
+#if __cplusplus\\\n\
+ }\\\n\
+#endif /* __cplusplus */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Sco_Static_Func fix
+ * Description of Sco_Strict_Ansi fix
*/
-#define SCO_STATIC_FUNC_FIXIDX 77
-tSCC zSco_Static_FuncName[] =
- "sco_static_func";
+#define SCO_STRICT_ANSI_FIXIDX 77
+tSCC zSco_Strict_AnsiName[] =
+ "sco_strict_ansi";
/*
* File name selection pattern
*/
-tSCC zSco_Static_FuncList[] =
- "|sys/stat.h|";
+#define zSco_Strict_AnsiList (char*)NULL
/*
* Machine/OS name selection pattern
*/
-tSCC* apzSco_Static_FuncMachs[] = {
+tSCC* apzSco_Strict_AnsiMachs[] = {
"i?86-*-sco3.2*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zSco_Static_FuncSelect0[] =
- "^static int";
+tSCC zSco_Strict_AnsiSelect0[] =
+ "^[ \t]*#[ \t]*if.*!__STDC__";
-#define SCO_STATIC_FUNC_TEST_CT 1
-tTestDesc aSco_Static_FuncTests[] = {
- { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
+#define SCO_STRICT_ANSI_TEST_CT 1
+tTestDesc aSco_Strict_AnsiTests[] = {
+ { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Sco_Static_Func
+ * Fix Command Arguments for Sco_Strict_Ansi
*/
-const char* apzSco_Static_FuncPatch[] = { "sed",
- "-e", "/^static int/i\\\n\
-#if __cplusplus\\\n\
-extern \"C\" {\\\n\
-#endif /* __cplusplus */",
- "-e", "/^}$/a\\\n\
-#if __cplusplus\\\n\
- }\\\n\
-#endif /* __cplusplus */",
+const char* apzSco_Strict_AnsiPatch[] = { "sed",
+ "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
+ * Description of Struct_File fix
+ */
+#define STRUCT_FILE_FIXIDX 83
+tSCC zStruct_FileName[] =
+ "struct_file";
+
+/*
+ * File name selection pattern
+ */
+tSCC zStruct_FileList[] =
+ "|rpc/xdr.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+#define apzStruct_FileMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zStruct_FileSelect0[] =
+ "^.*xdrstdio_create.*struct __file_s";
+
+#define STRUCT_FILE_TEST_CT 1
+tTestDesc aStruct_FileTests[] = {
+ { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Struct_File
+ */
+const char* apzStruct_FilePatch[] = {
+ "format",
+ "struct __file_s;\n\
+%0",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description of Struct_Sockaddr fix
+ */
+#define STRUCT_SOCKADDR_FIXIDX 84
+tSCC zStruct_SockaddrName[] =
+ "struct_sockaddr";
+
+/*
+ * File name selection pattern
+ */
+tSCC zStruct_SockaddrList[] =
+ "|rpc/auth.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+#define apzStruct_SockaddrMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zStruct_SockaddrSelect0[] =
+ "^.*authdes_create.*struct sockaddr";
+
+/*
+ * content bypass pattern - skip fix if pattern found
+ */
+tSCC zStruct_SockaddrBypass0[] =
+ "<sys/socket.h>";
+
+#define STRUCT_SOCKADDR_TEST_CT 2
+tTestDesc aStruct_SockaddrTests[] = {
+ { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
+ { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Struct_Sockaddr
+ */
+const char* apzStruct_SockaddrPatch[] = {
+ "format",
+ "struct sockaddr;\n\
+%0",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
* Description of Sun_Auth_Proto fix
*/
-#define SUN_AUTH_PROTO_FIXIDX 83
+#define SUN_AUTH_PROTO_FIXIDX 85
tSCC zSun_Auth_ProtoName[] =
"sun_auth_proto";
*
* Description of Sun_Bogus_Ifdef fix
*/
-#define SUN_BOGUS_IFDEF_FIXIDX 84
+#define SUN_BOGUS_IFDEF_FIXIDX 86
tSCC zSun_Bogus_IfdefName[] =
"sun_bogus_ifdef";
*
* Description of Sun_Bogus_Ifdef_Sun4c fix
*/
-#define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 85
+#define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 87
tSCC zSun_Bogus_Ifdef_Sun4cName[] =
"sun_bogus_ifdef_sun4c";
*
* Description of Sun_Catmacro fix
*/
-#define SUN_CATMACRO_FIXIDX 86
+#define SUN_CATMACRO_FIXIDX 88
tSCC zSun_CatmacroName[] =
"sun_catmacro";
*
* Description of Sun_Malloc fix
*/
-#define SUN_MALLOC_FIXIDX 87
+#define SUN_MALLOC_FIXIDX 89
tSCC zSun_MallocName[] =
"sun_malloc";
*
* Description of Sun_Rusers_Semi fix
*/
-#define SUN_RUSERS_SEMI_FIXIDX 88
+#define SUN_RUSERS_SEMI_FIXIDX 90
tSCC zSun_Rusers_SemiName[] =
"sun_rusers_semi";
*
* Description of Sun_Signal fix
*/
-#define SUN_SIGNAL_FIXIDX 89
+#define SUN_SIGNAL_FIXIDX 91
tSCC zSun_SignalName[] =
"sun_signal";
*
* Description of Sunos_Matherr_Decl fix
*/
-#define SUNOS_MATHERR_DECL_FIXIDX 90
+#define SUNOS_MATHERR_DECL_FIXIDX 92
tSCC zSunos_Matherr_DeclName[] =
"sunos_matherr_decl";
*
* Description of Sunos_Strlen fix
*/
-#define SUNOS_STRLEN_FIXIDX 91
+#define SUNOS_STRLEN_FIXIDX 93
tSCC zSunos_StrlenName[] =
"sunos_strlen";
*
* Description of Svr4_Getcwd fix
*/
-#define SVR4_GETCWD_FIXIDX 92
+#define SVR4_GETCWD_FIXIDX 94
tSCC zSvr4_GetcwdName[] =
"svr4_getcwd";
*
* Description of Svr4_Profil fix
*/
-#define SVR4_PROFIL_FIXIDX 93
+#define SVR4_PROFIL_FIXIDX 95
tSCC zSvr4_ProfilName[] =
"svr4_profil";
*
* Description of Systypes fix
*/
-#define SYSTYPES_FIXIDX 94
+#define SYSTYPES_FIXIDX 96
tSCC zSystypesName[] =
"systypes";
*
* Description of Systypes_Stdlib_Size_T fix
*/
-#define SYSTYPES_STDLIB_SIZE_T_FIXIDX 95
+#define SYSTYPES_STDLIB_SIZE_T_FIXIDX 97
tSCC zSystypes_Stdlib_Size_TName[] =
"systypes_stdlib_size_t";
*
* Description of Sysv68_String fix
*/
-#define SYSV68_STRING_FIXIDX 96
+#define SYSV68_STRING_FIXIDX 98
tSCC zSysv68_StringName[] =
"sysv68_string";
*
* Description of Sysz_Stdlib_For_Sun fix
*/
-#define SYSZ_STDLIB_FOR_SUN_FIXIDX 97
+#define SYSZ_STDLIB_FOR_SUN_FIXIDX 99
tSCC zSysz_Stdlib_For_SunName[] =
"sysz_stdlib_for_sun";
*
* Description of Sysz_Stdtypes_For_Sun fix
*/
-#define SYSZ_STDTYPES_FOR_SUN_FIXIDX 98
+#define SYSZ_STDTYPES_FOR_SUN_FIXIDX 100
tSCC zSysz_Stdtypes_For_SunName[] =
"sysz_stdtypes_for_sun";
*
* Description of Tinfo_Cplusplus fix
*/
-#define TINFO_CPLUSPLUS_FIXIDX 99
+#define TINFO_CPLUSPLUS_FIXIDX 101
tSCC zTinfo_CplusplusName[] =
"tinfo_cplusplus";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Ultrix_Fix_Fixproto fix
- */
-#define ULTRIX_FIX_FIXPROTO_FIXIDX 100
-tSCC zUltrix_Fix_FixprotoName[] =
- "ultrix_fix_fixproto";
-
-/*
- * File name selection pattern
- */
-tSCC zUltrix_Fix_FixprotoList[] =
- "|sys/utsname.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzUltrix_Fix_FixprotoMachs (const char**)NULL
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zUltrix_Fix_FixprotoSelect0[] =
- "ULTRIX";
-
-#define ULTRIX_FIX_FIXPROTO_TEST_CT 1
-tTestDesc aUltrix_Fix_FixprotoTests[] = {
- { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Ultrix_Fix_Fixproto
- */
-const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
- "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
-struct utsname;\n",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
* Description of Ultrix_Atof_Param fix
*/
-#define ULTRIX_ATOF_PARAM_FIXIDX 101
+#define ULTRIX_ATOF_PARAM_FIXIDX 102
tSCC zUltrix_Atof_ParamName[] =
"ultrix_atof_param";
*
* Description of Ultrix_Const fix
*/
-#define ULTRIX_CONST_FIXIDX 102
+#define ULTRIX_CONST_FIXIDX 103
tSCC zUltrix_ConstName[] =
"ultrix_const";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Ultrix_Ifdef fix
+ * Description of Ultrix_Fix_Fixproto fix
*/
-#define ULTRIX_IFDEF_FIXIDX 103
-tSCC zUltrix_IfdefName[] =
- "ultrix_ifdef";
+#define ULTRIX_FIX_FIXPROTO_FIXIDX 104
+tSCC zUltrix_Fix_FixprotoName[] =
+ "ultrix_fix_fixproto";
/*
* File name selection pattern
*/
-tSCC zUltrix_IfdefList[] =
- "|sys/file.h|";
+tSCC zUltrix_Fix_FixprotoList[] =
+ "|sys/utsname.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzUltrix_IfdefMachs (const char**)NULL
+#define apzUltrix_Fix_FixprotoMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
-tSCC zUltrix_IfdefSelect0[] =
- "#ifdef KERNEL[ \t]*[^ \t]";
+tSCC zUltrix_Fix_FixprotoSelect0[] =
+ "ULTRIX";
-#define ULTRIX_IFDEF_TEST_CT 1
-tTestDesc aUltrix_IfdefTests[] = {
- { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
+#define ULTRIX_FIX_FIXPROTO_TEST_CT 1
+tTestDesc aUltrix_Fix_FixprotoTests[] = {
+ { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
/*
- * Fix Command Arguments for Ultrix_Ifdef
+ * Fix Command Arguments for Ultrix_Fix_Fixproto
*/
-const char* apzUltrix_IfdefPatch[] = { "sed",
- "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
+const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
+ "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
+struct utsname;\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Ultrix_Nested_Cmnt fix
+ * Description of Ultrix_Ifdef fix
*/
-#define ULTRIX_NESTED_CMNT_FIXIDX 104
-tSCC zUltrix_Nested_CmntName[] =
- "ultrix_nested_cmnt";
+#define ULTRIX_IFDEF_FIXIDX 105
+tSCC zUltrix_IfdefName[] =
+ "ultrix_ifdef";
/*
* File name selection pattern
*/
-tSCC zUltrix_Nested_CmntList[] =
- "|rpc/svc.h|";
+tSCC zUltrix_IfdefList[] =
+ "|sys/file.h|";
/*
* Machine/OS name selection pattern
*/
-#define apzUltrix_Nested_CmntMachs (const char**)NULL
-#define ULTRIX_NESTED_CMNT_TEST_CT 0
-#define aUltrix_Nested_CmntTests (tTestDesc*)NULL
+#define apzUltrix_IfdefMachs (const char**)NULL
/*
- * Fix Command Arguments for Ultrix_Nested_Cmnt
+ * content selection pattern - do fix if pattern found
*/
-const char* apzUltrix_Nested_CmntPatch[] = { "sed",
- "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
+tSCC zUltrix_IfdefSelect0[] =
+ "#ifdef KERNEL[ \t]*[^ \t]";
+
+#define ULTRIX_IFDEF_TEST_CT 1
+tTestDesc aUltrix_IfdefTests[] = {
+ { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Ultrix_Ifdef
+ */
+const char* apzUltrix_IfdefPatch[] = { "sed",
+ "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Ultrix_Static fix
*/
-#define ULTRIX_STATIC_FIXIDX 105
+#define ULTRIX_STATIC_FIXIDX 106
tSCC zUltrix_StaticName[] =
"ultrix_static";
*
* Description of Undefine_Null fix
*/
-#define UNDEFINE_NULL_FIXIDX 106
+#define UNDEFINE_NULL_FIXIDX 107
tSCC zUndefine_NullName[] =
"undefine_null";
*
* Description of Unixware7_Byteorder_Fix fix
*/
-#define UNIXWARE7_BYTEORDER_FIX_FIXIDX 107
+#define UNIXWARE7_BYTEORDER_FIX_FIXIDX 108
tSCC zUnixware7_Byteorder_FixName[] =
"unixware7_byteorder_fix";
*
* Description of Va_I960_Macro fix
*/
-#define VA_I960_MACRO_FIXIDX 108
+#define VA_I960_MACRO_FIXIDX 109
tSCC zVa_I960_MacroName[] =
"va_i960_macro";
*
* Description of Void_Null fix
*/
-#define VOID_NULL_FIXIDX 109
+#define VOID_NULL_FIXIDX 110
tSCC zVoid_NullName[] =
"void_null";
*
* Description of Vxworks_Gcc_Problem fix
*/
-#define VXWORKS_GCC_PROBLEM_FIXIDX 110
+#define VXWORKS_GCC_PROBLEM_FIXIDX 111
tSCC zVxworks_Gcc_ProblemName[] =
"vxworks_gcc_problem";
*
* Description of Vxworks_Needs_Vxtypes fix
*/
-#define VXWORKS_NEEDS_VXTYPES_FIXIDX 111
+#define VXWORKS_NEEDS_VXTYPES_FIXIDX 112
tSCC zVxworks_Needs_VxtypesName[] =
"vxworks_needs_vxtypes";
*
* Description of Vxworks_Needs_Vxworks fix
*/
-#define VXWORKS_NEEDS_VXWORKS_FIXIDX 112
+#define VXWORKS_NEEDS_VXWORKS_FIXIDX 113
tSCC zVxworks_Needs_VxworksName[] =
"vxworks_needs_vxworks";
*
* Description of Vxworks_Time fix
*/
-#define VXWORKS_TIME_FIXIDX 113
+#define VXWORKS_TIME_FIXIDX 114
tSCC zVxworks_TimeName[] =
"vxworks_time";
*
* Description of X11_Class fix
*/
-#define X11_CLASS_FIXIDX 114
+#define X11_CLASS_FIXIDX 115
tSCC zX11_ClassName[] =
"x11_class";
*
* Description of X11_Class_Usage fix
*/
-#define X11_CLASS_USAGE_FIXIDX 115
+#define X11_CLASS_USAGE_FIXIDX 116
tSCC zX11_Class_UsageName[] =
"x11_class_usage";
*
* Description of X11_New fix
*/
-#define X11_NEW_FIXIDX 116
+#define X11_NEW_FIXIDX 117
tSCC zX11_NewName[] =
"x11_new";
*
* Description of X11_Sprintf fix
*/
-#define X11_SPRINTF_FIXIDX 117
+#define X11_SPRINTF_FIXIDX 118
tSCC zX11_SprintfName[] =
"x11_sprintf";
*
* List of all fixes
*/
-#define REGEX_COUNT 105
+#define REGEX_COUNT 109
#define MACH_LIST_SIZE_LIMIT 279
-#define FIX_COUNT 118
+#define FIX_COUNT 119
tFixDesc fixDescList[ FIX_COUNT ] = {
{ zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
aAvoid_BoolTests, apzAvoid_BoolPatch },
+ { zBad_LvalName, zBad_LvalList,
+ apzBad_LvalMachs,
+ BAD_LVAL_TEST_CT, FD_MACH_ONLY,
+ aBad_LvalTests, apzBad_LvalPatch },
+
{ zBad_Struct_TermName, zBad_Struct_TermList,
apzBad_Struct_TermMachs,
BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
BADQUOTE_TEST_CT, FD_MACH_ONLY,
aBadquoteTests, apzBadquotePatch },
- { zBad_LvalName, zBad_LvalList,
- apzBad_LvalMachs,
- BAD_LVAL_TEST_CT, FD_MACH_ONLY,
- aBad_LvalTests, apzBad_LvalPatch },
-
{ zBroken_Assert_StdioName, zBroken_Assert_StdioList,
apzBroken_Assert_StdioMachs,
BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
aBroken_CabsTests, apzBroken_CabsPatch },
+ { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
+ apzCtrl_Quotes_DefMachs,
+ CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch },
+
+ { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
+ apzCtrl_Quotes_UseMachs,
+ CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch },
+
+ { zCxx_UnreadyName, zCxx_UnreadyList,
+ apzCxx_UnreadyMachs,
+ CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aCxx_UnreadyTests, apzCxx_UnreadyPatch },
+
{ zDec_Intern_AsmName, zDec_Intern_AsmList,
apzDec_Intern_AsmMachs,
DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
aEcd_CursorTests, apzEcd_CursorPatch },
+ { zFix_Header_BreakageName, zFix_Header_BreakageList,
+ apzFix_Header_BreakageMachs,
+ FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aFix_Header_BreakageTests, apzFix_Header_BreakagePatch },
+
{ zHp_InlineName, zHp_InlineList,
apzHp_InlineMachs,
HP_INLINE_TEST_CT, FD_MACH_ONLY,
HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
aHp_SysfileTests, apzHp_SysfilePatch },
- { zCxx_UnreadyName, zCxx_UnreadyList,
- apzCxx_UnreadyMachs,
- CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aCxx_UnreadyTests, apzCxx_UnreadyPatch },
-
- { zHpux_MaxintName, zHpux_MaxintList,
- apzHpux_MaxintMachs,
- HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
- aHpux_MaxintTests, apzHpux_MaxintPatch },
-
- { zHpux_SystimeName, zHpux_SystimeList,
- apzHpux_SystimeMachs,
- HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
- aHpux_SystimeTests, apzHpux_SystimePatch },
-
{ zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
apzHpux8_Bogus_InlinesMachs,
HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
{ zHpux11_Uint32_CName, zHpux11_Uint32_CList,
apzHpux11_Uint32_CMachs,
- HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY,
+ HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch },
{ zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
apzIsc_Omits_With_StdcMachs,
- ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY,
+ ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch },
{ zIo_Quotes_DefName, zIo_Quotes_DefList,
IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aIo_Quotes_UseTests, apzIo_Quotes_UsePatch },
- { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
- apzCtrl_Quotes_DefMachs,
- CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch },
+ { zHpux_MaxintName, zHpux_MaxintList,
+ apzHpux_MaxintMachs,
+ HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
+ aHpux_MaxintTests, apzHpux_MaxintPatch },
- { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
- apzCtrl_Quotes_UseMachs,
- CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch },
+ { zHpux_SystimeName, zHpux_SystimeList,
+ apzHpux_SystimeMachs,
+ HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
+ aHpux_SystimeTests, apzHpux_SystimePatch },
{ zIp_Missing_SemiName, zIp_Missing_SemiList,
apzIp_Missing_SemiMachs,
IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
+ { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
+ apzIrix_Asm_ApostropheMachs,
+ IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
+
{ zIrix_Multiline_CmntName, zIrix_Multiline_CmntList,
apzIrix_Multiline_CmntMachs,
IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch },
- { zIrix_SockaddrName, zIrix_SockaddrList,
- apzIrix_SockaddrMachs,
- IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
- aIrix_SockaddrTests, apzIrix_SockaddrPatch },
-
- { zIrix_Struct__FileName, zIrix_Struct__FileList,
- apzIrix_Struct__FileMachs,
- IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
- aIrix_Struct__FileTests, apzIrix_Struct__FilePatch },
-
- { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
- apzIrix_Asm_ApostropheMachs,
- IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY,
- aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
-
{ zIsc_FmodName, zIsc_FmodList,
apzIsc_FmodMachs,
- ISC_FMOD_TEST_CT, FD_MACH_ONLY,
+ ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aIsc_FmodTests, apzIsc_FmodPatch },
- { zMotorola_NestedName, zMotorola_NestedList,
- apzMotorola_NestedMachs,
- MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
- aMotorola_NestedTests, apzMotorola_NestedPatch },
-
- { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList,
- apzIsc_Sys_LimitsMachs,
- ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
- aIsc_Sys_LimitsTests, apzIsc_Sys_LimitsPatch },
-
{ zKandr_ConcatName, zKandr_ConcatList,
apzKandr_ConcatMachs,
- KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
+ KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aKandr_ConcatTests, apzKandr_ConcatPatch },
{ zLimits_IfndefsName, zLimits_IfndefsList,
apzLimits_IfndefsMachs,
- LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
+ LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aLimits_IfndefsTests, apzLimits_IfndefsPatch },
{ zLynx_Void_IntName, zLynx_Void_IntList,
apzLynx_Void_IntMachs,
- LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
+ LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aLynx_Void_IntTests, apzLynx_Void_IntPatch },
{ zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
apzLynxos_Fcntl_ProtoMachs,
- LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
+ LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
{ zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
apzM88k_Bad_Hypot_OptMachs,
- M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY,
+ M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
{ zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
apzM88k_Bad_S_IfMachs,
- M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
+ M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
{ zM88k_Multi_InclName, zM88k_Multi_InclList,
MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch },
- { zNested_CommentName, zNested_CommentList,
- apzNested_CommentMachs,
- NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
- aNested_CommentTests, apzNested_CommentPatch },
+ { zNested_MotorolaName, zNested_MotorolaList,
+ apzNested_MotorolaMachs,
+ NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
+ aNested_MotorolaTests, apzNested_MotorolaPatch },
+
+ { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
+ apzNested_Sys_LimitsMachs,
+ NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
+ aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch },
+
+ { zNested_Auth_DesName, zNested_Auth_DesList,
+ apzNested_Auth_DesMachs,
+ NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aNested_Auth_DesTests, apzNested_Auth_DesPatch },
+
+ { zNested_UltrixName, zNested_UltrixList,
+ apzNested_UltrixMachs,
+ NESTED_ULTRIX_TEST_CT, FD_MACH_ONLY,
+ aNested_UltrixTests, apzNested_UltrixPatch },
{ zNews_Os_RecursionName, zNews_Os_RecursionList,
apzNews_Os_RecursionMachs,
RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
aRs6000_ParamTests, apzRs6000_ParamPatch },
- { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
- apzSco_Strict_AnsiMachs,
- SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
- aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
-
{ zSco_Static_FuncName, zSco_Static_FuncList,
apzSco_Static_FuncMachs,
SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
aSco_Static_FuncTests, apzSco_Static_FuncPatch },
+ { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
+ apzSco_Strict_AnsiMachs,
+ SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
+ aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
+
{ zSco_UtimeName, zSco_UtimeList,
apzSco_UtimeMachs,
SCO_UTIME_TEST_CT, FD_MACH_ONLY,
STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
aStdio_Va_ListTests, apzStdio_Va_ListPatch },
+ { zStruct_FileName, zStruct_FileList,
+ apzStruct_FileMachs,
+ STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aStruct_FileTests, apzStruct_FilePatch },
+
+ { zStruct_SockaddrName, zStruct_SockaddrList,
+ apzStruct_SockaddrMachs,
+ STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aStruct_SockaddrTests, apzStruct_SockaddrPatch },
+
{ zSun_Auth_ProtoName, zSun_Auth_ProtoList,
apzSun_Auth_ProtoMachs,
SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
- { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
- apzUltrix_Fix_FixprotoMachs,
- ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
- aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
-
{ zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
apzUltrix_Atof_ParamMachs,
ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
aUltrix_ConstTests, apzUltrix_ConstPatch },
+ { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
+ apzUltrix_Fix_FixprotoMachs,
+ ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
+ aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
+
{ zUltrix_IfdefName, zUltrix_IfdefList,
apzUltrix_IfdefMachs,
ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
aUltrix_IfdefTests, apzUltrix_IfdefPatch },
- { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList,
- apzUltrix_Nested_CmntMachs,
- ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
- aUltrix_Nested_CmntTests, apzUltrix_Nested_CmntPatch },
-
{ zUltrix_StaticName, zUltrix_StaticList,
apzUltrix_StaticMachs,
ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
/*
- * Fix `typedef struct term;' on hppa1.1-hp-hpux9.
- */
-fix = {
- hackname = bad_struct_term;
- files = curses.h;
- select = "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
- sed = "s/^[ \t]*typedef[ \t][ \t]*"
- "\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/";
- test_text = 'typedef struct term;';
-};
-
-
-/*
- * Fix one other error in this file:
- * a mismatched quote not inside a C comment.
- */
-fix = {
- hackname = badquote;
- files = sundev/vuid_event.h;
- sed = "s/doesn't/does not/";
- test_text = "/* doesn't have matched single quotes */";
-};
-
-
-/*
* Fix #defines under Alpha OSF/1:
* The following files contain '#pragma extern_prefix "_FOO"' followed by
* a '#define something(x,y,z) _FOOsomething(x,y,z)'. The intent of these
/*
+ * Fix `typedef struct term;' on hppa1.1-hp-hpux9.
+ */
+fix = {
+ hackname = bad_struct_term;
+ files = curses.h;
+ select = "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
+ sed = "s/^[ \t]*typedef[ \t][ \t]*"
+ "\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/";
+ test_text = 'typedef struct term;';
+};
+
+
+/*
+ * Fix one other error in this file:
+ * a mismatched quote not inside a C comment.
+ */
+fix = {
+ hackname = badquote;
+ files = sundev/vuid_event.h;
+ sed = "s/doesn't/does not/";
+ test_text = "/* doesn't have matched single quotes */";
+};
+
+
+/*
* check for broken assert.h that needs stdio.h
*/
fix = {
/*
+ * Fix various macros used to define ioctl numbers.
+ * The traditional syntax was:
+ *
+ * #define _CTRL(n, x) (('n'<<8)+x)
+ * #define TCTRLCFOO _CTRL(T, 1)
+ *
+ * but this does not work with the C standard, which disallows macro
+ * expansion inside strings. We have to rewrite it thus:
+ *
+ * #define _CTRL(n, x) ((n<<8)+x)
+ * #define TCTRLCFOO _CTRL('T', 1)
+ *
+ * The select expressions match too much, but the c_fix code is cautious.
+ *
+ * CTRL might be: CTRL _CTRL ISCTRL BSD43_CTRL ...
+ */
+fix = {
+ hackname = ctrl_quotes_def;
+ select = "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
+ c_fix = char_macro_def;
+ c_fix_arg = "CTRL";
+ test_text = "#define BSD43_CTRL(n, x) (('n'<<8)+x)";
+};
+
+fix = {
+ hackname = ctrl_quotes_use;
+ select = "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
+ c_fix = char_macro_use;
+ c_fix_arg = "CTRL";
+ test_text = "#define TIOCFOO BSD43_CTRL(T, 1)";
+};
+
+
+/*
+ * sys/mman.h on HP/UX is not C++ ready,
+ * even though NO_IMPLICIT_EXTERN_C is defined on HP/UX.
+ *
+ * rpc/types.h on OSF1/2.0 is not C++ ready, even though NO_IMPLICIT_EXTERN_C
+ * is defined for the alpha. The problem is the declaration of malloc.
+ */
+fix = {
+ hackname = cxx_unready;
+ files = sys/mman.h;
+ files = rpc/types.h;
+ select = '[^#]+malloc.*;'; /* Catch any form of declaration
+ not within a macro. */
+ bypass = '"C"|__BEGIN_DECLS';
+
+ c_fix = wrap;
+ c_fix_arg = "#ifdef __cplusplus\n"
+ "extern \"C\" {\n"
+ "#endif\n";
+ c_fix_arg = "#ifdef __cplusplus\n"
+ "}\n"
+ "#endif\n";
+ test_text = "extern void* malloc( size_t );";
+};
+
+
+/*
* Fix <c_asm.h> on Digital UNIX V4.0:
* It contains a prototype for a DEC C internal asm() function,
* clashing with gcc's asm keyword. So protect this with __DECC.
/*
+ * fix-header doesn't fix fabs' prototype, and I have no idea why.
+ */
+fix = {
+ hackname = fix_header_breakage;
+ mach = "m88k-motorola-sysv3*";
+ files = "math.h";
+
+ select = 'extern double floor\(\), ceil\(\), fmod\(\), fabs\(\);';
+ c_fix = format;
+ c_fix_arg =
+ 'extern double floor(), ceil(), fmod(), fabs _PARAMS((double));';
+ test_text = 'extern double floor(), ceil(), fmod(), fabs();';
+};
+
+
+/*
* Fix HP's use of ../machine/inline.h to refer to
* /usr/include/machine/inline.h
*/
/*
- * sys/mman.h on HP/UX is not C++ ready,
- * even though NO_IMPLICIT_EXTERN_C is defined on HP/UX.
- *
- * rpc/types.h on OSF1/2.0 is not C++ ready, even though NO_IMPLICIT_EXTERN_C
- * is defined for the alpha. The problem is the declaration of malloc.
- */
-fix = {
- hackname = cxx_unready;
- files = sys/mman.h;
- files = rpc/types.h;
- select = '[^#]+malloc.*;'; /* Catch any form of declaration
- not within a macro. */
- bypass = '"C"|__BEGIN_DECLS';
-
- c_fix = wrap;
- c_fix_arg = "#ifdef __cplusplus\n"
- "extern \"C\" {\n"
- "#endif\n";
- c_fix_arg = "#ifdef __cplusplus\n"
- "}\n"
- "#endif\n";
- test_text = "extern void* malloc( size_t );";
-};
-
-
-/*
- * HPUX 10.x sys/param.h defines MAXINT which clashes with values.h
- */
-fix = {
- hackname = hpux_maxint;
- files = sys/param.h;
- select = "^#[ \t]*define[ \t]*MAXINT[ \t]";
- sed = "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n"
- "#ifndef MAXINT\n";
-
- sed = "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n"
- "#endif\n";
- test_text = '#define MAXINT 0x7FFFFFFF';
-};
-
-
-/*
- * Fix hpux10.20 <sys/time.h> to avoid invalid forward decl
- */
-fix = {
- hackname = hpux_systime;
- files = sys/time.h;
- select = "^extern struct sigevent;";
- sed = "s/^extern struct sigevent;/struct sigevent;/";
- test_text = 'extern struct sigevent;';
-};
-
-
-/*
* get rid of bogus inline definitions in HP-UX 8.0
*/
fix = {
hackname = hpux8_bogus_inlines;
files = math.h;
select = inline;
- sed = "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@";
+ sed = "s@inline int abs(int [a-z][a-z]*) {.*}"
+ "@extern \"C\" int abs(int);@";
sed = "s@inline double abs(double [a-z][a-z]*) {.*}@@";
sed = "s@inline int sqr(int [a-z][a-z]*) {.*}@@";
sed = "s@inline double sqr(double [a-z][a-z]*) {.*}@@";
+ test_text = "inline int abs(int v) { return (v>=0)?v:-v; }\n"
+ "inline double sqr(double v) { return v**0.5; }";
};
* A more specific solution, the one used here, is to change the UINT32_C
* macro to not used macros in the arguments to __CONCAT__.
*/
-
fix = {
hackname = hpux11_uint32_c;
files = inttypes.h;
select = "^#define UINT32_C\\(__c\\)[ \t]*"
"__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
- sed = "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/";
+ c_fix = format;
c_fix_arg = '#define UINT32_C(__c) __CONCAT__(__c,ul)';
+ test_text =
+ "#define CONCAT_U__(__c)\t__CONCAT__(__c,u)\n"
+ "#define UINT32_C(__c)\t__CONCAT__(__CONCAT_U__(__c),l)";
};
/*
fix = {
hackname = isc_omits_with_stdc;
- files = "stdio.h";
- files = "math.h";
- files = "ctype.h";
- files = "sys/limits.h";
- files = "sys/fcntl.h";
- files = "sys/dirent.h";
-
- select = '!defined\(__STDC__\) && !defined\(_POSIX_SOURCE\)';
+ files = "stdio.h";
+ files = "math.h";
+ files = "ctype.h";
+ files = "sys/limits.h";
+ files = "sys/fcntl.h";
+ files = "sys/dirent.h";
- sed = "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/"
- "!defined(_POSIX_SOURCE)/";
+ select = '!defined\(__STDC__\) && !defined\(_POSIX_SOURCE\)';
+ c_fix = format;
+ c_fix_arg = '!defined(_POSIX_SOURCE)';
test_text = "#if !defined(__STDC__) && !defined(_POSIX_SOURCE) /* ? ! */"
"\nint foo;\n#endif";
};
c_fix_arg = "IO";
test_text = "#define TIOCFOO BSD43__IOWR(T, 1)";
};
-
-
-/*
- * Fix various macros used to define ioctl numbers.
- * The traditional syntax was:
- *
- * #define _CTRL(n, x) (('n'<<8)+x)
- * #define TCTRLCFOO _CTRL(T, 1)
- *
- * but this does not work with the C standard, which disallows macro
- * expansion inside strings. We have to rewrite it thus:
- *
- * #define _CTRL(n, x) ((n<<8)+x)
- * #define TCTRLCFOO _CTRL('T', 1)
- *
- * The select expressions match too much, but the c_fix code is cautious.
- *
- * CTRL might be: CTRL _CTRL ISCTRL BSD43_CTRL ...
- */
-fix = {
- hackname = ctrl_quotes_def;
- select = "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
- c_fix = char_macro_def;
- c_fix_arg = "CTRL";
- test_text = "#define BSD43_CTRL(n, x) (('n'<<8)+x)";
-};
-
-fix = {
- hackname = ctrl_quotes_use;
- select = "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
- c_fix = char_macro_use;
- c_fix_arg = "CTRL";
- test_text = "#define TIOCFOO BSD43_CTRL(T, 1)";
-};
/*
- * Check for missing ';' in struct
- */
-fix = {
- hackname = ip_missing_semi;
- files = netinet/ip.h;
- select = "}$";
- sed = "/^struct/,/^};/s/}$/};/";
-};
-
-
-/*
- * Some IRIX header files contain the string "//"
+ * HPUX 10.x sys/param.h defines MAXINT which clashes with values.h
*/
fix = {
- hackname = irix_multiline_cmnt;
- files = sys/types.h;
+ hackname = hpux_maxint;
+ files = sys/param.h;
+ select = "^#[ \t]*define[ \t]*MAXINT[ \t]";
+ sed = "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n"
+ "#ifndef MAXINT\n";
- sed = "s@type of the result@type of the result */@";
- sed = "s@of the sizeof@/* of the sizeof@";
+ sed = "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n"
+ "#endif\n";
+ test_text = '#define MAXINT 0x7FFFFFFF';
};
/*
- * IRIX 4.0.5 <rpc/auth.h> uses struct sockaddr
- * in prototype without previous definition.
+ * Fix hpux10.20 <sys/time.h> to avoid invalid forward decl
*/
fix = {
- hackname = irix_sockaddr;
- files = rpc/auth.h;
- select = "authdes_create.*struct sockaddr";
- bypass = "<sys/socket\.h>";
- sed = "/authdes_create.*struct sockaddr/i\\\n"
- "struct sockaddr;\n";
+ hackname = hpux_systime;
+ files = sys/time.h;
+ select = "^extern struct sigevent;";
+ sed = "s/^extern struct sigevent;/struct sigevent;/";
+ test_text = 'extern struct sigevent;';
};
/*
- * IRIX 4.0.5 <rpc/xdr.h> uses struct __file_s
- * in prototype without previous definition.
+ * Check for missing ';' in struct
*/
fix = {
- hackname = irix_struct__file;
- files = rpc/xdr.h;
- sed = "/xdrstdio_create.*struct __file_s/i\\\n"
- "struct __file_s;\n";
+ hackname = ip_missing_semi;
+ files = netinet/ip.h;
+ select = "}$";
+ sed = "/^struct/,/^};/s/}$/};/";
+ test_text=
+ "struct mumble {\n"
+ " union {\n"
+ " int x;\n"
+ " }\n"
+ "}; /* mumbled struct */\n";
};
* unterminated character constant.
*/
fix = {
- hackname = irix_asm_apostrophe;
- files = sys/asm.h;
+ hackname = irix_asm_apostrophe;
+ files = sys/asm.h;
- select = "^[ \t]*#.*[Ww]e're";
- sed = "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/";
+ select = "^[ \t]*#.*[Ww]e're";
+ c_fix = format;
+ c_fix_arg = "%1 are";
+ c_fix_arg = "^([ \t]*#.*[Ww]e)'re";
+ test_text = "\t# and we're on vacation";
};
/*
- * Fixing ISC fmod declaration
+ * Some IRIX header files contain the string "//"
*/
fix = {
- hackname = isc_fmod;
- files = math.h;
- select = 'fmod\(double\)';
- sed = "s/fmod(double)/fmod(double, double)/";
-};
+ hackname = irix_multiline_cmnt;
+ files = sys/types.h;
-
-/*
- * Fix nested comments in Motorola's <limits.h> and <sys/limits.h>
- */
-fix = {
- hackname = motorola_nested;
- mach = "m68k-motorola-sysv*";
- files = limits.h;
- files = sys/limits.h;
- sed = "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*"
- "/\\* max # bytes atomic in write to a\\)$@\\1 */@";
- sed = "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)"
- "\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@";
+ sed = "s@type of the result@type of the result */@";
+ sed = "s@of the sizeof@/* of the sizeof@";
+ test_text =
+ "/* we check the type of the result\n"
+ "// of the sizeof something. This is a bad test :-( */";
};
-
+
/*
- * Fixing nested comments in ISC <sys/limits.h>
+ * Fixing ISC fmod declaration
*/
fix = {
- hackname = isc_sys_limits;
- files = sys/limits.h;
- select = CHILD_MAX;
- sed = "/CHILD_MAX/s,/\\* Max, Max,";
- sed = "/OPEN_MAX/s,/\\* Max, Max,";
+ hackname = isc_fmod;
+ files = math.h;
+ select = 'fmod\(double\)';
+ c_fix = format;
+ c_fix_arg = "fmod(double, double)";
+ test_text = "extern double fmod(double);";
};
files = "Xm.acorn/XmP.h";
files = bsd43/bsd43_.h;
select = '/\*\*/';
- sed = 's|/\*\*/|##|g';
+ c_fix = format;
+ c_fix_arg = '##';
+ test_text = "#define __CONCAT__(a,b) a/**/b";
};
* comment. Fortunately, HP/UX already uses #ifndefs in limits.h; if
* we find a #ifndef FLT_MIN we assume that all the required #ifndefs
* are there, and we do not add them ourselves.
- * Also fix a nested comment problem in sys/limits.h on Motorola sysV68 R3V7.1
*/
fix = {
hackname = limits_ifndefs;
files = "sys/limits.h";
bypass = "ifndef[ \t]+FLT_MIN";
- sed = "/[ \t]FLT_MIN[ \t]/i\\\n#ifndef FLT_MIN\n";
- sed = "/[ \t]FLT_MIN[ \t]/a\\\n#endif\n";
- sed = "/[ \t]FLT_MAX[ \t]/i\\\n#ifndef FLT_MAX\n";
- sed = "/[ \t]FLT_MAX[ \t]/a\\\n#endif\n";
- sed = "/[ \t]FLT_DIG[ \t]/i\\\n#ifndef FLT_DIG\n";
- sed = "/[ \t]FLT_DIG[ \t]/a\\\n#endif\n";
- sed = "/[ \t]DBL_MIN[ \t]/i\\\n#ifndef DBL_MIN\n";
- sed = "/[ \t]DBL_MIN[ \t]/a\\\n#endif\n";
- sed = "/[ \t]DBL_MAX[ \t]/i\\\n#ifndef DBL_MAX\n";
- sed = "/[ \t]DBL_MAX[ \t]/a\\\n#endif\n";
- sed = "/[ \t]DBL_DIG[ \t]/i\\\n#ifndef DBL_DIG\n";
- sed = "/[ \t]DBL_DIG[ \t]/a\\\n#endif\n";
- sed = "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/";
+ c_fix = format;
+ c_fix_arg = "#ifndef %1\n%0#endif\n";
+ c_fix_arg = "^[ \t]*#[ \t]*define[ \t]+"
+ "((FLT|DBL)_(MIN|MAX|DIG))"
+ "[ \t][^\n]*\n";
+ test_text = " #\tdefine\tDBL_DIG \t 0 /* somthin' */";
};
* Delete the '#define void int' line from curses.h on Lynx
*/
fix = {
- hackname = lynx_void_int;
- files = curses.h;
- select = "#[ \t]*define[ \t]+void[ \t]+int";
- sed = "/#[ \t]*define[ \t][ \t]*void[ \t]int/d";
+ hackname = lynx_void_int;
+ files = curses.h;
+ select = "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
+ c_fix = format;
+ c_fix_arg = "";
+ test_text = "# define\tvoid\tint \t/* curses foiled again */";
};
* Fix fcntl prototype in fcntl.h on LynxOS.
*/
fix = {
- hackname = lynxos_fcntl_proto;
- files = fcntl.h;
- select = 'fcntl.*\(int, int, int\)';
- sed = 's/\(fcntl.*(int, int, \)int)/\1...)/';
+ hackname = lynxos_fcntl_proto;
+ files = fcntl.h;
+ select = "fcntl[ \t]*" '\(int, int, int\)';
+ c_fix = format;
+ c_fix_arg = '%1...)';
+ c_fix_arg = "(fcntl[ \t]*" '\(int, int, )int\)';
+ test_text = "extern int fcntl(int, int, int);";
};
/*
* libm.a on m88k-motorola-sysv3 contains a stupid optimization for
* function hypot(), which returns the second argument without even
- * looking at its value, if the other is 0.0. Another drawback is
- * that fix-header doesn't fix fabs' prototype, and I have no idea why.
+ * looking at its value, if the other is 0.0.
*/
fix = {
- hackname = m88k_bad_hypot_opt;
- mach = "m88k-motorola-sysv3*";
- files = "math.h";
-
- sed = "s/extern double floor(), ceil(), fmod(), fabs();/"
- "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/";
-
- sed = "/^extern double hypot();$/a\\\n"
- "\\/* Workaround a stupid Motorola optimization if one\\\n"
- " of x or y is 0.0 and the other is negative! *\\/\\\n"
- "#ifdef __STDC__\\\n"
- "static __inline__ double fake_hypot (double x, double y)\\\n"
- "#else\\\n"
- "static __inline__ double fake_hypot (x, y)\\\n"
- "\tdouble x, y;\\\n"
- "#endif\\\n"
- "{\\\n"
- "\treturn fabs (hypot (x, y));\\\n"
- "}\\\n"
+ hackname = m88k_bad_hypot_opt;
+ mach = "m88k-motorola-sysv3*";
+ files = "math.h";
+ select = "^extern double hypot\\(\\);\n";
+ c_fix = format;
+ c_fix_arg = "%0"
+ "/* Workaround a stupid Motorola optimization if one\n"
+ " of x or y is 0.0 and the other is negative! */\n"
+ "#ifdef __STDC__\n"
+ "static __inline__ double fake_hypot (double x, double y)\n"
+ "#else\n"
+ "static __inline__ double fake_hypot (x, y)\n"
+ "\tdouble x, y;\n"
+ "#endif\n"
+ "{\n"
+ "\treturn fabs (hypot (x, y));\n"
+ "}\n"
"#define hypot\tfake_hypot\n";
+ test_text = "extern double hypot();";
};
hackname = m88k_bad_s_if;
mach = "m88k-*-sysv3*";
files = sys/stat.h;
- select = "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
+ select = "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
- sed = "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*"
- "(m[ \t]*&[ \t]*\\(S_IF[A-Z][A-Z][A-Z][A-Z]*\\)[ \t]*)/"
- "\\1 (((m)\\&S_IFMT)==\\2)/";
-
- sed = "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*"
- "(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/"
- "\\1 (((m)\\&S_IFMT)==\\2)/";
+ c_fix = format;
+ c_fix_arg = '#define %1(m) (((m) & S_IFMT) == %2)';
+ c_fix_arg = "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+"
+ "\\(m[ \t]*&[ \t]*"
+ "(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)"
+ "[ \t]*\\)";
+ test_text = '#define S_ISREG(m) (m & S_IFREG) /* is regular? */';
};
sed = "/define[ \t]HUGE_VAL[ \t]/a\\\n#endif\n";
};
+
+/*
+ * Fix nested comments in Motorola's <limits.h> and <sys/limits.h>
+ */
+fix = {
+ hackname = nested_motorola;
+ mach = "m68k-motorola-sysv*";
+ files = limits.h;
+ files = sys/limits.h;
+ sed = "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*"
+ "/\\* max # bytes atomic in write to a\\)$@\\1 */@";
+ sed = "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)"
+ "\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@";
+};
+
+
+/*
+ * Fixing nested comments in ISC <sys/limits.h>
+ */
+fix = {
+ hackname = nested_sys_limits;
+ files = sys/limits.h;
+ select = CHILD_MAX;
+ sed = "/CHILD_MAX/s,/\\* Max, Max,";
+ sed = "/OPEN_MAX/s,/\\* Max, Max,";
+ test_text = "/*\n#define CHILD_MAX 20 /* Max, Max, ... */ /*\n"
+ "#define OPEN_MAX 20 /* Max, Max, ... */\n";
+};
+
/*
* nested comment
*/
fix = {
- hackname = nested_comment;
- files = rpc/rpc.h;
- sed = 's@^\(/\*.*rpc/auth_des.h>.*\)/\*@\1*/ /*@';
+ hackname = nested_auth_des;
+ files = rpc/rpc.h;
+ select = '(/\*.*rpc/auth_des\.h>.*)/\*';
+ c_fix = format;
+ c_fix_arg = "%1*/ /*";
+ test_text = "/*#include <rpc/auth_des.h> /* skip this */";
+};
+
+
+/*
+ * Avoid nested comments on Ultrix 4.3.
+ */
+fix = {
+ hackname = nested_ultrix;
+ files = rpc/svc.h;
+ sed = "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@";
};
/*
- * "!__STDC__" is "!defined( __STRICT_ANSI__ )"
- */
-fix = {
- hackname = sco_strict_ansi;
- mach = "i?86-*-sco3.2*";
- select = "^[ \t]*#[ \t]*if.*!__STDC__";
- sed = 's/!__STDC__/!defined(__STRICT_ANSI__)/g';
-};
-
-
-/*
* The static functions lstat() and fchmod() in <sys/stat.h>
* cause G++ grief since they're not wrapped in "if __cplusplus".
*
/*
+ * "!__STDC__" is "!defined( __STRICT_ANSI__ )"
+ */
+fix = {
+ hackname = sco_strict_ansi;
+ mach = "i?86-*-sco3.2*";
+ select = "^[ \t]*#[ \t]*if.*!__STDC__";
+ sed = 's/!__STDC__/!defined(__STRICT_ANSI__)/g';
+};
+
+
+/*
* Fix prototype declaration of utime in sys/times.h.
* In 3.2v4.0 the const is missing.
*/
/*
+ * IRIX 4.0.5 <rpc/xdr.h> uses struct __file_s
+ * in prototype without previous definition.
+ */
+fix = {
+ hackname = struct_file;
+ files = rpc/xdr.h;
+ select = '^.*xdrstdio_create.*struct __file_s';
+ c_fix = format;
+ c_fix_arg = "struct __file_s;\n%0";
+ test_text = "extern void xdrstdio_create( struct __file_s* );";
+};
+
+
+/*
+ * IRIX 4.0.5 <rpc/auth.h> uses struct sockaddr
+ * in prototype without previous definition.
+ */
+fix = {
+ hackname = struct_sockaddr;
+ files = rpc/auth.h;
+ select = "^.*authdes_create.*struct sockaddr";
+ bypass = "<sys/socket\.h>";
+ c_fix = format;
+ c_fix_arg = "struct sockaddr;\n%0";
+ test_text = "extern AUTH* authdes_create( struct sockaddr* );";
+};
+
+
+/*
* Apply fix this to all OSs since this problem seems to effect
* more than just SunOS.
*/
/*
- * Ultrix V4.[35] puts the declaration of uname before the definition
- * of struct utsname, so the prototype (added by fixproto) causes havoc.
- */
-fix = {
- hackname = ultrix_fix_fixproto;
- files = sys/utsname.h;
- select = ULTRIX;
- sed = "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n"
- "struct utsname;\n";
-};
-
-
-/*
* parameter to atof not const on DECstation Ultrix V4.0 and NEWS-OS 4.2R.
*/
fix = {
/*
- * Check for bad #ifdef line (in Ultrix 4.1)
+ * Ultrix V4.[35] puts the declaration of uname before the definition
+ * of struct utsname, so the prototype (added by fixproto) causes havoc.
*/
fix = {
- hackname = ultrix_ifdef;
- select = "#ifdef KERNEL[ \t]*[^ \t]";
- files = sys/file.h;
- sed = "s/#ifdef KERNEL/#if defined(KERNEL)/";
+ hackname = ultrix_fix_fixproto;
+ files = sys/utsname.h;
+ select = ULTRIX;
+ sed = "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n"
+ "struct utsname;\n";
};
/*
- * Avoid nested comments on Ultrix 4.3.
+ * Check for bad #ifdef line (in Ultrix 4.1)
*/
fix = {
- hackname = ultrix_nested_cmnt;
- files = rpc/svc.h;
- sed = "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@";
+ hackname = ultrix_ifdef;
+ select = "#ifdef KERNEL[ \t]*[^ \t]";
+ files = sys/file.h;
+ sed = "s/#ifdef KERNEL/#if defined(KERNEL)/";
};