From 3043b74cf39f9fa65a49cbeb8ba94c34fa6baf3c Mon Sep 17 00:00:00 2001 From: Abdullah Sowayan Date: Mon, 16 Jun 2008 18:33:50 +0000 Subject: Mon Jun 16 18:33:34 UTC 2008 Abdullah Sowayan --- ACE/ChangeLog | 9 +++++ .../ASX/UPIPE_Event_Server/Peer_Router.cpp | 6 ++-- ACE/examples/OS/Process/imore.cpp | 28 ++++++++-------- ACE/examples/Reactor/Proactor/test_proactor3.cpp | 38 ++++++++++++---------- .../IPC-tests/server/Handle_R_Stream.cpp | 2 +- 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 + + * 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 * 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 int Peer_Router::send_peers (ACE_Message_Block *mb) { ACE_Map_Iterator 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 *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] \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")); -- cgit v1.2.1