Commit 87ad679b by Bruce Korb Committed by Bruce Korb

C++ file type checking

From-SVN: r31125
parent ec6bfc9b
1999-12-29 Bruce Korb <autogen@linuxbox.com>
* fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
* fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
(<hack>_RE_CT): not needed
* fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
rewritten to scan the file text once only
"template<..." test added
* fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
(is_cxx_header): declaration added
* fixinc/fixtests.c(is_cxx_header): removed
(apply_fix_p_t): removed
(double_slash_test): is_cxx_header is only called once now
* fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
* fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
within the templates.
The borken spelling of "broken" was fixed.
* fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
The default level depends on FIXINC_DEBUG.
1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h. * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
......
...@@ -433,16 +433,17 @@ wait_for_pid(child) ...@@ -433,16 +433,17 @@ wait_for_pid(child)
{ {
if (! WIFEXITED( status )) if (! WIFEXITED( status ))
{ {
if (NOT_SILENT) if (WSTOPSIG( status ) == 0)
fprintf (stderr, "child process %d is hung on signal %d\n", break;
child, WSTOPSIG( status ));
fprintf (stderr, "child process %d is hung on signal %d\n",
child, WSTOPSIG( status ));
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
} }
if (WEXITSTATUS( status ) != 0) if (WEXITSTATUS( status ) != 0)
{ {
if (NOT_SILENT) fprintf (stderr, "child process %d exited with status %d\n",
fprintf (stderr, "child process %d exited with status %d\n", child, WEXITSTATUS( status ));
child, WEXITSTATUS( status ));
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
} }
break; /* normal child completion */ break; /* normal child completion */
......
...@@ -34,8 +34,9 @@ ...@@ -34,8 +34,9 @@
# Directory in which to store the results. # Directory in which to store the results.
# Fail if no arg to specify a directory for the output. # Fail if no arg to specify a directory for the output.
if [ "x$1" = "x" ] if [ "x$1" = "x" ]
then echo fixincludes: no output directory specified then
exit 1 echo fixincludes: no output directory specified
exit 1
fi fi
LIB=${1} LIB=${1}
...@@ -54,6 +55,17 @@ else ...@@ -54,6 +55,17 @@ else
} }
fi fi
if test -z "$VERBOSE"
then
VERBOSE=2
export VERBOSE
else
case "$VERBOSE" in
[0-9] ) : ;;
* ) VERBOSE=3 ;;
esac
fi
# Define what target system we're fixing. # Define what target system we're fixing.
# #
if test -r ./Makefile; then if test -r ./Makefile; then
...@@ -96,7 +108,8 @@ case $LIB in ...@@ -96,7 +108,8 @@ case $LIB in
;; ;;
esac esac
echo Fixing headers into ${LIB} for ${target_canonical} target if test $VERBOSE -gt 0
then echo Fixing headers into ${LIB} for ${target_canonical} target ; fi
# 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
...@@ -131,7 +144,8 @@ INPUT=`${PWDCMD}` ...@@ -131,7 +144,8 @@ INPUT=`${PWDCMD}`
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
echo Finding directories and links to directories if test $VERBOSE -gt 1
then echo Finding directories and links to directories ; fi
# Find all directories and all symlinks that point to directories. # Find all directories and all symlinks that point to directories.
# Put the list in $all_dirs. # Put the list in $all_dirs.
...@@ -150,7 +164,8 @@ do ...@@ -150,7 +164,8 @@ do
newdirs= newdirs=
for d in $dirs for d in $dirs
do do
echo " Searching $INPUT/$d" if test $VERBOSE -gt 1
then echo " Searching $INPUT/$d" ; fi
# Find all directories under $d, relative to $d, excluding $d itself. # Find all directories under $d, relative to $d, excluding $d itself.
# (The /. is needed after $d in case $d is a symlink.) # (The /. is needed after $d in case $d is a symlink.)
...@@ -186,8 +201,10 @@ done ...@@ -186,8 +201,10 @@ done
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
dirs= dirs=
echo "All directories (including links to directories):" if test $VERBOSE -gt 2
echo $all_dirs then echo "All directories (including links to directories):"
echo $all_dirs
fi
for file in $all_dirs; do for file in $all_dirs; do
rm -rf $LIB/$file rm -rf $LIB/$file
...@@ -205,7 +222,8 @@ mkdir $LIB/root ...@@ -205,7 +222,8 @@ mkdir $LIB/root
treetops=". ${LIB}" treetops=". ${LIB}"
if $LINKS; then if $LINKS; then
echo 'Making symbolic directory links' if test $VERBOSE -gt 1
then echo 'Making symbolic directory links' ; fi
cwd=`${PWDCMD}` cwd=`${PWDCMD}`
for sym_link in $search_dirs; do for sym_link in $search_dirs; do
...@@ -235,7 +253,8 @@ if $LINKS; then ...@@ -235,7 +253,8 @@ if $LINKS; then
# If a link points to ., make a similar link to . # If a link points to ., make a similar link to .
# #
if [ ${full_dest_dir} = ${cinput} ]; then if [ ${full_dest_dir} = ${cinput} ]; then
echo ${sym_link} '->' . ': Making self link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' . ': Making self link' ; fi
rm -fr ${LIB}/${sym_link} > /dev/null 2>&1 rm -fr ${LIB}/${sym_link} > /dev/null 2>&1
ln -s . ${LIB}/${sym_link} > /dev/null 2>&1 ln -s . ${LIB}/${sym_link} > /dev/null 2>&1
...@@ -248,7 +267,8 @@ if $LINKS; then ...@@ -248,7 +267,8 @@ if $LINKS; then
# DOTS is the relative path from ${LIB}/${sym_link} back to ${LIB}. # DOTS is the relative path from ${LIB}/${sym_link} back to ${LIB}.
dots=`echo "${sym_link}" | dots=`echo "${sym_link}" |
sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'` sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'`
echo ${sym_link} '->' $dots$y ': Making local link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' $dots$y ': Making local link' ; fi
rm -fr ${LIB}/${sym_link} > /dev/null 2>&1 rm -fr ${LIB}/${sym_link} > /dev/null 2>&1
ln -s $dots$y ${LIB}/${sym_link} > /dev/null 2>&1 ln -s $dots$y ${LIB}/${sym_link} > /dev/null 2>&1
...@@ -258,7 +278,9 @@ if $LINKS; then ...@@ -258,7 +278,9 @@ if $LINKS; then
# and process $target into ${INPUT}/root$target # and process $target into ${INPUT}/root$target
# treat this directory as if it actually contained the files. # treat this directory as if it actually contained the files.
# #
echo ${sym_link} '->' root${full_dest_dir} ': Making rooted link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' root${full_dest_dir} ': Making rooted link'
fi
if [ -d $LIB/root${full_dest_dir} ] if [ -d $LIB/root${full_dest_dir} ]
then true then true
else else
...@@ -282,7 +304,8 @@ if $LINKS; then ...@@ -282,7 +304,8 @@ if $LINKS; then
${sym_link}/*) ${sym_link}/*)
dupdir=${LIB}/root${full_dest_dir}/`echo $file2 | dupdir=${LIB}/root${full_dest_dir}/`echo $file2 |
sed -n "s|^${sym_link}/||p"` sed -n "s|^${sym_link}/||p"`
echo "Duplicating ${sym_link}'s ${dupdir}" if test $VERBOSE -gt 2
then echo "Duplicating ${sym_link}'s ${dupdir}" ; fi
if [ -d ${dupdir} ] if [ -d ${dupdir} ]
then true then true
else else
...@@ -337,7 +360,8 @@ while [ $# != 0 ]; do ...@@ -337,7 +360,8 @@ while [ $# != 0 ]; do
then continue ; fi then continue ; fi
touch ${DESTDIR}/DONE touch ${DESTDIR}/DONE
echo Fixing directory ${SRCDIR} into ${DESTDIR} if test $VERBOSE -gt 1
then echo Fixing directory ${SRCDIR} into ${DESTDIR} ; fi
# Check files which are symlinks as well as those which are files. # Check files which are symlinks as well as those which are files.
# #
...@@ -371,7 +395,8 @@ while [ $# != 0 ]; do ...@@ -371,7 +395,8 @@ while [ $# != 0 ]; do
cp $2 $3 >/dev/null 2>&1 || echo "Can't copy $2" >&2 cp $2 $3 >/dev/null 2>&1 || echo "Can't copy $2" >&2
chmod +w $3 2>/dev/null chmod +w $3 2>/dev/null
chmod a+r $3 2>/dev/null chmod a+r $3 2>/dev/null
echo Copied $2 if test $VERBOSE -gt 2
then echo Copied $2 ; fi
for include in `egrep '^[ ]*#[ ]*include[ ]*"[^/]' $3 | for include in `egrep '^[ ]*#[ ]*include[ ]*"[^/]' $3 |
sed -e 's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'` sed -e 's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'`
do do
...@@ -387,17 +412,22 @@ while [ $# != 0 ]; do ...@@ -387,17 +412,22 @@ while [ $# != 0 ]; do
shift shift
done done
echo 'Cleaning up DONE files.' if test $VERBOSE -gt 2
then echo 'Cleaning up DONE files.' ; fi
cd $LIB cd $LIB
find . -name DONE -exec rm -f '{}' ';' find . -name DONE -exec rm -f '{}' ';'
echo 'Removing unneeded directories:' if test $VERBOSE -gt 1
then echo 'Cleaning up unneeded directories:' ; fi
cd $LIB cd $LIB
all_dirs=`find . -type d \! -name '.' -print | sort -r` all_dirs=`find . -type d \! -name '.' -print | sort -r`
for file in $all_dirs; do for file in $all_dirs; do
rmdir $LIB/$file > /dev/null 2>&1 rmdir $LIB/$file > /dev/null 2>&1
done done
if test $VERBOSE -gt 0
then echo fixincludes is done ; fi
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# End of for INPUT directories # End of for INPUT directories
......
...@@ -125,24 +125,18 @@ tSCC z[=hackname _cap=]FTst[=_eval _index=][] = "[=c_test=]";[= ...@@ -125,24 +125,18 @@ tSCC z[=hackname _cap=]FTst[=_eval _index=][] = "[=c_test=]";[=
#define [=hackname _up =]_TEST_CT [= #define [=hackname _up =]_TEST_CT [=
_IF exesel _exist =][= _IF exesel _exist =][=
_eval exesel _count _eval exesel _count
bypass _count + bypass _count +
test _count + test _count +
c_test _count + =][= c_test _count +
"ct=%d ; re_ct=`expr $ct + $re_ct` ; echo $ct"
_printf _shell =][=
_ELSE =][= _ELSE =][=
_eval select _count _eval select _count
bypass _count + bypass _count +
test _count + test _count +
c_test _count + =][= c_test _count +
_ENDIF =] "ct=%d ; re_ct=`expr $ct + $re_ct` ; echo $ct"
#define [=hackname _up =]_RE_CT [= _printf _shell =][=
_IF exesel _exist =][=
_eval exesel _count bypass _count
"#2$ct=`expr %d + %d` ; re_ct=`expr $ct + $re_ct` ; echo $ct"
_printf _shell =][=
_ELSE =][=
_eval select _count bypass _count
"#2$ct=`expr %d + %d` ; re_ct=`expr $ct + $re_ct` ; echo $ct"
_printf _shell =][=
_ENDIF =] _ENDIF =]
tTestDesc a[=hackname _cap=]Tests[] = {[= tTestDesc a[=hackname _cap=]Tests[] = {[=
...@@ -173,7 +167,6 @@ tTestDesc a[=hackname _cap=]Tests[] = {[= ...@@ -173,7 +167,6 @@ tTestDesc a[=hackname _cap=]Tests[] = {[=
_ENDIF =] };[= _ENDIF =] };[=
_ELSE =] _ELSE =]
#define [=hackname _up=]_TEST_CT 0 #define [=hackname _up=]_TEST_CT 0
#define [=hackname _up=]_RE_CT 0
#define a[=hackname _cap=]Tests (tTestDesc*)NULL[= #define a[=hackname _cap=]Tests (tTestDesc*)NULL[=
_ENDIF =] _ENDIF =]
......
...@@ -51,7 +51,6 @@ tSCC zAaa_Ki_IfaceSelect0[] = ...@@ -51,7 +51,6 @@ tSCC zAaa_Ki_IfaceSelect0[] =
"These definitions are for HP Internal developers"; "These definitions are for HP Internal developers";
#define AAA_KI_IFACE_TEST_CT 1 #define AAA_KI_IFACE_TEST_CT 1
#define AAA_KI_IFACE_RE_CT 1
tTestDesc aAaa_Ki_IfaceTests[] = { tTestDesc aAaa_Ki_IfaceTests[] = {
{ TT_EGREP, zAaa_Ki_IfaceSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAaa_Ki_IfaceSelect0, (regex_t*)NULL }, };
...@@ -85,7 +84,6 @@ tSCC zAaa_KiSelect0[] = ...@@ -85,7 +84,6 @@ tSCC zAaa_KiSelect0[] =
"11.00 HP-UX LP64"; "11.00 HP-UX LP64";
#define AAA_KI_TEST_CT 1 #define AAA_KI_TEST_CT 1
#define AAA_KI_RE_CT 1
tTestDesc aAaa_KiTests[] = { tTestDesc aAaa_KiTests[] = {
{ TT_EGREP, zAaa_KiSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAaa_KiSelect0, (regex_t*)NULL }, };
...@@ -119,7 +117,6 @@ tSCC zAaa_Ki_CallsSelect0[] = ...@@ -119,7 +117,6 @@ tSCC zAaa_Ki_CallsSelect0[] =
"kthread_create_caller_t"; "kthread_create_caller_t";
#define AAA_KI_CALLS_TEST_CT 1 #define AAA_KI_CALLS_TEST_CT 1
#define AAA_KI_CALLS_RE_CT 1
tTestDesc aAaa_Ki_CallsTests[] = { tTestDesc aAaa_Ki_CallsTests[] = {
{ TT_EGREP, zAaa_Ki_CallsSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAaa_Ki_CallsSelect0, (regex_t*)NULL }, };
...@@ -153,7 +150,6 @@ tSCC zAaa_Ki_DefsSelect0[] = ...@@ -153,7 +150,6 @@ tSCC zAaa_Ki_DefsSelect0[] =
"Kernel Instrumentation Definitions"; "Kernel Instrumentation Definitions";
#define AAA_KI_DEFS_TEST_CT 1 #define AAA_KI_DEFS_TEST_CT 1
#define AAA_KI_DEFS_RE_CT 1
tTestDesc aAaa_Ki_DefsTests[] = { tTestDesc aAaa_Ki_DefsTests[] = {
{ TT_EGREP, zAaa_Ki_DefsSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAaa_Ki_DefsSelect0, (regex_t*)NULL }, };
...@@ -180,7 +176,6 @@ tSCC zAaa_Bad_FixesList[] = ...@@ -180,7 +176,6 @@ tSCC zAaa_Bad_FixesList[] =
*/ */
#define apzAaa_Bad_FixesMachs (const char**)NULL #define apzAaa_Bad_FixesMachs (const char**)NULL
#define AAA_BAD_FIXES_TEST_CT 0 #define AAA_BAD_FIXES_TEST_CT 0
#define AAA_BAD_FIXES_RE_CT 0
#define aAaa_Bad_FixesTests (tTestDesc*)NULL #define aAaa_Bad_FixesTests (tTestDesc*)NULL
/* /*
...@@ -213,7 +208,6 @@ tSCC zAaa_TimeSelect0[] = ...@@ -213,7 +208,6 @@ tSCC zAaa_TimeSelect0[] =
"11.0 and later representation of ki time"; "11.0 and later representation of ki time";
#define AAA_TIME_TEST_CT 1 #define AAA_TIME_TEST_CT 1
#define AAA_TIME_RE_CT 1
tTestDesc aAaa_TimeTests[] = { tTestDesc aAaa_TimeTests[] = {
{ TT_EGREP, zAaa_TimeSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAaa_TimeSelect0, (regex_t*)NULL }, };
...@@ -240,7 +234,6 @@ tSCC zAab_Dgux_Int_VarargsList[] = ...@@ -240,7 +234,6 @@ tSCC zAab_Dgux_Int_VarargsList[] =
*/ */
#define apzAab_Dgux_Int_VarargsMachs (const char**)NULL #define apzAab_Dgux_Int_VarargsMachs (const char**)NULL
#define AAB_DGUX_INT_VARARGS_TEST_CT 0 #define AAB_DGUX_INT_VARARGS_TEST_CT 0
#define AAB_DGUX_INT_VARARGS_RE_CT 0
#define aAab_Dgux_Int_VarargsTests (tTestDesc*)NULL #define aAab_Dgux_Int_VarargsTests (tTestDesc*)NULL
/* /*
...@@ -337,7 +330,6 @@ tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = ...@@ -337,7 +330,6 @@ tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
"} while"; "} while";
#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_RE_CT 1
tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
{ TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
...@@ -386,7 +378,6 @@ tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = { ...@@ -386,7 +378,6 @@ tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
"i[34567]86-*-linux-gnu*", "i[34567]86-*-linux-gnu*",
(const char*)NULL }; (const char*)NULL };
#define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
#define AAB_FD_ZERO_GNU_TYPES_H_RE_CT 0
#define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
/* /*
...@@ -433,7 +424,6 @@ tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = { ...@@ -433,7 +424,6 @@ tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
"i[34567]86-*-linux-gnu*", "i[34567]86-*-linux-gnu*",
(const char*)NULL }; (const char*)NULL };
#define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
#define AAB_FD_ZERO_SELECTBITS_H_RE_CT 0
#define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
/* /*
...@@ -489,7 +479,6 @@ tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = { ...@@ -489,7 +479,6 @@ tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
"sparc-*-solaris2.[0-4]", "sparc-*-solaris2.[0-4]",
(const char*)NULL }; (const char*)NULL };
#define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0
#define AAB_SVR4_REPLACE_BYTEORDER_RE_CT 0
#define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL #define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL
/* /*
...@@ -665,7 +654,6 @@ tSCC zAix_SyswaitSelect0[] = ...@@ -665,7 +654,6 @@ tSCC zAix_SyswaitSelect0[] =
"bos325,"; "bos325,";
#define AIX_SYSWAIT_TEST_CT 1 #define AIX_SYSWAIT_TEST_CT 1
#define AIX_SYSWAIT_RE_CT 1
tTestDesc aAix_SyswaitTests[] = { tTestDesc aAix_SyswaitTests[] = {
{ TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, };
...@@ -701,7 +689,6 @@ tSCC zAix_VolatileSelect0[] = ...@@ -701,7 +689,6 @@ tSCC zAix_VolatileSelect0[] =
"typedef volatile int sig_atomic_t"; "typedef volatile int sig_atomic_t";
#define AIX_VOLATILE_TEST_CT 1 #define AIX_VOLATILE_TEST_CT 1
#define AIX_VOLATILE_RE_CT 1
tTestDesc aAix_VolatileTests[] = { tTestDesc aAix_VolatileTests[] = {
{ TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
...@@ -736,7 +723,6 @@ tSCC zAlpha_GetoptSelect0[] = ...@@ -736,7 +723,6 @@ tSCC zAlpha_GetoptSelect0[] =
"getopt\\(int, char \\*\\["; "getopt\\(int, char \\*\\[";
#define ALPHA_GETOPT_TEST_CT 1 #define ALPHA_GETOPT_TEST_CT 1
#define ALPHA_GETOPT_RE_CT 1
tTestDesc aAlpha_GetoptTests[] = { tTestDesc aAlpha_GetoptTests[] = {
{ TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
...@@ -771,7 +757,6 @@ tSCC zAlpha_ParensSelect0[] = ...@@ -771,7 +757,6 @@ tSCC zAlpha_ParensSelect0[] =
"#ifndef\\(__mips64\\)"; "#ifndef\\(__mips64\\)";
#define ALPHA_PARENS_TEST_CT 1 #define ALPHA_PARENS_TEST_CT 1
#define ALPHA_PARENS_RE_CT 1
tTestDesc aAlpha_ParensTests[] = { tTestDesc aAlpha_ParensTests[] = {
{ TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
...@@ -806,7 +791,6 @@ tSCC zAlpha_SbrkSelect0[] = ...@@ -806,7 +791,6 @@ tSCC zAlpha_SbrkSelect0[] =
"char[ \t]*\\*[\t ]*sbrk[ \t]*\\("; "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
#define ALPHA_SBRK_TEST_CT 1 #define ALPHA_SBRK_TEST_CT 1
#define ALPHA_SBRK_RE_CT 1
tTestDesc aAlpha_SbrkTests[] = { tTestDesc aAlpha_SbrkTests[] = {
{ TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
...@@ -841,7 +825,6 @@ tSCC zArm_Norcroft_HintSelect0[] = ...@@ -841,7 +825,6 @@ tSCC zArm_Norcroft_HintSelect0[] =
"___type p_type"; "___type p_type";
#define ARM_NORCROFT_HINT_TEST_CT 1 #define ARM_NORCROFT_HINT_TEST_CT 1
#define ARM_NORCROFT_HINT_RE_CT 1
tTestDesc aArm_Norcroft_HintTests[] = { tTestDesc aArm_Norcroft_HintTests[] = {
{ TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, }; { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
...@@ -876,7 +859,6 @@ tSCC zArm_WcharSelect0[] = ...@@ -876,7 +859,6 @@ tSCC zArm_WcharSelect0[] =
"#[ \t]*define[ \t]*__wchar_t"; "#[ \t]*define[ \t]*__wchar_t";
#define ARM_WCHAR_TEST_CT 1 #define ARM_WCHAR_TEST_CT 1
#define ARM_WCHAR_RE_CT 1
tTestDesc aArm_WcharTests[] = { tTestDesc aArm_WcharTests[] = {
{ TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, }; { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
...@@ -912,7 +894,6 @@ tSCC zAux_AsmSelect0[] = ...@@ -912,7 +894,6 @@ tSCC zAux_AsmSelect0[] =
"#ifndef NOINLINE"; "#ifndef NOINLINE";
#define AUX_ASM_TEST_CT 1 #define AUX_ASM_TEST_CT 1
#define AUX_ASM_RE_CT 1
tTestDesc aAux_AsmTests[] = { tTestDesc aAux_AsmTests[] = {
{ TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, }; { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
...@@ -940,7 +921,6 @@ tSCC zAvoid_BoolList[] = ...@@ -940,7 +921,6 @@ tSCC zAvoid_BoolList[] =
*/ */
#define apzAvoid_BoolMachs (const char**)NULL #define apzAvoid_BoolMachs (const char**)NULL
#define AVOID_BOOL_TEST_CT 0 #define AVOID_BOOL_TEST_CT 0
#define AVOID_BOOL_RE_CT 0
#define aAvoid_BoolTests (tTestDesc*)NULL #define aAvoid_BoolTests (tTestDesc*)NULL
/* /*
...@@ -993,7 +973,6 @@ tSCC zBad_Struct_TermSelect0[] = ...@@ -993,7 +973,6 @@ tSCC zBad_Struct_TermSelect0[] =
"^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;"; "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
#define BAD_STRUCT_TERM_TEST_CT 1 #define BAD_STRUCT_TERM_TEST_CT 1
#define BAD_STRUCT_TERM_RE_CT 1
tTestDesc aBad_Struct_TermTests[] = { tTestDesc aBad_Struct_TermTests[] = {
{ TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, }; { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
...@@ -1021,7 +1000,6 @@ tSCC zBadquoteList[] = ...@@ -1021,7 +1000,6 @@ tSCC zBadquoteList[] =
*/ */
#define apzBadquoteMachs (const char**)NULL #define apzBadquoteMachs (const char**)NULL
#define BADQUOTE_TEST_CT 0 #define BADQUOTE_TEST_CT 0
#define BADQUOTE_RE_CT 0
#define aBadquoteTests (tTestDesc*)NULL #define aBadquoteTests (tTestDesc*)NULL
/* /*
...@@ -1055,7 +1033,6 @@ tSCC zBad_LvalSelect0[] = ...@@ -1055,7 +1033,6 @@ tSCC zBad_LvalSelect0[] =
"^[ \t]*#[ \t]*pragma[ \t][ \t]*extern_prefix"; "^[ \t]*#[ \t]*pragma[ \t][ \t]*extern_prefix";
#define BAD_LVAL_TEST_CT 1 #define BAD_LVAL_TEST_CT 1
#define BAD_LVAL_RE_CT 1
tTestDesc aBad_LvalTests[] = { tTestDesc aBad_LvalTests[] = {
{ TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, }; { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
...@@ -1096,7 +1073,6 @@ tSCC zBroken_Assert_StdioBypass0[] = ...@@ -1096,7 +1073,6 @@ tSCC zBroken_Assert_StdioBypass0[] =
"include.*stdio.h"; "include.*stdio.h";
#define BROKEN_ASSERT_STDIO_TEST_CT 2 #define BROKEN_ASSERT_STDIO_TEST_CT 2
#define BROKEN_ASSERT_STDIO_RE_CT 2
tTestDesc aBroken_Assert_StdioTests[] = { tTestDesc aBroken_Assert_StdioTests[] = {
{ TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL }, { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
{ TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, }; { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
...@@ -1139,7 +1115,6 @@ tSCC zBroken_Assert_StdlibBypass0[] = ...@@ -1139,7 +1115,6 @@ tSCC zBroken_Assert_StdlibBypass0[] =
"include.*stdlib.h"; "include.*stdlib.h";
#define BROKEN_ASSERT_STDLIB_TEST_CT 2 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
#define BROKEN_ASSERT_STDLIB_RE_CT 2
tTestDesc aBroken_Assert_StdlibTests[] = { tTestDesc aBroken_Assert_StdlibTests[] = {
{ TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL }, { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
{ TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, }; { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
...@@ -1177,7 +1152,6 @@ tSCC zBsd43_Io_MacrosSelect0[] = ...@@ -1177,7 +1152,6 @@ tSCC zBsd43_Io_MacrosSelect0[] =
"BSD43__IO"; "BSD43__IO";
#define BSD43_IO_MACROS_TEST_CT 1 #define BSD43_IO_MACROS_TEST_CT 1
#define BSD43_IO_MACROS_RE_CT 1
tTestDesc aBsd43_Io_MacrosTests[] = { tTestDesc aBsd43_Io_MacrosTests[] = {
{ TT_EGREP, zBsd43_Io_MacrosSelect0, (regex_t*)NULL }, }; { TT_EGREP, zBsd43_Io_MacrosSelect0, (regex_t*)NULL }, };
...@@ -1206,7 +1180,6 @@ tSCC zDec_Intern_AsmList[] = ...@@ -1206,7 +1180,6 @@ tSCC zDec_Intern_AsmList[] =
*/ */
#define apzDec_Intern_AsmMachs (const char**)NULL #define apzDec_Intern_AsmMachs (const char**)NULL
#define DEC_INTERN_ASM_TEST_CT 0 #define DEC_INTERN_ASM_TEST_CT 0
#define DEC_INTERN_ASM_RE_CT 0
#define aDec_Intern_AsmTests (tTestDesc*)NULL #define aDec_Intern_AsmTests (tTestDesc*)NULL
/* /*
...@@ -1241,7 +1214,6 @@ tSCC zNo_Double_SlashName[] = ...@@ -1241,7 +1214,6 @@ tSCC zNo_Double_SlashName[] =
tSCC zNo_Double_SlashFTst0[] = "double_slash"; tSCC zNo_Double_SlashFTst0[] = "double_slash";
#define NO_DOUBLE_SLASH_TEST_CT 1 #define NO_DOUBLE_SLASH_TEST_CT 1
#define NO_DOUBLE_SLASH_RE_CT 0
tTestDesc aNo_Double_SlashTests[] = { tTestDesc aNo_Double_SlashTests[] = {
{ TT_FUNCTION, zNo_Double_SlashFTst0, 0 /* unused */ }, }; { TT_FUNCTION, zNo_Double_SlashFTst0, 0 /* unused */ }, };
...@@ -1268,7 +1240,6 @@ tSCC zEcd_CursorList[] = ...@@ -1268,7 +1240,6 @@ tSCC zEcd_CursorList[] =
*/ */
#define apzEcd_CursorMachs (const char**)NULL #define apzEcd_CursorMachs (const char**)NULL
#define ECD_CURSOR_TEST_CT 0 #define ECD_CURSOR_TEST_CT 0
#define ECD_CURSOR_RE_CT 0
#define aEcd_CursorTests (tTestDesc*)NULL #define aEcd_CursorTests (tTestDesc*)NULL
/* /*
...@@ -1297,7 +1268,6 @@ tSCC* apzSco5_Stat_WrappersMachs[] = { ...@@ -1297,7 +1268,6 @@ tSCC* apzSco5_Stat_WrappersMachs[] = {
"i*86-*-sco3.2v5*", "i*86-*-sco3.2v5*",
(const char*)NULL }; (const char*)NULL };
#define SCO5_STAT_WRAPPERS_TEST_CT 0 #define SCO5_STAT_WRAPPERS_TEST_CT 0
#define SCO5_STAT_WRAPPERS_RE_CT 0
#define aSco5_Stat_WrappersTests (tTestDesc*)NULL #define aSco5_Stat_WrappersTests (tTestDesc*)NULL
/* /*
...@@ -1337,7 +1307,6 @@ tSCC zEnd_Else_LabelName[] = ...@@ -1337,7 +1307,6 @@ tSCC zEnd_Else_LabelName[] =
tSCC zEnd_Else_LabelFTst0[] = "else_endif_label"; tSCC zEnd_Else_LabelFTst0[] = "else_endif_label";
#define END_ELSE_LABEL_TEST_CT 1 #define END_ELSE_LABEL_TEST_CT 1
#define END_ELSE_LABEL_RE_CT 0
tTestDesc aEnd_Else_LabelTests[] = { tTestDesc aEnd_Else_LabelTests[] = {
{ TT_FUNCTION, zEnd_Else_LabelFTst0, 0 /* unused */ }, }; { TT_FUNCTION, zEnd_Else_LabelFTst0, 0 /* unused */ }, };
...@@ -1371,7 +1340,6 @@ tSCC zHp_InlineSelect0[] = ...@@ -1371,7 +1340,6 @@ tSCC zHp_InlineSelect0[] =
"include.*\"\\.\\./machine/"; "include.*\"\\.\\./machine/";
#define HP_INLINE_TEST_CT 1 #define HP_INLINE_TEST_CT 1
#define HP_INLINE_RE_CT 1
tTestDesc aHp_InlineTests[] = { tTestDesc aHp_InlineTests[] = {
{ TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, }; { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
...@@ -1407,7 +1375,6 @@ tSCC zHp_SysfileSelect0[] = ...@@ -1407,7 +1375,6 @@ tSCC zHp_SysfileSelect0[] =
"HPUX_SOURCE"; "HPUX_SOURCE";
#define HP_SYSFILE_TEST_CT 1 #define HP_SYSFILE_TEST_CT 1
#define HP_SYSFILE_RE_CT 1
tTestDesc aHp_SysfileTests[] = { tTestDesc aHp_SysfileTests[] = {
{ TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, }; { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
...@@ -1442,7 +1409,6 @@ tSCC zCxx_UnreadyBypass0[] = ...@@ -1442,7 +1409,6 @@ tSCC zCxx_UnreadyBypass0[] =
"\"C\"|__BEGIN_DECLS"; "\"C\"|__BEGIN_DECLS";
#define CXX_UNREADY_TEST_CT 1 #define CXX_UNREADY_TEST_CT 1
#define CXX_UNREADY_RE_CT 1
tTestDesc aCxx_UnreadyTests[] = { tTestDesc aCxx_UnreadyTests[] = {
{ TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, };
...@@ -1478,7 +1444,6 @@ tSCC zHpux_MaxintList[] = ...@@ -1478,7 +1444,6 @@ tSCC zHpux_MaxintList[] =
*/ */
#define apzHpux_MaxintMachs (const char**)NULL #define apzHpux_MaxintMachs (const char**)NULL
#define HPUX_MAXINT_TEST_CT 0 #define HPUX_MAXINT_TEST_CT 0
#define HPUX_MAXINT_RE_CT 0
#define aHpux_MaxintTests (tTestDesc*)NULL #define aHpux_MaxintTests (tTestDesc*)NULL
/* /*
...@@ -1515,7 +1480,6 @@ tSCC zHpux_SystimeSelect0[] = ...@@ -1515,7 +1480,6 @@ tSCC zHpux_SystimeSelect0[] =
"^extern struct sigevent;"; "^extern struct sigevent;";
#define HPUX_SYSTIME_TEST_CT 1 #define HPUX_SYSTIME_TEST_CT 1
#define HPUX_SYSTIME_RE_CT 1
tTestDesc aHpux_SystimeTests[] = { tTestDesc aHpux_SystimeTests[] = {
{ TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, }; { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
...@@ -1550,7 +1514,6 @@ tSCC zHpux8_Bogus_InlinesSelect0[] = ...@@ -1550,7 +1514,6 @@ tSCC zHpux8_Bogus_InlinesSelect0[] =
"inline"; "inline";
#define HPUX8_BOGUS_INLINES_TEST_CT 1 #define HPUX8_BOGUS_INLINES_TEST_CT 1
#define HPUX8_BOGUS_INLINES_RE_CT 1
tTestDesc aHpux8_Bogus_InlinesTests[] = { tTestDesc aHpux8_Bogus_InlinesTests[] = {
{ TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
...@@ -1588,7 +1551,6 @@ tSCC zHpux11_Uint32_CSelect0[] = ...@@ -1588,7 +1551,6 @@ tSCC zHpux11_Uint32_CSelect0[] =
"^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)"; "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
#define HPUX11_UINT32_C_TEST_CT 1 #define HPUX11_UINT32_C_TEST_CT 1
#define HPUX11_UINT32_C_RE_CT 1
tTestDesc aHpux11_Uint32_CTests[] = { tTestDesc aHpux11_Uint32_CTests[] = {
{ TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, }; { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
...@@ -1625,7 +1587,6 @@ tSCC zInteractv_Add1Test1[] = ...@@ -1625,7 +1587,6 @@ tSCC zInteractv_Add1Test1[] =
" -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\""; " -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
#define INTERACTV_ADD1_TEST_CT 2 #define INTERACTV_ADD1_TEST_CT 2
#define INTERACTV_ADD1_RE_CT 0
tTestDesc aInteractv_Add1Tests[] = { tTestDesc aInteractv_Add1Tests[] = {
{ TT_TEST, zInteractv_Add1Test0, 0 /* unused */ }, { TT_TEST, zInteractv_Add1Test0, 0 /* unused */ },
{ TT_TEST, zInteractv_Add1Test1, 0 /* unused */ }, }; { TT_TEST, zInteractv_Add1Test1, 0 /* unused */ }, };
...@@ -1663,7 +1624,6 @@ tSCC zInteractv_Add2Test1[] = ...@@ -1663,7 +1624,6 @@ tSCC zInteractv_Add2Test1[] =
" -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\""; " -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
#define INTERACTV_ADD2_TEST_CT 2 #define INTERACTV_ADD2_TEST_CT 2
#define INTERACTV_ADD2_RE_CT 0
tTestDesc aInteractv_Add2Tests[] = { tTestDesc aInteractv_Add2Tests[] = {
{ TT_TEST, zInteractv_Add2Test0, 0 /* unused */ }, { TT_TEST, zInteractv_Add2Test0, 0 /* unused */ },
{ TT_TEST, zInteractv_Add2Test1, 0 /* unused */ }, }; { TT_TEST, zInteractv_Add2Test1, 0 /* unused */ }, };
...@@ -1701,7 +1661,6 @@ tSCC zInteractv_Add3Test1[] = ...@@ -1701,7 +1661,6 @@ tSCC zInteractv_Add3Test1[] =
" -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\""; " -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
#define INTERACTV_ADD3_TEST_CT 2 #define INTERACTV_ADD3_TEST_CT 2
#define INTERACTV_ADD3_RE_CT 0
tTestDesc aInteractv_Add3Tests[] = { tTestDesc aInteractv_Add3Tests[] = {
{ TT_TEST, zInteractv_Add3Test0, 0 /* unused */ }, { TT_TEST, zInteractv_Add3Test0, 0 /* unused */ },
{ TT_TEST, zInteractv_Add3Test1, 0 /* unused */ }, }; { TT_TEST, zInteractv_Add3Test1, 0 /* unused */ }, };
...@@ -1737,7 +1696,6 @@ tSCC zIo_Def_QuotesSelect0[] = ...@@ -1737,7 +1696,6 @@ tSCC zIo_Def_QuotesSelect0[] =
"[ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*\\( *[^,']"; "[ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*\\( *[^,']";
#define IO_DEF_QUOTES_TEST_CT 1 #define IO_DEF_QUOTES_TEST_CT 1
#define IO_DEF_QUOTES_RE_CT 1
tTestDesc aIo_Def_QuotesTests[] = { tTestDesc aIo_Def_QuotesTests[] = {
{ TT_EGREP, zIo_Def_QuotesSelect0, (regex_t*)NULL }, }; { TT_EGREP, zIo_Def_QuotesSelect0, (regex_t*)NULL }, };
...@@ -1774,7 +1732,6 @@ tSCC zIoctl_Fix_CtrlSelect0[] = ...@@ -1774,7 +1732,6 @@ tSCC zIoctl_Fix_CtrlSelect0[] =
"CTRL[ \t]*\\("; "CTRL[ \t]*\\(";
#define IOCTL_FIX_CTRL_TEST_CT 1 #define IOCTL_FIX_CTRL_TEST_CT 1
#define IOCTL_FIX_CTRL_RE_CT 1
tTestDesc aIoctl_Fix_CtrlTests[] = { tTestDesc aIoctl_Fix_CtrlTests[] = {
{ TT_EGREP, zIoctl_Fix_CtrlSelect0, (regex_t*)NULL }, }; { TT_EGREP, zIoctl_Fix_CtrlSelect0, (regex_t*)NULL }, };
...@@ -1814,7 +1771,6 @@ tSCC zIp_Missing_SemiSelect0[] = ...@@ -1814,7 +1771,6 @@ tSCC zIp_Missing_SemiSelect0[] =
"}$"; "}$";
#define IP_MISSING_SEMI_TEST_CT 1 #define IP_MISSING_SEMI_TEST_CT 1
#define IP_MISSING_SEMI_RE_CT 1
tTestDesc aIp_Missing_SemiTests[] = { tTestDesc aIp_Missing_SemiTests[] = {
{ TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, }; { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
...@@ -1842,7 +1798,6 @@ tSCC zIrix_Multiline_CmntList[] = ...@@ -1842,7 +1798,6 @@ tSCC zIrix_Multiline_CmntList[] =
*/ */
#define apzIrix_Multiline_CmntMachs (const char**)NULL #define apzIrix_Multiline_CmntMachs (const char**)NULL
#define IRIX_MULTILINE_CMNT_TEST_CT 0 #define IRIX_MULTILINE_CMNT_TEST_CT 0
#define IRIX_MULTILINE_CMNT_RE_CT 0
#define aIrix_Multiline_CmntTests (tTestDesc*)NULL #define aIrix_Multiline_CmntTests (tTestDesc*)NULL
/* /*
...@@ -1877,7 +1832,6 @@ tSCC zIrix_SockaddrSelect0[] = ...@@ -1877,7 +1832,6 @@ tSCC zIrix_SockaddrSelect0[] =
"authdes_create.*struct sockaddr"; "authdes_create.*struct sockaddr";
#define IRIX_SOCKADDR_TEST_CT 1 #define IRIX_SOCKADDR_TEST_CT 1
#define IRIX_SOCKADDR_RE_CT 1
tTestDesc aIrix_SockaddrTests[] = { tTestDesc aIrix_SockaddrTests[] = {
{ TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, }; { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, };
...@@ -1906,7 +1860,6 @@ tSCC zIrix_Struct__FileList[] = ...@@ -1906,7 +1860,6 @@ tSCC zIrix_Struct__FileList[] =
*/ */
#define apzIrix_Struct__FileMachs (const char**)NULL #define apzIrix_Struct__FileMachs (const char**)NULL
#define IRIX_STRUCT__FILE_TEST_CT 0 #define IRIX_STRUCT__FILE_TEST_CT 0
#define IRIX_STRUCT__FILE_RE_CT 0
#define aIrix_Struct__FileTests (tTestDesc*)NULL #define aIrix_Struct__FileTests (tTestDesc*)NULL
/* /*
...@@ -1941,7 +1894,6 @@ tSCC zIrix_Asm_ApostropheSelect0[] = ...@@ -1941,7 +1894,6 @@ tSCC zIrix_Asm_ApostropheSelect0[] =
"^[ \t]*#.*[Ww]e're"; "^[ \t]*#.*[Ww]e're";
#define IRIX_ASM_APOSTROPHE_TEST_CT 1 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
#define IRIX_ASM_APOSTROPHE_RE_CT 1
tTestDesc aIrix_Asm_ApostropheTests[] = { tTestDesc aIrix_Asm_ApostropheTests[] = {
{ TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, }; { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
...@@ -1976,7 +1928,6 @@ tSCC zIsc_FmodSelect0[] = ...@@ -1976,7 +1928,6 @@ tSCC zIsc_FmodSelect0[] =
"fmod\\(double\\)"; "fmod\\(double\\)";
#define ISC_FMOD_TEST_CT 1 #define ISC_FMOD_TEST_CT 1
#define ISC_FMOD_RE_CT 1
tTestDesc aIsc_FmodTests[] = { tTestDesc aIsc_FmodTests[] = {
{ TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, }; { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
...@@ -2006,7 +1957,6 @@ tSCC* apzMotorola_NestedMachs[] = { ...@@ -2006,7 +1957,6 @@ tSCC* apzMotorola_NestedMachs[] = {
"m68k-motorola-sysv*", "m68k-motorola-sysv*",
(const char*)NULL }; (const char*)NULL };
#define MOTOROLA_NESTED_TEST_CT 0 #define MOTOROLA_NESTED_TEST_CT 0
#define MOTOROLA_NESTED_RE_CT 0
#define aMotorola_NestedTests (tTestDesc*)NULL #define aMotorola_NestedTests (tTestDesc*)NULL
/* /*
...@@ -2041,7 +1991,6 @@ tSCC zIsc_Sys_LimitsSelect0[] = ...@@ -2041,7 +1991,6 @@ tSCC zIsc_Sys_LimitsSelect0[] =
"CHILD_MAX"; "CHILD_MAX";
#define ISC_SYS_LIMITS_TEST_CT 1 #define ISC_SYS_LIMITS_TEST_CT 1
#define ISC_SYS_LIMITS_RE_CT 1
tTestDesc aIsc_Sys_LimitsTests[] = { tTestDesc aIsc_Sys_LimitsTests[] = {
{ TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, }; { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
...@@ -2077,7 +2026,6 @@ tSCC zKandr_ConcatSelect0[] = ...@@ -2077,7 +2026,6 @@ tSCC zKandr_ConcatSelect0[] =
"/\\*\\*/"; "/\\*\\*/";
#define KANDR_CONCAT_TEST_CT 1 #define KANDR_CONCAT_TEST_CT 1
#define KANDR_CONCAT_RE_CT 1
tTestDesc aKandr_ConcatTests[] = { tTestDesc aKandr_ConcatTests[] = {
{ TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, }; { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
...@@ -2112,7 +2060,6 @@ tSCC zLimits_IfndefsBypass0[] = ...@@ -2112,7 +2060,6 @@ tSCC zLimits_IfndefsBypass0[] =
"ifndef[ \t]+FLT_MIN"; "ifndef[ \t]+FLT_MIN";
#define LIMITS_IFNDEFS_TEST_CT 1 #define LIMITS_IFNDEFS_TEST_CT 1
#define LIMITS_IFNDEFS_RE_CT 1
tTestDesc aLimits_IfndefsTests[] = { tTestDesc aLimits_IfndefsTests[] = {
{ TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
...@@ -2171,7 +2118,6 @@ tSCC zLynx_Void_IntSelect0[] = ...@@ -2171,7 +2118,6 @@ tSCC zLynx_Void_IntSelect0[] =
"#[ \t]*define[ \t]+void[ \t]+int"; "#[ \t]*define[ \t]+void[ \t]+int";
#define LYNX_VOID_INT_TEST_CT 1 #define LYNX_VOID_INT_TEST_CT 1
#define LYNX_VOID_INT_RE_CT 1
tTestDesc aLynx_Void_IntTests[] = { tTestDesc aLynx_Void_IntTests[] = {
{ TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, }; { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
...@@ -2206,7 +2152,6 @@ tSCC zLynxos_Fcntl_ProtoSelect0[] = ...@@ -2206,7 +2152,6 @@ tSCC zLynxos_Fcntl_ProtoSelect0[] =
"fcntl.*\\(int, int, int\\)"; "fcntl.*\\(int, int, int\\)";
#define LYNXOS_FCNTL_PROTO_TEST_CT 1 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
#define LYNXOS_FCNTL_PROTO_RE_CT 1
tTestDesc aLynxos_Fcntl_ProtoTests[] = { tTestDesc aLynxos_Fcntl_ProtoTests[] = {
{ TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, }; { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
...@@ -2236,7 +2181,6 @@ tSCC* apzM88k_Bad_Hypot_OptMachs[] = { ...@@ -2236,7 +2181,6 @@ tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
"m88k-motorola-sysv3*", "m88k-motorola-sysv3*",
(const char*)NULL }; (const char*)NULL };
#define M88K_BAD_HYPOT_OPT_TEST_CT 0 #define M88K_BAD_HYPOT_OPT_TEST_CT 0
#define M88K_BAD_HYPOT_OPT_RE_CT 0
#define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL #define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
/* /*
...@@ -2285,7 +2229,6 @@ tSCC zM88k_Bad_S_IfSelect0[] = ...@@ -2285,7 +2229,6 @@ tSCC zM88k_Bad_S_IfSelect0[] =
"#define[ \t]+S_IS[A-Z]*(m)[ \t]"; "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
#define M88K_BAD_S_IF_TEST_CT 1 #define M88K_BAD_S_IF_TEST_CT 1
#define M88K_BAD_S_IF_RE_CT 1
tTestDesc aM88k_Bad_S_IfTests[] = { tTestDesc aM88k_Bad_S_IfTests[] = {
{ TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, }; { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
...@@ -2323,7 +2266,6 @@ tSCC zM88k_Multi_InclBypass0[] = ...@@ -2323,7 +2266,6 @@ tSCC zM88k_Multi_InclBypass0[] =
"#ifndef"; "#ifndef";
#define M88K_MULTI_INCL_TEST_CT 1 #define M88K_MULTI_INCL_TEST_CT 1
#define M88K_MULTI_INCL_RE_CT 1
tTestDesc aM88k_Multi_InclTests[] = { tTestDesc aM88k_Multi_InclTests[] = {
{ TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
...@@ -2364,7 +2306,6 @@ tSCC zMachine_NameSelect0[] = ...@@ -2364,7 +2306,6 @@ tSCC zMachine_NameSelect0[] =
"^#[ \t]*(if|elif).*[^a-zA-Z0-9_](M32|_*MIPSE[LB]|_*SYSTYPE_[A-Z0-9]|_*[Rr][34]000|_*host_mips|_*i386|_*mips|bsd4|is68k|m[68]8k|mc680|news|ns32000|pdp11|pyr|sel|sony_news|sparc|sun|tahoe|tower|u370|u3b|unix|vax)"; "^#[ \t]*(if|elif).*[^a-zA-Z0-9_](M32|_*MIPSE[LB]|_*SYSTYPE_[A-Z0-9]|_*[Rr][34]000|_*host_mips|_*i386|_*mips|bsd4|is68k|m[68]8k|mc680|news|ns32000|pdp11|pyr|sel|sony_news|sparc|sun|tahoe|tower|u370|u3b|unix|vax)";
#define MACHINE_NAME_TEST_CT 1 #define MACHINE_NAME_TEST_CT 1
#define MACHINE_NAME_RE_CT 1
tTestDesc aMachine_NameTests[] = { tTestDesc aMachine_NameTests[] = {
{ TT_EGREP, zMachine_NameSelect0, (regex_t*)NULL }, }; { TT_EGREP, zMachine_NameSelect0, (regex_t*)NULL }, };
...@@ -2439,7 +2380,6 @@ tSCC zMath_ExceptionBypass0[] = ...@@ -2439,7 +2380,6 @@ tSCC zMath_ExceptionBypass0[] =
"We have a problem when using C++"; "We have a problem when using C++";
#define MATH_EXCEPTION_TEST_CT 2 #define MATH_EXCEPTION_TEST_CT 2
#define MATH_EXCEPTION_RE_CT 2
tTestDesc aMath_ExceptionTests[] = { tTestDesc aMath_ExceptionTests[] = {
{ TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL }, { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
{ TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, }; { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
...@@ -2488,7 +2428,6 @@ tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = ...@@ -2488,7 +2428,6 @@ tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
"define[ \t]*DBL_MAX"; "define[ \t]*DBL_MAX";
#define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
#define MATH_HUGE_VAL_FROM_DBL_MAX_RE_CT 2
tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
{ TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL }, { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
{ TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, }; { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
...@@ -2529,7 +2468,6 @@ tSCC zMath_Huge_Val_IfndefSelect0[] = ...@@ -2529,7 +2468,6 @@ tSCC zMath_Huge_Val_IfndefSelect0[] =
"define[ \t]*HUGE_VAL"; "define[ \t]*HUGE_VAL";
#define MATH_HUGE_VAL_IFNDEF_TEST_CT 1 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
#define MATH_HUGE_VAL_IFNDEF_RE_CT 1
tTestDesc aMath_Huge_Val_IfndefTests[] = { tTestDesc aMath_Huge_Val_IfndefTests[] = {
{ TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, }; { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
...@@ -2560,7 +2498,6 @@ tSCC zNested_CommentList[] = ...@@ -2560,7 +2498,6 @@ tSCC zNested_CommentList[] =
*/ */
#define apzNested_CommentMachs (const char**)NULL #define apzNested_CommentMachs (const char**)NULL
#define NESTED_COMMENT_TEST_CT 0 #define NESTED_COMMENT_TEST_CT 0
#define NESTED_COMMENT_RE_CT 0
#define aNested_CommentTests (tTestDesc*)NULL #define aNested_CommentTests (tTestDesc*)NULL
/* /*
...@@ -2594,7 +2531,6 @@ tSCC zNews_Os_RecursionSelect0[] = ...@@ -2594,7 +2531,6 @@ tSCC zNews_Os_RecursionSelect0[] =
"#include <stdlib.h>"; "#include <stdlib.h>";
#define NEWS_OS_RECURSION_TEST_CT 1 #define NEWS_OS_RECURSION_TEST_CT 1
#define NEWS_OS_RECURSION_RE_CT 1
tTestDesc aNews_Os_RecursionTests[] = { tTestDesc aNews_Os_RecursionTests[] = {
{ TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, }; { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
...@@ -2632,7 +2568,6 @@ tSCC zNext_Math_PrefixSelect0[] = ...@@ -2632,7 +2568,6 @@ tSCC zNext_Math_PrefixSelect0[] =
"^extern.*double.*__const__.*"; "^extern.*double.*__const__.*";
#define NEXT_MATH_PREFIX_TEST_CT 1 #define NEXT_MATH_PREFIX_TEST_CT 1
#define NEXT_MATH_PREFIX_RE_CT 1
tTestDesc aNext_Math_PrefixTests[] = { tTestDesc aNext_Math_PrefixTests[] = {
{ TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, }; { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
...@@ -2671,7 +2606,6 @@ tSCC zNext_TemplateSelect0[] = ...@@ -2671,7 +2606,6 @@ tSCC zNext_TemplateSelect0[] =
"template"; "template";
#define NEXT_TEMPLATE_TEST_CT 1 #define NEXT_TEMPLATE_TEST_CT 1
#define NEXT_TEMPLATE_RE_CT 1
tTestDesc aNext_TemplateTests[] = { tTestDesc aNext_TemplateTests[] = {
{ TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, }; { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
...@@ -2707,7 +2641,6 @@ tSCC zNext_VolitileSelect0[] = ...@@ -2707,7 +2641,6 @@ tSCC zNext_VolitileSelect0[] =
"volatile"; "volatile";
#define NEXT_VOLITILE_TEST_CT 1 #define NEXT_VOLITILE_TEST_CT 1
#define NEXT_VOLITILE_RE_CT 1
tTestDesc aNext_VolitileTests[] = { tTestDesc aNext_VolitileTests[] = {
{ TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, }; { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
...@@ -2743,7 +2676,6 @@ tSCC zNext_Wait_UnionSelect0[] = ...@@ -2743,7 +2676,6 @@ tSCC zNext_Wait_UnionSelect0[] =
"wait\\(union wait"; "wait\\(union wait";
#define NEXT_WAIT_UNION_TEST_CT 1 #define NEXT_WAIT_UNION_TEST_CT 1
#define NEXT_WAIT_UNION_RE_CT 1
tTestDesc aNext_Wait_UnionTests[] = { tTestDesc aNext_Wait_UnionTests[] = {
{ TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, }; { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
...@@ -2771,7 +2703,6 @@ tSCC zNodeent_SyntaxList[] = ...@@ -2771,7 +2703,6 @@ tSCC zNodeent_SyntaxList[] =
*/ */
#define apzNodeent_SyntaxMachs (const char**)NULL #define apzNodeent_SyntaxMachs (const char**)NULL
#define NODEENT_SYNTAX_TEST_CT 0 #define NODEENT_SYNTAX_TEST_CT 0
#define NODEENT_SYNTAX_RE_CT 0
#define aNodeent_SyntaxTests (tTestDesc*)NULL #define aNodeent_SyntaxTests (tTestDesc*)NULL
/* /*
...@@ -2811,7 +2742,6 @@ tSCC zOsf_Namespace_ATest3[] = ...@@ -2811,7 +2742,6 @@ tSCC zOsf_Namespace_ATest3[] =
" -z \"`grep __regex_t regex.h`\""; " -z \"`grep __regex_t regex.h`\"";
#define OSF_NAMESPACE_A_TEST_CT 4 #define OSF_NAMESPACE_A_TEST_CT 4
#define OSF_NAMESPACE_A_RE_CT 0
tTestDesc aOsf_Namespace_ATests[] = { tTestDesc aOsf_Namespace_ATests[] = {
{ TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
{ TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ }, { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
...@@ -2857,7 +2787,6 @@ tSCC zOsf_Namespace_BTest3[] = ...@@ -2857,7 +2787,6 @@ tSCC zOsf_Namespace_BTest3[] =
" -z \"`grep __regex_t regex.h`\""; " -z \"`grep __regex_t regex.h`\"";
#define OSF_NAMESPACE_B_TEST_CT 4 #define OSF_NAMESPACE_B_TEST_CT 4
#define OSF_NAMESPACE_B_RE_CT 0
tTestDesc aOsf_Namespace_BTests[] = { tTestDesc aOsf_Namespace_BTests[] = {
{ TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ }, { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ },
{ TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ }, { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ },
...@@ -2898,7 +2827,6 @@ tSCC zPthread_Page_SizeSelect0[] = ...@@ -2898,7 +2827,6 @@ tSCC zPthread_Page_SizeSelect0[] =
"^int __page_size"; "^int __page_size";
#define PTHREAD_PAGE_SIZE_TEST_CT 1 #define PTHREAD_PAGE_SIZE_TEST_CT 1
#define PTHREAD_PAGE_SIZE_RE_CT 1
tTestDesc aPthread_Page_SizeTests[] = { tTestDesc aPthread_Page_SizeTests[] = {
{ TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, }; { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
...@@ -2933,7 +2861,6 @@ tSCC zRead_Ret_TypeSelect0[] = ...@@ -2933,7 +2861,6 @@ tSCC zRead_Ret_TypeSelect0[] =
"extern int\t.*, fread\\(\\), fwrite\\(\\)"; "extern int\t.*, fread\\(\\), fwrite\\(\\)";
#define READ_RET_TYPE_TEST_CT 1 #define READ_RET_TYPE_TEST_CT 1
#define READ_RET_TYPE_RE_CT 1
tTestDesc aRead_Ret_TypeTests[] = { tTestDesc aRead_Ret_TypeTests[] = {
{ TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, }; { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
...@@ -2969,7 +2896,6 @@ tSCC zRs6000_DoubleSelect0[] = ...@@ -2969,7 +2896,6 @@ tSCC zRs6000_DoubleSelect0[] =
"[^a-zA-Z_]class\\("; "[^a-zA-Z_]class\\(";
#define RS6000_DOUBLE_TEST_CT 1 #define RS6000_DOUBLE_TEST_CT 1
#define RS6000_DOUBLE_RE_CT 1
tTestDesc aRs6000_DoubleTests[] = { tTestDesc aRs6000_DoubleTests[] = {
{ TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, }; { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
...@@ -3007,7 +2933,6 @@ tSCC zRs6000_FchmodSelect0[] = ...@@ -3007,7 +2933,6 @@ tSCC zRs6000_FchmodSelect0[] =
"fchmod\\(char"; "fchmod\\(char";
#define RS6000_FCHMOD_TEST_CT 1 #define RS6000_FCHMOD_TEST_CT 1
#define RS6000_FCHMOD_RE_CT 1
tTestDesc aRs6000_FchmodTests[] = { tTestDesc aRs6000_FchmodTests[] = {
{ TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, }; { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
...@@ -3042,7 +2967,6 @@ tSCC zRs6000_ParamSelect0[] = ...@@ -3042,7 +2967,6 @@ tSCC zRs6000_ParamSelect0[] =
"const char new"; "const char new";
#define RS6000_PARAM_TEST_CT 1 #define RS6000_PARAM_TEST_CT 1
#define RS6000_PARAM_RE_CT 1
tTestDesc aRs6000_ParamTests[] = { tTestDesc aRs6000_ParamTests[] = {
{ TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, }; { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
...@@ -3077,7 +3001,6 @@ tSCC zSony_IncludeSelect0[] = ...@@ -3077,7 +3001,6 @@ tSCC zSony_IncludeSelect0[] =
"\"\\.\\./machine/endian.h\""; "\"\\.\\./machine/endian.h\"";
#define SONY_INCLUDE_TEST_CT 1 #define SONY_INCLUDE_TEST_CT 1
#define SONY_INCLUDE_RE_CT 1
tTestDesc aSony_IncludeTests[] = { tTestDesc aSony_IncludeTests[] = {
{ TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
...@@ -3112,7 +3035,6 @@ tSCC zStatsswtchSelect0[] = ...@@ -3112,7 +3035,6 @@ tSCC zStatsswtchSelect0[] =
"boottime$"; "boottime$";
#define STATSSWTCH_TEST_CT 1 #define STATSSWTCH_TEST_CT 1
#define STATSSWTCH_RE_CT 1
tTestDesc aStatsswtchTests[] = { tTestDesc aStatsswtchTests[] = {
{ TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, }; { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
...@@ -3147,7 +3069,6 @@ tSCC zStdio_Va_ListBypass0[] = ...@@ -3147,7 +3069,6 @@ tSCC zStdio_Va_ListBypass0[] =
"__gnuc_va_list"; "__gnuc_va_list";
#define STDIO_VA_LIST_TEST_CT 1 #define STDIO_VA_LIST_TEST_CT 1
#define STDIO_VA_LIST_RE_CT 1
tTestDesc aStdio_Va_ListTests[] = { tTestDesc aStdio_Va_ListTests[] = {
{ TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
...@@ -3199,7 +3120,6 @@ tSCC zSun_Bogus_IfdefSelect0[] = ...@@ -3199,7 +3120,6 @@ tSCC zSun_Bogus_IfdefSelect0[] =
"#ifdef __i386__ || __vax__"; "#ifdef __i386__ || __vax__";
#define SUN_BOGUS_IFDEF_TEST_CT 1 #define SUN_BOGUS_IFDEF_TEST_CT 1
#define SUN_BOGUS_IFDEF_RE_CT 1
tTestDesc aSun_Bogus_IfdefTests[] = { tTestDesc aSun_Bogus_IfdefTests[] = {
{ TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
...@@ -3234,7 +3154,6 @@ tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] = ...@@ -3234,7 +3154,6 @@ tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
"#ifdef __i386__ || __sun4c__"; "#ifdef __i386__ || __sun4c__";
#define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1 #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
#define SUN_BOGUS_IFDEF_SUN4C_RE_CT 1
tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = { tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
{ TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
...@@ -3269,7 +3188,6 @@ tSCC zSun_CatmacroSelect0[] = ...@@ -3269,7 +3188,6 @@ tSCC zSun_CatmacroSelect0[] =
"^#define[ \t]+CAT\\(a,b\\)"; "^#define[ \t]+CAT\\(a,b\\)";
#define SUN_CATMACRO_TEST_CT 1 #define SUN_CATMACRO_TEST_CT 1
#define SUN_CATMACRO_RE_CT 1
tTestDesc aSun_CatmacroTests[] = { tTestDesc aSun_CatmacroTests[] = {
{ TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
...@@ -3302,7 +3220,6 @@ tSCC zSun_MallocList[] = ...@@ -3302,7 +3220,6 @@ tSCC zSun_MallocList[] =
*/ */
#define apzSun_MallocMachs (const char**)NULL #define apzSun_MallocMachs (const char**)NULL
#define SUN_MALLOC_TEST_CT 0 #define SUN_MALLOC_TEST_CT 0
#define SUN_MALLOC_RE_CT 0
#define aSun_MallocTests (tTestDesc*)NULL #define aSun_MallocTests (tTestDesc*)NULL
/* /*
...@@ -3339,7 +3256,6 @@ tSCC zSun_MemcpySelect0[] = ...@@ -3339,7 +3256,6 @@ tSCC zSun_MemcpySelect0[] =
"/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/"; "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
#define SUN_MEMCPY_TEST_CT 1 #define SUN_MEMCPY_TEST_CT 1
#define SUN_MEMCPY_RE_CT 1
tTestDesc aSun_MemcpyTests[] = { tTestDesc aSun_MemcpyTests[] = {
{ TT_EGREP, zSun_MemcpySelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_MemcpySelect0, (regex_t*)NULL }, };
...@@ -3394,7 +3310,6 @@ tSCC zSun_Rusers_SemiSelect0[] = ...@@ -3394,7 +3310,6 @@ tSCC zSun_Rusers_SemiSelect0[] =
"_cnt$"; "_cnt$";
#define SUN_RUSERS_SEMI_TEST_CT 1 #define SUN_RUSERS_SEMI_TEST_CT 1
#define SUN_RUSERS_SEMI_RE_CT 1
tTestDesc aSun_Rusers_SemiTests[] = { tTestDesc aSun_Rusers_SemiTests[] = {
{ TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
...@@ -3429,7 +3344,6 @@ tSCC zSun_SignalSelect0[] = ...@@ -3429,7 +3344,6 @@ tSCC zSun_SignalSelect0[] =
"^void\t\\(\\*signal\\(\\)\\)\\(\\);"; "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
#define SUN_SIGNAL_TEST_CT 1 #define SUN_SIGNAL_TEST_CT 1
#define SUN_SIGNAL_RE_CT 1
tTestDesc aSun_SignalTests[] = { tTestDesc aSun_SignalTests[] = {
{ TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
...@@ -3469,7 +3383,6 @@ tSCC zSun_Auth_ProtoSelect0[] = ...@@ -3469,7 +3383,6 @@ tSCC zSun_Auth_ProtoSelect0[] =
"\\(\\*[a-z][a-z_]*\\)\\(\\)"; "\\(\\*[a-z][a-z_]*\\)\\(\\)";
#define SUN_AUTH_PROTO_TEST_CT 1 #define SUN_AUTH_PROTO_TEST_CT 1
#define SUN_AUTH_PROTO_RE_CT 1
tTestDesc aSun_Auth_ProtoTests[] = { tTestDesc aSun_Auth_ProtoTests[] = {
{ TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
...@@ -3509,7 +3422,6 @@ tSCC zSunos_Matherr_DeclBypass0[] = ...@@ -3509,7 +3422,6 @@ tSCC zSunos_Matherr_DeclBypass0[] =
"matherr.*struct exception"; "matherr.*struct exception";
#define SUNOS_MATHERR_DECL_TEST_CT 1 #define SUNOS_MATHERR_DECL_TEST_CT 1
#define SUNOS_MATHERR_DECL_RE_CT 1
tTestDesc aSunos_Matherr_DeclTests[] = { tTestDesc aSunos_Matherr_DeclTests[] = {
{ TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, };
...@@ -3546,7 +3458,6 @@ tSCC zSunos_StrlenSelect0[] = ...@@ -3546,7 +3458,6 @@ tSCC zSunos_StrlenSelect0[] =
"int[ \t]*strlen"; "int[ \t]*strlen";
#define SUNOS_STRLEN_TEST_CT 1 #define SUNOS_STRLEN_TEST_CT 1
#define SUNOS_STRLEN_RE_CT 1
tTestDesc aSunos_StrlenTests[] = { tTestDesc aSunos_StrlenTests[] = {
{ TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
...@@ -3581,7 +3492,6 @@ tSCC zSystypesSelect0[] = ...@@ -3581,7 +3492,6 @@ tSCC zSystypesSelect0[] =
"typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t"; "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
#define SYSTYPES_TEST_CT 1 #define SYSTYPES_TEST_CT 1
#define SYSTYPES_RE_CT 1
tTestDesc aSystypesTests[] = { tTestDesc aSystypesTests[] = {
{ TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
...@@ -3646,7 +3556,6 @@ tSCC zSystypes_For_AixBypass0[] = ...@@ -3646,7 +3556,6 @@ tSCC zSystypes_For_AixBypass0[] =
"_GCC_SIZE_T"; "_GCC_SIZE_T";
#define SYSTYPES_FOR_AIX_TEST_CT 2 #define SYSTYPES_FOR_AIX_TEST_CT 2
#define SYSTYPES_FOR_AIX_RE_CT 2
tTestDesc aSystypes_For_AixTests[] = { tTestDesc aSystypes_For_AixTests[] = {
{ TT_NEGREP, zSystypes_For_AixBypass0, (regex_t*)NULL }, { TT_NEGREP, zSystypes_For_AixBypass0, (regex_t*)NULL },
{ TT_EGREP, zSystypes_For_AixSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSystypes_For_AixSelect0, (regex_t*)NULL }, };
...@@ -3679,7 +3588,6 @@ tSCC zSysv68_StringList[] = ...@@ -3679,7 +3588,6 @@ tSCC zSysv68_StringList[] =
*/ */
#define apzSysv68_StringMachs (const char**)NULL #define apzSysv68_StringMachs (const char**)NULL
#define SYSV68_STRING_TEST_CT 0 #define SYSV68_STRING_TEST_CT 0
#define SYSV68_STRING_RE_CT 0
#define aSysv68_StringTests (tTestDesc*)NULL #define aSysv68_StringTests (tTestDesc*)NULL
/* /*
...@@ -3716,7 +3624,6 @@ tSCC zSysz_Stdlib_For_SunList[] = ...@@ -3716,7 +3624,6 @@ tSCC zSysz_Stdlib_For_SunList[] =
*/ */
#define apzSysz_Stdlib_For_SunMachs (const char**)NULL #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
#define SYSZ_STDLIB_FOR_SUN_TEST_CT 0 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
#define SYSZ_STDLIB_FOR_SUN_RE_CT 0
#define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
/* /*
...@@ -3754,7 +3661,6 @@ tSCC zSysz_Stdtypes_For_SunList[] = ...@@ -3754,7 +3661,6 @@ tSCC zSysz_Stdtypes_For_SunList[] =
*/ */
#define apzSysz_Stdtypes_For_SunMachs (const char**)NULL #define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
#define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0 #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
#define SYSZ_STDTYPES_FOR_SUN_RE_CT 0
#define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
/* /*
...@@ -3802,7 +3708,6 @@ tSCC zTinfo_CplusplusSelect0[] = ...@@ -3802,7 +3708,6 @@ tSCC zTinfo_CplusplusSelect0[] =
"[ \t]_cplusplus"; "[ \t]_cplusplus";
#define TINFO_CPLUSPLUS_TEST_CT 1 #define TINFO_CPLUSPLUS_TEST_CT 1
#define TINFO_CPLUSPLUS_RE_CT 1
tTestDesc aTinfo_CplusplusTests[] = { tTestDesc aTinfo_CplusplusTests[] = {
{ TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, }; { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
...@@ -3837,7 +3742,6 @@ tSCC zUltrix_Ansi_CompatSelect0[] = ...@@ -3837,7 +3742,6 @@ tSCC zUltrix_Ansi_CompatSelect0[] =
"ULTRIX"; "ULTRIX";
#define ULTRIX_ANSI_COMPAT_TEST_CT 1 #define ULTRIX_ANSI_COMPAT_TEST_CT 1
#define ULTRIX_ANSI_COMPAT_RE_CT 1
tTestDesc aUltrix_Ansi_CompatTests[] = { tTestDesc aUltrix_Ansi_CompatTests[] = {
{ TT_EGREP, zUltrix_Ansi_CompatSelect0, (regex_t*)NULL }, }; { TT_EGREP, zUltrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
...@@ -3874,7 +3778,6 @@ tSCC zUltrix_Fix_FixprotoSelect0[] = ...@@ -3874,7 +3778,6 @@ tSCC zUltrix_Fix_FixprotoSelect0[] =
"ULTRIX"; "ULTRIX";
#define ULTRIX_FIX_FIXPROTO_TEST_CT 1 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
#define ULTRIX_FIX_FIXPROTO_RE_CT 1
tTestDesc aUltrix_Fix_FixprotoTests[] = { tTestDesc aUltrix_Fix_FixprotoTests[] = {
{ TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, }; { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
...@@ -3910,7 +3813,6 @@ tSCC zUltrix_Atof_ParamSelect0[] = ...@@ -3910,7 +3813,6 @@ tSCC zUltrix_Atof_ParamSelect0[] =
"atof\\([ \t]*char"; "atof\\([ \t]*char";
#define ULTRIX_ATOF_PARAM_TEST_CT 1 #define ULTRIX_ATOF_PARAM_TEST_CT 1
#define ULTRIX_ATOF_PARAM_RE_CT 1
tTestDesc aUltrix_Atof_ParamTests[] = { tTestDesc aUltrix_Atof_ParamTests[] = {
{ TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, }; { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
...@@ -3938,7 +3840,6 @@ tSCC zUltrix_ConstList[] = ...@@ -3938,7 +3840,6 @@ tSCC zUltrix_ConstList[] =
*/ */
#define apzUltrix_ConstMachs (const char**)NULL #define apzUltrix_ConstMachs (const char**)NULL
#define ULTRIX_CONST_TEST_CT 0 #define ULTRIX_CONST_TEST_CT 0
#define ULTRIX_CONST_RE_CT 0
#define aUltrix_ConstTests (tTestDesc*)NULL #define aUltrix_ConstTests (tTestDesc*)NULL
/* /*
...@@ -3980,7 +3881,6 @@ tSCC zUltrix_IfdefSelect0[] = ...@@ -3980,7 +3881,6 @@ tSCC zUltrix_IfdefSelect0[] =
"#ifdef KERNEL"; "#ifdef KERNEL";
#define ULTRIX_IFDEF_TEST_CT 1 #define ULTRIX_IFDEF_TEST_CT 1
#define ULTRIX_IFDEF_RE_CT 1
tTestDesc aUltrix_IfdefTests[] = { tTestDesc aUltrix_IfdefTests[] = {
{ TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, }; { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
...@@ -4008,7 +3908,6 @@ tSCC zUltrix_Nested_CmntList[] = ...@@ -4008,7 +3908,6 @@ tSCC zUltrix_Nested_CmntList[] =
*/ */
#define apzUltrix_Nested_CmntMachs (const char**)NULL #define apzUltrix_Nested_CmntMachs (const char**)NULL
#define ULTRIX_NESTED_CMNT_TEST_CT 0 #define ULTRIX_NESTED_CMNT_TEST_CT 0
#define ULTRIX_NESTED_CMNT_RE_CT 0
#define aUltrix_Nested_CmntTests (tTestDesc*)NULL #define aUltrix_Nested_CmntTests (tTestDesc*)NULL
/* /*
...@@ -4042,7 +3941,6 @@ tSCC zUltrix_StaticSelect0[] = ...@@ -4042,7 +3941,6 @@ tSCC zUltrix_StaticSelect0[] =
"#include \"r[34]_cpu"; "#include \"r[34]_cpu";
#define ULTRIX_STATIC_TEST_CT 1 #define ULTRIX_STATIC_TEST_CT 1
#define ULTRIX_STATIC_RE_CT 1
tTestDesc aUltrix_StaticTests[] = { tTestDesc aUltrix_StaticTests[] = {
{ TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, }; { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
...@@ -4084,7 +3982,6 @@ tSCC zUndefine_NullBypass0[] = ...@@ -4084,7 +3982,6 @@ tSCC zUndefine_NullBypass0[] =
"#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t])"; "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t])";
#define UNDEFINE_NULL_TEST_CT 2 #define UNDEFINE_NULL_TEST_CT 2
#define UNDEFINE_NULL_RE_CT 2
tTestDesc aUndefine_NullTests[] = { tTestDesc aUndefine_NullTests[] = {
{ TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL }, { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
{ TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, }; { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
...@@ -4128,7 +4025,6 @@ tSCC zUnixware7_Byteorder_FixSelect0[] = ...@@ -4128,7 +4025,6 @@ tSCC zUnixware7_Byteorder_FixSelect0[] =
"in_port_t"; "in_port_t";
#define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1 #define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1
#define UNIXWARE7_BYTEORDER_FIX_RE_CT 1
tTestDesc aUnixware7_Byteorder_FixTests[] = { tTestDesc aUnixware7_Byteorder_FixTests[] = {
{ TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, }; { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };
...@@ -4164,7 +4060,6 @@ tSCC zVa_I960_MacroSelect0[] = ...@@ -4164,7 +4060,6 @@ tSCC zVa_I960_MacroSelect0[] =
"__(vsiz|vali|vpad|alignof__)"; "__(vsiz|vali|vpad|alignof__)";
#define VA_I960_MACRO_TEST_CT 1 #define VA_I960_MACRO_TEST_CT 1
#define VA_I960_MACRO_RE_CT 1
tTestDesc aVa_I960_MacroTests[] = { tTestDesc aVa_I960_MacroTests[] = {
{ TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, }; { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
...@@ -4202,7 +4097,6 @@ tSCC zVoid_NullSelect0[] = ...@@ -4202,7 +4097,6 @@ tSCC zVoid_NullSelect0[] =
"#[ \t]*define[ \t][ \t]*NULL[ \t].*void"; "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
#define VOID_NULL_TEST_CT 1 #define VOID_NULL_TEST_CT 1
#define VOID_NULL_RE_CT 1
tTestDesc aVoid_NullTests[] = { tTestDesc aVoid_NullTests[] = {
{ TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, }; { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
...@@ -4237,7 +4131,6 @@ tSCC zVxworks_Gcc_ProblemSelect0[] = ...@@ -4237,7 +4131,6 @@ tSCC zVxworks_Gcc_ProblemSelect0[] =
"__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__"; "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
#define VXWORKS_GCC_PROBLEM_TEST_CT 1 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
#define VXWORKS_GCC_PROBLEM_RE_CT 1
tTestDesc aVxworks_Gcc_ProblemTests[] = { tTestDesc aVxworks_Gcc_ProblemTests[] = {
{ TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, }; { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
...@@ -4287,7 +4180,6 @@ tSCC zVxworks_Needs_VxtypesSelect0[] = ...@@ -4287,7 +4180,6 @@ tSCC zVxworks_Needs_VxtypesSelect0[] =
"uint_t[ \t][ \t]*_clocks_per_sec"; "uint_t[ \t][ \t]*_clocks_per_sec";
#define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
#define VXWORKS_NEEDS_VXTYPES_RE_CT 1
tTestDesc aVxworks_Needs_VxtypesTests[] = { tTestDesc aVxworks_Needs_VxtypesTests[] = {
{ TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, }; { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
...@@ -4332,7 +4224,6 @@ tSCC zVxworks_Needs_VxworksTest2[] = ...@@ -4332,7 +4224,6 @@ tSCC zVxworks_Needs_VxworksTest2[] =
" -n \"`egrep ULONG $file`\""; " -n \"`egrep ULONG $file`\"";
#define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
#define VXWORKS_NEEDS_VXWORKS_RE_CT 1
tTestDesc aVxworks_Needs_VxworksTests[] = { tTestDesc aVxworks_Needs_VxworksTests[] = {
{ TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ }, { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
{ TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ }, { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
...@@ -4377,7 +4268,6 @@ tSCC zVxworks_TimeTest0[] = ...@@ -4377,7 +4268,6 @@ tSCC zVxworks_TimeTest0[] =
" -r vxWorks.h"; " -r vxWorks.h";
#define VXWORKS_TIME_TEST_CT 2 #define VXWORKS_TIME_TEST_CT 2
#define VXWORKS_TIME_RE_CT 1
tTestDesc aVxworks_TimeTests[] = { tTestDesc aVxworks_TimeTests[] = {
{ TT_TEST, zVxworks_TimeTest0, 0 /* unused */ }, { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
{ TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, }; { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
...@@ -4422,7 +4312,6 @@ tSCC zX11_ClassBypass0[] = ...@@ -4422,7 +4312,6 @@ tSCC zX11_ClassBypass0[] =
"__cplusplus"; "__cplusplus";
#define X11_CLASS_TEST_CT 1 #define X11_CLASS_TEST_CT 1
#define X11_CLASS_RE_CT 1
tTestDesc aX11_ClassTests[] = { tTestDesc aX11_ClassTests[] = {
{ TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
...@@ -4462,7 +4351,6 @@ tSCC zX11_Class_UsageBypass0[] = ...@@ -4462,7 +4351,6 @@ tSCC zX11_Class_UsageBypass0[] =
"__cplusplus"; "__cplusplus";
#define X11_CLASS_USAGE_TEST_CT 1 #define X11_CLASS_USAGE_TEST_CT 1
#define X11_CLASS_USAGE_RE_CT 1
tTestDesc aX11_Class_UsageTests[] = { tTestDesc aX11_Class_UsageTests[] = {
{ TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
...@@ -4497,7 +4385,6 @@ tSCC zX11_NewBypass0[] = ...@@ -4497,7 +4385,6 @@ tSCC zX11_NewBypass0[] =
"__cplusplus"; "__cplusplus";
#define X11_NEW_TEST_CT 1 #define X11_NEW_TEST_CT 1
#define X11_NEW_RE_CT 1
tTestDesc aX11_NewTests[] = { tTestDesc aX11_NewTests[] = {
{ TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, }; { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
...@@ -4531,7 +4418,6 @@ tSCC zX11_SprintfList[] = ...@@ -4531,7 +4418,6 @@ tSCC zX11_SprintfList[] =
*/ */
#define apzX11_SprintfMachs (const char**)NULL #define apzX11_SprintfMachs (const char**)NULL
#define X11_SPRINTF_TEST_CT 0 #define X11_SPRINTF_TEST_CT 0
#define X11_SPRINTF_RE_CT 0
#define aX11_SprintfTests (tTestDesc*)NULL #define aX11_SprintfTests (tTestDesc*)NULL
/* /*
...@@ -4547,7 +4433,7 @@ extern char *\tsprintf();\\\n\ ...@@ -4547,7 +4433,7 @@ extern char *\tsprintf();\\\n\
* *
* List of all fixes * List of all fixes
*/ */
#define REGEX_COUNT 89 #define REGEX_COUNT 109
#define MACH_LIST_SIZE_LIMIT 279 #define MACH_LIST_SIZE_LIMIT 279
#define FIX_COUNT 114 #define FIX_COUNT 114
......
...@@ -57,3 +57,74 @@ load_file_data (fp) ...@@ -57,3 +57,74 @@ load_file_data (fp)
return pz_data; return pz_data;
} }
t_bool
is_cxx_header (fname, text)
tCC *fname;
tCC *text;
{
/* First, check to see if the file is in a C++ directory */
for (;;)
{
switch (*(fname++))
{
case 'C': /* check for "CC/" */
if ((fname[0] == 'C') && (fname[1] == '/'))
return BOOL_TRUE;
break;
case 'x': /* check for "xx/" */
if ((fname[0] == 'x') && (fname[1] == '/'))
return BOOL_TRUE;
break;
case '+': /* check for "++" */
if (fname[0] == '+')
return BOOL_TRUE;
break;
case NUL:
goto not_cxx_name;
}
} not_cxx_name:;
/* Or it might contain the phrase 'extern "C++"' */
for (;;)
{
tSCC zExtern[] = "extern";
tSCC zExtCxx[] = "\"C++\"";
tSCC zTemplate[] = "template";
switch (*(text++))
{
case 'e':
/* Check for "extern \"C++\"" */
if (strncmp (text, zExtern+1, sizeof( zExtern )-2) != 0)
break;
text += sizeof( zExtern )-2;
if (! isspace( *(text++)) )
break;
while (isspace( *text )) text++;
if (strncmp (text, zExtCxx, sizeof (zExtCxx) -1) == 0)
return BOOL_TRUE;
break;
case 't':
/* Check for "template<" */
if (strncmp (text, zTemplate+1, sizeof( zTemplate )-2) != 0)
break;
text += sizeof( zTemplate )-2;
while (isspace( *text )) text++;
if (*text == '<')
return BOOL_TRUE;
break;
case NUL:
goto text_done;
break;
}
} text_done:;
return BOOL_FALSE;
}
...@@ -84,6 +84,11 @@ typedef enum ...@@ -84,6 +84,11 @@ typedef enum
} t_bool; } t_bool;
#endif #endif
typedef int apply_fix_p_t; /* Apply Fix Predicate Type */
#define APPLY_FIX 0
#define SKIP_FIX 1
#define _P_(p) () #define _P_(p) ()
#endif #endif
...@@ -91,5 +96,6 @@ typedef enum ...@@ -91,5 +96,6 @@ typedef enum
* Exported procedures * Exported procedures
*/ */
char * load_file_data _P_(( FILE* fp )); char * load_file_data _P_(( FILE* fp ));
t_bool is_cxx_header _P_(( tCC* filename, tCC* filetext ));
#endif /* FIXINCLUDES_FIXLIB_H */ #endif /* FIXINCLUDES_FIXLIB_H */
...@@ -48,16 +48,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -48,16 +48,11 @@ Boston, MA 02111-1307, USA. */
#include "fixlib.h" #include "fixlib.h"
typedef int apply_fix_p_t; /* Apply Fix Predicate Type */
#define APPLY_FIX 0
#define SKIP_FIX 1
#define SHOULD_APPLY(afp) ((afp) == APPLY_FIX) #define SHOULD_APPLY(afp) ((afp) == APPLY_FIX)
apply_fix_p_t run_test(); apply_fix_p_t run_test();
typedef struct { typedef struct {
const char* test_name; tCC* test_name;
apply_fix_p_t (*test_proc)(); apply_fix_p_t (*test_proc)();
} test_entry_t; } test_entry_t;
...@@ -68,8 +63,8 @@ typedef struct { ...@@ -68,8 +63,8 @@ typedef struct {
#define TEST_FOR_FIX_PROC_HEAD( test ) \ #define TEST_FOR_FIX_PROC_HEAD( test ) \
static apply_fix_p_t test ( fname, text ) \ static apply_fix_p_t test ( fname, text ) \
const char* fname; \ tCC* fname; \
const char* text; tCC* text;
/* /*
* Skip over a quoted string. Single quote strings may * Skip over a quoted string. Single quote strings may
...@@ -77,7 +72,7 @@ static apply_fix_p_t test ( fname, text ) \ ...@@ -77,7 +72,7 @@ static apply_fix_p_t test ( fname, text ) \
* a backslash. Especially a backslash followed by octal digits. * a backslash. Especially a backslash followed by octal digits.
* We are not doing a correctness syntax check here. * We are not doing a correctness syntax check here.
*/ */
static const char* tSCC*
skip_quote( q, text ) skip_quote( q, text )
char q; char q;
char* text; char* text;
...@@ -106,29 +101,10 @@ skip_quote( q, text ) ...@@ -106,29 +101,10 @@ skip_quote( q, text )
return text; return text;
} }
static apply_fix_p_t
is_cxx_header (fname, text)
const char *fname;
const char *text;
{
/* First, check to see if the file is in a C++ directory */
if (strstr( fname, "CC/" ) != NULL)
return SKIP_FIX;
if (strstr( fname, "xx/" ) != NULL)
return SKIP_FIX;
if (strstr( fname, "++" ) != NULL)
return SKIP_FIX;
/* Or it might contain the phrase 'extern "C++"' */
if (strstr( text, "extern \"C++\"" ) != NULL)
return SKIP_FIX;
return APPLY_FIX;
}
TEST_FOR_FIX_PROC_HEAD( double_slash_test ) TEST_FOR_FIX_PROC_HEAD( double_slash_test )
{ {
if (is_cxx_header (fname, text) == SKIP_FIX) if (is_cxx_header (fname, text))
return SKIP_FIX; return SKIP_FIX;
/* Now look for the comment markers in the text */ /* Now look for the comment markers in the text */
...@@ -173,13 +149,13 @@ TEST_FOR_FIX_PROC_HEAD( double_slash_test ) ...@@ -173,13 +149,13 @@ TEST_FOR_FIX_PROC_HEAD( double_slash_test )
TEST_FOR_FIX_PROC_HEAD( else_endif_label_test ) TEST_FOR_FIX_PROC_HEAD( else_endif_label_test )
{ {
static int compiled = 0; static int compiled = 0;
static const char label_pat[] = "^[ \t]*#[ \t]*(else|endif)"; tSCC label_pat[] = "^[ \t]*#[ \t]*(else|endif)";
static regex_t label_re; static regex_t label_re;
char ch; char ch;
const char* pz_next = (char*)NULL; tCC* pz_next = (char*)NULL;
regmatch_t match[2]; regmatch_t match[2];
const char *all_text = text; t_bool file_is_cxx = is_cxx_header( fname, text );
/* /*
This routine may be run many times within a single execution. This routine may be run many times within a single execution.
...@@ -271,25 +247,33 @@ TEST_FOR_FIX_PROC_HEAD( else_endif_label_test ) ...@@ -271,25 +247,33 @@ TEST_FOR_FIX_PROC_HEAD( else_endif_label_test )
case '/': case '/':
/* /*
Skip comments. Otherwise, we have a bogon */ Skip comments. Otherwise, we have a bogon */
if (*pz_next == '*') switch (*pz_next)
{ {
case '/':
/* IF we found a "//" in a C header, THEN fix it. */
if (! file_is_cxx)
return APPLY_FIX;
/* C++ header. Skip to newline and continue. */
pz_next = strchr( pz_next+1, '\n' );
if (pz_next == (char*)NULL)
return SKIP_FIX;
pz_next++;
break;
case '*':
/* A comment for either C++ or C. Skip over it. */
pz_next = strstr( pz_next+1, "*/" ); pz_next = strstr( pz_next+1, "*/" );
if (pz_next == (char*)NULL) if (pz_next == (char*)NULL)
return SKIP_FIX; return SKIP_FIX;
pz_next += 2; pz_next += 2;
break; break;
default:
/* a '/' followed by other junk. */
return APPLY_FIX;
} }
else if (*pz_next == '/' break; /* a C or C++ comment */
&& is_cxx_header( fname, all_text ) == SKIP_FIX)
{
pz_next = strchr( pz_next+1, '\n' );
if (pz_next == (char*)NULL)
return SKIP_FIX;
pz_next++;
break;
}
/* FALLTHROUGH */
default: default:
/* /*
...@@ -311,9 +295,9 @@ TEST_FOR_FIX_PROC_HEAD( else_endif_label_test ) ...@@ -311,9 +295,9 @@ TEST_FOR_FIX_PROC_HEAD( else_endif_label_test )
*/ */
apply_fix_p_t apply_fix_p_t
run_test( tname, fname, text ) run_test( tname, fname, text )
const char* tname; tCC* tname;
const char* fname; tCC* fname;
const char* text; tCC* text;
{ {
#define _FT_(n,p) { n, p }, #define _FT_(n,p) { n, p },
static test_entry_t test_table[] = { FIX_TEST_TABLE { NULL, NULL }}; static test_entry_t test_table[] = { FIX_TEST_TABLE { NULL, NULL }};
...@@ -353,7 +337,6 @@ main( argc, argv ) ...@@ -353,7 +337,6 @@ main( argc, argv )
char* fname = *++argv; char* fname = *++argv;
char* tname = *++argv; char* tname = *++argv;
char* buf; char* buf;
size_t buf_size = 0;
if (argc != 3) if (argc != 3)
return run_test( "No test name provided", NULL, NULL, 0 ); return run_test( "No test name provided", NULL, NULL, 0 );
......
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
_FOR fix "\n\n" =] _FOR fix "\n\n" =]
# #
# Fix [=_eval _index 1 + #%3d _printf=]: [=hackname _Cap=] # Fix [=
_IF FIXINC_DEBUG _exist =][=_eval _index 1 + #%3d _printf=]: [=
_ENDIF =][=hackname _Cap=]
#[= #[=
_IF files _exist=] _IF files _exist=]
case "${file}" in [=_FOR files " | \\\n\t"=]./[=files=][=/files=] )[= case "${file}" in [=_FOR files " | \\\n\t"=]./[=files=][=/files=] )[=
...@@ -117,12 +119,12 @@ _FOR fix "\n\n" =] ...@@ -117,12 +119,12 @@ _FOR fix "\n\n" =]
_ELIF replace _exist =][= _ELIF replace _exist =][=
_IF replace _len 0 > =] _IF replace _len 0 > =]
echo "[=hackname _down=] replacing file ${file}" >&2 echo "[=hackname =] replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
[=replace=] [=replace=]
_EOF_[= _EOF_[=
_ELSE =] _ELSE =]
echo "[=hackname _down=] bypassing file ${file}"[= echo "[=hackname =] bypassing file ${file}"[=
_ENDIF =] _ENDIF =]
continue continue
[= [=
......
...@@ -8,12 +8,17 @@ autogen definitions inclhack; ...@@ -8,12 +8,17 @@ autogen definitions inclhack;
Define all the fixes we know about for repairing damaged headers. Define all the fixes we know about for repairing damaged headers.
Please see the README before adding or changing entries in this file. Please see the README before adding or changing entries in this file.
Now, first: DO NOT DO BROKEN FIXES (empty replacement fixes) */ Set up a debug test so we can make the templates emit special
code while debugging these fixes: */
#ifdef DEBUG
FIXINC_DEBUG = yes;
#endif
/* DO NOT DO BROKEN FIXES (empty replacement fixes) */
/* /*
* Purge some HP-UX 11 files that are only borken after they are "fixed". * Purge some HP-UX 11 files that are only broken after they are "fixed".
*/ */
fix = { fix = {
hackname = AAA_ki_iface; hackname = AAA_ki_iface;
...@@ -24,7 +29,7 @@ fix = { ...@@ -24,7 +29,7 @@ fix = {
/* /*
* Purge some HP-UX 11 files that are only borken after they are "fixed". * Purge some HP-UX 11 files that are only broken after they are "fixed".
*/ */
fix = { fix = {
hackname = AAA_ki; hackname = AAA_ki;
...@@ -35,7 +40,7 @@ fix = { ...@@ -35,7 +40,7 @@ fix = {
/* /*
* Purge some HP-UX 11 files that are only borken after they are "fixed". * Purge some HP-UX 11 files that are only broken after they are "fixed".
*/ */
fix = { fix = {
hackname = AAA_ki_calls; hackname = AAA_ki_calls;
...@@ -46,7 +51,7 @@ fix = { ...@@ -46,7 +51,7 @@ fix = {
/* /*
* Purge some HP-UX 11 files that are only borken after they are "fixed". * Purge some HP-UX 11 files that are only broken after they are "fixed".
*/ */
fix = { fix = {
hackname = AAA_ki_defs; hackname = AAA_ki_defs;
...@@ -71,7 +76,7 @@ fix = { ...@@ -71,7 +76,7 @@ fix = {
/* /*
* Purge some HP-UX 11 files that are only borken after they are "fixed". * Purge some HP-UX 11 files that are only broken after they are "fixed".
*/ */
fix = { fix = {
hackname = AAA_time; hackname = AAA_time;
......
...@@ -34,8 +34,9 @@ ...@@ -34,8 +34,9 @@
# Directory in which to store the results. # Directory in which to store the results.
# Fail if no arg to specify a directory for the output. # Fail if no arg to specify a directory for the output.
if [ "x$1" = "x" ] if [ "x$1" = "x" ]
then echo fixincludes: no output directory specified then
exit 1 echo fixincludes: no output directory specified
exit 1
fi fi
LIB=${1} LIB=${1}
...@@ -57,6 +58,17 @@ fi ...@@ -57,6 +58,17 @@ fi
FIXTESTS=$PWD/fixinc/fixtests FIXTESTS=$PWD/fixinc/fixtests
FIXFIXES=$PWD/fixinc/fixfixes FIXFIXES=$PWD/fixinc/fixfixes
if test -z "$VERBOSE"
then
VERBOSE=2
export VERBOSE
else
case "$VERBOSE" in
[0-9] ) : ;;
* ) VERBOSE=3 ;;
esac
fi
# Define what target system we're fixing. # Define what target system we're fixing.
# #
if test -r ./Makefile; then if test -r ./Makefile; then
...@@ -97,7 +109,8 @@ case $LIB in ...@@ -97,7 +109,8 @@ case $LIB in
;; ;;
esac esac
echo Fixing headers into ${LIB} for ${target_canonical} target if test $VERBOSE -gt 0
then echo Fixing headers into ${LIB} for ${target_canonical} target ; fi
# 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
...@@ -132,7 +145,8 @@ INPUT=`${PWDCMD}` ...@@ -132,7 +145,8 @@ INPUT=`${PWDCMD}`
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
echo Finding directories and links to directories if test $VERBOSE -gt 1
then echo Finding directories and links to directories ; fi
# Find all directories and all symlinks that point to directories. # Find all directories and all symlinks that point to directories.
# Put the list in $all_dirs. # Put the list in $all_dirs.
...@@ -151,7 +165,8 @@ do ...@@ -151,7 +165,8 @@ do
newdirs= newdirs=
for d in $dirs for d in $dirs
do do
echo " Searching $INPUT/$d" if test $VERBOSE -gt 1
then echo " Searching $INPUT/$d" ; fi
# Find all directories under $d, relative to $d, excluding $d itself. # Find all directories under $d, relative to $d, excluding $d itself.
# (The /. is needed after $d in case $d is a symlink.) # (The /. is needed after $d in case $d is a symlink.)
...@@ -187,8 +202,10 @@ done ...@@ -187,8 +202,10 @@ done
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
dirs= dirs=
echo "All directories (including links to directories):" if test $VERBOSE -gt 2
echo $all_dirs then echo "All directories (including links to directories):"
echo $all_dirs
fi
for file in $all_dirs; do for file in $all_dirs; do
rm -rf $LIB/$file rm -rf $LIB/$file
...@@ -206,7 +223,8 @@ mkdir $LIB/root ...@@ -206,7 +223,8 @@ mkdir $LIB/root
treetops=". ${LIB}" treetops=". ${LIB}"
if $LINKS; then if $LINKS; then
echo 'Making symbolic directory links' if test $VERBOSE -gt 1
then echo 'Making symbolic directory links' ; fi
cwd=`${PWDCMD}` cwd=`${PWDCMD}`
for sym_link in $search_dirs; do for sym_link in $search_dirs; do
...@@ -236,7 +254,8 @@ if $LINKS; then ...@@ -236,7 +254,8 @@ if $LINKS; then
# If a link points to ., make a similar link to . # If a link points to ., make a similar link to .
# #
if [ ${full_dest_dir} = ${cinput} ]; then if [ ${full_dest_dir} = ${cinput} ]; then
echo ${sym_link} '->' . ': Making self link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' . ': Making self link' ; fi
rm -fr ${LIB}/${sym_link} > /dev/null 2>&1 rm -fr ${LIB}/${sym_link} > /dev/null 2>&1
ln -s . ${LIB}/${sym_link} > /dev/null 2>&1 ln -s . ${LIB}/${sym_link} > /dev/null 2>&1
...@@ -249,7 +268,8 @@ if $LINKS; then ...@@ -249,7 +268,8 @@ if $LINKS; then
# DOTS is the relative path from ${LIB}/${sym_link} back to ${LIB}. # DOTS is the relative path from ${LIB}/${sym_link} back to ${LIB}.
dots=`echo "${sym_link}" | dots=`echo "${sym_link}" |
sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'` sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'`
echo ${sym_link} '->' $dots$y ': Making local link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' $dots$y ': Making local link' ; fi
rm -fr ${LIB}/${sym_link} > /dev/null 2>&1 rm -fr ${LIB}/${sym_link} > /dev/null 2>&1
ln -s $dots$y ${LIB}/${sym_link} > /dev/null 2>&1 ln -s $dots$y ${LIB}/${sym_link} > /dev/null 2>&1
...@@ -259,7 +279,9 @@ if $LINKS; then ...@@ -259,7 +279,9 @@ if $LINKS; then
# and process $target into ${INPUT}/root$target # and process $target into ${INPUT}/root$target
# treat this directory as if it actually contained the files. # treat this directory as if it actually contained the files.
# #
echo ${sym_link} '->' root${full_dest_dir} ': Making rooted link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' root${full_dest_dir} ': Making rooted link'
fi
if [ -d $LIB/root${full_dest_dir} ] if [ -d $LIB/root${full_dest_dir} ]
then true then true
else else
...@@ -283,7 +305,8 @@ if $LINKS; then ...@@ -283,7 +305,8 @@ if $LINKS; then
${sym_link}/*) ${sym_link}/*)
dupdir=${LIB}/root${full_dest_dir}/`echo $file2 | dupdir=${LIB}/root${full_dest_dir}/`echo $file2 |
sed -n "s|^${sym_link}/||p"` sed -n "s|^${sym_link}/||p"`
echo "Duplicating ${sym_link}'s ${dupdir}" if test $VERBOSE -gt 2
then echo "Duplicating ${sym_link}'s ${dupdir}" ; fi
if [ -d ${dupdir} ] if [ -d ${dupdir} ]
then true then true
else else
...@@ -338,7 +361,8 @@ while [ $# != 0 ]; do ...@@ -338,7 +361,8 @@ while [ $# != 0 ]; do
then continue ; fi then continue ; fi
touch ${DESTDIR}/DONE touch ${DESTDIR}/DONE
echo Fixing directory ${SRCDIR} into ${DESTDIR} if test $VERBOSE -gt 1
then echo Fixing directory ${SRCDIR} into ${DESTDIR} ; fi
# Check files which are symlinks as well as those which are files. # Check files which are symlinks as well as those which are files.
# #
...@@ -362,12 +386,12 @@ while [ $# != 0 ]; do ...@@ -362,12 +386,12 @@ while [ $# != 0 ]; do
DESTFILE=${DESTDIR}/`echo ${file} | sed "s;${FIND_BASE}/;;" ` DESTFILE=${DESTDIR}/`echo ${file} | sed "s;${FIND_BASE}/;;" `
# #
# Fix 1: Aaa_Ki_Iface # Fix Aaa_Ki_Iface
# #
case "${file}" in ./sys/ki_iface.h ) case "${file}" in ./sys/ki_iface.h )
if ( test -n "`egrep 'These definitions are for HP Internal developers' ${file}`" if ( test -n "`egrep 'These definitions are for HP Internal developers' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
echo "aaa_ki_iface bypassing file ${file}" echo "AAA_ki_iface bypassing file ${file}"
continue continue
fi # end of select 'if' fi # end of select 'if'
...@@ -376,12 +400,12 @@ while [ $# != 0 ]; do ...@@ -376,12 +400,12 @@ while [ $# != 0 ]; do
# #
# Fix 2: Aaa_Ki # Fix Aaa_Ki
# #
case "${file}" in ./sys/ki.h ) case "${file}" in ./sys/ki.h )
if ( test -n "`egrep '11.00 HP-UX LP64' ${file}`" if ( test -n "`egrep '11.00 HP-UX LP64' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
echo "aaa_ki bypassing file ${file}" echo "AAA_ki bypassing file ${file}"
continue continue
fi # end of select 'if' fi # end of select 'if'
...@@ -390,12 +414,12 @@ while [ $# != 0 ]; do ...@@ -390,12 +414,12 @@ while [ $# != 0 ]; do
# #
# Fix 3: Aaa_Ki_Calls # Fix Aaa_Ki_Calls
# #
case "${file}" in ./sys/ki_calls.h ) case "${file}" in ./sys/ki_calls.h )
if ( test -n "`egrep 'kthread_create_caller_t' ${file}`" if ( test -n "`egrep 'kthread_create_caller_t' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
echo "aaa_ki_calls bypassing file ${file}" echo "AAA_ki_calls bypassing file ${file}"
continue continue
fi # end of select 'if' fi # end of select 'if'
...@@ -404,12 +428,12 @@ while [ $# != 0 ]; do ...@@ -404,12 +428,12 @@ while [ $# != 0 ]; do
# #
# Fix 4: Aaa_Ki_Defs # Fix Aaa_Ki_Defs
# #
case "${file}" in ./sys/ki_defs.h ) case "${file}" in ./sys/ki_defs.h )
if ( test -n "`egrep 'Kernel Instrumentation Definitions' ${file}`" if ( test -n "`egrep 'Kernel Instrumentation Definitions' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
echo "aaa_ki_defs bypassing file ${file}" echo "AAA_ki_defs bypassing file ${file}"
continue continue
fi # end of select 'if' fi # end of select 'if'
...@@ -418,10 +442,10 @@ while [ $# != 0 ]; do ...@@ -418,10 +442,10 @@ while [ $# != 0 ]; do
# #
# Fix 5: Aaa_Bad_Fixes # Fix Aaa_Bad_Fixes
# #
case "${file}" in ./sundev/ipi_error.h ) case "${file}" in ./sundev/ipi_error.h )
echo "aaa_bad_fixes bypassing file ${file}" echo "AAA_bad_fixes bypassing file ${file}"
continue continue
;; # case end for file name test ;; # case end for file name test
...@@ -429,12 +453,12 @@ while [ $# != 0 ]; do ...@@ -429,12 +453,12 @@ while [ $# != 0 ]; do
# #
# Fix 6: Aaa_Time # Fix Aaa_Time
# #
case "${file}" in ./sys/time.h ) case "${file}" in ./sys/time.h )
if ( test -n "`egrep '11.0 and later representation of ki time' ${file}`" if ( test -n "`egrep '11.0 and later representation of ki time' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
echo "aaa_time bypassing file ${file}" echo "AAA_time bypassing file ${file}"
continue continue
fi # end of select 'if' fi # end of select 'if'
...@@ -443,10 +467,10 @@ while [ $# != 0 ]; do ...@@ -443,10 +467,10 @@ while [ $# != 0 ]; do
# #
# Fix 7: Aab_Dgux_Int_Varargs # Fix Aab_Dgux_Int_Varargs
# #
case "${file}" in ./_int_varargs.h ) case "${file}" in ./_int_varargs.h )
echo "aab_dgux_int_varargs replacing file ${file}" >&2 echo "AAB_dgux_int_varargs replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
#ifndef __INT_VARARGS_H #ifndef __INT_VARARGS_H
#define __INT_VARARGS_H #define __INT_VARARGS_H
...@@ -519,13 +543,13 @@ _EOF_ ...@@ -519,13 +543,13 @@ _EOF_
# #
# Fix 8: Aab_Fd_Zero_Asm_Posix_Types_H # Fix Aab_Fd_Zero_Asm_Posix_Types_H
# #
case "${file}" in ./asm/posix_types.h ) case "${file}" in ./asm/posix_types.h )
case "$target_canonical" in i[34567]86-*-linux-gnu* ) case "$target_canonical" in i[34567]86-*-linux-gnu* )
if ( test -z "`egrep '} while' ${file}`" if ( test -z "`egrep '} while' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
echo "aab_fd_zero_asm_posix_types_h replacing file ${file}" >&2 echo "AAB_fd_zero_asm_posix_types_h replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
/* This file fixes a bug in the __FD_ZERO macro /* This file fixes a bug in the __FD_ZERO macro
for older versions of the Linux kernel. */ for older versions of the Linux kernel. */
...@@ -559,11 +583,11 @@ _EOF_ ...@@ -559,11 +583,11 @@ _EOF_
# #
# Fix 9: Aab_Fd_Zero_Gnu_Types_H # Fix Aab_Fd_Zero_Gnu_Types_H
# #
case "${file}" in ./gnu/types.h ) case "${file}" in ./gnu/types.h )
case "$target_canonical" in i[34567]86-*-linux-gnu* ) case "$target_canonical" in i[34567]86-*-linux-gnu* )
echo "aab_fd_zero_gnu_types_h replacing file ${file}" >&2 echo "AAB_fd_zero_gnu_types_h replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */ /* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */
#ifndef _TYPES_H_WRAPPER #ifndef _TYPES_H_WRAPPER
...@@ -595,11 +619,11 @@ _EOF_ ...@@ -595,11 +619,11 @@ _EOF_
# #
# Fix 10: Aab_Fd_Zero_Selectbits_H # Fix Aab_Fd_Zero_Selectbits_H
# #
case "${file}" in ./selectbits.h ) case "${file}" in ./selectbits.h )
case "$target_canonical" in i[34567]86-*-linux-gnu* ) case "$target_canonical" in i[34567]86-*-linux-gnu* )
echo "aab_fd_zero_selectbits_h replacing file ${file}" >&2 echo "AAB_fd_zero_selectbits_h replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */ /* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */
#ifndef _SELECTBITS_H_WRAPPER #ifndef _SELECTBITS_H_WRAPPER
...@@ -635,7 +659,7 @@ _EOF_ ...@@ -635,7 +659,7 @@ _EOF_
# #
# Fix 11: Aab_Svr4_Replace_Byteorder # Fix Aab_Svr4_Replace_Byteorder
# #
case "${file}" in ./sys/byteorder.h ) case "${file}" in ./sys/byteorder.h )
case "$target_canonical" in *-*-sysv4* | \ case "$target_canonical" in *-*-sysv4* | \
...@@ -644,7 +668,7 @@ _EOF_ ...@@ -644,7 +668,7 @@ _EOF_
i[34567]86-*-solaris2.[0-4] | \ i[34567]86-*-solaris2.[0-4] | \
powerpcle-*-solaris2.[0-4] | \ powerpcle-*-solaris2.[0-4] | \
sparc-*-solaris2.[0-4] ) sparc-*-solaris2.[0-4] )
echo "aab_svr4_replace_byteorder replacing file ${file}" >&2 echo "AAB_svr4_replace_byteorder replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
#ifndef _SYS_BYTEORDER_H #ifndef _SYS_BYTEORDER_H
#define _SYS_BYTEORDER_H #define _SYS_BYTEORDER_H
...@@ -800,7 +824,7 @@ _EOF_ ...@@ -800,7 +824,7 @@ _EOF_
# #
# Fix 12: Aix_Syswait # Fix Aix_Syswait
# #
case "${file}" in ./sys/wait.h ) case "${file}" in ./sys/wait.h )
if ( test -n "`egrep 'bos325,' ${file}`" if ( test -n "`egrep 'bos325,' ${file}`"
...@@ -823,7 +847,7 @@ struct rusage; ...@@ -823,7 +847,7 @@ struct rusage;
# #
# Fix 13: Aix_Volatile # Fix Aix_Volatile
# #
case "${file}" in ./sys/signal.h ) case "${file}" in ./sys/signal.h )
if ( test -n "`egrep 'typedef volatile int sig_atomic_t' ${file}`" if ( test -n "`egrep 'typedef volatile int sig_atomic_t' ${file}`"
...@@ -844,7 +868,7 @@ struct rusage; ...@@ -844,7 +868,7 @@ struct rusage;
# #
# Fix 14: Alpha_Getopt # Fix Alpha_Getopt
# #
case "${file}" in ./stdio.h | \ case "${file}" in ./stdio.h | \
./stdlib.h ) ./stdlib.h )
...@@ -866,7 +890,7 @@ struct rusage; ...@@ -866,7 +890,7 @@ struct rusage;
# #
# Fix 15: Alpha_Parens # Fix Alpha_Parens
# #
case "${file}" in ./sym.h ) case "${file}" in ./sym.h )
if ( test -n "`egrep '#ifndef\\(__mips64\\)' ${file}`" if ( test -n "`egrep '#ifndef\\(__mips64\\)' ${file}`"
...@@ -887,7 +911,7 @@ struct rusage; ...@@ -887,7 +911,7 @@ struct rusage;
# #
# Fix 16: Alpha_Sbrk # Fix Alpha_Sbrk
# #
case "${file}" in ./unistd.h ) case "${file}" in ./unistd.h )
if ( test -n "`egrep 'char[ ]*\\*[ ]*sbrk[ ]*\\(' ${file}`" if ( test -n "`egrep 'char[ ]*\\*[ ]*sbrk[ ]*\\(' ${file}`"
...@@ -908,7 +932,7 @@ struct rusage; ...@@ -908,7 +932,7 @@ struct rusage;
# #
# Fix 17: Arm_Norcroft_Hint # Fix Arm_Norcroft_Hint
# #
case "${file}" in ./X11/Intrinsic.h ) case "${file}" in ./X11/Intrinsic.h )
if ( test -n "`egrep '___type p_type' ${file}`" if ( test -n "`egrep '___type p_type' ${file}`"
...@@ -929,7 +953,7 @@ struct rusage; ...@@ -929,7 +953,7 @@ struct rusage;
# #
# Fix 18: Arm_Wchar # Fix Arm_Wchar
# #
case "${file}" in ./stdlib.h ) case "${file}" in ./stdlib.h )
if ( test -n "`egrep '#[ ]*define[ ]*__wchar_t' ${file}`" if ( test -n "`egrep '#[ ]*define[ ]*__wchar_t' ${file}`"
...@@ -951,7 +975,7 @@ struct rusage; ...@@ -951,7 +975,7 @@ struct rusage;
# #
# Fix 19: Aux_Asm # Fix Aux_Asm
# #
case "${file}" in ./sys/param.h ) case "${file}" in ./sys/param.h )
if ( test -n "`egrep '#ifndef NOINLINE' ${file}`" if ( test -n "`egrep '#ifndef NOINLINE' ${file}`"
...@@ -972,7 +996,7 @@ struct rusage; ...@@ -972,7 +996,7 @@ struct rusage;
# #
# Fix 20: Avoid_Bool # Fix Avoid_Bool
# #
case "${file}" in ./curses.h | \ case "${file}" in ./curses.h | \
./curses_colr/curses.h | \ ./curses_colr/curses.h | \
...@@ -1022,7 +1046,7 @@ struct rusage; ...@@ -1022,7 +1046,7 @@ struct rusage;
# #
# Fix 21: Bad_Struct_Term # Fix Bad_Struct_Term
# #
case "${file}" in ./curses.h ) case "${file}" in ./curses.h )
if ( test -n "`egrep '^[ ]*typedef[ ]+struct[ ]+term[ ]*;' ${file}`" if ( test -n "`egrep '^[ ]*typedef[ ]+struct[ ]+term[ ]*;' ${file}`"
...@@ -1043,7 +1067,7 @@ struct rusage; ...@@ -1043,7 +1067,7 @@ struct rusage;
# #
# Fix 22: Badquote # Fix Badquote
# #
case "${file}" in ./sundev/vuid_event.h ) case "${file}" in ./sundev/vuid_event.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -1061,7 +1085,7 @@ struct rusage; ...@@ -1061,7 +1085,7 @@ struct rusage;
# #
# Fix 23: Bad_Lval # Fix Bad_Lval
# #
case "${file}" in ./libgen.h | \ case "${file}" in ./libgen.h | \
./dirent.h | \ ./dirent.h | \
...@@ -1095,7 +1119,7 @@ struct rusage; ...@@ -1095,7 +1119,7 @@ struct rusage;
# #
# Fix 24: Broken_Assert_Stdio # Fix Broken_Assert_Stdio
# #
case "${file}" in ./assert.h ) case "${file}" in ./assert.h )
if ( test -n "`egrep 'stderr' ${file}`" if ( test -n "`egrep 'stderr' ${file}`"
...@@ -1121,7 +1145,7 @@ struct rusage; ...@@ -1121,7 +1145,7 @@ struct rusage;
# #
# Fix 25: Broken_Assert_Stdlib # Fix Broken_Assert_Stdlib
# #
case "${file}" in ./assert.h ) case "${file}" in ./assert.h )
if ( test -n "`egrep 'exit *\\(|abort *\\(' ${file}`" if ( test -n "`egrep 'exit *\\(|abort *\\(' ${file}`"
...@@ -1149,7 +1173,7 @@ struct rusage; ...@@ -1149,7 +1173,7 @@ struct rusage;
# #
# Fix 26: Bsd43_Io_Macros # Fix Bsd43_Io_Macros
# #
if ( test -n "`egrep 'BSD43__IO' ${file}`" if ( test -n "`egrep 'BSD43__IO' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
...@@ -1168,7 +1192,7 @@ struct rusage; ...@@ -1168,7 +1192,7 @@ struct rusage;
# #
# Fix 27: Dec_Intern_Asm # Fix Dec_Intern_Asm
# #
case "${file}" in ./c_asm.h ) case "${file}" in ./c_asm.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -1191,7 +1215,7 @@ struct rusage; ...@@ -1191,7 +1215,7 @@ struct rusage;
# #
# Fix 28: No_Double_Slash # Fix No_Double_Slash
# #
if ${FIXTESTS} ${file} double_slash if ${FIXTESTS} ${file} double_slash
then then
...@@ -1207,7 +1231,7 @@ struct rusage; ...@@ -1207,7 +1231,7 @@ struct rusage;
# #
# Fix 29: Ecd_Cursor # Fix Ecd_Cursor
# #
case "${file}" in ./sunwindow/win_lock.h | \ case "${file}" in ./sunwindow/win_lock.h | \
./sunwindow/win_cursor.h ) ./sunwindow/win_cursor.h )
...@@ -1226,7 +1250,7 @@ struct rusage; ...@@ -1226,7 +1250,7 @@ struct rusage;
# #
# Fix 30: Sco5_Stat_Wrappers # Fix Sco5_Stat_Wrappers
# #
case "${file}" in ./sys/stat.h ) case "${file}" in ./sys/stat.h )
case "$target_canonical" in i*86-*-sco3.2v5* ) case "$target_canonical" in i*86-*-sco3.2v5* )
...@@ -1257,7 +1281,7 @@ extern "C"\ ...@@ -1257,7 +1281,7 @@ extern "C"\
# #
# Fix 31: End_Else_Label # Fix End_Else_Label
# #
if ${FIXTESTS} ${file} else_endif_label if ${FIXTESTS} ${file} else_endif_label
then then
...@@ -1273,7 +1297,7 @@ extern "C"\ ...@@ -1273,7 +1297,7 @@ extern "C"\
# #
# Fix 32: Hp_Inline # Fix Hp_Inline
# #
case "${file}" in ./sys/spinlock.h ) case "${file}" in ./sys/spinlock.h )
if ( test -n "`egrep 'include.*\"\\.\\./machine/' ${file}`" if ( test -n "`egrep 'include.*\"\\.\\./machine/' ${file}`"
...@@ -1295,7 +1319,7 @@ extern "C"\ ...@@ -1295,7 +1319,7 @@ extern "C"\
# #
# Fix 33: Hp_Sysfile # Fix Hp_Sysfile
# #
case "${file}" in ./sys/file.h ) case "${file}" in ./sys/file.h )
if ( test -n "`egrep 'HPUX_SOURCE' ${file}`" if ( test -n "`egrep 'HPUX_SOURCE' ${file}`"
...@@ -1316,7 +1340,7 @@ extern "C"\ ...@@ -1316,7 +1340,7 @@ extern "C"\
# #
# Fix 34: Cxx_Unready # Fix Cxx_Unready
# #
case "${file}" in ./sys/mman.h | \ case "${file}" in ./sys/mman.h | \
./rpc/types.h ) ./rpc/types.h )
...@@ -1348,7 +1372,7 @@ extern "C" {\ ...@@ -1348,7 +1372,7 @@ extern "C" {\
# #
# Fix 35: Hpux_Maxint # Fix Hpux_Maxint
# #
case "${file}" in ./sys/param.h ) case "${file}" in ./sys/param.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -1371,7 +1395,7 @@ extern "C" {\ ...@@ -1371,7 +1395,7 @@ extern "C" {\
# #
# Fix 36: Hpux_Systime # Fix Hpux_Systime
# #
case "${file}" in ./sys/time.h ) case "${file}" in ./sys/time.h )
if ( test -n "`egrep '^extern struct sigevent;' ${file}`" if ( test -n "`egrep '^extern struct sigevent;' ${file}`"
...@@ -1392,7 +1416,7 @@ extern "C" {\ ...@@ -1392,7 +1416,7 @@ extern "C" {\
# #
# Fix 37: Hpux8_Bogus_Inlines # Fix Hpux8_Bogus_Inlines
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test -n "`egrep 'inline' ${file}`" if ( test -n "`egrep 'inline' ${file}`"
...@@ -1416,7 +1440,7 @@ extern "C" {\ ...@@ -1416,7 +1440,7 @@ extern "C" {\
# #
# Fix 38: Hpux11_Uint32_C # Fix Hpux11_Uint32_C
# #
case "${file}" in ./inttypes.h ) case "${file}" in ./inttypes.h )
if ( test -n "`egrep '^#define UINT32_C\\(__c\\)[ ]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)' ${file}`" if ( test -n "`egrep '^#define UINT32_C\\(__c\\)[ ]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)' ${file}`"
...@@ -1437,7 +1461,7 @@ extern "C" {\ ...@@ -1437,7 +1461,7 @@ extern "C" {\
# #
# Fix 39: Interactv_Add1 # Fix Interactv_Add1
# #
case "${file}" in ./stdio.h | \ case "${file}" in ./stdio.h | \
./math.h | \ ./math.h | \
...@@ -1464,7 +1488,7 @@ extern "C" {\ ...@@ -1464,7 +1488,7 @@ extern "C" {\
# #
# Fix 40: Interactv_Add2 # Fix Interactv_Add2
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test '(' -d /etc/conf/kconfig.d ')' -a \ if ( test '(' -d /etc/conf/kconfig.d ')' -a \
...@@ -1486,7 +1510,7 @@ extern "C" {\ ...@@ -1486,7 +1510,7 @@ extern "C" {\
# #
# Fix 41: Interactv_Add3 # Fix Interactv_Add3
# #
case "${file}" in ./sys/limits.h ) case "${file}" in ./sys/limits.h )
if ( test '(' -d /etc/conf/kconfig.d ')' -a \ if ( test '(' -d /etc/conf/kconfig.d ')' -a \
...@@ -1509,7 +1533,7 @@ extern "C" {\ ...@@ -1509,7 +1533,7 @@ extern "C" {\
# #
# Fix 42: Io_Def_Quotes # Fix Io_Def_Quotes
# #
if ( test -n "`egrep '[ ]*[ ](_|DES)IO[A-Z]*[ ]*\\( *[^,'\\'']' ${file}`" if ( test -n "`egrep '[ ]*[ ](_|DES)IO[A-Z]*[ ]*\\( *[^,'\\'']' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
...@@ -1530,7 +1554,7 @@ extern "C" {\ ...@@ -1530,7 +1554,7 @@ extern "C" {\
# #
# Fix 43: Ioctl_Fix_Ctrl # Fix Ioctl_Fix_Ctrl
# #
if ( test -n "`egrep 'CTRL[ ]*\\(' ${file}`" if ( test -n "`egrep 'CTRL[ ]*\\(' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
...@@ -1553,7 +1577,7 @@ extern "C" {\ ...@@ -1553,7 +1577,7 @@ extern "C" {\
# #
# Fix 44: Ip_Missing_Semi # Fix Ip_Missing_Semi
# #
case "${file}" in ./netinet/ip.h ) case "${file}" in ./netinet/ip.h )
if ( test -n "`egrep '}$' ${file}`" if ( test -n "`egrep '}$' ${file}`"
...@@ -1574,7 +1598,7 @@ extern "C" {\ ...@@ -1574,7 +1598,7 @@ extern "C" {\
# #
# Fix 45: Irix_Multiline_Cmnt # Fix Irix_Multiline_Cmnt
# #
case "${file}" in ./sys/types.h ) case "${file}" in ./sys/types.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -1593,7 +1617,7 @@ extern "C" {\ ...@@ -1593,7 +1617,7 @@ extern "C" {\
# #
# Fix 46: Irix_Sockaddr # Fix Irix_Sockaddr
# #
case "${file}" in ./rpc/auth.h ) case "${file}" in ./rpc/auth.h )
if ( test -n "`egrep 'authdes_create.*struct sockaddr' ${file}`" if ( test -n "`egrep 'authdes_create.*struct sockaddr' ${file}`"
...@@ -1616,7 +1640,7 @@ struct sockaddr; ...@@ -1616,7 +1640,7 @@ struct sockaddr;
# #
# Fix 47: Irix_Struct__File # Fix Irix_Struct__File
# #
case "${file}" in ./rpc/xdr.h ) case "${file}" in ./rpc/xdr.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -1636,7 +1660,7 @@ struct __file_s; ...@@ -1636,7 +1660,7 @@ struct __file_s;
# #
# Fix 48: Irix_Asm_Apostrophe # Fix Irix_Asm_Apostrophe
# #
case "${file}" in ./sys/asm.h ) case "${file}" in ./sys/asm.h )
if ( test -n "`egrep '^[ ]*#.*[Ww]e'\\''re' ${file}`" if ( test -n "`egrep '^[ ]*#.*[Ww]e'\\''re' ${file}`"
...@@ -1657,7 +1681,7 @@ struct __file_s; ...@@ -1657,7 +1681,7 @@ struct __file_s;
# #
# Fix 49: Isc_Fmod # Fix Isc_Fmod
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test -n "`egrep 'fmod\\(double\\)' ${file}`" if ( test -n "`egrep 'fmod\\(double\\)' ${file}`"
...@@ -1678,7 +1702,7 @@ struct __file_s; ...@@ -1678,7 +1702,7 @@ struct __file_s;
# #
# Fix 50: Motorola_Nested # Fix Motorola_Nested
# #
case "${file}" in ./limits.h | \ case "${file}" in ./limits.h | \
./sys/limits.h ) ./sys/limits.h )
...@@ -1701,7 +1725,7 @@ struct __file_s; ...@@ -1701,7 +1725,7 @@ struct __file_s;
# #
# Fix 51: Isc_Sys_Limits # Fix Isc_Sys_Limits
# #
case "${file}" in ./sys/limits.h ) case "${file}" in ./sys/limits.h )
if ( test -n "`egrep 'CHILD_MAX' ${file}`" if ( test -n "`egrep 'CHILD_MAX' ${file}`"
...@@ -1723,7 +1747,7 @@ struct __file_s; ...@@ -1723,7 +1747,7 @@ struct __file_s;
# #
# Fix 52: Kandr_Concat # Fix Kandr_Concat
# #
case "${file}" in ./sparc/asm_linkage.h | \ case "${file}" in ./sparc/asm_linkage.h | \
./sun3/asm_linkage.h | \ ./sun3/asm_linkage.h | \
...@@ -1761,7 +1785,7 @@ struct __file_s; ...@@ -1761,7 +1785,7 @@ struct __file_s;
# #
# Fix 53: Limits_Ifndefs # Fix Limits_Ifndefs
# #
case "${file}" in ./limits.h | \ case "${file}" in ./limits.h | \
./sys/limits.h ) ./sys/limits.h )
...@@ -1819,7 +1843,7 @@ struct __file_s; ...@@ -1819,7 +1843,7 @@ struct __file_s;
# #
# Fix 54: Lynx_Void_Int # Fix Lynx_Void_Int
# #
case "${file}" in ./curses.h ) case "${file}" in ./curses.h )
if ( test -n "`egrep '#[ ]*define[ ]+void[ ]+int' ${file}`" if ( test -n "`egrep '#[ ]*define[ ]+void[ ]+int' ${file}`"
...@@ -1840,7 +1864,7 @@ struct __file_s; ...@@ -1840,7 +1864,7 @@ struct __file_s;
# #
# Fix 55: Lynxos_Fcntl_Proto # Fix Lynxos_Fcntl_Proto
# #
case "${file}" in ./fcntl.h ) case "${file}" in ./fcntl.h )
if ( test -n "`egrep 'fcntl.*\\(int, int, int\\)' ${file}`" if ( test -n "`egrep 'fcntl.*\\(int, int, int\\)' ${file}`"
...@@ -1861,7 +1885,7 @@ struct __file_s; ...@@ -1861,7 +1885,7 @@ struct __file_s;
# #
# Fix 56: M88k_Bad_Hypot_Opt # Fix M88k_Bad_Hypot_Opt
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
case "$target_canonical" in m88k-motorola-sysv3* ) case "$target_canonical" in m88k-motorola-sysv3* )
...@@ -1896,7 +1920,7 @@ static __inline__ double fake_hypot (x, y)\ ...@@ -1896,7 +1920,7 @@ static __inline__ double fake_hypot (x, y)\
# #
# Fix 57: M88k_Bad_S_If # Fix M88k_Bad_S_If
# #
case "${file}" in ./sys/stat.h ) case "${file}" in ./sys/stat.h )
case "$target_canonical" in m88k-*-sysv3* ) case "$target_canonical" in m88k-*-sysv3* )
...@@ -1921,7 +1945,7 @@ static __inline__ double fake_hypot (x, y)\ ...@@ -1921,7 +1945,7 @@ static __inline__ double fake_hypot (x, y)\
# #
# Fix 58: M88k_Multi_Incl # Fix M88k_Multi_Incl
# #
case "${file}" in ./time.h ) case "${file}" in ./time.h )
case "$target_canonical" in m88k-tektronix-sysv3* ) case "$target_canonical" in m88k-tektronix-sysv3* )
...@@ -1954,7 +1978,7 @@ static __inline__ double fake_hypot (x, y)\ ...@@ -1954,7 +1978,7 @@ static __inline__ double fake_hypot (x, y)\
# #
# Fix 59: Machine_Name # Fix Machine_Name
# #
if ( test -n "`egrep '^#[ ]*(if|elif).*[^a-zA-Z0-9_](_*[MSRrhim]|[Mbimnpstuv])[a-zA-Z0-9_]' ${file}`" if ( test -n "`egrep '^#[ ]*(if|elif).*[^a-zA-Z0-9_](_*[MSRrhim]|[Mbimnpstuv])[a-zA-Z0-9_]' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
...@@ -2006,7 +2030,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2006,7 +2030,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 60: Math_Exception # Fix Math_Exception
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test -n "`egrep 'struct exception' ${file}`" if ( test -n "`egrep 'struct exception' ${file}`"
...@@ -2039,7 +2063,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2039,7 +2063,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 61: Math_Huge_Val_From_Dbl_Max # Fix Math_Huge_Val_From_Dbl_Max
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test -n "`egrep 'define[ ]*HUGE_VAL[ ]*DBL_MAX' ${file}`" if ( test -n "`egrep 'define[ ]*HUGE_VAL[ ]*DBL_MAX' ${file}`"
...@@ -2072,7 +2096,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2072,7 +2096,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 62: Math_Huge_Val_Ifndef # Fix Math_Huge_Val_Ifndef
# #
case "${file}" in ./math/math.h ) case "${file}" in ./math/math.h )
if ( test -n "`egrep 'define[ ]*HUGE_VAL' ${file}`" if ( test -n "`egrep 'define[ ]*HUGE_VAL' ${file}`"
...@@ -2098,7 +2122,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2098,7 +2122,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 63: Nested_Comment # Fix Nested_Comment
# #
case "${file}" in ./rpc/rpc.h ) case "${file}" in ./rpc/rpc.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -2116,7 +2140,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2116,7 +2140,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 64: News_Os_Recursion # Fix News_Os_Recursion
# #
case "${file}" in ./stdlib.h ) case "${file}" in ./stdlib.h )
if ( test -n "`egrep '#include <stdlib.h>' ${file}`" if ( test -n "`egrep '#include <stdlib.h>' ${file}`"
...@@ -2142,7 +2166,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2142,7 +2166,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 65: Next_Math_Prefix # Fix Next_Math_Prefix
# #
case "${file}" in ./ansi/math.h ) case "${file}" in ./ansi/math.h )
if ( test -n "`egrep '^extern.*double.*__const__.*' ${file}`" if ( test -n "`egrep '^extern.*double.*__const__.*' ${file}`"
...@@ -2167,7 +2191,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2167,7 +2191,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 66: Next_Template # Fix Next_Template
# #
case "${file}" in ./bsd/libc.h ) case "${file}" in ./bsd/libc.h )
if ( test -n "`egrep 'template' ${file}`" if ( test -n "`egrep 'template' ${file}`"
...@@ -2189,7 +2213,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2189,7 +2213,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 67: Next_Volitile # Fix Next_Volitile
# #
case "${file}" in ./ansi/stdlib.h ) case "${file}" in ./ansi/stdlib.h )
if ( test -n "`egrep 'volatile' ${file}`" if ( test -n "`egrep 'volatile' ${file}`"
...@@ -2211,7 +2235,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2211,7 +2235,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 68: Next_Wait_Union # Fix Next_Wait_Union
# #
case "${file}" in ./sys/wait.h ) case "${file}" in ./sys/wait.h )
if ( test -n "`egrep 'wait\\(union wait' ${file}`" if ( test -n "`egrep 'wait\\(union wait' ${file}`"
...@@ -2232,7 +2256,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2232,7 +2256,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 69: Nodeent_Syntax # Fix Nodeent_Syntax
# #
case "${file}" in ./netdnet/dnetdb.h ) case "${file}" in ./netdnet/dnetdb.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -2250,7 +2274,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2250,7 +2274,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 70: Osf_Namespace_A # Fix Osf_Namespace_A
# #
case "${file}" in ./reg_types.h | \ case "${file}" in ./reg_types.h | \
./sys/lc_core.h ) ./sys/lc_core.h )
...@@ -2277,7 +2301,7 @@ s/\\+++fixinc_eol+++/\\/g ...@@ -2277,7 +2301,7 @@ s/\\+++fixinc_eol+++/\\/g
# #
# Fix 71: Osf_Namespace_B # Fix Osf_Namespace_B
# #
case "${file}" in ./regex.h ) case "${file}" in ./regex.h )
if ( test '(' -r reg_types.h ')' -a \ if ( test '(' -r reg_types.h ')' -a \
...@@ -2305,7 +2329,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2305,7 +2329,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 72: Pthread_Page_Size # Fix Pthread_Page_Size
# #
case "${file}" in ./pthread.h ) case "${file}" in ./pthread.h )
if ( test -n "`egrep '^int __page_size' ${file}`" if ( test -n "`egrep '^int __page_size' ${file}`"
...@@ -2326,7 +2350,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2326,7 +2350,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 73: Read_Ret_Type # Fix Read_Ret_Type
# #
case "${file}" in ./stdio.h ) case "${file}" in ./stdio.h )
if ( test -n "`egrep 'extern int .*, fread\\(\\), fwrite\\(\\)' ${file}`" if ( test -n "`egrep 'extern int .*, fread\\(\\), fwrite\\(\\)' ${file}`"
...@@ -2348,7 +2372,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2348,7 +2372,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 74: Rs6000_Double # Fix Rs6000_Double
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test -n "`egrep '[^a-zA-Z_]class\\(' ${file}`" if ( test -n "`egrep '[^a-zA-Z_]class\\(' ${file}`"
...@@ -2374,7 +2398,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2374,7 +2398,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 75: Rs6000_Fchmod # Fix Rs6000_Fchmod
# #
case "${file}" in ./sys/stat.h ) case "${file}" in ./sys/stat.h )
if ( test -n "`egrep 'fchmod\\(char' ${file}`" if ( test -n "`egrep 'fchmod\\(char' ${file}`"
...@@ -2395,7 +2419,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2395,7 +2419,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 76: Rs6000_Param # Fix Rs6000_Param
# #
case "${file}" in ./stdio.h | \ case "${file}" in ./stdio.h | \
./unistd.h ) ./unistd.h )
...@@ -2417,7 +2441,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2417,7 +2441,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 77: Sony_Include # Fix Sony_Include
# #
case "${file}" in ./machine/machparam.h ) case "${file}" in ./machine/machparam.h )
if ( test -n "`egrep '\"\\.\\./machine/endian.h\"' ${file}`" if ( test -n "`egrep '\"\\.\\./machine/endian.h\"' ${file}`"
...@@ -2438,7 +2462,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2438,7 +2462,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 78: Statsswtch # Fix Statsswtch
# #
case "${file}" in ./rpcsvc/rstat.h ) case "${file}" in ./rpcsvc/rstat.h )
if ( test -n "`egrep 'boottime$' ${file}`" if ( test -n "`egrep 'boottime$' ${file}`"
...@@ -2459,7 +2483,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2459,7 +2483,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 79: Stdio_Va_List # Fix Stdio_Va_List
# #
case "${file}" in ./stdio.h ) case "${file}" in ./stdio.h )
if ( test -z "`egrep '__gnuc_va_list' ${file}`" if ( test -z "`egrep '__gnuc_va_list' ${file}`"
...@@ -2501,7 +2525,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2501,7 +2525,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 80: Sun_Bogus_Ifdef # Fix Sun_Bogus_Ifdef
# #
case "${file}" in ./hsfs/hsfs_spec.h | \ case "${file}" in ./hsfs/hsfs_spec.h | \
./hsfs/iso_spec.h ) ./hsfs/iso_spec.h )
...@@ -2523,7 +2547,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2523,7 +2547,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 81: Sun_Bogus_Ifdef_Sun4c # Fix Sun_Bogus_Ifdef_Sun4c
# #
case "${file}" in ./hsfs/hsnode.h ) case "${file}" in ./hsfs/hsnode.h )
if ( test -n "`egrep '#ifdef __i386__ || __sun4c__' ${file}`" if ( test -n "`egrep '#ifdef __i386__ || __sun4c__' ${file}`"
...@@ -2544,7 +2568,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2544,7 +2568,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 82: Sun_Catmacro # Fix Sun_Catmacro
# #
case "${file}" in ./pixrect/memvar.h ) case "${file}" in ./pixrect/memvar.h )
if ( test -n "`egrep '^#define[ ]+CAT\\(a,b\\)' ${file}`" if ( test -n "`egrep '^#define[ ]+CAT\\(a,b\\)' ${file}`"
...@@ -2572,7 +2596,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2572,7 +2596,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 83: Sun_Malloc # Fix Sun_Malloc
# #
case "${file}" in ./malloc.h ) case "${file}" in ./malloc.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -2593,7 +2617,7 @@ typedef __regmatch_t regmatch_t; ...@@ -2593,7 +2617,7 @@ typedef __regmatch_t regmatch_t;
# #
# Fix 84: Sun_Memcpy # Fix Sun_Memcpy
# #
case "${file}" in ./memory.h ) case "${file}" in ./memory.h )
if ( test -n "`egrep '/\\* @\\(#\\)(head/memory.h 50.1 |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2 )\\*/' ${file}`" if ( test -n "`egrep '/\\* @\\(#\\)(head/memory.h 50.1 |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2 )\\*/' ${file}`"
...@@ -2635,7 +2659,7 @@ extern int memcmp();\ ...@@ -2635,7 +2659,7 @@ extern int memcmp();\
# #
# Fix 85: Sun_Rusers_Semi # Fix Sun_Rusers_Semi
# #
case "${file}" in ./rpcsvc/rusers.h ) case "${file}" in ./rpcsvc/rusers.h )
if ( test -n "`egrep '_cnt$' ${file}`" if ( test -n "`egrep '_cnt$' ${file}`"
...@@ -2656,7 +2680,7 @@ extern int memcmp();\ ...@@ -2656,7 +2680,7 @@ extern int memcmp();\
# #
# Fix 86: Sun_Signal # Fix Sun_Signal
# #
case "${file}" in ./sys/signal.h | \ case "${file}" in ./sys/signal.h | \
./signal.h ) ./signal.h )
...@@ -2685,7 +2709,7 @@ void (*signal(...))(...);\ ...@@ -2685,7 +2709,7 @@ void (*signal(...))(...);\
# #
# Fix 87: Sun_Auth_Proto # Fix Sun_Auth_Proto
# #
case "${file}" in ./rpc/auth.h | \ case "${file}" in ./rpc/auth.h | \
./rpc/clnt.h | \ ./rpc/clnt.h | \
...@@ -2714,7 +2738,7 @@ void (*signal(...))(...);\ ...@@ -2714,7 +2738,7 @@ void (*signal(...))(...);\
# #
# Fix 88: Sunos_Matherr_Decl # Fix Sunos_Matherr_Decl
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test -z "`egrep 'matherr.*struct exception' ${file}`" if ( test -z "`egrep 'matherr.*struct exception' ${file}`"
...@@ -2738,7 +2762,7 @@ struct exception; ...@@ -2738,7 +2762,7 @@ struct exception;
# #
# Fix 89: Sunos_Strlen # Fix Sunos_Strlen
# #
case "${file}" in ./strings.h ) case "${file}" in ./strings.h )
if ( test -n "`egrep 'int[ ]*strlen' ${file}`" if ( test -n "`egrep 'int[ ]*strlen' ${file}`"
...@@ -2759,7 +2783,7 @@ struct exception; ...@@ -2759,7 +2783,7 @@ struct exception;
# #
# Fix 90: Systypes # Fix Systypes
# #
case "${file}" in ./sys/types.h | \ case "${file}" in ./sys/types.h | \
./stdlib.h | \ ./stdlib.h | \
...@@ -2813,7 +2837,7 @@ typedef __SIZE_TYPE__ size_t;\ ...@@ -2813,7 +2837,7 @@ typedef __SIZE_TYPE__ size_t;\
# #
# Fix 91: Systypes_For_Aix # Fix Systypes_For_Aix
# #
case "${file}" in ./sys/types.h ) case "${file}" in ./sys/types.h )
if ( test -n "`egrep 'typedef[ ][ ]*[A-Za-z_][ A-Za-z_]*[ ]size_t' ${file}`" if ( test -n "`egrep 'typedef[ ][ ]*[A-Za-z_][ A-Za-z_]*[ ]size_t' ${file}`"
...@@ -2843,7 +2867,7 @@ typedef __SIZE_TYPE__ size_t;\ ...@@ -2843,7 +2867,7 @@ typedef __SIZE_TYPE__ size_t;\
# #
# Fix 92: Sysv68_String # Fix Sysv68_String
# #
case "${file}" in ./string.h ) case "${file}" in ./string.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -2871,7 +2895,7 @@ extern unsigned int\ ...@@ -2871,7 +2895,7 @@ extern unsigned int\
# #
# Fix 93: Sysz_Stdlib_For_Sun # Fix Sysz_Stdlib_For_Sun
# #
case "${file}" in ./stdlib.h ) case "${file}" in ./stdlib.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -2902,7 +2926,7 @@ extern unsigned int\ ...@@ -2902,7 +2926,7 @@ extern unsigned int\
# #
# Fix 94: Sysz_Stdtypes_For_Sun # Fix Sysz_Stdtypes_For_Sun
# #
case "${file}" in ./sys/stdtypes.h ) case "${file}" in ./sys/stdtypes.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -2940,7 +2964,7 @@ extern unsigned int\ ...@@ -2940,7 +2964,7 @@ extern unsigned int\
# #
# Fix 95: Tinfo_Cplusplus # Fix Tinfo_Cplusplus
# #
case "${file}" in ./tinfo.h ) case "${file}" in ./tinfo.h )
if ( test -n "`egrep '[ ]_cplusplus' ${file}`" if ( test -n "`egrep '[ ]_cplusplus' ${file}`"
...@@ -2961,7 +2985,7 @@ extern unsigned int\ ...@@ -2961,7 +2985,7 @@ extern unsigned int\
# #
# Fix 96: Ultrix_Ansi_Compat # Fix Ultrix_Ansi_Compat
# #
case "${file}" in ./ansi_compat.h ) case "${file}" in ./ansi_compat.h )
if ( test -n "`egrep 'ULTRIX' ${file}`" if ( test -n "`egrep 'ULTRIX' ${file}`"
...@@ -2985,7 +3009,7 @@ extern unsigned int\ ...@@ -2985,7 +3009,7 @@ extern unsigned int\
# #
# Fix 97: Ultrix_Fix_Fixproto # Fix Ultrix_Fix_Fixproto
# #
case "${file}" in ./sys/utsname.h ) case "${file}" in ./sys/utsname.h )
if ( test -n "`egrep 'ULTRIX' ${file}`" if ( test -n "`egrep 'ULTRIX' ${file}`"
...@@ -3008,7 +3032,7 @@ struct utsname; ...@@ -3008,7 +3032,7 @@ struct utsname;
# #
# Fix 98: Ultrix_Atof_Param # Fix Ultrix_Atof_Param
# #
case "${file}" in ./math.h ) case "${file}" in ./math.h )
if ( test -n "`egrep 'atof\\([ ]*char' ${file}`" if ( test -n "`egrep 'atof\\([ ]*char' ${file}`"
...@@ -3029,7 +3053,7 @@ struct utsname; ...@@ -3029,7 +3053,7 @@ struct utsname;
# #
# Fix 99: Ultrix_Const # Fix Ultrix_Const
# #
case "${file}" in ./stdio.h ) case "${file}" in ./stdio.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -3055,7 +3079,7 @@ struct utsname; ...@@ -3055,7 +3079,7 @@ struct utsname;
# #
# Fix 100: Ultrix_Ifdef # Fix Ultrix_Ifdef
# #
case "${file}" in ./sys/file.h ) case "${file}" in ./sys/file.h )
if ( test -n "`egrep '#ifdef KERNEL' ${file}`" if ( test -n "`egrep '#ifdef KERNEL' ${file}`"
...@@ -3076,7 +3100,7 @@ struct utsname; ...@@ -3076,7 +3100,7 @@ struct utsname;
# #
# Fix 101: Ultrix_Nested_Cmnt # Fix Ultrix_Nested_Cmnt
# #
case "${file}" in ./rpc/svc.h ) case "${file}" in ./rpc/svc.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -3094,7 +3118,7 @@ struct utsname; ...@@ -3094,7 +3118,7 @@ struct utsname;
# #
# Fix 102: Ultrix_Static # Fix Ultrix_Static
# #
case "${file}" in ./machine/cpu.h ) case "${file}" in ./machine/cpu.h )
if ( test -n "`egrep '#include \"r[34]_cpu' ${file}`" if ( test -n "`egrep '#include \"r[34]_cpu' ${file}`"
...@@ -3117,7 +3141,7 @@ struct utsname; ...@@ -3117,7 +3141,7 @@ struct utsname;
# #
# Fix 103: Undefine_Null # Fix Undefine_Null
# #
if ( test -n "`egrep '^#[ ]*define[ ]*[ ]NULL[ ]' ${file}`" if ( test -n "`egrep '^#[ ]*define[ ]*[ ]NULL[ ]' ${file}`"
) > /dev/null 2>&1 ; then ) > /dev/null 2>&1 ; then
...@@ -3140,7 +3164,7 @@ struct utsname; ...@@ -3140,7 +3164,7 @@ struct utsname;
# #
# Fix 104: Unixware7_Byteorder_Fix # Fix Unixware7_Byteorder_Fix
# #
case "${file}" in ./arpa/inet.h ) case "${file}" in ./arpa/inet.h )
case "$target_canonical" in *-*-sysv4* | \ case "$target_canonical" in *-*-sysv4* | \
...@@ -3170,7 +3194,7 @@ struct utsname; ...@@ -3170,7 +3194,7 @@ struct utsname;
# #
# Fix 105: Va_I960_Macro # Fix Va_I960_Macro
# #
case "${file}" in ./arch/i960/archI960.h ) case "${file}" in ./arch/i960/archI960.h )
if ( test -n "`egrep '__(vsiz|vali|vpad|alignof__)' ${file}`" if ( test -n "`egrep '__(vsiz|vali|vpad|alignof__)' ${file}`"
...@@ -3194,7 +3218,7 @@ struct utsname; ...@@ -3194,7 +3218,7 @@ struct utsname;
# #
# Fix 106: Void_Null # Fix Void_Null
# #
case "${file}" in ./curses.h | \ case "${file}" in ./curses.h | \
./dbm.h | \ ./dbm.h | \
...@@ -3225,7 +3249,7 @@ struct utsname; ...@@ -3225,7 +3249,7 @@ struct utsname;
# #
# Fix 107: Vxworks_Gcc_Problem # Fix Vxworks_Gcc_Problem
# #
case "${file}" in ./types/vxTypesBase.h ) case "${file}" in ./types/vxTypesBase.h )
if ( test -n "`egrep '__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__' ${file}`" if ( test -n "`egrep '__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__' ${file}`"
...@@ -3267,7 +3291,7 @@ struct utsname; ...@@ -3267,7 +3291,7 @@ struct utsname;
# #
# Fix 108: Vxworks_Needs_Vxtypes # Fix Vxworks_Needs_Vxtypes
# #
case "${file}" in ./time.h ) case "${file}" in ./time.h )
if ( test -n "`egrep 'uint_t[ ][ ]*_clocks_per_sec' ${file}`" if ( test -n "`egrep 'uint_t[ ][ ]*_clocks_per_sec' ${file}`"
...@@ -3288,7 +3312,7 @@ struct utsname; ...@@ -3288,7 +3312,7 @@ struct utsname;
# #
# Fix 109: Vxworks_Needs_Vxworks # Fix Vxworks_Needs_Vxworks
# #
case "${file}" in ./sys/stat.h ) case "${file}" in ./sys/stat.h )
if ( test -n "`egrep '#[ ]define[ ][ ]*__INCstath' ${file}`" if ( test -n "`egrep '#[ ]define[ ][ ]*__INCstath' ${file}`"
...@@ -3316,7 +3340,7 @@ struct utsname; ...@@ -3316,7 +3340,7 @@ struct utsname;
# #
# Fix 110: Vxworks_Time # Fix Vxworks_Time
# #
case "${file}" in ./time.h ) case "${file}" in ./time.h )
if ( test -n "`egrep 'VOIDFUNCPTR' ${file}`" if ( test -n "`egrep 'VOIDFUNCPTR' ${file}`"
...@@ -3350,7 +3374,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ ...@@ -3350,7 +3374,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\
# #
# Fix 111: X11_Class # Fix X11_Class
# #
case "${file}" in ./X11/ShellP.h ) case "${file}" in ./X11/ShellP.h )
if ( test -z "`egrep '__cplusplus' ${file}`" if ( test -z "`egrep '__cplusplus' ${file}`"
...@@ -3378,7 +3402,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ ...@@ -3378,7 +3402,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\
# #
# Fix 112: X11_Class_Usage # Fix X11_Class_Usage
# #
case "${file}" in ./Xm/BaseClassI.h ) case "${file}" in ./Xm/BaseClassI.h )
if ( test -z "`egrep '__cplusplus' ${file}`" if ( test -z "`egrep '__cplusplus' ${file}`"
...@@ -3399,7 +3423,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ ...@@ -3399,7 +3423,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\
# #
# Fix 113: X11_New # Fix X11_New
# #
case "${file}" in ./Xm/Traversal.h ) case "${file}" in ./Xm/Traversal.h )
if ( test -z "`egrep '__cplusplus' ${file}`" if ( test -z "`egrep '__cplusplus' ${file}`"
...@@ -3428,7 +3452,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ ...@@ -3428,7 +3452,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\
# #
# Fix 114: X11_Sprintf # Fix X11_Sprintf
# #
case "${file}" in ./X11*/Xmu.h ) case "${file}" in ./X11*/Xmu.h )
fixlist="${fixlist} fixlist="${fixlist}
...@@ -3492,7 +3516,8 @@ while [ $# != 0 ]; do ...@@ -3492,7 +3516,8 @@ while [ $# != 0 ]; do
cp $2 $3 >/dev/null 2>&1 || echo "Can't copy $2" >&2 cp $2 $3 >/dev/null 2>&1 || echo "Can't copy $2" >&2
chmod +w $3 2>/dev/null chmod +w $3 2>/dev/null
chmod a+r $3 2>/dev/null chmod a+r $3 2>/dev/null
echo Copied $2 if test $VERBOSE -gt 2
then echo Copied $2 ; fi
for include in `egrep '^[ ]*#[ ]*include[ ]*"[^/]' $3 | for include in `egrep '^[ ]*#[ ]*include[ ]*"[^/]' $3 |
sed -e 's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'` sed -e 's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'`
do do
...@@ -3508,17 +3533,22 @@ while [ $# != 0 ]; do ...@@ -3508,17 +3533,22 @@ while [ $# != 0 ]; do
shift shift
done done
echo 'Cleaning up DONE files.' if test $VERBOSE -gt 2
then echo 'Cleaning up DONE files.' ; fi
cd $LIB cd $LIB
find . -name DONE -exec rm -f '{}' ';' find . -name DONE -exec rm -f '{}' ';'
echo 'Removing unneeded directories:' if test $VERBOSE -gt 1
then echo 'Cleaning up unneeded directories:' ; fi
cd $LIB cd $LIB
all_dirs=`find . -type d \! -name '.' -print | sort -r` all_dirs=`find . -type d \! -name '.' -print | sort -r`
for file in $all_dirs; do for file in $all_dirs; do
rmdir $LIB/$file > /dev/null 2>&1 rmdir $LIB/$file > /dev/null 2>&1
done done
if test $VERBOSE -gt 0
then echo fixincludes is done ; fi
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# End of for INPUT directories # End of for INPUT directories
......
[= autogen template -*- Mode: ksh -*- [= autogen template -*- Mode: sh -*-
sh sh
# #
# #
...@@ -25,8 +25,9 @@ sh ...@@ -25,8 +25,9 @@ sh
# Directory in which to store the results. # Directory in which to store the results.
# Fail if no arg to specify a directory for the output. # Fail if no arg to specify a directory for the output.
if [ "x$1" = "x" ] if [ "x$1" = "x" ]
then echo fixincludes: no output directory specified then
exit 1 echo fixincludes: no output directory specified
exit 1
fi fi
LIB=${1} LIB=${1}
...@@ -48,6 +49,18 @@ fi ...@@ -48,6 +49,18 @@ fi
FIXTESTS=$PWD/fixinc/fixtests FIXTESTS=$PWD/fixinc/fixtests
FIXFIXES=$PWD/fixinc/fixfixes FIXFIXES=$PWD/fixinc/fixfixes
[=_ENDIF=] [=_ENDIF=]
if test -z "$VERBOSE"
then
VERBOSE=[=
_IF FIXINC_DEBUG _exist =]3[=_ELSE=]2[=_ENDIF=]
export VERBOSE
else
case "$VERBOSE" in
[0-9] ) : ;;
* ) VERBOSE=3 ;;
esac
fi
# Define what target system we're fixing. # Define what target system we're fixing.
# #
if test -r ./Makefile; then if test -r ./Makefile; then
...@@ -92,7 +105,8 @@ case $LIB in ...@@ -92,7 +105,8 @@ case $LIB in
;; ;;
esac esac
echo Fixing headers into ${LIB} for ${target_canonical} target if test $VERBOSE -gt 0
then echo Fixing headers into ${LIB} for ${target_canonical} target ; fi
# 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
...@@ -127,7 +141,8 @@ INPUT=`${PWDCMD}` ...@@ -127,7 +141,8 @@ INPUT=`${PWDCMD}`
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
echo Finding directories and links to directories if test $VERBOSE -gt 1
then echo Finding directories and links to directories ; fi
# Find all directories and all symlinks that point to directories. # Find all directories and all symlinks that point to directories.
# Put the list in $all_dirs. # Put the list in $all_dirs.
...@@ -146,7 +161,8 @@ do ...@@ -146,7 +161,8 @@ do
newdirs= newdirs=
for d in $dirs for d in $dirs
do do
echo " Searching $INPUT/$d" if test $VERBOSE -gt 1
then echo " Searching $INPUT/$d" ; fi
# Find all directories under $d, relative to $d, excluding $d itself. # Find all directories under $d, relative to $d, excluding $d itself.
# (The /. is needed after $d in case $d is a symlink.) # (The /. is needed after $d in case $d is a symlink.)
...@@ -182,8 +198,10 @@ done ...@@ -182,8 +198,10 @@ done
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
dirs= dirs=
echo "All directories (including links to directories):" if test $VERBOSE -gt 2
echo $all_dirs then echo "All directories (including links to directories):"
echo $all_dirs
fi
for file in $all_dirs; do for file in $all_dirs; do
rm -rf $LIB/$file rm -rf $LIB/$file
...@@ -201,7 +219,8 @@ mkdir $LIB/root ...@@ -201,7 +219,8 @@ mkdir $LIB/root
treetops=". ${LIB}" treetops=". ${LIB}"
if $LINKS; then if $LINKS; then
echo 'Making symbolic directory links' if test $VERBOSE -gt 1
then echo 'Making symbolic directory links' ; fi
cwd=`${PWDCMD}` cwd=`${PWDCMD}`
for sym_link in $search_dirs; do for sym_link in $search_dirs; do
...@@ -231,7 +250,8 @@ if $LINKS; then ...@@ -231,7 +250,8 @@ if $LINKS; then
# If a link points to ., make a similar link to . # If a link points to ., make a similar link to .
# #
if [ ${full_dest_dir} = ${cinput} ]; then if [ ${full_dest_dir} = ${cinput} ]; then
echo ${sym_link} '->' . ': Making self link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' . ': Making self link' ; fi
rm -fr ${LIB}/${sym_link} > /dev/null 2>&1 rm -fr ${LIB}/${sym_link} > /dev/null 2>&1
ln -s . ${LIB}/${sym_link} > /dev/null 2>&1 ln -s . ${LIB}/${sym_link} > /dev/null 2>&1
...@@ -244,7 +264,8 @@ if $LINKS; then ...@@ -244,7 +264,8 @@ if $LINKS; then
# DOTS is the relative path from ${LIB}/${sym_link} back to ${LIB}. # DOTS is the relative path from ${LIB}/${sym_link} back to ${LIB}.
dots=`echo "${sym_link}" | dots=`echo "${sym_link}" |
sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'` sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'`
echo ${sym_link} '->' $dots$y ': Making local link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' $dots$y ': Making local link' ; fi
rm -fr ${LIB}/${sym_link} > /dev/null 2>&1 rm -fr ${LIB}/${sym_link} > /dev/null 2>&1
ln -s $dots$y ${LIB}/${sym_link} > /dev/null 2>&1 ln -s $dots$y ${LIB}/${sym_link} > /dev/null 2>&1
...@@ -254,7 +275,9 @@ if $LINKS; then ...@@ -254,7 +275,9 @@ if $LINKS; then
# and process $target into ${INPUT}/root$target # and process $target into ${INPUT}/root$target
# treat this directory as if it actually contained the files. # treat this directory as if it actually contained the files.
# #
echo ${sym_link} '->' root${full_dest_dir} ': Making rooted link' if test $VERBOSE -gt 2
then echo ${sym_link} '->' root${full_dest_dir} ': Making rooted link'
fi
if [ -d $LIB/root${full_dest_dir} ] if [ -d $LIB/root${full_dest_dir} ]
then true then true
else else
...@@ -278,7 +301,8 @@ if $LINKS; then ...@@ -278,7 +301,8 @@ if $LINKS; then
${sym_link}/*) ${sym_link}/*)
dupdir=${LIB}/root${full_dest_dir}/`echo $file2 | dupdir=${LIB}/root${full_dest_dir}/`echo $file2 |
sed -n "s|^${sym_link}/||p"` sed -n "s|^${sym_link}/||p"`
echo "Duplicating ${sym_link}'s ${dupdir}" if test $VERBOSE -gt 2
then echo "Duplicating ${sym_link}'s ${dupdir}" ; fi
if [ -d ${dupdir} ] if [ -d ${dupdir} ]
then true then true
else else
...@@ -333,7 +357,8 @@ while [ $# != 0 ]; do ...@@ -333,7 +357,8 @@ while [ $# != 0 ]; do
then continue ; fi then continue ; fi
touch ${DESTDIR}/DONE touch ${DESTDIR}/DONE
echo Fixing directory ${SRCDIR} into ${DESTDIR} if test $VERBOSE -gt 1
then echo Fixing directory ${SRCDIR} into ${DESTDIR} ; fi
# Check files which are symlinks as well as those which are files. # Check files which are symlinks as well as those which are files.
# #
...@@ -384,7 +409,8 @@ while [ $# != 0 ]; do ...@@ -384,7 +409,8 @@ while [ $# != 0 ]; do
cp $2 $3 >/dev/null 2>&1 || echo "Can't copy $2" >&2 cp $2 $3 >/dev/null 2>&1 || echo "Can't copy $2" >&2
chmod +w $3 2>/dev/null chmod +w $3 2>/dev/null
chmod a+r $3 2>/dev/null chmod a+r $3 2>/dev/null
echo Copied $2 if test $VERBOSE -gt 2
then echo Copied $2 ; fi
for include in `egrep '^[ ]*#[ ]*include[ ]*"[^/]' $3 | for include in `egrep '^[ ]*#[ ]*include[ ]*"[^/]' $3 |
sed -e 's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'` sed -e 's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'`
do do
...@@ -400,17 +426,22 @@ while [ $# != 0 ]; do ...@@ -400,17 +426,22 @@ while [ $# != 0 ]; do
shift shift
done done
echo 'Cleaning up DONE files.' if test $VERBOSE -gt 2
then echo 'Cleaning up DONE files.' ; fi
cd $LIB cd $LIB
find . -name DONE -exec rm -f '{}' ';' find . -name DONE -exec rm -f '{}' ';'
echo 'Removing unneeded directories:' if test $VERBOSE -gt 1
then echo 'Cleaning up unneeded directories:' ; fi
cd $LIB cd $LIB
all_dirs=`find . -type d \! -name '.' -print | sort -r` all_dirs=`find . -type d \! -name '.' -print | sort -r`
for file in $all_dirs; do for file in $all_dirs; do
rmdir $LIB/$file > /dev/null 2>&1 rmdir $LIB/$file > /dev/null 2>&1
done done
if test $VERBOSE -gt 0
then echo fixincludes is done ; fi
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# End of for INPUT directories # End of for INPUT directories
......
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