diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2017-07-17 17:53:51 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2017-07-17 17:53:51 +0100 |
commit | 35b23db625819f4d0b9817c3b928064ebd06f903 (patch) | |
tree | 83fe6debd25ed80f523f737b11f117fc565c4f1e /include | |
parent | 4070b812c223da212a3fb6ca3c052900791fde0f (diff) |
Ensure that all enums in header files lack a trailing comma, because some older C++ compilers won't like that
Diffstat (limited to 'include')
-rw-r--r-- | include/vterm.h | 14 | ||||
-rw-r--r-- | include/vterm_keycodes.h | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/vterm.h b/include/vterm.h index 57ebe46..81e8924 100644 --- a/include/vterm.h +++ b/include/vterm.h @@ -59,6 +59,8 @@ typedef enum { VTERM_VALUETYPE_INT, VTERM_VALUETYPE_STRING, VTERM_VALUETYPE_COLOR, + + VTERM_N_VALUETYPES } VTermValueType; typedef union { @@ -79,6 +81,8 @@ typedef enum { VTERM_ATTR_FONT, // number: 10-19 VTERM_ATTR_FOREGROUND, // color: 30-39 90-97 VTERM_ATTR_BACKGROUND, // color: 40-49 100-107 + + VTERM_N_ATTRS } VTermAttr; typedef enum { @@ -91,12 +95,16 @@ typedef enum { VTERM_PROP_REVERSE, // bool VTERM_PROP_CURSORSHAPE, // number VTERM_PROP_MOUSE, // number + + VTERM_N_PROPS } VTermProp; enum { VTERM_PROP_CURSORSHAPE_BLOCK = 1, VTERM_PROP_CURSORSHAPE_UNDERLINE, VTERM_PROP_CURSORSHAPE_BAR_LEFT, + + VTERM_N_PROP_CURSORSHAPES }; enum { @@ -104,6 +112,8 @@ enum { VTERM_PROP_MOUSE_CLICK, VTERM_PROP_MOUSE_DRAG, VTERM_PROP_MOUSE_MOVE, + + VTERM_N_PROP_MOUSES }; typedef struct { @@ -280,6 +290,8 @@ typedef enum { VTERM_DAMAGE_ROW, /* entire rows */ VTERM_DAMAGE_SCREEN, /* entire screen */ VTERM_DAMAGE_SCROLL, /* entire screen + scrollrect */ + + VTERM_N_DAMAGES } VTermDamageSize; void vterm_screen_flush_damage(VTermScreen *screen); @@ -301,6 +313,8 @@ typedef enum { VTERM_ATTR_FONT_MASK = 1 << 6, VTERM_ATTR_FOREGROUND_MASK = 1 << 7, VTERM_ATTR_BACKGROUND_MASK = 1 << 8, + + VTERM_ALL_ATTRS_MASK = (1 << 9) - 1 } VTermAttrMask; int vterm_screen_get_attrs_extent(const VTermScreen *screen, VTermRect *extent, VTermPos pos, VTermAttrMask attrs); diff --git a/include/vterm_keycodes.h b/include/vterm_keycodes.h index 165d747..661759f 100644 --- a/include/vterm_keycodes.h +++ b/include/vterm_keycodes.h @@ -6,6 +6,8 @@ typedef enum { VTERM_MOD_SHIFT = 0x01, VTERM_MOD_ALT = 0x02, VTERM_MOD_CTRL = 0x04, + + VTERM_ALL_MODS_MASK = 0x07 } VTermModifier; typedef enum { @@ -51,6 +53,7 @@ typedef enum { VTERM_KEY_KP_EQUAL, VTERM_KEY_MAX, // Must be last + VTERM_N_KEYS = VTERM_KEY_MAX } VTermKey; #define VTERM_KEY_FUNCTION(n) (VTERM_KEY_FUNCTION_0+(n)) |