dos_compilers/Borland Turbo C++ v1/INCLUDE/LIMITS.H
2024-07-02 07:34:51 -07:00

53 lines
922 B
C

/* limits.h
Defines implementation specific limits on type values.
Copyright (c) Borland International 1987,1988,1990
All Rights Reserved.
*/
#ifndef __LIMITS_H
#define __LIMITS_H
#if __STDC__
#define _Cdecl
#else
#define _Cdecl cdecl
#endif
#ifndef __PAS__
#define _CType _Cdecl
#else
#define _CType pascal
#endif
#define CHAR_BIT 8
#if ('\x80' < 0)
#define CHAR_MAX 127
#define CHAR_MIN (-128)
#else
#define CHAR_MAX 255
#define CHAR_MIN 0
#endif
#define SCHAR_MAX 127
#define SCHAR_MIN (-128)
#define UCHAR_MAX 255
#define SHRT_MAX 0x7FFF
#define SHRT_MIN ((int)0x8000)
#define USHRT_MAX 0xFFFFU
#define INT_MAX 0x7FFF
#define INT_MIN ((int)0x8000)
#define UINT_MAX 0xFFFFU
#define LONG_MAX 0x7FFFFFFFL
#define LONG_MIN ((long)0x80000000L)
#define ULONG_MAX 0xFFFFFFFFUL
#define MB_LEN_MAX 1
#endif