1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Having laid all the groundwork, we can now remove the global `cfg'

completely from putty.h. It's now static in each of the command-line
front ends, shared only between window.c and windlg.c in PuTTY
proper (I've tested this by doing #define cfg cfgsillyname in those
two files only, and it still links so nobody else is using that
symbol!), and part of the `inst' structure in pterm. I think that
only leaves the Unicode module as the last stubborn holdout in the
anti-global-variables campaign.

[originally from svn r2568]
This commit is contained in:
Simon Tatham
2003-01-12 15:32:31 +00:00
parent 952857fca3
commit 6af1a9e4e9
8 changed files with 161 additions and 155 deletions

View File

@ -409,9 +409,6 @@ GLOBAL int flags;
GLOBAL int default_protocol;
GLOBAL int default_port;
/* This variable, OTOH, needs to be made non-global ASAP. FIXME. */
GLOBAL Config cfg;
struct RSAKey; /* be a little careful of scope */
/*