mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 11:31:00 -05:00
Move 'loaded_session' into cmdline.c.
I haven't managed to make this one _not_ be a mutable variable, but at least it's not global across all tools any more: it lives in cmdline.c along with the code that decides what to set it to, and cmdline.c exports a query method to ask for its value.
This commit is contained in:
@ -146,9 +146,11 @@ static bool cmdline_check_unavailable(int flag, const char *p)
|
||||
static bool seen_hostname_argument = false;
|
||||
static bool seen_port_argument = false;
|
||||
static bool seen_verbose_option = false;
|
||||
static bool loaded_session = false;
|
||||
bool cmdline_verbose(void) { return seen_verbose_option; }
|
||||
bool cmdline_seat_verbose(Seat *seat) { return cmdline_verbose(); }
|
||||
bool cmdline_lp_verbose(LogPolicy *lp) { return cmdline_verbose(); }
|
||||
bool cmdline_loaded_session(void) { return loaded_session; }
|
||||
|
||||
int cmdline_process_param(const char *p, char *value,
|
||||
int need_save, Conf *conf)
|
||||
|
Reference in New Issue
Block a user