pike.git
/
src
/
global.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/global.h:1:
/* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: global.h,v 1.
82
2003/03/
28
15
:
47
:
56
mast Exp $
+
|| $Id: global.h,v 1.
83
2003/03/
29
01
:
45
:
22
mast Exp $
*/ #ifndef GLOBAL_H #define GLOBAL_H #if defined(__WINNT__) && !defined(__NT__) #define __NT__ #endif #ifndef _LARGEFILE_SOURCE
pike.git/src/global.h:208:
#if SIZEOF_INT >= 4 #define INT32 int #else #define INT32 long #endif #endif #define MAX_INT32 2147483647 #define MIN_INT32 (-2147483647-1)
-
#if
SIZEOF
_INT_TYPE
==
4
-
#define MAX_INT_TYPE MAX_
INT32
-
#define MIN_INT_TYPE MIN_
INT32
+
#if
defined (WITH
_
SHORT_
INT
)
+
+
#define MAX
_
INT_
TYPE
SHRT_MAX
+
#define
MIN_INT_TYPE SHRT_MIN
+
#define PRINTPIKEINT "h"
+
+
#elif defined (WITH_INT_INT)
+
+
#define
MAX_INT_TYPE
INT_
MAX
+
#define MIN
_
INT_TYPE INT_MIN
+
#define
PRINTPIKEINT ""
+
+
#elif defined (WITH_LONG_INT)
+
+
#define MAX_INT_TYPE LONG_MAX
+
#define
MIN_INT_TYPE
LONG_
MIN
+
#define PRINTPIKEINT "l"
+
+
#elif defined (WITH
_
LONG_LONG_INT)
+
+
#ifdef LLONG_MAX
+
#define MAX_INT_TYPE LLONG_MAX
+
#define MIN_INT_TYPE LLONG_MIN
#else
-
#
if
SIZEOF
_INT_TYPE
==
8
-
#ifdef
INT64
-
#define
MAX
_
INT
_
TYPE
MAX
_INT64
-
#define MIN_INT_TYPE
MIN_INT64
-
#else
-
#define
MAX_INT_TYPE
9223372036854775807LL
-
#define
MIN
_
INT
_
TYPE (-9223372036854775807LL-1)
+
#
define
MAX
_INT_TYPE
LONG
_
LONG
_MAX
+
#define MIN_INT_TYPE
LONG
_
LONG
_
MIN
#endif
-
#
else
-
#error
Unsupported
INT_TYPE
size
+
#
define
PRINTPIKEINT
"ll"
+
#endif
-
+
+
#if SIZEOF_INT_TYPE - 0 == 0
+
#error Unsupported type chosen for native pike integers.
#endif #if SIZEOF_INT_TYPE != 4 #define INT_TYPE_INT32_CONVERSION #endif
-
+
#if defined (WITH_LONG_DOUBLE_PRECISION_SVALUE)
+
#define PRINTPIKEFLOAT "L"
+
#elif defined (WITH_DOUBLE_PRECISION_SVALUE)
+
#define PRINTPIKEFLOAT ""
+
#else
+
#define PRINTPIKEFLOAT ""
+
#endif
+
+
#if SIZEOF_FLOAT_TYPE - 0 == 0
+
#error Unsupported type chosen for pike floats.
+
#endif
+
#define INT16 short #define INT8 char #ifdef INT64 #define LONGEST INT64 #else #define LONGEST INT32 #endif #define SIZE_T unsigned INT32