diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-16 16:14:04 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-16 16:14:04 -0400 |
| commit | 661f59838235815b5073a0ef95f410003639519e (patch) | |
| tree | 28eb14bc8053bb32abd7c103c4078ab4f81b6129 /src/limits/CHAR_MAX.h | |
| parent | e223e635cc53fa11e473cdbc864eb69a3da5f290 (diff) | |
rename non-compiled files to *.h
Diffstat (limited to 'src/limits/CHAR_MAX.h')
| -rw-r--r-- | src/limits/CHAR_MAX.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/limits/CHAR_MAX.h b/src/limits/CHAR_MAX.h new file mode 100644 index 00000000..fc98c91b --- /dev/null +++ b/src/limits/CHAR_MAX.h @@ -0,0 +1,21 @@ +#include <limits.h> +#ifdef __CHAR_IS_UNSIGNED__ +#define CHAR_MAX (255) +#else +#define CHAR_MAX (127) +#endif + +/** char maximum **/ + +/*** +is the maximum value representable as a TYPE(char). +***/ + +/* +VALUE_SELECT(CONSTANT(UCHAR_MAX), on systems where TYPE(char) is default TYPE(unsigned)) +VALUE_SELECT(CONSTANT(SCHAR_MAX), on systems where TYPE(char) is default TYPE(signed)) +SEE_ALSO(CONSTANT(CHAR_MIN)) +*/ +/* +STDC(1) +*/ |
