*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:
maximius
2009-10-17 15:35:07 -07:00
parent f21f47005d
commit 26b5e033ff
2257 changed files with 750 additions and 103852 deletions
-18
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file OS_Errno.h
@@ -9,21 +8,15 @@
* @author (Originally in OS.h)Doug Schmidt <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_ERRNO_H
#define ACE_OS_ERRNO_H
#include /**/ "ace/pre.h"
#include /**/ "ace/ACE_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/OS_NS_errno.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Errno_Guard
*
@@ -50,41 +43,31 @@ public:
/// <errno_ptr_> to the address of <errno_ref>.
ACE_Errno_Guard (ACE_ERRNO_TYPE &errno_ref,
int error);
/// Stash the value of @c errno into <error_> and initialize the
/// <errno_ptr_> to the address of <errno_ref>.
ACE_Errno_Guard (ACE_ERRNO_TYPE &errno_ref);
/// Reset the value of @c errno to <error>.
~ACE_Errno_Guard (void);
#if defined (ACE_HAS_WINCE_BROKEN_ERRNO)
/// Assign <errno_ref> to <error_>.
int operator= (const ACE_ERRNO_TYPE &errno_ref);
#endif /* ACE_HAS_WINCE_BROKEN_ERRNO */
/// Assign <error> to <error_>.
int operator= (int error);
/// Compare <error> with <error_> for equality.
bool operator== (int error);
/// Compare <error> with <error_> for inequality.
bool operator!= (int error);
private:
// Prevent copying
ACE_Errno_Guard (const ACE_Errno_Guard &);
ACE_Errno_Guard &operator= (const ACE_Errno_Guard &);
#if defined (ACE_MT_SAFE)
ACE_ERRNO_TYPE *errno_ptr_;
#endif /* ACE_MT_SAFE */
int error_;
};
ACE_END_VERSIONED_NAMESPACE_DECL
// Inlining this class on debug builds with gcc on Solaris can cause
// deadlocks during static initialization. On non debug builds it
// causes compilation errors.
@@ -96,7 +79,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# define ACE_INLINE inline
# include "ace/OS_Errno.inl"
#endif /* ACE_HAS_INLINED_OSCALLS */
#include /**/ "ace/post.h"
#endif /* ACE_OS_ERRNO_H */