fixincludes: Permits spaces between # and define.
* fixincludes: Permits spaces between # and define. Discard C++ comments in sys/pci.h on HP/UX 10.20. From-SVN: r15034
This commit is contained in:
parent
2eddfed1f2
commit
a94729bc72
|
@ -1,3 +1,8 @@
|
|||
Tue Sep 2 13:42:38 1997 Paul N. Hilfinger <hilfingr@CS.Berkeley.EDU>
|
||||
|
||||
* fixincludes: Permits spaces between # and define. Discard C++
|
||||
comments in sys/pci.h on HP/UX 10.20.
|
||||
|
||||
Mon Sep 1 22:13:18 1997 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* version.c: Bump for snapshot.
|
||||
|
|
|
@ -283,13 +283,14 @@ while [ $# != 0 ]; do
|
|||
/\/\/[^*]/ s|//\(.*\)$|/*\1*/|
|
||||
/[ ]_IO[A-Z]*[ ]*(/ s/\(_IO[A-Z]*[ ]*(\)\(.\),/\1'\''\2'\'',/
|
||||
/[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/
|
||||
/#define._IO/ s/'\''\([cgxtf]\)'\''/\1/g
|
||||
/#define.BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#[ ]*define[ ]*[ ]_IO/ s/'\''\([cgxtf]\)'\''/\1/g
|
||||
/#[ ]*define[ ]*[ ]BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#[ ]*define[ ]*[ ]DESIOC/ s/'\''\([cdgx]\)'\''/\1/g
|
||||
/[^A-Z0-9_]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
|
||||
/[^A-Z0-9]_CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
|
||||
/#define[ ]*[ ]CTRL/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#define[ ]*[ ]_CTRL/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#define.BSD43_CTRL/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#[ ]*define[ ]*[ ]CTRL/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#[ ]*define[ ]*[ ]_CTRL/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#[ ]*define.BSD43_CTRL/ s/'\''\([cgx]\)'\''/\1/g
|
||||
/#[ ]*[el]*if/{
|
||||
s/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g
|
||||
|
||||
|
@ -1113,6 +1114,18 @@ if [ -r ${LIB}/$file ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# And also with the HP-UX 10 sys/pci.h file
|
||||
file=sys/pci.h
|
||||
if [ -r ${LIB}/$file ]; then
|
||||
if egrep 'System Private Structures' ${LIB}/$file > /dev/null; then
|
||||
echo Fixing $file, overeager sed script
|
||||
rm ${LIB}/$file
|
||||
sed -e 's|//.*$||g' $file > ${LIB}/$file
|
||||
chmod +w ${LIB}/$file 2>/dev/null
|
||||
chmod a+r ${LIB}/$file 2>/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
# Some IRIX header files contains the string "//"
|
||||
for file in elf_abi.h elf.h; do
|
||||
if [ -r ${LIB}/$file ]; then
|
||||
|
|
Loading…
Reference in New Issue