home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / bug / 2006 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.2 KB  |  52 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!espresso.boeing.COM!seanc
  3. From: seanc@espresso.boeing.COM (Sean Callahan 5-3309)
  4. Subject: protoize bug
  5. Message-ID: <9207282325.AA06685@espresso.bcs.eca>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 28 Jul 1992 23:24:46 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 39
  12.  
  13. I have an approximately 2000 line C sourcefile. It has a globally scoped 
  14. external variable defined in the file as shown below.
  15.  
  16. AllIntersect CMAISP;
  17.  
  18. where AllIntersect is defined in an included header file as
  19.  
  20. typedef struct AllIntersect AllIntersect;
  21.  
  22. struct AllIntersect {
  23.     IheaderP head, tail;
  24.     int total;
  25.     int total_headers;
  26. };
  27.  
  28. CMAISP is used throughout the file over 100 times. No errors are reported 
  29. until line 1508 where protoize complains that 
  30.  
  31. `CMAISP' undeclared (first use this function)
  32.  
  33. and protoize fails.
  34.  
  35. I can fix the problem by inserting 
  36.  
  37. extern AllIntersect CMAISP; 
  38.  
  39. above the function where the complaints begin...but that is obviously
  40. not acceptable.  I am converting a program consisting of 60 large 
  41. source files!
  42.  
  43. If you can be of any help I would greatly appreciate it!
  44.  
  45. The version is 2.2.2.2
  46.  
  47. Thankyou,
  48. Sean Callahan
  49. seanc@atc.boeing.com
  50.  
  51.  
  52.