Commit 19d63af9 by Richard Stallman

When fixing ftw.h, preserve remainder of

ftw and nftw declaration; don't just rewrite it.

From-SVN: r4965
parent 092dded9
...@@ -432,20 +432,20 @@ else ...@@ -432,20 +432,20 @@ else
echo Checking $file_to_fix echo Checking $file_to_fix
cp $file_to_fix /tmp/$base cp $file_to_fix /tmp/$base
chmod +w /tmp/$base chmod +w /tmp/$base
sed -e '/^extern int ftw(const/c\ sed -e '/^extern int ftw(const/i\
#if !defined(_STYPES)\ #if !defined(_STYPES)\
static\ static\
#else\ #else\
extern\ extern\
#endif\ #endif'\
int ftw(const char *, int (*)(const char *, const struct stat *, int), int);' \ -e 's/extern \(int ftw(const.*\)$/\1/' \
-e '/^extern int nftw/c\ -e '/^extern int nftw/i\
#if defined(_STYPES)\ #if defined(_STYPES)\
static\ static\
#else\ #else\
extern\ extern\
#endif\ #endif'\
int nftw(const char *, int (*)(const char *, const struct stat *, int, struct FTW *),int, int);' \ -e 's/extern \(int nftw.*\)$/\1/' \
-e '/^extern int ftw(),/c\ -e '/^extern int ftw(),/c\
#if !defined(_STYPES)\ #if !defined(_STYPES)\
static\ static\
......
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