pike.git/
src/
global.h
Branch:
Tag:
Non-build tags
All tags
No tags
2003-02-27
2003-02-27 21:29:15 by Martin Stjernholm <mast@lysator.liu.se>
04b26af9e17061c48c2e40b60b60748486b1e7af (
13
lines) (+
12
/-
1
)
[
Show
|
Annotate
]
Branch:
7.4
Ported the constants for the limits of INT_TYPE from 7.5.
Rev: src/global.h:1.78
2:
|| 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
/
02
/
27
21
:
29
:
15
mast Exp $
*/ #ifndef GLOBAL_H
192:
#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)
+
#endif
+
#endif
+
#define INT16 short #define INT8 char