2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
32 Number of bits in a `char'.
37 Maximum length of any multibyte character in any locale.
38 Locale-writers should change this as necessary.
43 Minimum and maximum values a `signed char' can hold.
45 #define SCHAR_MIN (-128)
49 Maximum value an `unsigned char' can hold. (Minimum is 0.)
51 #define UCHAR_MAX 255U
54 Minimum and maximum values a `char' can hold.
55 The sign of "char" is probably dictated by a command-line switch to
57 MSVC will define _CHAR_UNSIGNED if the /J option is used.
58 GCC uses --unsigned-char (and friends) to override the default for
59 the target processor and defines a symbol __CHAR_UNSIGNED__
62 #if defined(__CHAR_UNSIGNED__) || defined(_CHAR_UNSIGNED) || ( defined (__ARMCC__) && !( __FEATURE_SIGNED_CHAR) )
64 #define CHAR_MAX UCHAR_MAX
66 #define CHAR_MIN SCHAR_MIN
67 #define CHAR_MAX SCHAR_MAX
71 Minimum and maximum values a `signed short int' can hold.
73 #define SHRT_MIN (-32768)
74 #define SHRT_MAX 32767
77 Maximum value an `unsigned short int' can hold. (Minimum is 0.)
79 #define USHRT_MAX 65535
82 Minimum and maximum values a `signed int' can hold.
84 #define INT_MIN (- INT_MAX - 1)
85 #define INT_MAX 2147483647
88 Maximum value an `unsigned int' can hold. (Minimum is 0.)
90 #define UINT_MAX 4294967295U
93 Minimum and maximum values a `signed long int' can hold.
95 #define LONG_MIN INT_MIN
96 #define LONG_MAX INT_MAX
99 Maximum value an `unsigned long int' can hold. (Minimum is 0.)
101 #define ULONG_MAX UINT_MAX
103 #endif /* limits.h */