summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2008-06-16 18:33:50 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2008-06-16 18:33:50 +0000
commit3043b74cf39f9fa65a49cbeb8ba94c34fa6baf3c (patch)
tree7dec91f6f2ec96f9bd2953e75a1a297456adf2fd
parente177fd2833dbd6f11bee94b5c003a0362f5078ee (diff)
downloadATCD-3043b74cf39f9fa65a49cbeb8ba94c34fa6baf3c.tar.gz
Mon Jun 16 18:33:34 UTC 2008 Abdullah Sowayan <abdullah.sowayan@lmco.com>
-rw-r--r--ACE/ChangeLog9
-rw-r--r--ACE/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp6
-rw-r--r--ACE/examples/OS/Process/imore.cpp28
-rw-r--r--ACE/examples/Reactor/Proactor/test_proactor3.cpp38
-rw-r--r--ACE/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.cpp2
5 files changed, 48 insertions, 35 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog
index f94bd91b635..297111d5659 100644
--- a/ACE/ChangeLog
+++ b/ACE/ChangeLog
@@ -1,3 +1,12 @@
+Mon Jun 16 18:33:34 UTC 2008 Abdullah Sowayan <abdullah.sowayan@lmco.com>
+
+ * examples/ASX/UPIPE_Event_Server/Peer_Router.cpp:
+ * examples/OS/Process/imore.cpp:
+ * examples/Reactor/Proactor/test_proactor3.cpp:
+ * examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.cpp:
+
+ Untabify.
+
Mon Jun 16 18:00:26 UTC 2008 Abdullah Sowayan <abdullah.sowayan@lmco.com>
* ASNMP/examples/get/get.cpp:
diff --git a/ACE/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp b/ACE/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp
index 8c353c6247f..b1f3755d9bd 100644
--- a/ACE/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp
+++ b/ACE/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp
@@ -187,9 +187,9 @@ template <class PH, class PK> int
Peer_Router<PH, PK>::send_peers (ACE_Message_Block *mb)
{
ACE_Map_Iterator<PK, PH *, ACE_RW_Mutex> map_iter = this->peer_map_;
- int bytes = 0;
- int iterations = 0;
- ACE_Message_Block *data_block = mb->cont ();
+ int bytes = 0;
+ int iterations = 0;
+ ACE_Message_Block *data_block = mb->cont ();
for (ACE_Map_Entry<PK, PH *> *ss = 0;
map_iter.next (ss) != 0;
map_iter.advance ())
diff --git a/ACE/examples/OS/Process/imore.cpp b/ACE/examples/OS/Process/imore.cpp
index fd875218ca0..3c77ef228e4 100644
--- a/ACE/examples/OS/Process/imore.cpp
+++ b/ACE/examples/OS/Process/imore.cpp
@@ -47,14 +47,14 @@ static const ACE_TCHAR *rendezvous_pfx = ACE_TEXT("imore");
#endif /* ACE_WIN32 */
static ACE_TCHAR *fname = 0; // File you want to view.
-static int use_named_pipe = 0; // Do we want to use named pipe?
+static int use_named_pipe = 0; // Do we want to use named pipe?
static void
usage (void)
{
ACE_ERROR ((LM_ERROR, "Usage: imore [-n|-u] <filename>\n"
- "\t-n Use named pipe.\n"
- "\t-u Use unnamed pipe.\n"));
+ "\t-n Use named pipe.\n"
+ "\t-u Use unnamed pipe.\n"));
}
static int
@@ -67,23 +67,23 @@ parse_args (int argc, ACE_TCHAR **argv)
{
switch (c)
{
- case 'n': // We want to use named pipe.
+ case 'n': // We want to use named pipe.
#if !defined (ACE_WIN32)
- use_named_pipe = 1;
+ use_named_pipe = 1;
#else
- ACE_ERROR_RETURN ((LM_ERROR, "Named pipes not supported on Win32\n"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, "Named pipes not supported on Win32\n"), -1);
#endif /* !ACE_WIN32 */
- break;
- case 'u': // Use unnamed pipe.
- use_named_pipe = 0;
- break;
- default: // What are you talking about?
- usage ();
- return -1;
+ break;
+ case 'u': // Use unnamed pipe.
+ use_named_pipe = 0;
+ break;
+ default: // What are you talking about?
+ usage ();
+ return -1;
}
}
- if (get_opt.opt_ind () >= argc) // Do you forget to give me a filename to "more?"
+ if (get_opt.opt_ind () >= argc) // Do you forget to give me a filename to "more?"
{
usage ();
return -1;
diff --git a/ACE/examples/Reactor/Proactor/test_proactor3.cpp b/ACE/examples/Reactor/Proactor/test_proactor3.cpp
index ef068335bb8..f17f0d2ed32 100644
--- a/ACE/examples/Reactor/Proactor/test_proactor3.cpp
+++ b/ACE/examples/Reactor/Proactor/test_proactor3.cpp
@@ -47,12 +47,12 @@ ACE_RCSID(Proactor, test_proactor, "test_proactor.cpp,v 1.27 2000/03/07 17:15:56
#if defined (ACE_HAS_WIN32_OVERLAPPED_IO)
-# include "ace/WIN32_Proactor.h"
+#include "ace/WIN32_Proactor.h"
#elif defined (ACE_HAS_AIO_CALLS)
-# include "ace/POSIX_Proactor.h"
-# include "ace/SUN_Proactor.h"
+#include "ace/POSIX_Proactor.h"
+#include "ace/SUN_Proactor.h"
#endif /* ACE_HAS_WIN32_OVERLAPPED_IO */
@@ -125,18 +125,22 @@ MyTask::create_proactor (void)
switch (proactor_type)
{
- case 1: proactor = new ACE_POSIX_AIOCB_Proactor (max_aio_operations);
+ case 1:
+ proactor = new ACE_POSIX_AIOCB_Proactor (max_aio_operations);
ACE_DEBUG ((LM_DEBUG,"(%t) Create Proactor Type=AIOCB\n"));
break;
- case 2: proactor = new ACE_POSIX_SIG_Proactor;
+ case 2:
+ proactor = new ACE_POSIX_SIG_Proactor;
ACE_DEBUG ((LM_DEBUG,"(%t) Create Proactor Type=SIG\n"));
break;
# if defined (sun)
- case 3: proactor = new ACE_SUN_Proactor (max_aio_operations);
+ case 3:
+ proactor = new ACE_SUN_Proactor (max_aio_operations);
ACE_DEBUG ((LM_DEBUG,"(%t) Create Proactor Type=SUN\n"));
break;
# endif /* sun */
- default:proactor = new ACE_POSIX_SIG_Proactor;
+ default:
+ proactor = new ACE_POSIX_SIG_Proactor;
ACE_DEBUG ((LM_DEBUG,"(%t) Create Proactor Type=SIG\n"));
break;
}
@@ -687,27 +691,27 @@ parse_args (int argc, ACE_TCHAR *argv[])
while ((c = get_opt ()) != EOF)
switch (c)
{
- case 'd': // duplex
+ case 'd': // duplex
duplex = ACE_OS::atoi (get_opt.opt_arg ());
break;
- case 'h': // host for sender
+ case 'h': // host for sender
host = get_opt.opt_arg ();
break;
- case 'p': // port number
+ case 'p': // port number
port = ACE_OS::atoi (get_opt.opt_arg ());
break;
- case 'n': // thread pool size
+ case 'n': // thread pool size
threads = ACE_OS::atoi (get_opt.opt_arg ());
break;
- case 's': // number of senders
+ case 's': // number of senders
senders = ACE_OS::atoi (get_opt.opt_arg ());
if (senders > MaxSenders)
senders = MaxSenders;
break;
- case 'o': // max number of aio for proactor
+ case 'o': // max number of aio for proactor
max_aio_operations = ACE_OS::atoi (get_opt.opt_arg ());
break;
- case 't': // Proactor Type
+ case 't': // Proactor Type
if (set_proactor_type (get_opt.opt_arg ()))
break;
case 'u':
@@ -801,9 +805,9 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
tm->wait_task (&task1);
- cout << "\nNumber of Receivers objects="
- << Receiver::get_number_sessions ()
- << flush;
+ cout << "\nNumber of Receivers objects="
+ << Receiver::get_number_sessions ()
+ << flush;
for (i = 0; i < senders; ++i)
{
diff --git a/ACE/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.cpp b/ACE/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.cpp
index ee49a28a2ef..93a862723f6 100644
--- a/ACE/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.cpp
+++ b/ACE/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.cpp
@@ -38,5 +38,5 @@ char Handle_R_Stream::login[ACE_MAX_USERID];
#include "Handle_R_Stream.inl"
#endif /* __ACE_INLINE__ */
-Handle_R_Stream remote_stream;
+Handle_R_Stream remote_stream;
ACE_Service_Object_Type rs (&remote_stream, ACE_TEXT("Remote_Stream"));