Rename R_MIN and R_MAX to R_BEGIN/END_INPUT_FUNCTIONS

This makes the names more obvious.
We also make the range half-open as is the convention.
This commit is contained in:
ridiculousfish
2018-01-29 11:52:55 -08:00
parent 9ce3ac5b93
commit 43c839ab0e
3 changed files with 14 additions and 11 deletions

View File

@@ -194,7 +194,7 @@ wchar_t input_common_readch(int timed) {
while (1) {
wint_t b = readb();
if (b >= R_NULL && b <= R_MAX) return b;
if (b >= R_NULL && b < R_END_INPUT_FUNCTIONS) return b;
if (MB_CUR_MAX == 1) {
// return (unsigned char)b; // single-byte locale, all values are legal