- removed some debug stuff
authorDavid Anderson <dvander@alliedmods.net>
Wed Aug 15 16:21:28 2007 +0000 (2007-08-15)
changeset 13349db842b7a9fe
parent 1333 cfb44989c53d
child 1335 2047dc42d800
- removed some debug stuff
- committed msvc8 detection to sm_platform.h
- updated comments to FormatTime()
core/smn_core.cpp
plugins/include/sourcemod.inc
public/sm_platform.h
     1.1 --- a/core/smn_core.cpp	Wed Aug 15 16:17:54 2007 +0000
     1.2 +++ b/core/smn_core.cpp	Wed Aug 15 16:21:28 2007 +0000
     1.3 @@ -114,8 +114,6 @@
     1.4  }
     1.5  #endif
     1.6  
     1.7 -#include "sm_srvcmds.h"
     1.8 -
     1.9  static cell_t FormatTime(IPluginContext *pContext, const cell_t *params)
    1.10  {
    1.11  	char *format, *buffer;
     2.1 --- a/plugins/include/sourcemod.inc	Wed Aug 15 16:17:54 2007 +0000
     2.2 +++ b/plugins/include/sourcemod.inc	Wed Aug 15 16:21:28 2007 +0000
     2.3 @@ -290,13 +290,17 @@
     2.4  native GetTime(bigStamp[2]={0,0});
     2.5  
     2.6  /**
     2.7 - * Format date and time.
     2.8 + * Produces a date and/or time string value for a timestamp.
     2.9 + *
    2.10 + * See this URL for valid parameters: 
    2.11 + * http://opengroup.org/onlinepubs/007908799/xsh/strftime.html
    2.12   *
    2.13   * @param buffer		Destination string buffer.
    2.14   * @param maxlength		Maximum length of output string buffer.
    2.15   * @param format		Formatting rules.
    2.16   * @param stamp			Optional time stamp.
    2.17   * @noreturn
    2.18 + * @error			Buffer too small or invalid time format.
    2.19   */
    2.20  native FormatTime(String:buffer[], maxlength, const String:format[], stamp=-1);
    2.21  
     3.1 --- a/public/sm_platform.h	Wed Aug 15 16:17:54 2007 +0000
     3.2 +++ b/public/sm_platform.h	Wed Aug 15 16:21:28 2007 +0000
     3.3 @@ -57,6 +57,9 @@
     3.4  #define PLATFORM_SEP_CHAR		'\\'
     3.5  #define PLATFORM_SEP_ALTCHAR	'/'
     3.6  #define PLATFORM_EXTERN_C		extern "C" __declspec(dllexport)
     3.7 +#if defined _MSC_VER && _MSC_VER >= 1400
     3.8 +#define SUBPLATFORM_SECURECRT
     3.9 +#endif
    3.10  #elif defined __linux__
    3.11  #define PLATFORM_LINUX
    3.12  #define PLATFORM_POSIX