1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -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:
Simon Tatham
2020-01-30 06:40:22 +00:00
parent 492e6b1187
commit 22deebfc3e
6 changed files with 5 additions and 11 deletions

View File

@ -586,11 +586,6 @@ extern const char *const appname;
GLOBAL int default_protocol;
GLOBAL int default_port;
/*
* This is set true by cmdline.c iff a session is loaded with "-load".
*/
GLOBAL bool loaded_session;
/*
* Mechanism for getting text strings such as usernames and passwords
* from the front-end.
@ -1958,6 +1953,7 @@ void cmdline_cleanup(void);
int cmdline_get_passwd_input(prompts_t *p);
bool cmdline_host_ok(Conf *);
bool cmdline_verbose(void);
bool cmdline_loaded_session(void);
/*
* Here we have a flags word provided by each tool, which describes