summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-11-15 22:50:39 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-11-15 22:50:39 +0000
commit3fd0ff6478d44172a5b3ac9d118d16a166210bee (patch)
treed9d39ecb65d21b0e42d2409cbf06294b3572eeff /usr.bin
parentd885aa53c76f4b068b821d6f868572306c160807 (diff)
Make key_code unsigned long long not uint64_t which is more portable for
printf formats, and move UTF8_SIZE define down to near the rest of the UTF-8 bits.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/tmux.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index b138777155c..b746f1f33c2 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.579 2015/11/14 11:45:43 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.580 2015/11/15 22:50:38 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -58,12 +58,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
@@ -125,7 +119,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 {
@@ -617,7 +611,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];