]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Move declaration of frontend_is_utf8 into putty.h.
authorSimon Tatham <anakin@pobox.com>
Fri, 3 Feb 2017 19:35:41 +0000 (19:35 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 3 Feb 2017 19:35:41 +0000 (19:35 +0000)
It's a function that exists on all platforms, not just on Unix - it's
used in ldisc.c - so it shouldn't have been declared only in unix.h.
Score another for clang's warnings.

putty.h
unix/unix.h

diff --git a/putty.h b/putty.h
index 416f8903eb1aa520157f673e1fbfd4f577bb95cd..fd2d0250650ca7268d48ecf72b6657c376f36a24 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -671,6 +671,7 @@ enum {
     BUSY_CPU       /* Locally busy (e.g. crypto); user interaction suspended */
 };
 void set_busy_status(void *frontend, int status);
+int frontend_is_utf8(void *frontend);
 
 void cleanup_exit(int);
 
index 76ec7531a3d8fd3f3e1c93d318ae7af87b6fcc26..cf297db3d90bbd8173d366f6513b0ba90bee4112 100644 (file)
@@ -125,7 +125,6 @@ void gtkcomm_setup(void);
 const char *get_x_display(void *frontend);
 int font_dimension(void *frontend, int which);/* 0 for width, 1 for height */
 long get_windowid(void *frontend);
-int frontend_is_utf8(void *frontend);
 
 /* Things gtkdlg.c needs from pterm.c */
 void *get_window(void *frontend);      /* void * to avoid depending on gtk.h */