gonzui


Format: Advanced Search

tkernel_2/kernel/tkernel/src/limits.hbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by T-Engine Forum at 2013/01/18.
   11:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12:  *
   13:  *----------------------------------------------------------------------
   14:  */
   15: 
   16: /*
   17:  *      limits.h
   18:  *
   19:  *      C language: integer size
   20:  */
   21: 
   22: #ifndef _LIMITS_
   23: #define _LIMITS_
   24: 
   25: #define CHAR_BIT        (8)
   26: #define SCHAR_MIN       (-128)
   27: #define SCHAR_MAX       (+127)
   28: #define UCHAR_MAX       (255)
   29: #define CHAR_MIN        SCHAR_MIN
   30: #define CHAR_MAX        SCHAR_MAX
   31: #define MB_LEN_MAX      (2)
   32: 
   33: #define SHRT_MIN        (-32767)               /* 0x8001 */
   34: #define SHRT_MAX        (+32767)
   35: #define USHRT_MAX       (65535)
   36: 
   37: #define LONG_MIN        (-2147483647L)         /* 0x80000001 */
   38: #define LONG_MAX        (+2147483647L)
   39: #define ULONG_MAX       (4294967295UL)
   40: 
   41: #define INT_MIN         LONG_MIN
   42: #define INT_MAX         LONG_MAX
   43: #define UINT_MAX        ULONG_MAX
   44: 
   45: #endif /* _LIMITS_ */