mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Make more file-scope variables static.
In the previous trawl of this, I didn't bother with the statics in main-program modules, on the grounds that my main aim was to avoid 'library' objects (shared between multiple programs) from polluting the global namespace. But I think it's worth being more strict after all, so this commit adds 'static' to a lot more file-scope variables that aren't needed outside their own module.
This commit is contained in:
@ -156,8 +156,8 @@ struct wm_netevent_params {
|
||||
};
|
||||
|
||||
static void conf_cache_data(void);
|
||||
int cursor_type;
|
||||
int vtmode;
|
||||
static int cursor_type;
|
||||
static int vtmode;
|
||||
|
||||
static struct sesslist sesslist; /* for saved-session menu */
|
||||
|
||||
@ -192,7 +192,7 @@ static int descent;
|
||||
#define NEXTCOLOURS 240
|
||||
#define NALLCOLOURS (NCFGCOLOURS + NEXTCOLOURS)
|
||||
static COLORREF colours[NALLCOLOURS];
|
||||
struct rgb {
|
||||
static struct rgb {
|
||||
int r, g, b;
|
||||
} colours_rgb[NALLCOLOURS];
|
||||
static HPALETTE pal;
|
||||
|
@ -21,12 +21,12 @@ void cmdline_error(const char *fmt, ...)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
HANDLE inhandle, outhandle, errhandle;
|
||||
struct handle *stdin_handle, *stdout_handle, *stderr_handle;
|
||||
handle_sink stdout_hs, stderr_hs;
|
||||
StripCtrlChars *stdout_scc, *stderr_scc;
|
||||
BinarySink *stdout_bs, *stderr_bs;
|
||||
DWORD orig_console_mode;
|
||||
static HANDLE inhandle, outhandle, errhandle;
|
||||
static struct handle *stdin_handle, *stdout_handle, *stderr_handle;
|
||||
static handle_sink stdout_hs, stderr_hs;
|
||||
static StripCtrlChars *stdout_scc, *stderr_scc;
|
||||
static BinarySink *stdout_bs, *stderr_bs;
|
||||
static DWORD orig_console_mode;
|
||||
|
||||
static Backend *backend;
|
||||
static LogContext *logctx;
|
||||
|
Reference in New Issue
Block a user