diff options
author | Richard Stallman <rms@gnu.org> | 1992-10-14 04:37:09 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-10-14 04:37:09 +0000 |
commit | 0ae2f0ff0cca93692af6cb48c385648488007a66 (patch) | |
tree | 5a2d862dfbc42108c0e51535b764c12dcacbed21 | |
parent | cf99a7342ba1ddd483d19eaacc85d7ab12205258 (diff) | |
download | gcc-0ae2f0ff0cca93692af6cb48c385648488007a66.zip gcc-0ae2f0ff0cca93692af6cb48c385648488007a66.tar.gz gcc-0ae2f0ff0cca93692af6cb48c385648488007a66.tar.bz2 |
(sys/stream.h, sys/strsubr.h): Delete spurious `extern'
in various structure definitions.
From-SVN: r2452
-rwxr-xr-x | gcc/fixinc.svr4 | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index 7d3e9f8..0037506 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -862,6 +862,57 @@ if [ \! -z "$file_to_fix" ]; then fi fi +# Remove useless extern keyword from struct forward declarations in +# <sys/stream.h> and <sys/strsubr.h> + +file=sys/stream.h +base=`basename $file` +if [ -r ${LIB}/$file ]; then + file_to_fix=${LIB}/$file +else + if [ -r ${INPUT}/$file ]; then + file_to_fix=${INPUT}/$file + else + file_to_fix="" + fi +fi +if [ \! -z "$file_to_fix" ]; then + echo Checking $file_to_fix + sed -e 's/extern struct \(stdata\|strevent\);/struct \1;/' $file_to_fix > /tmp/$base + if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \ + echo No change needed in $file_to_fix + else + echo Fixed $file_to_fix + rm -f ${LIB}/$file + cp /tmp/$base ${LIB}/$file + fi + rm -f /tmp/$base +fi + +file=sys/strsubr.h +base=`basename $file` +if [ -r ${LIB}/$file ]; then + file_to_fix=${LIB}/$file +else + if [ -r ${INPUT}/$file ]; then + file_to_fix=${INPUT}/$file + else + file_to_fix="" + fi +fi +if [ \! -z "$file_to_fix" ]; then + echo Checking $file_to_fix + sed -e 's/extern struct \(strbuf\|uio\|thread\|proc\);/struct \1;/' $file_to_fix > /tmp/$base + if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \ + echo No change needed in $file_to_fix + else + echo Fixed $file_to_fix + rm -f ${LIB}/$file + cp /tmp/$base ${LIB}/$file + fi + rm -f /tmp/$base +fi + # Convert functions to prototype form, and fix arg names in <sys/stat.h>. file=sys/stat.h |