Bug 129

Summary: The prefix pragma issupposed to get cleared after each #include
Product: TAO Reporter: Ossama Othman <ossama.othman>
Component: IDL CompilerAssignee: Jeff Parsons <parsons>
Status: RESOLVED FIXED    
Severity: normal CC: bjeram
Priority: P2    
Version: 1.0   
Hardware: All   
OS: All   
Bug Depends on: 83    
Bug Blocks:    

Description Ossama Othman 1999-07-26 17:23:05 CDT
The CORBA 2.3 spec clarifies the scope of a #pragma prefix: the prefix is
supposed to get cleared after each #include, also the statement

	#pragma prefix ""

should clear the prefix.
Comment 1 Ossama Othman 1999-07-26 18:52:59 CDT
Forgot to add a summary
Comment 2 Carlos O'Ryan 1999-07-26 22:34:59 CDT
Just to comment on how the problem could be fixed:
keep track of the last file, using the #line directives, when a new file shows
up all the pragmas are reset to their old values, this may require an stack with
the set of pragmas defined on each file, but shouldn't be that hard to
implement.
Comment 3 Jeff Parsons 1999-07-28 18:54:59 CDT
One more for me.
Comment 4 Jeff Parsons 1999-07-28 18:56:59 CDT
Forgot to reassign it to myself.
Comment 5 Jeff Parsons 1999-08-09 13:15:59 CDT
This already happens with a simple example I've tried, however, must
implement and test with more use cases.
Comment 6 rich 2000-05-04 17:54:59 CDT
*** Bug 557 has been marked as a duplicate of this bug. ***
Comment 7 Carlos O'Ryan 2000-06-13 10:14:47 CDT
*** Bug 585 has been marked as a duplicate of this bug. ***
Comment 8 Jeff Parsons 2001-06-19 08:10:38 CDT
*** Bug 947 has been marked as a duplicate of this bug. ***
Comment 9 crodrigu 2002-01-15 13:10:45 CST
As a workaround for this bug, for the IDL files that come with
TAO, could we add #pragma prefix "" at the end of IDL
files which have #pragma prefix "org.omg" at the top?

Some files have this already, but a lot of TAO's IDL files do not.
Comment 10 Ossama Othman 2002-01-15 13:46:41 CST
Jeff has already fixed this problem.  See the following TAO ChangeLog entry:

Mon Dec 31 11:01:29 2001  Jeff Parsons <parsons@cs.wustl.edu>