🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #694

Re: #pragma implementation

#694
From: Joe Buck
Date: Fri, 22 Jan 1993 20:33
19 lines
1202 bytes
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
Technical Details
Message-ID: <1jplnl$486@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!forney.berkeley.edu!jbuck
References: <1993Jan22.060851.21068@athena.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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