aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-30 20:31:26 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-30 20:31:26 +0100
commitf93587a4c71ca8b85cfaa88daf5d64e5e5787403 (patch)
tree81c8bc02db007da2416d40fadfd9c6f3e0873a9d /termkey.h.in
parent391f795c67236e08dc1d3ac1564de38d85e446aa (diff)
downloadtermo-f93587a4c71ca8b85cfaa88daf5d64e5e5787403.tar.gz
termo-f93587a4c71ca8b85cfaa88daf5d64e5e5787403.tar.xz
termo-f93587a4c71ca8b85cfaa88daf5d64e5e5787403.zip
C++ compilers don't like trailing commas in enums; remove them
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in13
1 files changed, 7 insertions, 6 deletions
diff --git a/termkey.h.in b/termkey.h.in
index 0cfbb52..4cfa69d 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -84,33 +84,34 @@ typedef enum {
TERMKEY_SYM_KPEQUALS,
// et cetera ad nauseum
+ TERMKEY_N_SYMS
} TermKeySym;
typedef enum {
TERMKEY_TYPE_UNICODE,
TERMKEY_TYPE_FUNCTION,
TERMKEY_TYPE_KEYSYM,
- TERMKEY_TYPE_MOUSE,
+ TERMKEY_TYPE_MOUSE
} TermKeyType;
typedef enum {
TERMKEY_RES_NONE,
TERMKEY_RES_KEY,
TERMKEY_RES_EOF,
- TERMKEY_RES_AGAIN,
+ TERMKEY_RES_AGAIN
} TermKeyResult;
typedef enum {
TERMKEY_MOUSE_UNKNOWN,
TERMKEY_MOUSE_PRESS,
TERMKEY_MOUSE_DRAG,
- TERMKEY_MOUSE_RELEASE,
+ TERMKEY_MOUSE_RELEASE
} TermKeyMouseEvent;
enum {
TERMKEY_KEYMOD_SHIFT = 1 << 0,
TERMKEY_KEYMOD_ALT = 1 << 1,
- TERMKEY_KEYMOD_CTRL = 1 << 2,
+ TERMKEY_KEYMOD_CTRL = 1 << 2
};
typedef struct {
@@ -139,7 +140,7 @@ enum {
TERMKEY_FLAG_UTF8 = 1 << 3, // Input is definitely UTF-8
TERMKEY_FLAG_NOTERMIOS = 1 << 4, // Do not make initial termios calls on construction
TERMKEY_FLAG_SPACESYMBOL = 1 << 5, // Space is symbolic rather than Unicode
- TERMKEY_FLAG_CTRLC = 1 << 6, // Allow Ctrl-C to be read as normal, disabling SIGINT
+ TERMKEY_FLAG_CTRLC = 1 << 6 // Allow Ctrl-C to be read as normal, disabling SIGINT
};
void termkey_check_version(int major, int minor);
@@ -177,7 +178,7 @@ typedef enum {
TERMKEY_FORMAT_ALTISMETA = 1 << 2, // Meta- or M- instead of Alt- or A-
TERMKEY_FORMAT_WRAPBRACKET = 1 << 3, // Wrap special keys in brackets like <Escape>
- TERMKEY_FORMAT_MOUSE_POS = 1 << 8, // Include mouse position if relevant; @ col,line
+ TERMKEY_FORMAT_MOUSE_POS = 1 << 8 // Include mouse position if relevant; @ col,line
} TermKeyFormat;
// Some useful combinations