]> git.armaanb.net Git - st.git/commitdiff
Move X-related config.h types into x.c
authorDevin J. Pohly <djpohly@gmail.com>
Tue, 17 Oct 2017 21:46:26 +0000 (16:46 -0500)
committerDevin J. Pohly <djpohly@gmail.com>
Mon, 26 Feb 2018 03:53:24 +0000 (21:53 -0600)
No need to expose Shortcut, MouseShortcut, and Key anymore.

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
st.h
x.c

diff --git a/st.h b/st.h
index 9314607bb82d34c98b2815d87ec1432610f07ceb..71c79f4c83c86021aa55b3f04d8489f5c41ee399 100644 (file)
--- a/st.h
+++ b/st.h
@@ -134,12 +134,6 @@ typedef struct {
        int cursor; /* cursor style */
 } TermWindow;
 
-typedef struct {
-       uint b;
-       uint mask;
-       char *s;
-} MouseShortcut;
-
 typedef struct {
        int mode;
        int type;
@@ -170,23 +164,6 @@ typedef union {
        const void *v;
 } Arg;
 
-typedef struct {
-       uint mod;
-       KeySym keysym;
-       void (*func)(const Arg *);
-       const Arg arg;
-} Shortcut;
-
-typedef struct {
-       KeySym k;
-       uint mask;
-       char *s;
-       /* three valued logic variables: 0 indifferent, 1 on, -1 off */
-       signed char appkey;    /* application keypad */
-       signed char appcursor; /* application cursor */
-       signed char crlf;      /* crlf mode          */
-} Key;
-
 void die(const char *, ...);
 void redraw(void);
 
diff --git a/x.c b/x.c
index 03555d139069469650b5929fd382913098853868..24f699169c2196728905071fbd2c9d8dace5c5fd 100644 (file)
--- a/x.c
+++ b/x.c
@@ -20,6 +20,30 @@ static char *argv0;
 #include "st.h"
 #include "win.h"
 
+/* types used in config.h */
+typedef struct {
+       uint mod;
+       KeySym keysym;
+       void (*func)(const Arg *);
+       const Arg arg;
+} Shortcut;
+
+typedef struct {
+       uint b;
+       uint mask;
+       char *s;
+} MouseShortcut;
+
+typedef struct {
+       KeySym k;
+       uint mask;
+       char *s;
+       /* three valued logic variables: 0 indifferent, 1 on, -1 off */
+       signed char appkey;    /* application keypad */
+       signed char appcursor; /* application cursor */
+       signed char crlf;      /* crlf mode          */
+} Key;
+
 /* function definitions used in config.h */
 static void clipcopy(const Arg *);
 static void clippaste(const Arg *);