home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_11 / 2.ddi / INCLUDE.ZIP / LIMITS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  1.1 KB  |  59 lines

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