[12069] Cleanup comment style

This commit is contained in:
Schmoozerd 2012-07-22 02:54:31 +02:00
parent 5efb3867f5
commit 835d1c7479
205 changed files with 2835 additions and 2835 deletions

View file

@ -60,8 +60,8 @@ class GridInfo
private:
TimeTracker i_timer;
uint16 i_unloadActiveLockCount : 16; // lock from active object spawn points (prevent clone loading)
bool i_unloadExplicitLock : 1; // explicit manual lock or config setting
uint16 i_unloadActiveLockCount : 16; // lock from active object spawn points (prevent clone loading)
bool i_unloadExplicitLock : 1; // explicit manual lock or config setting
};
typedef enum

View file

@ -67,7 +67,7 @@ namespace MaNGOS
template<class SPECIFIC_TYPE>
SPECIFIC_TYPE* Insert(ContainerMapList<SPECIFIC_TYPE>& elements, SPECIFIC_TYPE* obj)
{
//elements._element[hdl] = obj;
// elements._element[hdl] = obj;
obj->GetGridRef().link(&elements._element, obj);
return obj;
}

View file

@ -34,10 +34,10 @@
#if !defined(MANGOS_ENDIAN)
# if defined (ACE_BIG_ENDIAN)
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
# else //ACE_BYTE_ORDER != ACE_BIG_ENDIAN
# else // ACE_BYTE_ORDER != ACE_BIG_ENDIAN
# define MANGOS_ENDIAN MANGOS_LITTLEENDIAN
# endif //ACE_BYTE_ORDER
#endif //MANGOS_ENDIAN
# endif // ACE_BYTE_ORDER
#endif // MANGOS_ENDIAN
typedef ACE_SHLIB_HANDLE MANGOS_LIBRARY_HANDLE;
@ -53,7 +53,7 @@ typedef ACE_SHLIB_HANDLE MANGOS_LIBRARY_HANDLE;
#if PLATFORM == PLATFORM_WINDOWS
# define MANGOS_EXPORT __declspec(dllexport)
# define MANGOS_IMPORT __cdecl
#else //PLATFORM != PLATFORM_WINDOWS
#else // PLATFORM != PLATFORM_WINDOWS
# define MANGOS_EXPORT export
# if defined(__APPLE_CC__) && defined(BIG_ENDIAN)
# define MANGOS_IMPORT __attribute__ ((longcall))
@ -62,7 +62,7 @@ typedef ACE_SHLIB_HANDLE MANGOS_LIBRARY_HANDLE;
# else
# define MANGOS_IMPORT __attribute__ ((cdecl))
# endif //__APPLE_CC__ && BIG_ENDIAN
#endif //PLATFORM
#endif // PLATFORM
#if PLATFORM == PLATFORM_WINDOWS
# ifdef MANGOS_WIN32_DLL_IMPORT
@ -72,38 +72,38 @@ typedef ACE_SHLIB_HANDLE MANGOS_LIBRARY_HANDLE;
# define MANGOS_DLL_DECL __declspec(dllexport)
# else //!MANGOS_WIND_DLL_EXPORT
# define MANGOS_DLL_DECL
# endif //MANGOS_WIND_DLL_EXPORT
# endif //MANGOS_WIN32_DLL_IMPORT
#else //PLATFORM != PLATFORM_WINDOWS
# endif // MANGOS_WIND_DLL_EXPORT
# endif // MANGOS_WIN32_DLL_IMPORT
#else // PLATFORM != PLATFORM_WINDOWS
# define MANGOS_DLL_DECL
#endif //PLATFORM
#endif // PLATFORM
#if PLATFORM == PLATFORM_WINDOWS
# define MANGOS_DLL_SPEC __declspec(dllexport)
# ifndef DECLSPEC_NORETURN
# define DECLSPEC_NORETURN __declspec(noreturn)
# endif //DECLSPEC_NORETURN
#else //PLATFORM != PLATFORM_WINDOWS
# endif // DECLSPEC_NORETURN
#else // PLATFORM != PLATFORM_WINDOWS
# define MANGOS_DLL_SPEC
# define DECLSPEC_NORETURN
#endif //PLATFORM
#endif // PLATFORM
#if !defined(DEBUG)
# define MANGOS_INLINE inline
#else //DEBUG
#else // DEBUG
# if !defined(MANGOS_DEBUG)
# define MANGOS_DEBUG
# endif //MANGOS_DEBUG
# endif // MANGOS_DEBUG
# define MANGOS_INLINE
#endif //!DEBUG
#if COMPILER == COMPILER_GNU
# define ATTR_NORETURN __attribute__((noreturn))
# define ATTR_PRINTF(F,V) __attribute__ ((format (printf, F, V)))
#else //COMPILER != COMPILER_GNU
#else // COMPILER != COMPILER_GNU
# define ATTR_NORETURN
# define ATTR_PRINTF(F,V)
#endif //COMPILER == COMPILER_GNU
#endif // COMPILER == COMPILER_GNU
typedef ACE_INT64 int64;
typedef ACE_INT32 int32;
@ -117,7 +117,7 @@ typedef ACE_UINT8 uint8;
#if COMPILER != COMPILER_MICROSOFT
typedef uint16 WORD;
typedef uint32 DWORD;
#endif //COMPILER
#endif // COMPILER
#if COMPILER == COMPILER_GNU
# if !defined(__GXX_EXPERIMENTAL_CXX0X__) || (__GNUC__ < 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ < 7)
@ -127,4 +127,4 @@ typedef uint32 DWORD;
typedef uint64 OBJECT_HANDLE;
#endif //MANGOS_DEFINE_H
#endif // MANGOS_DEFINE_H

View file

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//lets use Intel scalable_allocator by default and
//switch to OS specific allocator only when _STANDARD_MALLOC is defined
// lets use Intel scalable_allocator by default and
// switch to OS specific allocator only when _STANDARD_MALLOC is defined
#ifndef USE_STANDARD_MALLOC
#include "../../dep/tbb/include/tbb/scalable_allocator.h"

View file

@ -19,7 +19,7 @@
#ifndef MANGOS_CALLBACK_H
#define MANGOS_CALLBACK_H
//defines to simplify multi param templates code and readablity
// defines to simplify multi param templates code and readablity
#define TYPENAMES_1 typename T1
#define TYPENAMES_2 TYPENAMES_1, typename T2
#define TYPENAMES_3 TYPENAMES_2, typename T3
@ -42,7 +42,7 @@
#define PARAMS_9 PARAMS_8, T9 param9
#define PARAMS_10 PARAMS_9, T10 param10
//empty struct to use in templates instead of void type
// empty struct to use in templates instead of void type
struct null { null() {} };
/// ------------ BASE CLASSES ------------

View file

@ -75,7 +75,7 @@ void EventProcessor::KillAllEvents(bool force)
{
delete i_old->second;
if (!force) // need per-element cleanup
if (!force) // need per-element cleanup
m_events.erase(i_old);
}
}