2022-08-26 03:46:24 +00:00
|
|
|
#ifndef _LIMITS_H_
|
|
|
|
#define _LIMITS_H_
|
|
|
|
|
|
|
|
#define SCHAR_MAX 0x7f
|
|
|
|
#define UCHAR_MAX 0xffU
|
|
|
|
|
|
|
|
#if defined(__MWERKS__) && __option(unsigned_char)
|
|
|
|
#define CHAR_MIN 0U
|
|
|
|
#define CHAR_MAX UCHAR_MAX
|
|
|
|
#else
|
|
|
|
#define CHAR_MIN SCHAR_MIN
|
|
|
|
#define CHAR_MAX SCHAR_MAX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SHRT_MAX 0x7fff
|
2024-11-02 02:17:45 +00:00
|
|
|
#define SHRT_MIN (~SHRT_MAX)
|
|
|
|
|
2022-08-26 03:46:24 +00:00
|
|
|
#define USHRT_MAX 0xffffU
|
|
|
|
|
|
|
|
#define INT_MAX 0x7fffffff
|
|
|
|
#define UINT_MAX 0xffffffffU
|
|
|
|
|
|
|
|
#define LONG_MAX 0x7fffffffL
|
|
|
|
#define ULONG_MAX 0xffffffffUL
|
|
|
|
|
|
|
|
#endif
|