Bug 129 - The prefix pragma issupposed to get cleared after each #include
Summary: The prefix pragma issupposed to get cleared after each #include
Status: RESOLVED FIXED
Alias: None
Product: TAO
Classification: Unclassified
Component: IDL Compiler (show other bugs)
Version: 1.0
Hardware: All All
: P2 normal
Assignee: Jeff Parsons
URL:
: 947 (view as bug list)
Depends on: 83
Blocks:
  Show dependency tree
 
Reported: 1999-07-26 17:23 CDT by Ossama Othman
Modified: 2002-01-15 13:46 CST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>