*Merge.
--HG-- branch : trunk
This commit is contained in:
@@ -80,3 +80,4 @@ void AuthCrypt::GenerateKey(uint8 *key, BigNumber *bn)
|
||||
hash.Finalize();
|
||||
memcpy(key, hash.GetDigest(), SHA_DIGEST_LENGTH);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,3 +51,4 @@ class AuthCrypt
|
||||
bool _initialized;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -207,3 +207,4 @@ const char *BigNumber::AsDecStr()
|
||||
{
|
||||
return BN_bn2dec(_bn);
|
||||
}
|
||||
|
||||
|
||||
@@ -94,3 +94,4 @@ class BigNumber
|
||||
uint8 *_array;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -56,3 +56,4 @@ void HmacHash::Finalize()
|
||||
HMAC_Final(&m_ctx, m_digest, &length);
|
||||
ASSERT(length == SHA_DIGEST_LENGTH)
|
||||
}
|
||||
|
||||
|
||||
@@ -46,3 +46,4 @@ class HmacHash
|
||||
uint8 m_digest[SHA_DIGEST_LENGTH];
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -65,3 +65,4 @@ void Sha1Hash::Finalize(void)
|
||||
{
|
||||
SHA1_Final(mDigest, &mC);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,3 +51,4 @@ class Sha1Hash
|
||||
uint8 mDigest[SHA_DIGEST_LENGTH];
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -89,3 +89,4 @@ extern "C"
|
||||
} /* end extern "C" */
|
||||
#endif
|
||||
#endif /* md5_INCLUDED */
|
||||
|
||||
|
||||
@@ -65,3 +65,4 @@ int Base::GetRefCount ()
|
||||
{
|
||||
return RefCount;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,3 +52,4 @@ class Base
|
||||
|
||||
};
|
||||
#endif // __BASE_H__
|
||||
|
||||
|
||||
@@ -505,3 +505,4 @@ template <typename K, typename V> ByteBuffer &operator>>(ByteBuffer &b, std::map
|
||||
return b;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -40,3 +40,4 @@ LocaleConstant GetLocaleByName(const std::string& name)
|
||||
|
||||
return LOCALE_enUS; // including enGB case
|
||||
}
|
||||
|
||||
|
||||
@@ -208,3 +208,4 @@ LocaleConstant GetLocaleByName(const std::string& name);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -174,3 +174,4 @@ float Config::GetFloatDefault(const char* name, const float def)
|
||||
float val;
|
||||
return (GetFloat(name, &val) ? val : def);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,3 +58,4 @@ class TRINITY_DLL_SPEC Config
|
||||
#define sConfig Trinity::Singleton<Config>::Instance()
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -27,3 +27,4 @@
|
||||
#include "Config.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -586,3 +586,4 @@ void DOTCONFDocument::setRequiredOptionNames(const char ** requiredOptionNames)
|
||||
++requiredOptionNames;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -108,3 +108,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -98,3 +98,4 @@ char * AsyncDNSMemPool::strdup(const char *str)
|
||||
{
|
||||
return ::strcpy((char*)this->alloc(strlen(str)+1), str);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,3 +44,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -321,3 +321,4 @@ enum SummonFlags
|
||||
};
|
||||
*/
|
||||
#endif
|
||||
|
||||
|
||||
@@ -709,3 +709,4 @@ uint32 const* GetTalentTabPages(uint32 cls)
|
||||
TRINITY_DLL_SPEC DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore() { return &sSoundEntriesStore; }
|
||||
TRINITY_DLL_SPEC DBCStorage <SpellEntry> const* GetSpellStore() { return &sSpellStore; }
|
||||
TRINITY_DLL_SPEC DBCStorage <SpellRangeEntry> const* GetSpellRangeStore() { return &sSpellRangeStore; }
|
||||
|
||||
|
||||
@@ -221,3 +221,4 @@ TRINITY_DLL_SPEC DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore();
|
||||
TRINITY_DLL_SPEC DBCStorage <SpellEntry> const* GetSpellStore();
|
||||
TRINITY_DLL_SPEC DBCStorage <SpellRangeEntry> const* GetSpellRangeStore();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1578,3 +1578,4 @@ typedef std::vector<TaxiPathNodeList> TaxiPathNodesByPath;
|
||||
#define TaxiMaskSize 12
|
||||
typedef uint32 TaxiMask[TaxiMaskSize];
|
||||
#endif
|
||||
|
||||
|
||||
@@ -171,3 +171,4 @@ bool Database::DirectPExecute(const char * format,...)
|
||||
|
||||
return DirectExecute(szQuery);
|
||||
}
|
||||
|
||||
|
||||
@@ -135,3 +135,4 @@ class TRINITY_DLL_SPEC Database
|
||||
std::string m_logsDir;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -56,3 +56,4 @@ extern DatabaseType CharacterDatabase;
|
||||
extern DatabaseType LoginDatabase;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -205,3 +205,4 @@ Database::DelayQueryHolder(Class *object, void (Class::*method)(QueryResult*, Sq
|
||||
#undef ASYNC_QUERY_BODY
|
||||
#undef ASYNC_PQUERY_BODY
|
||||
#undef ASYNC_DELAYHOLDER_BODY
|
||||
|
||||
|
||||
@@ -408,3 +408,4 @@ void DatabaseMysql::HaltDelayThread()
|
||||
m_threadBody = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -77,3 +77,4 @@ class TRINITY_DLL_SPEC DatabaseMysql : public Database
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -345,3 +345,4 @@ void DatabasePostgre::HaltDelayThread()
|
||||
m_threadBody = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -75,3 +75,4 @@ class DatabasePostgre : public Database
|
||||
bool _TransactionCmd(const char *sql);
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -101,3 +101,4 @@ bool DatabaseSqlite::Execute(const char *sql)
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -43,3 +43,4 @@ class DatabaseSqlite : public Database
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -65,3 +65,4 @@ void Field::SetValue(const char *value)
|
||||
else
|
||||
mValue = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,3 +75,4 @@ class Field
|
||||
enum DataTypes mType;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -30,3 +30,4 @@ class MySQLDelayThread : public SqlDelayThread
|
||||
void Stop() { SqlDelayThread::Stop(); }
|
||||
};
|
||||
#endif //__MYSQLDELAYTHREAD_H
|
||||
|
||||
|
||||
@@ -30,3 +30,4 @@ class PGSQLDelayThread : public SqlDelayThread
|
||||
void Stop() { SqlDelayThread::Stop(); }
|
||||
};
|
||||
#endif //__PGSQLDELAYTHREAD_H
|
||||
|
||||
|
||||
@@ -64,3 +64,4 @@ class TRINITY_DLL_SPEC QueryResult
|
||||
FieldNames mFieldNames;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -110,3 +110,4 @@ enum Field::DataTypes QueryResultMysql::ConvertNativeType(enum_field_types mysql
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -48,3 +48,4 @@ class QueryResultMysql : public QueryResult
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -139,3 +139,4 @@ enum Field::DataTypes QueryResultPostgre::ConvertNativeType(Oid pOid ) const
|
||||
return Field::DB_TYPE_UNKNOWN;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -48,3 +48,4 @@ class QueryResultPostgre : public QueryResult
|
||||
uint32 mTableIndex;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -96,3 +96,4 @@ enum Field::DataTypes QueryResultSqlite::ConvertNativeType(const char* sqliteTyp
|
||||
return Field::DB_TYPE_UNKNOWN;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -43,3 +43,4 @@ class QueryResultSqlite : public QueryResult
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -81,3 +81,4 @@ void SQLStorage::Load()
|
||||
SQLStorageLoader loader;
|
||||
loader.Load(*this);
|
||||
}
|
||||
|
||||
|
||||
@@ -114,3 +114,4 @@ struct SQLStorageLoader : public SQLStorageLoaderBase<SQLStorageLoader>
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -212,3 +212,4 @@ void SQLStorageLoaderBase<T>::Load(SQLStorage &store)
|
||||
store.MaxEntry = maxi;
|
||||
store.data = _data;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,3 +55,4 @@ void SqlDelayThread::Stop()
|
||||
{
|
||||
m_running = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,3 +48,4 @@ class SqlDelayThread : public ZThread::Runnable
|
||||
virtual void run(); ///< Main Thread loop
|
||||
};
|
||||
#endif //__SQLDELAYTHREAD_H
|
||||
|
||||
|
||||
@@ -199,3 +199,4 @@ void SqlQueryHolderEx::Execute(Database *db)
|
||||
/// sync with the caller thread
|
||||
m_queue->add(m_callback);
|
||||
}
|
||||
|
||||
|
||||
@@ -121,3 +121,4 @@ class SqlQueryHolderEx : public SqlOperation
|
||||
void Execute(Database *db);
|
||||
};
|
||||
#endif //__SQLOPERATIONS_H
|
||||
|
||||
|
||||
@@ -243,3 +243,4 @@ char* DBCFile::AutoProduceStrings(const char* format, char* dataTable)
|
||||
|
||||
return stringPool;
|
||||
}
|
||||
|
||||
|
||||
@@ -107,3 +107,4 @@ class DBCFile
|
||||
unsigned char *stringTable;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,3 +29,4 @@
|
||||
|
||||
#define ASSERT WPAssert
|
||||
#endif
|
||||
|
||||
|
||||
@@ -796,3 +796,4 @@ void error_db_log(const char * str, ...)
|
||||
|
||||
Trinity::Singleton<Log>::Instance().outErrorDb(buf);
|
||||
}
|
||||
|
||||
|
||||
@@ -165,3 +165,4 @@ void TRINITY_DLL_SPEC debug_log(const char * str, ...) ATTR_PRINTF(1,2);
|
||||
void TRINITY_DLL_SPEC error_log(const char * str, ...) ATTR_PRINTF(1,2);
|
||||
void TRINITY_DLL_SPEC error_db_log(const char * str, ...) ATTR_PRINTF(1,2);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -203,3 +203,4 @@ MMutex *MMutex::Create ()
|
||||
return mutex;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -60,3 +60,4 @@ class MMutex : public Base
|
||||
virtual void Unlock ();
|
||||
};
|
||||
#endif // MTHREAD_H
|
||||
|
||||
|
||||
@@ -157,3 +157,4 @@ void PacketLog::WorldHexDump(WorldPacket* data, uint32 socket, bool direction)
|
||||
HexDump((char *)data->contents(), data->size(), "world.log");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -46,3 +46,4 @@ class PacketLog
|
||||
|
||||
#define sPacketLog Trinity::Singleton<PacketLog>::Instance()
|
||||
#endif
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ void barGoLink::step( void )
|
||||
rec_pos = n;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,3 +40,4 @@ class TRINITY_DLL_SPEC barGoLink
|
||||
~barGoLink();
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -260,3 +260,4 @@ bool WinServiceRun()
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -28,3 +28,4 @@ bool WinServiceRun();
|
||||
|
||||
#endif // _WIN32_SERVICE_
|
||||
#endif // WIN32
|
||||
|
||||
|
||||
@@ -52,3 +52,4 @@
|
||||
#define DEFAULT_REALMSERVER_PORT 3724
|
||||
#define DEFAULT_SOCKET_SELECT_TIME 10000
|
||||
#endif
|
||||
|
||||
|
||||
@@ -96,3 +96,4 @@ struct TimeTrackerSmall
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -425,3 +425,4 @@ bool Utf8FitTo(const std::string& str, std::wstring search)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -544,4 +544,3 @@ public:
|
||||
return (part[el]);
|
||||
};
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -1013,3 +1013,4 @@ int __cdecl WheatyExceptionReport::_tprintf(const TCHAR * format, ...)
|
||||
|
||||
return retValue;
|
||||
}
|
||||
|
||||
|
||||
@@ -115,3 +115,4 @@ class WheatyExceptionReport
|
||||
|
||||
extern WheatyExceptionReport g_WheatyExceptionReport; // global instance of class
|
||||
#endif //WheatyExceptionReport
|
||||
|
||||
|
||||
@@ -51,3 +51,4 @@ class WorldPacket : public ByteBuffer
|
||||
uint16 m_opcode;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1618,3 +1618,4 @@ public:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -95,3 +95,4 @@ namespace VMAP
|
||||
}
|
||||
|
||||
} // VMAP
|
||||
|
||||
|
||||
@@ -99,3 +99,4 @@ namespace VMAP
|
||||
|
||||
}
|
||||
#endif /*BASEMODEL_H_*/
|
||||
|
||||
|
||||
@@ -187,3 +187,4 @@ namespace VMAP
|
||||
//=================================================================
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -144,3 +144,4 @@ namespace VMAP
|
||||
};
|
||||
}
|
||||
#endif /*_COORDMODELMAPPING_H_*/
|
||||
|
||||
|
||||
@@ -125,3 +125,4 @@ namespace VMAP
|
||||
}
|
||||
//========================================================
|
||||
}
|
||||
|
||||
|
||||
@@ -116,3 +116,4 @@ namespace VMAP
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -99,3 +99,4 @@ namespace VMAP
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -35,3 +35,4 @@ namespace VMAP
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -49,3 +49,4 @@ namespace VMAP
|
||||
//=======================================================
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -375,3 +375,4 @@ namespace VMAP
|
||||
}
|
||||
//=================================================================
|
||||
} // VMAP
|
||||
|
||||
|
||||
@@ -108,3 +108,4 @@ namespace VMAP
|
||||
void getBounds(const ModelContainer* pMc, G3D::AABox& pAABox);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -48,3 +48,4 @@ namespace VMAP
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -148,3 +148,4 @@ namespace VMAP
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -134,3 +134,4 @@ namespace VMAP
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -248,3 +248,4 @@ namespace VMAP
|
||||
//==========================================================
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -102,3 +102,4 @@ namespace VMAP
|
||||
//====================================
|
||||
} // VMAP
|
||||
#endif
|
||||
|
||||
|
||||
@@ -570,3 +570,4 @@ namespace VMAP
|
||||
//==========================================
|
||||
|
||||
} // VMAP
|
||||
|
||||
|
||||
@@ -93,3 +93,4 @@ namespace VMAP
|
||||
//===============================================
|
||||
} // VMAP
|
||||
#endif /*_TILEASSEMBLER_H_*/
|
||||
|
||||
|
||||
@@ -37,3 +37,4 @@ namespace VMAP
|
||||
//=================================================================
|
||||
//=================================================================
|
||||
}
|
||||
|
||||
|
||||
@@ -223,3 +223,4 @@ namespace VMAP
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -37,3 +37,4 @@ namespace VMAP
|
||||
//======================================
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -110,3 +110,4 @@ namespace VMAP
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,3 +43,4 @@ namespace VMAP
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -774,3 +774,4 @@ namespace VMAP
|
||||
//=========================================================
|
||||
//=========================================================
|
||||
}
|
||||
|
||||
|
||||
@@ -173,3 +173,4 @@ namespace VMAP
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -150,3 +150,4 @@ namespace VMAP
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user