summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_exception.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-27 20:35:12 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-27 20:35:12 +0000
commite42f7b4c932e2f5dea04cc63270a7bf953c25eae (patch)
tree78197616e2d65cfa83eb17e8347c5b5bf61f51e1 /TAO/TAO_IDL/ast/ast_exception.cpp
parentf7d5eb4535f7fcf18923875b85d172e569c27cdc (diff)
downloadATCD-e42f7b4c932e2f5dea04cc63270a7bf953c25eae.tar.gz
Fixes for better 2.3 compliance on name resolution.
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_exception.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_exception.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/TAO_IDL/ast/ast_exception.cpp b/TAO/TAO_IDL/ast/ast_exception.cpp
index 0a3e34ff1d0..32986965006 100644
--- a/TAO/TAO_IDL/ast/ast_exception.cpp
+++ b/TAO/TAO_IDL/ast/ast_exception.cpp
@@ -117,7 +117,7 @@ AST_Field *AST_Exception::fe_add_field(AST_Field *t)
idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d);
return NULL;
}
- if (referenced(d)) {
+ if (referenced(d, t->local_name ())) {
idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d);
return NULL;
}
@@ -133,7 +133,7 @@ AST_Field *AST_Exception::fe_add_field(AST_Field *t)
/*
* Add it to set of locally referenced symbols
*/
- add_to_referenced(t, I_FALSE);
+ add_to_referenced(t, I_FALSE, t->local_name ());
return t;
}
@@ -153,7 +153,7 @@ AST_Union *AST_Exception::fe_add_union(AST_Union *t)
idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d);
return NULL;
}
- if (referenced(d)) {
+ if (referenced(d, t->local_name ())) {
idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d);
return NULL;
}
@@ -169,7 +169,7 @@ AST_Union *AST_Exception::fe_add_union(AST_Union *t)
/*
* Add it to set of locally referenced symbols
*/
- add_to_referenced(t, I_FALSE);
+ add_to_referenced(t, I_FALSE, t->local_name ());
return t;
}
@@ -190,7 +190,7 @@ AST_Structure *AST_Exception::fe_add_structure(AST_Structure *t)
idl_global->err()->error2(UTL_Error::EIDL_REDEF, t, this);
return NULL;
}
- if (referenced(d)) {
+ if (referenced(d, t->local_name ())) {
idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d);
return NULL;
}
@@ -206,7 +206,7 @@ AST_Structure *AST_Exception::fe_add_structure(AST_Structure *t)
/*
* Add it to set of locally referenced symbols
*/
- add_to_referenced(t, I_FALSE);
+ add_to_referenced(t, I_FALSE, t->local_name ());
return t;
}
@@ -226,7 +226,7 @@ AST_Enum *AST_Exception::fe_add_enum(AST_Enum *t)
idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d);
return NULL;
}
- if (referenced(d)) {
+ if (referenced(d, t->local_name ())) {
idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d);
return NULL;
}
@@ -242,7 +242,7 @@ AST_Enum *AST_Exception::fe_add_enum(AST_Enum *t)
/*
* Add it to set of locally referenced symbols
*/
- add_to_referenced(t, I_FALSE);
+ add_to_referenced(t, I_FALSE, t->local_name ());
return t;
}
@@ -265,7 +265,7 @@ AST_EnumVal *AST_Exception::fe_add_enum_val(AST_EnumVal *t)
idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d);
return NULL;
}
- if (referenced(d)) {
+ if (referenced(d, t->local_name ())) {
idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d);
return NULL;
}
@@ -281,7 +281,7 @@ AST_EnumVal *AST_Exception::fe_add_enum_val(AST_EnumVal *t)
/*
* Add it to set of locally referenced symbols
*/
- add_to_referenced(t, I_FALSE);
+ add_to_referenced(t, I_FALSE, t->local_name ());
return t;
}