Commit 8bfed528 by Richard Stallman

Unquote 'f' in #define _IO.

Unquote 'f' in #define _IO.  Fix elf.h like
elf_abi.h.  For Irix 5.

From-SVN: r5970
parent 0663081e
...@@ -291,7 +291,7 @@ while [ $# != 0 ]; do ...@@ -291,7 +291,7 @@ while [ $# != 0 ]; do
/\/\/[^*]/ s|//\(.*\)$|/*\1*/| /\/\/[^*]/ s|//\(.*\)$|/*\1*/|
/[ ]_IO[A-Z]*[ ]*(/ s/\(_IO[A-Z]*[ ]*(\)\(.\),/\1'\''\2'\'',/ /[ ]_IO[A-Z]*[ ]*(/ s/\(_IO[A-Z]*[ ]*(\)\(.\),/\1'\''\2'\'',/
/[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/ /[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/
/#define._IO/ s/'\''\([cgxt]\)'\''/\1/g /#define._IO/ s/'\''\([cgxtf]\)'\''/\1/g
/#define.BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g /#define.BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g
/[^A-Z0-9_]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/ /[^A-Z0-9_]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
/[^A-Z0-9]_CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/ /[^A-Z0-9]_CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
...@@ -878,16 +878,17 @@ if [ -r ${LIB}/$file ]; then ...@@ -878,16 +878,17 @@ if [ -r ${LIB}/$file ]; then
fi fi
fi fi
# Another IRIX 4.0.1 header file contains the string "//" # Some IRIX header files contains the string "//"
file=elf_abi.h for file in elf_abi.h elf.h; do
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
echo Fixing $file, overeager sed script echo Fixing $file, overeager sed script
sed -e 's|"/\*"\*/|"//"|' ${LIB}/$file > ${LIB}/${file}.sed sed -e 's|"/\*"\*/|"//"|' ${LIB}/$file > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
if cmp $file ${LIB}/$file >/dev/null 2>&1; then if cmp $file ${LIB}/$file >/dev/null 2>&1; then
rm -f ${LIB}/$file rm -f ${LIB}/$file
fi
fi fi
fi done
# Same problem with a file from SunOS 4.1.3 : a header file containing # Same problem with a file from SunOS 4.1.3 : a header file containing
# the string "//" embedded in "/**/" # the string "//" embedded in "/**/"
......
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