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

Clean up a 'void *' in a unix.h typedef.

'struct draw_ctx' has a structure tag inside gtkwin.c, so as per this
week's standard practice, let's expose the tag elsewhere so that
pointers declared that way can't be confused with anything else.
This commit is contained in:
Simon Tatham
2018-09-14 08:30:09 +01:00
parent 9738e042f9
commit 7efa4a5305
3 changed files with 8 additions and 16 deletions

View File

@ -73,11 +73,7 @@ void set_sbar(Frontend *frontend, int a, int b, int c) { }
void ldisc_send(Ldisc *ldisc, const void *buf, int len, int interactive) {}
void ldisc_echoedit_update(Ldisc *ldisc) {}
Context get_ctx(Frontend *frontend) {
static char x;
return &x;
}
Context get_ctx(Frontend *frontend) { return NULL; }
void free_ctx(Context ctx) { }
void palette_set(Frontend *frontend, int a, int b, int c, int d) { }
void palette_reset(Frontend *frontend) { }