diff options
author | 2019-04-28 20:05:50 +0000 | |
---|---|---|
committer | 2019-04-28 20:05:50 +0000 | |
commit | d0772b58724ed55a3cf536d835c40b0be4672eb7 (patch) | |
tree | 4be7102055e890cc6477cf05d1d5155b34d0188f /usr.bin/tmux/tmux.h | |
parent | Fix reading route entries via kvm(3). (diff) | |
download | wireguard-openbsd-d0772b58724ed55a3cf536d835c40b0be4672eb7.tar.xz wireguard-openbsd-d0772b58724ed55a3cf536d835c40b0be4672eb7.zip |
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.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 39e20e0df28..2a5d97efe6d 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.883 2019/04/26 11:38:51 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.884 2019/04/28 20:05:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 **); |