1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

dialog.c: give ctrl->fileselect.filter an opaque type.

The values of that field in a Control structure are already
platform-dependent: you're only supposed to set them in cross-platform
code by using #defined names that each platform will define
differently.

Now I need the _type_ as well as the values to be opaque, because I'm
about to make a change on Windows that turns it into a wide character
string instead of a char string.
This commit is contained in:
Simon Tatham
2023-05-29 15:29:26 +01:00
parent e1c6f61985
commit 1adcb200f7
4 changed files with 8 additions and 5 deletions

View File

@ -81,6 +81,8 @@ extern const struct BackendVtable pty_backend;
typedef void *HelpCtx;
#define NULL_HELPCTX ((HelpCtx)NULL)
#define HELPCTX(x) NULL
typedef const char *FILESELECT_FILTER_TYPE;
#define FILTER_KEY_FILES NULL /* FIXME */
#define FILTER_DYNLIB_FILES NULL /* FIXME */