Store the time in the format tree rather than passing it around.

This commit is contained in:
nicm
2019-03-14 23:14:27 +00:00
parent bace79a571
commit 10d60faba5
6 changed files with 31 additions and 43 deletions

2
tmux.h
View File

@ -1585,7 +1585,7 @@ struct format_tree *format_create(struct client *, struct cmdq_item *, int,
void format_free(struct format_tree *);
void printflike(3, 4) format_add(struct format_tree *, const char *,
const char *, ...);
char *format_expand_time(struct format_tree *, const char *, time_t);
char *format_expand_time(struct format_tree *, const char *);
char *format_expand(struct format_tree *, const char *);
char *format_single(struct cmdq_item *, const char *,
struct client *, struct session *, struct winlink *,