home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!forney.berkeley.edu!jbuck
- From: jbuck@forney.berkeley.edu (Joe Buck)
- Newsgroups: gnu.g++.help
- Subject: Re: #pragma implementation
- Date: 22 Jan 1993 20:33:57 GMT
- Organization: U. C. Berkeley
- Lines: 19
- Distribution: gnu
- Message-ID: <1jplnl$486@agate.berkeley.edu>
- References: <1993Jan22.060851.21068@athena.mit.edu>
- NNTP-Posting-Host: forney.berkeley.edu
-
- In article <1993Jan22.060851.21068@athena.mit.edu> fritz@mtl.mit.edu (Frederick Herrmann) writes:
- >The message:
- > `#pragma implementation' can only appear at top-level
- >
- >is generated if the #pragma appears after a #line. That makes sense
- >most of the time, but is causing me some problems now because I want to
- >put the pragma in the declaration section of bison deck. Bison puts a
- >#line control right at the top of the file.
-
- You can avoid the problem by realizing that #pragma implementation
- is not needed at all. That is, if the file foo.C or foo.cc includes
- foo.h, and foo.h has a #pragma interface, the effect is exactly the
- same as if foo.C had a #pragma implementation, even though it does
- not.
-
-
-
- --
- Joe Buck jbuck@ohm.berkeley.edu
-