home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / limits.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  2.3 KB  |  81 lines

  1. #if (defined(__IBMC__) || defined(__IBMCPP__))
  2. #pragma info( none )
  3. #ifndef __CHKHDR__
  4.    #pragma info( none )
  5. #endif
  6. #pragma info( restore )
  7. #endif
  8.  
  9. #ifndef __limits_h
  10.    #define __limits_h
  11.  
  12.    #ifdef __cplusplus
  13.       extern "C" {
  14.    #endif
  15.  
  16.    #ifndef  _LNK_CONV
  17.      #ifdef _M_I386
  18.          #define  _LNK_CONV   _Optlink
  19.      #else
  20.        #define  _LNK_CONV
  21.      #endif
  22.    #endif
  23.  
  24.    /********************************************************************/
  25.    /*  <limits.h> header file                                          */
  26.    /*                                                                  */
  27.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  28.    /*    Licensed Material - Property of IBM                           */
  29.    /*                                                                  */
  30.    /*  5801-ARR and Other Materials                                    */
  31.    /*                                                                  */
  32.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  33.    /*                                                                  */
  34.    /********************************************************************/
  35.  
  36.    #define CHAR_BIT      8
  37.  
  38.    #define SCHAR_MIN     (-128)
  39.    #define SCHAR_MAX     127
  40.    #define UCHAR_MAX     255
  41.  
  42.    #ifdef _CHAR_UNSIGNED
  43.       #define CHAR_MIN      0
  44.       #define CHAR_MAX      UCHAR_MAX
  45.    #else
  46.       #define CHAR_MIN      SCHAR_MIN
  47.       #define CHAR_MAX      SCHAR_MAX
  48.    #endif
  49.  
  50.    #define MB_LEN_MAX    2
  51.  
  52.    #define SHRT_MIN      (-32768)
  53.    #define SHRT_MAX      32767
  54.    #define USHRT_MAX     65535
  55.  
  56.    #define INT_MIN       (-2147483647 - 1)
  57.    #define INT_MAX       2147483647
  58.    #define UINT_MAX      0xffffffff          /* 4294967295  */
  59.  
  60.    #define LONG_MIN      (-2147483647L - 1)
  61.    #define LONG_MAX      2147483647
  62.    #define ULONG_MAX     0xffffffff          /* 4294967295U */
  63.  
  64.    #define LONGLONG_MIN  0x8000000000000000LL
  65.    #define LONGLONG_MAX  0x7fffffffffffffffLL
  66.    #define ULONGLONG_MAX 0xffffffffffffffffULL
  67.  
  68.    #ifdef __cplusplus
  69.       }
  70.    #endif
  71.  
  72. #endif
  73.  
  74. #if (defined(__IBMC__) || defined(__IBMCPP__))
  75. #pragma info( none )
  76. #ifndef __CHKHDR__
  77.    #pragma info( restore )
  78. #endif
  79. #pragma info( restore )
  80. #endif
  81.