aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-07-22 05:45:31 +0000
committerRichard Stallman <rms@gnu.org>1993-07-22 05:45:31 +0000
commit19d63af99df0f21b65c1e5c2d8682f6416f1c178 (patch)
treecb3ae195f34b01f3d4e7fba251511b969338b55e
parent092dded9eb87ebe8ecf517bd1b97ca1ace765f13 (diff)
downloadgcc-19d63af99df0f21b65c1e5c2d8682f6416f1c178.zip
gcc-19d63af99df0f21b65c1e5c2d8682f6416f1c178.tar.gz
gcc-19d63af99df0f21b65c1e5c2d8682f6416f1c178.tar.bz2
When fixing ftw.h, preserve remainder of
ftw and nftw declaration; don't just rewrite it. From-SVN: r4965
-rwxr-xr-xgcc/fixinc.svr412
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index 6c1d4aa..79a2508 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -432,20 +432,20 @@ else
echo Checking $file_to_fix
cp $file_to_fix /tmp/$base
chmod +w /tmp/$base
- sed -e '/^extern int ftw(const/c\
+ sed -e '/^extern int ftw(const/i\
#if !defined(_STYPES)\
static\
#else\
extern\
-#endif\
- int ftw(const char *, int (*)(const char *, const struct stat *, int), int);' \
- -e '/^extern int nftw/c\
+#endif'\
+ -e 's/extern \(int ftw(const.*\)$/\1/' \
+ -e '/^extern int nftw/i\
#if defined(_STYPES)\
static\
#else\
extern\
-#endif\
- int nftw(const char *, int (*)(const char *, const struct stat *, int, struct FTW *),int, int);' \
+#endif'\
+ -e 's/extern \(int nftw.*\)$/\1/' \
-e '/^extern int ftw(),/c\
#if !defined(_STYPES)\
static\