[gnu.gcc.bug] fixincludes on an Encore Multimax

composer@BU-CS.BU.EDU (Jeff Kellem) (04/24/89)

The fixinclude shell script will not work on all of the necessary
include files on the Encore.  Actually, the only one that I've seen a
problem with, so far, is ioctlmac.h.  The problem is fixincludes
expects that the lines it thinks need fixing to be on one line only.
But, on the Encore, as in ioctlmac.h, these lines are spread across
two lines, via quoting the newline character. 

I made a quick (but, what I consider stupid) hack that will correct
ioctlmac.h.  It still works on the other files correctly.  The main
problem is this only considers that the text that needs patching will
be on one or two lines.  I didn't bother to generalize this.  I do
*not* cosider this the best method, but it works, in this case.  I
haven't noticed any other include files that needed fixing, but I also
didn't search through all of them, either.  A 'diff -c' for
fixincludes (from gcc v1.34) is included below.


                         -jeff

Jeff Kellem
INTERNET: composer@bu-cs.bu.edu  (or composer%bu-cs.bu.edu@bu-it.bu.edu)
UUCP: ...!harvard!bu-cs!composer

----cut here----
*** fixincludes	Sun Apr 23 14:26:45 1989
--- fixincludes.encore-fix	Sun Apr 23 14:26:16 1989
***************
*** 28,34 ****
--- 28,36 ----
        chmod +w ${LIB}/$file
        ex ${LIB}/$file <<EOF
        g/[ 	]_IO[A-Z]*(/s/(\(.\),/('\1',/
+       g/[ 	]_IO[A-Z]*(.*\\\\$/.,+1s/(\(.\),/('\1',/
        g/#define._IO/s/'x'/x/g
+       g/#define._IO.*\\\\$/.,+1s/'x'/x/g
        g/[^A-Z]CTRL[ 	]*(/s/\(.\))/'\1')/
        g/#define.CTRL/s/'c'/c/g
        wq