Clean up logic source.

This commit is contained in:
Asher Baker 2015-10-29 16:29:51 +00:00
parent 1a09f2b6df
commit 1ba85dac9c
74 changed files with 4812 additions and 4812 deletions

View File

@ -32,59 +32,59 @@ binary.sources += [
'smn_adt_array.cpp',
'smn_sorting.cpp',
'smn_maplists.cpp',
'ADTFactory.cpp',
'adtfactory.cpp',
'smn_adt_stack.cpp',
'thread/ThreadWorker.cpp',
'thread/BaseWorker.cpp',
'ThreadSupport.cpp',
'thread/threadworker.cpp',
'thread/baseworker.cpp',
'threadsupport.cpp',
'smn_float.cpp',
'TextParsers.cpp',
'textparsers.cpp',
'smn_textparse.cpp',
'smn_adt_trie.cpp',
'smn_functions.cpp',
'smn_timers.cpp',
'smn_players.cpp',
'MemoryUtils.cpp',
'memoryutils.cpp',
'smn_admin.cpp',
'smn_banning.cpp',
'smn_filesystem.cpp',
'stringutil.cpp',
'Translator.cpp',
'PhraseCollection.cpp',
'translator.cpp',
'phrasecollection.cpp',
'smn_lang.cpp',
'smn_string.cpp',
'smn_handles.cpp',
'smn_datapacks.cpp',
'smn_gameconfigs.cpp',
'smn_fakenatives.cpp',
'GameConfigs.cpp',
'gameconfigs.cpp',
'sm_crc32.cpp',
'smn_profiler.cpp',
'ShareSys.cpp',
'PluginSys.cpp',
'HandleSys.cpp',
'NativeOwner.cpp',
'ExtensionSys.cpp',
'DebugReporter.cpp',
'Database.cpp',
'sharesys.cpp',
'pluginsys.cpp',
'handlesys.cpp',
'nativeowner.cpp',
'extensionsys.cpp',
'debugreporter.cpp',
'database.cpp',
'smn_database.cpp',
'ForwardSys.cpp',
'AdminCache.cpp',
'forwardsys.cpp',
'admincache.cpp',
'sm_trie.cpp',
'smn_console.cpp',
'ProfileTools.cpp',
'Logger.cpp',
'profiletools.cpp',
'logger.cpp',
'smn_core.cpp',
'smn_menus.cpp',
'sprintf.cpp',
'LibrarySys.cpp',
'RootConsoleMenu.cpp',
'CDataPack.cpp',
'librarysys.cpp',
'rootconsolemenu.cpp',
'cdatapack.cpp',
'frame_tasks.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['thread/WinThreads.cpp']
binary.sources += ['thread/winthreads.cpp']
else:
binary.sources += ['thread/PosixThreads.cpp']
binary.sources += ['thread/posixthreads.cpp']
SM.binaries += [builder.Add(binary)]

View File

@ -36,8 +36,8 @@
#include <ISourceMod.h>
#include <IGameHelpers.h>
#include <IPlayerHelpers.h>
#include "AdminCache.h"
#include "Translator.h"
#include "admincache.h"
#include "translator.h"
#include "common_logic.h"
#include "stringutil.h"
#include <bridge/include/ILogger.h>

View File

@ -29,8 +29,8 @@
* Version: $Id$
*/
#include "ADTFactory.h"
#include "ShareSys.h"
#include "adtfactory.h"
#include "sharesys.h"
ADTFactory g_AdtFactory;

View File

@ -31,7 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include "CDataPack.h"
#include "cdatapack.h"
#include <am-utility.h>
#include <am-vector.h>

View File

@ -34,28 +34,28 @@
#include <string.h>
#include <stdarg.h>
#include "common_logic.h"
#include "TextParsers.h"
#include "textparsers.h"
#include "sm_crc32.h"
#include "MemoryUtils.h"
#include "memoryutils.h"
#include "stringutil.h"
#include "ThreadSupport.h"
#include "Translator.h"
#include "GameConfigs.h"
#include "DebugReporter.h"
#include "PluginSys.h"
#include "ShareSys.h"
#include "NativeOwner.h"
#include "HandleSys.h"
#include "ExtensionSys.h"
#include "ForwardSys.h"
#include "AdminCache.h"
#include "ProfileTools.h"
#include "Logger.h"
#include "threadsupport.h"
#include "translator.h"
#include "gameconfigs.h"
#include "debugreporter.h"
#include "pluginsys.h"
#include "sharesys.h"
#include "nativeowner.h"
#include "handlesys.h"
#include "extensionsys.h"
#include "forwardsys.h"
#include "admincache.h"
#include "profiletools.h"
#include "logger.h"
#include "frame_tasks.h"
#include "sprintf.h"
#include "LibrarySys.h"
#include "RootConsoleMenu.h"
#include "CDataPack.h"
#include "librarysys.h"
#include "rootconsolemenu.h"
#include "cdatapack.h"
#include <bridge/include/BridgeAPI.h>
#include <bridge/include/IProviderCallbacks.h>

View File

@ -29,11 +29,11 @@
* Version: $Id$
*/
#include "Database.h"
#include "ISourceMod.h"
#include "HandleSys.h"
#include "ExtensionSys.h"
#include "PluginSys.h"
#include "database.h"
#include <ISourceMod.h>
#include "handlesys.h"
#include "extensionsys.h"
#include "pluginsys.h"
#include <stdlib.h>
#include <IThreader.h>
#include <bridge/include/ILogger.h>

View File

@ -31,8 +31,8 @@
#include <IPluginSys.h>
#include <stdarg.h>
#include "DebugReporter.h"
#include "Logger.h"
#include "debugreporter.h"
#include "logger.h"
#include <am-string.h>
DebugReport g_DbgReporter;

View File

@ -30,11 +30,11 @@
*/
#include <stdlib.h>
#include "ExtensionSys.h"
#include "extensionsys.h"
#include <ILibrarySys.h>
#include <ISourceMod.h>
#include "common_logic.h"
#include "PluginSys.h"
#include "pluginsys.h"
#include <am-utility.h>
#include <am-string.h>
#include <bridge/include/CoreProvider.h>

View File

@ -39,8 +39,8 @@
#include "common_logic.h"
#include <IPluginSys.h>
#include <IRootConsoleMenu.h>
#include "NativeOwner.h"
#include "ShareSys.h"
#include "nativeowner.h"
#include "sharesys.h"
#include <bridge/include/IExtensionBridge.h>
class CPlayer;

View File

@ -28,8 +28,8 @@
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include "ForwardSys.h"
#include "DebugReporter.h"
#include "forwardsys.h"
#include "debugreporter.h"
#include "common_logic.h"
#include <bridge/include/IScriptManager.h>
#include <amtl/am-string.h>

View File

@ -31,8 +31,8 @@
#include <IForwardSys.h>
#include <IPluginSys.h>
#include "common_logic.h"
#include "ISourceMod.h"
#include "ReentrantList.h"
#include <ISourceMod.h>
#include <ReentrantList.h>
typedef ReentrantList<IPluginFunction *>::iterator FuncIter;

View File

@ -32,7 +32,7 @@
#include <stdlib.h>
#include <sh_list.h>
#include <sh_string.h>
#include "GameConfigs.h"
#include "gameconfigs.h"
#include "stringutil.h"
#include <IGameHelpers.h>
#include <ILibrarySys.h>
@ -41,7 +41,7 @@
#include <ISourceMod.h>
#include "common_logic.h"
#include "sm_crc32.h"
#include "MemoryUtils.h"
#include "memoryutils.h"
#include <am-string.h>
#include <bridge/include/ILogger.h>
#include <bridge/include/CoreProvider.h>

View File

@ -29,13 +29,13 @@
* Version: $Id$
*/
#include "HandleSys.h"
#include "handlesys.h"
#include <assert.h>
#include <string.h>
#include "common_logic.h"
#include "ShareSys.h"
#include "ExtensionSys.h"
#include "PluginSys.h"
#include "sharesys.h"
#include "extensionsys.h"
#include "pluginsys.h"
#include <am-string.h>
#include <bridge/include/ILogger.h>

View File

@ -34,7 +34,7 @@
#include <stdarg.h>
#include <string.h>
#include <sm_platform.h>
#include "LibrarySys.h"
#include "librarysys.h"
#include <amtl/am-string.h>
#include <amtl/os/am-path.h>
#include <amtl/os/am-fsutil.h>

View File

@ -31,7 +31,7 @@
#include <time.h>
#include <cstdarg>
#include "Logger.h"
#include "logger.h"
#include <sourcemod_version.h>
#include <ISourceMod.h>
#include <am-string.h>

View File

@ -27,7 +27,7 @@
* or <http://www.sourcemod.net/license.php>.
*/
#include "MemoryUtils.h"
#include "memoryutils.h"
#ifdef PLATFORM_LINUX
#include <fcntl.h>
#include <link.h>

View File

@ -28,9 +28,9 @@
*
* Version: $Id$
*/
#include "NativeOwner.h"
#include "ShareSys.h"
#include "PluginSys.h"
#include "nativeowner.h"
#include "sharesys.h"
#include "pluginsys.h"
CNativeOwner::CNativeOwner() : m_nMarkSerial(0)
{

View File

@ -36,7 +36,7 @@
#include <am-linkedlist.h>
#include <am-vector.h>
#include "common_logic.h"
#include "Native.h"
#include "native.h"
#include <bridge/include/IScriptManager.h>
struct Native;

View File

@ -30,8 +30,8 @@
*/
#include "common_logic.h"
#include "PhraseCollection.h"
#include "Translator.h"
#include "phrasecollection.h"
#include "translator.h"
#include "sprintf.h"
#include <am-string.h>

View File

@ -31,18 +31,18 @@
#include <stdio.h>
#include <stdarg.h>
#include "PluginSys.h"
#include "ShareSys.h"
#include "pluginsys.h"
#include "sharesys.h"
#include <ILibrarySys.h>
#include <ISourceMod.h>
#include <IHandleSys.h>
#include <IForwardSys.h>
#include <IPlayerHelpers.h>
#include "ExtensionSys.h"
#include "GameConfigs.h"
#include "extensionsys.h"
#include "gameconfigs.h"
#include "common_logic.h"
#include "Translator.h"
#include "Logger.h"
#include "translator.h"
#include "logger.h"
#include "frame_tasks.h"
#include <am-string.h>
#include <bridge/include/IVEngineServerBridge.h>

View File

@ -46,11 +46,11 @@
#include <IRootConsoleMenu.h>
#include <sm_stringhashmap.h>
#include <sm_namehashset.h>
#include "ITranslator.h"
#include "IGameConfigs.h"
#include "NativeOwner.h"
#include "ShareSys.h"
#include "PhraseCollection.h"
#include <ITranslator.h>
#include <IGameConfigs.h>
#include "nativeowner.h"
#include "sharesys.h"
#include "phrasecollection.h"
#include <am-string.h>
#include <bridge/include/IScriptManager.h>
#include <am-function.h>

View File

@ -25,7 +25,7 @@
// exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
// or <http://www.sourcemod.net/license.php>.
#include "ProfileTools.h"
#include "profiletools.h"
#include <stdarg.h>
#include <am-string.h>

View File

@ -24,12 +24,12 @@
// this exception to all derivative works. AlliedModders LLC defines further
// exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
// or <http://www.sourcemod.net/license.php>.
#include "RootConsoleMenu.h"
#include "rootconsolemenu.h"
#include <amtl/am-string.h>
#include <sourcemod_version.h>
#include <ISourceMod.h>
#include <bridge/include/CoreProvider.h>
#include "HandleSys.h"
#include "handlesys.h"
RootConsoleMenu g_RootMenu;

View File

@ -29,12 +29,12 @@
* Version: $Id$
*/
#include "ShareSys.h"
#include "ExtensionSys.h"
#include "sharesys.h"
#include "extensionsys.h"
#include <ILibrarySys.h>
#include "common_logic.h"
#include "PluginSys.h"
#include "HandleSys.h"
#include "pluginsys.h"
#include "handlesys.h"
#include <assert.h>
using namespace ke;

View File

@ -41,7 +41,7 @@
#include <sm_stringhashmap.h>
#include <sm_namehashset.h>
#include "common_logic.h"
#include "Native.h"
#include "native.h"
using namespace SourceHook;

View File

@ -31,7 +31,7 @@
#include <stdlib.h>
#include "common_logic.h"
#include "CellArray.h"
#include "cellarray.h"
#include "stringutil.h"
#include <IHandleSys.h>

View File

@ -31,7 +31,7 @@
#include <stdlib.h>
#include "common_logic.h"
#include "CellArray.h"
#include "cellarray.h"
#include "handle_helpers.h"
#include "stringutil.h"
#include <IHandleSys.h>

View File

@ -30,7 +30,7 @@
*/
#include "common_logic.h"
#include "AdminCache.h"
#include "admincache.h"
#include <IGameHelpers.h>
#include <IPlayerHelpers.h>
#include <ISourceMod.h>

View File

@ -33,7 +33,7 @@
#include <string.h>
#include <stdlib.h>
#include "common_logic.h"
#include "Logger.h"
#include "logger.h"
#include <ISourceMod.h>
#include <ITranslator.h>

View File

@ -30,11 +30,11 @@
*/
#include "common_logic.h"
#include "Database.h"
#include "ExtensionSys.h"
#include "database.h"
#include "extensionsys.h"
#include "stringutil.h"
#include "ISourceMod.h"
#include "AutoHandleRooter.h"
#include <ISourceMod.h>
#include <AutoHandleRooter.h>
#include "common_logic.h"
#include <amtl/am-string.h>
#include <amtl/am-vector.h>

View File

@ -32,7 +32,7 @@
#include "common_logic.h"
#include <IHandleSys.h>
#include <ISourceMod.h>
#include "CDataPack.h"
#include "cdatapack.h"
HandleType_t g_DataPackType;

View File

@ -33,8 +33,8 @@
#include <sh_string.h>
#include <ISourceMod.h>
#include "common_logic.h"
#include "ShareSys.h"
#include "PluginSys.h"
#include "sharesys.h"
#include "pluginsys.h"
#include "sprintf.h"
using namespace SourceHook;

View File

@ -39,7 +39,7 @@
#include <ISourceMod.h>
#include <ITranslator.h>
#include "common_logic.h"
#include "Logger.h"
#include "logger.h"
#include "sprintf.h"
#include <am-utility.h>
#include "handle_helpers.h"

View File

@ -33,7 +33,7 @@
#include <string.h>
#include <stdlib.h>
#include "common_logic.h"
#include "MersenneTwister.h"
#include "mersennetwister.h"
#include <IPluginSys.h>
#include <am-utility.h>
#include <am-float.h>

View File

@ -31,7 +31,7 @@
#include "common_logic.h"
#include <IHandleSys.h>
#include "GameConfigs.h"
#include "gameconfigs.h"
HandleType_t g_GameConfigsType;

View File

@ -30,7 +30,7 @@
*/
#include "common_logic.h"
#include "Translator.h"
#include "translator.h"
#include <IPlayerHelpers.h>
#include <IPluginSys.h>
#include <ISourceMod.h>

View File

@ -32,7 +32,7 @@
#include <sh_list.h>
#include <sm_namehashset.h>
#include "common_logic.h"
#include "CellArray.h"
#include "cellarray.h"
#include <IGameHelpers.h>
#include <ILibrarySys.h>
#include <ITextParsers.h>

View File

@ -33,9 +33,9 @@
#include <sh_stack.h>
#include <IMenuManager.h>
#include <IPlayerHelpers.h>
#include "DebugReporter.h"
#include "debugreporter.h"
#if defined MENU_DEBUG
#include "Logger.h"
#include "logger.h"
#endif
#include <ISourceMod.h>
#include <stdlib.h>

View File

@ -37,9 +37,9 @@
#include <ITranslator.h>
#include <sh_string.h>
#include <sh_list.h>
#include "GameConfigs.h"
#include "CellArray.h"
#include "AutoHandleRooter.h"
#include "gameconfigs.h"
#include "cellarray.h"
#include <AutoHandleRooter.h>
#include "stringutil.h"
#include <bridge/include/IPlayerInfoBridge.h>
#include <bridge/include/ILogger.h>

View File

@ -36,7 +36,7 @@
#include <stdint.h>
#include <sys/time.h>
#endif
#include "ProfileTools.h"
#include "profiletools.h"
#include <string.h>
struct Profiler

View File

@ -33,7 +33,7 @@
#include <string.h>
#include <time.h>
#include "common_logic.h"
#include "CellArray.h"
#include "cellarray.h"
#include <IHandleSys.h>
/***********************************

View File

@ -35,7 +35,7 @@
#include <ITimerSystem.h>
#include <IPluginSys.h>
#include <sh_stack.h>
#include "DebugReporter.h"
#include "debugreporter.h"
#include <bridge/include/CoreProvider.h>
using namespace SourceHook;

View File

@ -26,7 +26,7 @@
// or <http://www.sourcemod.net/license.php>.
#include "common_logic.h"
#include "Translator.h"
#include "translator.h"
#include "sprintf.h"
#include <am-float.h>
#include <am-string.h>

View File

@ -35,7 +35,7 @@
#include <sm_platform.h>
#include "stringutil.h"
#include <am-string.h>
#include "TextParsers.h"
#include "textparsers.h"
// We're in logic so we don't have this from the SDK.
#ifndef MIN

View File

@ -35,7 +35,7 @@
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "TextParsers.h"
#include "textparsers.h"
#include <ILibrarySys.h>
#include <am-string.h>

View File

@ -29,7 +29,7 @@
* Version: $Id$
*/
#include "BaseWorker.h"
#include "baseworker.h"
BaseWorker::BaseWorker(IThreadWorkerCallbacks *hooks) :
m_perFrame(SM_DEFAULT_THREADS_PER_FRAME),

View File

@ -33,7 +33,7 @@
#define _INCLUDE_SOURCEMOD_BASEWORKER_H
#include "sh_list.h"
#include "ThreadSupport.h"
#include "threadsupport.h"
#define SM_DEFAULT_THREADS_PER_FRAME 1

View File

@ -30,8 +30,8 @@
*/
#include <unistd.h>
#include "PosixThreads.h"
#include "ThreadWorker.h"
#include "posixthreads.h"
#include "threadworker.h"
IThreadWorker *PosixThreader::MakeWorker(IThreadWorkerCallbacks *hooks, bool threaded)
{

View File

@ -29,7 +29,7 @@
* Version: $Id$
*/
#include "ThreadWorker.h"
#include "threadworker.h"
ThreadWorker::ThreadWorker(IThreadWorkerCallbacks *hooks) : BaseWorker(hooks),
m_Threader(NULL),

View File

@ -32,7 +32,7 @@
#ifndef _INCLUDE_SOURCEMOD_THREADWORKER_H
#define _INCLUDE_SOURCEMOD_THREADWORKER_H
#include "BaseWorker.h"
#include "baseworker.h"
#define DEFAULT_THINK_TIME_MS 20

View File

@ -30,8 +30,8 @@
*/
#define _WIN32_WINNT 0x0400
#include "WinThreads.h"
#include "ThreadWorker.h"
#include "winthreads.h"
#include "threadworker.h"
IThreadWorker *WinThreader::MakeWorker(IThreadWorkerCallbacks *hooks, bool threaded)
{

View File

@ -29,13 +29,13 @@
* Version: $Id$
*/
#include <sm_platform.h>
#include "ThreadSupport.h"
#include "threadsupport.h"
#include "common_logic.h"
#if defined PLATFORM_POSIX
#include "thread/PosixThreads.h"
#include "thread/posixthreads.h"
#elif defined PLATFORM_WINDOWS
#include "thread/WinThreads.h"
#include "thread/winthreads.h"
#endif
MainThreader g_MainThreader;

View File

@ -34,11 +34,11 @@
#include <stdlib.h>
#include <ctype.h>
#include <sm_platform.h>
#include "Translator.h"
#include "translator.h"
#include <IPlayerHelpers.h>
#include <ISourceMod.h>
#include <ILibrarySys.h>
#include "PhraseCollection.h"
#include "phrasecollection.h"
#include "stringutil.h"
#include "sprintf.h"
#include <am-string.h>

View File

@ -37,9 +37,9 @@
#include <sh_string.h>
#include <sh_vector.h>
#include "sm_memtable.h"
#include "ITextParsers.h"
#include <ITextParsers.h>
#include <ITranslator.h>
#include "PhraseCollection.h"
#include "phrasecollection.h"
/* :TODO: write a templatized version of tries? */