summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-23 12:33:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-23 12:33:56 +0000
commitd287c0da367614373c8a6208989d560e3b01e3b5 (patch)
tree6ef7d3bfb4768ad81ee035f0090cd422dafd8c0a /usr.bin/tmux/tmux.h
parentcdaed1c111e42c475022866b4d29c3bc2a5f1848 (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 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 2d8881234d0..92587f21e54 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.1134 2021/08/21 20:46:43 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.1135 2021/08/23 12:33:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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,