aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-11-16 00:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2015-11-16 00:01:10 +0000
commit1686a15fb6a84e942af9f6850da6a381386b0b89 (patch)
treef93120c4ec53063dcef08431d57bc11bd3d568df
parent8213558cc77e6298e7f246ce3f45b5cd8af05a7b (diff)
parent661d0dfac9ad355ad32a9eaebd61d9e340fcfc3b (diff)
downloadrtmux-1686a15fb6a84e942af9f6850da6a381386b0b89.tar.gz
rtmux-1686a15fb6a84e942af9f6850da6a381386b0b89.tar.bz2
rtmux-1686a15fb6a84e942af9f6850da6a381386b0b89.zip
Merge branch 'obsd-master'
-rw-r--r--tmux.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/tmux.h b/tmux.h
index f259e6f6..d7621d8a 100644
--- a/tmux.h
+++ b/tmux.h
@@ -61,12 +61,6 @@ struct tmuxproc;
#define NAME_INTERVAL 500000
/*
- * UTF-8 data size. This must be big enough to hold combined characters as well
- * as single.
- */
-#define UTF8_SIZE 9
-
-/*
* READ_SIZE is the maximum size of data to hold from a pty (the event high
* watermark). READ_BACKOFF is the amount of data waiting to be output to a tty
* before pty reads will be backed off. READ_TIME is how long to back off
@@ -128,7 +122,7 @@ struct tmuxproc;
* A single key. This can be ASCII or Unicode or one of the keys starting at
* KEYC_BASE.
*/
-typedef uint64_t key_code;
+typedef unsigned long long key_code;
/* Special key codes. */
enum {
@@ -620,7 +614,11 @@ struct mode_key_table {
#define ALL_MOUSE_MODES (MODE_MOUSE_STANDARD|MODE_MOUSE_BUTTON)
-/* A single UTF-8 character. */
+/*
+ * A single UTF-8 character. UTF8_SIZE must be big enough to hold at least one
+ * combining character as well.
+*/
+#define UTF8_SIZE 9
struct utf8_data {
u_char data[UTF8_SIZE];