* fixinc.sco: Paramaterize #include_next values.
* fixinc/fixinc.sco: Likewise.
From-SVN: r23479
+Sat Oct 31 22:35:29 1998 Jean-Pierre Radley <jpr@jpr.com>
+
+ * fixinc.sco: Paramaterize #include_next values.
+ * fixinc/fixinc.sco: Likewise.
+
Sat Oct 31 20:39:35 1998 Jeffrey A Law (law@cygnus.com)
* toplev.c (rest_of_compilation): No longer set reload_completed.
then
echo Fixed $file
rm -f $LIB/$file
- cat <<'__EOF__' >$LIB/$file
+ cat << __EOF__ >$LIB/$file
#ifndef _CURSES_H_WRAPPER
#ifdef __cplusplus
# define bool __curses_bool_t
#endif
-#include_next <curses.h>
+#include_next <$file>
#ifdef __cplusplus
# undef bool
#endif
# Define _CURSES_H_WRAPPER at the end of the wrapper, not the start,
# so that if #include_next gets another instance of the wrapper,
# this will follow the #include_next chain until we arrive at
- # the real <curses.h>.
+ # the real system include file.
chmod a+r $LIB/$file
fi
fi
then
echo Fixed $file
rm -f $LIB/$file
- cat <<'__EOF__' >$LIB/$file
+ cat <<__EOF__ >$LIB/$file
#ifndef _CURSES_H_WRAPPER
#ifdef __cplusplus
# define bool __curses_bool_t
#endif
-#include_next <curses.h>
+#include_next <$file>
#ifdef __cplusplus
# undef bool
#endif