pike.git / src / pike_int_types.h

version» Context lines:

pike.git/src/pike_int_types.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. + */ +    /* Integer types with defined sizes.    *    * Extracted from global.h 1.90    */      /* NB: This file is multiple-inclusion protected on a fine-grained level,    * to support simple restoring of the macros if needed due to    * system headerfile conflicts (eg <X11/Xmd.h> on AIX 4.2).    */   
pike.git/src/pike_int_types.h:119:   # define MAX_UINT32 4294967295U   # define MAX_INT32 2147483647   # define MIN_INT32 (-2147483647-1)   #endif      /* INT16 */   #ifndef INT16   # define INT16 short   #endif    + #ifndef MAX_INT16 + # define MAX_UINT16 65535 + # define MAX_INT16 32767 + # define MIN_INT16 (-32768) + #endif +    /* and INT8 */   #ifndef INT8   # define INT8 char   #endif    -  + #ifndef MAX_INT8 + # define MAX_UINT8 255 + # define MAX_INT8 127 + # define MIN_INT8 (-128) + #endif +    #ifdef INT64   # define LONGEST INT64   # define PRINTLONGEST PRINTINT64   # define MAX_ULONGEST MAX_UINT64   # define MAX_LONGEST MAX_INT64   # define MIN_LONGEST MIN_INT64   # define SIZEOF_LONGEST SIZEOF_INT64   #else   # define LONGEST INT32   # define PRINTLONGEST ""
pike.git/src/pike_int_types.h:156:   #elif SIZEOF_TIME_T == SIZEOF_SHORT   # define MAX_TIME_T SHORT_MAX   # define MIN_TIME_T SHORT_MIN   #elif SIZEOF_TIME_T == SIZEOF_INT64   # define MAX_TIME_T MAX_INT64   # define MIN_TIME_T MIN_INT64   #else   # define MAX_TIME_T MAX_INT32   # define MIN_TIME_T MIN_INT32   #endif +  + #define INT_SPRINTF_SIZE(a) (2 + (sizeof(a) * 5 + 1)/2)