Lose command index enum in favour of runtime-calculated index.

This commit is contained in:
Nicholas Marriott
2007-10-04 22:04:01 +00:00
parent 75e1e4b91e
commit 26b340964a
18 changed files with 65 additions and 75 deletions

21
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.49 2007-10-04 21:48:11 nicm Exp $ */
/* $Id: tmux.h,v 1.50 2007-10-04 22:04:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -456,24 +456,6 @@ struct client_ctx {
};
/* Key/command line command. */
enum cmd_type {
CMD_ATTACHSESSION,
CMD_BINDKEY,
CMD_DETACHSESSION,
CMD_LASTWINDOW,
CMD_LISTKEYS,
CMD_LISTSESSIONS,
CMD_LISTWINDOWS,
CMD_NEWSESSION,
CMD_NEWWINDOW,
CMD_NEXTWINDOW,
CMD_PREVIOUSWINDOW,
CMD_RENAMEWINDOW,
CMD_SELECTWINDOW,
CMD_SETOPTION,
CMD_UNBINDKEY,
};
struct cmd_ctx {
struct client *client;
struct session *session;
@ -486,7 +468,6 @@ struct cmd_ctx {
};
struct cmd_entry {
enum cmd_type type;
const char *name;
const char *alias;
const char *usage;