home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / INCLUDE.ZIP / LIMITS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  922 b   |  53 lines

  1. /*    limits.h
  2.  
  3.     Defines implementation specific limits on type values.
  4.  
  5.         Copyright (c) Borland International 1987,1988,1990
  6.     All Rights Reserved.
  7. */
  8.  
  9. #ifndef __LIMITS_H
  10. #define __LIMITS_H
  11.  
  12. #if __STDC__
  13. #define _Cdecl
  14. #else
  15. #define _Cdecl    cdecl
  16. #endif
  17.  
  18. #ifndef __PAS__
  19. #define _CType _Cdecl
  20. #else
  21. #define _CType pascal
  22. #endif
  23.  
  24. #define CHAR_BIT            8
  25.  
  26. #if ('\x80' < 0)
  27. #define CHAR_MAX            127
  28. #define CHAR_MIN            (-128)
  29. #else
  30. #define CHAR_MAX            255
  31. #define CHAR_MIN            0
  32. #endif
  33.  
  34. #define SCHAR_MAX            127
  35. #define SCHAR_MIN            (-128)
  36. #define UCHAR_MAX            255
  37.  
  38. #define SHRT_MAX            0x7FFF
  39. #define SHRT_MIN            ((int)0x8000)
  40. #define USHRT_MAX            0xFFFFU
  41.  
  42. #define INT_MAX                0x7FFF
  43. #define INT_MIN                ((int)0x8000)
  44. #define UINT_MAX            0xFFFFU
  45.  
  46. #define LONG_MAX            0x7FFFFFFFL
  47. #define LONG_MIN            ((long)0x80000000L)
  48. #define ULONG_MAX            0xFFFFFFFFUL
  49.  
  50. #define MB_LEN_MAX          1
  51.  
  52. #endif
  53.