mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Expose args_value struct (will be needed soon) and add some missing frees.
This commit is contained in:
13
tmux.h
13
tmux.h
@ -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,
|
||||
|
Reference in New Issue
Block a user