dwm-meillo

changeset 461:9d23330a5268

removed a bunch of lines through making function signatures more consistent with my style ( { does not belong to a new line, if function args are single-lined)
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 12 Sep 2006 10:57:28 +0200
parents ab4b08d49d24
children 3ff8e8ef35a3
files client.c draw.c event.c main.c tag.c util.c view.c
diffstat 7 files changed, 83 insertions(+), 158 deletions(-) [+]
line diff
     1.1 --- a/client.c	Tue Sep 12 09:50:06 2006 +0200
     1.2 +++ b/client.c	Tue Sep 12 10:57:28 2006 +0200
     1.3 @@ -11,16 +11,14 @@
     1.4  /* static functions */
     1.5  
     1.6  static void
     1.7 -detachstack(Client *c)
     1.8 -{
     1.9 +detachstack(Client *c) {
    1.10  	Client **tc;
    1.11  	for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext);
    1.12  	*tc = c->snext;
    1.13  }
    1.14  
    1.15  static void
    1.16 -grabbuttons(Client *c, Bool focused)
    1.17 -{
    1.18 +grabbuttons(Client *c, Bool focused) {
    1.19  	XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
    1.20  
    1.21  	if(focused) {
    1.22 @@ -54,12 +52,10 @@
    1.23  	else
    1.24  		XGrabButton(dpy, AnyButton, AnyModifier, c->win, False, BUTTONMASK,
    1.25  				GrabModeAsync, GrabModeSync, None, None);
    1.26 -
    1.27  }
    1.28  
    1.29  static void
    1.30 -resizetitle(Client *c)
    1.31 -{
    1.32 +resizetitle(Client *c) {
    1.33  	c->tw = textw(c->name);
    1.34  	if(c->tw > c->w)
    1.35  		c->tw = c->w + 2;
    1.36 @@ -69,27 +65,23 @@
    1.37  		XMoveResizeWindow(dpy, c->twin, c->tx, c->ty, c->tw, c->th);
    1.38  	else
    1.39  		XMoveResizeWindow(dpy, c->twin, c->tx + 2 * sw, c->ty, c->tw, c->th);
    1.40 -
    1.41  }
    1.42  
    1.43  static int
    1.44 -xerrordummy(Display *dsply, XErrorEvent *ee)
    1.45 -{
    1.46 +xerrordummy(Display *dsply, XErrorEvent *ee) {
    1.47  	return 0;
    1.48  }
    1.49  
    1.50  /* extern functions */
    1.51  
    1.52  void
    1.53 -ban(Client *c)
    1.54 -{
    1.55 +ban(Client *c) {
    1.56  	XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
    1.57  	XMoveWindow(dpy, c->twin, c->tx + 2 * sw, c->ty);
    1.58  }
    1.59  
    1.60  void
    1.61 -focus(Client *c)
    1.62 -{
    1.63 +focus(Client *c) {
    1.64  	Client *old;
    1.65  
    1.66  	if(!issel)
    1.67 @@ -119,8 +111,7 @@
    1.68  }
    1.69  
    1.70  Client *
    1.71 -getclient(Window w)
    1.72 -{
    1.73 +getclient(Window w) {
    1.74  	Client *c;
    1.75  
    1.76  	for(c = clients; c; c = c->next)
    1.77 @@ -130,8 +121,7 @@
    1.78  }
    1.79  
    1.80  Client *
    1.81 -getctitle(Window w)
    1.82 -{
    1.83 +getctitle(Window w) {
    1.84  	Client *c;
    1.85  
    1.86  	for(c = clients; c; c = c->next)
    1.87 @@ -141,8 +131,7 @@
    1.88  }
    1.89  
    1.90  void
    1.91 -gravitate(Client *c, Bool invert)
    1.92 -{
    1.93 +gravitate(Client *c, Bool invert) {
    1.94  	int dx = 0, dy = 0;
    1.95  
    1.96  	switch(c->grav) {
    1.97 @@ -196,8 +185,7 @@
    1.98  }
    1.99  
   1.100  void
   1.101 -killclient(Arg *arg)
   1.102 -{
   1.103 +killclient(Arg *arg) {
   1.104  	if(!sel)
   1.105  		return;
   1.106  	if(sel->proto & PROTODELWIN)
   1.107 @@ -207,8 +195,7 @@
   1.108  }
   1.109  
   1.110  void
   1.111 -manage(Window w, XWindowAttributes *wa)
   1.112 -{
   1.113 +manage(Window w, XWindowAttributes *wa) {
   1.114  	Client *c;
   1.115  	Window trans;
   1.116  	XSetWindowAttributes twa;
   1.117 @@ -270,8 +257,7 @@
   1.118  }
   1.119  
   1.120  void
   1.121 -resize(Client *c, Bool sizehints, Corner sticky)
   1.122 -{
   1.123 +resize(Client *c, Bool sizehints, Corner sticky) {
   1.124  	int bottom = c->y + c->h;
   1.125  	int right = c->x + c->w;
   1.126  	XWindowChanges wc;
   1.127 @@ -309,8 +295,7 @@
   1.128  }
   1.129  
   1.130  void
   1.131 -updatesize(Client *c)
   1.132 -{
   1.133 +updatesize(Client *c) {
   1.134  	long msize;
   1.135  	XSizeHints size;
   1.136  
   1.137 @@ -348,8 +333,7 @@
   1.138  }
   1.139  
   1.140  void
   1.141 -updatetitle(Client *c)
   1.142 -{
   1.143 +updatetitle(Client *c) {
   1.144  	char **list = NULL;
   1.145  	int n;
   1.146  	XTextProperty name;
   1.147 @@ -376,8 +360,7 @@
   1.148  }
   1.149  
   1.150  void
   1.151 -togglemax(Arg *arg)
   1.152 -{
   1.153 +togglemax(Arg *arg) {
   1.154  	int ox, oy, ow, oh;
   1.155  	Client *c;
   1.156  	XEvent ev;
   1.157 @@ -412,8 +395,7 @@
   1.158  }
   1.159  
   1.160  void
   1.161 -unmanage(Client *c)
   1.162 -{
   1.163 +unmanage(Client *c) {
   1.164  	Client *nc;
   1.165  
   1.166  	XGrabServer(dpy);
     2.1 --- a/draw.c	Tue Sep 12 09:50:06 2006 +0200
     2.2 +++ b/draw.c	Tue Sep 12 10:57:28 2006 +0200
     2.3 @@ -10,8 +10,7 @@
     2.4  /* static */
     2.5  
     2.6  static unsigned int
     2.7 -textnw(const char *text, unsigned int len)
     2.8 -{
     2.9 +textnw(const char *text, unsigned int len) {
    2.10  	XRectangle r;
    2.11  
    2.12  	if(dc.font.set) {
    2.13 @@ -22,8 +21,7 @@
    2.14  }
    2.15  
    2.16  static void
    2.17 -drawtext(const char *text, unsigned long col[ColLast], Bool highlight)
    2.18 -{
    2.19 +drawtext(const char *text, unsigned long col[ColLast], Bool highlight) {
    2.20  	int x, y, w, h;
    2.21  	static char buf[256];
    2.22  	unsigned int len, olen;
    2.23 @@ -82,8 +80,7 @@
    2.24  /* extern */
    2.25  
    2.26  void
    2.27 -drawall()
    2.28 -{
    2.29 +drawall() {
    2.30  	Client *c;
    2.31  
    2.32  	for(c = clients; c; c = getnext(c->next))
    2.33 @@ -92,8 +89,7 @@
    2.34  }
    2.35  
    2.36  void
    2.37 -drawstatus()
    2.38 -{
    2.39 +drawstatus() {
    2.40  	int i, x;
    2.41  
    2.42  	dc.x = dc.y = 0;
    2.43 @@ -131,8 +127,7 @@
    2.44  }
    2.45  
    2.46  void
    2.47 -drawtitle(Client *c)
    2.48 -{
    2.49 +drawtitle(Client *c) {
    2.50  	if(c == sel && issel) {
    2.51  		drawstatus();
    2.52  		XUnmapWindow(dpy, c->twin);
    2.53 @@ -150,8 +145,7 @@
    2.54  }
    2.55  
    2.56  unsigned long
    2.57 -getcolor(const char *colstr)
    2.58 -{
    2.59 +getcolor(const char *colstr) {
    2.60  	Colormap cmap = DefaultColormap(dpy, screen);
    2.61  	XColor color;
    2.62  
    2.63 @@ -160,8 +154,7 @@
    2.64  }
    2.65  
    2.66  void
    2.67 -setfont(const char *fontstr)
    2.68 -{
    2.69 +setfont(const char *fontstr) {
    2.70  	char **missing, *def;
    2.71  	int i, n;
    2.72  
    2.73 @@ -211,7 +204,6 @@
    2.74  }
    2.75  
    2.76  unsigned int
    2.77 -textw(const char *text)
    2.78 -{
    2.79 +textw(const char *text) {
    2.80  	return textnw(text, strlen(text)) + dc.font.height;
    2.81  }
     3.1 --- a/event.c	Tue Sep 12 09:50:06 2006 +0200
     3.2 +++ b/event.c	Tue Sep 12 10:57:28 2006 +0200
     3.3 @@ -21,8 +21,7 @@
     3.4  #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))
     3.5  
     3.6  static void
     3.7 -movemouse(Client *c)
     3.8 -{
     3.9 +movemouse(Client *c) {
    3.10  	int x1, y1, ocx, ocy, di;
    3.11  	unsigned int dui;
    3.12  	Window dummy;
    3.13 @@ -37,7 +36,8 @@
    3.14  	for(;;) {
    3.15  		XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev);
    3.16  		switch (ev.type) {
    3.17 -		default: break;
    3.18 +		default:
    3.19 +			break;
    3.20  		case Expose:
    3.21  			handler[Expose](&ev);
    3.22  			break;
    3.23 @@ -55,8 +55,7 @@
    3.24  }
    3.25  
    3.26  static void
    3.27 -resizemouse(Client *c)
    3.28 -{
    3.29 +resizemouse(Client *c) {
    3.30  	int ocx, ocy;
    3.31  	int nw, nh;
    3.32  	Corner sticky;
    3.33 @@ -71,7 +70,8 @@
    3.34  	for(;;) {
    3.35  		XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev);
    3.36  		switch(ev.type) {
    3.37 -		default: break;
    3.38 +		default:
    3.39 +			break;
    3.40  		case Expose:
    3.41  			handler[Expose](&ev);
    3.42  			break;
    3.43 @@ -97,8 +97,7 @@
    3.44  }
    3.45  
    3.46  static void
    3.47 -buttonpress(XEvent *e)
    3.48 -{
    3.49 +buttonpress(XEvent *e) {
    3.50  	int x;
    3.51  	Arg a;
    3.52  	Client *c;
    3.53 @@ -147,8 +146,7 @@
    3.54  }
    3.55  
    3.56  static void
    3.57 -synconfig(Client *c, int x, int y, int w, int h, unsigned int border)
    3.58 -{
    3.59 +synconfig(Client *c, int x, int y, int w, int h, unsigned int border) {
    3.60  	XEvent synev;
    3.61  
    3.62  	synev.type = ConfigureNotify;
    3.63 @@ -165,8 +163,7 @@
    3.64  }
    3.65  
    3.66  static void
    3.67 -configurerequest(XEvent *e)
    3.68 -{
    3.69 +configurerequest(XEvent *e) {
    3.70  	unsigned long newmask;
    3.71  	Client *c;
    3.72  	XConfigureRequestEvent *ev = &e->xconfigurerequest;
    3.73 @@ -219,8 +216,7 @@
    3.74  }
    3.75  
    3.76  static void
    3.77 -destroynotify(XEvent *e)
    3.78 -{
    3.79 +destroynotify(XEvent *e) {
    3.80  	Client *c;
    3.81  	XDestroyWindowEvent *ev = &e->xdestroywindow;
    3.82  
    3.83 @@ -229,8 +225,7 @@
    3.84  }
    3.85  
    3.86  static void
    3.87 -enternotify(XEvent *e)
    3.88 -{
    3.89 +enternotify(XEvent *e) {
    3.90  	Client *c;
    3.91  	XCrossingEvent *ev = &e->xcrossing;
    3.92  
    3.93 @@ -247,8 +242,7 @@
    3.94  }
    3.95  
    3.96  static void
    3.97 -expose(XEvent *e)
    3.98 -{
    3.99 +expose(XEvent *e) {
   3.100  	Client *c;
   3.101  	XExposeEvent *ev = &e->xexpose;
   3.102  
   3.103 @@ -261,8 +255,7 @@
   3.104  }
   3.105  
   3.106  static void
   3.107 -keypress(XEvent *e)
   3.108 -{
   3.109 +keypress(XEvent *e) {
   3.110  	static unsigned int len = sizeof(key) / sizeof(key[0]);
   3.111  	unsigned int i;
   3.112  	KeySym keysym;
   3.113 @@ -270,8 +263,8 @@
   3.114  
   3.115  	keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
   3.116  	for(i = 0; i < len; i++) {
   3.117 -		if(keysym == key[i].keysym &&
   3.118 -				CLEANMASK(key[i].mod) == CLEANMASK(ev->state))
   3.119 +		if(keysym == key[i].keysym
   3.120 +			&& CLEANMASK(key[i].mod) == CLEANMASK(ev->state))
   3.121  		{
   3.122  			if(key[i].func)
   3.123  				key[i].func(&key[i].arg);
   3.124 @@ -281,8 +274,7 @@
   3.125  }
   3.126  
   3.127  static void
   3.128 -leavenotify(XEvent *e)
   3.129 -{
   3.130 +leavenotify(XEvent *e) {
   3.131  	XCrossingEvent *ev = &e->xcrossing;
   3.132  
   3.133  	if((ev->window == root) && !ev->same_screen) {
   3.134 @@ -292,8 +284,7 @@
   3.135  }
   3.136  
   3.137  static void
   3.138 -mappingnotify(XEvent *e)
   3.139 -{
   3.140 +mappingnotify(XEvent *e) {
   3.141  	XMappingEvent *ev = &e->xmapping;
   3.142  
   3.143  	XRefreshKeyboardMapping(ev);
   3.144 @@ -302,8 +293,7 @@
   3.145  }
   3.146  
   3.147  static void
   3.148 -maprequest(XEvent *e)
   3.149 -{
   3.150 +maprequest(XEvent *e) {
   3.151  	static XWindowAttributes wa;
   3.152  	XMapRequestEvent *ev = &e->xmaprequest;
   3.153  
   3.154 @@ -321,8 +311,7 @@
   3.155  }
   3.156  
   3.157  static void
   3.158 -propertynotify(XEvent *e)
   3.159 -{
   3.160 +propertynotify(XEvent *e) {
   3.161  	Client *c;
   3.162  	Window trans;
   3.163  	XPropertyEvent *ev = &e->xproperty;
   3.164 @@ -354,8 +343,7 @@
   3.165  }
   3.166  
   3.167  static void
   3.168 -unmapnotify(XEvent *e)
   3.169 -{
   3.170 +unmapnotify(XEvent *e) {
   3.171  	Client *c;
   3.172  	XUnmapEvent *ev = &e->xunmap;
   3.173  
   3.174 @@ -380,8 +368,7 @@
   3.175  };
   3.176  
   3.177  void
   3.178 -grabkeys()
   3.179 -{
   3.180 +grabkeys() {
   3.181  	static unsigned int len = sizeof(key) / sizeof(key[0]);
   3.182  	unsigned int i;
   3.183  	KeyCode code;
   3.184 @@ -401,8 +388,7 @@
   3.185  }
   3.186  
   3.187  void
   3.188 -procevent()
   3.189 -{
   3.190 +procevent() {
   3.191  	XEvent ev;
   3.192  
   3.193  	while(XPending(dpy)) {
   3.194 @@ -411,4 +397,3 @@
   3.195  			(handler[ev.type])(&ev); /* call handler */
   3.196  	}
   3.197  }
   3.198 -
     4.1 --- a/main.c	Tue Sep 12 09:50:06 2006 +0200
     4.2 +++ b/main.c	Tue Sep 12 10:57:28 2006 +0200
     4.3 @@ -39,8 +39,7 @@
     4.4  static Bool otherwm, readin;
     4.5  
     4.6  static void
     4.7 -cleanup()
     4.8 -{
     4.9 +cleanup() {
    4.10  	close(STDIN_FILENO);
    4.11  	while(sel) {
    4.12  		resize(sel, True, TopLeft);
    4.13 @@ -60,8 +59,7 @@
    4.14  }
    4.15  
    4.16  static void
    4.17 -scan()
    4.18 -{
    4.19 +scan() {
    4.20  	unsigned int i, num;
    4.21  	Window *wins, d1, d2;
    4.22  	XWindowAttributes wa;
    4.23 @@ -82,8 +80,7 @@
    4.24  }
    4.25  
    4.26  static void
    4.27 -setup()
    4.28 -{
    4.29 +setup() {
    4.30  	int i, j;
    4.31  	unsigned int mask;
    4.32  	Window w;
    4.33 @@ -112,7 +109,8 @@
    4.34  	}
    4.35  	XFree(modmap);
    4.36  
    4.37 -	wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask | EnterWindowMask | LeaveWindowMask;
    4.38 +	wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
    4.39 +		| EnterWindowMask | LeaveWindowMask;
    4.40  	wa.cursor = cursor[CurNormal];
    4.41  	XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
    4.42  
    4.43 @@ -163,8 +161,7 @@
    4.44   * is already running.
    4.45   */
    4.46  static int
    4.47 -xerrorstart(Display *dsply, XErrorEvent *ee)
    4.48 -{
    4.49 +xerrorstart(Display *dsply, XErrorEvent *ee) {
    4.50  	otherwm = True;
    4.51  	return -1;
    4.52  }
    4.53 @@ -172,8 +169,7 @@
    4.54  /* extern */
    4.55  
    4.56  int
    4.57 -getproto(Window w)
    4.58 -{
    4.59 +getproto(Window w) {
    4.60  	int i, format, protos, status;
    4.61  	unsigned long extra, res;
    4.62  	Atom *protocols, real;
    4.63 @@ -191,8 +187,7 @@
    4.64  }
    4.65  
    4.66  void
    4.67 -sendevent(Window w, Atom a, long value)
    4.68 -{
    4.69 +sendevent(Window w, Atom a, long value) {
    4.70  	XEvent e;
    4.71  
    4.72  	e.type = ClientMessage;
    4.73 @@ -206,8 +201,7 @@
    4.74  }
    4.75  
    4.76  void
    4.77 -quit(Arg *arg)
    4.78 -{
    4.79 +quit(Arg *arg) {
    4.80  	readin = running = False;
    4.81  }
    4.82  
    4.83 @@ -217,8 +211,7 @@
    4.84   * default error handler, which may call exit.
    4.85   */
    4.86  int
    4.87 -xerror(Display *dpy, XErrorEvent *ee)
    4.88 -{
    4.89 +xerror(Display *dpy, XErrorEvent *ee) {
    4.90  	if(ee->error_code == BadWindow
    4.91  	|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch)
    4.92  	|| (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable)
    4.93 @@ -234,8 +227,7 @@
    4.94  }
    4.95  
    4.96  int
    4.97 -main(int argc, char *argv[])
    4.98 -{
    4.99 +main(int argc, char *argv[]) {
   4.100  	int r, xfd;
   4.101  	fd_set rd;
   4.102  
     5.1 --- a/tag.c	Tue Sep 12 09:50:06 2006 +0200
     5.2 +++ b/tag.c	Tue Sep 12 10:57:28 2006 +0200
     5.3 @@ -33,22 +33,19 @@
     5.4  /* extern */
     5.5  
     5.6  Client *
     5.7 -getnext(Client *c)
     5.8 -{
     5.9 +getnext(Client *c) {
    5.10  	for(; c && !isvisible(c); c = c->next);
    5.11  	return c;
    5.12  }
    5.13  
    5.14  Client *
    5.15 -getprev(Client *c)
    5.16 -{
    5.17 +getprev(Client *c) {
    5.18  	for(; c && !isvisible(c); c = c->prev);
    5.19  	return c;
    5.20  }
    5.21  
    5.22  void
    5.23 -initrregs()
    5.24 -{
    5.25 +initrregs() {
    5.26  	unsigned int i;
    5.27  	regex_t *reg;
    5.28  
    5.29 @@ -76,8 +73,7 @@
    5.30  }
    5.31  
    5.32  void
    5.33 -settags(Client *c, Client *trans)
    5.34 -{
    5.35 +settags(Client *c, Client *trans) {
    5.36  	char prop[512];
    5.37  	unsigned int i, j;
    5.38  	regmatch_t tmp;
    5.39 @@ -114,8 +110,7 @@
    5.40  }
    5.41  
    5.42  void
    5.43 -tag(Arg *arg)
    5.44 -{
    5.45 +tag(Arg *arg) {
    5.46  	unsigned int i;
    5.47  
    5.48  	if(!sel)
    5.49 @@ -129,8 +124,7 @@
    5.50  }
    5.51  
    5.52  void
    5.53 -toggletag(Arg *arg)
    5.54 -{
    5.55 +toggletag(Arg *arg) {
    5.56  	unsigned int i;
    5.57  
    5.58  	if(!sel)
     6.1 --- a/util.c	Tue Sep 12 09:50:06 2006 +0200
     6.2 +++ b/util.c	Tue Sep 12 10:57:28 2006 +0200
     6.3 @@ -12,8 +12,7 @@
     6.4  /* extern */
     6.5  
     6.6  void *
     6.7 -emallocz(unsigned int size)
     6.8 -{
     6.9 +emallocz(unsigned int size) {
    6.10  	void *res = calloc(1, size);
    6.11  
    6.12  	if(!res)
    6.13 @@ -22,8 +21,7 @@
    6.14  }
    6.15  
    6.16  void
    6.17 -eprint(const char *errstr, ...)
    6.18 -{
    6.19 +eprint(const char *errstr, ...) {
    6.20  	va_list ap;
    6.21  
    6.22  	va_start(ap, errstr);
    6.23 @@ -33,8 +31,7 @@
    6.24  }
    6.25  
    6.26  void *
    6.27 -erealloc(void *ptr, unsigned int size)
    6.28 -{
    6.29 +erealloc(void *ptr, unsigned int size) {
    6.30  	void *res = realloc(ptr, size);
    6.31  	if(!res)
    6.32  		eprint("fatal: could not malloc() %u bytes\n", size);
    6.33 @@ -42,8 +39,7 @@
    6.34  }
    6.35  
    6.36  void
    6.37 -spawn(Arg *arg)
    6.38 -{
    6.39 +spawn(Arg *arg) {
    6.40  	static char *shell = NULL;
    6.41  
    6.42  	if(!shell && !(shell = getenv("SHELL")))
     7.1 --- a/view.c	Tue Sep 12 09:50:06 2006 +0200
     7.2 +++ b/view.c	Tue Sep 12 10:57:28 2006 +0200
     7.3 @@ -8,8 +8,7 @@
     7.4  /* static */
     7.5  
     7.6  static Client *
     7.7 -minclient()
     7.8 -{
     7.9 +minclient() {
    7.10  	Client *c, *min;
    7.11  
    7.12  	if((clients && clients->isfloat) || arrange == dofloat)
    7.13 @@ -21,8 +20,7 @@
    7.14  }
    7.15  
    7.16  static void
    7.17 -reorder()
    7.18 -{
    7.19 +reorder() {
    7.20  	Client *c, *newclients, *tail;
    7.21  
    7.22  	newclients = tail = NULL;
    7.23 @@ -40,8 +38,7 @@
    7.24  }
    7.25  
    7.26  static Client *
    7.27 -nexttiled(Client *c)
    7.28 -{
    7.29 +nexttiled(Client *c) {
    7.30  	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
    7.31  	return c;
    7.32  }
    7.33 @@ -51,8 +48,7 @@
    7.34  void (*arrange)(Arg *) = DEFMODE;
    7.35  
    7.36  void
    7.37 -detach(Client *c)
    7.38 -{
    7.39 +detach(Client *c) {
    7.40  	if(c->prev)
    7.41  		c->prev->next = c->next;
    7.42  	if(c->next)
    7.43 @@ -63,8 +59,7 @@
    7.44  }
    7.45  
    7.46  void
    7.47 -dofloat(Arg *arg)
    7.48 -{
    7.49 +dofloat(Arg *arg) {
    7.50  	Client *c;
    7.51  
    7.52  	maximized = False;
    7.53 @@ -84,8 +79,7 @@
    7.54  }
    7.55  
    7.56  void
    7.57 -dotile(Arg *arg)
    7.58 -{
    7.59 +dotile(Arg *arg) {
    7.60  	int h, i, n, w;
    7.61  	Client *c;
    7.62  
    7.63 @@ -148,8 +142,7 @@
    7.64  }
    7.65  
    7.66  void
    7.67 -focusnext(Arg *arg)
    7.68 -{
    7.69 +focusnext(Arg *arg) {
    7.70  	Client *c;
    7.71     
    7.72  	if(!sel)
    7.73 @@ -164,8 +157,7 @@
    7.74  }
    7.75  
    7.76  void
    7.77 -focusprev(Arg *arg)
    7.78 -{
    7.79 +focusprev(Arg *arg) {
    7.80  	Client *c;
    7.81  
    7.82  	if(!sel)
    7.83 @@ -182,8 +174,7 @@
    7.84  }
    7.85  
    7.86  Bool
    7.87 -isvisible(Client *c)
    7.88 -{
    7.89 +isvisible(Client *c) {
    7.90  	unsigned int i;
    7.91  
    7.92  	for(i = 0; i < ntags; i++)
    7.93 @@ -193,8 +184,7 @@
    7.94  }
    7.95  
    7.96  void
    7.97 -resizecol(Arg *arg)
    7.98 -{
    7.99 +resizecol(Arg *arg) {
   7.100  	unsigned int n;
   7.101  	Client *c;
   7.102  
   7.103 @@ -218,8 +208,7 @@
   7.104  }
   7.105  
   7.106  void
   7.107 -restack()
   7.108 -{
   7.109 +restack() {
   7.110  	Client *c;
   7.111  	XEvent ev;
   7.112  	
   7.113 @@ -242,8 +231,7 @@
   7.114  }
   7.115  
   7.116  void
   7.117 -togglemode(Arg *arg)
   7.118 -{
   7.119 +togglemode(Arg *arg) {
   7.120  	arrange = (arrange == dofloat) ? dotile : dofloat;
   7.121  	if(sel)
   7.122  		arrange(NULL);
   7.123 @@ -252,8 +240,7 @@
   7.124  }
   7.125  
   7.126  void
   7.127 -toggleview(Arg *arg)
   7.128 -{
   7.129 +toggleview(Arg *arg) {
   7.130  	unsigned int i;
   7.131  
   7.132  	seltag[arg->i] = !seltag[arg->i];
   7.133 @@ -265,8 +252,7 @@
   7.134  }
   7.135  
   7.136  void
   7.137 -view(Arg *arg)
   7.138 -{
   7.139 +view(Arg *arg) {
   7.140  	unsigned int i;
   7.141  
   7.142  	for(i = 0; i < ntags; i++)
   7.143 @@ -277,8 +263,7 @@
   7.144  }
   7.145  
   7.146  void
   7.147 -viewall(Arg *arg)
   7.148 -{
   7.149 +viewall(Arg *arg) {
   7.150  	unsigned int i;
   7.151  
   7.152  	for(i = 0; i < ntags; i++)
   7.153 @@ -288,8 +273,7 @@
   7.154  }
   7.155  
   7.156  void
   7.157 -zoom(Arg *arg)
   7.158 -{
   7.159 +zoom(Arg *arg) {
   7.160  	unsigned int n;
   7.161  	Client *c;
   7.162