define BOOL_MAX and BOOL_WIDTH

This commit is contained in:
Kalamatee 2023-04-12 23:35:06 +01:00 committed by deadwood
parent 966958cf6a
commit be18c5467d
1 changed files with 6 additions and 0 deletions

View File

@ -45,8 +45,10 @@
#define CHAR_MIN SCHAR_MIN
/* maximum value for an object of type char */
#define CHAR_MAX SCHAR_MAX
/* maximum number of bytes in a multibyte character, for any supported locale */
#define MB_LEN_MAX 1 /* At the moment only "C" locale supported */
/* minimum value for an object of type short int */
#define SHRT_MIN (-32768)
/* maximum value for an object of type short int */
@ -80,4 +82,8 @@
/* maximum value for an object of type unsigned long long int */
#define ULLONG_MAX 0xffffffffffffffffULL
/* width and limit of _Bool (C2X) */
# define BOOL_MAX 1
# define BOOL_WIDTH 1
#endif /* _STDC_LIMITS_H_ */