(svn r26781) -Codechange [Squirrel]: remove includes/definitions that are already in stdafx.h

pull/155/head
rubidium 10 years ago
parent fc6d256948
commit e8a72f8234

@ -2,7 +2,6 @@
#include <stdio.h>
#include <squirrel.h>
#include <sqstdio.h>
#include <sqstdaux.h>
#ifdef _MSC_VER

@ -31,20 +31,6 @@ to the following restrictions:
#ifndef _SQUIRREL_H_
#define _SQUIRREL_H_
#if defined(_MSC_VER)
# define inline __forceinline
#endif /* _MSC_VER */
#if defined(_MSC_VER) && _MSC_VER >= 1400 // MSVC 2005 safety checks
# pragma warning(disable: 4996) // '_wfopen' was declared deprecated
# define _CRT_SECURE_NO_DEPRECATE // all deprecated 'unsafe string functions
# define _CRT_NON_CONFORMING_SWPRINTFS // another deprecated stuff
#endif /* _MSC_VER >= 1400 */
#if defined(__GNUC__)
#define __int64 long long
#endif
typedef __int64 SQInteger;
typedef unsigned __int64 SQUnsignedInteger;
typedef unsigned __int64 SQHash; /*should be the same size of a pointer*/
@ -84,12 +70,6 @@ struct SQDelegable;
typedef char SQChar;
#define MAX_CHAR 0xFFFF
#if defined(_MSC_VER) || defined(__MINGW32__)
#define SQ_PRINTF64 "%I64d"
#else
#define SQ_PRINTF64 "%lld"
#endif
#define SQUIRREL_VERSION "Squirrel 2.2.5 stable - With custom OpenTTD modifications"
#define SQUIRREL_COPYRIGHT "Copyright (C) 2003-2010 Alberto Demichelis"
#define SQUIRREL_AUTHOR "Alberto Demichelis"

@ -4,8 +4,6 @@
#include <squirrel.h>
#include <sqstdaux.h>
#include <assert.h>
#include <string.h>
#include "../../../safeguards.h"

@ -2,7 +2,6 @@
#include <new>
#include <squirrel.h>
#include <sqstdio.h>
#include <string.h>
#include <sqstdblob.h>
#include "sqstdstream.h"
#include "sqstdblobimpl.h"

@ -2,7 +2,6 @@
#include <stdio.h>
#include <squirrel.h>
#include <new>
#include <sqstdio.h>
#include "sqstdstream.h"
#define SQSTD_FILE_TYPE_TAG (SQSTD_STREAM_TYPE_TAG | 0x00000001)

@ -4,7 +4,6 @@
#include <squirrel.h>
#include <math.h>
#include <stdlib.h>
#include <sqstdmath.h>
#include "../../../safeguards.h"

@ -1,7 +1,5 @@
/* see copyright notice in squirrel.h */
#include <squirrel.h>
#include <string.h>
#include <ctype.h>
#include <exception>
#include "sqstdstring.h"
@ -12,7 +10,6 @@
#endif
#ifdef _DEBUG
#include <stdio.h>
static const SQChar *g_nnames[] =
{

@ -1,8 +1,5 @@
/* see copyright notice in squirrel.h */
#include <stdio.h>
#include <new>
#include <stdlib.h>
#include <string.h>
#include <squirrel.h>
#include <sqstdio.h>
#include <sqstdblob.h>

@ -1,11 +1,6 @@
/* see copyright notice in squirrel.h */
#include <squirrel.h>
#include <sqstdstring.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <assert.h>
#include <stdarg.h>
#define scstrchr strchr

@ -1,8 +1,6 @@
/* see copyright notice in squirrel.h */
#include <squirrel.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <sqstdsystem.h>
#define scgetenv getenv

@ -15,9 +15,7 @@
#include "sqfuncproto.h"
#include "sqclosure.h"
#include "sqclass.h"
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include "../../../safeguards.h"

@ -6,7 +6,6 @@
#include <squirrel.h>
#include "sqpcheader.h"
#include <stdarg.h>
#include "sqvm.h"
#include "sqfuncproto.h"
#include "sqclosure.h"
@ -87,7 +86,7 @@ SQString *SQVM::PrintObjVal(const SQObject &o)
switch(type(o)) {
case OT_STRING: return _string(o);
case OT_INTEGER:
seprintf(buf, lastof(buf), SQ_PRINTF64, _integer(o));
seprintf(buf, lastof(buf), OTTD_PRINTF64, _integer(o));
return SQString::Create(_ss(this), buf);
case OT_FLOAT:
seprintf(buf, lastof(buf), "%.14g", _float(o));

@ -85,7 +85,7 @@ void DumpLiteral(SQObjectPtr &o)
switch(type(o)){
case OT_STRING: printf("\"%s\"",_stringval(o));break;
case OT_FLOAT: printf("{%f}",_float(o));break;
case OT_INTEGER: printf("{" SQ_PRINTF64 "}",_integer(o));break;
case OT_INTEGER: printf("{" OTTD_PRINTF64 "}",_integer(o));break;
case OT_BOOL: printf("%s",_integer(o)?"true":"false");break;
default: printf("(%s %p)",GetTypeName(o),(void*)_rawval(o));break; break; //shut up compiler
}

@ -6,7 +6,6 @@
#include "sqpcheader.h"
#include <ctype.h>
#include <stdlib.h>
#include "sqtable.h"
#include "sqstring.h"
#include "sqcompiler.h"

@ -6,10 +6,6 @@
#include <crtdbg.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <new>
//squirrel stuff
#include <squirrel.h>

@ -7,7 +7,6 @@
#include <squirrel.h>
#include "sqpcheader.h"
#include <math.h>
#include <stdlib.h>
#include "sqopcodes.h"
#include "sqfuncproto.h"
#include "sqvm.h"
@ -267,7 +266,7 @@ void SQVM::ToString(const SQObjectPtr &o,SQObjectPtr &res)
seprintf(buf, lastof(buf),"%g",_float(o));
break;
case OT_INTEGER:
seprintf(buf, lastof(buf),SQ_PRINTF64,_integer(o));
seprintf(buf, lastof(buf),OTTD_PRINTF64,_integer(o));
break;
case OT_BOOL:
seprintf(buf, lastof(buf),_integer(o)?"true":"false");

Loading…
Cancel
Save