Mercurial > vim
diff src/libvterm/src/vterm_internal.h @ 17777:811a12a78164 v8.1.1885
patch 8.1.1885: comments in libvterm are inconsistent
commit https://github.com/vim/vim/commit/db1085a5630ffdaa2e9f342c06cc739ebdf1a99a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 18 20:41:38 2019 +0200
patch 8.1.1885: comments in libvterm are inconsistent
Problem: Comments in libvterm are inconsistent.
Solution: Use // comments. Als update the table of combining characters.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Aug 2019 20:45:04 +0200 |
parents | 2449b6ce1456 |
children | 8b4f9be5db73 |
line wrap: on
line diff
--- a/src/libvterm/src/vterm_internal.h +++ b/src/libvterm/src/vterm_internal.h @@ -51,7 +51,7 @@ struct VTermPen unsigned int blink:1; unsigned int reverse:1; unsigned int strike:1; - unsigned int font:4; /* To store 0-9 */ + unsigned int font:4; // To store 0-9 }; int vterm_color_equal(VTermColor a, VTermColor b); @@ -76,34 +76,34 @@ struct VTermState int rows; int cols; - /* Current cursor position */ + // Current cursor position VTermPos pos; - int at_phantom; /* True if we're on the "81st" phantom column to defer a wraparound */ + int at_phantom; // True if we're on the "81st" phantom column to defer a wraparound int scrollregion_top; - int scrollregion_bottom; /* -1 means unbounded */ + int scrollregion_bottom; // -1 means unbounded #define SCROLLREGION_BOTTOM(state) ((state)->scrollregion_bottom > -1 ? (state)->scrollregion_bottom : (state)->rows) int scrollregion_left; #define SCROLLREGION_LEFT(state) ((state)->mode.leftrightmargin ? (state)->scrollregion_left : 0) - int scrollregion_right; /* -1 means unbounded */ + int scrollregion_right; // -1 means unbounded #define SCROLLREGION_RIGHT(state) ((state)->mode.leftrightmargin && (state)->scrollregion_right > -1 ? (state)->scrollregion_right : (state)->cols) - /* Bitvector of tab stops */ + // Bitvector of tab stops unsigned char *tabstops; VTermLineInfo *lineinfo; #define ROWWIDTH(state,row) ((state)->lineinfo[(row)].doublewidth ? ((state)->cols / 2) : (state)->cols) #define THISROWWIDTH(state) ROWWIDTH(state, (state)->pos.row) - /* Mouse state */ + // Mouse state int mouse_col, mouse_row; int mouse_buttons; int mouse_flags; enum { MOUSE_X10, MOUSE_UTF8, MOUSE_SGR, MOUSE_RXVT } mouse_protocol; - /* Last glyph output, for Unicode recombining purposes */ + // Last glyph output, for Unicode recombining purposes uint32_t *combine_chars; size_t combine_chars_size; // Number of ELEMENTS in the above int combine_width; // The width of the glyph above @@ -141,7 +141,7 @@ struct VTermState unsigned int protected_cell : 1; - /* Saved state under DEC mode 1048/1049 */ + // Saved state under DEC mode 1048/1049 struct { VTermPos pos; struct VTermPen pen; @@ -181,7 +181,7 @@ struct VTerm CSI_ARGS, CSI_INTERMED, ESC, - /* below here are the "string states" */ + // below here are the "string states" STRING, ESC_IN_STRING, } state; @@ -204,7 +204,7 @@ struct VTerm size_t strbuffer_cur; } parser; - /* len == malloc()ed size; cur == number of valid bytes */ + // len == malloc()ed size; cur == number of valid bytes char *outbuffer; size_t outbuffer_len;