summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-08-23 12:33:55 +0000
committernicm <nicm>2021-08-23 12:33:55 +0000
commit210e71edf36198e3f22525e7f548a71a5681d25c (patch)
tree26ab4eab3dcd9bc89970b9c193085e44a3b10a4c /tmux.h
parent03b83a5a34a4257be9029e1f5195dcddcd531caa (diff)
Move command argument parsing common functions and don't bother to parse
again if given a command rather than a string.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index fa0268a2..6bdc7e6a 100644
--- a/tmux.h
+++ b/tmux.h
@@ -37,6 +37,7 @@
extern char **environ;
struct args;
+struct args_command_state;
struct client;
struct cmd;
struct cmd_find_state;
@@ -2213,6 +2214,14 @@ u_char args_next(struct args_entry **);
u_int args_count(struct args *);
struct args_value *args_value(struct args *, u_int);
const char *args_string(struct args *, u_int);
+struct cmd_list *args_make_commands_now(struct cmd *, struct cmdq_item *,
+ u_int);
+struct args_command_state *args_make_commands_prepare(struct cmd *,
+ struct cmdq_item *, u_int, const char *, int, int);
+struct cmd_list *args_make_commands(struct args_command_state *, int, char **,
+ char **);
+void args_make_commands_free(struct args_command_state *);
+char *args_make_commands_get_command(struct args_command_state *);
struct args_value *args_first_value(struct args *, u_char);
struct args_value *args_next_value(struct args_value *);
long long args_strtonum(struct args *, u_char, long long, long long,