From c4b0da5513ee4c9692f0980408b0da2ee7e3a553 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 28 Apr 2019 20:05:50 +0000 Subject: Support multiple occurances of the same argument. Use this for a new flag -e to new-window, split-window, respawn-window, respawn-pane to pass environment variables into the newly created process. From Steffen Christgau in GitHub issue 1697. --- tmux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 550c9332..0e79d429 100644 --- a/tmux.h +++ b/tmux.h @@ -37,6 +37,7 @@ extern char **environ; struct args; +struct args_value; struct client; struct cmd_find_state; struct cmdq_item; @@ -1578,6 +1579,7 @@ struct spawn_context { const char *name; char **argv; int argc; + struct environ *environ; int idx; const char *cwd; @@ -1871,6 +1873,8 @@ void args_free(struct args *); char *args_print(struct args *); int args_has(struct args *, u_char); const char *args_get(struct args *, u_char); +const char *args_first_value(struct args *, u_char, struct args_value **); +const char *args_next_value(struct args_value **); long long args_strtonum(struct args *, u_char, long long, long long, char **); -- cgit