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.
77
2002
/
11
/
24
23
:
02
:
47
mast
Exp $
+
|| $Id: global.h,v 1.
78
2003
/
01
/
26
11
:
09
:
00
mirar
Exp $
*/ #ifndef GLOBAL_H #define GLOBAL_H #if defined(__WINNT__) && !defined(__NT__) #define __NT__ #endif #ifndef _LARGEFILE_SOURCE
pike.git/src/global.h:185:
#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
+
#else
+
#if SIZEOF_INT_TYPE == 8
+
#define MAX_INT_TYPE 9223372036854775807LL
+
#define MIN_INT_TYPE (-9223372036854775807LL-1)
+
#else
+
#error Unsupported INT_TYPE size
+
#endif
+
#endif
+
+
#if SIZEOF_INT_TYPE != 4
+
#define INT_TYPE_INT32_CONVERSION
+
#endif
+
#define INT16 short #define INT8 char #ifdef INT64 #define LONGEST INT64 #else #define LONGEST INT32 #endif #define SIZE_T unsigned INT32