|
|
@@ -39,64 +39,6 @@ extern "C" {
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
-#ifdef _SQ64
|
|
|
-
|
|
|
-typedef short SQInt16;
|
|
|
-typedef unsigned short SQUnsignedInt16;
|
|
|
-
|
|
|
-#ifdef _MSC_VER
|
|
|
-typedef __int64 SQInteger;
|
|
|
-typedef unsigned __int64 SQUnsignedInteger;
|
|
|
-typedef unsigned __int64 SQHash; /*should be the same size of a pointer*/
|
|
|
-#else
|
|
|
-typedef long long SQInteger;
|
|
|
-typedef unsigned long long SQUnsignedInteger;
|
|
|
-typedef unsigned long long SQHash; /*should be the same size of a pointer*/
|
|
|
-#endif
|
|
|
-typedef int SQInt32;
|
|
|
-typedef unsigned int SQUnsignedInteger32;
|
|
|
-#else
|
|
|
-typedef int SQInteger;
|
|
|
-typedef unsigned int SQUnsignedInteger;
|
|
|
-typedef int SQInt32; /*must be 32 bits(also on 64bits processors)*/
|
|
|
-typedef unsigned int SQUnsignedInteger32; /*must be 32 bits(also on 64bits processors)*/
|
|
|
-typedef short SQInt16;
|
|
|
-typedef unsigned short SQUnsignedInt16;
|
|
|
-typedef unsigned int /*ptrdiff_t*/ SQHash; /*should be the same size of a pointer*/
|
|
|
-#endif
|
|
|
-
|
|
|
-
|
|
|
-#ifdef SQUSEDECIMAL64
|
|
|
-typedef _Decimal64 SQFloat;
|
|
|
-#elif defined(SQUSEDOUBLE)
|
|
|
-typedef double SQFloat;
|
|
|
-#else
|
|
|
-typedef float SQFloat;
|
|
|
-#endif
|
|
|
-
|
|
|
-#if defined(SQUSEDOUBLE) && !defined(_SQ64) || !defined(SQUSEDOUBLE) && defined(_SQ64)
|
|
|
-#ifdef _MSC_VER
|
|
|
-typedef __int64 SQRawObjectVal; //must be 64bits
|
|
|
-#else
|
|
|
-typedef long long SQRawObjectVal; //must be 64bits
|
|
|
-#endif
|
|
|
-#define SQ_OBJECT_RAWINIT() { _unVal.raw = 0; }
|
|
|
-#else
|
|
|
-typedef SQUnsignedInteger SQRawObjectVal; //is 32 bits on 32 bits builds and 64 bits otherwise
|
|
|
-#define SQ_OBJECT_RAWINIT()
|
|
|
-#endif
|
|
|
-
|
|
|
-#ifndef SQ_ALIGNMENT // SQ_ALIGNMENT shall be less than or equal to SQ_MALLOC alignments, and its value shall be power of 2.
|
|
|
-#if defined(SQUSEDOUBLE) || defined(_SQ64)
|
|
|
-#define SQ_ALIGNMENT 8
|
|
|
-#else
|
|
|
-#define SQ_ALIGNMENT 4
|
|
|
-#endif
|
|
|
-#endif
|
|
|
-
|
|
|
-typedef void* SQUserPointer;
|
|
|
-typedef SQUnsignedInteger SQBool;
|
|
|
-typedef SQInteger SQRESULT;
|
|
|
|
|
|
#define SQTrue (1)
|
|
|
#define SQFalse (0)
|