1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

New header file 'defs.h'.

This centralises a few things that multiple header files were
previously defining, and were protecting against each other's
redefinition with ifdefs - small things like structs and typedefs. Now
all those things are in a defs.h which is by definition safe to
include _first_ (out of all the codebase-local headers) and only need
to be defined once.
This commit is contained in:
Simon Tatham
2018-05-24 08:59:01 +01:00
parent 58379aa5ab
commit 12b38ad9e1
7 changed files with 43 additions and 47 deletions

10
putty.h
View File

@ -16,13 +16,7 @@
#endif
#endif
#ifndef DONE_TYPEDEFS
#define DONE_TYPEDEFS
typedef struct conf_tag Conf;
typedef struct backend_tag Backend;
typedef struct terminal_tag Terminal;
#endif
#include "defs.h"
#include "puttyps.h"
#include "network.h"
#include "misc.h"
@ -538,8 +532,6 @@ GLOBAL int loaded_session;
*/
GLOBAL char *cmdline_session_name;
struct RSAKey; /* be a little careful of scope */
/*
* Mechanism for getting text strings such as usernames and passwords
* from the front-end.