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

Remove the GLOBAL macro itself.

Now it's no longer used, we can get rid of it, and better still, get
rid of every #define PUTTY_DO_GLOBALS in the many source files that
previously had them.
This commit is contained in:
Simon Tatham
2020-02-02 10:00:43 +00:00
parent 0709de08f2
commit 9729aabd94
14 changed files with 0 additions and 33 deletions

View File

@ -18,7 +18,6 @@
#define COMPILE_MULTIMON_STUBS
#endif
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
#include "putty.h"
#include "terminal.h"
#include "storage.h"

View File

@ -7,8 +7,6 @@
#include <stdlib.h>
#include <assert.h>
#define PUTTY_DO_GLOBALS
#include "putty.h"
#include "ssh.h"
#include "licence.h"

View File

@ -9,8 +9,6 @@
#include <assert.h>
#include <tchar.h>
#define PUTTY_DO_GLOBALS
#include "putty.h"
#include "ssh.h"
#include "misc.h"

View File

@ -7,7 +7,6 @@
#include <assert.h>
#include <stdarg.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
#include "putty.h"
#include "storage.h"
#include "tree234.h"

View File

@ -157,19 +157,6 @@ struct FontSpec *fontspec_new(
(p_##name = module ? \
(t_##name) GetProcAddress(module, #name) : NULL)
/*
* 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.
*/
#ifndef GLOBAL
#ifdef PUTTY_DO_GLOBALS
#define GLOBAL
#else
#define GLOBAL extern
#endif
#endif
#define PUTTY_REG_POS "Software\\SimonTatham\\PuTTY"
#define PUTTY_REG_PARENT "Software\\SimonTatham"
#define PUTTY_REG_PARENT_CHILD "PuTTY"