Article View: gnu.gcc.bug
Article #2554fixincludes on an Encore Multimax
From: Jeff Kellem
Date: Sun, 23 Apr 1989 18:49
Date: Sun, 23 Apr 1989 18:49
38 lines
1958 bytes
1958 bytes
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
Technical Details
Message-ID:
<8904231849.AA07204@bu-cs.BU.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!BU-CS.BU.EDU!composerShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!BU-CS.BU.EDU!composer From: composer@BU-CS.BU.EDU (Jeff Kellem) Newsgroups: gnu.gcc.bug Subject: fixincludes on an Encore Multimax Message-ID: <8904231849.AA07204@bu-cs.BU.EDU> Date: 23 Apr 89 18:49:41 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 38