diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-12-08 21:59:30 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-12-08 21:59:30 +0000 |
commit | 63165b00e2d667e39e15cf084128d94a563d484e (patch) | |
tree | 6939cf1ed0a80ce8a3224d33f3d23c0e1b9a517f /TAO/orbsvcs/tests/Interoperable_Naming | |
parent | 6579bccb3a3f22f882ef908ad5f7e1a65b00b133 (diff) | |
download | ATCD-63165b00e2d667e39e15cf084128d94a563d484e.tar.gz |
Merged corba-env-clean branch.
Diffstat (limited to 'TAO/orbsvcs/tests/Interoperable_Naming')
3 files changed, 20 insertions, 20 deletions
diff --git a/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp b/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp index 7e20da7c786..927e5f36aa2 100644 --- a/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp +++ b/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp @@ -33,7 +33,7 @@ int main (int argc, char *argv []) if (client.init (argc, argv) == -1) return 1; - result = client.run (ACE_TRY_ENV); + result = client.run (TAO_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; } ACE_CATCHANY diff --git a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp index c75da35c1b0..b1b0d4dfdee 100644 --- a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp +++ b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp @@ -145,7 +145,7 @@ NContextExt_Client_i::get_name () } int -NContextExt_Client_i::run (CORBA::Environment &ACE_TRY_ENV) +NContextExt_Client_i::run (TAO_ENV_SINGLE_ARG_DECL) { ACE_TRY_EX (OuterBlock) @@ -160,8 +160,8 @@ NContextExt_Client_i::run (CORBA::Environment &ACE_TRY_ENV) // Get the stringified form of the name CORBA::String_var str_name = - this->naming_context_->to_string (name, - ACE_TRY_ENV); + this->naming_context_->to_string (name + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); CORBA::Object_var factory_object; @@ -170,8 +170,8 @@ NContextExt_Client_i::run (CORBA::Environment &ACE_TRY_ENV) { // Resolve the name using the stringified form of the name factory_object = - this->naming_context_->resolve_str (str_name.in (), - ACE_TRY_ENV); + this->naming_context_->resolve_str (str_name.in () + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (InnerBlock); } ACE_CATCH (CosNaming::NamingContext::NotFound, ex) @@ -181,7 +181,7 @@ NContextExt_Client_i::run (CORBA::Environment &ACE_TRY_ENV) // Narrow Web_Server::Iterator_Factory_var factory = - Web_Server::Iterator_Factory::_narrow (factory_object.in (), ACE_TRY_ENV); + Web_Server::Iterator_Factory::_narrow (factory_object.in () TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); @@ -191,15 +191,15 @@ NContextExt_Client_i::run (CORBA::Environment &ACE_TRY_ENV) this->naming_context_->list (2, bindings_list.out (), - iter.out (), - ACE_TRY_ENV); + iter.out () + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); // Convert the stringified name back as CosNaming::Name and print // them out. CosNaming::Name *nam = - this->naming_context_->to_name (str_name.in (), - ACE_TRY_ENV); + this->naming_context_->to_name (str_name.in () + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); // Declare a CosNaming::Name variable and assign length to it. @@ -223,8 +223,8 @@ NContextExt_Client_i::run (CORBA::Environment &ACE_TRY_ENV) CORBA::String_var obj_name = get_name (); CORBA::String_var url_string = this->naming_context_->to_url (address.in (), - obj_name.in(), - ACE_TRY_ENV); + obj_name.in() + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); if (this->view_ == 0) @@ -263,7 +263,7 @@ NContextExt_Client_i::init (int argc, char **argv) this->argc_ = argc; this->argv_ = argv; - ACE_DECLARE_NEW_CORBA_ENV; + TAO_ENV_DECLARE_NEW_ENV; ACE_TRY { @@ -271,8 +271,8 @@ NContextExt_Client_i::init (int argc, char **argv) CORBA::ORB_var orb = CORBA::ORB_init (this->argc_, this->argv_, - "" /* the ORB name, it can be anything! */, - ACE_TRY_ENV); + "" /* the ORB name, it can be anything! */ + TAO_ENV_ARG_PARAMETER); // There must be at least one argument, the file that has to be // retrieved @@ -281,7 +281,7 @@ NContextExt_Client_i::init (int argc, char **argv) // Get a reference to the Naming Service CORBA::Object_var naming_context_object = - orb->resolve_initial_references ("NameService", ACE_TRY_ENV); + orb->resolve_initial_references ("NameService" TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; if (CORBA::is_nil (naming_context_object.in ())) @@ -291,8 +291,8 @@ NContextExt_Client_i::init (int argc, char **argv) // Narrow to get the correct reference this->naming_context_ = - CosNaming::NamingContextExt::_narrow (naming_context_object.in (), - ACE_TRY_ENV); + CosNaming::NamingContextExt::_narrow (naming_context_object.in () + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; if (CORBA::is_nil (this->naming_context_.in ())) diff --git a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.h b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.h index 7872b9f2d42..6592e11fe71 100644 --- a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.h +++ b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.h @@ -39,7 +39,7 @@ class NContextExt_Client_i NContextExt_Client_i (void); ~NContextExt_Client_i (void); - int run (CORBA::Environment &ACE_TRY_ENV); + int run (TAO_ENV_SINGLE_ARG_DECL); // Execute the client example code. int init (int argc, char **argv); |