From 850e4a1897c32f4ad0cc97734ed005dda8b2d6b4 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 30 Sep 2018 06:03:09 +0200 Subject: [PATCH] tty: reorder struct fields, for better alignment --- libtty/tty.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libtty/tty.h b/libtty/tty.h index 1fa7084..57bc10f 100644 --- a/libtty/tty.h +++ b/libtty/tty.h @@ -63,22 +63,22 @@ typedef struct tty unsigned int curG:1; // current G charset unsigned int save_G:2; // saved G, curG unsigned int save_curG:1; + // flags + int cp437 :1; // non-UTF-8 + int allow_resize :1; // is input allowed to resize? + int opt_auto_wrap :1; // ?7: auto wrap at right margin + int opt_cursor :1; // ?25: show/hide cursor + int opt_kpad :1; // keypad: application/numeric // UTF-8 state ucs utf_char; ucs utf_surrogate; int utf_count; // parser state + int state; int ntok; uint32_t tok[VT100_MAXTOK]; - int state; char *oscbuf; int osclen; // length of current osc command - // flags - int cp437 :1; // non-UTF-8 - int allow_resize :1; // is input allowed to resize? - int opt_auto_wrap :1; // ?7: auto wrap at right margin - int opt_cursor :1; // ?25: show/hide cursor - int opt_kpad :1; // keypad: application/numeric /*=[ listeners ]=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ void *l_data; // any private data