pike.git / src / global.h

version» Context lines:

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.78 2003/02/27 21:29:15 mast Exp $ + || $Id: global.h,v 1.79 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: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 + #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 - #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 -  + #define PRINTPIKEINT "ll" +    #endif    -  + #if SIZEOF_INT_TYPE - 0 == 0 + #error Unsupported type chosen for native pike integers. + #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