summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-18 08:19:36 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-18 08:19:36 +0000
commit20712a980bba0146c3156630a61e0d7f487c2b58 (patch)
treedfaff893549bcf2083366e936f17a4d7192b6cd0
parentae9eb654b9ee4fea0b03ca89be7a8d3bdff92258 (diff)
downloadATCD-20712a980bba0146c3156630a61e0d7f487c2b58.tar.gz
ChangeLogTag:Wed Aug 18 03:12:23 1999 Nanbor Wang <nanbor@cs.wustl.edu>
-rw-r--r--TAO/TAO_IDL/driver/drv_args.cpp5
-rw-r--r--TAO/TAO_IDL/include/idl_global.h10
-rw-r--r--TAO/TAO_IDL/util/utl_global.cpp13
3 files changed, 28 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/driver/drv_args.cpp b/TAO/TAO_IDL/driver/drv_args.cpp
index 2a797198725..f48953c2c8b 100644
--- a/TAO/TAO_IDL/driver/drv_args.cpp
+++ b/TAO/TAO_IDL/driver/drv_args.cpp
@@ -617,6 +617,11 @@ DRV_parse_args (long ac, char **av)
idl_global->exception_support (!option);
i++;
}
+ else if (av[i][2] == 'l')
+ {
+ // optimized typecode support
+ idl_global->gen_locality_constraint (1);
+ }
else if (av[i][2] == 't')
{
// optimized typecode support
diff --git a/TAO/TAO_IDL/include/idl_global.h b/TAO/TAO_IDL/include/idl_global.h
index be05997ff50..51603917a98 100644
--- a/TAO/TAO_IDL/include/idl_global.h
+++ b/TAO/TAO_IDL/include/idl_global.h
@@ -579,6 +579,13 @@ public:
virtual idl_bool exception_support (void);
// check if real C++ exception support is to be enabled
+ virtual void gen_locality_constraint (idl_bool);
+ // Enable generating locality constraint objects stubs/skeletons.
+
+ virtual idl_bool gen_locality_constraint (void);
+ // check if generating locality constraint objects support is to be
+ // enabled.
+
virtual void opt_tc (idl_bool);
// enable optimized typecodes
@@ -742,6 +749,9 @@ private:
idl_bool exception_support_;
// do we support real C++ exceptions (strict mapping) for stubs/skeletons?
+ idl_bool gen_locality_constraint_;
+ // do we support generating of locality constraint objects?
+
idl_bool opt_tc_;
// do we generate optimized typecodes?
diff --git a/TAO/TAO_IDL/util/utl_global.cpp b/TAO/TAO_IDL/util/utl_global.cpp
index 289c045e94b..823d3f90d4d 100644
--- a/TAO/TAO_IDL/util/utl_global.cpp
+++ b/TAO/TAO_IDL/util/utl_global.cpp
@@ -148,6 +148,7 @@ IDL_GlobalData::IDL_GlobalData (void)
#else
exception_support_ (I_FALSE),
#endif
+ gen_locality_constraint_ (I_FALSE),
opt_tc_ (I_FALSE),
case_diff_error_ (I_TRUE),
ami_call_back_ (I_FALSE)
@@ -1437,6 +1438,18 @@ IDL_GlobalData::exception_support (void)
}
void
+IDL_GlobalData::gen_locality_constraint (idl_bool val)
+{
+ this->gen_locality_constraint_ = val;
+}
+
+idl_bool
+IDL_GlobalData::gen_locality_constraint (void)
+{
+ return this->gen_locality_constraint_;
+}
+
+void
IDL_GlobalData::opt_tc (idl_bool val)
{
this->opt_tc_ = val;