Commit c16b55aa by Bruce Korb

Added exclusion of C++ files for double slash fix

From-SVN: r20117
parent 8a5b8e20
/* /*
* $Id: fixincl.c,v 1.1 1998/03/20 16:19:41 korbb Exp $ * $Id: fixincl.c,v 1.4 1998/08/05 10:20:11 korbb Exp $
* *
* Install modified versions of certain ANSI-incompatible system header * Install modified versions of certain ANSI-incompatible system header
* files which are fixed to work correctly with ANSI C and placed in a * files which are fixed to work correctly with ANSI C and placed in a
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stropts.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
...@@ -36,8 +35,6 @@ ...@@ -36,8 +35,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <stropts.h>
#include <poll.h>
#include <fcntl.h> #include <fcntl.h>
#include <ctype.h> #include <ctype.h>
...@@ -138,7 +135,7 @@ main (argc, argv) ...@@ -138,7 +135,7 @@ main (argc, argv)
if (strcmp (argv[1], "-v") == 0) if (strcmp (argv[1], "-v") == 0)
{ {
fputs ("$Id: fixincl.c,v 1.1 1998/03/20 16:19:41 korbb Exp $\n", stderr); fputs ("$Id: fixincl.c,v 1.3 1998/06/02 07:00:12 korbb Exp $\n", stderr);
exit (EXIT_SUCCESS); exit (EXIT_SUCCESS);
} }
...@@ -448,17 +445,18 @@ createFile (pzFile) ...@@ -448,17 +445,18 @@ createFile (pzFile)
} }
tSuccess tSuccess
testTest (pTest) testTest (pTest, pzFile)
tTestDesc *pTest; tTestDesc *pTest;
char* pzFile;
{ {
char *pzRes; char *pzRes;
tSuccess res = FAILURE; tSuccess res = FAILURE;
static char zCmdBuf[4096]; static char zCmdBuf[4096];
tSCC zCmdFmt[] = "if ( test %s ) > /dev/null 2>&1\n" tSCC zCmdFmt[] = "f=%s\nif ( test %s ) > /dev/null 2>&1\n"
"then echo TRUE\n" "else echo FALSE\n" "fi"; "then echo TRUE\n" "else echo FALSE\n" "fi";
sprintf (zCmdBuf, zCmdFmt, pTest->pzTest); sprintf (zCmdBuf, zCmdFmt, pzFile, pTest->pzTest);
pzRes = runShell (zCmdBuf); pzRes = runShell (zCmdBuf);
if (*pzRes == 'T') if (*pzRes == 'T')
res = SUCCESS; res = SUCCESS;
...@@ -643,7 +641,7 @@ process (pzDta, pzDir, pzFile) ...@@ -643,7 +641,7 @@ process (pzDta, pzDir, pzFile)
* IF *any* of the shell tests fail, * IF *any* of the shell tests fail,
* THEN do not process the fix. * THEN do not process the fix.
*/ */
if (!SUCCESSFUL (testTest (pTD))) if (!SUCCESSFUL (testTest (pTD, pzFile)))
goto nextFix; goto nextFix;
break; break;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# DO NOT EDIT THIS FILE (fixincl.sh) # DO NOT EDIT THIS FILE (fixincl.sh)
# #
# It has been autogen-ed Thursday March 19, 1998 at 08:37:00 AM PST # It has been autogen-ed Thursday May 28, 1998 at 08:21:16 AM PDT
# From the definitions inclhack.def # From the definitions inclhack.def
# and the template file inclhack.tpl # and the template file inclhack.tpl
# #
...@@ -14,19 +14,19 @@ ...@@ -14,19 +14,19 @@
# #
# See README-fixinc for more information. # See README-fixinc for more information.
# #
# inclhack is free software. # fixincludes is free software.
# #
# You may redistribute it and/or modify it under the terms of the # You may redistribute it and/or modify it under the terms of the
# GNU General Public License, as published by the Free Software # GNU General Public License, as published by the Free Software
# Foundation; either version 2, or (at your option) any later version. # Foundation; either version 2, or (at your option) any later version.
# #
# inclhack is distributed in the hope that it will be useful, # fixincludes is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details. # See the GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with inclhack. See the file "COPYING". If not, # along with fixincludes. See the file "COPYING". If not,
# write to: The Free Software Foundation, Inc., # write to: The Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, # 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA. # Boston, MA 02111-1307, USA.
...@@ -80,6 +80,7 @@ if test -z "${target_canonical}" ; then ...@@ -80,6 +80,7 @@ if test -z "${target_canonical}" ; then
target_canonical="`config.guess`" ; fi target_canonical="`config.guess`" ; fi
test -z "${target_canonical}" && target_canonical=unknown test -z "${target_canonical}" && target_canonical=unknown
fi fi
export target_canonical
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
...@@ -108,7 +109,7 @@ case $LIB in ...@@ -108,7 +109,7 @@ case $LIB in
;; ;;
esac esac
echo Building fixed headers in ${LIB} echo Fixing headers into ${LIB} for ${target_canonical} target
# Determine whether this system has symbolic links. # Determine whether this system has symbolic links.
if ln -s X $LIB/ShouldNotExist 2>/dev/null; then if ln -s X $LIB/ShouldNotExist 2>/dev/null; then
......
/* /*
* DO NOT EDIT THIS FILE (fixincl.x) * DO NOT EDIT THIS FILE (fixincl.x)
* *
* It has been autogen-ed Thursday March 19, 1998 at 08:34:20 AM PST * It has been autogen-ed Thursday May 28, 1998 at 08:21:12 AM PDT
* From the definitions inclhack.def * From the definitions inclhack.def
* and the template file fixincl.tpl * and the template file fixincl.tpl
* *
...@@ -56,7 +56,7 @@ tTestDesc aAix_SyswaitTests[] = { ...@@ -56,7 +56,7 @@ tTestDesc aAix_SyswaitTests[] = {
*/ */
const char* apzAix_SyswaitPatch[] = { "sed", const char* apzAix_SyswaitPatch[] = { "sed",
"-e" "/^extern pid_t wait3();$/i\\\n" "-e" "/^extern pid_t wait3();$/i\\\n"
"struct rusage;", "struct rusage;\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -275,13 +275,13 @@ tSCC zAvoid_BoolList[] = ...@@ -275,13 +275,13 @@ tSCC zAvoid_BoolList[] =
*/ */
const char* apzAvoid_BoolPatch[] = { "sed", const char* apzAvoid_BoolPatch[] = { "sed",
"-e" "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n" "-e" "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n"
"#ifndef __cplusplus", "#ifndef __cplusplus\n",
"-e" "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n" "-e" "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n"
"#endif", "#endif\n",
"-e" "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n" "-e" "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n"
"#ifndef __cplusplus", "#ifndef __cplusplus\n",
"-e" "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n" "-e" "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -314,11 +314,11 @@ const char* apzBad_Malloc_DeclPatch[] = { "sed", ...@@ -314,11 +314,11 @@ const char* apzBad_Malloc_DeclPatch[] = { "sed",
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"extern \"C\" {\\\n" "extern \"C\" {\\\n"
"#endif\\\n" "#endif\\\n"
"", "\n",
"-e" "$a\\\n" "-e" "$a\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"}\\\n" "}\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -405,7 +405,7 @@ tTestDesc aBroken_Assert_StdioTests[] = { ...@@ -405,7 +405,7 @@ tTestDesc aBroken_Assert_StdioTests[] = {
*/ */
const char* apzBroken_Assert_StdioPatch[] = { "sed", const char* apzBroken_Assert_StdioPatch[] = { "sed",
"-e" "1i\\\n" "-e" "1i\\\n"
"#include <stdio.h>", "#include <stdio.h>\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -444,7 +444,7 @@ const char* apzBroken_Assert_StdlibPatch[] = { "sed", ...@@ -444,7 +444,7 @@ const char* apzBroken_Assert_StdlibPatch[] = { "sed",
"-e" "1i\\\n" "-e" "1i\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"#include <stdlib.h>\\\n" "#include <stdlib.h>\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -766,11 +766,11 @@ const char* apzHpux_Cxx_UnreadyPatch[] = { "sed", ...@@ -766,11 +766,11 @@ const char* apzHpux_Cxx_UnreadyPatch[] = { "sed",
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"extern \"C\" {\\\n" "extern \"C\" {\\\n"
"#endif\\\n" "#endif\\\n"
"", "\n",
"-e" "$a\\\n" "-e" "$a\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"}\\\n" "}\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -792,9 +792,9 @@ tSCC zHpux_MaxintList[] = ...@@ -792,9 +792,9 @@ tSCC zHpux_MaxintList[] =
*/ */
const char* apzHpux_MaxintPatch[] = { "sed", const char* apzHpux_MaxintPatch[] = { "sed",
"-e" "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n" "-e" "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n"
"#ifndef MAXINT", "#ifndef MAXINT\n",
"-e" "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n" "-e" "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1082,7 +1082,7 @@ tTestDesc aIrix_SockaddrTests[] = { ...@@ -1082,7 +1082,7 @@ tTestDesc aIrix_SockaddrTests[] = {
*/ */
const char* apzIrix_SockaddrPatch[] = { "sed", const char* apzIrix_SockaddrPatch[] = { "sed",
"-e" "/authdes_create.*struct sockaddr/i\\\n" "-e" "/authdes_create.*struct sockaddr/i\\\n"
"struct sockaddr;", "struct sockaddr;\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1104,7 +1104,7 @@ tSCC zIrix_Struct__FileList[] = ...@@ -1104,7 +1104,7 @@ tSCC zIrix_Struct__FileList[] =
*/ */
const char* apzIrix_Struct__FilePatch[] = { "sed", const char* apzIrix_Struct__FilePatch[] = { "sed",
"-e" "/xdrstdio_create.*struct __file_s/i\\\n" "-e" "/xdrstdio_create.*struct __file_s/i\\\n"
"struct __file_s;", "struct __file_s;\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1239,29 +1239,29 @@ tTestDesc aLimits_IfndefsTests[] = { ...@@ -1239,29 +1239,29 @@ tTestDesc aLimits_IfndefsTests[] = {
*/ */
const char* apzLimits_IfndefsPatch[] = { "sed", const char* apzLimits_IfndefsPatch[] = { "sed",
"-e" "/[ \t]FLT_MIN[ \t]/i\\\n" "-e" "/[ \t]FLT_MIN[ \t]/i\\\n"
"#ifndef FLT_MIN", "#ifndef FLT_MIN\n",
"-e" "/[ \t]FLT_MIN[ \t]/a\\\n" "-e" "/[ \t]FLT_MIN[ \t]/a\\\n"
"#endif", "#endif\n",
"-e" "/[ \t]FLT_MAX[ \t]/i\\\n" "-e" "/[ \t]FLT_MAX[ \t]/i\\\n"
"#ifndef FLT_MAX", "#ifndef FLT_MAX\n",
"-e" "/[ \t]FLT_MAX[ \t]/a\\\n" "-e" "/[ \t]FLT_MAX[ \t]/a\\\n"
"#endif", "#endif\n",
"-e" "/[ \t]FLT_DIG[ \t]/i\\\n" "-e" "/[ \t]FLT_DIG[ \t]/i\\\n"
"#ifndef FLT_DIG", "#ifndef FLT_DIG\n",
"-e" "/[ \t]FLT_DIG[ \t]/a\\\n" "-e" "/[ \t]FLT_DIG[ \t]/a\\\n"
"#endif", "#endif\n",
"-e" "/[ \t]DBL_MIN[ \t]/i\\\n" "-e" "/[ \t]DBL_MIN[ \t]/i\\\n"
"#ifndef DBL_MIN", "#ifndef DBL_MIN\n",
"-e" "/[ \t]DBL_MIN[ \t]/a\\\n" "-e" "/[ \t]DBL_MIN[ \t]/a\\\n"
"#endif", "#endif\n",
"-e" "/[ \t]DBL_MAX[ \t]/i\\\n" "-e" "/[ \t]DBL_MAX[ \t]/i\\\n"
"#ifndef DBL_MAX", "#ifndef DBL_MAX\n",
"-e" "/[ \t]DBL_MAX[ \t]/a\\\n" "-e" "/[ \t]DBL_MAX[ \t]/a\\\n"
"#endif", "#endif\n",
"-e" "/[ \t]DBL_DIG[ \t]/i\\\n" "-e" "/[ \t]DBL_DIG[ \t]/i\\\n"
"#ifndef DBL_DIG", "#ifndef DBL_DIG\n",
"-e" "/[ \t]DBL_DIG[ \t]/a\\\n" "-e" "/[ \t]DBL_DIG[ \t]/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1345,7 +1345,7 @@ const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed", ...@@ -1345,7 +1345,7 @@ const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
"{\\\n" "{\\\n"
"\treturn fabs (hypot (x, y));\\\n" "\treturn fabs (hypot (x, y));\\\n"
"}\\\n" "}\\\n"
"#define hypot\tfake_hypot", "#define hypot\tfake_hypot\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1506,19 +1506,19 @@ const char* apzMath_ExceptionPatch[] = { "sed", ...@@ -1506,19 +1506,19 @@ const char* apzMath_ExceptionPatch[] = { "sed",
"-e" "/struct exception/i\\\n" "-e" "/struct exception/i\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"#define exception __math_exception\\\n" "#define exception __math_exception\\\n"
"#endif", "#endif\n",
"-e" "/struct exception/a\\\n" "-e" "/struct exception/a\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"#undef exception\\\n" "#undef exception\\\n"
"#endif", "#endif\n",
"-e" "/matherr/i\\\n" "-e" "/matherr/i\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"#define exception __math_exception\\\n" "#define exception __math_exception\\\n"
"#endif", "#endif\n",
"-e" "/matherr/a\\\n" "-e" "/matherr/a\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"#undef exception\\\n" "#undef exception\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1599,7 +1599,7 @@ const char* apzMotorola_Stupid_OptPatch[] = { "sed", ...@@ -1599,7 +1599,7 @@ const char* apzMotorola_Stupid_OptPatch[] = { "sed",
"{\\\n" "{\\\n"
"\treturn fabs (hypot (x, y));\\\n" "\treturn fabs (hypot (x, y));\\\n"
"}\\\n" "}\\\n"
"#define hypot\tfake_hypot", "#define hypot\tfake_hypot\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1650,9 +1650,9 @@ tTestDesc aNews_Os_RecursionTests[] = { ...@@ -1650,9 +1650,9 @@ tTestDesc aNews_Os_RecursionTests[] = {
*/ */
const char* apzNews_Os_RecursionPatch[] = { "sed", const char* apzNews_Os_RecursionPatch[] = { "sed",
"-e" "/^#include <stdlib.h>/i\\\n" "-e" "/^#include <stdlib.h>/i\\\n"
"#ifdef BOGUS_RECURSION", "#ifdef BOGUS_RECURSION\n",
"-e" "/^#include <stdlib.h>/a\\\n" "-e" "/^#include <stdlib.h>/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1794,8 +1794,15 @@ tSCC zNo_Double_SlashName[] = ...@@ -1794,8 +1794,15 @@ tSCC zNo_Double_SlashName[] =
tSCC zNo_Double_SlashSelect0[] = tSCC zNo_Double_SlashSelect0[] =
"//[^*]"; "//[^*]";
#define NO_DOUBLE_SLASH_TEST_CT 1 /*
* content test pattern. A shell will deal with it later.
*/
tSCC zNo_Double_SlashTest0[] =
"-z \"`echo ${f}|grep ++`\"";
#define NO_DOUBLE_SLASH_TEST_CT 2
tTestDesc aNo_Double_SlashTests[] = { tTestDesc aNo_Double_SlashTests[] = {
{ TT_TEST, zNo_Double_SlashTest0, 0 /* unused */ },
{ TT_EGREP, zNo_Double_SlashSelect0, (regex_t*)NULL } }; { TT_EGREP, zNo_Double_SlashSelect0, (regex_t*)NULL } };
/* /*
...@@ -1887,7 +1894,7 @@ const char* apzOsf_Namespace_BPatch[] = { "sed", ...@@ -1887,7 +1894,7 @@ const char* apzOsf_Namespace_BPatch[] = { "sed",
"-e" "/#include <reg_types.h>/a\\\n" "-e" "/#include <reg_types.h>/a\\\n"
"typedef __regex_t\tregex_t;\\\n" "typedef __regex_t\tregex_t;\\\n"
"typedef __regoff_t\tregoff_t;\\\n" "typedef __regoff_t\tregoff_t;\\\n"
"typedef __regmatch_t\tregmatch_t;", "typedef __regmatch_t\tregmatch_t;\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -1946,9 +1953,9 @@ tTestDesc aRs6000_DoubleTests[] = { ...@@ -1946,9 +1953,9 @@ tTestDesc aRs6000_DoubleTests[] = {
*/ */
const char* apzRs6000_DoublePatch[] = { "sed", const char* apzRs6000_DoublePatch[] = { "sed",
"-e" "/class[(]/i\\\n" "-e" "/class[(]/i\\\n"
"#ifndef __cplusplus", "#ifndef __cplusplus\n",
"-e" "/class[(]/a\\\n" "-e" "/class[(]/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2186,9 +2193,9 @@ const char* apzSun_CatmacroPatch[] = { "sed", ...@@ -2186,9 +2193,9 @@ const char* apzSun_CatmacroPatch[] = { "sed",
"-e" "/^#define[ \t]CAT(a,b)/ i\\\n" "-e" "/^#define[ \t]CAT(a,b)/ i\\\n"
"#ifdef __STDC__ \\\n" "#ifdef __STDC__ \\\n"
"#define CAT(a,b) a##b\\\n" "#define CAT(a,b) a##b\\\n"
"#else", "#else\n",
"-e" "/^#define[ \t]CAT(a,b)/ a\\\n" "-e" "/^#define[ \t]CAT(a,b)/ a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2260,7 +2267,7 @@ const char* apzSun_MemcpyPatch[] = { "sed", ...@@ -2260,7 +2267,7 @@ const char* apzSun_MemcpyPatch[] = { "sed",
"\\\n" "\\\n"
"extern int memcmp();\\\n" "extern int memcmp();\\\n"
"\\\n" "\\\n"
"#endif /* __memory_h__ */", "#endif /* __memory_h__ */\n",
"-e" "1,$d", "-e" "1,$d",
(char*)NULL }; (char*)NULL };
...@@ -2323,9 +2330,9 @@ const char* apzSun_SignalPatch[] = { "sed", ...@@ -2323,9 +2330,9 @@ const char* apzSun_SignalPatch[] = { "sed",
"-e" "/^void\t(\\*signal())();$/i\\\n" "-e" "/^void\t(\\*signal())();$/i\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"void\t(*signal(...))(...);\\\n" "void\t(*signal(...))(...);\\\n"
"#else", "#else\n",
"-e" "/^void\t(\\*signal())();$/a\\\n" "-e" "/^void\t(\\*signal())();$/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2404,7 +2411,7 @@ tTestDesc aSunos_Matherr_DeclTests[] = { ...@@ -2404,7 +2411,7 @@ tTestDesc aSunos_Matherr_DeclTests[] = {
*/ */
const char* apzSunos_Matherr_DeclPatch[] = { "sed", const char* apzSunos_Matherr_DeclPatch[] = { "sed",
"-e" "/matherr/i\\\n" "-e" "/matherr/i\\\n"
"struct exception;", "struct exception;\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2469,20 +2476,20 @@ const char* apzSystypesPatch[] = { "sed", ...@@ -2469,20 +2476,20 @@ const char* apzSystypesPatch[] = { "sed",
"-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n" "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n"
"#ifndef __SIZE_TYPE__\\\n" "#ifndef __SIZE_TYPE__\\\n"
"#define __SIZE_TYPE__ long unsigned int\\\n" "#define __SIZE_TYPE__ long unsigned int\\\n"
"#endif", "#endif\n",
"-e" "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/", "-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" "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n"
"#ifndef __PTRDIFF_TYPE__\\\n" "#ifndef __PTRDIFF_TYPE__\\\n"
"#define __PTRDIFF_TYPE__ long int\\\n" "#define __PTRDIFF_TYPE__ long int\\\n"
"#endif", "#endif\n",
"-e" "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/", "-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" "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n"
"#ifndef __WCHAR_TYPE__\\\n" "#ifndef __WCHAR_TYPE__\\\n"
"#define __WCHAR_TYPE__ int\\\n" "#define __WCHAR_TYPE__ int\\\n"
"#endif\\\n" "#endif\\\n"
"#ifndef __cplusplus", "#ifndef __cplusplus\n",
"-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n" "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n"
"#endif", "#endif\n",
"-e" "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/", "-e" "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
(char*)NULL }; (char*)NULL };
...@@ -2514,9 +2521,9 @@ tTestDesc aSystypes_For_AixTests[] = { ...@@ -2514,9 +2521,9 @@ tTestDesc aSystypes_For_AixTests[] = {
const char* apzSystypes_For_AixPatch[] = { "sed", const char* apzSystypes_For_AixPatch[] = { "sed",
"-e" "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n" "-e" "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n"
"#ifndef _GCC_SIZE_T\\\n" "#ifndef _GCC_SIZE_T\\\n"
"#define _GCC_SIZE_T", "#define _GCC_SIZE_T\n",
"-e" "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n" "-e" "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2576,9 +2583,9 @@ const char* apzSysz_Stdlib_For_SunPatch[] = { "sed", ...@@ -2576,9 +2583,9 @@ const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
"-e" "s/int[ \t][ \t]*exit/void\texit/g", "-e" "s/int[ \t][ \t]*exit/void\texit/g",
"-e" "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n" "-e" "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n"
"#ifndef _GCC_SIZE_T\\\n" "#ifndef _GCC_SIZE_T\\\n"
"#define _GCC_SIZE_T", "#define _GCC_SIZE_T\n",
"-e" "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/a\\\n" "-e" "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2601,19 +2608,19 @@ tSCC zSysz_Stdtypes_For_SunList[] = ...@@ -2601,19 +2608,19 @@ tSCC zSysz_Stdtypes_For_SunList[] =
const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed", const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
"-e" "/[\t ]size_t.*;/i\\\n" "-e" "/[\t ]size_t.*;/i\\\n"
"#ifndef _GCC_SIZE_T\\\n" "#ifndef _GCC_SIZE_T\\\n"
"#define _GCC_SIZE_T", "#define _GCC_SIZE_T\n",
"-e" "/[\t ]size_t.*;/a\\\n" "-e" "/[\t ]size_t.*;/a\\\n"
"#endif", "#endif\n",
"-e" "/[\t ]ptrdiff_t.*;/i\\\n" "-e" "/[\t ]ptrdiff_t.*;/i\\\n"
"#ifndef _GCC_PTRDIFF_T\\\n" "#ifndef _GCC_PTRDIFF_T\\\n"
"#define _GCC_PTRDIFF_T", "#define _GCC_PTRDIFF_T\n",
"-e" "/[\t ]ptrdiff_t.*;/a\\\n" "-e" "/[\t ]ptrdiff_t.*;/a\\\n"
"#endif", "#endif\n",
"-e" "/[\t ]wchar_t.*;/i\\\n" "-e" "/[\t ]wchar_t.*;/i\\\n"
"#ifndef _GCC_WCHAR_T\\\n" "#ifndef _GCC_WCHAR_T\\\n"
"#define _GCC_WCHAR_T", "#define _GCC_WCHAR_T\n",
"-e" "/[\t ]wchar_t.*;/a\\\n" "-e" "/[\t ]wchar_t.*;/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2664,7 +2671,7 @@ tTestDesc aUltrix_Ansi_CompatTests[] = { ...@@ -2664,7 +2671,7 @@ tTestDesc aUltrix_Ansi_CompatTests[] = {
*/ */
const char* apzUltrix_Ansi_CompatPatch[] = { "sed", const char* apzUltrix_Ansi_CompatPatch[] = { "sed",
"-e" "1i\\\n" "-e" "1i\\\n"
"/* This file intentionally left blank. */", "/* This file intentionally left blank. */\n",
"-e" "1,$d", "-e" "1,$d",
(char*)NULL }; (char*)NULL };
...@@ -2836,7 +2843,7 @@ tTestDesc aUndefine_NullTests[] = { ...@@ -2836,7 +2843,7 @@ tTestDesc aUndefine_NullTests[] = {
*/ */
const char* apzUndefine_NullPatch[] = { "sed", const char* apzUndefine_NullPatch[] = { "sed",
"-e" "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n" "-e" "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n"
"#undef NULL", "#undef NULL\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -2939,19 +2946,19 @@ const char* apzVxworks_Gcc_ProblemPatch[] = { "sed", ...@@ -2939,19 +2946,19 @@ const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
"-e" "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", "-e" "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
"-e" "/[ \t]size_t/i\\\n" "-e" "/[ \t]size_t/i\\\n"
"#ifndef _GCC_SIZE_T\\\n" "#ifndef _GCC_SIZE_T\\\n"
"#define _GCC_SIZE_T", "#define _GCC_SIZE_T\n",
"-e" "/[ \t]size_t/a\\\n" "-e" "/[ \t]size_t/a\\\n"
"#endif", "#endif\n",
"-e" "/[ \t]ptrdiff_t/i\\\n" "-e" "/[ \t]ptrdiff_t/i\\\n"
"#ifndef _GCC_PTRDIFF_T\\\n" "#ifndef _GCC_PTRDIFF_T\\\n"
"#define _GCC_PTRDIFF_T", "#define _GCC_PTRDIFF_T\n",
"-e" "/[ \t]ptrdiff_t/a\\\n" "-e" "/[ \t]ptrdiff_t/a\\\n"
"#endif", "#endif\n",
"-e" "/[ \t]wchar_t/i\\\n" "-e" "/[ \t]wchar_t/i\\\n"
"#ifndef _GCC_WCHAR_T\\\n" "#ifndef _GCC_WCHAR_T\\\n"
"#define _GCC_WCHAR_T", "#define _GCC_WCHAR_T\n",
"-e" "/[ \t]wchar_t/a\\\n" "-e" "/[ \t]wchar_t/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -3023,7 +3030,7 @@ tTestDesc aVxworks_Needs_VxworksTests[] = { ...@@ -3023,7 +3030,7 @@ tTestDesc aVxworks_Needs_VxworksTests[] = {
*/ */
const char* apzVxworks_Needs_VxworksPatch[] = { "sed", const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
"-e" "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n" "-e" "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n"
"#include <types/vxTypesOld.h>", "#include <types/vxTypesOld.h>\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -3067,7 +3074,7 @@ const char* apzVxworks_TimePatch[] = { "sed", ...@@ -3067,7 +3074,7 @@ const char* apzVxworks_TimePatch[] = { "sed",
"typedef void (*__gcc_VOIDFUNCPTR) ();\\\n" "typedef void (*__gcc_VOIDFUNCPTR) ();\\\n"
"#endif\\\n" "#endif\\\n"
"#define __gcc_VOIDFUNCPTR_defined\\\n" "#define __gcc_VOIDFUNCPTR_defined\\\n"
"#endif", "#endif\n",
"-e" "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g", "-e" "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
(char*)NULL }; (char*)NULL };
...@@ -3100,9 +3107,9 @@ const char* apzX11_ClassPatch[] = { "sed", ...@@ -3100,9 +3107,9 @@ const char* apzX11_ClassPatch[] = { "sed",
"-e" "/char [*]class;/i\\\n" "-e" "/char [*]class;/i\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"\tchar *c_class;\\\n" "\tchar *c_class;\\\n"
"#else", "#else\n",
"-e" "/char [*]class;/a\\\n" "-e" "/char [*]class;/a\\\n"
"#endif", "#endif\n",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -3163,9 +3170,9 @@ const char* apzX11_NewPatch[] = { "sed", ...@@ -3163,9 +3170,9 @@ const char* apzX11_NewPatch[] = { "sed",
"-e" "/Widget\told, new;/i\\\n" "-e" "/Widget\told, new;/i\\\n"
"#ifdef __cplusplus\\\n" "#ifdef __cplusplus\\\n"
"\tWidget\told, c_new;\\\n" "\tWidget\told, c_new;\\\n"
"#else", "#else\n",
"-e" "/Widget\told, new;/a\\\n" "-e" "/Widget\told, new;/a\\\n"
"#endif", "#endif\n",
"-e" "s/Widget new,/Widget c_new,/g", "-e" "s/Widget new,/Widget c_new,/g",
(char*)NULL }; (char*)NULL };
......
/* -*- Mode: C -*- $Id: inclhack.def,v 1.1 1998/03/20 16:19:41 korbb Exp $ */ /* -*- Mode: C -*- $Id: inclhack.def,v 1.6 1998/09/22 07:22:00 korbb Exp $ */
autogen definitions inclhack; autogen definitions inclhack;
...@@ -991,9 +991,12 @@ fix = { ...@@ -991,9 +991,12 @@ fix = {
/* /*
* Remove the double-slash comments * Remove the double-slash comments
* They *must* be removed so it will not create nested comments!! * They *must* be removed so it will not create nested comments!!
* However, they will *not* be removed if '++' is in any part of
* their file name.
*/ */
fix = { fix = {
hackname = no_double_slash; hackname = no_double_slash;
test = '-z "`echo ${f}|grep ++`"';
select = '//[^*]'; select = '//[^*]';
sed = '/\/\/[^*]/' "s|//\\(.*\\)$|/* \\1 */|"; sed = '/\/\/[^*]/' "s|//\\(.*\\)$|/* \\1 */|";
}; };
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment