mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 11:31:00 -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:
6
dialog.h
6
dialog.h
@ -362,7 +362,7 @@ struct dlgcontrol {
|
||||
* particular platform might choose to cast integers into
|
||||
* this pointer type...
|
||||
*/
|
||||
char const *filter;
|
||||
FILESELECT_FILTER_TYPE filter;
|
||||
/*
|
||||
* Some systems like to know whether a file selector is
|
||||
* choosing a file to read or one to write (and possibly
|
||||
@ -552,8 +552,8 @@ dlgcontrol *ctrl_draglist(struct controlset *, const char *label,
|
||||
char shortcut, HelpCtx helpctx,
|
||||
handler_fn handler, intorptr context);
|
||||
dlgcontrol *ctrl_filesel(struct controlset *, const char *label,
|
||||
char shortcut, const char *filter, bool write,
|
||||
const char *title, HelpCtx helpctx,
|
||||
char shortcut, FILESELECT_FILTER_TYPE filter,
|
||||
bool write, const char *title, HelpCtx helpctx,
|
||||
handler_fn handler, intorptr context);
|
||||
dlgcontrol *ctrl_fontsel(struct controlset *, const char *label,
|
||||
char shortcut, HelpCtx helpctx,
|
||||
|
Reference in New Issue
Block a user