Change cmd_find_target to use a state struct from the caller.

This commit is contained in:
nicm
2015-12-13 16:44:35 +00:00
parent 208e2dad1e
commit 9b7697db62
3 changed files with 108 additions and 98 deletions

4
tmux.h
View File

@ -1760,8 +1760,8 @@ long long args_strtonum(struct args *, u_char, long long, long long,
char **);
/* cmd-find.c */
struct cmd_find_state *cmd_find_target(struct cmd_q *, const char *,
enum cmd_find_type, int);
int cmd_find_target(struct cmd_find_state *, struct cmd_q *,
const char *, enum cmd_find_type, int);
struct client *cmd_find_client(struct cmd_q *, const char *, int);
/* cmd.c */