diff options
author | nicm <nicm> | 2021-08-21 20:46:43 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-21 20:46:43 +0000 |
commit | 069f5925af8bf70a99eec7f4baf5772707e62def (patch) | |
tree | 8898596f1984869585d0bf546d4efa5c9d313dde /tmux.h | |
parent | 326d2ef234cd8838700e914a0d780f46be50904c (diff) | |
download | rtmux-069f5925af8bf70a99eec7f4baf5772707e62def.tar.gz rtmux-069f5925af8bf70a99eec7f4baf5772707e62def.tar.bz2 rtmux-069f5925af8bf70a99eec7f4baf5772707e62def.zip |
Preserve argument type in command and convert to string on demand.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1369,6 +1369,7 @@ struct args_value { char *string; struct cmd_list *cmdlist; }; + char *cached; TAILQ_ENTRY(args_value) entry; }; @@ -2196,7 +2197,7 @@ void tty_keys_free(struct tty *); int tty_keys_next(struct tty *); /* arguments.c */ -void args_set(struct args *, u_char, const char *); +void args_set(struct args *, u_char, struct args_value *); struct args *args_create(void); struct args *args_parse(const struct args_parse *, struct args_value *, u_int); @@ -2210,6 +2211,7 @@ const char *args_get(struct args *, u_char); u_char args_first(struct args *, struct args_entry **); 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 args_value *args_first_value(struct args *, u_char); struct args_value *args_next_value(struct args_value *); |