mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Port forwarding module now passes backend handles around properly.
As a result I've now been able to turn the global variables `back' and `backhandle' into module-level statics in the individual front ends. Now _that's_ progress! [originally from svn r2142]
This commit is contained in:
17
putty.h
17
putty.h
@ -23,17 +23,6 @@ typedef struct terminal_tag Terminal;
|
||||
#include "puttyps.h"
|
||||
#include "network.h"
|
||||
|
||||
/*
|
||||
* Global variables. Most modules declare these `extern', but
|
||||
* window.c will do `#define PUTTY_DO_GLOBALS' before including this
|
||||
* module, and so will get them properly defined.
|
||||
*/
|
||||
#ifdef PUTTY_DO_GLOBALS
|
||||
#define GLOBAL
|
||||
#else
|
||||
#define GLOBAL extern
|
||||
#endif
|
||||
|
||||
/* Three attribute types:
|
||||
* The ATTRs (normal attributes) are stored with the characters in the main
|
||||
* display arrays
|
||||
@ -104,9 +93,6 @@ GLOBAL int alt_pressed;
|
||||
|
||||
GLOBAL int session_closed;
|
||||
|
||||
GLOBAL char *help_path;
|
||||
GLOBAL int help_has_contents;
|
||||
|
||||
GLOBAL int nsessions;
|
||||
GLOBAL char **sessions;
|
||||
|
||||
@ -209,9 +195,6 @@ struct backend_tag {
|
||||
int default_port;
|
||||
};
|
||||
|
||||
GLOBAL Backend *back;
|
||||
GLOBAL void *backhandle;
|
||||
|
||||
extern struct backend_list {
|
||||
int protocol;
|
||||
char *name;
|
||||
|
Reference in New Issue
Block a user