home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4658 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!spool.mu.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: Re: difference between STUFF *stuff & STUFF stuff[]???
  5. Message-ID: <1993Jan6.220841.28346@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. References: <1993Jan6.084522.25921@emr1.emr.ca> <1993Jan6.151741.29382@kth.se>
  8. Date: Wed, 6 Jan 1993 22:08:41 GMT
  9. Lines: 21
  10.  
  11. In article <1993Jan6.151741.29382@kth.se> d88-jwa@dront.nada.kth.se (Jon WΣtte) writes:
  12. >In <1993Jan6.084522.25921@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
  13. >
  14. >>            static STUFF stufftable[MAXSTUFF];
  15. >>   and in another module that referenced it:
  16. >>            extern STUFF stufftable[];
  17. >>Ok, that was fine and everything worked ok.
  18. >
  19. >I'm not sure that it should. Since stufftable is explicitly
  20. >static to a module (file) you shouldn't have gotten at it
  21. >from anywhere else. If you did, that's a bug.
  22.  
  23.     Sorry, that was my mistake.  I don't have 'static' in my code.
  24.     It was just a typo when posting this question.  The original
  25.     question still stands, though.
  26.  
  27.     John.
  28. -- 
  29. John A. Grant                        jagrant@emr1.emr.ca
  30. Airborne Geophysics
  31. Geological Survey of Canada, Ottawa
  32.