Branch: Tag:

2003-01-26

2003-01-26 11:09:01 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

Some more work to get INT_TYPE long long to work:
use INT_TYPE instead of INT32 when we use/make the Pike int type
Use PRINTPIKEINT when we sprintf-format it

Rev: src/builtin.cmod:1.109
Rev: src/builtin_functions.c:1.464
Rev: src/encode.c:1.162
Rev: src/global.h:1.78
Rev: src/language.yacc:1.313
Rev: src/las.c:1.322
Rev: src/las.h:1.60
Rev: src/pike_types.c:1.205
Rev: src/pike_types.h:1.84
Rev: src/threads.c:1.198

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/01/26 11:09:00 mirar 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) + #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