From 9bff5595a279f2882768323e482287286ec44998 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 9 Dec 2017 11:57:34 +0000 Subject: [PATCH] Move declaration of write_aclip into winstuff.h. It's actually a function specific to the Windows front end, and has been all along - but I've only just noticed that no other front end either uses it or defines it. --- putty.h | 1 - windows/winstuff.h | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/putty.h b/putty.h index 964b4b23..d53eaca0 100644 --- a/putty.h +++ b/putty.h @@ -635,7 +635,6 @@ void free_ctx(Context); void palette_set(void *frontend, int, int, int, int); void palette_reset(void *frontend); int palette_get(void *frontend, int n, int *r, int *g, int *b); -void write_aclip(void *frontend, char *, int, int); void write_clip(void *frontend, wchar_t *, int *, truecolour *, int, int); void optimised_move(void *frontend, int, int, int); void set_raw_mouse_mode(void *frontend, int); diff --git a/windows/winstuff.h b/windows/winstuff.h index 546c273b..0b535822 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -242,6 +242,13 @@ void quit_help(HWND hwnd); GLOBAL Terminal *term; GLOBAL void *logctx; +/* + * Windows-specific clipboard helper function shared with windlg.c, + * which takes the data string in the system code page instead of + * Unicode. + */ +void write_aclip(void *frontend, char *, int, int); + #define WM_NETEVENT (WM_APP + 5) /*