aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2017-10-17 16:46:26 -0500
committerDevin J. Pohly <djpohly@gmail.com>2018-02-25 21:53:24 -0600
commit416dd257274fd334be082b1138338adffa3e2d5e (patch)
treed9bd7a58987adff6977cc6e53e003fa28295c382
parent75c9a0ee1d232a1a177746d97a13cf92b03da44a (diff)
downloadst-patched-416dd257274fd334be082b1138338adffa3e2d5e.tar.bz2
st-patched-416dd257274fd334be082b1138338adffa3e2d5e.tar.xz
st-patched-416dd257274fd334be082b1138338adffa3e2d5e.zip
Move X-related config.h types into x.c
No need to expose Shortcut, MouseShortcut, and Key anymore. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
-rw-r--r--st.h23
-rw-r--r--x.c24
2 files changed, 24 insertions, 23 deletions
diff --git a/st.h b/st.h
index 9314607..71c79f4 100644
--- a/st.h
+++ b/st.h
@@ -135,12 +135,6 @@ typedef struct {
135} TermWindow; 135} TermWindow;
136 136
137typedef struct { 137typedef struct {
138 uint b;
139 uint mask;
140 char *s;
141} MouseShortcut;
142
143typedef struct {
144 int mode; 138 int mode;
145 int type; 139 int type;
146 int snap; 140 int snap;
@@ -170,23 +164,6 @@ typedef union {
170 const void *v; 164 const void *v;
171} Arg; 165} Arg;
172 166
173typedef struct {
174 uint mod;
175 KeySym keysym;
176 void (*func)(const Arg *);
177 const Arg arg;
178} Shortcut;
179
180typedef struct {
181 KeySym k;
182 uint mask;
183 char *s;
184 /* three valued logic variables: 0 indifferent, 1 on, -1 off */
185 signed char appkey; /* application keypad */
186 signed char appcursor; /* application cursor */
187 signed char crlf; /* crlf mode */
188} Key;
189
190void die(const char *, ...); 167void die(const char *, ...);
191void redraw(void); 168void redraw(void);
192 169
diff --git a/x.c b/x.c
index 03555d1..24f6991 100644
--- a/x.c
+++ b/x.c
@@ -20,6 +20,30 @@ static char *argv0;
20#include "st.h" 20#include "st.h"
21#include "win.h" 21#include "win.h"
22 22
23/* types used in config.h */
24typedef struct {
25 uint mod;
26 KeySym keysym;
27 void (*func)(const Arg *);
28 const Arg arg;
29} Shortcut;
30
31typedef struct {
32 uint b;
33 uint mask;
34 char *s;
35} MouseShortcut;
36
37typedef struct {
38 KeySym k;
39 uint mask;
40 char *s;
41 /* three valued logic variables: 0 indifferent, 1 on, -1 off */
42 signed char appkey; /* application keypad */
43 signed char appcursor; /* application cursor */
44 signed char crlf; /* crlf mode */
45} Key;
46
23/* function definitions used in config.h */ 47/* function definitions used in config.h */
24static void clipcopy(const Arg *); 48static void clipcopy(const Arg *);
25static void clippaste(const Arg *); 49static void clippaste(const Arg *);