mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12: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:
@ -33,10 +33,10 @@ static const PlugVtable nullplug_plugvt = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static const PlugVtable *nullplug_plugvt_ptr = &nullplug_plugvt;
|
||||
static Plug nullplug_plug = { &nullplug_plugvt };
|
||||
|
||||
/*
|
||||
* There's a singleton instance of nullplug, because it's not
|
||||
* interesting enough to worry about making more than one of them.
|
||||
*/
|
||||
Plug *nullplug = &nullplug_plugvt_ptr;
|
||||
Plug *const nullplug = &nullplug_plug;
|
||||
|
Reference in New Issue
Block a user