mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use the array.h code for the causes list.
This commit is contained in:
		
							
								
								
									
										10
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								tmux.h
									
									
									
									
									
								
							@@ -1244,6 +1244,9 @@ struct set_option_entry {
 | 
			
		||||
	const char     **choices;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* List of configuration causes. */
 | 
			
		||||
ARRAY_DECL(causelist, char *);
 | 
			
		||||
 | 
			
		||||
/* tmux.c */
 | 
			
		||||
extern struct options global_options;
 | 
			
		||||
extern struct options global_s_options;
 | 
			
		||||
@@ -1262,10 +1265,9 @@ int		 areshell(const char *);
 | 
			
		||||
 | 
			
		||||
/* cfg.c */
 | 
			
		||||
extern int       cfg_finished;
 | 
			
		||||
extern char    **cfg_causes;
 | 
			
		||||
extern u_int     cfg_ncauses;
 | 
			
		||||
void printflike3 cfg_add_cause(u_int *, char ***, const char *, ...);
 | 
			
		||||
int		 load_cfg(const char *, struct cmd_ctx *, u_int *, char ***);
 | 
			
		||||
struct causelist cfg_causes;
 | 
			
		||||
void printflike2 cfg_add_cause(struct causelist *, const char *, ...);
 | 
			
		||||
int		 load_cfg(const char *, struct cmd_ctx *, struct causelist *);
 | 
			
		||||
 | 
			
		||||
/* mode-key.c */
 | 
			
		||||
extern const struct mode_key_table mode_key_tables[];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user