Branch: Tag:

2003-02-27

2003-02-27 21:29:15 by Martin Stjernholm <mast@lysator.liu.se>

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