QP/C
limits.h
00001 /*****************************************************************************
00002 * Product: ANSI C library facilities for PC-Lint
00003 * Last Updated for Version: 4.4.00
00004 * Date of the Last Update:  Jan 21, 2012
00005 *
00006 *                    Q u a n t u m     L e a P s
00007 *                    ---------------------------
00008 *                    innovating embedded systems
00009 *
00010 * Copyright (C) 2002-2012 Quantum Leaps, LLC. All rights reserved.
00011 *
00012 * This software is be distributed and modified under the terms of the GNU
00013 * General Public License (GPL) as published by the Free Software Foundation
00014 * and appearing in the file GPL.TXT included in the packaging of this file.
00015 * Please note that GPL requires that all works based on this software must
00016 * also be made publicly available under the terms of the GPL ("Copyleft").
00017 *
00018 * Alternatively, this software may be distributed and modified under the
00019 * terms of Quantum Leaps commercial licenses, which expressly supersede
00020 * the GPL and are specifically designed for licensees interested in
00021 * retaining the proprietary status of their code.
00022 *
00023 * Contact information:
00024 * Quantum Leaps Web site:  http://www.quantum-leaps.com
00025 * e-mail:                  info@quantum-leaps.com
00026 *****************************************************************************/
00027 #ifndef __limits_h
00028 #define __limits_h
00029 
00030 #define CHAR_BIT            8
00031 
00032 #if ('\x80' < 0)
00033 #define CHAR_MAX            127
00034 #define CHAR_MIN            (-128)
00035 #else
00036 #define CHAR_MAX            255
00037 #define CHAR_MIN            0
00038 #endif
00039 
00040 #define SCHAR_MAX           127
00041 #define SCHAR_MIN           (-128)
00042 #define UCHAR_MAX           255
00043 
00044 #define SHRT_MAX            0x7FFF
00045 #define SHRT_MIN            ((int)0x8000)
00046 #define USHRT_MAX           0xFFFFU
00047 
00048 #define INT_MAX             0x7FFF
00049 #define INT_MIN             ((int)0x8000)
00050 #define UINT_MAX            0xFFFFU
00051 
00052 #define LONG_MAX            0x7FFFFFFFL
00053 #define LONG_MIN            ((long)0x80000000L)
00054 #define ULONG_MAX           0xFFFFFFFFUL
00055 
00056 #define MB_LEN_MAX          1
00057 
00058 #endif                                                        /* __limits_h */
00059