aewl

diff main.c @ 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 81fcd7ddafee
children 2d8af0d7920d
line diff
     1.1 --- a/main.c	Tue Sep 12 09:50:06 2006 +0200
     1.2 +++ b/main.c	Tue Sep 12 10:57:28 2006 +0200
     1.3 @@ -39,8 +39,7 @@
     1.4  static Bool otherwm, readin;
     1.5  
     1.6  static void
     1.7 -cleanup()
     1.8 -{
     1.9 +cleanup() {
    1.10  	close(STDIN_FILENO);
    1.11  	while(sel) {
    1.12  		resize(sel, True, TopLeft);
    1.13 @@ -60,8 +59,7 @@
    1.14  }
    1.15  
    1.16  static void
    1.17 -scan()
    1.18 -{
    1.19 +scan() {
    1.20  	unsigned int i, num;
    1.21  	Window *wins, d1, d2;
    1.22  	XWindowAttributes wa;
    1.23 @@ -82,8 +80,7 @@
    1.24  }
    1.25  
    1.26  static void
    1.27 -setup()
    1.28 -{
    1.29 +setup() {
    1.30  	int i, j;
    1.31  	unsigned int mask;
    1.32  	Window w;
    1.33 @@ -112,7 +109,8 @@
    1.34  	}
    1.35  	XFree(modmap);
    1.36  
    1.37 -	wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask | EnterWindowMask | LeaveWindowMask;
    1.38 +	wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
    1.39 +		| EnterWindowMask | LeaveWindowMask;
    1.40  	wa.cursor = cursor[CurNormal];
    1.41  	XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
    1.42  
    1.43 @@ -163,8 +161,7 @@
    1.44   * is already running.
    1.45   */
    1.46  static int
    1.47 -xerrorstart(Display *dsply, XErrorEvent *ee)
    1.48 -{
    1.49 +xerrorstart(Display *dsply, XErrorEvent *ee) {
    1.50  	otherwm = True;
    1.51  	return -1;
    1.52  }
    1.53 @@ -172,8 +169,7 @@
    1.54  /* extern */
    1.55  
    1.56  int
    1.57 -getproto(Window w)
    1.58 -{
    1.59 +getproto(Window w) {
    1.60  	int i, format, protos, status;
    1.61  	unsigned long extra, res;
    1.62  	Atom *protocols, real;
    1.63 @@ -191,8 +187,7 @@
    1.64  }
    1.65  
    1.66  void
    1.67 -sendevent(Window w, Atom a, long value)
    1.68 -{
    1.69 +sendevent(Window w, Atom a, long value) {
    1.70  	XEvent e;
    1.71  
    1.72  	e.type = ClientMessage;
    1.73 @@ -206,8 +201,7 @@
    1.74  }
    1.75  
    1.76  void
    1.77 -quit(Arg *arg)
    1.78 -{
    1.79 +quit(Arg *arg) {
    1.80  	readin = running = False;
    1.81  }
    1.82  
    1.83 @@ -217,8 +211,7 @@
    1.84   * default error handler, which may call exit.
    1.85   */
    1.86  int
    1.87 -xerror(Display *dpy, XErrorEvent *ee)
    1.88 -{
    1.89 +xerror(Display *dpy, XErrorEvent *ee) {
    1.90  	if(ee->error_code == BadWindow
    1.91  	|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch)
    1.92  	|| (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable)
    1.93 @@ -234,8 +227,7 @@
    1.94  }
    1.95  
    1.96  int
    1.97 -main(int argc, char *argv[])
    1.98 -{
    1.99 +main(int argc, char *argv[]) {
   1.100  	int r, xfd;
   1.101  	fd_set rd;
   1.102