diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-07-19 03:38:57 +0200 | 
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-07-19 03:51:11 +0200 | 
| commit | 909acdbac3223d8c788b1b5dc42b6dfab8b604ab (patch) | |
| tree | 2a0ade312aad77ca032015c6957a4a9005aa0b94 /dep/acelite/ace/Obstack_T.h | |
| parent | 5daf3d360686ea8ff2d97a48fca24f0bf42ef098 (diff) | |
| parent | 1866d8cc06e2b8c2722ccf69ee3f52ceda93bc27 (diff) | |
Merge remote-tracking branch 'origin/master' into 4.3.4
Conflicts:
	src/server/authserver/Main.cpp
	src/server/authserver/Realms/RealmList.cpp
	src/server/authserver/Realms/RealmList.h
	src/server/authserver/Server/AuthSession.cpp
	src/server/authserver/Server/AuthSocket.h
	src/server/authserver/Server/RealmAcceptor.h
	src/server/game/Accounts/AccountMgr.h
	src/server/game/Achievements/AchievementMgr.cpp
	src/server/game/Achievements/AchievementMgr.h
	src/server/game/Battlegrounds/ArenaTeamMgr.cpp
	src/server/game/Conditions/ConditionMgr.cpp
	src/server/game/DungeonFinding/LFGMgr.h
	src/server/game/Entities/Object/Object.h
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Entities/Player/Player.h
	src/server/game/Entities/Unit/Unit.cpp
	src/server/game/Handlers/BattleGroundHandler.cpp
	src/server/game/Movement/Spline/MoveSplineFlag.h
	src/server/game/Quests/QuestDef.cpp
	src/server/game/Quests/QuestDef.h
	src/server/game/Server/WorldSession.cpp
	src/server/game/Server/WorldSession.h
	src/server/game/Server/WorldSocket.cpp
	src/server/game/Server/WorldSocket.h
	src/server/game/Spells/Spell.cpp
	src/server/scripts/Commands/cs_debug.cpp
	src/server/scripts/OutdoorPvP/OutdoorPvPEP.cpp
	src/server/scripts/Spells/spell_mage.cpp
	src/server/scripts/Spells/spell_rogue.cpp
	src/server/scripts/Spells/spell_shaman.cpp
	src/server/scripts/Spells/spell_warrior.cpp
	src/server/shared/Cryptography/BigNumber.h
	src/server/worldserver/RemoteAccess/RASocket.cpp
	src/server/worldserver/worldserver.conf.dist
Diffstat (limited to 'dep/acelite/ace/Obstack_T.h')
| -rw-r--r-- | dep/acelite/ace/Obstack_T.h | 129 | 
1 files changed, 0 insertions, 129 deletions
diff --git a/dep/acelite/ace/Obstack_T.h b/dep/acelite/ace/Obstack_T.h deleted file mode 100644 index f191934fde0..00000000000 --- a/dep/acelite/ace/Obstack_T.h +++ /dev/null @@ -1,129 +0,0 @@ -// -*- C++ -*- - -//============================================================================= -/** - *  @file    Obstack_T.h - * - *  $Id: Obstack_T.h 91688 2010-09-09 11:21:50Z johnnyw $ - * - *  @author Doug Schmidt <schmidt@cs.wustl.edu> - *  @author Nanbor Wang <nanbor@cs.wustl.edu> - */ -//============================================================================= - -#ifndef ACE_OBSTACK_T_H -#define ACE_OBSTACK_T_H - -#include /**/ "ace/pre.h" - -#include "ace/Obchunk.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -class ACE_Allocator; - -/** - * @class ACE_Obstack_T - * - * @brief Define a simple "mark and release" memory allocation utility. - * - * The implementation is similar to the GNU obstack utility, - * which is used extensively in the GCC compiler. - */ -template <class ACE_CHAR_T> -class ACE_Obstack_T -{ -public: -  // = Initialization and termination methods. -  ACE_Obstack_T (size_t size = (4096 * sizeof (ACE_CHAR_T)) - sizeof (ACE_Obchunk), -                 ACE_Allocator *allocator_strategy = 0); -  ~ACE_Obstack_T (void); - -  /// Request Obstack to prepare a block at least @a len long for building -  /// a new string.  Return -1 if fail, 0 if success. -  int request (size_t len); - -  /// Inserting a new ACE_CHAR_T \a c into the current building -  /// block without freezing (null terminating) the block. -  /// This function will create new chunk by checking the -  /// boundary of current Obchunk.  Return -  /// the location \a c gets inserted to, or 0 if error. -  ACE_CHAR_T *grow (ACE_CHAR_T c); - -  /// Inserting a new ACE_CHAR_T \a c into the current building -  /// block without freezing (null terminating) the block and without -  /// checking for out-of-bound error. -  void grow_fast (ACE_CHAR_T c); - -  /// Freeze the current building block by null terminating it. -  /// Return the starting address of the current building block, 0 -  /// if error occurs. -  ACE_CHAR_T *freeze (void); - -  /// Copy the data into the current Obchunk and freeze the current -  /// block.  Return the starting address of the current building -  /// block, 0 if error occurs.  @a len specify the string length, -  /// not the actually data size. -  ACE_CHAR_T *copy (const ACE_CHAR_T *data, -              size_t len); - -  /// Return the maximum @a size -  size_t size (void) const; - -  /// "Unwind" the stack. If @a obj is a null pointer, everything allocated -  /// in the stack is released. Otherwise, @a obj must be an address of an -  /// object allocated in the stack. In this case, @a obj is released along -  /// with everthing allocated in the Obstack since @a obj. -  void unwind (void* obj); - -  /// "Release" the entire stack of Obchunks, putting it back on the free -  /// list. -  void release (void); - -  /// Dump the state of an object. -  void dump (void) const; - -  /// Declare the dynamic allocation hooks. -  ACE_ALLOC_HOOK_DECLARE; - -protected: -  class ACE_Obchunk *new_chunk (void); - -  /// Search through the list of Obchunks and release them. Helper funtion -  /// used by unwind. -  void unwind_i (void* obj); - -  /// Pointer to the allocator used by this Obstack. -  ACE_Allocator *allocator_strategy_; - -  /// Current size of the Obstack; -  size_t size_; - -  // Don't change the order of the following two fields. -  /// Head of the Obchunk chain. -  class ACE_Obchunk *head_; - -  /// Pointer to the current Obchunk. -  class ACE_Obchunk *curr_; -}; - -ACE_END_VERSIONED_NAMESPACE_DECL - -#if defined (__ACE_INLINE__) -#include "ace/Obstack_T.inl" -#endif /* __ACE_INLINE__ */ - -#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) -#include "ace/Obstack_T.cpp" -#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ - -#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) -#pragma implementation ("Obstack_T.cpp") -#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ - -#include /**/ "ace/post.h" -#endif /* ACE_OBSTACK_T_H */  | 
