*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
This commit is contained in:
@@ -1,48 +1,36 @@
|
||||
// $Id: IO_SAP.cpp 80826 2008-03-04 14:51:23Z wotte $
|
||||
|
||||
#include "ace/IO_SAP.h"
|
||||
|
||||
#include "ace/Log_Msg.h"
|
||||
#include "ace/OS_NS_unistd.h"
|
||||
#include "ace/OS_NS_errno.h"
|
||||
#include "ace/OS_NS_fcntl.h"
|
||||
#include "ace/os_include/os_signal.h"
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/IO_SAP.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
|
||||
ACE_RCSID(ace, IO_SAP, "$Id: IO_SAP.cpp 80826 2008-03-04 14:51:23Z wotte $")
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_IO_SAP)
|
||||
|
||||
// This is the do-nothing constructor. It does not perform a
|
||||
// ACE_OS::open system call.
|
||||
|
||||
ACE_IO_SAP::ACE_IO_SAP (void)
|
||||
: handle_ (ACE_INVALID_HANDLE)
|
||||
{
|
||||
ACE_TRACE ("ACE_IO_SAP::ACE_IO_SAP");
|
||||
}
|
||||
|
||||
void
|
||||
ACE_IO_SAP::dump (void) const
|
||||
{
|
||||
#if defined (ACE_HAS_DUMP)
|
||||
ACE_TRACE ("ACE_IO_SAP::dump");
|
||||
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("handle_ = %d"), this->handle_));
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\npid_ = %d"), this->pid_));
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
|
||||
#endif /* ACE_HAS_DUMP */
|
||||
}
|
||||
|
||||
// Cache for the process ID.
|
||||
pid_t ACE_IO_SAP::pid_ = 0;
|
||||
|
||||
int
|
||||
ACE_IO_SAP::enable (int value) const
|
||||
{
|
||||
@@ -50,7 +38,6 @@ ACE_IO_SAP::enable (int value) const
|
||||
/* First-time in initialization. */
|
||||
if (ACE_IO_SAP::pid_ == 0)
|
||||
ACE_IO_SAP::pid_ = ACE_OS::getpid ();
|
||||
|
||||
switch (value)
|
||||
{
|
||||
#if defined (SIGURG)
|
||||
@@ -89,15 +76,12 @@ ACE_IO_SAP::enable (int value) const
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
ACE_IO_SAP::disable (int value) const
|
||||
{
|
||||
ACE_TRACE ("ACE_IO_SAP::disable");
|
||||
|
||||
switch (value)
|
||||
{
|
||||
#if defined (SIGURG)
|
||||
@@ -138,6 +122,5 @@ ACE_IO_SAP::disable (int value) const
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user