/* * cern_types.h -- * Separate out the type declaration for storage * size sensitive quantities. * * Original: 25-Nov-1994 09:53 * * Author: Maarten Ballintijn * * $Id: cern_types.h,v 1.7 1996/04/23 18:37:54 maartenb Exp $ * * $Log: cern_types.h,v $ * Revision 1.7 1996/04/23 18:37:54 maartenb * - Add RCS keywords * * */ #ifndef CERN_CERN_TYPES #define CERN_CERN_TYPES #include #include #include "bool.h" typedef char * String; #define QP_STR_MAX 32 typedef struct _string32_ { char s[QP_STR_MAX]; } String32; typedef unsigned int UInt32; #define UINT32_MAX UINT_MAX /* typedef unsigned long long UInt64; */ typedef unsigned long UInt64; #define UINT64_MAX ULONG_MAX typedef int Int32; #define INT32_MAX INT_MAX #define INT32_MIN INT_MIN /* typedef long long Int64; */ typedef long Int64; #define INT64_MAX LONG_MAX #define INT64_MIN LONG_MIN typedef float Float32; #define FLOAT32_MAX FLT_MAX #define FLOAT32_MIN FLT_MIN #define FLOAT_INT_LIMIT 1.0e10 /* a garanteed minimal value with no fraction */ typedef double Float64; #define FLOAT64_MAX DBL_MAX #define FLOAT64_MIN DBL_MIN #define DOUBLE_INT_LIMIT 1.0e20 /* a garanteed minimal value with no fraction */ #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #endif /* CERN_CERN_TYPES */