struct vc_data *vc;
unsigned char vc_attr;
struct vt_notifier_param param;
- uint8_t rescan;
- uint8_t inverse;
- uint8_t width;
u16 himask, charmask;
+ u8 width;
+ bool rescan;
+ bool inverse;
if (in_interrupt())
return count;
buf++;
n++;
count--;
- rescan = 0;
- inverse = 0;
+ rescan = false;
+ inverse = false;
width = 1;
/* Do no translation at all in control states */
/* Single ASCII byte or first byte of a sequence received */
if (vc->vc_utf_count) {
/* Continuation byte expected */
- rescan = 1;
+ rescan = true;
vc->vc_utf_count = 0;
c = 0xfffd;
} else if (c > 0x7f) {
/* Display U+FFFD. If it's not found, display an inverse question mark. */
tc = conv_uni_to_pc(vc, 0xfffd);
if (tc < 0) {
- inverse = 1;
+ inverse = true;
tc = conv_uni_to_pc(vc, '?');
if (tc < 0) tc = '?';
}
con_flush(vc, draw_from, draw_to, &draw_x);
if (rescan) {
- rescan = 0;
- inverse = 0;
+ rescan = false;
+ inverse = false;
width = 1;
c = orig;
goto rescan_last_byte;