aewl
diff view.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 | 728c9089b079 |
children | e93b0ad5aeb5 |
line diff
1.1 --- a/view.c Tue Sep 12 09:50:06 2006 +0200 1.2 +++ b/view.c Tue Sep 12 10:57:28 2006 +0200 1.3 @@ -8,8 +8,7 @@ 1.4 /* static */ 1.5 1.6 static Client * 1.7 -minclient() 1.8 -{ 1.9 +minclient() { 1.10 Client *c, *min; 1.11 1.12 if((clients && clients->isfloat) || arrange == dofloat) 1.13 @@ -21,8 +20,7 @@ 1.14 } 1.15 1.16 static void 1.17 -reorder() 1.18 -{ 1.19 +reorder() { 1.20 Client *c, *newclients, *tail; 1.21 1.22 newclients = tail = NULL; 1.23 @@ -40,8 +38,7 @@ 1.24 } 1.25 1.26 static Client * 1.27 -nexttiled(Client *c) 1.28 -{ 1.29 +nexttiled(Client *c) { 1.30 for(c = getnext(c); c && c->isfloat; c = getnext(c->next)); 1.31 return c; 1.32 } 1.33 @@ -51,8 +48,7 @@ 1.34 void (*arrange)(Arg *) = DEFMODE; 1.35 1.36 void 1.37 -detach(Client *c) 1.38 -{ 1.39 +detach(Client *c) { 1.40 if(c->prev) 1.41 c->prev->next = c->next; 1.42 if(c->next) 1.43 @@ -63,8 +59,7 @@ 1.44 } 1.45 1.46 void 1.47 -dofloat(Arg *arg) 1.48 -{ 1.49 +dofloat(Arg *arg) { 1.50 Client *c; 1.51 1.52 maximized = False; 1.53 @@ -84,8 +79,7 @@ 1.54 } 1.55 1.56 void 1.57 -dotile(Arg *arg) 1.58 -{ 1.59 +dotile(Arg *arg) { 1.60 int h, i, n, w; 1.61 Client *c; 1.62 1.63 @@ -148,8 +142,7 @@ 1.64 } 1.65 1.66 void 1.67 -focusnext(Arg *arg) 1.68 -{ 1.69 +focusnext(Arg *arg) { 1.70 Client *c; 1.71 1.72 if(!sel) 1.73 @@ -164,8 +157,7 @@ 1.74 } 1.75 1.76 void 1.77 -focusprev(Arg *arg) 1.78 -{ 1.79 +focusprev(Arg *arg) { 1.80 Client *c; 1.81 1.82 if(!sel) 1.83 @@ -182,8 +174,7 @@ 1.84 } 1.85 1.86 Bool 1.87 -isvisible(Client *c) 1.88 -{ 1.89 +isvisible(Client *c) { 1.90 unsigned int i; 1.91 1.92 for(i = 0; i < ntags; i++) 1.93 @@ -193,8 +184,7 @@ 1.94 } 1.95 1.96 void 1.97 -resizecol(Arg *arg) 1.98 -{ 1.99 +resizecol(Arg *arg) { 1.100 unsigned int n; 1.101 Client *c; 1.102 1.103 @@ -218,8 +208,7 @@ 1.104 } 1.105 1.106 void 1.107 -restack() 1.108 -{ 1.109 +restack() { 1.110 Client *c; 1.111 XEvent ev; 1.112 1.113 @@ -242,8 +231,7 @@ 1.114 } 1.115 1.116 void 1.117 -togglemode(Arg *arg) 1.118 -{ 1.119 +togglemode(Arg *arg) { 1.120 arrange = (arrange == dofloat) ? dotile : dofloat; 1.121 if(sel) 1.122 arrange(NULL); 1.123 @@ -252,8 +240,7 @@ 1.124 } 1.125 1.126 void 1.127 -toggleview(Arg *arg) 1.128 -{ 1.129 +toggleview(Arg *arg) { 1.130 unsigned int i; 1.131 1.132 seltag[arg->i] = !seltag[arg->i]; 1.133 @@ -265,8 +252,7 @@ 1.134 } 1.135 1.136 void 1.137 -view(Arg *arg) 1.138 -{ 1.139 +view(Arg *arg) { 1.140 unsigned int i; 1.141 1.142 for(i = 0; i < ntags; i++) 1.143 @@ -277,8 +263,7 @@ 1.144 } 1.145 1.146 void 1.147 -viewall(Arg *arg) 1.148 -{ 1.149 +viewall(Arg *arg) { 1.150 unsigned int i; 1.151 1.152 for(i = 0; i < ntags; i++) 1.153 @@ -288,8 +273,7 @@ 1.154 } 1.155 1.156 void 1.157 -zoom(Arg *arg) 1.158 -{ 1.159 +zoom(Arg *arg) { 1.160 unsigned int n; 1.161 Client *c; 1.162