Expose args_value struct (will be needed soon) and add some missing frees.

This commit is contained in:
nicm
2021-08-20 18:59:53 +00:00
parent 6cbc83c6a6
commit 90dd474c3e
9 changed files with 64 additions and 69 deletions

13
tmux.h
View File

@ -37,7 +37,6 @@
extern char **environ;
struct args;
struct args_value;
struct client;
struct cmd;
struct cmd_find_state;
@ -1356,7 +1355,13 @@ struct message_entry {
};
TAILQ_HEAD(message_list, message_entry);
/* Parsed arguments structures. */
/* Argument value. */
struct args_value {
char *value;
TAILQ_ENTRY(args_value) entry;
};
/* Arguments set. */
struct args_entry;
RB_HEAD(args_tree, args_entry);
struct args {
@ -2191,8 +2196,8 @@ int args_has(struct args *, u_char);
const char *args_get(struct args *, u_char);
u_char args_first(struct args *, struct args_entry **);
u_char args_next(struct args_entry **);
const char *args_first_value(struct args *, u_char, struct args_value **);
const char *args_next_value(struct args_value **);
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,
char **);
long long args_percentage(struct args *, u_char, long long,