mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 23:29:27 +00:00
f3431f8771
These should be of type int (not unsigned int), since that is what char and unsigned char now promote to.
34 lines
800 B
C
34 lines
800 B
C
/****************************************************************
|
|
*
|
|
* limits.h - limits on the size of numbers
|
|
*
|
|
* April 1989
|
|
* Mike Westerfield
|
|
*
|
|
* Copyright 1989
|
|
* Byte Works, Inc.
|
|
*
|
|
****************************************************************/
|
|
|
|
#ifndef __limits__
|
|
#define __limits__
|
|
|
|
#define CHAR_BIT 8
|
|
#define CHAR_MAX 255
|
|
#define CHAR_MIN 0
|
|
#define SHRT_MAX 32767
|
|
#define SHRT_MIN (-32767-1)
|
|
#define INT_MAX 32767
|
|
#define INT_MIN (-32767-1)
|
|
#define LONG_MAX 2147483647
|
|
#define LONG_MIN (-2147483647-1)
|
|
#define MB_LEN_MAX 1
|
|
#define SCHAR_MAX 127
|
|
#define SCHAR_MIN (-128)
|
|
#define UCHAR_MAX 255
|
|
#define UINT_MAX 65535u
|
|
#define ULONG_MAX 4294967295u
|
|
#define USHRT_MAX 65535u
|
|
|
|
#endif
|