1 /* Sizes of integer types <limits.h>
2 
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6 
7 #ifndef _PDCLIB_LIMITS_H
8 #define _PDCLIB_LIMITS_H _PDCLIB_LIMITS_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "pdclib/_PDCLIB_internal.h"
15 
16 /* TODO: Defined to 1 as multibyte characters are not supported yet. */
17 #define MB_LEN_MAX 1
18 
19 #define LLONG_MIN  _PDCLIB_LLONG_MIN
20 #define LLONG_MAX  _PDCLIB_LLONG_MAX
21 #define ULLONG_MAX _PDCLIB_ULLONG_MAX
22 
23 #define CHAR_BIT   _PDCLIB_CHAR_BIT
24 #define CHAR_MAX   _PDCLIB_CHAR_MAX
25 #define CHAR_MIN   _PDCLIB_CHAR_MIN
26 #define SCHAR_MAX  _PDCLIB_SCHAR_MAX
27 #define SCHAR_MIN  _PDCLIB_SCHAR_MIN
28 #define UCHAR_MAX  _PDCLIB_UCHAR_MAX
29 #define SHRT_MAX   _PDCLIB_SHRT_MAX
30 #define SHRT_MIN   _PDCLIB_SHRT_MIN
31 #define INT_MAX    _PDCLIB_INT_MAX
32 #define INT_MIN    _PDCLIB_INT_MIN
33 #define LONG_MAX   _PDCLIB_LONG_MAX
34 #define LONG_MIN   _PDCLIB_LONG_MIN
35 #define USHRT_MAX  _PDCLIB_USHRT_MAX
36 #define UINT_MAX   _PDCLIB_UINT_MAX
37 #define ULONG_MAX  _PDCLIB_ULONG_MAX
38 
39 /* Extension hook for downstream projects that want to have non-standard
40    extensions to standard headers.
41 */
42 #ifdef _PDCLIB_EXTEND_LIMITS_H
43 #include _PDCLIB_EXTEND_LIMITS_H
44 #endif
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif
51