From efa3e131b5337e6ef3badc7b01ecf6acbea70407 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 10 Oct 2007 19:45:20 +0000 Subject: Simplify input.c - lose class table and use macros. --- tmux.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'tmux.h') 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 @@ -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; -- cgit