From: korbb Date: Wed, 19 May 1999 08:37:57 +0000 (+0000) Subject: KandR-ification of fixincl.x X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efb1b79bbb052bf192722ead135a1c054e0791d7;p=platform%2Fupstream%2Flinaro-gcc.git KandR-ification of fixincl.x git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27024 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 860338c..13bce8f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,10 +3,10 @@ Wed May 19 03:56:56 1999 Mark Mitchell * stmt.c (expand_return): Call start_cleanup_deferral and end_cleanup_deferral around conditional code. -Wed May 19 03:10:08 1999 Bruce Korb +Wed May 19 08:40:08 1999 Bruce Korb * fixinc/fixincl.tpl: Avoid depending on ANSI C features for - filename lists. + filename lists. Utilizes new "krstr" AutoGen function. * fixinc/fixincl.x: Rebuilt. Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz) diff --git a/gcc/fixinc/fixincl.tpl b/gcc/fixinc/fixincl.tpl index b5d3170..c9064b1 100644 --- a/gcc/fixinc/fixincl.tpl +++ b/gcc/fixinc/fixincl.tpl @@ -22,7 +22,7 @@ _FOR fix =] * Description [=_eval _index 1 + "#%3d -" _printf=] [=hackname _Cap=] fix */ tSCC z[=hackname _cap=]Name[] = - [=hackname _cap _str=]; + [=hackname _cap _krstr=]; /* * File name selection pattern */[= @@ -41,7 +41,7 @@ tSCC z[=hackname _cap=]List[] = _IF mach _exist=] tSCC* apz[=hackname _cap=]Machs[] = {[= _FOR mach =] - [=mach _str=],[= + [=mach _krstr=],[= /mach=] (const char*)NULL };[= @@ -58,7 +58,7 @@ tSCC* apz[=hackname _cap=]Machs[] = {[= */[= _FOR exesel =] tSCC z[=hackname _cap=]Select[=_eval _index=][] = - [=exesel _str=];[= + [=exesel _krstr=];[= /exesel =][= _ELIF select _exist=] @@ -68,7 +68,7 @@ tSCC z[=hackname _cap=]Select[=_eval _index=][] = */[= _FOR select =] tSCC z[=hackname _cap=]Select[=_eval _index=][] = - [=select _str=];[= + [=select _krstr=];[= /select =][= _ENDIF =][= @@ -79,7 +79,7 @@ tSCC z[=hackname _cap=]Select[=_eval _index=][] = */[= _FOR bypass =] tSCC z[=hackname _cap=]Bypass[=_eval _index=][] = - [=bypass _str=];[= + [=bypass _krstr=];[= /bypass =][= _ENDIF =][= @@ -90,7 +90,7 @@ tSCC z[=hackname _cap=]Bypass[=_eval _index=][] = */[= _FOR test =] tSCC z[=hackname _cap=]Test[=_eval _index=][] = - [=test _str=];[= + [=test _krstr=];[= /test =][= _ENDIF =][= @@ -157,9 +157,9 @@ tTestDesc a[=hackname _cap=]Tests[] = {[= */ const char* apz[=hackname _cap=]Patch[] = {[= _IF sed _exist =] "sed"[=_FOR sed=], - "-e", [=sed _str=][=/sed=][= + "-e", [=sed _krstr=][=/sed=][= _ELIF shell _exist =] "sh", "-c", - [=shell _str=][= + [=shell _krstr=][= _ENDIF=], (char*)NULL }; diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x index e54a5fd..9490edf 100644 --- a/gcc/fixinc/fixincl.x +++ b/gcc/fixinc/fixincl.x @@ -58,8 +58,8 @@ tTestDesc aAix_SyswaitTests[] = { * Fix Command Arguments for Aix_Syswait */ const char* apzAix_SyswaitPatch[] = { "sed", - "-e", "/^extern pid_t wait3();$/i\\\n" - "struct rusage;\n", + "-e", "/^extern pid_t wait3();$/i\\\n\ +struct rusage;\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -140,7 +140,7 @@ tSCC zAlpha_ParensName[] = * File name selection pattern */ tSCC zAlpha_ParensList[] = - "|" "sym.h" "|"; + "|sym.h|"; /* * Machine/OS name selection pattern */ @@ -174,7 +174,7 @@ tSCC zAlpha_SbrkName[] = * File name selection pattern */ tSCC zAlpha_SbrkList[] = - "|" "unistd.h" "|"; + "|unistd.h|"; /* * Machine/OS name selection pattern */ @@ -208,7 +208,7 @@ tSCC zArm_Norcroft_HintName[] = * File name selection pattern */ tSCC zArm_Norcroft_HintList[] = - "|" "X11/Intrinsic.h" "|"; + "|X11/Intrinsic.h|"; /* * Machine/OS name selection pattern */ @@ -242,7 +242,7 @@ tSCC zArm_WcharName[] = * File name selection pattern */ tSCC zArm_WcharList[] = - "|" "stdlib.h" "|"; + "|stdlib.h|"; /* * Machine/OS name selection pattern */ @@ -277,7 +277,7 @@ tSCC zAux_AsmName[] = * File name selection pattern */ tSCC zAux_AsmList[] = - "|" "sys/param.h" "|"; + "|sys/param.h|"; /* * Machine/OS name selection pattern */ @@ -311,10 +311,7 @@ tSCC zAvoid_BoolName[] = * File name selection pattern */ tSCC zAvoid_BoolList[] = - "|" "curses.h" - "|" "curses_colr/curses.h" - "|" "term.h" - "|" "tinfo.h" "|"; + "|curses.h|curses_colr/curses.h|term.h|tinfo.h|"; /* * Machine/OS name selection pattern */ @@ -327,18 +324,18 @@ tSCC zAvoid_BoolList[] = * Fix Command Arguments for Avoid_Bool */ const char* apzAvoid_BoolPatch[] = { "sed", - "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n" - "#ifndef __cplusplus\n", - "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n" - "#endif\n", - "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n" - "#ifndef __cplusplus\n", - "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n" - "#endif\n", - "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n" - "#ifndef __cplusplus\n", - "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n" - "#endif\n", + "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n\ +#ifndef __cplusplus\n", + "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n\ +#endif\n", + "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n\ +#ifndef __cplusplus\n", + "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n\ +#endif\n", + "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\ +#ifndef __cplusplus\n", + "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -351,7 +348,7 @@ tSCC zBad_Struct_TermName[] = * File name selection pattern */ tSCC zBad_Struct_TermList[] = - "|" "curses.h" "|"; + "|curses.h|"; /* * Machine/OS name selection pattern */ @@ -385,7 +382,7 @@ tSCC zBadquoteName[] = * File name selection pattern */ tSCC zBadquoteList[] = - "|" "sundev/vuid_event.h" "|"; + "|sundev/vuid_event.h|"; /* * Machine/OS name selection pattern */ @@ -411,20 +408,7 @@ tSCC zBad_LvalName[] = * 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" "|"; + "|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 */ @@ -458,7 +442,7 @@ tSCC zBroken_Assert_StdioName[] = * File name selection pattern */ tSCC zBroken_Assert_StdioList[] = - "|" "assert.h" "|"; + "|assert.h|"; /* * Machine/OS name selection pattern */ @@ -486,8 +470,8 @@ tTestDesc aBroken_Assert_StdioTests[] = { * Fix Command Arguments for Broken_Assert_Stdio */ const char* apzBroken_Assert_StdioPatch[] = { "sed", - "-e", "1i\\\n" - "#include \n", + "-e", "1i\\\n\ +#include \n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -500,7 +484,7 @@ tSCC zBroken_Assert_StdlibName[] = * File name selection pattern */ tSCC zBroken_Assert_StdlibList[] = - "|" "assert.h" "|"; + "|assert.h|"; /* * Machine/OS name selection pattern */ @@ -528,10 +512,10 @@ tTestDesc aBroken_Assert_StdlibTests[] = { * Fix Command Arguments for Broken_Assert_Stdlib */ const char* apzBroken_Assert_StdlibPatch[] = { "sed", - "-e", "1i\\\n" - "#ifdef __cplusplus\\\n" - "#include \\\n" - "#endif\n", + "-e", "1i\\\n\ +#ifdef __cplusplus\\\n\ +#include \\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -578,7 +562,7 @@ tSCC zDec_Intern_AsmName[] = * File name selection pattern */ tSCC zDec_Intern_AsmList[] = - "|" "c_asm.h" "|"; + "|c_asm.h|"; /* * Machine/OS name selection pattern */ @@ -591,10 +575,10 @@ tSCC zDec_Intern_AsmList[] = * Fix Command Arguments for Dec_Intern_Asm */ 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", + "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\ +#ifdef __DECC\n", + "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -648,8 +632,7 @@ tSCC zEcd_CursorName[] = * File name selection pattern */ tSCC zEcd_CursorList[] = - "|" "sunwindow/win_lock.h" - "|" "sunwindow/win_cursor.h" "|"; + "|sunwindow/win_lock.h|sunwindow/win_cursor.h|"; /* * Machine/OS name selection pattern */ @@ -675,7 +658,7 @@ tSCC zSco5_Stat_WrappersName[] = * File name selection pattern */ tSCC zSco5_Stat_WrappersList[] = - "|" "sys/stat.h" "|"; + "|sys/stat.h|"; /* * Machine/OS name selection pattern */ @@ -690,15 +673,15 @@ tSCC* apzSco5_Stat_WrappersMachs[] = { * Fix Command Arguments for Sco5_Stat_Wrappers */ const char* apzSco5_Stat_WrappersPatch[] = { "sed", - "-e", "/^static int[ \t]*[a-z]*stat(/i\\\n" - "#ifdef __cplusplus\\\n" - "extern \"C\"\\\n" - "{\\\n" - "#endif\\\n", - "-e", "/^}$/a\\\n" - "#ifdef __cplusplus\\\n" - "}\\\n" - "#endif /* __cplusplus */\\\n", + "-e", "/^static int[ \t]*[a-z]*stat(/i\\\n\ +#ifdef __cplusplus\\\n\ +extern \"C\"\\\n\ +{\\\n\ +#endif\\\n", + "-e", "/^}$/a\\\n\ +#ifdef __cplusplus\\\n\ +}\\\n\ +#endif /* __cplusplus */\\\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -731,13 +714,13 @@ tTestDesc aElse_LabelTests[] = { * Fix Command Arguments for Else_Label */ const char* apzElse_LabelPatch[] = { "sed", - "-e", ":loop\n" - "/\\\\$/N\n" - "s/\\\\$/\\\\+++fixinc_eol+++/\n" - "/\\\\$/b loop\n" - "s/\\\\+++fixinc_eol+++/\\\\/g\n" - "s%^\\([ \t]*#[ \t]*else\\)[ \t]*/[^*].*%\\1%\n" - "s%^\\([ \t]*#[ \t]*else\\)[ \t]*[^/ \t].*%\\1%", + "-e", ":loop\n\ +/\\\\$/N\n\ +s/\\\\$/\\\\+++fixinc_eol+++/\n\ +/\\\\$/b loop\n\ +s/\\\\+++fixinc_eol+++/\\\\/g\n\ +s%^\\([ \t]*#[ \t]*else\\)[ \t]*/[^*].*%\\1%\n\ +s%^\\([ \t]*#[ \t]*else\\)[ \t]*[^/ \t].*%\\1%", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -770,14 +753,14 @@ tTestDesc aEndif_LabelTests[] = { * Fix Command Arguments for Endif_Label */ const char* apzEndif_LabelPatch[] = { "sed", - "-e", ":loop\n" - "/\\\\$/N\n" - "s/\\\\$/\\\\+++fixinc_eol+++/\n" - "/\\\\$/b loop\n" - "s/\\\\+++fixinc_eol+++/\\\\/g\n" - "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*/[^*].*%\\1%\n" - "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*\\*[^/].*%\\1%\n" - "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*[^/* \t].*%\\1%", + "-e", ":loop\n\ +/\\\\$/N\n\ +s/\\\\$/\\\\+++fixinc_eol+++/\n\ +/\\\\$/b loop\n\ +s/\\\\+++fixinc_eol+++/\\\\/g\n\ +s%^\\([ \t]*#[ \t]*endif\\)[ \t]*/[^*].*%\\1%\n\ +s%^\\([ \t]*#[ \t]*endif\\)[ \t]*\\*[^/].*%\\1%\n\ +s%^\\([ \t]*#[ \t]*endif\\)[ \t]*[^/* \t].*%\\1%", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -790,7 +773,7 @@ tSCC zHp_InlineName[] = * File name selection pattern */ tSCC zHp_InlineList[] = - "|" "sys/spinlock.h" "|"; + "|sys/spinlock.h|"; /* * Machine/OS name selection pattern */ @@ -825,7 +808,7 @@ tSCC zHp_SysfileName[] = * File name selection pattern */ tSCC zHp_SysfileList[] = - "|" "sys/file.h" "|"; + "|sys/file.h|"; /* * Machine/OS name selection pattern */ @@ -859,8 +842,7 @@ tSCC zCxx_UnreadyName[] = * File name selection pattern */ tSCC zCxx_UnreadyList[] = - "|" "sys/mman.h" - "|" "rpc/types.h" "|"; + "|sys/mman.h|rpc/types.h|"; /* * Machine/OS name selection pattern */ @@ -881,15 +863,15 @@ tTestDesc aCxx_UnreadyTests[] = { * Fix Command Arguments for Cxx_Unready */ const char* apzCxx_UnreadyPatch[] = { "sed", - "-e", "1i\\\n" - "#ifdef __cplusplus\\\n" - "extern \"C\" {\\\n" - "#endif\\\n" - "\n", - "-e", "$a\\\n" - "#ifdef __cplusplus\\\n" - "}\\\n" - "#endif\n", + "-e", "1i\\\n\ +#ifdef __cplusplus\\\n\ +extern \"C\" {\\\n\ +#endif\\\n\ +\n", + "-e", "$a\\\n\ +#ifdef __cplusplus\\\n\ +}\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -902,7 +884,7 @@ tSCC zHpux_MaxintName[] = * File name selection pattern */ tSCC zHpux_MaxintList[] = - "|" "sys/param.h" "|"; + "|sys/param.h|"; /* * Machine/OS name selection pattern */ @@ -915,10 +897,10 @@ tSCC zHpux_MaxintList[] = * Fix Command Arguments for Hpux_Maxint */ 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", + "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\ +#ifndef MAXINT\n", + "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -931,7 +913,7 @@ tSCC zHpux_SystimeName[] = * File name selection pattern */ tSCC zHpux_SystimeList[] = - "|" "sys/time.h" "|"; + "|sys/time.h|"; /* * Machine/OS name selection pattern */ @@ -965,12 +947,7 @@ tSCC zInteractv_Add1Name[] = * File name selection pattern */ tSCC zInteractv_Add1List[] = - "|" "stdio.h" - "|" "math.h" - "|" "ctype.h" - "|" "sys/limits.h" - "|" "sys/fcntl.h" - "|" "sys/dirent.h" "|"; + "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|"; /* * Machine/OS name selection pattern */ @@ -1007,7 +984,7 @@ tSCC zInteractv_Add2Name[] = * File name selection pattern */ tSCC zInteractv_Add2List[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -1044,7 +1021,7 @@ tSCC zInteractv_Add3Name[] = * File name selection pattern */ tSCC zInteractv_Add3List[] = - "|" "sys/limits.h" "|"; + "|sys/limits.h|"; /* * Machine/OS name selection pattern */ @@ -1154,7 +1131,7 @@ tSCC zIp_Missing_SemiName[] = * File name selection pattern */ tSCC zIp_Missing_SemiList[] = - "|" "netinet/ip.h" "|"; + "|netinet/ip.h|"; /* * Machine/OS name selection pattern */ @@ -1180,7 +1157,7 @@ tSCC zIrix_Multiline_CmntName[] = * File name selection pattern */ tSCC zIrix_Multiline_CmntList[] = - "|" "sys/types.h" "|"; + "|sys/types.h|"; /* * Machine/OS name selection pattern */ @@ -1207,7 +1184,7 @@ tSCC zIrix_SockaddrName[] = * File name selection pattern */ tSCC zIrix_SockaddrList[] = - "|" "rpc/auth.h" "|"; + "|rpc/auth.h|"; /* * Machine/OS name selection pattern */ @@ -1228,8 +1205,8 @@ tTestDesc aIrix_SockaddrTests[] = { * Fix Command Arguments for Irix_Sockaddr */ const char* apzIrix_SockaddrPatch[] = { "sed", - "-e", "/authdes_create.*struct sockaddr/i\\\n" - "struct sockaddr;\n", + "-e", "/authdes_create.*struct sockaddr/i\\\n\ +struct sockaddr;\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1242,7 +1219,7 @@ tSCC zIrix_Struct__FileName[] = * File name selection pattern */ tSCC zIrix_Struct__FileList[] = - "|" "rpc/xdr.h" "|"; + "|rpc/xdr.h|"; /* * Machine/OS name selection pattern */ @@ -1255,8 +1232,8 @@ tSCC zIrix_Struct__FileList[] = * Fix Command Arguments for Irix_Struct__File */ const char* apzIrix_Struct__FilePatch[] = { "sed", - "-e", "/xdrstdio_create.*struct __file_s/i\\\n" - "struct __file_s;\n", + "-e", "/xdrstdio_create.*struct __file_s/i\\\n\ +struct __file_s;\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1269,7 +1246,7 @@ tSCC zIsc_FmodName[] = * File name selection pattern */ tSCC zIsc_FmodList[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -1303,8 +1280,7 @@ tSCC zMotorola_NestedName[] = * File name selection pattern */ tSCC zMotorola_NestedList[] = - "|" "limits.h" - "|" "sys/limits.h" "|"; + "|limits.h|sys/limits.h|"; /* * Machine/OS name selection pattern */ @@ -1333,7 +1309,7 @@ tSCC zIsc_Sys_LimitsName[] = * File name selection pattern */ tSCC zIsc_Sys_LimitsList[] = - "|" "sys/limits.h" "|"; + "|sys/limits.h|"; /* * Machine/OS name selection pattern */ @@ -1368,24 +1344,7 @@ tSCC zKandr_ConcatName[] = * File name selection pattern */ tSCC zKandr_ConcatList[] = - "|" "sparc/asm_linkage.h" - "|" "sun3/asm_linkage.h" - "|" "sun3x/asm_linkage.h" - "|" "sun4/asm_linkage.h" - "|" "sun4c/asm_linkage.h" - "|" "sun4m/asm_linkage.h" - "|" "sun4c/debug/asm_linkage.h" - "|" "sun4m/debug/asm_linkage.h" - "|" "arm/as_support.h" - "|" "arm/mc_type.h" - "|" "arm/xcb.h" - "|" "dev/chardefmac.h" - "|" "dev/ps_irq.h" - "|" "dev/screen.h" - "|" "dev/scsi.h" - "|" "sys/tty.h" - "|" "Xm.acorn/XmP.h" - "|" "bsd43/bsd43_.h" "|"; + "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|"; /* * Machine/OS name selection pattern */ @@ -1419,7 +1378,7 @@ tSCC zLimits_IfndefsName[] = * File name selection pattern */ tSCC zLimits_IfndefsList[] = - "|" "limits.h" "|"; + "|limits.h|"; /* * Machine/OS name selection pattern */ @@ -1440,30 +1399,30 @@ tTestDesc aLimits_IfndefsTests[] = { * 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", "/[ \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/", (char*)NULL }; @@ -1477,7 +1436,7 @@ tSCC zLynx_Void_IntName[] = * File name selection pattern */ tSCC zLynx_Void_IntList[] = - "|" "curses.h" "|"; + "|curses.h|"; /* * Machine/OS name selection pattern */ @@ -1511,7 +1470,7 @@ tSCC zLynxos_Fcntl_ProtoName[] = * File name selection pattern */ tSCC zLynxos_Fcntl_ProtoList[] = - "|" "fcntl.h" "|"; + "|fcntl.h|"; /* * Machine/OS name selection pattern */ @@ -1545,7 +1504,7 @@ tSCC zM88k_Bad_Hypot_OptName[] = * File name selection pattern */ tSCC zM88k_Bad_Hypot_OptList[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -1561,19 +1520,19 @@ tSCC* apzM88k_Bad_Hypot_OptMachs[] = { */ 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" - "#define hypot\tfake_hypot\n", + "-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\ +#define hypot\tfake_hypot\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1586,7 +1545,7 @@ tSCC zM88k_Bad_S_IfName[] = * File name selection pattern */ tSCC zM88k_Bad_S_IfList[] = - "|" "sys/stat.h" "|"; + "|sys/stat.h|"; /* * Machine/OS name selection pattern */ @@ -1623,7 +1582,7 @@ tSCC zM88k_Multi_InclName[] = * File name selection pattern */ tSCC zM88k_Multi_InclList[] = - "|" "time.h" "|"; + "|time.h|"; /* * Machine/OS name selection pattern */ @@ -1646,12 +1605,12 @@ tTestDesc aM88k_Multi_InclTests[] = { * Fix Command Arguments for M88k_Multi_Incl */ const char* apzM88k_Multi_InclPatch[] = { "sh", "-c", - "echo Fixing $file, to protect against multiple inclusion. >&2\n" - " cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n" - " echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n" - " echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n" - " cat\n" - " echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"", + "echo Fixing $file, to protect against multiple inclusion. >&2\n\ + cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\ + echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\ + echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\ + cat\n\ + echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1686,41 +1645,41 @@ tTestDesc aMachine_NameTests[] = { * Fix Command Arguments for Machine_Name */ const char* apzMachine_NamePatch[] = { "sed", - "-e", ":loop\n" - "/\\\\$/N\n" - "s/\\\\$/\\\\+++fixinc_eol+++/\n" - "/\\\\$/b loop\n" - "s/\\\\+++fixinc_eol+++/\\\\/g\n" - "/#[\t ]*[el]*if/ {\n" - "\ts/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g\n" - "\ts/ M32 / __M32__ /g\n" - "\ts/ _*MIPSE\\([LB]\\) / __MIPSE\\1__ /g\n" - "\ts/ _*SYSTYPE_\\([A-Z0-9]*\\) / __SYSTYPE_\\1__ /g\n" - "\ts/ _*\\([Rr][34]\\)000 / __\\1000__ /g\n" - "\ts/ _*host_mips / __host_mips__ /g\n" - "\ts/ _*i386 / __i386__ /g\n" - "\ts/ _*mips / __mips__ /g\n" - "\ts/ bsd4\\([0-9]\\) / __bsd4\\1__ /g\n" - "\ts/ is68k / __is68k__ /g\n" - "\ts/ m68k / __m68k__ /g\n" - "\ts/ m88k / __m88k__ /g\n" - "\ts/ mc680\\([0-9]\\)0 / __mc680\\10__ /g\n" - "\ts/ news\\([0-9]*\\) / __news\\1__ /g\n" - "\ts/ ns32000 / __ns32000__ /g\n" - "\ts/ pdp11 / __pdp11__ /g\n" - "\ts/ pyr / __pyr__ /g\n" - "\ts/ sel / __sel__ /g\n" - "\ts/ sony_news / __sony_news__ /g\n" - "\ts/ sparc / __sparc__ /g\n" - "\ts/ sun\\([a-z0-9]*\\) / __sun\\1__ /g\n" - "\ts/ tahoe / __tahoe__ /g\n" - "\ts/ tower\\([_0-9]*\\) / __tower\\1__ /g\n" - "\ts/ u370 / __u370__ /g\n" - "\ts/ u3b\\([0-9]*\\) / __u3b\\1__ /g\n" - "\ts/ unix / __unix__ /g\n" - "\ts/ vax / __vax__ /g\n" - "\ts/ \\([a-zA-Z0-9_][a-zA-Z0-9_]*\\) /\\1/g\n" - "\t}", + "-e", ":loop\n\ +/\\\\$/N\n\ +s/\\\\$/\\\\+++fixinc_eol+++/\n\ +/\\\\$/b loop\n\ +s/\\\\+++fixinc_eol+++/\\\\/g\n\ +/#[\t ]*[el]*if/ {\n\ +\ts/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g\n\ +\ts/ M32 / __M32__ /g\n\ +\ts/ _*MIPSE\\([LB]\\) / __MIPSE\\1__ /g\n\ +\ts/ _*SYSTYPE_\\([A-Z0-9]*\\) / __SYSTYPE_\\1__ /g\n\ +\ts/ _*\\([Rr][34]\\)000 / __\\1000__ /g\n\ +\ts/ _*host_mips / __host_mips__ /g\n\ +\ts/ _*i386 / __i386__ /g\n\ +\ts/ _*mips / __mips__ /g\n\ +\ts/ bsd4\\([0-9]\\) / __bsd4\\1__ /g\n\ +\ts/ is68k / __is68k__ /g\n\ +\ts/ m68k / __m68k__ /g\n\ +\ts/ m88k / __m88k__ /g\n\ +\ts/ mc680\\([0-9]\\)0 / __mc680\\10__ /g\n\ +\ts/ news\\([0-9]*\\) / __news\\1__ /g\n\ +\ts/ ns32000 / __ns32000__ /g\n\ +\ts/ pdp11 / __pdp11__ /g\n\ +\ts/ pyr / __pyr__ /g\n\ +\ts/ sel / __sel__ /g\n\ +\ts/ sony_news / __sony_news__ /g\n\ +\ts/ sparc / __sparc__ /g\n\ +\ts/ sun\\([a-z0-9]*\\) / __sun\\1__ /g\n\ +\ts/ tahoe / __tahoe__ /g\n\ +\ts/ tower\\([_0-9]*\\) / __tower\\1__ /g\n\ +\ts/ u370 / __u370__ /g\n\ +\ts/ u3b\\([0-9]*\\) / __u3b\\1__ /g\n\ +\ts/ unix / __unix__ /g\n\ +\ts/ vax / __vax__ /g\n\ +\ts/ \\([a-zA-Z0-9_][a-zA-Z0-9_]*\\) /\\1/g\n\ +\t}", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1733,7 +1692,7 @@ tSCC zMath_ExceptionName[] = * File name selection pattern */ tSCC zMath_ExceptionList[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -1754,22 +1713,22 @@ tTestDesc aMath_ExceptionTests[] = { * Fix Command Arguments for Math_Exception */ const char* apzMath_ExceptionPatch[] = { "sed", - "-e", "/struct exception/i\\\n" - "#ifdef __cplusplus\\\n" - "#define exception __math_exception\\\n" - "#endif\n", - "-e", "/struct exception/a\\\n" - "#ifdef __cplusplus\\\n" - "#undef exception\\\n" - "#endif\n", - "-e", "/matherr/i\\\n" - "#ifdef __cplusplus\\\n" - "#define exception __math_exception\\\n" - "#endif\n", - "-e", "/matherr/a\\\n" - "#ifdef __cplusplus\\\n" - "#undef exception\\\n" - "#endif\n", + "-e", "/struct exception/i\\\n\ +#ifdef __cplusplus\\\n\ +#define exception __math_exception\\\n\ +#endif\n", + "-e", "/struct exception/a\\\n\ +#ifdef __cplusplus\\\n\ +#undef exception\\\n\ +#endif\n", + "-e", "/matherr/i\\\n\ +#ifdef __cplusplus\\\n\ +#define exception __math_exception\\\n\ +#endif\n", + "-e", "/matherr/a\\\n\ +#ifdef __cplusplus\\\n\ +#undef exception\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1782,7 +1741,7 @@ tSCC zMath_Gcc_IfndefsName[] = * File name selection pattern */ tSCC zMath_Gcc_IfndefsList[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -1795,19 +1754,19 @@ tSCC zMath_Gcc_IfndefsList[] = * Fix Command Arguments for Math_Gcc_Ifndefs */ const char* apzMath_Gcc_IfndefsPatch[] = { "sh", "-c", - "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n" - "\n" - "\tif ( test -n \"${dbl_max_def}\" \\\n" - "\t\t-a -n \"`egrep '#define[ \t]*HUGE_VAL[ \t]+DBL_MAX' $file`\" \\\n" - "\t\t-a -z \"`egrep '#define[ \t]+DBL_MAX[ \t]+' $file`\"\n" - "\t ) > /dev/null 2>&1\n" - "\tthen sed -e '/define[ \t]HUGE_VAL[ \t]DBL_MAX/s/DBL_MAX/$dbl_max_def/'\n" - "\telse cat ; fi |\n" - "\tsed -e'/define[ \t]HUGE_VAL[ \t]/i\\\n" - "#ifndef HUGE_VAL\n" - "' -e'/define[ \t]HUGE_VAL[ \t]/a\\\n" - "#endif\n" - "'", + "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\ +\n\ +\tif ( test -n \"${dbl_max_def}\" \\\n\ +\t\t-a -n \"`egrep '#define[ \t]*HUGE_VAL[ \t]+DBL_MAX' $file`\" \\\n\ +\t\t-a -z \"`egrep '#define[ \t]+DBL_MAX[ \t]+' $file`\"\n\ +\t ) > /dev/null 2>&1\n\ +\tthen sed -e '/define[ \t]HUGE_VAL[ \t]DBL_MAX/s/DBL_MAX/$dbl_max_def/'\n\ +\telse cat ; fi |\n\ +\tsed -e'/define[ \t]HUGE_VAL[ \t]/i\\\n\ +#ifndef HUGE_VAL\n\ +' -e'/define[ \t]HUGE_VAL[ \t]/a\\\n\ +#endif\n\ +'", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1820,7 +1779,7 @@ tSCC zNested_CommentName[] = * File name selection pattern */ tSCC zNested_CommentList[] = - "|" "rpc/rpc.h" "|"; + "|rpc/rpc.h|"; /* * Machine/OS name selection pattern */ @@ -1846,7 +1805,7 @@ tSCC zNews_Os_RecursionName[] = * File name selection pattern */ tSCC zNews_Os_RecursionList[] = - "|" "stdlib.h" "|"; + "|stdlib.h|"; /* * Machine/OS name selection pattern */ @@ -1867,10 +1826,10 @@ tTestDesc aNews_Os_RecursionTests[] = { * Fix Command Arguments for News_Os_Recursion */ const char* apzNews_Os_RecursionPatch[] = { "sed", - "-e", "/^#include /i\\\n" - "#ifdef BOGUS_RECURSION\n", - "-e", "/^#include /a\\\n" - "#endif\n", + "-e", "/^#include /i\\\n\ +#ifdef BOGUS_RECURSION\n", + "-e", "/^#include /a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -1883,7 +1842,7 @@ tSCC zNext_Math_PrefixName[] = * File name selection pattern */ tSCC zNext_Math_PrefixList[] = - "|" "ansi/math.h" "|"; + "|ansi/math.h|"; /* * Machine/OS name selection pattern */ @@ -1921,7 +1880,7 @@ tSCC zNext_TemplateName[] = * File name selection pattern */ tSCC zNext_TemplateList[] = - "|" "bsd/libc.h" "|"; + "|bsd/libc.h|"; /* * Machine/OS name selection pattern */ @@ -1956,7 +1915,7 @@ tSCC zNext_VolitileName[] = * File name selection pattern */ tSCC zNext_VolitileList[] = - "|" "ansi/stdlib.h" "|"; + "|ansi/stdlib.h|"; /* * Machine/OS name selection pattern */ @@ -1991,7 +1950,7 @@ tSCC zNext_Wait_UnionName[] = * File name selection pattern */ tSCC zNext_Wait_UnionList[] = - "|" "sys/wait.h" "|"; + "|sys/wait.h|"; /* * Machine/OS name selection pattern */ @@ -2025,7 +1984,7 @@ tSCC zNodeent_SyntaxName[] = * File name selection pattern */ tSCC zNodeent_SyntaxList[] = - "|" "netdnet/dnetdb.h" "|"; + "|netdnet/dnetdb.h|"; /* * Machine/OS name selection pattern */ @@ -2051,8 +2010,7 @@ tSCC zOsf_Namespace_AName[] = * File name selection pattern */ tSCC zOsf_Namespace_AList[] = - "|" "reg_types.h" - "|" "sys/lc_core.h" "|"; + "|reg_types.h|sys/lc_core.h|"; /* * Machine/OS name selection pattern */ @@ -2097,7 +2055,7 @@ tSCC zOsf_Namespace_BName[] = * File name selection pattern */ tSCC zOsf_Namespace_BList[] = - "|" "regex.h" "|"; + "|regex.h|"; /* * Machine/OS name selection pattern */ @@ -2127,10 +2085,10 @@ tTestDesc aOsf_Namespace_BTests[] = { * Fix Command Arguments for Osf_Namespace_B */ const char* apzOsf_Namespace_BPatch[] = { "sed", - "-e", "/#include /a\\\n" - "typedef __regex_t\tregex_t;\\\n" - "typedef __regoff_t\tregoff_t;\\\n" - "typedef __regmatch_t\tregmatch_t;\n", + "-e", "/#include /a\\\n\ +typedef __regex_t\tregex_t;\\\n\ +typedef __regoff_t\tregoff_t;\\\n\ +typedef __regmatch_t\tregmatch_t;\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2143,7 +2101,7 @@ tSCC zPthread_Page_SizeName[] = * File name selection pattern */ tSCC zPthread_Page_SizeList[] = - "|" "pthread.h" "|"; + "|pthread.h|"; /* * Machine/OS name selection pattern */ @@ -2177,7 +2135,7 @@ tSCC zRs6000_DoubleName[] = * File name selection pattern */ tSCC zRs6000_DoubleList[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -2198,10 +2156,10 @@ tTestDesc aRs6000_DoubleTests[] = { * Fix Command Arguments for Rs6000_Double */ const char* apzRs6000_DoublePatch[] = { "sed", - "-e", "/class[(]/i\\\n" - "#ifndef __cplusplus\n", - "-e", "/class[(]/a\\\n" - "#endif\n", + "-e", "/class[(]/i\\\n\ +#ifndef __cplusplus\n", + "-e", "/class[(]/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2214,7 +2172,7 @@ tSCC zRs6000_FchmodName[] = * File name selection pattern */ tSCC zRs6000_FchmodList[] = - "|" "sys/stat.h" "|"; + "|sys/stat.h|"; /* * Machine/OS name selection pattern */ @@ -2248,8 +2206,7 @@ tSCC zRs6000_ParamName[] = * File name selection pattern */ tSCC zRs6000_ParamList[] = - "|" "stdio.h" - "|" "unistd.h" "|"; + "|stdio.h|unistd.h|"; /* * Machine/OS name selection pattern */ @@ -2275,7 +2232,7 @@ tSCC zSony_IncludeName[] = * File name selection pattern */ tSCC zSony_IncludeList[] = - "|" "machine/machparam.h" "|"; + "|machine/machparam.h|"; /* * Machine/OS name selection pattern */ @@ -2309,7 +2266,7 @@ tSCC zStatsswtchName[] = * File name selection pattern */ tSCC zStatsswtchList[] = - "|" "rpcsvc/rstat.h" "|"; + "|rpcsvc/rstat.h|"; /* * Machine/OS name selection pattern */ @@ -2343,7 +2300,7 @@ tSCC zStdio_Va_ListName[] = * File name selection pattern */ tSCC zStdio_Va_ListList[] = - "|" "stdio.h" "|"; + "|stdio.h|"; /* * Machine/OS name selection pattern */ @@ -2356,24 +2313,24 @@ tSCC zStdio_Va_ListList[] = * Fix Command Arguments for Stdio_Va_List */ const char* apzStdio_Va_ListPatch[] = { "sh", "-c", - "if ( egrep \"__need___va_list\" $file ) > /dev/null 2>&1 ; then\n" - " :\n" - " else\n" - " echo \"#define __need___va_list\"\n" - " echo \"#include \"\n" - " fi\n" - "\n" - " sed -e 's@ va_list @ __gnuc_va_list @' \\\n" - " -e 's@ va_list)@ __gnuc_va_list)@' \\\n" - " -e 's@ _BSD_VA_LIST_));@ __gnuc_va_list));@' \\\n" - " -e 's@ _VA_LIST_));@ __gnuc_va_list));@' \\\n" - " -e 's@ va_list@ __va_list__@' \\\n" - " -e 's@\\*va_list@*__va_list__@' \\\n" - " -e 's@ __va_list)@ __gnuc_va_list)@' \\\n" - " -e 's@GNUC_VA_LIST@GNUC_Va_LIST@' \\\n" - " -e 's@_NEED___VA_LIST@_NEED___Va_LIST@' \\\n" - " -e 's@VA_LIST@DUMMY_VA_LIST@' \\\n" - " -e 's@_Va_LIST@_VA_LIST@'", + "if ( egrep \"__need___va_list\" $file ) > /dev/null 2>&1 ; then\n\ + :\n\ + else\n\ + echo \"#define __need___va_list\"\n\ + echo \"#include \"\n\ + fi\n\ +\n\ + sed -e 's@ va_list @ __gnuc_va_list @' \\\n\ + -e 's@ va_list)@ __gnuc_va_list)@' \\\n\ + -e 's@ _BSD_VA_LIST_));@ __gnuc_va_list));@' \\\n\ + -e 's@ _VA_LIST_));@ __gnuc_va_list));@' \\\n\ + -e 's@ va_list@ __va_list__@' \\\n\ + -e 's@\\*va_list@*__va_list__@' \\\n\ + -e 's@ __va_list)@ __gnuc_va_list)@' \\\n\ + -e 's@GNUC_VA_LIST@GNUC_Va_LIST@' \\\n\ + -e 's@_NEED___VA_LIST@_NEED___Va_LIST@' \\\n\ + -e 's@VA_LIST@DUMMY_VA_LIST@' \\\n\ + -e 's@_Va_LIST@_VA_LIST@'", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2386,8 +2343,7 @@ tSCC zSun_Bogus_IfdefName[] = * File name selection pattern */ tSCC zSun_Bogus_IfdefList[] = - "|" "hsfs/hsfs_spec.h" - "|" "hsfs/iso_spec.h" "|"; + "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|"; /* * Machine/OS name selection pattern */ @@ -2421,7 +2377,7 @@ tSCC zSun_Bogus_Ifdef_Sun4cName[] = * File name selection pattern */ tSCC zSun_Bogus_Ifdef_Sun4cList[] = - "|" "hsfs/hsnode.h" "|"; + "|hsfs/hsnode.h|"; /* * Machine/OS name selection pattern */ @@ -2455,7 +2411,7 @@ tSCC zSun_CatmacroName[] = * File name selection pattern */ tSCC zSun_CatmacroList[] = - "|" "pixrect/memvar.h" "|"; + "|pixrect/memvar.h|"; /* * Machine/OS name selection pattern */ @@ -2476,12 +2432,12 @@ tTestDesc aSun_CatmacroTests[] = { * Fix Command Arguments for Sun_Catmacro */ const char* apzSun_CatmacroPatch[] = { "sed", - "-e", "/^#define[ \t]CAT(a,b)/ i\\\n" - "#ifdef __STDC__ \\\n" - "#define CAT(a,b) a##b\\\n" - "#else\n", - "-e", "/^#define[ \t]CAT(a,b)/ a\\\n" - "#endif\n", + "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\ +#ifdef __STDC__ \\\n\ +#define CAT(a,b) a##b\\\n\ +#else\n", + "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2494,7 +2450,7 @@ tSCC zSun_MallocName[] = * File name selection pattern */ tSCC zSun_MallocList[] = - "|" "malloc.h" "|"; + "|malloc.h|"; /* * Machine/OS name selection pattern */ @@ -2523,7 +2479,7 @@ tSCC zSun_MemcpyName[] = * File name selection pattern */ tSCC zSun_MemcpyList[] = - "|" "memory.h" "|"; + "|memory.h|"; /* * Machine/OS name selection pattern */ @@ -2544,26 +2500,26 @@ tTestDesc aSun_MemcpyTests[] = { * Fix Command Arguments for Sun_Memcpy */ const char* apzSun_MemcpyPatch[] = { "sed", - "-e", "1i\\\n" - "/* This file was generated by fixincludes */\\\n" - "#ifndef __memory_h__\\\n" - "#define __memory_h__\\\n" - "\\\n" - "#ifdef __STDC__\\\n" - "extern void *memccpy();\\\n" - "extern void *memchr();\\\n" - "extern void *memcpy();\\\n" - "extern void *memset();\\\n" - "#else\\\n" - "extern char *memccpy();\\\n" - "extern char *memchr();\\\n" - "extern char *memcpy();\\\n" - "extern char *memset();\\\n" - "#endif /* __STDC__ */\\\n" - "\\\n" - "extern int memcmp();\\\n" - "\\\n" - "#endif /* __memory_h__ */\n", + "-e", "1i\\\n\ +/* This file was generated by fixincludes */\\\n\ +#ifndef __memory_h__\\\n\ +#define __memory_h__\\\n\ +\\\n\ +#ifdef __STDC__\\\n\ +extern void *memccpy();\\\n\ +extern void *memchr();\\\n\ +extern void *memcpy();\\\n\ +extern void *memset();\\\n\ +#else\\\n\ +extern char *memccpy();\\\n\ +extern char *memchr();\\\n\ +extern char *memcpy();\\\n\ +extern char *memset();\\\n\ +#endif /* __STDC__ */\\\n\ +\\\n\ +extern int memcmp();\\\n\ +\\\n\ +#endif /* __memory_h__ */\n", "-e", "1,$d", (char*)NULL }; @@ -2577,7 +2533,7 @@ tSCC zSun_Rusers_SemiName[] = * File name selection pattern */ tSCC zSun_Rusers_SemiList[] = - "|" "rpcsvc/rusers.h" "|"; + "|rpcsvc/rusers.h|"; /* * Machine/OS name selection pattern */ @@ -2611,8 +2567,7 @@ tSCC zSun_SignalName[] = * File name selection pattern */ tSCC zSun_SignalList[] = - "|" "sys/signal.h" - "|" "signal.h" "|"; + "|sys/signal.h|signal.h|"; /* * Machine/OS name selection pattern */ @@ -2633,12 +2588,12 @@ tTestDesc aSun_SignalTests[] = { * Fix Command Arguments for Sun_Signal */ const char* apzSun_SignalPatch[] = { "sed", - "-e", "/^void\t(\\*signal())();$/i\\\n" - "#ifdef __cplusplus\\\n" - "void\t(*signal(...))(...);\\\n" - "#else\n", - "-e", "/^void\t(\\*signal())();$/a\\\n" - "#endif\n", + "-e", "/^void\t(\\*signal())();$/i\\\n\ +#ifdef __cplusplus\\\n\ +void\t(*signal(...))(...);\\\n\ +#else\n", + "-e", "/^void\t(\\*signal())();$/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2651,10 +2606,7 @@ tSCC zSun_Auth_ProtoName[] = * File name selection pattern */ tSCC zSun_Auth_ProtoList[] = - "|" "rpc/auth.h" - "|" "rpc/clnt.h" - "|" "rpc/svc.h" - "|" "rpc/xdr.h" "|"; + "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|"; /* * Machine/OS name selection pattern */ @@ -2682,12 +2634,12 @@ tTestDesc aSun_Auth_ProtoTests[] = { * Fix Command Arguments for Sun_Auth_Proto */ const char* apzSun_Auth_ProtoPatch[] = { "sed", - "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n" - "#ifdef __cplusplus\\\n" - "\\1...\\2\\\n" - "#else\\\n" - "\\1\\2\\\n" - "#endif/", + "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\ +#ifdef __cplusplus\\\n\ +\\1...\\2\\\n\ +#else\\\n\ +\\1\\2\\\n\ +#endif/", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2700,7 +2652,7 @@ tSCC zSunos_Matherr_DeclName[] = * File name selection pattern */ tSCC zSunos_Matherr_DeclList[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -2714,8 +2666,8 @@ tSCC zSunos_Matherr_DeclList[] = */ const char* apzSunos_Matherr_DeclPatch[] = { "sed", "-e", "/^struct exception/,$b", - "-e", "/matherr/i\\\n" - "struct exception;\n", + "-e", "/matherr/i\\\n\ +struct exception;\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2728,7 +2680,7 @@ tSCC zSunos_StrlenName[] = * File name selection pattern */ tSCC zSunos_StrlenList[] = - "|" "strings.h" "|"; + "|strings.h|"; /* * Machine/OS name selection pattern */ @@ -2754,12 +2706,7 @@ tSCC zSystypesName[] = * File name selection pattern */ tSCC zSystypesList[] = - "|" "sys/types.h" - "|" "stdlib.h" - "|" "sys/stdtypes.h" - "|" "stddef.h" - "|" "memory.h" - "|" "unistd.h" "|"; + "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|"; /* * Machine/OS name selection pattern */ @@ -2781,29 +2728,29 @@ tTestDesc aSystypesTests[] = { */ 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/^\\([ \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", "/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", "/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 }; @@ -2817,7 +2764,7 @@ tSCC zSystypes_For_AixName[] = * File name selection pattern */ tSCC zSystypes_For_AixList[] = - "|" "sys/types.h" "|"; + "|sys/types.h|"; /* * Machine/OS name selection pattern */ @@ -2845,11 +2792,11 @@ tTestDesc aSystypes_For_AixTests[] = { * Fix Command Arguments for Systypes_For_Aix */ const char* apzSystypes_For_AixPatch[] = { "sed", - "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n" - "#ifndef _GCC_SIZE_T\\\n" - "#define _GCC_SIZE_T\n", - "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n" - "#endif\n", + "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\ +#ifndef _GCC_SIZE_T\\\n\ +#define _GCC_SIZE_T\n", + "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2862,7 +2809,7 @@ tSCC zSysv68_StringName[] = * File name selection pattern */ tSCC zSysv68_StringList[] = - "|" "string.h" "|"; + "|string.h|"; /* * Machine/OS name selection pattern */ @@ -2881,9 +2828,9 @@ const char* apzSysv68_StringPatch[] = { "sed", "-e", "/^extern char$/N", "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/", "-e", "/^\tstrncmp(),$/N", - "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n" - "extern unsigned int\\\n" - "\\2/", + "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ +extern unsigned int\\\n\ +\\2/", "-e", "/^extern int$/N", "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/", (char*)NULL }; @@ -2898,7 +2845,7 @@ tSCC zSysz_Stdlib_For_SunName[] = * File name selection pattern */ tSCC zSysz_Stdlib_For_SunList[] = - "|" "stdlib.h" "|"; + "|stdlib.h|"; /* * Machine/OS name selection pattern */ @@ -2917,11 +2864,11 @@ const char* apzSysz_Stdlib_For_SunPatch[] = { "sed", "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g", "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g", "-e", "s/int[ \t][ \t]*exit/void\texit/g", - "-e", "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n" - "#ifndef _GCC_SIZE_T\\\n" - "#define _GCC_SIZE_T\n", - "-e", "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/a\\\n" - "#endif\n", + "-e", "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n\ +#ifndef _GCC_SIZE_T\\\n\ +#define _GCC_SIZE_T\n", + "-e", "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2934,7 +2881,7 @@ tSCC zSysz_Stdtypes_For_SunName[] = * File name selection pattern */ tSCC zSysz_Stdtypes_For_SunList[] = - "|" "sys/stdtypes.h" "|"; + "|sys/stdtypes.h|"; /* * Machine/OS name selection pattern */ @@ -2947,21 +2894,21 @@ tSCC zSysz_Stdtypes_For_SunList[] = * 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", + "-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 }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -2974,7 +2921,7 @@ tSCC zTinfo_CplusplusName[] = * File name selection pattern */ tSCC zTinfo_CplusplusList[] = - "|" "tinfo.h" "|"; + "|tinfo.h|"; /* * Machine/OS name selection pattern */ @@ -3000,7 +2947,7 @@ tSCC zUltrix_Ansi_CompatName[] = * File name selection pattern */ tSCC zUltrix_Ansi_CompatList[] = - "|" "ansi_compat.h" "|"; + "|ansi_compat.h|"; /* * Machine/OS name selection pattern */ @@ -3021,8 +2968,8 @@ tTestDesc aUltrix_Ansi_CompatTests[] = { * Fix Command Arguments for Ultrix_Ansi_Compat */ const char* apzUltrix_Ansi_CompatPatch[] = { "sed", - "-e", "1i\\\n" - "/* This file intentionally left blank. */\n", + "-e", "1i\\\n\ +/* This file intentionally left blank. */\n", "-e", "1,$d", (char*)NULL }; @@ -3036,7 +2983,7 @@ tSCC zUltrix_Fix_FixprotoName[] = * File name selection pattern */ tSCC zUltrix_Fix_FixprotoList[] = - "|" "sys/utsname.h" "|"; + "|sys/utsname.h|"; /* * Machine/OS name selection pattern */ @@ -3057,8 +3004,8 @@ tTestDesc aUltrix_Fix_FixprotoTests[] = { * 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", + "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\ +struct utsname;\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3071,7 +3018,7 @@ tSCC zUltrix_Atof_ParamName[] = * File name selection pattern */ tSCC zUltrix_Atof_ParamList[] = - "|" "math.h" "|"; + "|math.h|"; /* * Machine/OS name selection pattern */ @@ -3101,7 +3048,7 @@ tSCC zUltrix_ConstName[] = * File name selection pattern */ tSCC zUltrix_ConstList[] = - "|" "stdio.h" "|"; + "|stdio.h|"; /* * Machine/OS name selection pattern */ @@ -3135,7 +3082,7 @@ tSCC zUltrix_IfdefName[] = * File name selection pattern */ tSCC zUltrix_IfdefList[] = - "|" "sys/file.h" "|"; + "|sys/file.h|"; /* * Machine/OS name selection pattern */ @@ -3169,7 +3116,7 @@ tSCC zUltrix_Nested_CmntName[] = * File name selection pattern */ tSCC zUltrix_Nested_CmntList[] = - "|" "rpc/svc.h" "|"; + "|rpc/svc.h|"; /* * Machine/OS name selection pattern */ @@ -3195,7 +3142,7 @@ tSCC zUltrix_StaticName[] = * File name selection pattern */ tSCC zUltrix_StaticList[] = - "|" "machine/cpu.h" "|"; + "|machine/cpu.h|"; /* * Machine/OS name selection pattern */ @@ -3258,8 +3205,8 @@ tTestDesc aUndefine_NullTests[] = { * Fix Command Arguments for Undefine_Null */ const char* apzUndefine_NullPatch[] = { "sed", - "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n" - "#undef NULL\n", + "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n\ +#undef NULL\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3272,7 +3219,7 @@ tSCC zVa_I960_MacroName[] = * File name selection pattern */ tSCC zVa_I960_MacroList[] = - "|" "arch/i960/archI960.h" "|"; + "|arch/i960/archI960.h|"; /* * Machine/OS name selection pattern */ @@ -3309,17 +3256,7 @@ tSCC zVoid_NullName[] = * File name selection pattern */ tSCC zVoid_NullList[] = - "|" "curses.h" - "|" "dbm.h" - "|" "locale.h" - "|" "stdio.h" - "|" "stdlib.h" - "|" "string.h" - "|" "time.h" - "|" "unistd.h" - "|" "sys/dir.h" - "|" "sys/param.h" - "|" "sys/types.h" "|"; + "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|"; /* * Machine/OS name selection pattern */ @@ -3353,7 +3290,7 @@ tSCC zVxworks_Gcc_ProblemName[] = * File name selection pattern */ tSCC zVxworks_Gcc_ProblemList[] = - "|" "types/vxTypesBase.h" "|"; + "|types/vxTypesBase.h|"; /* * Machine/OS name selection pattern */ @@ -3375,21 +3312,21 @@ tTestDesc aVxworks_Gcc_ProblemTests[] = { */ const char* apzVxworks_Gcc_ProblemPatch[] = { "sed", "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", - "-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", + "-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 }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3402,7 +3339,7 @@ tSCC zVxworks_Needs_VxtypesName[] = * File name selection pattern */ tSCC zVxworks_Needs_VxtypesList[] = - "|" "time.h" "|"; + "|time.h|"; /* * Machine/OS name selection pattern */ @@ -3436,7 +3373,7 @@ tSCC zVxworks_Needs_VxworksName[] = * File name selection pattern */ tSCC zVxworks_Needs_VxworksList[] = - "|" "sys/stat.h" "|"; + "|sys/stat.h|"; /* * Machine/OS name selection pattern */ @@ -3470,8 +3407,8 @@ tTestDesc aVxworks_Needs_VxworksTests[] = { * Fix Command Arguments for Vxworks_Needs_Vxworks */ const char* apzVxworks_Needs_VxworksPatch[] = { "sed", - "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n" - "#include \n", + "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ +#include \n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3484,7 +3421,7 @@ tSCC zVxworks_TimeName[] = * File name selection pattern */ tSCC zVxworks_TimeList[] = - "|" "time.h" "|"; + "|time.h|"; /* * Machine/OS name selection pattern */ @@ -3512,15 +3449,15 @@ tTestDesc aVxworks_TimeTests[] = { * Fix Command Arguments for Vxworks_Time */ const char* apzVxworks_TimePatch[] = { "sed", - "-e", "/VOIDFUNCPTR/i\\\n" - "#ifndef __gcc_VOIDFUNCPTR_defined\\\n" - "#ifdef __cplusplus\\\n" - "typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n" - "#else\\\n" - "typedef void (*__gcc_VOIDFUNCPTR) ();\\\n" - "#endif\\\n" - "#define __gcc_VOIDFUNCPTR_defined\\\n" - "#endif\n", + "-e", "/VOIDFUNCPTR/i\\\n\ +#ifndef __gcc_VOIDFUNCPTR_defined\\\n\ +#ifdef __cplusplus\\\n\ +typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\ +#else\\\n\ +typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\ +#endif\\\n\ +#define __gcc_VOIDFUNCPTR_defined\\\n\ +#endif\n", "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g", (char*)NULL }; @@ -3534,7 +3471,7 @@ tSCC zX11_ClassName[] = * File name selection pattern */ tSCC zX11_ClassList[] = - "|" "X11/ShellP.h" "|"; + "|X11/ShellP.h|"; /* * Machine/OS name selection pattern */ @@ -3555,12 +3492,12 @@ tTestDesc aX11_ClassTests[] = { * Fix Command Arguments for X11_Class */ const char* apzX11_ClassPatch[] = { "sed", - "-e", "/char \\*class;/i\\\n" - "#ifdef __cplusplus\\\n" - "\tchar *c_class;\\\n" - "#else\n", - "-e", "/char \\*class;/a\\\n" - "#endif\n", + "-e", "/char \\*class;/i\\\n\ +#ifdef __cplusplus\\\n\ +\tchar *c_class;\\\n\ +#else\n", + "-e", "/char \\*class;/a\\\n\ +#endif\n", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3573,7 +3510,7 @@ tSCC zX11_Class_UsageName[] = * File name selection pattern */ tSCC zX11_Class_UsageList[] = - "|" "Xm/BaseClassI.h" "|"; + "|Xm/BaseClassI.h|"; /* * Machine/OS name selection pattern */ @@ -3607,7 +3544,7 @@ tSCC zX11_NewName[] = * File name selection pattern */ tSCC zX11_NewList[] = - "|" "Xm/Traversal.h" "|"; + "|Xm/Traversal.h|"; /* * Machine/OS name selection pattern */ @@ -3628,12 +3565,12 @@ tTestDesc aX11_NewTests[] = { * Fix Command Arguments for X11_New */ const char* apzX11_NewPatch[] = { "sed", - "-e", "/Widget\told, new;/i\\\n" - "#ifdef __cplusplus\\\n" - "\tWidget\told, c_new;\\\n" - "#else\n", - "-e", "/Widget\told, new;/a\\\n" - "#endif\n", + "-e", "/Widget\told, new;/i\\\n\ +#ifdef __cplusplus\\\n\ +\tWidget\told, c_new;\\\n\ +#else\n", + "-e", "/Widget\told, new;/a\\\n\ +#endif\n", "-e", "s/Widget new,/Widget c_new,/g", (char*)NULL }; @@ -3647,7 +3584,7 @@ tSCC zX11_SprintfName[] = * File name selection pattern */ tSCC zX11_SprintfList[] = - "|" "X11*/Xmu.h" "|"; + "|X11*/Xmu.h|"; /* * Machine/OS name selection pattern */ @@ -3660,9 +3597,9 @@ tSCC zX11_SprintfList[] = * Fix Command Arguments for X11_Sprintf */ const char* apzX11_SprintfPatch[] = { "sed", - "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n" - "extern char *\tsprintf();\\\n" - "#endif /* !defined __STDC__ */,", + "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\ +extern char *\tsprintf();\\\n\ +#endif /* !defined __STDC__ */,", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3675,7 +3612,7 @@ tSCC zZzz_Ki_IfaceName[] = * File name selection pattern */ tSCC zZzz_Ki_IfaceList[] = - "|" "sys/ki_iface.h" "|"; + "|sys/ki_iface.h|"; /* * Machine/OS name selection pattern */ @@ -3696,9 +3633,9 @@ tTestDesc aZzz_Ki_IfaceTests[] = { * Fix Command Arguments for Zzz_Ki_Iface */ const char* apzZzz_Ki_IfacePatch[] = { "sh", "-c", - "echo \"Removing incorrect fix to <$file>\" >&2\n" - "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n" - "cat > /dev/null", + "echo \"Removing incorrect fix to <$file>\" >&2\n\ +rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\ +cat > /dev/null", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3711,7 +3648,7 @@ tSCC zZzz_KiName[] = * File name selection pattern */ tSCC zZzz_KiList[] = - "|" "sys/ki.h" "|"; + "|sys/ki.h|"; /* * Machine/OS name selection pattern */ @@ -3732,9 +3669,9 @@ tTestDesc aZzz_KiTests[] = { * Fix Command Arguments for Zzz_Ki */ const char* apzZzz_KiPatch[] = { "sh", "-c", - "echo \"Removing incorrect fix to <$file>\" >&2\n" - "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n" - "cat > /dev/null", + "echo \"Removing incorrect fix to <$file>\" >&2\n\ +rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\ +cat > /dev/null", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3747,7 +3684,7 @@ tSCC zZzz_Ki_CallsName[] = * File name selection pattern */ tSCC zZzz_Ki_CallsList[] = - "|" "sys/ki_calls.h" "|"; + "|sys/ki_calls.h|"; /* * Machine/OS name selection pattern */ @@ -3768,9 +3705,9 @@ tTestDesc aZzz_Ki_CallsTests[] = { * Fix Command Arguments for Zzz_Ki_Calls */ const char* apzZzz_Ki_CallsPatch[] = { "sh", "-c", - "echo \"Removing incorrect fix to <$file>\" >&2\n" - "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n" - "cat > /dev/null", + "echo \"Removing incorrect fix to <$file>\" >&2\n\ +rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\ +cat > /dev/null", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3783,7 +3720,7 @@ tSCC zZzz_Ki_DefsName[] = * File name selection pattern */ tSCC zZzz_Ki_DefsList[] = - "|" "sys/ki_defs.h" "|"; + "|sys/ki_defs.h|"; /* * Machine/OS name selection pattern */ @@ -3804,9 +3741,9 @@ tTestDesc aZzz_Ki_DefsTests[] = { * Fix Command Arguments for Zzz_Ki_Defs */ const char* apzZzz_Ki_DefsPatch[] = { "sh", "-c", - "echo \"Removing incorrect fix to <$file>\" >&2\n" - "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n" - "cat > /dev/null", + "echo \"Removing incorrect fix to <$file>\" >&2\n\ +rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\ +cat > /dev/null", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3819,7 +3756,7 @@ tSCC zZzz_Bad_FixesName[] = * File name selection pattern */ tSCC zZzz_Bad_FixesList[] = - "|" "sundev/ipi_error.h" "|"; + "|sundev/ipi_error.h|"; /* * Machine/OS name selection pattern */ @@ -3832,9 +3769,9 @@ tSCC zZzz_Bad_FixesList[] = * Fix Command Arguments for Zzz_Bad_Fixes */ const char* apzZzz_Bad_FixesPatch[] = { "sh", "-c", - "echo \"Removing incorrect fix to <$file>\" >&2\n" - "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n" - "cat > /dev/null", + "echo \"Removing incorrect fix to <$file>\" >&2\n\ +rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\ +cat > /dev/null", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * @@ -3847,7 +3784,7 @@ tSCC zZzz_TimeName[] = * File name selection pattern */ tSCC zZzz_TimeList[] = - "|" "sys/time.h" "|"; + "|sys/time.h|"; /* * Machine/OS name selection pattern */ @@ -3868,9 +3805,9 @@ tTestDesc aZzz_TimeTests[] = { * Fix Command Arguments for Zzz_Time */ const char* apzZzz_TimePatch[] = { "sh", "-c", - "echo \"Removing incorrect fix to <$file>\" >&2\n" - "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n" - "cat > /dev/null", + "echo \"Removing incorrect fix to <$file>\" >&2\n\ +rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\ +cat > /dev/null", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * *