aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-06 17:20:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-06 17:20:30 +0000
commit6a187bb8d379b6f3b77adcd3550ab31dc8058030 (patch)
tree1e5f6db8f36ac16e857fd9298f314dcf262e44b3 /tmux.h
parentac332b6e79b9518f1f0e7c9e563f93ce696c252b (diff)
downloadrtmux-6a187bb8d379b6f3b77adcd3550ab31dc8058030.tar.gz
rtmux-6a187bb8d379b6f3b77adcd3550ab31dc8058030.tar.bz2
rtmux-6a187bb8d379b6f3b77adcd3550ab31dc8058030.zip
Some Linux fixes; some code tidying. Don't redraw status bar so often.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 1d3eb913..de2fafd6 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.133 2008-06-05 21:25:00 nicm Exp $ */
+/* $Id: tmux.h,v 1.134 2008-06-06 17:20:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -59,6 +59,13 @@ extern char *__progname;
#define __packed __attribute__ ((__packed__))
#endif
+#ifndef timespeccmp
+#define timespeccmp(tsp, usp, cmp) \
+ (((tsp)->tv_sec == (usp)->tv_sec) ? \
+ ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
+ ((tsp)->tv_sec cmp (usp)->tv_sec))
+#endif
+
#ifndef TTY_NAME_MAX
#define TTY_NAME_MAX 32
#endif
@@ -115,7 +122,7 @@ struct buffer {
#define KEYC_A1 -1
#define KEYC_A3 -2
#define KEYC_B2 -3
-/* XXX #define KEYC_BACKSPACE -4 */
+/* #define KEYC_BACKSPACE -4 */
#define KEYC_BEG -5
#define KEYC_BTAB -6
#define KEYC_C1 -7