Use an enum for UTF8 decoder state

This commit is contained in:
Kovid Goyal
2021-03-31 15:19:27 +05:30
parent 9838a336d5
commit 0372242d12
7 changed files with 15 additions and 16 deletions

View File

@@ -83,7 +83,8 @@ typedef struct {
CellPixelSize cell_size;
OverlayLine overlay_line;
id_type window_id;
uint32_t utf8_state, utf8_codepoint, *g0_charset, *g1_charset, *g_charset;
uint32_t utf8_codepoint, *g0_charset, *g1_charset, *g_charset;
UTF8State utf8_state;
unsigned int current_charset;
Selections selections, url_ranges;
struct {