Simplify is_ascii_control_char
No need to use macros for unsigned char
This commit is contained in:
parent
32f16ee5f5
commit
dd18a1dfd8
@ -78,11 +78,7 @@ send_key_to_child(Window *w, int key, int mods, int action) {
|
|||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
is_ascii_control_char(char c) {
|
is_ascii_control_char(char c) {
|
||||||
#if CHAR_MIN == 0
|
return c == 0 || (1 <= c && c <= 31) || c == 127;
|
||||||
return (c <= 31) || c == 127;
|
|
||||||
#else
|
|
||||||
return (0 <= c && c <= 31) || c == 127;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user