Remove blanket includes from sm_stringutil.

This commit is contained in:
David Anderson 2015-09-05 21:58:36 -07:00
parent 86f0a77e73
commit fa93426f6a
4 changed files with 5 additions and 20 deletions

View File

@ -47,6 +47,7 @@
#include "logic_bridge.h"
#include <sourcemod_version.h>
#include "smn_keyvalues.h"
#include <ITranslator.h>
#include <bridge/include/IExtensionBridge.h>
#include <bridge/include/IScriptManager.h>
#include <bridge/include/ILogger.h>

View File

@ -29,17 +29,10 @@
* Version: $Id$
*/
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
#include <ITextParsers.h>
#include "sm_stringutil.h"
#include "Logger.h"
#include "PlayerManager.h"
#include "logic_bridge.h"
#include "sourcemod.h"
#include <am-utility.h>
#include <am-float.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
char *sm_strdup(const char *str)
{
@ -62,4 +55,3 @@ char *UTIL_ToLowerCase(const char *str)
buffer[len] = '\0';
return buffer;
}

View File

@ -32,18 +32,9 @@
#ifndef _INCLUDE_SOURCEMOD_STRINGUTIL_H_
#define _INCLUDE_SOURCEMOD_STRINGUTIL_H_
#include <math.h>
#include <sp_vm_api.h>
#include <sp_typeutil.h>
#include <ITranslator.h>
using namespace SourcePawn;
using namespace SourceMod;
#define IS_STR_FILLED(var) (var[0] != '\0')
char *sm_strdup(const char *str);
char *UTIL_ToLowerCase(const char *str);
#endif // _INCLUDE_SOURCEMOD_STRINGUTIL_H_

View File

@ -49,6 +49,7 @@
#include "smn_keyvalues.h"
#include <bridge/include/IScriptManager.h>
#include <bridge/include/ILogger.h>
#include <ITranslator.h>
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA
#include <netmessages.pb.h>