summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-30 21:15:59 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-30 21:15:59 +0000
commit6f25733351b7861ff10df827538cbf9317567b9a (patch)
tree7af903efc2c3753ed75358230c0646988688e34e /examples
parentb79ef7ddaa068b12076c632c046037ad32697397 (diff)
downloadATCD-6f25733351b7861ff10df827538cbf9317567b9a.tar.gz
ChangeLogTag:Wed Jul 30 19:21:27 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ASX/Event_Server/Event_Server/Options.cpp2
-rw-r--r--examples/ASX/UPIPE_Event_Server/Options.cpp2
-rw-r--r--examples/Shared_Malloc/Options.cpp2
-rw-r--r--examples/Shared_Malloc/test_position_independent_malloc.cpp2
4 files changed, 8 insertions, 0 deletions
diff --git a/examples/ASX/Event_Server/Event_Server/Options.cpp b/examples/ASX/Event_Server/Event_Server/Options.cpp
index b6aab6b1d2c..1bf6f760c47 100644
--- a/examples/ASX/Event_Server/Event_Server/Options.cpp
+++ b/examples/ASX/Event_Server/Event_Server/Options.cpp
@@ -142,10 +142,12 @@ Options::parse_args (int argc, char *argv[])
this->supplier_port (ACE_OS::atoi (get_opt.opt_arg ()));
break;
case 'T':
+#if defined (ACE_HAS_TRACE)
if (ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0)
ACE_Trace::start_tracing ();
else if (ACE_OS::strcasecmp (get_opt.opt_arg (), "OFF") == 0)
ACE_Trace::stop_tracing ();
+#endif /* ACE_HAS_TRACE */
break;
case 't':
this->thr_count (ACE_OS::atoi (get_opt.opt_arg ()));
diff --git a/examples/ASX/UPIPE_Event_Server/Options.cpp b/examples/ASX/UPIPE_Event_Server/Options.cpp
index c39f5eefcde..d5055415ded 100644
--- a/examples/ASX/UPIPE_Event_Server/Options.cpp
+++ b/examples/ASX/UPIPE_Event_Server/Options.cpp
@@ -137,10 +137,12 @@ Options::parse_args (int argc, char *argv[])
this->supplier_port (getopt.opt_arg ());
break;
case 'T':
+#if defined (ACE_HAS_TRACE)
if (ACE_OS::strcasecmp (getopt.opt_arg (), "ON") == 0)
ACE_Trace::start_tracing ();
else if (ACE_OS::strcasecmp (getopt.opt_arg (), "OFF") == 0)
ACE_Trace::stop_tracing ();
+#endif /* ACE_HAS_TRACE */
break;
case 't':
this->thr_count (ACE_OS::atoi (getopt.opt_arg ()));
diff --git a/examples/Shared_Malloc/Options.cpp b/examples/Shared_Malloc/Options.cpp
index 3338c55a810..5b898cb2b83 100644
--- a/examples/Shared_Malloc/Options.cpp
+++ b/examples/Shared_Malloc/Options.cpp
@@ -179,7 +179,9 @@ Options::parse_args (int argc, char *argv[])
this->spawn_count_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 'T':
+#if defined (ACE_HAS_TRACE)
ACE_Trace::start_tracing ();
+#endif /* ACE_HAS_TRACE */
break;
default:
this->print_usage_and_die ();
diff --git a/examples/Shared_Malloc/test_position_independent_malloc.cpp b/examples/Shared_Malloc/test_position_independent_malloc.cpp
index 1938fd68607..cc6ac3967d7 100644
--- a/examples/Shared_Malloc/test_position_independent_malloc.cpp
+++ b/examples/Shared_Malloc/test_position_independent_malloc.cpp
@@ -132,7 +132,9 @@ parse_args (int argc, char *argv[])
ACE_OS::atoi (get_opt.opt_arg ()));
break;
case 'T':
+#if defined (ACE_HAS_TRACE)
ACE_Trace::start_tracing ();
+#endif /* ACE_HAS_TRACE */
break;
}
}