Simplify is_ascii_control_char

No need to use macros for unsigned char
This commit is contained in:
Kovid Goyal 2018-04-20 14:30:07 +05:30
parent 32f16ee5f5
commit dd18a1dfd8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -78,11 +78,7 @@ send_key_to_child(Window *w, int key, int mods, int action) {
static inline bool
is_ascii_control_char(char c) {
#if CHAR_MIN == 0
return (c <= 31) || c == 127;
#else
return (0 <= c && c <= 31) || c == 127;
#endif
return c == 0 || (1 <= c && c <= 31) || c == 127;
}
void