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

Centralise TRUE and FALSE definitions into defs.h.

This removes a lot of pointless duplications of those constants.

Of course, _ideally_, I should upgrade to C99 bool throughout the code
base, replacing TRUE and FALSE with true and false and tagging
variables explicitly as bool when that's what they semantically are.
But that's a much bigger piece of work, and shouldn't block this
trivial cleanup!
This commit is contained in:
Simon Tatham
2018-05-26 07:19:18 +01:00
parent 43ec3397b6
commit c9bad331e6
9 changed files with 16 additions and 54 deletions

7
defs.h
View File

@ -11,6 +11,13 @@
#ifndef PUTTY_DEFS_H
#define PUTTY_DEFS_H
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
typedef struct conf_tag Conf;
typedef struct backend_tag Backend;
typedef struct terminal_tag Terminal;