home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / help / 1694 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.1 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!forney.berkeley.edu!jbuck
  2. From: jbuck@forney.berkeley.edu (Joe Buck)
  3. Newsgroups: gnu.g++.help
  4. Subject: Re: #pragma implementation
  5. Date: 22 Jan 1993 20:33:57 GMT
  6. Organization: U. C. Berkeley
  7. Lines: 19
  8. Distribution: gnu
  9. Message-ID: <1jplnl$486@agate.berkeley.edu>
  10. References: <1993Jan22.060851.21068@athena.mit.edu>
  11. NNTP-Posting-Host: forney.berkeley.edu
  12.  
  13. In article <1993Jan22.060851.21068@athena.mit.edu> fritz@mtl.mit.edu (Frederick Herrmann) writes:
  14. >The message:
  15. >         `#pragma implementation' can only appear at top-level
  16. >
  17. >is generated if the #pragma appears after a #line.  That makes sense
  18. >most of the time, but is causing me some problems now because I want to
  19. >put the pragma in the declaration section of bison deck.  Bison puts a
  20. >#line control right at the top of the file.
  21.  
  22. You can avoid the problem by realizing that #pragma implementation
  23. is not needed at all.  That is, if the file foo.C or foo.cc includes
  24. foo.h, and foo.h has a #pragma interface, the effect is exactly the
  25. same as if foo.C had a #pragma implementation, even though it does
  26. not.
  27.  
  28.  
  29.  
  30. --
  31. Joe Buck    jbuck@ohm.berkeley.edu
  32.