summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/tmux.h b/tmux.h
index 4f037143..70791a42 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.360 2009-07-14 06:42:06 nicm Exp $ */
+/* $Id: tmux.h,v 1.361 2009-07-14 06:43:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -860,17 +860,13 @@ struct cmd_entry {
#define CMD_CANTNEST 0x2
#define CMD_ARG1 0x4
#define CMD_ARG01 0x8
-#define CMD_AFLAG 0x10
-#define CMD_DFLAG 0x20
-#define CMD_GFLAG 0x40
-#define CMD_KFLAG 0x80
-#define CMD_UFLAG 0x100
-#define CMD_BIGDFLAG 0x200
-#define CMD_BIGUFLAG 0x400
-#define CMD_RFLAG 0x800
-
int flags;
+#define CMD_CHFLAG(flag) \
+ ((flag) >= 'a' && (flag) <= 'z' ? 1ULL << ((flag) - 'a') : \
+ (flag) >= 'A' && (flag) <= 'Z' ? 1ULL << (26 + (flag) - 'A') : 0)
+ uint64_t chflags;
+
void (*init)(struct cmd *, int);
int (*parse)(struct cmd *, int, char **, char **);
int (*exec)(struct cmd *, struct cmd_ctx *);
@@ -882,34 +878,34 @@ struct cmd_entry {
/* Generic command data. */
struct cmd_target_data {
- int flags;
+ uint64_t chflags;
char *target;
char *arg;
};
struct cmd_srcdst_data {
- int flags;
+ uint64_t chflags;
char *src;
char *dst;
char *arg;
};
struct cmd_buffer_data {
- int flags;
+ uint64_t chflags;
char *target;
int buffer;
char *arg;
};
struct cmd_option_data {
- int flags;
+ uint64_t chflags;
char *target;
char *option;
char *value;
};
struct cmd_pane_data {
- int flags;
+ uint64_t chflags;
char *target;
char *arg;
int pane;