summaryrefslogtreecommitdiff
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-22 05:45:31 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-22 05:45:31 +0000
commit051b975659948f65040ce0a5a97b72f21b39b9ec (patch)
treecb3ae195f34b01f3d4e7fba251511b969338b55e /gcc/fixinc.svr4
parentcbb9d44318740618f5e0400afd94b691b546a153 (diff)
downloadgcc-051b975659948f65040ce0a5a97b72f21b39b9ec.tar.gz
When fixing ftw.h, preserve remainder of
ftw and nftw declaration; don't just rewrite it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-xgcc/fixinc.svr412
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index 6c1d4aaa75b..79a2508e145 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\