aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-10 19:45:20 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-10 19:45:20 +0000
commitefa3e131b5337e6ef3badc7b01ecf6acbea70407 (patch)
tree9708861424d7241d54e773839e56c7f5113f2ad6 /tmux.h
parent6aa64f1a93247bcf1d706c9c87dac77037cf35e5 (diff)
downloadrtmux-efa3e131b5337e6ef3badc7b01ecf6acbea70407.tar.gz
rtmux-efa3e131b5337e6ef3badc7b01ecf6acbea70407.tar.bz2
rtmux-efa3e131b5337e6ef3badc7b01ecf6acbea70407.zip
Simplify input.c - lose class table and use macros.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/tmux.h b/tmux.h
index c319ae50..692fbbea 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.52 2007-10-05 18:25:05 nicm Exp $ */
+/* $Id: tmux.h,v 1.53 2007-10-10 19:45:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -354,20 +354,6 @@ struct input_arg {
size_t used;
};
-/* Input character classes. */
-enum input_class {
- INPUT_C0CONTROL,
- INPUT_SPACE,
- INPUT_INTERMEDIATE,
- INPUT_PARAMETER,
- INPUT_UPPERCASE,
- INPUT_LOWERCASE,
- INPUT_DELETE,
- INPUT_C1CONTROL,
- INPUT_G1DISPLAYABLE,
- INPUT_SPECIAL
-};
-
/* Input parser context. */
struct input_ctx {
u_char *buf;
@@ -384,7 +370,7 @@ struct input_ctx {
size_t title_len;
u_int title_type;
- void *(*state)(u_char, enum input_class, struct input_ctx *);
+ void *(*state)(u_char, struct input_ctx *);
u_char private;
ARRAY_DECL(, struct input_arg) args;