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

Make Socket and Plug into structs.

I think that means that _every_ one of my traitoids is now a struct
containing a vtable pointer as one of its fields (albeit sometimes the
only field), and never just a bare pointer.
This commit is contained in:
Simon Tatham
2018-10-05 07:24:16 +01:00
parent b798230844
commit 884a7df94b
20 changed files with 222 additions and 209 deletions

7
defs.h
View File

@ -42,8 +42,8 @@ typedef struct IdempotentCallback IdempotentCallback;
typedef struct SockAddr SockAddr;
typedef struct SocketVtable SocketVtable;
typedef struct PlugVtable PlugVtable;
typedef struct Socket Socket;
typedef struct Plug Plug;
typedef struct Backend Backend;
typedef struct BackendVtable BackendVtable;
@ -74,9 +74,6 @@ typedef struct settings_e settings_e;
typedef struct SessionSpecial SessionSpecial;
typedef const SocketVtable *Socket;
typedef const PlugVtable *Plug;
/*
* A small structure wrapping up a (pointer, length) pair so that it
* can be conveniently passed to or from a function.