mirror of
https://github.com/tmux/tmux.git
synced 2025-11-04 17:46:05 +00:00
Move config file path expansion much earlier, keep the list of paths
around rather than freeing later, and add a config_files format variable containing it. Suggested by kn@ a while back.
This commit is contained in:
6
tmux.h
6
tmux.h
@@ -1887,7 +1887,6 @@ const char *sig2name(int);
|
||||
const char *find_cwd(void);
|
||||
const char *find_home(void);
|
||||
const char *getversion(void);
|
||||
void expand_paths(const char *, char ***, u_int *);
|
||||
|
||||
/* proc.c */
|
||||
struct imsg;
|
||||
@@ -1907,13 +1906,14 @@ pid_t proc_fork_and_daemon(int *);
|
||||
/* cfg.c */
|
||||
extern int cfg_finished;
|
||||
extern struct client *cfg_client;
|
||||
extern char **cfg_files;
|
||||
extern u_int cfg_nfiles;
|
||||
extern int cfg_quiet;
|
||||
void start_cfg(void);
|
||||
int load_cfg(const char *, struct client *, struct cmdq_item *, int,
|
||||
struct cmdq_item **);
|
||||
int load_cfg_from_buffer(const void *, size_t, const char *,
|
||||
struct client *, struct cmdq_item *, int, struct cmdq_item **);
|
||||
void set_cfg_file(const char *);
|
||||
const char *get_cfg_file(void);
|
||||
void printflike(1, 2) cfg_add_cause(const char *, ...);
|
||||
void cfg_print_causes(struct cmdq_item *);
|
||||
void cfg_show_causes(struct session *);
|
||||
|
||||
Reference in New Issue
Block a user