[hackers] [st][PATCH 22/23] Push X-specific config.h function defs into x.c

From: Devin J. Pohly <djpohly_AT_gmail.com>
Date: Sun, 24 Sep 2017 16:11:44 -0500

---
 win.h | 8 +-------
 x.c   | 9 +++++++++
 2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/win.h b/win.h
index 5c54c40..c834910 100644
--- a/win.h
+++ b/win.h
_AT_@ -1,11 +1,8 @@
 /* See LICENSE for license details. */
 
+/* Functions from x.c used by st.c */
 void draw(void);
 
-void clipcopy(const Arg *);
-void clippaste(const Arg *);
-void iso14755(const Arg *);
-void selpaste(const Arg *);
 void xbell(void);
 void xclipcopy(void);
 void xloadcols(void);
_AT_@ -14,6 +11,3 @@ void xsetenv(void);
 void xsettitle(char *);
 void xsetpointermotion(int);
 void xsetsel(char *);
-void zoom(const Arg *);
-void zoomabs(const Arg *);
-void zoomreset(const Arg *);
diff --git a/x.c b/x.c
index cc5a5a9..b0c890a 100644
--- a/x.c
+++ b/x.c
_AT_@ -57,6 +57,15 @@ typedef struct {
 	signed char crlf;      /* crlf mode          */
 } Key;
 
+/* function definitions used in config.h */
+static void clipcopy(const Arg *);
+static void clippaste(const Arg *);
+static void iso14755(const Arg *);
+static void selpaste(const Arg *);
+static void zoom(const Arg *);
+static void zoomabs(const Arg *);
+static void zoomreset(const Arg *);
+
 /* config.h for applying patches and the configuration. */
 #include "config.h"
 
-- 
2.14.1
Received on Sun Sep 24 2017 - 23:11:44 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 24 2017 - 23:26:13 CEST