Article View: gnu.gcc.bug
Article #303protoize bug
From: Sean Callahan 5-3309
Date: Tue, 28 Jul 1992 23:24
Date: Tue, 28 Jul 1992 23:24
37 lines
1293 bytes
1293 bytes
I have an approximately 2000 line C sourcefile. It has a globally scoped
external variable defined in the file as shown below.
AllIntersect CMAISP;
where AllIntersect is defined in an included header file as
typedef struct AllIntersect AllIntersect;
struct AllIntersect {
IheaderP head, tail;
int total;
int total_headers;
};
CMAISP is used throughout the file over 100 times. No errors are reported
until line 1508 where protoize complains that
`CMAISP' undeclared (first use this function)
and protoize fails.
I can fix the problem by inserting
extern AllIntersect CMAISP;
above the function where the complaints begin...but that is obviously
not acceptable. I am converting a program consisting of 60 large
source files!
If you can be of any help I would greatly appreciate it!
The version is 2.2.2.2
Thankyou,
Sean Callahan
seanc@atc.boeing.com
Technical Details
Message-ID:
<9207282325.AA06685@espresso.bcs.eca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!espresso.boeing.COM!seancShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!espresso.boeing.COM!seanc From: seanc@espresso.boeing.COM (Sean Callahan 5-3309) Subject: protoize bug Message-ID: <9207282325.AA06685@espresso.bcs.eca> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 28 Jul 1992 23:24:46 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 39