ordered function forward definitions a6df995b
Anselm R. Garbe · 2007-09-15 22:45 1 file(s) · +57 −56
dwm.c +57 −56
113 113
} Regs;
114 114
115 115
/* functions */
116 -
static void eprint(const char *errstr, ...);
117 -
static void *emallocz(unsigned int size);
118 -
static void spawn(const char *arg);
119 -
static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
120 -
static unsigned long initcolor(const char *colstr);
121 -
static void initfont(const char *fontstr);
122 -
static Bool isoccupied(unsigned int t);
123 -
static unsigned int textnw(const char *text, unsigned int len);
124 -
static void drawtext(const char *text, unsigned long col[ColLast]);
125 -
static void drawbar(void);
126 -
static void initstyle(void);
127 -
static void initbar(void);
128 -
static unsigned int textw(const char *text);
129 -
static void togglebar(const char *arg);
130 -
static void updatebarpos(void);
116 +
117 +
static void applyrules(Client *c);
118 +
static void arrange(void);
119 +
static void attach(Client *c);
131 120
static void attachstack(Client *c);
132 -
static void detachstack(Client *c);
133 -
static void grabbuttons(Client *c, Bool focused);
134 -
static Bool isprotodel(Client *c);
135 -
static void setclientstate(Client *c, long state);
136 -
static int xerrordummy(Display *dsply, XErrorEvent *ee);
137 121
static void ban(Client *c);
122 +
static void buttonpress(XEvent *e);
123 +
static void cleanup(void);
124 +
static void compileregs(void);
138 125
static void configure(Client *c);
139 -
static void killclient(const char *arg);
140 -
static void manage(Window w, XWindowAttributes *wa);
141 -
static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
142 -
static void unban(Client *c);
143 -
static void unmanage(Client *c);
144 -
static void updatesizehints(Client *c);
145 -
static void updatetitle(Client *c);
146 -
static Client *getclient(Window w);
147 -
static void movemouse(Client *c);
148 -
static void resizemouse(Client *c);
149 -
static void buttonpress(XEvent *e);
126 +
static void configurenotify(XEvent *e);
150 127
static void configurerequest(XEvent *e);
151 -
static void configurenotify(XEvent *e);
152 128
static void destroynotify(XEvent *e);
129 +
static void detach(Client *c);
130 +
static void detachstack(Client *c);
131 +
static void drawbar(void);
132 +
static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
133 +
static void drawtext(const char *text, unsigned long col[ColLast]);
134 +
static void *emallocz(unsigned int size);
153 135
static void enternotify(XEvent *e);
136 +
static void eprint(const char *errstr, ...);
154 137
static void expose(XEvent *e);
155 -
static void keypress(XEvent *e);
156 -
static void leavenotify(XEvent *e);
157 -
static void mappingnotify(XEvent *e);
158 -
static void maprequest(XEvent *e);
159 -
static void propertynotify(XEvent *e);
160 -
static void unmapnotify(XEvent *e);
161 -
static unsigned int idxoftag(const char *tag);
162 138
static void floating(void); /* default floating layout */
163 -
static void applyrules(Client *c);
164 -
static void compileregs(void);
139 +
static void focus(Client *c);
165 140
static void focusnext(const char *arg);
166 141
static void focusprev(const char *arg);
142 +
static Client *getclient(Window w);
143 +
static long getstate(Window w);
144 +
static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
145 +
static void grabbuttons(Client *c, Bool focused);
146 +
static unsigned int idxoftag(const char *tag);
147 +
static void initbar(void);
148 +
static unsigned long initcolor(const char *colstr);
149 +
static void initfont(const char *fontstr);
167 150
static void initlayouts(void);
151 +
static void initstyle(void);
152 +
static Bool isarrange(void (*func)());
168 153
static Bool isfloating(void);
154 +
static Bool isoccupied(unsigned int t);
155 +
static Bool isprotodel(Client *c);
169 156
static Bool isvisible(Client *c);
157 +
static void keypress(XEvent *e);
158 +
static void killclient(const char *arg);
159 +
static void leavenotify(XEvent *e);
160 +
static void manage(Window w, XWindowAttributes *wa);
161 +
static void mappingnotify(XEvent *e);
162 +
static void maprequest(XEvent *e);
163 +
static void movemouse(Client *c);
164 +
static Client *nexttiled(Client *c);
165 +
static void propertynotify(XEvent *e);
166 +
static void quit(const char *arg);
167 +
static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
168 +
static void resizemouse(Client *c);
170 169
static void restack(void);
170 +
static void scan(void);
171 +
static void setclientstate(Client *c, long state);
171 172
static void setlayout(const char *arg);
173 +
static void setmwfact(const char *arg);
174 +
static void setup(void);
175 +
static void spawn(const char *arg);
172 176
static void tag(const char *arg);
177 +
static unsigned int textnw(const char *text, unsigned int len);
178 +
static unsigned int textw(const char *text);
179 +
static void tile(void);
180 +
static void togglebar(const char *arg);
173 181
static void togglefloating(const char *arg);
174 182
static void togglemax(const char *arg);
175 183
static void toggletag(const char *arg);
176 184
static void toggleview(const char *arg);
185 +
static void unban(Client *c);
186 +
static void unmanage(Client *c);
187 +
static void unmapnotify(XEvent *e);
188 +
static void updatebarpos(void);
189 +
static void updatesizehints(Client *c);
190 +
static void updatetitle(Client *c);
177 191
static void view(const char *arg);
178 -
static void cleanup(void);
179 -
static long getstate(Window w);
180 -
static void scan(void);
181 -
static void setup(void);
182 -
static int xerrorstart(Display *dsply, XErrorEvent *ee);
183 -
static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
184 -
static void quit(const char *arg);
185 192
static int xerror(Display *dpy, XErrorEvent *ee);
186 -
static void arrange(void);
187 -
static void attach(Client *c);
188 -
static void detach(Client *c);
189 -
static void focus(Client *c);
190 -
static Bool isarrange(void (*func)());
191 -
static Client *nexttiled(Client *c);
192 -
static void setmwfact(const char *arg);
193 -
static void tile(void);
193 +
static int xerrordummy(Display *dsply, XErrorEvent *ee);
194 +
static int xerrorstart(Display *dsply, XErrorEvent *ee);
194 195
static void zoom(const char *arg);
195 196
196 197
#include "config.h"